]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
* configure.in: recognize DOS-style absolute paths.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2000-11-29 Laurynas Biveinis <lauras@softhome.net>
2
3 * configure.in: recognize DOS-style absolute paths.
4
5 2000-11-29 Jakub Jelinek <jakub@redhat.com>
6
7 * expr.h (store_by_pieces): Add prototype.
8 (can_store_by_pieces): Likewise.
9 * expr.c (struct store_by_pieces): Renamed from clear_by_pieces.
10 (can_store_by_pieces): New.
11 (store_by_pieces): New.
12 (clear_by_pieces): New.
13 (clear_by_pieces_1): New.
14 (store_by_pieces_1): Renamed from clear_by_pieces, handle storing
15 arbitrary compiler generated constants into memory block.
16 (store_by_pieces_2): Renamed from clear_by_pieces_1, likewise.
17 * builtins.c (c_readstr): New.
18 (builtin_memcpy_read_str): New.
19 (expand_builtin_memcpy): If src is string constant and
20 emit_block_move would move it by pieces, compute integer constants
21 from the string and store it into memory block instead.
22 (builtin_strncpy_read_str): New.
23 (expand_builtin_strncpy): If N is not constant zero and c_strlen does
24 not return INTEGER_CST, don't optimize.
25 If N is larger than strlen(src) + 1, try to copy the string
26 including padding with store_by_pieces.
27 (expand_builtin_strcmp): If both arguments have side effects, don't
28 optimize.
29 (expand_builtin_fputs): If STR has side effects, don't optimize.
30
31 2000-11-29 Richard Earnshaw <rearnsha@arm.com>
32
33 * arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
34 Add use of link register.
35
36 2000-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
37
38 * extend.texi: Update documentation for default format attributes.
39
40 Tue Nov 28 21:56:45 2000 Jeffrey A Law (law@cygnus.com)
41
42 * pa/pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
43 a list, to keep track of the sections.
44
45 2000-11-28 Nick Clifton <nickc@redhat.com>
46
47 * config/arm/arm.md (pic_load_addr): Split into
48 pic_load_addr_arm and pic_load_addr_thumb.
49
50 * config/arm/arm.c (legitimize_pic_address): Generate either
51 ARM or Thumb versions of pic_load_addr.
52 (arm_finalize_pic): Generate either ARM or Thumb versions of
53 pic_load_addr.
54
55 2000-11-28 Richard Henderson <rth@redhat.com>
56
57 * calls.c (expand_call): Defer const/pure NO_DEFER_POP until
58 after sibcall do_pending_stack_adjust.
59
60 Wed Nov 29 00:08:23 2000 J"orn Rennecke <amylaar@redhat.com>
61
62 * jump.c (delete_insn): Check that REG_LABEL note actually contains
63 a CODE_LABEL.
64
65 2000-11-28 Neil Booth <neilb@earthling.net>
66
67 * c-common.h: Remove flag_digraphs.
68 * c-decl.c: Remove flag_digraphs.
69 (c_decode_option): Don't set it.
70 * c-lex.c (init_c_lex): Don't do anything for digraphs.
71
72 2000-11-28 Richard Henderson <rth@redhat.com>
73
74 * c-parse.in (finish_parse): Update for parse_in type change.
75 (_yylex): Likewise.
76
77 2000-11-28 Neil Booth <neilb@earthling.net>
78
79 * cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
80 indicating whether to scan all buffers on the stack or
81 just one.
82 * cppinit.c (do_includes): Update.
83 * cppmain.c (main): Update.
84 * cpplib.h: Update prototype.
85
86 2000-11-28 Richard Henderson <rth@redhat.com>
87
88 * genoutput.c (validate_insn_operands): New.
89 (gen_insn): Call it.
90
91 * config/alpha/alpha.md (divmodsi_internal): Renumber operands.
92 (divmoddi_internal): Likewise.
93 * config/arm/arm.md (andsi3_compare0_scratch): Likewise.
94 * config/i960/i960.md (branch patterns): Likewise.
95 * config/ia64/ia64.md (tbit_and_0): Likewise.
96 (tbit_and_1, tbit_or_0, tbit_or_1): Likewise.
97 * config/m68k/m68k.md (zero_extract memory patterns): Likewise.
98 * config/mips/mips.md (divmodsi4_internal): Likewise.
99 (divmoddi4_internal): Likewise.
100 * config/rs6000/rs6000.md (call patterns): Likewise.
101 * config/sh/sh.md (movsi_y): Likewise.
102 * config/sparc/sparc.md: Comment out if 0 v8p shift pattern.
103
104 2000-11-28 Richard Henderson <rth@redhat.com>
105
106 * config.gcc: Kill residual pyramid support.
107
108 2000-11-28 Neil Booth <neilb@earthling.net>
109
110 * c-lex.h (parse_in): Change parse_in to a cpp_reader *.
111 * c-decl.c (c_decode_option): Update to match.
112 * c-lex.c (init_c_lex, yyparse): Update to match.
113 * c-lang.c (lang_init_options): Use cpp_create_reader.
114 * cppinit.c (cpp_init): Rename initialize.
115 (cpp_reader_init): Rename cpp_create_reader. Create the
116 reader. Initialize cpplib if appropriate.
117 * cpplib.h (cpp_create_reader) New prototype.
118 (cpp_init, cpp_reader_init): Delete prototypes.
119 * cppmain.c (general_init, setup_callbacks): New functions.
120 (main): Use them.
121 * fix-header.c (scan_in): Change type to cpp_reader *.
122 (read_scan_file): Update for new cpplib interface and scan_in type.
123
124 * cp/decl.c (parse_in): Change to cpp_reader *.
125 (lang_decode_option): Update.
126 * cp/lex.c (lang_init_options): Use new cpplib interface.
127 (init_cp_pragma, finish_parse, handle_pragma_implementation): Update.
128 * cp/spew.c (read_token): Update.
129 * objc/objc-act.c (lang_init_options): Update new cpplib interface.
130
131 2000-11-28 Jakub Jelinek <jakub@redhat.com>
132
133 * loop.c (load_mems): Avoid using next_label to find end_label. If
134 jumping outside of the loop (other than loop end), don't hoist MEMs
135 out of loop.
136
137 2000-11-28 Jan Hubicka <jh@suse.cz>
138
139 * calls.c (expand_call): Don't disable tail recursion based
140 on the loop nest.
141
142 2000-11-28 Neil Booth <neilb@earthling.net>
143
144 * tradcpp.c (enum node_type): New hash types T_ASSERT, T_UNASSERT.
145 (struct directive): Drop 4th argument from handlers.
146 (do_define, do_line, do_include, do_undef, do_else, do_elif,
147 do_endif): Similarly.
148 (do_assert, do_unassert, do_ifdef, do_ifndef): New handlers.
149 (do_ifxdef): Update as common handler of do_ifdef and do_ifndef.
150 (make_definition, make_undef): Take a const char*.
151 (make_assertion): New function.
152 (struct directive_table): Update.
153 (main): Handle -A command line argument.
154 (handle_directive): Drop fourth handler argument.
155
156 2000-11-28 Bernd Schmidt <bernds@redhat.co.uk>
157
158 * simplify-rtx.c (cselib_record_sets): Ignore sets whose destination
159 is anything but REG or MEM, but look inside STRICT_LOW_PART.
160
161 Tue Nov 28 09:53:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
162
163 * system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
164 (IS_ABSOLUTE_PATHNAME): New macro.
165 * gcc.c (find_a_file, process_command, do_spec_1, main): Use it.
166
167 2000-11-28 Jakub Jelinek <jakub@redhat.com>
168
169 * config/i386/i386.md (truncxfsf2_2): Fix predicate.
170
171 2000-11-27 Jim Wilson <wilson@redhat.com>
172
173 * reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.
174
175 2000-11-27 Matthias Klose <doko@cs.tu-berlin.de>
176
177 * extend.texi (Nested Functions): Update URL of Usenix paper.
178
179 2000-11-27 Mark Mitchell <mark@codesourcery.com>
180
181 * function.c (free_after_compilation): Clear x_clobber_return_insn.
182
183 2000-11-27 Neil Booth <neilb@earthling.net>
184
185 * cppinit.c (cpp_reader_init): Remove handling of warn_paste
186 command line options.
187 (cpp_handle_option): Similarly.
188 * cpplib.h (struct cpp_options): Remove warn_paste.
189 * cppmacro.c (paste_tokens): Apart from assembler, make
190 unpasteable token warning mandatory.
191
192 2000-11-27 Neil Booth <neilb@earthling.net>
193
194 * tradcpp.c (enum pending_dir_t, struct pending_dir): New.
195 (main): Allocate a pending directive set of these. Use it.
196 Merge handling of -D and -U. Update handling of pending
197 directives. Free the memory after use.
198
199 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
200
201 * flow.c (entry_exit_blocks): Add entry for cond_local_set.
202 (struct propagate_block_info): Add new member cond_local_set.
203 (propagate_block): Accept new arg cond_local_set. All callers
204 changed.
205 (init_propagate_block_info): Likewise.
206 (calculate_global_regs_live): Allocate & free cond_local_set. Always
207 rescan if there's overlap between cond_local_set and new_live_at_end.
208 (mark_set_1): Set bits either in cond_local_set or local_set, as
209 appropriate.
210 * basic-block.h (struct basic_block_def): New field cond_local_set.
211 (propagate_block, init_propagate_block_info): Update prototypes.
212
213 Mon Nov 27 17:29:44 2000 kaz Kojima <kkojima@rr.iij4u.or.jp>
214
215 * gcc/config/sh/sh.md (udivsi3_i4, udivsi3_i4_single): Clobber
216 T register.
217
218 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
219
220 * arm.c (select_dominance_cc_mode): Handle new way that combine
221 canonicalizes conditional compares.
222 (arm_select_cc_mode): Likewise.
223 * arm.md: Garbage collect some dead code.
224 (cmp_and, cmp_ior): New patterns.
225 (splitter for conditional move with inverted false): Use cond_exec
226 and handle unordered comparisons.
227
228 Mon Nov 27 17:22:56 MET 2000 Jan Hubicka <jh@suse.cz>
229
230 * i386.c (ix86_force_to_memory, ix86_free_from_memory): New.
231 * i386-protos.h (ix86_force_to_memory, ix86_free_from_memory): Declare
232 * i386.md (float?i?f, int/fp operations): Rewrite spliters to use
233 ix86_force_to_memory and ix86_free_from_memory.
234
235 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
236
237 * arm.md (arm_adddi3, adddi_sesidi_di, adddi_zesidi_di, arm_addsi3,
238 arm_subsi3_insn, anddi_zesidi_di, arm_andsi3_insn, anddi_notdi_di,
239 anddi_notzesidi_di, anddi_notsesidi_di, arm_iorsi3,
240 one_cmpldi2): Merge with splitters to create define_insn_and_split
241 patterns. Remove redundant splits.
242 (peephole2 for add:SI of invalid immediate): New.
243 (peephole2 for minus:SI of invalid immediate): New.
244 (peephole2 for ior:SI of invalid immediate): New.
245 (peephole for merge of move and compare): Convert ot peephole2.
246 (addsf3, adddf3): Mark as commutative.
247
248 * arm.md (thumb peephole for merging stack adjustments): Convert to
249 peephole2.
250
251 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
252
253 * haifa-sched.c (print_pattern): Prettier output for COND_EXEC.
254
255 * reload1.c (reload_cse_simplify_set): Pass down mode to cselib_lookup.
256 (reload_cse_simplify_operands): Do nothing about operands where both
257 the operand and the match_operand fail to give us a mode.
258 * simplify-rtx.c (wrap_constant): New function.
259 (entry_and_rtx_equal_p): Except integer constants to come wrapped in a
260 CONST describing the proper mode.
261 (rtx_equal_for_cselib_p): Pass down modes to recursive calls of
262 cselib_lookup.
263 (cselib_lookup_mem): Call wrap_constant on the rtx that is passed to
264 htab_find_slot_with_hash.
265 (cselib_lookup): Likewise.
266
267 Based on a patch from Geoff Keating <geoffk@redhat.com>:
268 * loop.c (basic_induction_var): If a REG is set from something
269 that is not a biv, then the REG is not a biv. Even if it is
270 earlier set from something that is a biv.
271
272 2000-11-27 Alexandre Oliva <aoliva@redhat.com>
273
274 * configure.in (extra_objs): Enclose extra_headers in quotes.
275 * configure: Rebuilt.
276
277 2000-11-27 Neil Booth <neilb@earthling.net>
278
279 * c-lex.c (cb_enter_file, cb_leave_file, cb_rename_file):
280 Combine into the new function cb_change_file.
281 (init_c_lex): Update.
282 * cppfiles.c (stack_include_file): Use _cpp_do_file_change.
283 (cpp_syshdr_flags): Delete.
284 * cpphash.h (_cpp_do_file_change): New prototype.
285 Move struct cpp_buffer here from...
286 * cpplib.h (struct cpp_buffer): ... here.
287 (enum cpp_fc_reason, struct cpp_file_loc,
288 struct_cpp_file_change, change_file): New.
289 (enter_file, leave_file, rename_file, cpp_syshdr_flags): Delete.
290 * cpplib.c (do_line): Update for new cb_change_file callback.
291 (_cpp_do_file_change): New function.
292 (_cpp_pop_buffer): Update to use it.
293 * cppmain.c (move_printer): Delete.
294 (main): Set up single callback cb_change_file.
295 (cb_enter_file, cb_leave_file, cb_rename_file): Delete.
296 (cb_change_file): New.
297 * fix-header.c (cur_file, cb_change_file): New.
298 (recognized_function, read_scan_file): Update.
299 * scan-decls.c (scan_decls): Update.
300 * scan.h (recognized_function): Update prototype.
301
302 2000-11-26 Mark Mitchell <mark@codesourcery.com>
303
304 * tree.h (mark_tree_hashtable): New function.
305 * tree.c (mark_tree_hashtable_entry): New function.
306 (mark_tree_hashtable): Likewise.
307
308 2000-11-27 Michael Meissner <meissner@redhat.com>
309
310 * d30v-protos.h (srelational_si_operator): Correctly spell
311 function.
312 (urelational_si_operator): Ditto.
313 (relational_si_operator): Ditto.
314 (d30v_expand_prologue): Add prototype.
315 (d30v_expand_epilogue): Ditto.
316
317 * d30v.h (OPTIMIZATION_OPTIONS): Undo November 22nd change.
318
319 * d30v.md (movcccc_*): Delete now unused patterns.
320 (64 bit comparison splitters): Rewrite to use COND_EXEC instead of
321 IF_THEN_ELSE.
322 (define_cond_exec): Use 'b' to select branch flags.
323
324 2000-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
325
326 * builtins.c (expand_builtin_strncmp, expand_builtin_strncpy): New
327 functions.
328 (expand_builtin): Handle BUILT_IN_STRNCPY and BUILT_IN_STRNCMP.
329
330 * builtins.def (BUILT_IN_STRNCPY, BUILT_IN_STRNCMP): New entries.
331
332 * c-common.c (c_common_nodes_and_builtins): Declare builtin
333 strncpy and strncmp.
334
335 * extend.texi (strncmp, strncpy): Document new builtins.
336
337 2000-11-26 Mark Mitchell <mark@codesourcery.com>
338
339 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
340 a list, to keep track of the sections.
341 * tm.texi (ASM_OUTPUT_SECTION_NAME): Document the fact that the
342 parameter provided will always be a canonical string.
343
344 2000-11-26 Neil Booth <neilb@earthling.net>
345
346 * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
347 current buffer.
348
349 2000-11-26 Joseph S. Myers <jsm28@cam.ac.uk>
350
351 * makefile.vms: Remove EGCS references.
352
353 2000-11-26 Ulrich Drepper <drepper@redhat.com>
354
355 * dwarf2out.c (output_file_names): New function. Compute minimal
356 combination of directory and file name table and emit them.
357 (output_line_info): Remove code to emit directory and file name
358 table and call output_file_names instead.
359 (file_info_cmp): Helper function to sort directory names.
360
361 2000-11-26 Neil Booth <neilb@earthling.net>
362
363 * cpplib.h (struct cpp_reader): Remove lang_asm.
364 (struct cpp_options): Remove c89. New members lang,
365 extended_numbers.
366 * cppexp.c (parse_number): Use them.
367 * cpphash.h (VALID_SIGN): Use them.
368 * cppinit.c (set_lang, cpp_start_read): Update.
369 * cpplex.c (parse_string, _cpp_lex_token): Update.
370 * cpplib.c (_cpp_handle_directive): Update.
371 * cppmacro.c (parse_args): Update.
372 * cppmain.c (scan_buffer): Update.
373
374 Sun Nov 26 10:02:37 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
375
376 * fold-const.c (fold, case CONVERT_EXPR): Always return tree of
377 proper type.
378
379 2000-11-26 Neil Booth <neilb@earthling.net>
380
381 * Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
382 * c-decl.c: Remove parse_in declaration.
383 * c-lang.c: Similarly.
384 * c-lex.c: Similarly.
385 * c-parse.in: Similarly.
386 * c-pragma.c: Similarly.
387 * configure.in: Similarly.
388 * cp/Make-lang.in: Similarly.
389 * cp/spew.c: Similarly.
390 * cp/decl2.c: Remove check for lang-c++ option.
391 * cp/lang-specs.h: Remove -lang-c++ from cc1plus command line.
392 * cp/lex.c (lang_init_options): With cpp_reader_init, default to C++.
393 * c-lex.h: Add declaration of parse_in.
394 * cppinit.c: Call set_lang after allocating pfile->pending.
395 * configure: Regenerate.
396
397 2000-11-25 Zack Weinberg <zack@wolery.stanford.edu>
398
399 * combine.c (try_combine): Remove redundant test.
400
401 2000-11-25 Richard Henderson <rth@redhat.com>
402
403 * c-common.h (DECL_C_HARD_REGISTER): New.
404 * c-decl.c (finish_decl): Set it for asm register variables.
405 * c-semantics.c (emit_local_var): Test it when instantiating one.
406
407 2000-11-25 Richard Henderson <rth@redhat.com>
408
409 * c-decl.c (c_expand_body): Use DECL_SOURCE_LINE rather than
410 lineno for the start of the function.
411
412 2000-11-25 Richard Henderson <rth@redhat.com>
413
414 * dwarf2out.c (file_table, file_table_allocated): Remove.
415 (file_table_allocated): Remove.
416 (struct file_table): New.
417 (decl_file_table, line_file_table): New.
418 (print_dwarf_line_table): Use them.
419 (size_of_line_prolog): Likewise.
420 (output_line_info): Likewise.
421 (add_src_coords_attributes): Likewise.
422 (gen_subprogram_die): Likewise.
423 (gen_variable_die): Likewise.
424 (dwarf2out_add_library_unit_info): Likewise.
425 (dwarf2out_line): Likewise.
426 (lookup_filename): Take a struct file_table argument.
427 (init_file_table): New.
428 (dwarf2out_init): Use it.
429
430 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
431
432 * invoke.texi: Update sequence points references.
433
434 2000-11-25 Neil Booth <neilb@earthling.net>
435
436 * c-common.c: Remove USE_CPPLIB conditional inclusions.
437 * c-common.h: Similarly.
438 * c-decl.c: Similarly.
439 * c-lang.c: Similarly.
440 * c-lex.c: Similarly.
441 * c-parse.in: Similarly.
442 * c-pragma.c: Similarly.
443 * c-pragma.h: Similarly.
444 * gcc.c: Similarly.
445 * toplev.c: Similarly.
446 * cp/cp-tree.h: Similarly.
447 * cp/decl2.c: Similarly.
448 * cp/lang-specs.h: Similarly.
449 * cp/lex.c: Similarly.
450 * cp/lex.h: Similarly.
451 * cp/spew.c: Similarly.
452 * java/lang-options.h: Similarly.
453 * objc/lang-specs.h: Similarly.
454 * objc/objc-act.c: Similarly.
455
456 * configure.in: Remove configure option.
457 * config.in: Regenerate.
458 * configure: Regenerate.
459
460 2000-11-25 Richard Henderson <rth@redhat.com>
461
462 * haifa-sched.c (sched_analyze_1, sched_analyze_2, sched_analyze):
463 Revert 2000-11-22 change.
464
465 2000-11-25 Bernd Schmidt <bernds@redhat.co.uk>
466
467 * config/i386/i386.h (FIXED_REGS): Make the three flags registers
468 fixed.
469
470 2000-11-25 Philipp Thomas <pthomas@suse.de>
471 * configure.in (ALL_LINGUAS): Remove en_GB and add sv.
472 * configure: Rebuilt.
473
474 2000-11-25 Jakub Jelinek <jakub@redhat.com>
475
476 * config/sparc/sparc.md (muldi3_v8plus): Remove H constraint.
477 Handle CONST_INT as second argument.
478 * config/sparc/sparc.c (set_extends): Remove first argument.
479 Properly handle AND, CONST_INT and CONST_DOUBLE, handle IOR, XOR and
480 MOV.
481 (sparc_check_64): Abort if first argument is not REG.
482 If it is DImode REG, look at the lower register of the register
483 pair.
484
485 * config/sparc/sparc.c (load_pic_register, restore_regs,
486 output_return, sparc_v8plus_shift, sparc_function_profiler,
487 sparc_function_block_profiler, sparc_block_profiler): Fix output
488 formatting.
489
490 2000-11-25 Alexandre Oliva <aoliva@redhat.com>
491
492 * config/sh/sh.h (TARGET_NONE): New.
493 (TARGET_SWITCHES): For all variant-selecting switch, use
494 TARGET_NONE to reset all other variant-selecting switch. Added
495 empty strings to avoid warnings.
496 (TARGET_DEFAULT): Set to SH1_BIT.
497
498 * Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for
499 insn-codes.h.
500
501 * gcc/config/sh/sh.md (sibcalli, sibcalli_pcrel): New insns.
502 (sibcall_pcrel): New insn_and_split.
503 (sibcall, sibcall_value, sibcall_epilogue): New expands.
504
505 * config/sh/sh.md (GOTaddr2picreg, symGOT2reg, symGOTOFF2reg,
506 symPLT_label2reg, call, call_value): Don't set
507 current_function_uses_pic_offset_table.
508 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't mark
509 PIC_OFFSET_TABLE_REGNUM as call_used, so that calc_live_regs
510 takes it into account.
511 (FINALIZE_PIC): Delete, useless.
512 (LEGITIMATE_CONSTANT_P): Delete, unused.
513 * config/sh/sh.c (sh_expand_prologue): Don't use
514 current_function_uses_pic_offset_table. Don't special-case
515 PIC_OFFSET_TABLE_REGNUM. Initialize it if it's ever live and
516 PIC is enabled.
517 (sh_expand_epilogue, initial_elimination_offset): Don't
518 special case PIC_OFFSET_TABLE_REGNUM.
519
520 2000-11-25 Alexandre Oliva <aoliva@redhat.com>, NIIBE Yutaka <gniibe@m17n.org>
521
522 * config/sh/sh-protos.h (symbol_ref_operand): Declare.
523 * config/sh/sh.md (UNSPEC_CALLER): New constant.
524 (calli_pcrel, call_valuei_pcrel): Use PIC_REG.
525 (call_pcrel, call_value_pcrel): New insn_and_splits.
526 (call, call_value): Use them.
527 (call_site): New expand.
528 (sym_label2reg, symPLT_label2reg): Adjust to hold call_sites.
529 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA) [UNSPEC_CALLER]:
530 Output call_site label.
531 (PREDICATE_CODES): Added symbol_ref_operand.
532 * config/sh/sh.c (symbol_ref_operand): Define.
533 * emit-rtl.c (try_split): Propagate CALL_INSN_FUNCTION_USAGE
534 to CALL_INSNs in the split sequence.
535
536 2000-11-24 Nick Clifton <nickc@redhat.com>
537
538 * config.gcc (v850-*-*): Define c_target_objs and
539 cxx_target_objs.
540
541 * config/v850/t-v850: Define how to build v850-c.o
542
543 * config/v850/v850.h (struct data_area_stack_element): Move
544 definition here from v850.c.
545
546 * config/v850v850.c: Include gcc.h to avoid compile time
547 warning.
548 (push_data_area): Move to v850-c.c.
549 (pop_data_area): Move to v850-c.c.
550 (mark_current_function_as_interrupt): Move to v850-c.c.
551 (GHS_default_section_names): Allow to be exported.
552 (GHS_current_section_names): Allow to be exported.
553 (data_area_stack_elements): Allow to be exported.
554 (ghs_pragma_section): Move to v850-c.c.
555 (ghs_pragma_interrupt): Move to v850-c.c.
556 (ghs_pragma_starttda): Move to v850-c.c.
557 (ghs_pragma_startsda): Move to v850-c.c.
558 (ghs_pragma_startzda): Move to v850-c.c.
559 (ghs_pragma_endtda): Move to v850-c.c.
560 (ghs_pragma_endsda): Move to v850-c.c.
561 (ghs_pragma_endzda): Move to v850-c.c.
562
563 * config/v850/v850-c.c: New file: Contains v850 specific
564 pragma parsing functions.
565
566 2000-11-24 Nick Clifton <nickc@redhat.com>
567
568 * config.gcc (extra_objs): Remove duplicate description.
569 (c_target_objs): New variable. Contains target specific
570 object files for the gcc C compiler only.
571 (cxx_target_objs): New variable. Contains target specific
572 object files for the gxx C++ compiler only.
573
574 * configure.in (c_target_objs): Substitute in the makefile.
575 (cxx_target_objs): Substitute in the makefile.
576 * configure: Regenerate.
577
578 * Makefile.in (C_TARGET_OBJS): Define and initialise from
579 c_target_objs.
580 (CXX_TARGET_OBJS): Define and initialise from
581 cxx_target_objs.
582 (C_AND_OBJC_OBJS): Include C_TARGET_OBJS.
583
584 * cp/Make-lang.in (CXX_C_OBJS): Include CXX_TARGET_OBJS).
585
586 * tm.texi (REGISTER_TARGET_PRAGMAS): Add paragraph explaining
587 about how the use of the 'c_lex' function requires the use of
588 the target specific, language specific object files feature of
589 the configuration mechanism.
590
591 Fri Nov 24 18:50:58 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
592
593 * gcc.c (process_command): Use F_OK, not R_OK.
594
595 2000-11-24 Arno J. Klaassen <arno@heho.snv.jussieu.fr>
596
597 * flow.c (print_rtl_and_abort): Remove ANSIism.
598
599 Fri Nov 24 19:54:36 2000 Alexandre Oliva <aoliva@redhat.com>
600
601 * config/sh/sh.h (GENERAL_REGISTER_P,
602 GENERAL_OR_AP_REGISTER_P, FP_REGISTER_P, XD_REGISTER_P,
603 FP_OR_XD_REGISTER_P, FP_ANY_REGISTER_P): New macros. Use them
604 all over.
605 (SPECIAL_REG): Renamed to SPECIAL_REGISTER_P.
606 * config/sh/sh.c: Use new macros.
607 * config/sh/sh.md: Likewise.
608
609 Fri Nov 24 19:46:16 2000 Alexandre Oliva <aoliva@redhat.com>
610
611 * config/sh/sh.md: Clobber MACH_REG and MACL_REG in SImode,
612 instead of just MACH_REG in DImode. Always refer to FPSCR_REG
613 in PSImode.
614
615 Fri Nov 24 22:37:41 2000 Denis Chertykov <denisc@overta.ru>
616
617 * config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
618 fixed.
619 (machine_dependent_reorg): Wrong optimization based on
620 NOTICE_UPDATE_CC removed.
621
622 Fri Nov 24 19:48:09 2000 J"orn Rennecke <amylaar@redhat.com>
623
624 * jump.c (delete_computation): Re-instate deletion of feeding insn.
625 (delete_insn): Look for REG_LABEL notes.
626 (redirect_tablejump): Delete feeding insns.
627
628 2000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
629
630 * config/i386/i386.md (call_pop_0, call_pop_1, call_value_pop_0,
631 call_value_pop_1): Make sure operand numbers are contiguous.
632
633 * fold-const.c (fold_range_test): Avoid crash if LHS or RHS is null.
634
635 * reload1.c (conflicts_with_override): New function.
636 (emit_input_reload_insns): Use it to tighten test for validity
637 of substituting into output of previous insn.
638
639 * haifa-sched.c (struct ready_list): New.
640 (ready_lastpos, ready_add, ready_remove_first, ready_sort): New static
641 functions.
642 (schedule_insn): Replace args READY and N_READY with a pointer to a
643 ready_list; return void. Use the new functions to access the ready
644 list. All callers changed.
645 (queue_to_ready, debug_ready_list): Likewise.
646 (schedule_block): Initialize a ready_list structure. Use new
647 functions to access it.
648 (max_priority): Remove unused variable.
649 (schedule_insn): Don't set it.
650
651 * c-common.c (verify_tree): Don't recurse into CONSTRUCTORs.
652
653 * combine.c (cant_combine_insn_p): New function.
654 (try_combine): Use it.
655
656 * Makefile.in (c-common.o): Depend on $(OBSTACK_H).
657 * c-common.c (c-obstack.c): Include "obstack.h".
658 (struct reverse_tree): Delete.
659 (reverse_list, reverse_max_depth): Delete.
660 (build_reverse_tree, common_ancestor, modify_ok): Delete functions.
661 (struct tlist, struct tlist_cache): New.
662 (tlist_obstack, tlist_firstobj, warned_ids, save_expr_cache): New.
663 (add_tlist, merge_tlist, verify_tree, warning_candidate_p,
664 warn_for_collisions, warn_for_collisions_1, new_tlist): New
665 static functions.
666 (verify_sequence_points): Rewritten.
667 * fold-const.c (fold): Don't lose possibly important sequence
668 points when removing one arm of TRUTH_ORIF_EXPRs or TRUTH_ANDIF_EXPRs.
669
670 2000-11-24 Richard Sandiford <rsandifo@redhat.com>
671
672 * gcc/cse.c (cse_insn): Removed conversion of REG_EQUIV to REG_EQUAL
673 when reversing a register-to-register copy. Reversal now disabled
674 when the previous instruction has a REG_EQUIV.
675
676 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
677
678 * c-parse.in (unary_expr): Move VA_ARG from here ...
679 (primary): ... to here.
680
681 2000-11-23 Graham Stott <grahams@redhat.com>
682
683 * expr.c (store_constructor): If a field is non addressable and
684 the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.
685
686 2000-11-23 Bernd Schmidt <bernds@redhat.co.uk>
687
688 * flow.c (print_rtl_and_abort): New function.
689 (verify_wide_reg, verify_local_live_at_start): Try to dump more
690 information before aborting.
691
692 2000-11-23 Alexandre Oliva <aoliva@redhat.com>
693
694 * emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
695 is narrower than requested mode.
696 (gen_highpart): Abort if register mode is narrower than
697 requested mode.
698
699 2000-11-23 Graham Stott <grahams@redhat.com>
700
701 * cse.c (cse_insn): Initialise all regcost variables.
702 Fix a typo add missing '='.
703 Only compare costs if there is a replacement insn.
704
705 Thu Nov 23 04:33:33 2000 Alexandre Oliva <aoliva@redhat.com>
706
707 * final.c (output_addr_const) [LABEL_REF]: Simplify.
708 [MINUS]: Enclose non-CONST_INTs in parentheses.
709 [default]: Try OUTPUT_ADDR_CONST_EXTRA.
710 * tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
711 * varasm.c (decode_rtx_const) [CONST]: If it's not something
712 PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
713 instead of abort()ing.
714 * sh.c (output_pic_addr_const): Removed. Fixed all callers.
715 * sh.h (OUTPUT_ADDR_CONST_EXTRA): New. Handle the UNSPECs
716 formerly handled in output_pic_addr_const.
717 * sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
718 operands of MINUS in CONSTs so that decode_rtx_const() will
719 accept them.
720
721 Thu Nov 23 04:10:30 2000 Alexandre Oliva <aoliva@redhat.com>
722
723 * config/sh/sh.md (mova_const): New pattern.
724 (GOTaddr2picreg): Use it.
725 * config/sh/sh.c (broken_move): Match it.
726 (mova_p): Don't match it.
727 (machine_dependent_reorg): Adjust it.
728
729 Thu Nov 23 02:09:09 2000 Alexandre Oliva <aoliva@redhat.com>
730
731 * config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
732 Moved most register-number #defines...
733 * config/sh/sh.md (define_constants): ... here. Use macros to
734 refer to registers and unspecs.
735 * config/sh/sh.c: Likewise.
736
737 Thu Nov 23 01:01:32 2000 J"orn Rennecke <amylaar@redhat.com>
738
739 * Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
740 (rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
741 (alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
742 (splay-tree.o, hash.o): Likewise.
743 GCONFIG_H: New.
744 (rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
745 (bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
746 (hashtab.o): Likewise.
747 (gcov.o): Depend on $(CONFIG_H).
748 * configure.in: #include insn-codes.h in tm.h.
749
750 2000-11-22 Nick Clifton <nickc@redhat.com>
751
752 * config/arm/arm.c (arm_encode_call_attribute): Make 'newstr' a
753 const char * to avoid a compile time warning.
754
755 * config/arm/arm.md (define_constants): Define symbolic names for
756 the link register, last integer register and the fake CC register.
757 Update patterns to use these symbolic names.
758
759 2000-11-22 Neil Booth <neilb@earthling.net>
760
761 * cpplex.c (trigraph_ok): Ensure we don't warn twice.
762 * cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.
763
764 2000-11-22 Richard Henderson <rth@redhat.com>
765
766 * haifa-sched.c (sched_analyze_1): Don't special-case calls
767 for clobbering registers.
768 (sched_analyze_2): Likewise.
769 (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.
770
771 2000-11-22 Chris Demetriou <cgd@sibyte.com>
772 Neil Booth <neilb@earthling.net>
773
774 * gcc.c (validate_switches): Validate multiple switches named
775 in '|' (or) expressions in specs.
776 (handle_braces): If more than 1 alternative in a '|' spec
777 matches, call do_spec1 just once.
778
779 2000-11-22 Michael Meissner <meissner@redhat.com>
780
781 * d30v.h (TARGET_SWITCHES): Add documentation strings.
782 (TARGET_OPTIONS): Ditto.
783 (OPTIMIZATION_OPTIONS): Temporarily turn off -frename-registers if
784 -O3.
785
786 Wed Nov 22 06:40:56 2000 Jeffrey A Law (law@cygnus.com)
787
788 * pa.c (hppa_encode_label): Account for addition of encoding
789 character when allocating persistent space for the new label
790 name.
791
792 2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
793
794 * Makefile.in, config.gcc, configure.in: Expunge remaining
795 traces of facility for running MD files through C preprocessor.
796
797 2000-11-22 Joseph S. Myers <jsm28@cam.ac.uk>
798
799 * gcov.texi: Add magic comments for texi2pod.pl.
800 * Makefile.in: Add rules to generate and install gcov.1.
801 * gcov.1: New (generated) file.
802
803 2000-11-21 Richard Henderson <rth@redhat.com>
804
805 * regrename.c (scan_rtx_reg): Terminate the chain rather than
806 abort on mark_read with NO_REGS.
807
808 2000-11-21 Mike Stump <mrs@wrs.com>
809
810 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
811 compilation with older compilers, such as /bin/cc on SunOS.
812 * fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
813
814 2000-11-21 Richard Henderson <rth@redhat.com>
815
816 * varasm.c (record_constant): Pad the constructed
817 constant_descriptor appropriately.
818
819 Wed Nov 22 00:52:55 2000 J"orn Rennecke <amylaar@redhat.com>
820
821 * rtl.h (traverse_md_constants): Declare.
822 (struct md_constant): Define.
823 * Makefile.in (HOST_RTL): Add hashtab.o .
824 (OBJS): Add hashtab.o .
825 (hashtab.o): New rule.
826 (rtl.o): Depends on HASHTAB_H.
827 * rtl.c (hashtab.h): #include.
828 (md_constants): New static variable.
829 (def_hash, def_name_eq_p, read_constants): New static functions.
830 (traverse_md_constants): New function.
831 (read_name): Do constant expansion.
832 (read_rtx): Recognize define_constants.
833 * gencodes.c (print_md_constant): New function.
834 (main): Emit #defines for all constant definitions encountered.
835 * md.texi (Constant Definitions): New node.
836 * gensupport.c (xcalloc): New function.
837
838 2000-11-21 Richard Henderson <rth@redhat.com>
839
840 * config/alpha/alpha.c (alpha_split_tfmode_frobsign): New.
841 * config/alpha/alpha-protos.h: Declare it.
842 * config/alpha/alpha.md (abstf_internal): Use it.
843 (negtf_internal): Likewise.
844 (andnotdi3): Unstar the name.
845 (movtf_internal): Add o/G alternative.
846
847 2000-11-21 Zack Weinberg <zack@wolery.stanford.edu>
848
849 * stringpool.c (stringpool_statistics): Also report number and
850 percentage of entries which are identifiers.
851
852 2000-11-21 Diego Novillo <dnovillo@redhat.com>
853
854 * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
855 visited before visiting it.
856
857 2000-11-21 Nick Clifton <nickc@redhat.com>
858
859 * config/arm/arm.h: Accept TARGET_CPU_arm9tdmi,
860 TARGET_CPU_strongarm110 and TARGET_SPU_strongarm1100.
861
862 * config.gcc: Accept --with-cpu=arm9 and --with-cpu=arm9tdmi.
863
864 2000-11-21 Richard Henderson <rth@redhat.com>
865
866 * c-common.c (c_unsafe_for_reeval): New function.
867 (add_c_tree_codes): Register it.
868 * c-common.h: Declare it.
869 * tree.c (lang_unsafe_for_reeval): New hook.
870 (unsafe_for_reeval): Call it.
871 * tree.h: Declare it.
872
873 2000-11-21 Richard Henderson <rth@redhat.com>
874
875 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
876 references as well.
877
878 2000-11-21 Neil Booth <neilb@earthling.net>
879
880 * do_includes: Revert to using cpp_read_file.
881
882 2000-11-21 Bernd Schmidt <bernds@redhat.co.uk>
883
884 * loop.c (consec_sets_giv): If the reg we're examining is anything
885 but UNKNOWN_INDUCT, do nothing.
886 Reset the reg's type to UNKNOWN_INDUCT before returning.
887
888 Mostly from Vladimir Makarov (vmakarov@redhat.com)
889 * ia64.md (attr itanium_class): Define insn types as described in
890 Itanium docs.
891 (all insn patterns): Use itanium_class, not type attributes.
892 Occasionally split alternatives as necessary.
893 (attr type): Compute from new attr itanium_class.
894
895 2000-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
896
897 * tradcpp.c (output_line_command): Mark system headers as such in
898 `line' commands.
899
900 2000-11-21 Jakub Jelinek <jakub@redhat.com>
901
902 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
903 support in as as well.
904 * configure: Regenerate.
905
906 2000-11-20 Richard Henderson <rth@redhat.com>
907
908 * c-lex.c (orig_filename): New variable.
909 (init_c_lex): Set it. Move call to cpp_start_read ...
910 (yyparse): ... here. New function.
911 * c-parse.in (yyparse_1): Rename the parser entry point.
912 * c-tree.h: Declare it.
913
914 2000-11-21 Jakub Jelinek <jakub@redhat.com>
915
916 * expr.c (do_compare_and_jump): If op0 was replaced by promoted
917 integer constant, use type of op1 for comparison.
918
919 2000-11-20 Stan Shebs <shebs@apple.com>
920
921 * config/rs6000/xm-darwin.h: New file, Darwin host definitions.
922 * config/rs6000/x-darwin: New file, Darwin host fragment.
923 * config.gcc (powerpc-*-darwin*): New host.
924 * system.h (HAVE_DESIGNATED_INITIALIZERS): Allow this to be
925 overridden by a config file.
926
927 2000-11-20 Neil Booth <neilb@earthling.net>
928
929 * cppmacro.c (paste_tokens): Rename from paste_payloads.
930 Change token type after pasting spellings.
931 (paste_all_tokens): Use it.
932 * gcc.dg/cpp/paste2.c: Update test.
933 * objc/execute/paste.m: New test.
934
935 2000-11-20 Richard Henderson <rth@redhat.com>
936
937 * dwarf.h (FMT_CODE): Adjust argument order; fix mapping to
938 dwarf_subscr_data_formats bits.
939 * dwarfout.c (simple_type_size_in_bits): Handle a type with
940 no computed size as size zero.
941 (field_byte_offset): Likewise.
942 (subscript_data_attribute): Handle a range with no upper bound.
943
944 2000-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
945
946 * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
947
948 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
949
950 * c-typeck.c (build_conditional_expr): When merging type
951 qualifiers for conditional expressions between a pointer and a
952 pointer to a void type, merge the qualifiers on the target types
953 rather than the pointer type. Remove obsolete conditioned out
954 code.
955
956 2000-11-20 Neil Booth <neilb@earthling.net>
957
958 * c-lang.c (lang_init_options): Update call to
959 cpp_reader_init.
960 * cppmain.c (main): Similarly.
961 * fix-header.c (read_scan_file): Similarly.
962 * cp/lex.c (lang_init_options): Similarly.
963 * objc/objc-act.c (lang_init_options): Similarly.
964 * cppexp.c (parse_number): Only warn for unextended C89.
965 * cppinit.c (set_lang): New function.
966 (cpp_reader_init): Take a LANG argument and pass it to set_lang.
967 (COMMAND_LINE_OPTIONS): New option std=c++98.
968 (cpp_handle_option): Use set_lang.
969 * cpplex.c (_cpp_lex_token): Warn pedantically if not C99.
970 * cppib.h (enum_c_lang): New enumeration. Update comments.
971
972 2000-11-20 Will Cohen <wcohen@redhat.com>
973
974 * calls.c (expand_call): Clear target only when target is in
975 hard register and current_function_check_memory_usage is set.
976
977 2000-11-20 Bernd Schmidt <bernds@redhat.co.uk>
978
979 * toplev.c (rest_of_compilation): Run optimize_mode_switching even
980 if not optimizing.
981 * sh.c (emit_sf_insn, emit_df_insn): Just call emit_insn.
982
983 2000-11-19 Richard Henderson <rth@redhat.com>
984
985 * crtstuff.c (force_to_data): Use array size 1 not 0.
986
987 * dwarf2out.c (simple_type_size_in_bits): Handle a type with
988 no computed size as size zero.
989 (field_byte_offset): Likewise.
990
991 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
992
993 * config.gcc: Fix another typo.
994
995 2000-11-19 Richard Henderson <rth@redhat.com>
996
997 * c-decl.c (grokdeclarator): Support flexible array members.
998 Use open-ended ranges for these and zero-length arrays.
999 * c-typeck.c (push_init_level): Validate the context of
1000 initialization of a zero-length array.
1001 * tree.c (int_fits_type_p): Be prepared for missing bounds.
1002 * varasm.c (array_size_for_constructor): New.
1003 (output_constructor): Use it for arrays of unspecified length.
1004 * extend.texi (Zero Length): Mention C99 flexible array members.
1005 Document initialization in a top-level struct as valid.
1006
1007 2000-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
1008
1009 * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
1010
1011 * alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
1012 stdarg and varargs functions.
1013
1014 2000-11-19 Zack Weinberg <zack@wolery.stanford.edu>
1015
1016 * gcc.c (process_command): Define 'j' variable when
1017 MODIFY_TARGET_NAME is defined.
1018
1019 2000-11-19 Richard Henderson <rth@redhat.com>
1020
1021 * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
1022
1023 2000-11-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1024
1025 * rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
1026 calculation and allocation.
1027
1028 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1029
1030 * builtins.c (c_getstr): Constify variable.
1031 * gmon-sol2.c (_mcleanup): Comment out #endif labels.
1032 * conflict.c (const_conflict_graph_arc): New typedef.
1033 (arc_hash, arc_eq): Avoid needlessly casting away const-ness.
1034 * cppmacro.c (builtin_macro): Likewise.
1035 * dwarf2out.c (output_comp_unit): Constify variable.
1036 * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
1037 * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
1038 * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
1039 away const-ness.
1040 * tradcpp.c (rescan, do_line, macroexpand, macarg): Use
1041 ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
1042 * varasm.c (const_str_htab_hash, const_str_htab_eq,
1043 compare_constant_1, record_constant_1): Constify.
1044
1045 2000-11-18 Richard Henderson <rth@redhat.com>
1046
1047 * c-decl.c (grokdeclarator): Special case the creation of an
1048 index for a zero-length array.
1049 * tree.c (build_index_type): Revert Oct 20 change.
1050
1051 2000-11-18 Marek Michalkiewicz <marekm@linux.org.pl>
1052
1053 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
1054 * config/avr/avr.c (jump_tables_size): New variable.
1055 (function_prologue): Initialize it as 0.
1056 (function_epilogue): Add it to function_size.
1057 (avr_output_addr_vec_elt): New function. Count words in jump
1058 tables in jump_tables_size. Move code ...
1059 * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
1060 Call avr_output_addr_vec_elt instead.
1061 * config/avr/avr.md (tablejump): Remove disabled define_expand.
1062
1063 2000-11-18 Mark Mitchell <mark@codesourcery.com>
1064
1065 * configure.in: Make --enable-new-gxx-abi the default.
1066 * configure: Likewise.
1067
1068 2000-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1069
1070 * Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
1071
1072 * tradcif.y: Include tradcpp.h. Constify. Make functions static.
1073 Move extern function declarations to tradcpp.h.
1074
1075 * tradcpp.c: Likewise.
1076
1077 * tradcpp.h: New file.
1078
1079 2000-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
1080
1081 * c-decl.c (check_for_loop_decls): New function.
1082 * c-parse.in (for_init_stmt): New.
1083 (select_or_iter_stmt): Use for_init_stmt.
1084 * c-tree.h (check_for_loop_decls): New declaration.
1085
1086 2000-11-18 Neil Booth <neilb@earthling.net>
1087
1088 * cppinit.c: Update comments.
1089 (cpp_reader_init): Make -imacro and -include use the standard
1090 #include "" search path.
1091 (do_includes): New function.
1092
1093 2000-11-18 Ben Elliston <bje@redhat.com>
1094
1095 * config/sh/crt1.asm (start_l): Move PC-relative move instruction
1096 out of a branch delay slot.
1097
1098 2000-11-17 Richard Henderson <rth@redhat.com>
1099
1100 * config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
1101 (ASM_SPEC): Disable and enable .mdebug based on -gstabs.
1102 (ASM_FILE_START): Only write out ecoff .file directive if
1103 emitting mdebug debugging.
1104
1105 2000-11-17 Richard Henderson <rth@redhat.com>
1106
1107 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New. Detect
1108 whether as accepts .file/.loc and produces dwarf2 line info.
1109 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if
1110 the assembler supports it.
1111 * config.in, configure: Regenerate.
1112
1113 2000-11-17 Richard Henderson <rth@redhat.com>
1114
1115 * fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.
1116
1117 2000-11-17 Jim Wilson <wilson@redhat.com>
1118
1119 * config/ia64/ia64.c (emit_insn_group_barriers, case CALL_INSN):
1120 Don't clear need_barrier is next_insn is a CALL_INSN, or has
1121 instruction type B or UNKNOWN.
1122
1123 2000-11-17 Neil Booth <neilb@earthling.net>
1124
1125 * cpperror.c (print_file_and_line): Don't display line number if 0.
1126
1127 2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
1128
1129 * ggc.h: Delete ggc_add_string_root and ggc_mark_string. Add
1130 digit_vector and digit_string.
1131 * stringpool.c (digit_vector): New.
1132 (ggc_alloc_string): Use digit_string.
1133
1134 * stmt.c (digit_strings): Delete.
1135 (init_stmt): Do not initialize digit_strings.
1136 (expand_asm_operands): Use ggc.h's digit_string macro.
1137 * toplev.c (mark_file_stack): Delete.
1138 (compile_file): Don't call init_tree_codes.
1139 (main): No need to make the file stack a GC root.
1140 * tree.c (init_tree_codes): Delete.
1141 * tree.h (init_tree_codes): Delete.
1142
1143 * c-lex.c: Don't include ggc.h.
1144 (mark_splay_tree_node, mark_splay_tree): Delete.
1145 (init_c_lex): No need to ggc_strdup string constant. Don't add
1146 file_info_tree to GGC roots.
1147 (cb_enter_file, cb_rename_file): No need to ggc_strdup
1148 ip->nominal_fname.
1149
1150 * Makefile.in (c-lex.o): No longer depends on $(GGC_H).
1151
1152 * dbxout.c (dbxout_init),
1153 dwarf2out.c (dwarf2out_line),
1154 ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
1155 varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
1156 xcoffout.c (xcoffout_source_file),
1157 i386.c (load_pic_register):
1158 Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
1159
1160 * except.c (create_rethrow_ref),
1161 profile.c (init_edge_profiler),
1162 toplev.c (compile_file),
1163 varasm.c (named_section, assemble_static_space,
1164 assemble_trampoline_template, output_constant_def, force_const_mem),
1165 i386.c (load_pic_register),
1166 ia64.c (ia64_encode_section_info),
1167 rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
1168 rs6000_emit_prologue, rs6000_emit_epilogue),
1169 rs6000.md (load_toc_aix_si, load_toc_aix_di):
1170 Change ggc_alloc_string (var, -1) to ggc_strdup (var).
1171
1172 * profile.c (output_func_start_profiler),
1173 tree.c (make_node),
1174 i386.c (load_pic_register): No need to ggc_strdup string constant.
1175
1176 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
1177
1178 * Makefile.in (config.status): Depend on config.gcc.
1179 * configure.in <for machine in $build $host $target>: Move
1180 contents of loop into config.gcc, removing autoconf quoting.
1181 Fix changequote bug for alpha*-*-vxworks*.
1182 * configure: Regenerate.
1183 * config.gcc: New.
1184
1185 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
1186
1187 * c-parse.in (if_prefix): Find the filename and line number at
1188 $-2 and $-1 respectively.
1189 * diagnostic.c (error_recursion): Add missing newline, use
1190 fputs, translate string.
1191
1192 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
1193
1194 * stringpool.c: New file.
1195 * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
1196 (ggc_alloc_string): Now in stringpool.o.
1197 * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
1198 * ggc.h: Delete prototype of ggc_add_string_root. #define
1199 ggc_add_string_root and ggc_mark_string to nothing. Prototype
1200 init_stringpool and stringpool_statistics.
1201 (ggc_alloc_string): Returns a const char *.
1202 * tree.c (hash_table, do_identifier_warnings): Delete.
1203 (init_obstacks): Don't initialize the identifier hash table.
1204 (get_identifier, maybe_get_identifier, start_identifier_warnings,
1205 set_identifier_size): Now in stringpool.c.
1206 * tree.h (struct tree_string): Constify pointer field.
1207 (approx_sqrt): Prototype.
1208
1209 * Makefile.in (stringpool.o): Add rule, mention in OBJS.
1210
1211 * toplev.c (approx_sqrt): New function.
1212 (compile_file): Call stringpool_statistics if mem_report is on.
1213 (main): Call init_stringpool.
1214
1215 * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
1216 (process_directive), c-typeck.c (constructor_asmspec, struct
1217 initializer_stack, start_init), except.c (create_rethrow_ref),
1218 stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
1219 (built_in_filename), varasm,c (in_named_name,
1220 assemble_static_space, struct constant_descriptor, struct
1221 deferred_string, struct pool_constant, force_const_mem),
1222 i386.c (pic_label_name, global_offset_table_name), rs6000.c
1223 (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
1224
1225 * c-common.c (combine_strings): Combine strings in scratch
1226 buffer, then pass to build_string.
1227 * optabs.c (init_libfuncs), profile.c (init_edge_profiler,
1228 output_func_start_profiler), stmt.c (init_stmt), alpha.c
1229 (alpha_need_linkage), arm.c (arm_encode_call_attribute),
1230 i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
1231 rs6000.c (rs6000_encode_section_info): Create string in
1232 scratch buffer, then pass to ggc_alloc_string.
1233
1234 * stmt.c (expand_asm_operands): If we must adjust the
1235 constraint strings, do so by creating a new one, not by
1236 modifying the old one in place. Constify some char *s.
1237 * config/pa/pa.c (hppa_encode_label): Drop unnecessary second
1238 argument. Create string in scratch buffer, then pass to
1239 ggc_alloc_string.
1240 * config/pa/pa-protos.h: Update prototype.
1241 * config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
1242 hppa_encode_label takes only one argument.
1243
1244 2000-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1245
1246 * mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not
1247 malloc/realloc.
1248
1249 * cpplib.c (glue_header_name): Likewise.
1250
1251 * fixincl.c (run_compiles, start_fixer): Likewise.
1252
1253 * fixlib.c (load_file_data): Likewise.
1254
1255 * mkdeps.c (munge): Likewise.
1256
1257 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
1258
1259 * defaults.h [EH_FRAME_SECTION_ASM_OP] (EH_FRAME_SECTION): Remove
1260 trailing ';'. Fix formatting.
1261
1262 2000-11-16 Jim Wilson <wilson@redhat.com>
1263
1264 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT, MASK_INLINE_DIV_THR):
1265 Shift masks left by one to avoid conflict.
1266
1267 * config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with
1268 DECL_EXTERNAL set.
1269
1270 2000-11-16 Nick Clifton <nickc@redhat.com>
1271
1272 * config/arm/arm.c (output_arm_prologue): Note nested functions.
1273 (arm_expand_prologue): For nested functions preserve the
1274 static chain register during stack frame creation.
1275
1276 * config/arm/arm.h (STATIC_CHAIN_REGNUM): Change to 12.
1277 (ARM_INITIAL_FRAME_ELIMINATION_OFFSET): For a nested function
1278 with a stack frame there is a 4 byte gap between the arg
1279 pointer and the hard frame pointer (used to preserve the
1280 static chain register during stack frame creation).
1281
1282 2000-11-16 DJ Delorie <dj@redhat.com>
1283
1284 * rtl.c (read_rtx): Provide suitable names for unnamed
1285 define_insn and define_insn_and_split patterns, based on file
1286 and line numbers.
1287
1288 2000-11-15 Neil Booth <neilb@earthling.net>
1289
1290 * cpplib.c (start_directive, end_directive): New functions.
1291 (_cpp_handle_directive, run_directive): Use them.
1292 (_cpp_handle_directive): Don't -Wtraditional on indented
1293 null directives.
1294 (_cpp_push_buffer): Don't re-clear was_skipping.
1295 * cpplib.h (struct cpp_reader): New member la_saved.
1296 * cppmacro.c (cpp_get_token): Don't interpret _Pragma in
1297 directives.
1298
1299 gcc.dg/cpp/_Pragma1.c: Update.
1300 gcc.dg/cpp/_Pragma2.c: New test.
1301
1302 2000-11-15 Mark Mitchell <mark@codesourcery.com>
1303
1304 * toplev.c (wrapup_global_declarations): Don't write out
1305 artificial static variables that aren't needed.
1306
1307 2000-11-15 Bernd Schmidt <bernds@redhat.co.uk>
1308
1309 * ia64.c (struct group): New structure.
1310 (last_group): New static array.
1311 (group_idx): New static variable.
1312 (emit_group_barrier_after, errata_find_address_regs, errata_emit_nops):
1313 New static functions.
1314 (emit_insn_group_barriers): Initialize and keep track of group_idx
1315 and last_group.
1316 Call errata_emit_nops if TARGET_B_STEP or TARGET_A_STEP.
1317 Replace all calls to emit_insn_after that emit a group barrier to use
1318 emit_group_barrier_after.
1319 * ia64.h (MASK_B_STEP): New.
1320 (other MASK_XXX macros): Renumbered.
1321 (TARGET_B_STEP): New.
1322 (TARGET_SWITCHES): Add -mb-step.
1323
1324 2000-11-15 Fred Fish <fnf@be.com>
1325
1326 * fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
1327 machines for which fixincludes is not needed.
1328 * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
1329
1330 2000-11-15 Jason Merrill <jason@redhat.com>
1331
1332 * diagnostic.c (finish_abort): New fn.
1333 (fancy_abort, error_recursion): Use it.
1334 * toplev.c (crash_signal): Likewise.
1335 * diagnostic.h: Declare it.
1336
1337 2000-11-13 Andrew Haley <aph@redhat.com>
1338
1339 * tree.c (build_type_no_quals): New function.
1340 * tree.h (build_type_no_quals): Declare.
1341 * c-common.c (c_get_alias_set): When considering type
1342 compatibility for pointer types, ignore cv-qualifiers anywhere in
1343 a pointer chain.
1344
1345 2000-11-15 Graham Stott <grahams@redhat.com>
1346
1347 * regrename.c (scan_rtx_rtx): Skip to the next chain on
1348 encountering a terminated chain.
1349
1350 2000-11-14 Mark Mitchell <mark@codesourcery.com>
1351
1352 * configure.in: Move check for V3 above check for C++ header-file
1353 directory.
1354 * configure: Regenerated.
1355
1356 2000-11-14 DJ Delorie <dj@redhat.com>
1357
1358 * config/v850/v850.c: Remove obstacks.
1359
1360 Tue Nov 14 21:54:31 2000 Marek Michalkiewicz <marekm@linux.org.pl> & Denis Chertykov <denisc@overta.ru>
1361
1362 * config/avr/avr.c (avr_case_values_threshold): New.
1363 (avr_override_options): Set it depending on options, make it large
1364 when not optimizing to work around "unable to generate reloads".
1365
1366 * config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
1367 (EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
1368 executable if not AVR_MEGA. Make sure jump tables are word-aligned.
1369 (JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
1370 (ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
1371 (avr_case_values_threshold): Declare as extern int.
1372 (CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.
1373
1374 * config/avr/avr.md (tablejump): Removed.
1375 (*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
1376 (*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
1377 index in the table, not multiplied by 2.
1378 (casesi): Change to match the above insns. Always enable.
1379
1380 * config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
1381 Change to expect the word address of the table, multiply it by 2
1382 here and not in the caller. Change "adiw" to faster "inc".
1383
1384 2000-11-14 Neil Booth <neilb@earthling.net>
1385
1386 * cppexp.c (parse_defined): Call cpp_get_token not
1387 _cpp_get_token.
1388 (lex): Similarly.
1389 * cpplex.c (cpp_output_line): Similarly.
1390 * cpplib.c (glue_header_name, do_line, do_ident,
1391 parse_answer, parse_assertion): Similarly.
1392 (_cpp_handle_diretive): Don't save to lookaheads
1393 when processing directives.
1394 * cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
1395 _cpp_get_token.
1396 (funlike_invocation_p): Don't save to lookaheads
1397 when pre-expanding arguments.
1398 (_cpp_get_token): Delete.
1399 (cpp_get_token): Merge contents of _cpp_get_token.
1400
1401 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1402
1403 * builtins.c (expand_builtin_setjmp): Set
1404 current_function_calls_setjmp.
1405 (expand_builtin_longjmp): Set current_function_calls_longjmp.
1406
1407 * config/sparc/sparc.md (builtin_setjmp_setup): New expand.
1408 (do_builtin_setjmp_setup): New insn.
1409
1410 Tue Nov 14 12:34:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1411
1412 * tree.c (get_unwidened): Use host_integerp and tree_low_cst.
1413 (int_fits_type_p): For variable bounds, call force_fit_type.
1414
1415 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1416
1417 * varasm.c (struct deferred_string): New structure.
1418 (const_str_htab): New variable.
1419 (STRHASH): New macro.
1420 (mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
1421 constr_str_htab_eq, const_str_htab_del): New functions.
1422 (output_constant_def): Add DEFER argument, defer string
1423 constants until mark_constant_pool time if requested.
1424 (mark_constant_pool): Walk the insn chain even if const_str_htab is
1425 not empty.
1426 (mark_constants): If a SYMBOL_REF for deferred string is found,
1427 output it and remove from hash table.
1428 (output_addressed_constants): Set DEFER to 0 in call to
1429 output_constant_def.
1430 * rtl.h (STRING_POOL_ADDRESS_P): Define.
1431 (output_constant_def): Adjust prototype.
1432 * expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.
1433
1434 2000-11-14 Chandrakala Chavva <cchavva@redhat.com>
1435
1436 * optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
1437 signed types if flag_trapv.
1438
1439 2000-11-14 Zack Weinberg <zack@wolery.stanford.edu>
1440
1441 * tradcpp.c, tradcif.y: Update FSF mailing address, delete
1442 reference to GPLv1.
1443
1444 2000-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
1445
1446 * c-common.h (CTI_C_SIZE_TYPE): Update comment.
1447
1448 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1449
1450 * varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
1451 to array of pool_constnat pointers.
1452 (struct pool_constant): Add next_sym and label members.
1453 (struct pool_sym): Remove.
1454 (init_varasm_status): Change pool_sym into pool_constant.
1455 (mark_pool_constant): Mark pc->label string as well.
1456 (mark_pool_sym_hash_table): Remove.
1457 (mark_varasm_status): Remove it from caller as well.
1458 (free_varasm_status): Don't free pool_sym structures.
1459 (force_const_mem): Don't allocate pool_sym structure, instead
1460 fill pool->label and chain it into rtx_sym hash table.
1461 (find_pool_constant, mark_constant_pool): Use pool_constant instead
1462 of pool_sym.
1463
1464 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1465
1466 * reload1.c (emit_input_reload_insns): Honour forcing of constants
1467 into memory by PREFERRED_RELOAD_CLASS NO_REGS.
1468
1469 2000-11-14 Michael Matz <matzmich@cs.tu-berlin.de>
1470
1471 * dominance.c: New file.
1472 * Makefile.in (OBJS): Add dominance.o.
1473
1474 * flow.c (compute_flow_dominators): Remove.
1475 (compute_immediate_dominators): Remove.
1476 (compute_immediate_postdominators): Remove.
1477 * basic-block.h: Remove their prototypes.
1478 (calculate_dominance_info): Add prototype.
1479
1480 * dce.c (eliminate_dead_code): Change calls to above functions.
1481 Don't compute dominators but only immediate dominators.
1482 * flow.c (flow_loops_find): Change callers.
1483 * gcse.c (compute_code_hoist_data): Likewise.
1484 * haifa-sched.c (schedule_insns): Likewise.
1485 * ifcvt.c (if_convert): Likewise.
1486 * ssa.c (convert_to_ssa): Likewise, and only compute immediate
1487 dominators.
1488
1489 2000-11-14 Richard Henderson <rth@redhat.com>
1490
1491 * stmt.c (warn_if_unused_value): Don't warn if the expression
1492 has side effects.
1493
1494 * c-typeck.c (c_sizeof): Fold result to c_size_type_node.
1495 (c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.
1496
1497 2000-11-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1498
1499 * loop.c (basic_induction_var): Revert accidental checkin.
1500
1501 2000-11-13 Hans-Peter Nilsson <hp@axis.com>
1502
1503 * c-lex.c (cb_leave_file): Harmonize conditions and order of
1504 statements to those of process_directive for (action == act_pop).
1505
1506 * collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS.
1507
1508 * local-alloc.c (equiv_init_movable_p): References to CC0 are not
1509 movable.
1510
1511 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1512
1513 * c-parse.in (stmts_and_decls): Deprecate use of label at end of
1514 compound statement.
1515
1516 2000-11-13 Neil Booth <neilb@earthling.net>
1517
1518 * cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF
1519 cases return without MI check.
1520 * cpplib.c (do_diagnostic): Take boolean of whether to
1521 print the directive name.
1522 (do_error, do_warning): Update.
1523 (do_pragma_dependency): Use it.
1524 * cpplib.h (VARARGS_FIRST): Delete.
1525 (struct cpp_token): Delete integer.
1526 * cppmacro.c (enter_macro_context): Move disabled check
1527 to _cpp_get_token.
1528 (_cpp_get_token): Simplify into a single loop.
1529
1530 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
1531
1532 * configure.in: Use 'test -f' not '[ -e'.
1533 * configure: Regenerated.
1534
1535 2000-11-13 DJ Delorie <dj@redhat.com>
1536
1537 * config/mn10300/mn10300.md (store_movm): Note which registers are
1538 really used or clobbered.
1539
1540 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1541
1542 * c-parse.in (ends_in_label): Remove from %union and %type.
1543 (decls, stmts, lineno_stmt_or_labels, xstmts,
1544 lineno_stmt_or_label, stmt_or_label): Remove.
1545 (stmts_and_decls, lineno_stmt_decl_or_labels_ending_stmt,
1546 lineno_stmt_decl_or_labels_ending_decl,
1547 lineno_stmt_decl_or_labels_ending_label,
1548 lineno_stmt_decl_or_labels_ending_error,
1549 lineno_stmt_decl_or_labels, compstmt_contents_nonempty,
1550 lineno_stmt, lineno_label): New.
1551 (compstmt_nostart): Use compstmt_contents_nonempty.
1552
1553 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1554
1555 * c-common.c (boolean_increment): New function.
1556 * c-common.h (enum c_tree_index): Add CTI_C_BOOL_TYPE,
1557 CTI_C_BOOL_TRUE and CTI_C_BOOL_FALSE.
1558 (c_bool_type_node, c_bool_true_node, c_bool_false_node): Define.
1559 (boolean_increment): Declare.
1560 * c-convert.c (convert): Allow for BOOLEAN_TYPE.
1561 * c-decl.c (init_decl_processing): Create boolean nodes.
1562 (finish_struct): Allow for _Bool bitfields.
1563 * c-parse.in (reswords): Add _Bool.
1564 (rid_to_yy): Allow for RID_BOOL.
1565 * c-typeck.c (default_conversion): Make booleans promote to int.
1566 (convert_arguments, build_unary_op, build_modify_expr,
1567 convert_for_assignment): Allow for booleans.
1568 * ginclude/stdbool.h: Make conforming to C99.
1569
1570 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1571
1572 * c-parse.in (c99_block_start, c99_block_end,
1573 c99_block_lineno_labeled_stmt): New.
1574 (simple_if, do_stmt_start): Use c99_block_lineno_labeled_stmt.
1575 (stmt): Split off selection and iteration statements into...
1576 (select_or_iter_stmt): New. Use c99_block_lineno_labeled_stmt.
1577
1578 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1579
1580 * invoke.texi (-Wtrigraphs, -fdump-translation-unit, -save-temps,
1581 -time): Update.
1582
1583 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
1584
1585 * arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
1586 Rewrite to avoid use of match_dup. Don't try to tie registers that
1587 are not in the same mode.
1588
1589 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1590
1591 * invoke.texi: Update lists of languages and suffixes supported.
1592
1593 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1594
1595 * configure.in: Take toplevel configure arguments from the
1596 environment to create configargs.h and substitute
1597 gcc_config_arguments, taking account of any existing configargs.h
1598 if reconfiguring.
1599 * configure: Regenerate.
1600 * gccbug.in: Include toplevel configure arguments in gccbug.
1601
1602 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
1603
1604 * varasm.c (struct constant_descriptor): Put CONTENTS inside a
1605 union to make it well-aligned. Update all uses.
1606
1607 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1608
1609 * c-parse.in (initelt): Give appropriate pedantic warnings,
1610 depending on flag_isoc99, for non-ISO syntax and for C99 syntax
1611 outside C99 mode.
1612 (designator): If pedantic, pedwarn for a designator specifying a
1613 range of elements.
1614 * c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
1615 these cases.
1616 * extend.texi: Document the C99 syntax as the preferred syntax,
1617 and the pre-2.5 syntax as obsolete. Mention use of designator
1618 lists for nested subobjects.
1619
1620 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1621
1622 * diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
1623 Add ATTRIBUTE_PRINTF.
1624 * tradcpp.c (v_message, warning, error, fatal, error_with_line):
1625 Add ATTRIBUTE_PRINTF*.
1626
1627 2000-11-12 Mark Mitchell <mark@codesourcery.com>
1628
1629 * function.c (assign_parms): When calling put_var_into_stack, make
1630 sure that there are no hidden pending sequences.
1631
1632 2000-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1633
1634 * builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
1635 BUILT_IN_RINDEX. Add missing checks for BUILT_IN_STRCHR and
1636 BUILT_IN_STRRCHR.
1637
1638 * builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.
1639
1640 * c-common.c (c_common_nodes_and_builtins): Declare index and
1641 rindex when nonansi builtins are allowed.
1642
1643 * extend.texi (index, rindex): Document new builtins.
1644
1645 2000-11-12 Mark Mitchell <mark@codesourcery.com>
1646
1647 * configure.in: Turn on libstdc++ V3 by default.
1648 * configure: Regenerated.
1649
1650 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
1651
1652 2000-11-12 Jakub Jelinek <jakub@redhat.com>
1653
1654 * reload1.c (set_label_offsets): Go inside of PARALLELs.
1655
1656 2000-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
1657
1658 * invoke.texi: Clean up option summary.
1659
1660 2000-11-12 Nick Clifton <nickc@redhat.com>
1661
1662 * config/mcore/mcore.c: Fix comment formating, and adjust sequence
1663 of #include headers.
1664
1665 2000-11-12 Marc Espie <espie@openbsd.org>
1666
1667 * configure.in: Fix filds test.
1668 * configure: Regen.
1669
1670 2000-11-12 Mark Mitchell <mark@codesourcery.com>
1671
1672 * jump.c (delete_computation): Don't assume that just becuase an
1673 instruction sets a register, that register is dead.
1674
1675 2000-11-12 Neil Booth <neilb@earthling.net>
1676
1677 * cppexp.c: Don't worry about pfile->skipping.
1678 * cpplib.c (struct if_stack): Make was_skipping unsigned char.
1679 (cpp_handle_directive): Save pfile->skipping in struct cpp_buffer
1680 for handled directives.
1681 (skip_rest_of_line): Use _cpp_lex_token after popping contexts
1682 and releasing lookaheads.
1683 (do_ifdef, do_ifndef, do_if): Use buffer->was_skipping.
1684 (do_else, do_elif, push_conditional): Update logic.
1685 (do_endif): Set buffer->was_skipping rather than pfile->skipping.
1686 (unwind_if_stack): Inline into cpp_pop_buffer.
1687 (cpp_push_buffer): Clear ifs->was_skipping for cpp_handle_directive.
1688 * cpplex.c (_cpp_lex_token): Clear skipping on EOF. Handle
1689 multiple-include optimisation.
1690 * cpplib.h (struct cpp_buffer): New member was_skipping.
1691 * cppmacro.c (_cpp_get_token): Loop whilst pfile->skipping. This
1692 works because skipping == 0 in directives.
1693 (_cpp_release_lookahead): Renamed from release_lookahead.
1694 (cpp_get_token): No need to check skipping as _cpp_get_token does
1695 this for us. No need to handle MI optimisation.
1696
1697 Sat Nov 11 21:14:02 2000 Mark P Mitchell <mark@codesourcery.com>
1698
1699 * fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
1700 declarations that use `__MATH_EXCEPTION' in their prototypes, too.
1701 * fixinc/fixincl.x: Regenerated.
1702
1703 2000-11-11 Bruce Korb <bkorb@gnu.org>
1704
1705 * fixinc/inclhack.def (avoid_bool_type): avoid commenting out #endif
1706 (avoid_wchar_t_type): ditto
1707 * fixinc/fixinc.irix: obsoleted
1708
1709 2000-11-11 Zack Weinberg <zack@wolery.stanford.edu>
1710
1711 * configure.in: Don't add $outputs to all_lang_makefiles. Add
1712 $srcdir/$s/Makefile.in if it exists.
1713 * configure: Regenerate.
1714
1715 Sat Nov 11 18:41:20 2000 Mark P Mitchell <mark@codesourcery.com>
1716
1717 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
1718
1719 2000-11-11 Jason Merrill <jason@redhat.com>
1720
1721 * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to
1722 give the parm a register and then call put_var_into_stack.
1723 * stmt.c (expand_decl): Likewise.
1724
1725 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
1726
1727 * gcc.texi: Adjust wording.
1728
1729 2000-11-11 Mark Mitchell <mark@codesourcery.com>
1730
1731 * fixinc/inclhack.def (avoid_wchar_t_type): New fix.
1732 * fininc/fixincl.x: Regenerated.
1733
1734 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
1735
1736 * invoke.texi: Correct spelling of -foptimize-register-move.
1737
1738 2000-11-11 Neil Booth <neilb@earthling.net>
1739
1740 Remove CPP_PLACEMARKERs.
1741
1742 * cppexp.c (lex): Don't handle CPP_PLACEMARKER.
1743 * cpplex.c (_cpp_lex_token): Rename skip_newlines to next_bol
1744 * cpplib.c (skip_rest_of_line, check_eol, cpp_push_buffer):
1745 Similarly.
1746 * cpplib.h: Remove CPP_PLACEMARKER.
1747 (struct lexer_state): Rename skip_newlines to next_bol.
1748 * cppmacro.c (stringify_arg): Don't handle CPP_PLACEMARKER.
1749 Simplify prev_white handling as a result.
1750 (paste_all_tokens): Don't worry about CPP_PLACEMARKERs.
1751 (parse_arg): Empty arguments are now empty, not CPP_PLACEMARKERs.
1752 (parse_args): Similarly. Update argument count tests.
1753 (enter_macro_context): Return 2 to indicate an empty macro.
1754 (replace_args): Don't bother pre-expanding an empty argument.
1755 Handle placemarkers and ## extension during pre-expansion.
1756 (cpp_get_token): Handle empty macro expansions. Don't worry
1757 about CPP_PLACEMARKERs.
1758 (_cpp_create_definition): Empty macros are now empty.
1759 (cpp_macro_defintion): Don't special case empty macros.
1760 * scan-decls.c: Don't bother with CPP_PLACEMARKERs.
1761 * c-lex.c: Similarly.
1762
1763 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
1764
1765 * gcc.texi, invoke.texi: Add new section discussing language
1766 standards; link to it where appropriate; refer to ISO C instead of
1767 ANSI C.
1768
1769 2000-11-11 Alexandre Oliva <aoliva@redhat.com>
1770
1771 * builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY
1772 into account.
1773
1774 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP
1775 modes.
1776
1777 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
1778
1779 * gcc.texi, gcov.texi: Update dates and version numbers.
1780
1781 2000-11-10 Zack Weinberg <zack@wolery.stanford.edu>
1782
1783 * configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
1784 flex and bison, specifically, first in a unified build and
1785 then installed on the system.
1786 * Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
1787 LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
1788 match.
1789
1790 (collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
1791 cppdefault.o): Remove pointless sed munging of source file
1792 name.
1793
1794 2000-11-10 Bernd Schmidt <bernds@redhat.co.uk>
1795
1796 * reload.c (find_reloads_address_1, case POST_MODIFY): Use RELOAD_OTHER
1797 for address reloads. Push replacements for REG_INC notes.
1798 (regno_clobbered_p): New arg SETS. Examine SETs if it's nonzero. All
1799 callers changed.
1800 * reload1.c (choose_reload_regs): Registers set in the insn can't be
1801 used for RELOAD_OTHER reloads.
1802
1803 2000-11-10 Mark Mitchell <mark@codesourcery.com>
1804
1805 * c-dump.h: New file.
1806
1807 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1808
1809 * alpha.c (check_float_value): Use memcpy, not bcopy.
1810 * arm.c (output_move_double): Likewise.
1811 * arm.md: Likewise.
1812 * m88k.c (legitimize_operand): Likewise.
1813 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
1814 * m88k.md: Likewise.
1815 * mips.c (override_options): Likewise.
1816 * mips.md: Likewise.
1817 * romp.c (output_fpops): Likewise.
1818 * rs6000.c (rs6000_override_options): Likewise.
1819 * sh.md: Likewise.
1820 * vax.c (check_float_value): Likewise.
1821
1822 * emit-rtl.c (copy_rtx_if_shared, init_emit_once): Likewise.
1823 * expmed.c (synth_mult): Likewise.
1824 * final.c (add_bb_string): Likewise.
1825 * genattr.c (main): Likewise.
1826 * genattrtab.c (attr_string, simplify_cond, copy_rtx_unchanging):
1827 Likewise.
1828 * jump.c (thread_jumps): Likewise.
1829 * prefix.c (save_string): Likewise.
1830 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Likewise.
1831 * regclass.c (init_reg_sets, init_reg_sets_1): Likewise.
1832 * reload1.c (reload, eliminate_regs): Likewise.
1833
1834 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
1835
1836 * gcc.texi (Service): Update to reflect current practice and
1837 location of the GNU service directory.
1838
1839 2000-11-09 Bernd Schmidt <bernds@redhat.co.uk>
1840
1841 * regrename.c (build_def_use): Mark contents of REG_INC notes as
1842 needing replacement.
1843
1844 * config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Emit
1845 a no-op move if regs are equal.
1846 * toplev.c (rest_of_compilation): Do the noop moves elimination pass
1847 when calling jump after post-reload splitting.
1848
1849 2000-11-09 Jan van Male <jan.vanmale@fenk.wau.nl>
1850
1851 * c-tree.texi: Fix typos.
1852 * extend.texi: Likewise
1853 * gcov.texi: Likewise
1854 * rtl.texi: Likewise
1855 * tm.texi: Likewise
1856
1857 2000-11-09 Hans-Peter Nilsson <hp@axis.com>
1858
1859 * c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
1860 in_system_header and flags[1] before dereferencing flags[2].
1861
1862 2000-11-09 Matthew Hiller <hiller@redhat.com>
1863
1864 * reload1.c (reload_combine): Fixed calculation of
1865 first_index_reg, last_index_reg.
1866
1867 2000-11-09 Mark Mitchell <mark@codesourcery.com>
1868
1869 * c-dump.c (dequeue_and_dump): Dump function bodies.
1870
1871 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
1872 (c-dump.o): New target.
1873 * c-common.h (flag_dump_translation_unit): New variable.
1874 (C_TYPE_QUALS): New macro.
1875 (strip_array_types): New function.
1876 (DECL_C_BIT_FIELD): New macro.
1877 (SET_DECL_C_BIT_FIELD): Likewise.
1878 (CLEAR_DECL_C_BIT_FIELD): Likewise.
1879 (dump_info_p): New typedef.
1880 (dump_tree_fn): Likewise.
1881 (lang_dump_tree): New variable.
1882 (dump_node_to_file): New function.
1883 * c-common.c (flag_dump_translation_unit): Define it.
1884 (strip_array_types): New function.
1885 * c-decl.c (c_decode_option): Handle -fdump-translation-unit.
1886 * c-lang.c (finish_file): Call dump_node_to_file if
1887 flag_dump_translation_unit.
1888 * c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
1889 * c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
1890 * c-dump.c: New file.
1891
1892 2000-11-09 Christopher Faylor <cgf@cygnus.com>
1893
1894 * config/i386/cygwin.h: Add mingw startfile prefix.
1895
1896 2000-11-09 Richard Henderson <rth@redhat.com>
1897
1898 * flow.c (invalidate_mems_from_set): Split out from ...
1899 (mark_set_1): ... here.
1900 (try_pre_increment_1): Use it. Use propagate_block_delete_insn
1901 instead of turning insn into a NOTE_INSN_DELETED.
1902
1903 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
1904
1905 * extend.texi, invoke.texi: Move documentation of builtin versions
1906 of C library functions to one place and update.
1907
1908 2000-11-09 Richard Henderson <rth@redhat.com>
1909
1910 * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
1911 the types themselves to discover type equivalence.
1912
1913 2000-11-09 Mike Stump <mrs@wrs.com>
1914
1915 * Makefile.in (distclean): Remove a few extra leftovers.
1916
1917 2000-11-09 Richard Henderson <rth@redhat.com>
1918
1919 * recog.c (validate_replace_rtx_1): Consider subregs when
1920 replacing a register with a constant inside a sign/zero_extend.
1921
1922 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1923
1924 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
1925
1926 * c-decl.c (finish_struct): When a structure is completed,
1927 check all its variant types for completeness.
1928
1929 2000-11-09 Neil Booth <neilb@earthling.net>
1930
1931 * cpphash.c: Move cpp_defined here from cpplib.c.
1932 * cpplib.c: Update comments, move cpp_defined to cpphash.c.
1933 * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
1934 * cppmacro.c (cpp_get_token): Update comments, no need now
1935 to catch the CPP_EOF meaning EOL case.
1936
1937 2000-11-08 Geoffrey Keating <geoffk@redhat.com>
1938
1939 * config/sparc/sparc.c (sparc_va_arg): When the required alignment
1940 is more than that provided, copy to a temporary.
1941
1942 2000-11-09 Alexandre Oliva <aoliva@redhat.com>
1943
1944 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
1945 interpreting $out as a macro assignment.
1946 * Makefile.in (T_TARGET): New auxiliary macro and target.
1947 (all): Add a target right in the beginning, so that we don't build
1948 T_TARGET by default.
1949
1950 2000-11-09 Graham Stott <grahams@redhat.com>
1951
1952 * config/i386/i386.md (mmx_pinsrw): Output operands in correct
1953 order for -mintel-syntax. Remove comment now that the operand
1954 order has been checked.
1955 (mmx_pextrw): Likewise.
1956 (mmx_pshufw): Likewise.
1957
1958 2000-11-09 Jakub Jelinek <jakub@redhat.com>
1959
1960 * builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
1961 (c_getstr): New function.
1962 (expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
1963 If both arguments are constant string, optimize out.
1964 (expand_builtin_strchr, expand_builtin_strrchr): New functions.
1965 (expand_builtin_strpbrk): Use c_getstr, do nothing if
1966 -fcheck-memory-usage.
1967 (expand_builtin_fputs): Likewise.
1968 (expand_builtin_strcmp): Add MODE argument.
1969 Use even if !HAVE_cmpstrsi.
1970 Optimize the case when both arguments are constant strings.
1971 (expand_builtin): Adjust expand_builtin_strcmp caller.
1972 Call expand_builtin_strchr and expand_builtin_strrchr.
1973 * c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
1974 builtins.
1975 * builtins.def (BUILT_IN_STRRCHR): Add.
1976
1977 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1978
1979 * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
1980
1981 2000-11-09 Joseph S. Myers <jsm28@cam.ac.uk>
1982
1983 * calls.c (expand_call, emit_library_call_value_1), collect2.c
1984 (scan_prog_file), config/a29k/a29k.c (print_operand),
1985 config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
1986 instead of bcopy ().
1987 * real.h: Use memcmp () instead of bcmp ().
1988 * config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
1989 (split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
1990 ultrasparc_sched_init, ultrasparc_sched_reorder),
1991 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
1992 instead of bzero ().
1993 * config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
1994 instead of rindex ().
1995 * configure.in: Don't check for bzero, bcmp, index or rindex.
1996 * configure, config.in: Regenerate.
1997 * system.h: Don't include declarations for bzero, bcmp, index or
1998 rindex.
1999 * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
2000 bzero, bcmp, index or rindex.
2001
2002 Wed Nov 8 21:58:20 2000 Christopher Faylor <cgf@cygnus.com>
2003
2004 * config/i386/cygwin.h: Add -no-win32 switch. Separate -mno-cygwin
2005 include and library paths from -mcygwin case. Parameterize some
2006 declarations to avoid warnings. Use standard locations for include and
2007 lib dirs.
2008
2009 2000-11-08 Nick Clifton <nickc@redhat.com>
2010
2011 * config/arm/arm.md (mulsidi3adddi): Change output operand
2012 constraint from "=&" to "+&".
2013 (umulsidi3adddi): Change output operand constraint from "=&" to
2014 "+&".
2015
2016 2000-11-08 Richard Henderson <rth@redhat.com>
2017
2018 * flow.c (init_propagate_block_info): Protect the rtx stored in
2019 mem_set_list from modification by find_auto_inc.
2020 (mark_set_1): Likewise.
2021
2022 2000-11-08 Neil Booth <neilb@earthling.net>
2023
2024 Move directive handling into the lexer itself.
2025
2026 * cpplex.c (_cpp_lex_token): Handle directives directly.
2027 In the case of a directive interrupting a function-like
2028 macro invocation, use extra_char since read_ahead is
2029 used to store the '#'. Return a CPP_EOF in this case.
2030 * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
2031 (cpp_get_token): Don't handle directives here.
2032 * cpplib.h: Remove CPP_DHASH token type.
2033
2034 Wed Nov 8 21:53:41 MET 2000 Jan Hubicka <jh@suse.cz>
2035
2036 * regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
2037 formed using PRE_MODIFY too.
2038
2039 2000-11-08 Mark Mitchell <mark@codesourcery.com>
2040
2041 * c-tree.texi (VAR_DECL): Describe representation of GCC's
2042 extension for placing variables in particular registers.
2043
2044 * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
2045 unprototyped C functions with no parameters.
2046
2047 2000-11-08 Jakub Jelinek <jakub@redhat.com>
2048
2049 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
2050 before passing to fprintf.
2051
2052 2000-11-08 Jakub Jelinek <jakub@redhat.com>
2053
2054 * function.c (expand_function_start): Cast GET_MODE_SIZE to
2055 HOST_WIDE_INT before negating it.
2056
2057 2000-11-08 Jakub Jelinek <jakub@redhat.com>
2058
2059 * expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
2060 passed in multiple non-contiguous locations.
2061
2062 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2063
2064 * README.gnat: Remove file.
2065
2066 2000-11-08 Alexandre Oliva <aoliva@redhat.com>
2067
2068 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
2069 in-place.
2070
2071 2000-11-07 Richard Henderson <rth@redhat.com>
2072
2073 * dwarfout.c (INSN_LABEL_FMT): Remove.
2074 (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
2075 (dwarfout_label): Remove.
2076 * dwarfout.h: Remove it's prototype.
2077 * dwarf2out.c (INSN_LABEL_FMT): Remove.
2078 (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
2079 (dwarf2out_label): Remove.
2080 * dwarf2out.h: Remove it's prototype.
2081 * final.c (final_scan_insn): Don't call dwarf[2]out_label.
2082
2083 2000-11-07 Richard Henderson <rth@redhat.com>
2084
2085 * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
2086 search on the unwind region section.
2087
2088 * config/ia64/ia64.md (movbi): Add r/r alternative.
2089 (cmovdi_internal_astep): Describe all combinations of register
2090 classes for sources & destinations; remove matching constraints.
2091 (cmovdi_internal): Likewise.
2092
2093 * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
2094
2095 2000-11-07 Richard Henderson <rth@redhat.com>
2096
2097 * c-lang.c (start_cdtor, finish_cdtor): New functions.
2098 (finish_file): Use them in building constructor/destructor functions.
2099
2100 * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
2101 LD_FINI_SWITCH): Move ...
2102 * config/alpha/osf.h: ... here.
2103 * config/alpha/alpha-interix.h: Don't undef them.
2104
2105 2000-11-07 Jeffrey Oldham <oldham@oz.codesourcery.com>
2106
2107 * config/mips/t-iris6 (FPBIT): New. Added so that __unorddf2 is
2108 included in libgcc.a.
2109 (DPBIT): Likewise.
2110 (dp-bit.c): Likewise.
2111 (fp-bit.c): Likewise.
2112
2113 2000-11-07 Nick Clifton <nickc@redhat.com>
2114
2115 * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
2116 (INTERNAL_ASM_OP): Add missing tab.
2117
2118 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
2119
2120 * alias.c (init_alias_analysis), calls.c (expand_call,
2121 emit_library_call_value_1), combine.c (init_reg_last_arrays),
2122 cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
2123 (init_output_buffer, set_diagnostic_context), dwarf2out.c
2124 (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
2125 (init_emit_once), fold-const.c (mul_double, div_and_round_double),
2126 function.c (assign_parms), gcse.c (compute_can_copy,
2127 alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
2128 compute_hash_table, compute_set_hash_table,
2129 compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
2130 (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
2131 clear_units, schedule_block), integrate.c (initialize_for_inline,
2132 expand_inline_function), jump.c (thread_jumps), local-alloc.c
2133 (local_alloc), loop.c (combine_movables, count_loop_regs_set,
2134 load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
2135 regclass.c (init_reg_sets, init_reg_sets_1, regclass,
2136 record_reg_classes, allocate_reg_info), reload.c
2137 (get_secondary_mem, remove_address_replacements, find_reloads),
2138 reload1.c (reload, set_initial_label_offsets, finish_spills,
2139 reload_as_needed, choose_reload_regs_init,
2140 reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
2141 (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
2142 (rename_registers), stmt.c (expand_end_case), unroll.c
2143 (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
2144 () instead of bzero ().
2145
2146 2000-11-07 Neil Booth <neilb@earthling.net>
2147
2148 * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
2149
2150 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2151
2152 * c-common.c (combine_strings): Only warn about long strings for C.
2153
2154 Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
2155
2156 * combine.c (distribute_notes): Fix typo in last change.
2157
2158 2000-11-07 Geoff Keating <geoffk@redhat.com>
2159
2160 * config/rs6000/rs6000.md (movdi_internal32+1): Use
2161 operand_subreg_force rather than gen_rtx_SUBREG.
2162 (movdi_internal32+2): Likewise.
2163
2164 2000-11-07 Philip Blundell <philb@gnu.org>
2165
2166 * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
2167 * config/arm/linux-aout.h: Likewise.
2168 * configure: Regenerate.
2169
2170 2000-11-07 Philipp Thomas <pthomas@suse.de>
2171
2172 * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
2173 accepted my the gettext maintainer.
2174
2175 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2176
2177 * builtins.c (expand_builtin_strpbrk): New function.
2178 (expand_builtin): Handle BUILT_IN_STRPBRK.
2179
2180 * builtins.def (BUILT_IN_STRPBRK): New entry.
2181
2182 * c-common.c (c_common_nodes_and_builtins): Declare builtin
2183 strpbrk.
2184
2185 2000-11-07 David O'Brien <obrien@dragon.nuxi.com>
2186
2187 * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
2188 * POTFILES.in: Add config/alpha/freebsd.h
2189 * configure.in: Add alpha*-freebsd support.
2190 * configure: Regenerate.
2191
2192 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
2193
2194 * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
2195 copy of ptr_type_node rather than ptr_type_node itself.
2196
2197 Tue Nov 7 06:29:24 2000 J"orn Rennecke <amylaar@redhat.com>
2198
2199 * combine.c (recog_for_combine): Allocate uninitialized vector with
2200 rtvec_alloc.
2201 * recog.c (apply_change_group): Likewise.
2202
2203 Tue Nov 7 06:24:02 2000 J"orn Rennecke <amylaar@redhat.com>
2204
2205 * flow.c (verify_local_live_at_start): Back out last change.
2206 * combine.c (distribute_notes): When parts of a hard reg are
2207 neither set nor referenced in PLACE, search backwards for a
2208 place to put a REG_UNUSED note; if none found, ask for flow
2209 info refresh.
2210
2211 Mon Nov 6 20:08:13 2000 J"orn Rennecke <amylaar@redhat.com>
2212
2213 * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
2214 with (clobber (match_scratch...)).
2215
2216 2000-11-06 Neil Booth <neilb@earthling.net>
2217
2218 * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
2219 error status.
2220
2221 2000-11-06 Neil Booth <neilb@earthling.net>
2222
2223 * tradcpp.c (special_symbol): Assign an null string rather
2224 than writing to an unallocated buffer.
2225
2226 2000-11-06 Neil Booth <neilb@earthling.net>
2227
2228 * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
2229 CPP_MACRO_ARG case.
2230
2231 2000-11-06 Neil Booth <neilb@earthling.net>
2232
2233 * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
2234 tok.val.arg_no as appropriate.
2235 * cppexp.c (lex): Similarly.
2236 * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
2237 cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
2238 * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
2239 cpp_macro_definition): Similarly.
2240 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
2241
2242 2000-11-06 Jakub Jelinek <jakub@redhat.com>
2243
2244 * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
2245 operands[1] is constant, calculate the sum and generate movdi.
2246 (addsi3): Similarly. Use SImode in call to arith_4096_operand.
2247 (subsi3): Use SImode in call to arith_4096_operand.
2248
2249 2000-11-06 Jakub Jelinek <jakub@redhat.com>
2250
2251 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
2252 adjust %o1, not %o0 if the return type is large structure.
2253
2254 2000-11-06 Jakub Jelinek <jakub@redhat.com>
2255
2256 * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
2257 update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
2258
2259 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
2260
2261 * expmed.c (expand_divmod): For signed divide by 2, prefer
2262 a branch and fewer shifts if branches are very cheap.
2263
2264 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
2265
2266 * Makefile.in: Remove all targets related to building
2267 distributions and diffs, or INSTALL.
2268 * INSTALL, install1.texi: Remove.
2269 * configure.in: Remove mention of distdir.
2270 * configure: Regenerate.
2271 * objc/Make-lang.in: Remove mention of distdir.
2272
2273 2000-11-04 Neil Booth <neilb@earthling.net>
2274
2275 * cpp.texi: Update for _Pragma.
2276
2277 2000-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
2278
2279 * gcc.texi (Contributing): Update URL for projects web page.
2280
2281 2000-11-04 Neil Booth <neilb@earthling.net>
2282
2283 * cpplex.c (parse_string): Don't allow multiline strings in
2284 #include family directives.
2285
2286 2000-11-04 Neil Booth <neilb@earthling.net>
2287
2288 * cpplib.c (do_line): Only warn pedantically if not reading
2289 preprocessed input.
2290
2291 2000-11-04 Alexandre Oliva <aoliva@redhat.com>
2292
2293 * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
2294 RETURN_POPS_ARGS().
2295
2296 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
2297
2298 * builtins.c (expand_builtin_strlen): Remove unused mode
2299 argument.
2300 * gcc.c (process_command): Remove unused variable.
2301 * fold-const.c: Include expr.h.
2302 * recog.c: Include reload.h.
2303 * Makefile.in (recog.o, fold-const.o): Update deps.
2304
2305 2000-11-02 Geoffrey Keating <geoffk@cygnus.com>
2306
2307 * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
2308
2309 Fri Nov 3 13:41:04 2000 Mark P Mitchell <mark@codesourcery.com>
2310
2311 * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
2312 handling.
2313 (STARTFILE_SPEC): Likewise.
2314 (LINK_SPEC): Likewise.
2315
2316 2000-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2317
2318 * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
2319 (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
2320 (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
2321
2322 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
2323
2324 * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
2325 (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
2326 perm_calloc, get_identifier, maybe_get_identifier,
2327 real_value_from_int_cst, simple_cst_equal), varasm.c
2328 (assemble_name, assemble_real, immed_real_const_1,
2329 compare_constant_1, decode_rtx_const, output_constant_pool): Use
2330 strrchr () instead of rindex (). Use memcmp () instead of bcmp
2331 (). Use memcpy () instead of bcopy (). Use memset () instead of
2332 bzero ().
2333
2334 2000-11-03 Nathan Sidwell <nathan@codesourcery.com>
2335
2336 * cppfiles.c (open_file): If already read, then don't reopen.
2337 Immediately close an empty file.
2338
2339 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
2340
2341 * expr.h (fold_builtin): Move declaration...
2342 * tree.h (fold_builtin): ... here.
2343
2344 Fri Nov 3 05:41:07 2000 J"orn Rennecke <amylaar@redhat.com>
2345
2346 * flow.c (verify_local_live_at_start): Allow hard regs to die.
2347
2348 2000-11-02 Neil Booth <neilb@earthling.net>
2349
2350 config:
2351 * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
2352 alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
2353 alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
2354 alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
2355 arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2356 arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
2357 c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
2358 elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
2359 i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
2360 i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
2361 i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
2362 i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
2363 i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
2364 i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
2365 i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
2366 i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
2367 i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
2368 i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
2369 i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
2370 i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
2371 i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
2372 ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
2373 m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
2374 m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
2375 m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
2376 m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
2377 m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
2378 m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
2379 m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
2380 m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
2381 m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
2382 m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
2383 mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
2384 mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
2385 mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
2386 mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
2387 mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
2388 mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
2389 ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
2390 ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
2391 pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
2392 pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
2393 romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
2394 rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
2395 rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
2396 rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
2397 sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
2398 sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
2399 sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
2400 sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
2401 sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
2402 sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
2403 sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
2404 v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
2405 vax/vaxv.h, vax/vms.h, we32k/we32k.h
2406
2407 Replace -A() with -A=, the new assertion syntax.
2408
2409 Thu Nov 2 21:52:35 2000 J"orn Rennecke <amylaar@redhat.com>
2410
2411 * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
2412 elim_i1.
2413 In REG_DEAD handling: When handling parts of multi-hard-reg hard
2414 registers, increment the loop counter by the size of the parts;
2415 use recursion to handle individual parts.
2416
2417 2000-11-02 Neil Booth <neilb@earthling.net>
2418
2419 * configure.in: Make integrated CPP the default.
2420 * configure: Regenerate.
2421
2422 Thu Nov 2 19:20:12 2000 J"orn Rennecke <amylaar@redhat.com>
2423
2424 * reload.c (find_equiv_reg): Test all hard registers for membership
2425 in the requested class.
2426
2427 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
2428
2429 * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
2430 process_command, main), gcov.c (open_files, output_data), tlink.c
2431 (frob_extension, scan_linker_output), toplev.c
2432 (file_name_nondirectory): Use strchr () and strrchr () instead of
2433 index () and rindex ().
2434
2435 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
2436
2437 * c-common.c (get_flag_spec, check_format_info_main,
2438 check_format_types): Use strchr () instead of index (). Compare
2439 against error_mark_node instead of comparing the TREE_CODE against
2440 ERROR_MARK.
2441
2442 2000-11-02 Zack Weinberg <zackw@Stanford.EDU>
2443
2444 Integrated CPP.
2445
2446 * c-lex.c (init_c_lex): Update cpp_start_read call.
2447 (cb_ident): Update for new callback prototype.
2448 (cb_def_pragma): Update for new cpp_get_token prototype.
2449 (c_lex): Similarly. Use cpp_get_line.
2450
2451 * c-parse.in (finish_parse): Update for new cpp_finish
2452 prototype.
2453
2454 * cp/lex.c (finish_parse): Similarly.
2455
2456 2000-11-01 Geoff Keating <geoffk@cygnus.com>
2457
2458 * machmode.def: Add V16QImode.
2459
2460 2000-11-01 Richard Henderson <rth@redhat.com>
2461
2462 * dwarf2out.c (loc_descriptor_from_tree): Check for null result
2463 from rtl_for_decl_location.
2464 (add_location_or_const_value_attribute): Likewise.
2465
2466 2000-11-01 Neil Booth <neilb@earthling.net>
2467
2468 * cpplib.c (run_directive): Use correct line number for output
2469 of _Pragma. Remember any in-progress directive.
2470
2471 * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
2472
2473 2000-11-01 Richard Henderson <rth@redhat.com>
2474
2475 * stmt.c (expand_start_null_loop): Set continue_label.
2476
2477 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
2478
2479 * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
2480 (expand_builtin_constant_p): Move parts of the code into
2481 fold_builtin_constant_p.
2482 (expand_builtin_strlen): Move parts of the code into fold_builtin.
2483 * expr.h (fold_builtin): Declare.
2484 * fold-const.c (fold): Handle builtin calls.
2485
2486 * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
2487
2488 2000-11-01 Richard Henderson <rth@redhat.com>
2489
2490 * stmt.c (expand_start_null_loop): New.
2491 (expand_end_null_loop): New.
2492 * c-semantics.c (genrtl_do_stmt): Use them.
2493 * tree.h: Declare them.
2494
2495 2000-11-01 Richard Henderson <rth@redhat.com>
2496
2497 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
2498
2499 2000-11-01 Neil Booth <neilb@earthling.net>
2500
2501 * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
2502 * cp/spew.c: Similarly.
2503 * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
2504 * cppmacro.c (stringify_arg): Similarly.
2505 * cpplib.h (CPP_BACKSLASH): Delete.
2506
2507 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2508
2509 * builtins.c (expand_builtin_strstr): New function.
2510 (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
2511
2512 * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
2513
2514 * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
2515 and builtin strchr.
2516
2517 2000-10-31 Richard Henderson <rth@redhat.com>
2518
2519 * config/i386/i386.c (fcmov_comparison_operator): Check for
2520 CCFPmode or CCFPUmode instead of CCmode.
2521 (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
2522 unordered operations as well.
2523
2524 2000-10-31 Richard Henderson <rth@redhat.com>
2525
2526 * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
2527 of integer_zero_node.
2528
2529 2000-10-31 Richard Henderson <rth@redhat.com>
2530
2531 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
2532
2533 2000-10-31 Nick Clifton <nickc@redhat.com>
2534
2535 * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
2536 -fdata-sections to override the section attribute of a DECL.
2537
2538 2000-10-31 Chris Demetriou <cgd@sibyte.com>
2539
2540 * libgcc2.c (__shtab): Remove __shtab variable.
2541 * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
2542 * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
2543 members.
2544
2545 2000-10-31 Jim Wilson <wilson@redhat.com>
2546
2547 * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
2548 * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
2549 * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
2550 instead of ASM_OUTPUT_INTERNAL_LABEL.
2551 (dwarf2out_end_block, dwarf2out_label): Likewise.
2552 * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
2553 * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
2554
2555 2000-10-31 Richard Henderson <rth@redhat.com>
2556
2557 * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
2558 (size_of_locs): Set it.
2559 (output_loc_operands): Use it to compute branch displacement.
2560 (int_loc_descriptor): New.
2561 (mem_loc_descriptor): Dereference memory in the proper size.
2562 Use DW_OP_plus_uconst when possible. Use int_loc_descriptor.
2563 (loc_descriptor_from_tree): New.
2564 (rtl_for_decl_location): Break out from ...
2565 (add_location_or_const_value_attribute): ... here.
2566 (add_bound_info): Use loc_descriptor_from_tree.
2567
2568 2000-10-31 Neil Booth <neilb@earthling.net>
2569
2570 * cpp.texi: Update for new command line assertion syntax.
2571 * cpplib.c (cpp_define): Simplify a bit.
2572 (cpp_assert, cpp_unassert): Use handle_assertion.
2573 (handle_assertion): New function; accept new command line
2574 syntax with '='.
2575 * testsuite/gcc.dg/cpp/assert3.c: New tests.
2576
2577 2000-10-31 Neil Booth <neilb@earthling.net>
2578
2579 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
2580 undefined. Remove #ifdef check.
2581 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
2582 Define STDC_0_IN_SYSTEM_HEADERS to 1.
2583
2584 2000-10-31 Jan Hubicka <jh@suse.cz>
2585 Jakub Jelinek <jakub@redhat.com>
2586
2587 * config/i386/i386.h: Clarify CCNOmode description in comment.
2588 (EXTRA_CC_MODES): Remove CCRCmode.
2589 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
2590 (put_condition_code, ix86_match_ccmode): Likewise.
2591 (ix86_cc_mode): Likewise. Fix comment.
2592 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
2593 * config/i386/i386.md: Add unspec 12 description.
2594 (adddi3 split): Use unspec 12 instead of CCRCmode.
2595 (addsi3_carry_rc): Remove.
2596 (addsi3_cc, addqi3_cc): New patterns.
2597 (addsi_3): Swap operands, match CCZmode.
2598 (addsi_4): Rewritten.
2599 (addsi_5): Renamed from addsi_6.
2600 (addsi_6): Removed.
2601 (addhi_3): Swap operands, match CCZmode.
2602 (addhi_4): Rewritten.
2603 (addhi_5): Renamed from addhi_6.
2604 (addhi_6): Removed.
2605 (addqi_3): Swap operands, match CCZmode.
2606 (addqi_4): Rewritten.
2607 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
2608 (subsi3_carry_rc): Removed.
2609 (iorqi_3): Use =q constraint for clobber.
2610 (xorqi_cc_2): Likewise.
2611 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
2612 (x86_movsicc_0_m1_rc): Removed.
2613 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
2614
2615 2000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
2616
2617 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
2618 and decrement of complex types.
2619
2620 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2621
2622 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
2623 builtin fputs, ensure we still evaluate the stream in case it
2624 has side-effects.
2625
2626 2000-10-31 Jakub Jelinek <jakub@redhat.com>
2627
2628 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
2629 to expand_shift.
2630
2631 Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
2632
2633 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
2634 (fp_extended_operand, emit_fpscr_use): Likewise.
2635 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
2636 (fpul_operand): New function.
2637 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
2638 fp_extended_operand. Add fpul_operand.
2639 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
2640 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
2641 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
2642 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
2643 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
2644 (divdf3_i): Likewise.
2645 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
2646 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
2647 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
2648 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
2649 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
2650
2651 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
2652
2653 * config/i386/i386.c (ix86_init_builtins): Correct return type
2654 building v4hi_ftype_v4hi_int_int tree node.
2655 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
2656 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
2657
2658 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
2659 for operand 1.
2660 (mmx__uavgv8qi3): Correct insn mnemonic.
2661 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
2662 (mmx_punpckhwd): Correct insn mnemonic.
2663 (mmx_punpckhdq): Likewise.
2664 (mmx_punpcklwd): Likewise.
2665 (mmx_punpckldq): Likewise.
2666 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
2667 Renumber case labels to match the _mm_prefetch constants defined in
2668 xmmintrin.h.
2669
2670 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
2671 if the splitter didn't emit new insns.
2672 Make sure we call cleanup_subreg_operands even when splitting the last
2673 insn in a basic block.
2674
2675 * invoke.texi (Debugging Options): Describe -do.
2676 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
2677 (dump_file): Likewise.
2678 (rest_of_compilation): Split .greg dump into .greg and .postreload.
2679
2680 2000-10-30 Neil Booth <neilb@earthling.net>
2681
2682 * cppfiles.c (stack_include_file): Check for stacked contexts
2683 here.
2684 * cpphash.h (_cpp_do__Pragma): New prototype.
2685 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
2686
2687 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
2688 escaped newlines if !(buffer->from_stage3).
2689 (_cpp_lex_token): Warn about missing newlines iff
2690 !buffer->from_stage3.
2691
2692 * cpplib.c (get__Pragma_string, destringize,
2693 _cpp_do__Pragma): New functions.
2694 (run_directive): Set output_line for _Pragma to avoid line
2695 markers in output. Set from_stage3 and prevent macro expansion
2696 for _Pragma and command-line options. Check buffer exhaustion.
2697 (cpp_push_buffer): Don't check for stacked macro contexts, as
2698 this is perfectly legitimate for _Pragma. Move the check to
2699 stack_include_file instead. Set from_stage3 iff buffer is
2700 preprocessed input.
2701
2702 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
2703 unsigned. New boolean from_stage3.
2704 (struct spec_nodes): Add n__Pragma.
2705
2706 * cppmacro.c (enter_macro_context): Flip sense of return value.
2707 (_cpp_get_token): Handle _Pragma operator.
2708
2709 2000-10-30 Phil Edwards <pme@sources.redhat.com>
2710
2711 * gcc.texi: The C++ standard isn't "draft" anymore.
2712
2713 2000-10-30 Mark Mitchell <mark@codesourcery.com>
2714
2715 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
2716
2717 2000-10-29 Neil Booth <neilb@earthling.net>
2718
2719 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
2720
2721 2000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
2722
2723 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
2724 fixinc/inclhack.def: Change comments mentioning C9X to refer to
2725 C99 instead.
2726
2727 * invoke.texi: Document that -V will only work for very similar
2728 versions of driver and compiler.
2729
2730 2000-10-29 Neil Booth <neilb@earthling.net>
2731
2732 * cppmacro.c (_cpp_create_definition): Optimize the case of
2733 a macro defined to itself.
2734
2735 2000-10-29 Neil Booth <neilb@earthling.net>
2736
2737 * cpplex.c (save_comment): Don't store new lines in C++ comments.
2738
2739 2000-10-29 Michael Hayes <mhayes@redhat.com>
2740
2741 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
2742
2743 2000-10-28 Geoffrey Keating <geoffk@cygnus.com>
2744
2745 * cpphash.c (cpp_forall_identifiers): Add context variable
2746 for callback routine.
2747 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
2748 change.
2749 (main): Call cpp_forall_identifiers with null context.
2750 * cpplib.h (cpp_forall_identifiers): Update prototype.
2751
2752 * cppmain.c: Make `parse_in' and `print' static.
2753
2754 2000-10-28 Alan Modra <alan@linuxcare.com.au>
2755
2756 * c-decl.c (finish_function): Clear c_function_name_declared_p.
2757
2758 2000-10-28 Richard Henderson <rth@redhat.com>
2759
2760 * regrename.c (scan_rtx_address): Frob action, not class,
2761 when trying to disable optimization.
2762
2763 2000-10-28 Mark Mitchell <mark@codesourcery.com>
2764
2765 * c-semantics.c (make_rtl_for_local_static): Don't clobber
2766 DECL_ASSEMBLER_NAME.
2767
2768 2000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
2769
2770 * configure.in: Determine and substitute gcc_version_full.
2771 * configure: Regenerate.
2772 * gccbug.in: Use it to give full version. Don't allow
2773 confidential PRs.
2774
2775 2000-10-28 Richard Henderson <rth@redhat.com>
2776
2777 * recog.c (split_all_insns): Run cleanup_subreg_operands
2778 after reload.
2779
2780 * regrename.c (regrename_optimize): Verify that all registers of
2781 a multiple register mode are available.
2782 (scan_rtx_address): Accept the mode of the address; all callers
2783 changed.
2784
2785 * cpplib.c (run_directive): Fix prototype.
2786
2787 2000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
2788
2789 * reload.c (find_reloads): Distinguish "wins" so that we know whether
2790 a given operand won because of a matching constraint or not; then use
2791 that information to compute goal_alternative_matched properly.
2792 * reload1.c (choose_reload_regs): Never set reload_override_in for an
2793 optional reload.
2794
2795 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
2796 accurate value for MULT.
2797 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
2798 2% or > 98% before using static branch prediction bits.
2799
2800 2000-10-28 Neil Booth <neilb@earthling.net>
2801
2802 New macro expander.
2803
2804 * cpplib.c (struct answer): New.
2805 (struct if_stack): Use cpp_lexer_pos rather than line and col.
2806 Rename cmacro mi_cmacro.
2807 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
2808 IN_I): New directive and flags.
2809 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
2810 parse_answer, parse_assertion, find_answer): New functions.
2811 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
2812 (lex_macro_node): New function to replace parse_ifdef and
2813 get_define_node.
2814
2815 (_cpp_handle_directive): New function, combines _cpp_check_directive
2816 and _cpp_check_linemarker.
2817
2818 (do_define, do_undef, parse_include, do_include, do_import,
2819 do_include_next, read_line_number, do_line, do_ident, do_pragma,
2820 do_pragma_once, do_pragma_poison, do_pragma_dependency):
2821 Update for new token getting interface.
2822
2823 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
2824 : Update for new multiple-include optimisation technique.
2825 (do_elif): Don't forget to invalidate controlling macros.
2826
2827 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
2828 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
2829 Functions to handle assertions with the new token interface.
2830 (do_assert, do_unassert): Use them.
2831
2832 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
2833 Use run_directive.
2834
2835 (_cpp_init_stacks): Register directive names. Don't register special
2836 nodes.
2837
2838 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
2839 new position recording regime.
2840 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
2841 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2842 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
2843 (cpp_type2name): Move to cpplex.c.
2844
2845 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
2846 (parse_defined): Update to handle new multiple include optimisation
2847 method. Remove poisoned identifier warning.
2848 (parse_assertion, TYPE_NAME): Delete.
2849 (lex): Update for multiple include optimisation, removal of
2850 CPP_DEFINED, to use _cpp_test_assertion for assertions and
2851 cpp_token_as_text.
2852 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
2853 (op_as_text): New function, to wrap cpp_token_as_text.
2854
2855 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
2856 Update for MI optimisation.
2857 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
2858 segfault on diagnostic.
2859 (_cpp_compare_file_date): Take a token rather than 3 args.
2860 (cpp_read_file): Work correctly for zero-length files.
2861
2862 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
2863 _cpp_init_hashtable and _cpp_cleanup_hashtable.
2864 (cpp_lookup): Place identifiers at front of identifier pool
2865 for _cpp_lookup_with_hash.
2866 (_cpp_lookup_with_hash): Require identifiers to be at the front of
2867 the identifier pool. Commit the memory if not already in the
2868 hash table.
2869
2870 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
2871 Initialise various members of cpp_reader, memory pools, and the
2872 special nodes.
2873 (cpp_printer_init): Delete.
2874 (cpp_cleanup): Update.
2875 (struct builtin, builtin_array, initialize_builtins): Update for new
2876 hashnode definition and builtin handling.
2877 (cpp_start_read, cpp_finish): Don't take or initialise a
2878 printer. Update.
2879
2880 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
2881 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
2882 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
2883 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
2884 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
2885 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
2886 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
2887 struct toklist, struct cpp_context, struct specnodes,
2888 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
2889 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
2890 enum builtin_type, cpp_can_paste): New.
2891 (struct cpp_token): Delete line and col members.
2892 (struct cpp_buffer): New member output_lineno.
2893 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
2894 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
2895 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
2896 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
2897 base_context, context, directive, mi_state, mi_if_not_defined,
2898 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
2899 mlstring_pos, macro_buffer, macro_buffer_len.
2900 Delete members mls_line, mls_column, token_list, potential_control_macro,
2901 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
2902 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
2903 save_parameter_spellings, need_newline, .
2904 Change type of date, time and spec_nodes members.
2905 Change prototypes for include and ident callbacks.
2906 (struct cpp_hashnode): Change type of name. Remove union members
2907 expansion and code. Add members macro, operator and builtin.
2908
2909 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
2910 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
2911 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
2912 cpp_stop_lookahead): New prototypes.
2913 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
2914
2915 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
2916 Move from cpphash.h.
2917
2918 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
2919 ufputs): Move to cpplib.h.
2920 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
2921 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
2922 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
2923 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
2924 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
2925 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
2926 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
2927 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
2928 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
2929 _cpp_parse_assertion, _cpp_find_answer): Delete.
2930 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
2931 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
2932 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
2933 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
2934 _cpp_handle_directive, DSC): New.
2935 (struct include_file): New member defined.
2936
2937 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
2938 _cpp_compare_file_date): Update.
2939 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
2940 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
2941 _cpp_cleanup_hashtable.
2942
2943 * Makefile.in: Remove cppoutput.c.
2944
2945 * cppoutput.c: Delete
2946
2947 * fixheader.c (read_scan_file): Update for new cpp_get_token
2948 prototype.
2949 (recognized_function): New argument LINE.
2950
2951 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
2952 new cpp_get_token prototype.
2953
2954 * scan.h (recognized_function): Update prototype.
2955
2956 * po/POTFILES.in: Remove cppoutput.c.
2957
2958 2000-10-27 Mark Mitchell <mark@codesourcery.com>
2959
2960 * c-typeck.c (check_init_type_bitfields): Remove.
2961 (constructor_incremental): Likewise.
2962 (struct constructor_stack): Remove incremental bit.
2963 (struct initializer_stack): Likewise.
2964 (start_init): Don't play with constructor_incremental.
2965 (finish_init): Likewise.
2966 (really_start_incremental_init): Likewise.
2967 (push_init_level): Likewise.
2968 (pop_init_level): Likewise.
2969 (output_init_level): Likewise.
2970 (output_pending_init_elements): Likewise.
2971
2972 2000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
2973
2974 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
2975 Improve error messages. Correct parsing of
2976 #pragma pack(pop [,id]). Do not check the user-supplied
2977 alignment if we're popping.
2978
2979 * gcc.dg/pack-test-1.c: New test case.
2980 * gcc.dg/pack-test-2.c: New test case.
2981 * gcc.dg/pack-test-1.h: New file.
2982
2983 2000-10-27 Neil Booth <neilb@earthling.net>
2984
2985 * cpp.texi: Update.
2986
2987 2000-10-27 Kelley Cook <kelley.cook@home.com>
2988
2989 * invoke.texi: Document -mintel-syntax
2990
2991 2000-10-27 Richard Henderson <rth@redhat.com>
2992
2993 * invoke.texi: Document -frename-registers. Add it to -O3.
2994 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
2995 (enum dump_file_index, dump_file): Update order.
2996 (main): Set flag_rename_registers at -O3.
2997
2998 2000-10-27 Richard Henderson <rth@redhat.com>
2999
3000 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
3001 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3002 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
3003 * config/alpha/alpha.md (call_osf_1): Use it.
3004 (call_value_osf_1): Likewise.
3005
3006 * config/ia64/ia64.c: Revert 10-23 patch.
3007 (ia64_hard_regno_rename_ok): New.
3008 * config/ia64/ia64-protos.h: Declare it.
3009 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
3010
3011 2000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
3012 Richard Henderson <rth@redhat.com>
3013
3014 * regrename.c: Rewrite to handle multi-register modes and
3015 cond_exec instructions.
3016 * Makefile.in (regrename.o): Update dependancies.
3017 * recog.h (struct operand_alternative): Add is_address.
3018 * recog.c (preprocess_constraints) [case 'p']: Set it.
3019
3020 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
3021
3022 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
3023 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
3024 top level. Kill oldstyle_subdirs. Do not include
3025 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
3026 $outputs. Do not run configure.lang from config.status.
3027 Rearrange warning-flag logic to correspond to what the
3028 makefile wants. Put special vax stage1 options in
3029 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
3030 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
3031 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
3032 switch is given, nothing otherwise.
3033 * configure.lang: Delete.
3034
3035 * Makefile.in: Expunge all traces of extra_c_objs,
3036 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
3037 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
3038 warning options via a three level scheme so that -pedantic and
3039 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
3040 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
3041 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
3042 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
3043 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
3044 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
3045 generation rules. Wrap all rules that change the current
3046 directory in parentheses; pmake doesn't spawn a new shell for
3047 each command. Expunge all references to $(P). When one
3048 command depends on another and they're run all at once, use &&
3049 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
3050 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
3051 and beyond.
3052
3053 * objc/Make-lang.in: Wrap all rules that change the current
3054 directory in parentheses. Expunge all references to $(P).
3055 When one command depends on another and they're run all at
3056 once, use && to separate them, not ;. Add OUTPUT_OPTION to
3057 all object-file generation rules. Delete obsolete variables.
3058 * objc/Makefile.in: Delete.
3059
3060 2000-10-27 Jakub Jelinek <jakub@redhat.com>
3061
3062 * calls.c (expand_call): If sibcall_failure is set during pass 1,
3063 clear tail_call_insns as well.
3064
3065 2000-10-27 Nick Clifton <nickc@redhat.com>
3066
3067 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
3068 prototype.
3069
3070 2000-10-26 Richard Henderson <rth@redhat.com>
3071
3072 * calls.c (expand_call): Supress sibcall if we have a
3073 BLKmode return in registers.
3074
3075 2000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
3076
3077 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
3078 into memory.
3079
3080 2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
3081
3082 * tree.c (make_node, case 't'): Set alignment to that of
3083 char_type_node.
3084 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
3085
3086 2000-10-25 Mark Mitchell <mark@codesourcery.com>
3087
3088 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
3089 * configure.in (enable-libstdcxx-v3): Arrange to have
3090 HAVE_LIBSTDCXX_V3 substituted into the output files.
3091
3092 2000-10-25 Richard Henderson <rth@redhat.com>
3093
3094 * recog.c (constrain_operands): Initialize which_alternative
3095 before no alternatives early exit.
3096
3097 * cse.c (find_comparison_args): Check that we can reverse a
3098 comparison if needed before accepting the substitution.
3099
3100 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
3101
3102 * simplify-rtx.c (simplify_relational_operation): Sign extend
3103 low words before sign extending to high words.
3104
3105 2000-10-25 Nick Clifton <nickc@redhat.com>
3106
3107 * config/mcore/mcore.c: Include config.h before system.h.
3108
3109 2000-10-25 Ray Essick <essick@ddna.labs.mot.com>
3110
3111 * config/mcore/mcore.md (return): Force function epilogue to
3112 always be generated to work around epilogue suppression bug in
3113 M*Core backend.
3114
3115 2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
3116
3117 * c-decl.c (grokdeclarator): Move warning for qualified void
3118 return types with -pedantic to when the function type is
3119 constructed. At -W, warn in general for qualified function return
3120 types, except for volatile void.
3121 * invoke.texi: Document this new warning at -W.
3122
3123 2000-10-25 Neil Booth <neilb@earthling.net>
3124
3125 * cpp.texi: Update with implementation-defined behavior and
3126 internal limits.
3127
3128 2000-10-25 Jakub Jelinek <jakub@redhat.com>
3129
3130 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
3131 incomplete type force it into alias set 0.
3132
3133 Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
3134
3135 * alias.c: Include basic-block.h.
3136 (loop_p): New function.
3137 (mark_constant_function): Use it.
3138 * Makefile.in (alias.o): Update dependencies.
3139
3140 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
3141
3142 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
3143 like memory.
3144
3145 2000-10-24 Jim Wilson <wilson@cygnus.com>
3146
3147 * expmed.c (store_bit_field): Move integer pun code down after
3148 code that calls emit_move_insn for entire register move.
3149 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
3150 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
3151
3152 2000-10-24 Richard Henderson <rth@cygnus.com>
3153
3154 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
3155 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
3156
3157 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
3158
3159 * gcse.c (cprop_insn): do not propagate constants into jump_insn
3160 for machines with CC0 more than once.
3161
3162 2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
3163
3164 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
3165 pseudos just like memory.
3166
3167 2000-10-24 Alexandre Oliva <aoliva@redhat.com>
3168
3169 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
3170 when deleting libcall sequence collapsed to a single instruction.
3171
3172 2000-10-24 Andrew Haley <aph@cygnus.co.uk>
3173
3174 * expr.c (do_store_flag): Don't crash if either side of a
3175 comparison is error_mark_node.
3176
3177 2000-10-24 Jakub Jelinek <jakub@redhat.com>
3178
3179 * sibcall.c (purge_mem_unchanging_flag): New function.
3180 (optimize_sibling_and_tail_recursive_calls): Call it.
3181
3182 2000-10-24 Philipp Thomas <pthomas@suse.de>
3183
3184 * Makefile.in (check-po): New target for doing checks in the po
3185 subdir if all languages configured.
3186 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
3187 configure if NLS is enabled.
3188 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
3189 otherwise leave empty.
3190 * configure: Regenerate.
3191
3192 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
3193
3194 * i386.c (print_operand): Handle new 'A' formatting code.
3195 387 opcodes need suffixes even with -mintel-syntax.
3196 Check for explicit size override (codes 'b', 'w' and 'k').
3197 (print_operand_address): Check if register prefix is needed when
3198 emitting `ds' segment override.
3199 * i386.h: Add comment about new 'A' formatting code.
3200 * i386.md (jump and call patterns): Emit absolute references using %A.
3201
3202 2000-10-23 Richard Henderson <rth@cygnus.com>
3203
3204 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
3205 output registers as fixed.
3206 (ia64_function_epilogue): Undo output fixation.
3207
3208 2000-10-23 Richard Henderson <rth@cygnus.com>
3209
3210 * config/alpha/alpha.md: Add names for all unnamed insns; use
3211 define_insn_and_split in some obvious places.
3212 (lda): Remove.
3213 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
3214 (zero_extendqisi2, zero_extendqidi2): Likewise.
3215 (zero_extendhisi2, zero_extendhidi2): Likewise.
3216 (abs splitters): Fix match_scratch operand number.
3217 (bcc_reverse): Swap pc & label instead of non-canonical compare.
3218
3219 2000-10-23 Jim Wilson <wilson@cygnus.com>
3220
3221 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
3222 CONST_INT.
3223 * ia64.md (cmpsi_adjusted): Use %r3.
3224 (cmpdi_adjusted): Likewise.
3225
3226 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
3227
3228 * config/i386/att.h (ASM_FILE_START): Define.
3229
3230 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
3231
3232 * config/i386/linux.h (ASM_FILE_START): Define.
3233
3234 Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
3235
3236 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
3237 since this (only) drags in a crt0.o reference that the .ld files
3238 also introduce.
3239
3240 2000-10-23 Geoff Keating <geoffk@cygnus.com>
3241
3242 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
3243 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
3244 reloads just like an RELOAD_FOR_OUTPUT would.
3245
3246 * local-alloc.c (update_equiv_regs): Add an abort(). When
3247 deleting or moving insns, update reg_equiv[regno].init_insns.
3248
3249 2000-10-23 Mark Mitchell <mark@codesourcery.com>
3250
3251 * c-tree.texi: Improve documentation for IF_STMTs and related
3252 conditional statements.
3253
3254 2000-10-22 Mark Mitchell <mark@codesourcery.com>
3255
3256 * expr.c (do_preexpand_calls): Remove.
3257 (same_from_p): Don't use CALL_EXPR_RTL.
3258 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
3259 (preexpand_calls): Remove.
3260 * tree.c (first_rtl_op): Remove CALL_EXPR case.
3261 (unsave_expr_1): Likewise.
3262 * tree.def (CALL_EXPR): Give it only two slots.
3263 * tree.h (CALL_EXPR_RTL): Remove.
3264
3265 2000-10-21 Chandrakala Chavva <cchavva@redhat.com>
3266
3267 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
3268 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
3269 New functions.
3270
3271 2000-10-22 Alexandre Oliva <aoliva@redhat.com>
3272
3273 * calls.c (combine_pending_stack_adjustment_and_call): Don't
3274 adjust stack when unadjusted_alignment ends up as zero.
3275
3276 2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
3277
3278 * fixinc/genfixes: Remove EGCS reference.
3279 * install.texi: Remove EGCS reference.
3280 * INSTALL: Regenerate.
3281
3282 2000-10-22 Mark Mitchell <mark@codesourcery.com>
3283
3284 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
3285
3286 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
3287
3288 * diagnostic.c: Remove EGCS reference in comment.
3289
3290 Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3291
3292 * loop.c (strength_reduce): Fix error in last change.
3293
3294 2000-10-20 David Edelsohn <edelsohn@gnu.org>
3295
3296 * Makefile.in (SHLIB_NM_FLAGS): New.
3297 (libgcc.mk): Pass it.
3298 * mklibgcc.in (libgcc.map): Use it.
3299
3300 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
3301 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
3302
3303 2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3304
3305 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
3306
3307 * sparc.c (load_pic_register): Delete unused varaible.
3308
3309 * libgcc2.c (__addvsi3): Delete unused variable.
3310
3311 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
3312 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
3313 __negvdi2): Prototype.
3314
3315 * ssa.c (apply_delayed_renames): Avoid undefined operation.
3316
3317 * toplev.c (display_target_options): Make static to match
3318 prototype. Delete empty declaration.
3319
3320 2000-10-20 Tom Tromey <tromey@cygnus.com>
3321
3322 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
3323 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
3324
3325 Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3326
3327 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
3328 returned MEM.
3329 (expand_expr_unaligned, case ARRAY_REF): Check that index is
3330 a constant before comparing it; use tree_low_cst.
3331 * tree.c (save_expr): Set TREE_READONLY.
3332 (substitute_expr): Return inside of NON_LVALUE_EXPR.
3333 (build, build1): Set TREE_READONLY if all operands are.
3334 (build_index_type): If upper bound is a negative number, lower
3335 bound is zero and sizetype is unsigned, use upper bound of one and
3336 lower of zero.
3337
3338 2000-10-20 David Edelsohn <edelsohn@gnu.org>
3339
3340 * gcc.c (process_command, main): Use "because" instead of
3341 "since" in error messages.
3342
3343 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3344
3345 * stor-layout.c (compute_record_mode): Use tree_low_cst.
3346 Don't use mode of field for record unless sizes are the same.
3347 (layout_type, case ARRAY_TYPE): Remove special bounds handling
3348 previously added for Ada; also change to using host_integerp
3349 and tree_low_cst.
3350
3351 * loop.c (strength_reduce): Show when new register made for
3352 giv is known to be a pointer and its aligment if so and known.
3353 (loop_dump_aux): Show VERBOSE parameter unused.
3354
3355 * gcse.c (set_hash_table_size): Now unsigned.
3356 * sdbout.c (template_name_p): Add "const" to avoid warnings.
3357 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
3358 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
3359 (sdbout_end_epilogue): Remove variable NAME.
3360 * system.h (getopt): Add default definition.
3361 * config/alpha/alpha.c (print_operand): Don't continue processing
3362 after issuing error.
3363 (summarize_insn): Avoid use of UL in constant.
3364
3365 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
3366
3367 * fold-const.c (force_fit_type): Unsigned values can overflow
3368 if they are sizetype.
3369 (int_const_binop): Don't use cache if overflows.
3370
3371 2000-10-20 Richard Henderson <rth@cygnus.com>
3372
3373 * function.c (locate_and_pad_parm): Zero alignment_pad.
3374
3375 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
3376 perform substitutions, and apply_change_group to see if it worked.
3377
3378 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3379
3380 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
3381
3382 * combine.c (struct undo): Change int to unsigned int.
3383 (do_SUBST_INT): Args are unsigned int.
3384 (make_extraction, force_to_mode): Use proper type when forming mask.
3385 (make_field_assignment): Likewise.
3386
3387 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
3388
3389 * c-common.c (check_format_info_recurse): Extract string constant
3390 initializers from non-volatile constant arrays and check them as
3391 formats.
3392 * c-typeck.c (decl_constant_value): Don't check pedantic or check
3393 for DECL_MODE (decl) != BLKmode.
3394 (decl_constant_value_for_broken_optimization): New function which
3395 includes these checks.
3396 (default_conversion, convert_for_assignment, digest_init): Use
3397 decl_constant_value_for_broken_optimization instead of
3398 decl_constant_value.
3399
3400 2000-10-20 Mark Mitchell <mark@codesourcery.com>
3401
3402 * tree.h (DECL_ALIGN_UNIT): New macro.
3403
3404 2000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
3405
3406 * config/avr/avr-protos.h (avr_output_bld): New.
3407 (out_shift_with_cnt): Add t_len argument.
3408 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
3409 (output_movqi, output_movhi, output_movsisf): Optimize loading
3410 any constant with exactly one bit set to NO_LD_REGS.
3411 (out_shift_with_cnt): Optimize output code for size or speed,
3412 depending on optimize_size. Handle small shift counts as well
3413 (if not hand-optimized in ?sh??i3_out). Shifts can be done
3414 with or without a scratch register, with help of __tmp_reg__
3415 or __zero_reg__ if necessary. Add T_LEN argument to pass the
3416 length of TEMPLATE in words, return total insn length in *LEN.
3417 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
3418 out_shift_with_cnt to work with the above change.
3419 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
3420 lshrsi3_out): Likewise. Optimize more known shift count cases.
3421 Remove cases already well optimized in out_shift_with_cnt.
3422 (avr_output_bld): New function.
3423 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
3424 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
3425 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
3426 Add reload_completed to insn condition - only for peepholes.
3427 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
3428 in a register or memory.
3429 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
3430 Do not require a scratch register.
3431 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
3432 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
3433 Optimize shifts by known count using a scratch register, but only
3434 if one is still available after register allocation.
3435
3436 2000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3437
3438 * t-vax: New file. Don't build modules from libgcc1.c.
3439
3440 Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
3441
3442 * alias.c: (mark_constant_function): Don't check pure functions.
3443 Initialize and end alias analysis.
3444 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
3445 Don't make a special exception for recursion. Handle
3446 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
3447 unless it's volatile.
3448
3449 * local-alloc.c (equivalence): New structure.
3450 (reg_equiv): Define.
3451 (contains_replace_regs): Remove array and use
3452 field in reg_equiv.
3453 (memref_referenced_p): Likewise.
3454 (no_equiv): Likewise.
3455 (update_equiv_regs): Likewise.
3456
3457 (equiv_init_varies_p,
3458 equiv_init_movable_p): New functions.
3459 (update_equiv_regs): Use them. Use rtx_varies_p
3460 instead of function_invariant_p. Process insns
3461 from end to beginning. Allow a REG_EQUIV insn
3462 within the same loop as a use to be moved, also
3463 allow it to be moved out of a loop. Update
3464 REG_DEAD notes when substituting into an insn.
3465
3466 2000-10-19 Jim Wilson <wilson@cygnus.com>
3467
3468 * c-decl.c (start_decl): Check for error_mark_node type before using
3469 COMPLETE_TYPE_P.
3470 (finish_decl): Likewise. Don't give an error if decl type is
3471 already error_mark_node.
3472
3473 * haifa-sched.c (compute_trg_info): Add explanatory comments.
3474 New local update_blocks. Use update_blocks to remove duplicates
3475 when computing update blocks. Check for bblst_table overflow.
3476 (schedule_block): Add explanatory comment. Reduce bblst_size by
3477 factor of 2.
3478 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
3479 notes.
3480
3481 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
3482
3483 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
3484
3485 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
3486
3487 * expmed.c: Minor corrections in comments.
3488 * invoke.texi: Added desciption for the new option -ftrapv.
3489
3490 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
3491
3492 * libgcc2.c: Added the missing #endif.
3493
3494 Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
3495
3496 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
3497
3498 2000-10-18 Chandrakala Chavva <cchavva@redhat.com>
3499
3500 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
3501 Use smulv_optab for -ftrapv.
3502 (expand_mult_highpart): Use unsigned multiply.
3503 (expand_divmod): Special-case division by -1.
3504 For EXACT_DIV_EXPR, do right shift first, then the multiply.
3505 For complex divide, use abs with unsigned result.
3506 * expr.c (force_operand): Use unsigned multiply.
3507 (expand_expr): Use overflow-trapping optabs for signed types if
3508 flag_trapv.
3509 If flag_trapv, don't generate a recursive call with EXPAND_SUM
3510 if the type is signed and the original call wasn't EXPAND_SUM or
3511 EXPAND_INITIALIZER.
3512 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
3513 (negv_optab, absv_optab): Declare.
3514 * flags.h (flag_trapv): Declare.
3515 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
3516 smulv_optab, sdivv_optab, negv_optab and absv_optab.
3517 (gen_insn): Interpret '$P' as requiring an integer mode,
3518 including partial integer modes.
3519 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
3520 (product_cheap_p): Use unsigned expand_mult.
3521 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
3522 (negv_optab, absv_optab): Define.
3523 (expand_binop): Use overflow-trapping optabs for signed types if
3524 flag_trapv.
3525 Handle negv_optab libe neg_optab.
3526 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
3527 Use overflow-trapping optabs for signed result if flag_trapv.
3528 (expand_complex_abs): Use overflow-trapping optabs for signed types if
3529 flag_trapv.
3530 Don't open-code complex absolute-value operation for flag_trapv.
3531 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
3532 sdivv_optab, negv_optab and absv_optab.
3533 * toplev.c (flag_trapv): Define.
3534 (lang_independent_options f_options): Include flag_trapv.
3535 * tree.h (TYPE_TRAP_SIGNED): Define.
3536 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
3537 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
3538 New functions.
3539 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
3540 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
3541
3542 2000-10-18 Geoffrey Keating <geoffk@cygnus.com>
3543 David V. Henkel-Wallace <gumby@cygnus.com>
3544
3545 * config/i386/t-netware: Bring in from the Red Hat tree.
3546 * config/i386/netware.h: Likewise.
3547 * config/netware.h: Likewise.
3548 * config/rs6000/netware.h: Delete.
3549 * configure.in: Add i[34567]86-*-netware.
3550 * configure: Hand-edit to match configure.in change.
3551
3552 2000-10-18 Mark Mitchell <mark@codesourcery.com>
3553
3554 * c-common.h (flag_no_builtin): Declare.
3555 (flag_no_nonansi_builtin): Likewise.
3556 (c_common_nodes_and_builtins): Change prototype.
3557 * c-common.c (flag_no_builtin): New variable.
3558 (flag_no_nonansi_builtin): Likewise.
3559 (c_common_nodes_and_builtins): Remove parameters. Adjust
3560 accordingly.
3561 * c-decl.c (flag_no_builtin): Remove.
3562 (flag_no_nonansi_builtin): Likewise.
3563 (init_decl_processing): Adjust call to
3564 c_common_nodes_and_builtins.
3565
3566 2000-10-18 Marc Espie <espie@openbsd.org>
3567
3568 * tm.texi (LIBGCC_SPEC): Synch with reality.
3569
3570 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
3571
3572 * c-common.c (check_format_types): Check for writing through a
3573 NULL pointer argument.
3574
3575 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3576
3577 * tm.texi (Exception Region Output): Document
3578 DWARF_CIE_DATA_ALIGNMENT.
3579 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
3580 #ifndef.
3581 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
3582 DWARF_CIE_DATA_ALIGNMENT.
3583
3584 2000-10-18 Michael Hayes <mhayes@cygnus.com>
3585
3586 * basic-block.h (struct loop): Delete fields pre_header_root
3587 and pre_header_trace and replace with pre_header_edges
3588 and num_pre_header_edges.
3589 * flow.c (flow_loop_dump): Dump pre_header_edges.
3590 (flow_loops_free): Free pre_header_edges.
3591 (flow_loop_pre_header_scan): Calculate pre_header_edges.
3592
3593 2000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3594
3595 * contrib.texi: Update references to steering committee members
3596 and Jeff Law's entry.
3597
3598 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
3599
3600 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
3601 (maybe_read_dollar_number, check_format_info_main): Use them for
3602 pedantic warning messages.
3603
3604 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
3605
3606 * c-common.c (check_format_info_main): Minor cleanup: move
3607 variables into inner scopes; initialize declarations where
3608 appropriate; don't hardcode "scanf" name on warning for zero
3609 width.
3610
3611 2000-10-17 Mark Mitchell <mark@codesourcery.com>
3612
3613 * c-common.c (back_end_hook): New variable.
3614 * c-common.h (back_end_hook): Declare it.
3615 * c-lang.c (finish_file): Use it.
3616
3617 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
3618 earlier.
3619
3620 2000-10-18 Jan Hubicka <jh@suse.cz>
3621
3622 * i386.c (ix86_comparison_operator, put_condition_code,
3623 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
3624 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
3625 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
3626 * i386.md (adddi and negdi splitter): Use CCRCmode.
3627 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
3628 (subsi3_carry): add '*'
3629 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
3630 (cmp to add peep2): Use CCRCmode; swap operands.
3631
3632 2000-10-18 Kazu Hirata <kazu@hxi.com>
3633
3634 * h8300.c: Fix a comment typo.
3635 (round_frame_size): New.
3636 (compute_saved_regs): Likewise.
3637 (push): Likewise.
3638 (pop): Likewise.
3639 (push_order): Remove.
3640 (pop_order): Likewise.
3641 (function_prologue): Rearrange code for readability.
3642 (function_epilogue): Likewise.
3643
3644 * config/h8300/h8300.md: Remove an unnecessary sign_extend
3645 expander that is used when not optimizing. Output a tab after
3646 each assembly insns.
3647
3648 * reorg.c: Fix formatting.
3649
3650 2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
3651
3652 * reload1.c (move2add_note_store): Check for simple
3653 auto-inc in destination.
3654
3655 2000-10-17 Michael Chastain <chastain@redhat.com>
3656
3657 * config/i386/i386-aout.h: define INT_ASM_OP.
3658
3659 Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
3660
3661 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
3662
3663 Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
3664
3665 * i370.md: Fix spelling typo.
3666
3667 2000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3668
3669 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
3670 Fixes execute/20001017-1.c on powerpc-linux-gnu.
3671
3672 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
3673 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
3674 LABEL_REF.
3675
3676 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
3677 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
3678 here...
3679 * rs6000/aix.h: ...to here.
3680 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
3681
3682 2000-10-17 Jakub Jelinek <jakub@redhat.com>
3683
3684 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
3685
3686 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
3687 sure linker can relax even the delay slot mov %g1,%o7, fix output
3688 formating.
3689
3690 2000-10-17 Kazu Hirata <kazu@hxi.com>
3691
3692 * config/h8300/h8300.md: Remove an unnecessary zero_extend
3693 expander that is used when not optimizing. Output a tab after
3694 each assembly insns.
3695
3696 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3697
3698 * gcc.c: New options --target-help.
3699 (process_command): Added code to parse this new option.
3700 * toplev.c (display_target_options): New function to support the
3701 above new option.
3702 * cppinit.c (new_pending_directive) : New option OPT_target__help.
3703 (cpp_handle_option): Support this new option.
3704 * invoke.texi: Added notes about --target-help option.
3705
3706 2000-10-17 Graham Stott <grahams@redhat.com>
3707
3708 * config/i386/i386.md (testqi_1): Add missing operand prefix
3709 for operand 0.
3710 * config/i386/i386-protos.h: Add missing prototype.
3711
3712 2000-10-17 Diego Novillo <dnovillo@cygnus.com>
3713
3714 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
3715 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
3716 using -mintel-syntax.
3717
3718 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
3719
3720 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
3721 (format_types): Use it for printf.
3722 (maybe_read_dollar_number): Add parameter for the kind of format
3723 involved. Warn for multiple use for arguments if this is
3724 inappropriate for the kind of format involved.
3725 (check_format_info_main): Update calls to maybe_read_dollar_number.
3726
3727 2000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3728
3729 * inclhack.def (hpux_maxint): Also apply fix to values.h.
3730 * fixincl.x: Rebuilt.
3731
3732 2000-10-17 Alexandre Oliva <aoliva@redhat.com>
3733
3734 * genrecog.c (write_switch): Return the first condition that needs a
3735 label.
3736
3737 2000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
3738
3739 * c-tree.h (warn_sequence_point): Move declaration to...
3740 * c-common.h (warn_sequence_point): ... here.
3741 * c-decl.c (warn_sequence_point): Move definition to...
3742 * c-common.c (warn_sequence_point): ... here.
3743 (struct reverse_tree): New.
3744 (reverse_list, reverse_max_depth): New static variables.
3745 (build_reverse_tree, common_ancestor, modify_ok
3746 verify_sequence_points): New functions.
3747 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
3748 * c-typeck.c (check_modify_expr): Delete.
3749 (build_modify_expr): Don't call it.
3750
3751 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
3752
3753 * c-common.h (warn_missing_format_attribute): New variable.
3754 * c-decl.c (warn_missing_format_attribute): New variable.
3755 (c_decode_option): Decode -Wmissing-format-attribute and
3756 -Wno-missing-format-attribute.
3757 * c-common.c (check_function_format): If
3758 -Wmissing-format-attribute, give a warning where a vprintf or
3759 vscanf function is called by a function without its own printf or
3760 scanf attribute.
3761 * toplev.c (documented_lang_options): Add
3762 -Wmissing-format-attribute.
3763 * invoke.texi: Document -Wmissing-format-attribute.
3764
3765 2000-10-17 Marc Espie <espie@openbsd.org>
3766
3767 * invoke.texi (-shared): Insist on requiring code generation flags
3768 to be used along with -shared, and document the subtle failure that
3769 may occur otherwise.
3770
3771 2000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3772
3773 * pa.md (return_internal): Move `use' after `return'.
3774
3775 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3776
3777 * machmode.def: Correct comment.
3778
3779 2000-10-16 Rodney Brown <RodneyBrown@mynd.com>
3780
3781 * print-rtl.c (print_rtx_head): Constify.
3782 * rtl.h (print_rtx_head): Similarly.
3783
3784 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
3785 Constify char * return value.
3786 * config/pa/pa/pa.c
3787 (output_64bit_and, output_64bit_ior): Constify char * return value.
3788 (pa_can_combine_p): Make static.
3789 (function_arg): Decorate unused `named' argument. Fix comment typo.
3790 (function_arg_partial_nregs): Decorate unused `named' argument.
3791
3792 2000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
3793
3794 * c-common.c (format_check_results): New structure.
3795 (finish_dollar_format_checking): Adjust to take a
3796 format_check_results * parameter.
3797 (check_format_info, check_format_info_recurse,
3798 check_format_info_main): Split check_format_info into three
3799 functions, the main checking going in check_format_info_main.
3800 Recurse when any reduction of the format string argument towards a
3801 string literal is done; go down both branches of a conditional
3802 expression. Don't warn for extra format arguments or empty format
3803 strings if they only occur in some branches of a conditional
3804 expression.
3805
3806 2000-10-16 Kazu Hirata <kazu@hxi.com>
3807
3808 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
3809
3810 2000-10-16 Jakub Jelinek <jakub@redhat.com>
3811
3812 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
3813
3814 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
3815
3816 * i386.md (*movsi_or): Switch operand order for intel syntax.
3817
3818 2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
3819
3820 * PROBLEMS: Remove.
3821
3822 * gcc.texi (Contributing): Update.
3823
3824 2000-10-13 Diego Novillo <dnovillo@cygnus.com>
3825
3826 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
3827 appropriate assembler dialect.
3828
3829 2000-10-13 Alexandre Oliva <aoliva@redhat.com>
3830
3831 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
3832
3833 2000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
3834
3835 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
3836 constants 1 and 2 to NO_LD_REGS.
3837
3838 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3839
3840 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
3841
3842 * objc/Make-lang.in (objc-parse.c): Likewise.
3843
3844 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
3845
3846 * arm.c: Include obstack.h
3847 (minipool_obstack, minipool_startobj): Define.
3848 (arm_add_gc_roots): Initialize them.
3849 (create_fix_barrier): Use our new obstack.
3850 (push_minipool_barrier, push_minipool_fix): Likewise.
3851 (arm_reorg): Release obstack memory.
3852
3853 2000-10-13 Jakub Jelinek <jakub@redhat.com>
3854
3855 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
3856 (prologue, exception_receiver, builtin_setjmp_receiver): New
3857 patterns.
3858 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
3859 * config/sparc/sparc-protos.h (finalize_pic): Remove.
3860 (load_pic_register): New prototype.
3861 * config/sparc/sparc.c (pic_setup_code): Remove.
3862 (finalize_pic): Rename to...
3863 (load_pic_register): ...this function.
3864 Don't look for nonlocal_goto_receivers and emit pic setup code
3865 directly. Don't check current_function_uses_pic_offset_table.
3866
3867 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
3868
3869 * tree.h (struct obstack): Declare.
3870
3871 2000-10-12 Mark Mitchell <mark@codesourcery.com>
3872
3873 Remove obstacks.
3874 * Makefile.in (ggc-callbacks.o): Remove target.
3875 (flow.o): Depend on GGC_H.
3876 * alias.c (init_alias_analysis):
3877 Remove ggc_p conditionals.
3878 (end_alias_analysis): Likewise.
3879 * basic-block.h (init_flow): New function.
3880 (allocate_reg_life_data): Declare.
3881 * bb-reorder.c (function_obstack): Replace with ...
3882 (flow_obstack): ... new variable.
3883 (fixup_reorder_chain): Use it.
3884 * c-decl.c (ggc_p): Remove.
3885 (caller-save.c): Don't call oballoc/obfree.
3886 * combine.c (struct
3887 undobuf): Remove storage.
3888 (try_combine): Don't call oballoc.
3889 (undo_all): Don't call obfree.
3890 * cse.c (insert): Use xmalloc, not
3891 oballoc.
3892 (cse_main): Adjust accordingly.
3893 * dwarf2out.c (save_rtx): Remove
3894 obstack code.
3895 (dwarf2out_init): Remove ggc_p conditionals.
3896 * emit-rtl.c (rtl_obstack): Remove.
3897 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
3898 (make_insn_raw): Likewise.
3899 (emit_insn_before): Likewise.
3900 (emit_insn_after): Likewise.
3901 (emit_insn): Likewise.
3902 (gen_sequence): Likewise.
3903 (copy_insn_1): Remove handling of `b' RTL components.
3904 (init_emit_once): Remove ggc_p conditionals.
3905 * except.c (create_rethrow_ref): Don't fool with obstacks.
3906 (add_partial_entry): Likewise.
3907 (call_get_eh_context): Likewise.
3908 (begin_protect_partials): Likewise.
3909 (protect_with_terminate): Likewise.
3910 * explow.c
3911 (plus_constant_wide): Likewise.
3912 * expr.c (init_expr_once):
3913 Likewise.
3914 (emit_block_move): Likewise.
3915 (clear_storage): Likewise.
3916 (expand_expr): Likewise.
3917 * flow.c (function_obstack): Remove.
3918 (flow_obstack): New variable.
3919 (flow_firstobj): Likewise.
3920 (create_base_block): Use the flow_obstack.
3921 (split_block): Likewise.
3922 (split_edge): Likewise.
3923 (calculate_global_regs_live): Likewise.
3924 (allocate_bb_life_data): Make it static. Likewiwse.
3925 (init_flow): New function.
3926 (size_int_type_wide): Remove ggc_p conditionals.
3927 * function.c
3928 (push_function_context_to): Don't call save_tree_status.
3929 (pop_function_context_from): Or restore_tree_status.
3930 (assign_stack_local_1): Don't call push_obstacks.
3931 (find_fixup_replacement): Use xmalloc.
3932 (fixup_var_refs_insns): Free the storage.
3933 (insns_for_mem_walk): Don't mess with obstacks.
3934 (instantiate_decls): Likewise.
3935 (trampoline_address): Likewise.
3936 (expand_function_end): Likewise.
3937 * function.h (sturct function):
3938 Remove obstack-related variables.
3939 (save_tree_status): Don't declare.
3940 (restore_tree_status): Likewise.
3941 * gcse.c (compute_can_copy):
3942 Don't call oballoc/obfree.
3943 * genattrtab.c (operate_exp): Remove
3944 ggc_p conditionals.
3945 (simplify_cond): Likewise.
3946 (simplify_test_exp): Don't mess with obstacks.
3947 (optimize_attrs): Likewise.
3948 * gengenrtl.c (gendef): Don't include
3949 ggc_p conditionals.
3950 * ggc-callbacks.c (ggc_p): Remove.
3951 * ggc-none.c (ggc_p): Remove.
3952 * ggc.h (ggc_p): Don't declare.
3953 * integrate.c (save_for_inline): Don't mess with obstacks.
3954 (integrate_decl_tree): Likewise.
3955 (output_inline_function): Likewise.
3956 * lists.c
3957 (init_EXPR_INSN_LIST_cache): Likewise.
3958 * loop.c (temp_obstack):
3959 Remove.
3960 (rtl_obstack): Likewise.
3961 (init_loop): Don't mess with obstacks.
3962 (reg_address_cost): Free BIVs and GIVs.
3963 (check_insns_for_bivs): Use xmalloc, not oballoc.
3964 (find_mem_givs): Likewise.
3965 (record_biv): Likewise.
3966 (general_induction_var): Likewise.
3967 (product_cheap_p): Likewse.
3968 * optabs.c (init_one_libfunc): Remove
3969 ggc_p conditional.
3970 * print-tree.c (debug_tree): Don't use
3971 oballoc/obfree.
3972 (print_node): Likewise.
3973 * profile.c (output_func_start_profiler):
3974 Remove call to temporary_allocation.
3975 * reload1.c
3976 (eliminate_regs_in_insn): Don't mess with obstacks.
3977 * resource.c
3978 (mark_target_live_regs): Use xmalloc.
3979 (free_resource_info): Free the memory.
3980 * rtl.c (rtl_obstack):
3981 Remove.
3982 (rtvec_alloc): Don't mess with obstacks.
3983 (rtx_alloc): Likewise.
3984 (rtx_free): Remove.
3985 (copy_rtx): Don't handle `b' cases.
3986 (read_rtx): Use a local rtl_obstack.
3987 * rtl.h (oballoc): Remove.
3988 (obfree): Likewise.
3989 (pop_obstacks): Likewise.
3990 (push_obstacks): Likewise.
3991 (allocate_bb_life_data): Likewise.
3992 (allocate_reg_life_data): Likewise.
3993 (rtx_free): Likewise.
3994 * sdbout.c (sdbout_queue_anonymous_type):
3995 Use tree_cons, not saveable_tree_cons.
3996 * simplify-rtx.c
3997 (cselib_init): Don't mess with obstacks.
3998 * stmt.c
3999 (mark_block_nesting): Mark the label_chain.
4000 (epxand_label): Use ggc_alloc, not oballoc.
4001 (clear_last_expr): Don't mess with obstacks.
4002 (expand_decl_cleanup): Likewise.
4003 (expand_dcc_cleanup): Likewise.
4004 (expand_dhc_cleanup): Likewise.
4005 (expand_anon_union_decl): Likewise.
4006 (add_case_node): Use xmalloc, not oballoc.
4007 (free_case_nodes): New function.
4008 (expand_end_case): Call it.
4009 * stor-layout.c (layout_type): Don't
4010 mess with obstacks.
4011 (layout_type): Likewise.
4012 * toplev.c (wrapup_global_declarations):
4013 Likewise.
4014 (compile_file): Remove ggc_p conditionals.
4015 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
4016 (decode_f_option): Remove ggc_p conditionals.
4017 * tree.c
4018 (function_maybepermanent_obstack): Remove.
4019 (maybepermanent_obstack): Likewise.
4020 (function_obstack): Likewise.
4021 (tmeporary_obstack): Likewise.
4022 (momentary_obstack): Likewise.
4023 (temp_decl_obstack): Likewise.
4024 (saveable_obstack): Likewise.
4025 (rtl_obstack): Likewise.
4026 (current_obstack): Likewise.
4027 (expression_obstack): Likewise.
4028 (struct obstack_stack): Likewise.
4029 (obstack_stack): Likewise.
4030 (obstack_stack_obstack): Likewise.
4031 (maybepermanent_firstobj): Likewise.
4032 (temporary_firstobj): Likewise.
4033 (momentary_firstobj): Likewise.
4034 (temp_decl_firstobj): Likewise.
4035 (momentary_function_firstobj): Likewise.
4036 (all_types_permanent): Likewise.
4037 (struct momentary_level): Likewise.
4038 (momentary_stack): Likewise.
4039 (init_obstacks): Remove initialization of removed obstacks.
4040 (save_tree_status): Remove.
4041 (restore_tree_status): Likewise.
4042 (temporary_allocation): Liekwise.
4043 (end_temporary_allocation): Liekwise.
4044 (resume_temporary_allocation): Likewise.
4045 (saveable_allocation): Likewise.
4046 (push_obstacks): Likewise.
4047 (push_obstacks_nochange): Likewise.
4048 (pop_obstacks): Likewise.
4049 (allocation_temporary_p): Likewise.
4050 (permanent_allocation): Likewise.
4051 (preserve_data): Likewise.
4052 (preserve_initializer): Likewise.
4053 (rtl_in_current_obstack): Likewise.
4054 (rtl_in_saveable_obstack): Likewise.
4055 (oballoc): Likewise.
4056 (obfree): Likewise.
4057 (savealloc): Likewise.
4058 (expralloc): Likewise.
4059 (print_obstack_name): Likewise.
4060 (debug_obstack): Likewise.
4061 (object_permanent_p): Likewise.
4062 (push_momentary): Likewise.
4063 (perserve_momentary): Likewise.
4064 (clear_momentary): Likewise.
4065 (pop_momentary): Likewise.
4066 (pop_momentary_nofree): Likewise.
4067 (suspend_momentary): Likewise.
4068 (resume_momentary): Likewise.
4069 (make_node): Don't set TREE_PERMANENT.
4070 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
4071 Don't set TREE_PERMANENT.
4072 (get_identifier): Remove ggc_p conditionals.
4073 (build_string): Likewise.
4074 (make_tree_vec): Likewise.
4075 (build_decl_list): Remove.
4076 (build_expr_list): Likewise.
4077 (tree_cons): Remove ggc_p conditionals.
4078 (decl_tree_cons): Remove.
4079 (expr_tree_cons): Likewise.
4080 (perm_tree_cons): Likewise.
4081 (temp_tree_cons): Likewise.
4082 (saveable_tree_cons): Likewise.
4083 (build1): Remove ggc_p conditionals.
4084 (build_parse_node): Likewise.
4085 (build_type_attribute_variant): Don't mess with obstacks.
4086 (build_type_copy): Likewise.
4087 (type_hash_canon): Likewise.
4088 (build_pointer_type): Likewise.
4089 (build_reference_type): Likewise.
4090 (build_index_type): Likewise.
4091 (build_range_type): Likewise.
4092 (dump_tree_statistics): Don't print obstack information.
4093 * tree.h
4094 (struct tree_common): Remove permanent_flag.
4095 (TREE_PERMANENT): Remove.
4096 (TREE_SET_PERMANENT): Likewise.
4097 (TYPE_OBSTACK): Likewise.
4098 (struct tree_type): Remove obstack.
4099 (oballoc): Remove.
4100 (savealloc): Likewise.
4101 (build_decl_list): Likewise.
4102 (build_expr_list): Likewise.
4103 (perm_tree_cons): Likewise.
4104 (temp_tree_cons): Likewise.
4105 (saveable_tree_cons): Likewise.
4106 (decl_tree_cons): Likewise.
4107 (expr_tree_cons): Likewise.
4108 (suspend_momentary): Likewise.
4109 (allocation_temporary_p): Likewise.
4110 (resume_momentary): Likewise.
4111 (push_obstacks_nochange): Likewise.
4112 (permanent_allocation): Likewise.
4113 (push_momentary): Likewise.
4114 (clear_momentary): Likewise.
4115 (pop_momentary): Likewise.
4116 (end_temporary_allocation): Likewise.
4117 (pop_obstacks): Likewise.
4118 (push_obstacks): Likewise.
4119 (pop_momentary_nofree): LIkewise.
4120 (preserve_momentary): Likewise.
4121 (saveable_allocation): Likewise.
4122 (temporary_allocation): Likewise.
4123 (resume_temporary_allocation): Likewise.
4124 (perserve_initializer): Likewise.
4125 (debug_obstack): Likewise.
4126 (rtl_in_current_obstack): Likewise.
4127 (rtl_in_saveable_obstack): Likewise.
4128 (obfree): Likewise.
4129 * varasm.c (current_obstack): Remove.
4130 (saveable_obstack): Remove.
4131 (rtl_obstack): Remove.
4132 (immed_double_const): Don't mess with obstacks.
4133 (immed_real_cons): Likewise.
4134 (output_constant_def): Likewise.
4135 (init_varasm_status): Use xcalloc.
4136 (mark_pool_constant): Mark the pool constant itself.
4137 (free_varasm_status): Free memory.
4138 (decode_rtx_const): Call bzero directly, rather than expanding it
4139 inline.
4140 (record_rtx_const): Don't mess with obstacks.
4141 (force_const_mem): Likewise.
4142 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
4143 conditionals.
4144 (aof_pic_entry): Likewise.
4145 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4146 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
4147 * config/pa/pa.c (saveable_obstack): Remove.
4148 (rtl_obstack): Likewise.
4149 (current_obstack): Likewise.
4150 (output_call): Don't mess with obstacks.
4151 (hppa_encode_label): Remove ggc_p conditionals.
4152 * config/romp/romp.c (get_symref): Don't mess with obstacks.
4153 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
4154 (rs6000_encode_section_info): Likewise.
4155 * config/sh/sh.c (get_fpscr_rtx): Likewise.
4156
4157 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
4158
4159 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
4160 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
4161 (addsi3_carry): Canonicalize.
4162 (addqi_5): Remove '*'.
4163 (sbb pattern): Canonicalize.
4164
4165 * i386.md (cmp to inc/add peep2): New.
4166
4167 2000-10-12 Richard Earnshaw <rearnsha@arm.com>
4168
4169 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
4170 the exit block.
4171
4172 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
4173
4174 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
4175 * README.TRAD, TESTS.FLUNK: Remove.
4176
4177 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
4178
4179 * c-common.c (decl_attributes): Don't allow strftime formats with
4180 first_arg_num nonzero.
4181 (check_format_info): Set wanted_type and wanted_type_name to zero
4182 before they are possibly assigned and used.
4183
4184 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
4185
4186 * c-common.c (scanf_flag_specs): Add flags ' and I.
4187 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
4188 or the ^ and # flags together.
4189 (scan_char_table): Handle the ' and I flags.
4190 (format_types): Add ' and I flags for scanf.
4191
4192 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
4193
4194 * c-common.c (print_char_table): Use the unpromoted type for
4195 lengths "h" and "hh" with conversions dioxXu.
4196 (check_format_types): Apply the default argument promotions where
4197 the wanted type is not a pointer target.
4198
4199 2000-10-11 Michael Meeks <mmeeks@gnu.org>
4200 Joseph S. Myers <jsm28@cam.ac.uk>
4201
4202 * c-typeck.c (check_modify_expr): New function.
4203 (build_modify_expr): Call it if warn_sequence_point.
4204 * c-decl.c (warn_sequence_point): New variable.
4205 (c_decode_option): Handle -Wsequence-point and
4206 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
4207 * c-tree.h (warn_sequence_point): Declare.
4208 * invoke.texi (-Wsequence-point): Document.
4209 * toplev.c (documented_lang_options): Add -Wsequence-point and
4210 -Wno-sequence-point.
4211 Original work by Michael Meeks, 16 Jun 1998.
4212
4213 Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4214
4215 * tree.c (get_narrower): Don't look at precision of field if
4216 not laid out yet.
4217
4218 Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
4219
4220 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
4221 declaration for data with "progmem" attribute.
4222
4223 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
4224
4225 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
4226 Correct insn length if shift count is a memory operand.
4227 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
4228 (*iorhi3_clobber): Change lo8 to hi8.
4229 (zero_extendhisi2): Change %B0 to %A1.
4230 (ashlhi3, ashrhi3): Correct insn length.
4231 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
4232 from "clobber" to "set_n" in some alternatives.
4233
4234 2000-10-10 Jakub Jelinek <jakub@redhat.com>
4235
4236 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
4237 remove its insn_chain structure as well.
4238
4239 2000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4240
4241 * dbxout.c (dbxout_source_line): Remove extra tab.
4242
4243 2000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
4244
4245 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
4246
4247 2000-10-09 Richard Henderson <rth@cygnus.com>
4248
4249 * Makefile.in (LANG_LIB2FUNCS): Remove.
4250 (LIB2FUNCS): Remove _pure.
4251 (LIB2ADD): Remove LANG_LIB2FUNCS.
4252 (stage_a): Don't set LANG_LIB2FUNCS.
4253 * libgcc2.c (__terminate): Mark noreturn.
4254 (__pure_virtual): Remove.
4255 * mklibgcc.in: Remove LIB2ADD .txt processing.
4256
4257 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
4258
4259 * arm.md (push_multi): Revert unintended change.
4260
4261 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
4262
4263 * arm.c: Miscellaneous white space and comment clean-ups. No
4264 functional change.
4265 * arm.md: Likewise.
4266
4267 2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4268
4269 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
4270 STRING_CST by calling combine_strings.
4271
4272 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
4273
4274 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
4275 (thumb_output_move_mem_multiple): Support new insn format.
4276 * arm.md (movmem12b): Use SSA compatible format.
4277 (movmem8b): Likewise.
4278
4279 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
4280
4281 * arm.md (predicable): New attribute, default to "no".
4282 (all patterns): Mark as predicable if appropriate.
4283 (conditional execution splits): Split using predication format.
4284 (define_cond_exec): Define.
4285 * arm.c (arm_print_operand): handle insn predicate.
4286
4287 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4288
4289 * README.NS32K: Remove file.
4290
4291 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4292
4293 * README-bugs: Remove file.
4294
4295 2000-10-08 Philipp Thomas <pthomas@suse.de>
4296 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
4297 for test.
4298 * configure: Rebuilt.
4299
4300 2000-10-08 Philipp Thomas <pthomas@suse.de>
4301 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
4302 disable catalog building if no suitable program was found.
4303 Move warning message from here
4304 (AM_GNU_GETTEXT): To here.
4305 * configure: Rebuilt.
4306
4307 2000-10-08 Philipp Thomas <pthomas@suse.de>
4308 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
4309 different cache variables.
4310 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
4311 uses different cache variables.
4312 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
4313 * configure: Regenerated.
4314
4315 2000-10-08 Richard Henderson <rth@cygnus.com>
4316
4317 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
4318 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
4319 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
4320 Use SHLIB_EXT.
4321
4322 * config/t-linux (SHLIB_EXT): New.
4323 (SHLIB_LINK): Use the entire build command, with substitutions.
4324 (SHLIB_LIBS): Remove.
4325 * config/alpha/t-osf4: Likewise.
4326 * config/mips/t-iris6: Likewise.
4327 * config/sparc/t-sol2: Likewise, but move shlib stuff...
4328 * config/sparc/t-slibgcc-sld: ...here.
4329 * config/sparc/t-slibgcc: New file.
4330
4331 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
4332
4333 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
4334 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
4335 CTI_UINTMAX_TYPE.
4336 (intmax_type_node, uintmax_type_node): Define.
4337 * c-common.c (decl_attributes): If pedantic, warn if `mode'
4338 attributes create a type wider than intmax_t.
4339 (T_IM, T_UIM): Define properly.
4340 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
4341 defined.
4342 (init_decl_processing): Initialize intmax_type_node and
4343 uintmax_type_node.
4344 * c-lex.c (lex_number): When pedantic and warning for integer
4345 constants that are too large, in C99 mode warn for those that have
4346 a type wider than long long.
4347
4348 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
4349
4350 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
4351 FMT_FLAG_FANCY_PERCENT_OK): Define.
4352 (format_char_info): Add flag "4" to comment.
4353 (format_flag_spec, format_flag_pair): New structures.
4354 (format_kind_info): Add additional fields to control format
4355 checking.
4356 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
4357 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
4358 arrays.
4359 (time_char_table): Use "4" flag to handle %Ey.
4360 (format_types): Add entries for new fields.
4361 (get_flag_spec): New function.
4362 (check_format_info): Increase size of flag_chars[] to 256.
4363 Control format checking using the new fields of a format_kind_info
4364 and the new tables; remove all conditionals on printf_format_type,
4365 scanf_format_type or strftime_format_type. Handle all details of
4366 bad combinations of flags (including width, precision and strftime
4367 modifiers) through data rather than ad hoc code. Handle all
4368 details of standard versions in which flags appeared through
4369 data. Use the "4" flag.
4370
4371 2000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
4372
4373 * config/h8300/h8300.md: Remove the memory alternative and correct
4374 the insn lengths in the templates for sign extention and zero
4375 extention.
4376
4377 2000-10-07 Richard Henderson <rth@cygnus.com>
4378
4379 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
4380 * flow.c (make_edges): Revert last change.
4381
4382 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
4383 TREE_THIS_VOLATILE.
4384 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
4385
4386 2000-10-06 David O'Brien <obrien@dragon.nuxi.com>
4387
4388 * config/alpha/elf.h: Standardize the formatting.
4389
4390 2000-10-06 David O'Brien <obrien@FreeBSD.org>
4391
4392 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
4393 #undef.
4394
4395 2000-10-06 Richard Henderson <rth@cygnus.com>
4396
4397 * function.c (diddle_return_value): Examine
4398 current_function_return_rtx instead of the DECL_RESULT.
4399 (expand_function_end): Handle reloading DECL_RESULT from memory
4400 into a hard register. Query promote_mode for sign of mismatched
4401 modes.
4402
4403 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4404
4405 * haifa-sched.c (schedule_insns): Fix typo in freeing
4406 forward_dependency_cache.
4407
4408 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
4409
4410 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
4411 `TARGET_SH2' as a condition.
4412
4413 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4414
4415 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
4416 forward_dependency_cache): New variables.
4417 (add_dependence, remove_dependence): Use anti_dependency_cache and
4418 output_dependency_cache.
4419 (compute_block_forward_dependences): Use forward_dependency_cache.
4420 (schedule_insns): Allocate and free memory for anti/output/forward
4421 dependencies caches.
4422
4423 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
4424
4425 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
4426 `! TARGET_SH1'. Reindent.
4427
4428 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4429
4430 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
4431 Move functions from here ...
4432
4433 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
4434 ... to here.
4435 (c_expand_builtin): New function.
4436 (init_function_format_info): Don't set `check_function_format_ptr'.
4437 (c_common_nodes_and_builtins): Set built_in_class type for
4438 printf/__builtin_printf to BUILT_IN_FRONTEND.
4439 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
4440
4441 * c-common.h (build_function_call): Declare.
4442
4443 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
4444 to `lang_expand_expr' rather than `expand_builtin'.
4445
4446 * tree.c (check_function_format_ptr): Delete.
4447
4448 * tree.h (check_function_format_ptr): Likewise.
4449
4450 2000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
4451
4452 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
4453 DW_OP_bregx when cfa->reg > 31.
4454
4455 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
4456 break.
4457
4458 2000-10-05 Richard Henderson <rth@cygnus.com>
4459
4460 * c-decl.c (warn_missing_noreturn): Remove.
4461 (c_expand_body): Don't set or check can_reach_end.
4462 * c-tree.h (warn_missing_noreturn): Move ...
4463 * flags.h: ... here.
4464 (can_reach_end): Remove.
4465 * flow.c (check_function_return_warnings): New.
4466 (make_edges): No edge to exit for noreturn sibcalls.
4467 * function.c (expand_function_end): Save the return value
4468 clobber instruction.
4469 (mark_function_status): Mark it.
4470 * function.h (struct function): Add x_clobber_return_insn.
4471 * jump.c (can_reach_end): Remove.
4472 (calculate_can_reach_end): Remove.
4473 (jump_optimize_1): Don't call it.
4474 * output.h (check_function_return_warnings): Declare.
4475 * toplev.c (warn_missing_noreturn): Move from c-decl.c
4476 (rest_of_compilation): Call check_function_return_warnings.
4477
4478 2000-10-05 Richard Henderson <rth@cygnus.com>
4479
4480 * Makefile.in (NM_FOR_TARGET): New.
4481 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
4482 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
4483 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
4484 shared library build on that and EXTRA_MULTILIB_PARTS.
4485 * mkmap-flat.awk: New file.
4486 * mkmap-symver.awk: New file.
4487 * libgcc-std.ver: New file.
4488 * config/libgcc-glibc.ver: New file.
4489 * config/ia64/libgcc-ia64.ver: New file.
4490 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
4491 (SHLIB_LINK): Add --version-script.
4492 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
4493 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
4494 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
4495 (SHLIB_LINK): Add -M.
4496
4497 2000-10-05 Richard Henderson <rth@cygnus.com>
4498
4499 * Makefile.in (LIB2FUNCS): Add _clz.
4500 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
4501 (__clz_tab): Put in its own unit, non-static.
4502 * libgcc2.h: Always include longlong.h.
4503
4504 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
4505 a zero instead of -1.
4506 (count_trailing_zeros): Likewise.
4507
4508 2000-10-05 Richard Henderson <rth@cygnus.com>
4509
4510 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
4511 when second op1 is const0_rtx. Validate op0 as a register.
4512 * config/alpha/alpha.md (setcc_internal): Don't allow constants
4513 in the first argument of the compare.
4514 (setcc_swapped_internal): Likewise.
4515 (setne_internal): Likewise.
4516
4517 2000-10-05 Geoff Keating <geoffk@cygnus.com>
4518
4519 * tree.c (tree_size): New function split out of copy_node.
4520 (make_node): Remove obstack handling. Use tree_size.
4521 (copy_node): Use tree_size.
4522 * tree.h: Prototype tree_size.
4523
4524 2000-10-05 Richard Henderson <rth@cygnus.com>
4525
4526 * diagnostic.c (output_format): Add missing break.
4527
4528 2000-10-05 Jim Wilson <wilson@cygnus.com>
4529
4530 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
4531 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
4532 sequence insn to INSN, and delete last sequence insn.
4533
4534 2000-10-05 Phil Edwards <pme@gcc.gnu.org>
4535
4536 * gcc.c (main): Include generated configargs.h header
4537 and use arguments in '-v' output.
4538
4539 Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4540
4541 * gcc.c: Move data on prefixes forward in file and reorganize.
4542 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
4543 Always define, but make null if no value.
4544 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
4545 and "md_startfile_prefix_1".
4546 (main): Check whether md_exec_prefix and the others are the
4547 null string rather than whether the macro is defined.
4548
4549 Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
4550
4551 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
4552 from PSImode to SImode.
4553
4554 2000-10-05 Jakub Jelinek <jakub@redhat.com>
4555
4556 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
4557 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
4558 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
4559 sizeof(long).
4560
4561 Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4562
4563 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
4564 negation in proper type.a
4565
4566 2000-10-04 Richard Henderson <rth@cygnus.com>
4567
4568 * configure.in (enable-shared): New.
4569 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
4570 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
4571 * mklibgcc.in: Use them to link shared a libgcc.
4572 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
4573 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
4574 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
4575 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
4576
4577 * configure.in (alpha-osf*): Use t-osf and x-osf.
4578 * config/alpha/t-osf: New file.
4579 * config/alpha/t-osf4: New file.
4580 * config/alpha/x-osf: New file.
4581 * config/alpha/x-alpha: Remove file.
4582
4583 2000-10-04 Will Cohen <wcohen@redhat.com>
4584
4585 * c-typeck.c (process_init_element): Added warning for zero-length
4586 array.
4587
4588 * extend.texi (Zero Length): State that static initializers for
4589 zero-length arrays are not allowed.
4590
4591 Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
4592
4593 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
4594 to come last.
4595
4596 2000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4597
4598 * config/float-c4x.h: New.
4599 * configure.in (c4x-*): Set float_format to c4x.
4600 * configure: Regenerate.
4601
4602 2000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4603
4604 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
4605 compilation for solaris versions 2.7 and greater.
4606
4607 2000-10-02 Marc Espie <espie@openbsd.org>
4608
4609 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
4610 instead of redefining from scratch.
4611
4612 2000-10-02 David O'Brien <obrien@dragon.nuxi.com>
4613
4614 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
4615
4616 2000-10-01 Mark Mitchell <mark@codesourcery.com>
4617
4618 * config/ns32k/genix.h: Remove.
4619 * config/ns32k/x-genix: Likewise.
4620 * config/ns32k/xm-genix.h: Likewise.
4621 * config/fx80: Remove all filee in directory.
4622 * config/pyr: Likewise.
4623 * config/tahoe: Likewise.
4624 * config/gmicro: Likewise.
4625 * config/spur: Likewise.
4626 * configure.in: Remove configury bits for above targets.
4627 * configure: Regenerated.
4628
4629 * configure.in: Don't configure chill by default.
4630 * configure: Regenerated.
4631
4632 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
4633 (lang_mark_false_label_stack): Remove.
4634 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
4635 <top level> string in GC area.
4636 (mark_splay_tree_node): New function.
4637 (mark_splay_tree): Likewise.
4638 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
4639 if it exists.
4640 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
4641 * ggc-common.c (lang_mark_false_label_stack): Change type.
4642 * ggc.h (ggc_alloc_string): Add comment.
4643 (ggc_strdup): New function.
4644
4645 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
4646
4647 * config/avr/avr.h (BRANCH_COST): Define as 0.
4648
4649 * config/pdp11/pdp11.c: #include "tree.h" added.
4650
4651 2000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
4652
4653 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
4654 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
4655 with known shift count.
4656 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
4657 New alternative for shift count 2 with no scratch register.
4658 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
4659 "set_n" for shift counts 1 and 2.
4660
4661 2000-09-30 Geoff Keating <geoffk@cygnus.com>
4662
4663 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
4664 the mask value from the individual SET operations.
4665 (return_internal_si): Move the USE after the RETURN.
4666 (return_internal_di): Likewise.
4667 (return_and_restore_fpregs_si): Likewise.
4668 (return_and_restore_fpregs_di): Likewise.
4669 (return_eh_si): Likewise.
4670 (return_eh_di): Likewise.
4671 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
4672 or check, the USE.
4673 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
4674 Don't generate a PARALLEL around a single operation movsi_to_cr.
4675 Generate the RETURN first in any PARALLELs.
4676
4677 * rtlanal.c (single_set_1): Use fatal_insn to display the
4678 invalid insn. Check for more cases when a USE or CLOBBER occurs
4679 before a SET.
4680 * Makefile.in: Update dependencies for rtlanal.o.
4681
4682 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
4683
4684 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
4685
4686 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
4687
4688 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
4689 Consistently use @email for formatting email addresses.
4690
4691 2000-09-29 Richard Henderson <rth@cygnus.com>
4692
4693 * cse.c (notreg_cost): New argument outer.
4694 (COST): Pass in SET to notreg_cost
4695 (COST_IN): New.
4696 (fold_rtx): Use COST_IN. Prefer constants when costs
4697 are the same.
4698
4699 2000-09-29 David Edelsohn <edelsohn@gnu.org>
4700
4701 * fixinc/inclhack.def (broken_cabs): Generalize regex.
4702 * fixinc/fixincl.x: Regenerate.
4703
4704 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4705
4706 * loop.c (check_final_value): A GIV is not replaceable if used
4707 before set.
4708
4709 Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
4710
4711 * version.c: Bump to gcc-2.97.
4712
4713 Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
4714
4715 * final.c (final_scan_insn): Remove extra extract_insn call;
4716 Use caching for constrain_operands.
4717 (cleanup_subreg_operands): Use caching for extract_insn.
4718 * recog.c (constrain_operands_cached): New.
4719 * recog.h (constrain_operands_cached): Declare.
4720 * i386.c (ix86_attr_length_immediate_default,
4721 ix86_attr_length_address_default, ix86_agi_dependant): Cache
4722 extract_insn call.
4723
4724 * recog.c (asm_noperands): Tweak.
4725 (extract_insn): Do not call asm_noperads for non-asm instructions.
4726
4727 Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
4728
4729 * recog.c (recog_memoized): Rename to recog_memoized_1.
4730 * recog.h (recog_memoized): Rename to recog_memoized_1.
4731 (recog_memoized): New macro.
4732 * rtl.h (single_set): Rename to single_set_1
4733 (single_set): New macro.
4734 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
4735 to be last.
4736
4737 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
4738 Do not use match_dup of input operands at outputs.
4739 Use register_operand for memory expression.
4740 (rep_movsi): Put use last, canonicalize.
4741 Use register_operand for memory expression.
4742 (rep_movqi): Put use last.
4743 Use register_operand for memory expression.
4744 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
4745 of input operands at outputs. Use register_operand for memory
4746 expression.
4747 (rep_stossi): Put use last; canonicalize; fix match_dup in
4748 the address expression
4749 (rep_stosqi): Likewise.
4750 (memcmp expander): Update calls.
4751 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
4752 the clobbers.
4753
4754 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
4755 VOIDmode.
4756 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
4757
4758 2000-09-28 David O'Brien <obrien@FreeBSD.org>
4759
4760 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
4761 Contains the old contents of config/i386/freebsd.h
4762 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
4763 Contains the old contents of config/i386/freebsd-elf.h
4764 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
4765 config/i386/freebsd.h.
4766 * configure.in: Adjust for above changes.
4767 * po/POTFILES.in: Likewise.
4768 * po/en_GB.po: Likewise.
4769 * po/gcc.pot: Likewise.
4770 * configure: Rebuilt.
4771
4772 2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4773
4774 * doloop.c (doloop_modify): Prevent delete_insn() from
4775 deleting too much. Prefer loop->top over loop->start as
4776 target for the new JUMP insn.
4777 (doloop_valid_p): Ignore loop with exit_count != 0.
4778
4779 2000-09-28 Philipp Thomas <pthomas@suse.de>
4780
4781 * invoke.texi (i386 Options): Add athlon to table of possible
4782 choices for -mcpu=.
4783
4784 2000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
4785
4786 * diagnostic.h (output_clear_message_text): New function.
4787 (output_message_text): New macro.
4788
4789 * diagnostic.c (clear_text_info): Rename to
4790 output_clear_message_text.
4791 (output_clear): Adjust.
4792 (output_finish): Rename to output_finalize_message. Tweek.
4793 (output_to_stream): Adjust.
4794
4795 2000-09-28 Neil Booth <neilb@earthling.net>
4796
4797 * cpperror.c (_cpp_begin_message): Do the test for suppression
4798 of warnings and pedantic warnings before the "is a warning an
4799 error" tests.
4800 * cppinit.c (cpp_handle_option): Remove surplus \n.
4801 * cpplex.c (ON_REST_ARG): Delete.
4802 (skip_block_comment): Initialise prevc.
4803 (parse_args): Improve error messages.
4804 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
4805 than ON_REST_ARG.
4806 * cpplib.c (cpp_push_buffer): Fix grammar in message.
4807 * cppmain.c (main): Set callbacks for #ident and #pragma
4808 only if no_output option is false.
4809 (do_pragma_implementation): Only call the #pragma handler
4810 if it is set in the cpp_reader structure.
4811
4812 Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
4813
4814 * integrate.c (copy_insn_list): if an ignored return value
4815 is being clobbered, skip cloning that into the inline copy.
4816
4817 2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
4818
4819 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
4820 use @uref for formatting URLs.
4821
4822 2000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
4823
4824 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
4825 name and prefix.
4826
4827 Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
4828
4829 * gcc.c (cpp_options): Add spec for -ftabstop=.
4830 (invoke_as): New spec that handles invoking as.
4831 Update specs to handle -save-temps and -traditional.
4832 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
4833 Use invoke_as.
4834 * cp/lang-specs.h, objc/lang-specs.h: Update to use
4835 invoke_as, and handle -save-temps and -traditional (if
4836 appropriate).
4837
4838 2000-09-26 Jakub Jelinek <jakub@redhat.com>
4839
4840 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
4841 op0 is a SUBREG.
4842 (function_arg_slotno): Accept TImode/CTImode.
4843 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
4844 to UNITS_PER_WORD.
4845
4846 2000-09-26 Michael Hayes <mhayes@cygnus.com>
4847
4848 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
4849 from entry block.
4850
4851 2000-09-25 Jim Wilson <wilson@cygnus.com>
4852
4853 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
4854 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
4855 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
4856 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
4857
4858 Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
4859
4860 * cpplex.c (parse_args): Don't set VOID_REST flag.
4861 (CONTEXT_VARARGS): New flag.
4862 (maybe_paste_with_next): Set context earlier in loop. Use
4863 it. Do varargs test with CONTEXT_VARARGS flag.
4864 (push_arg_context): Set CONTEXT_VARARGS flag if we're
4865 pushing an argument context for a varargs argument.
4866 * cpplib.h (VOID_REST): Delete.
4867 * gcc.dg/cpp/vararg1.c: Add test case.
4868
4869 2000-09-25 Branko Cibej <branko.cibej@hermes.si>
4870
4871 * flags.h: Declare warning flag warn_system_headers.
4872 * toplev.c: Define it.
4873 (W_options): Add option -Wsystem-headers.
4874 * diagnostic.c (count_error): Test warn_system_headers.
4875 * invoke.texi: Add description for -Wsystem-headers.
4876 * cpplib.h (cpp_options): New member warn_system_headers.
4877 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
4878 CPP_IN_SYSTEM_HEADER.
4879 * cpplib.c (do_import, do_pragma_once): Likewise.
4880 * cpperror.c (_cpp_begin_message): Test warn_system_headers
4881 and CPP_IN_SYSTEM_HEADER.
4882 * cppinit.c (handle_option): Recognize -Wsystem_headers.
4883 (print_help): Describe -Wsystem_headers.
4884 * cpplex.c (lex_line): Reorganize condition so that warnings
4885 about C++ comments in system headers can be enabled. Remove
4886 label do_line_comment.
4887
4888 Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
4889
4890 * cpplex.c (save_comment): Only store the initial '/'
4891 now.
4892 (lex_token): Combine handling of the two comment types.
4893 Pass everything but the initial '/' to save_comment.
4894
4895 Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
4896
4897 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
4898 _cpp_can_paste): New library-internal prototypes.
4899 * cpplex.c (dump_param_spelling, output_line_command,
4900 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
4901 cpp_printf, cpp_output_list): Move to cppoutput.c.
4902 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
4903 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
4904 cppoutput.c.
4905 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
4906 dump_param_spelling, output_line_command, cpp_scan_buffer,
4907 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
4908 from elsewhere.
4909 * Makefile.in: Add cppoutput.c.
4910 * po/POTFILES.in: Add cppoutput.c.
4911
4912 2000-09-25 Richard Henderson <rth@cygnus.com>
4913
4914 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
4915 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
4916 split until after reload.
4917 (rotlsi3, rotldi3): New.
4918
4919 2000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
4920
4921 * diagnostic.c (output_last_position): Define.
4922 (set_real_maximum_length): Tweek.
4923 * diagnostic.h (output_last_position): Declare.
4924
4925 2000-09-25 Kazu Hirata <kazu@hxi.com>
4926
4927 * config/i386/i386.c: Fix formatting.
4928
4929 2000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
4930
4931 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
4932 UNITS_PER_WORD is small.
4933
4934 2000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
4935
4936 * c-common.c (format_char_info): Add flags2; update comments.
4937 (print_char_table, scan_char_table, time_char_table): Split some
4938 flags out into flags2.
4939 (check_format_info): Use flags2 for those flags, for identifying
4940 the initial character of a scanf scanset, and for identifying
4941 printf formats where the '0' flag is ignored with precision.
4942
4943 2000-09-25 Hans-Peter Nilsson <hp@axis.com>
4944
4945 Changes below marked "here" add TABs on either or both sides,
4946 covering start of line, up to any operand for all noted .*ASM.*_OP
4947 definitions. All callers changed.
4948 * tm.texi: Make documented *_ASM.*_OP:s include spacing
4949 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
4950 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
4951 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
4952 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
4953 Fix typos in description for LONG_LONG_TYPE_SIZE and
4954 FINI_SECTION_ASM_OP.
4955 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
4956 why these defaults don't have leading spacing.
4957 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
4958 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
4959 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
4960 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
4961 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
4962 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
4963 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
4964 * varasm.c (ASM_STABS_OP): Here.
4965 * xcoffout.h (ASM_STABS_OP): Here.
4966 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
4967 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
4968 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
4969 STRING_ASM_OP): Here.
4970 * config/freebsd.h (IDENT_ASM_OP): Here.
4971 * config/linux-aout.h (SET_ASM_OP): Here.
4972 * config/linux.h (SET_ASM_OP): Here.
4973 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
4974 INT_ASM_OP): Here.
4975 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
4976 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
4977 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
4978 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
4979 INT_ASM_OP): Here.
4980 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
4981 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
4982 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
4983 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
4984 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
4985 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
4986 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
4987 * config/a29k/udi.h (INT_ASM_OP): Here.
4988 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
4989 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
4990 SET_ASM_OP): Here.
4991 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
4992 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
4993 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
4994 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
4995 ASM_STABD_OP): Here.
4996 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
4997 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
4998 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
4999 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
5000 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
5001 SIZE_ASM_OP, STRING_ASM_OP): Here.
5002 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
5003 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
5004 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
5005 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
5006 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
5007 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
5008 Here.
5009 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5010 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
5011 * config/arm/coff.h (INT_ASM_OP): Here.
5012 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
5013 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
5014 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
5015 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
5016 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
5017 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5018 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
5019 STRING_ASM_OP): Here. Update documentation copy in comments.
5020 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
5021 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
5022 DATA_SECTION_ASM_OP): Here.
5023 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
5024 Here.
5025 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
5026 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
5027 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5028 BSS_SECTION_ASM_OP): Here.
5029 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5030 BSS_SECTION_ASM_OP): Here.
5031 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5032 Here.
5033 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
5034 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
5035 * config/h8300/h8300.h (ASM_WORD_OP): Here.
5036 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5037 BSS_SECTION_ASM_OP): Here.
5038 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
5039 * config/i386/bsd.h (ASM_BYTE_OP): Here.
5040 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
5041 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
5042 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
5043 Here.
5044 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
5045 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
5046 Here.
5047 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
5048 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5049 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
5050 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
5051 SET_ASM_OP): Here.
5052 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
5053 * config/i386/netbsd.h (INT_ASM_OP): Here.
5054 * config/i386/openbsd.h (INT_ASM_OP): Here.
5055 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
5056 IDENT_ASM_OP): Here.
5057 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
5058 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
5059 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
5060 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
5061 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
5062 SHARED_BSS_SECTION_ASM_OP): Here.
5063 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
5064 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
5065 DATA_SECTION_ASM_OP): Here.
5066 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5067 CONST_SECTION_ASM_OP): Here.
5068 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
5069 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5070 BSS_SECTION_ASM_OP): Here.
5071 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
5072 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
5073 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
5074 BSS_ASM_OP): Here, but use trailing spaces.
5075 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
5076 DATA_SECTION_ASM_OP): Here.
5077 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
5078 Here.
5079 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
5080 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
5081 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5082 TDESC_SECTION_ASM_OP): Here.
5083 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
5084 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5085 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5086 Here.
5087 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5088 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
5089 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5090 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
5091 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
5092 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
5093 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5094 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
5095 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
5096 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
5097 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
5098 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
5099 SET_ASM_OP): Here.
5100 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
5101 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5102 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
5103 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
5104 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
5105 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
5106 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
5107 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5108 GLOBAL_ASM_OP): Here.
5109 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
5110 BSS_SECTION_ASM_OP): Here.
5111 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
5112 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5113 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
5114 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
5115 SKIP_ASM_OP): Here.
5116 * config/m68k/newsgas.h (SET_ASM_OP): Here.
5117 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
5118 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
5119 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
5120 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
5121 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
5122 but use trailing spaces.
5123 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
5124 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
5125 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
5126 Here.
5127 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
5128 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
5129 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5130 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
5131 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5132 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
5133 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
5134 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
5135 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
5136 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
5137 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5138 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
5139 ASM_BYTE_OP): Here.
5140 * config/m88k/openbsd.h (SET_ASM_OP): Here.
5141 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5142 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
5143 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
5144 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
5145 DTORS_SECTION_ASM_OP): Here.
5146 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
5147 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5148 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
5149 BSS_SECTION_ASM_OP): Here.
5150 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
5151 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
5152 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
5153 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
5154 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
5155 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
5156 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
5157 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
5158 Here.
5159 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
5160 Here.
5161 * config/mips/osfrose.h (SET_ASM_OP): Here.
5162 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
5163 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
5164 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
5165 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5166 Here.
5167 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
5168 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
5169 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
5170 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
5171 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
5172 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5173 Here.
5174 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5175 Here.
5176 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
5177 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
5178 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
5179 Here.
5180 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
5181 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
5182 * config/sparc/linux.h (COMMON_ASM_OP): Here.
5183 * config/sparc/linux64.h (COMMON_ASM_OP,
5184 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
5185 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
5186 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5187 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
5188 * config/sparc/pbd.h (ASM_INT_OP): Here.
5189 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
5190 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
5191 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
5192 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
5193 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
5194 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
5195 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
5196 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
5197 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
5198 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5199 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5200 EH_FRAME_SECTION_ASM_OP): Here.
5201 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
5202 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5203 Here.
5204 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5205 Here.
5206 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
5207 TCOMMON_ASM_OP): Here.
5208 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5209 Here.
5210 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5211 ASM_BYTE_OP): Here.
5212
5213 2000-09-25 Richard Henderson <rth@cygnus.com>
5214
5215 * expmed.c (store_bit_field): Adjust last change to not consider
5216 any word-sized field naturally aligned.
5217
5218 2000-09-24 Richard Henderson <rth@cygnus.com>
5219
5220 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
5221 TFmode unordered compares properly. Revalidate integer compare
5222 operands.
5223 (alpha_emit_setcc): New.
5224 (alpha_emit_conditional_move): Revalidate integer compare operands.
5225 * config/alpha/alpha-protos.h: Update.
5226 * config/alpha/alpha.md (cmpdi): Allow general operands.
5227 (sne): Use alpha_emit_setcc.
5228 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
5229 (sunordered, sordered): New.
5230
5231 2000-09-24 Richard Henderson <rth@cygnus.com>
5232
5233 * config/ia64/ia64-protos.h: Update.
5234 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
5235 (ia64_expand_call): New.
5236 (ia64_expand_prologue): Emit an alloc if we need extra input
5237 registers.
5238 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
5239 instruction if true.
5240 (struct reg_flags): Add is_sibcall.
5241 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
5242 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
5243 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
5244 * config/ia64/ia64.h (PREDICATE_CODES): Update.
5245 * config/ia64/ia64.md (call): Use ia64_expand_call.
5246 (call_value): Likewise.
5247 (sibcall, sibcall_value): New.
5248 (call patterns): Remove extra expanders; tidy.
5249 (sibcall_epilogue): New.
5250 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
5251
5252 2000-09-24 Richard Henderson <rth@cygnus.com>
5253
5254 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
5255
5256 * sibcall.c (skip_pic_restore): New.
5257 (identify_call_return_value): Use it.
5258
5259 2000-09-24 Mark Mitchell <mark@codesourcery.com>
5260
5261 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
5262 functions. Generalize to handle both C and C++.
5263 * Makefile.in (c-tree.info): New target.
5264 (info): Add c-tree.info.
5265
5266 Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5267
5268 * expr.c (store_field): If BITSIZE is negative, use size of type.
5269 (expand_expr, case COMPONENT_EXPR): Likewise.
5270
5271 Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
5272
5273 * cpplex.c: Update TODO comment.
5274 * cpplib.c (do_error, do_warning): Merge common code of
5275 do_error and do_warning into do_diagnostic. Use it.
5276 (do_diagnostic): New function.
5277 * cpplib.h: Fix comment typo.
5278
5279 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
5280
5281 * c-common.c (check_format_info): Warn for a wide character string
5282 used as a non-wide format argument.
5283
5284 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
5285
5286 * builtins.def (BUILT_IN_LLABS): Add.
5287 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
5288 * c-common.c (c_common_nodes_builtins): Create builtin functions
5289 __builtin_llabs, and plain llabs unless no_nonansi_builtins
5290 outside of C99 mode.
5291 (expand_tree_builtin): Handle BUILT_IN_LLABS.
5292
5293 Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
5294
5295 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
5296 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
5297 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
5298 _cpp_free_toklist): No need to worry about extra dummy token
5299 at the start of token lists any more.
5300 (trigraph_ok): Only warn outside comments.
5301 (skip_block_comment): Set and clear lexing_comment.
5302 (skip_line_comment): Take a cpp_reader not cpp_buffer.
5303 Set and clear lexing_comment.
5304 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
5305 (check_long_token): Delete.
5306 (lex_percent, lex_dot): New subroutines of lex_token to
5307 handle lexing of '.' and '%' without lookback.
5308 (lex_token): Use lex_dot and lex_percent.
5309 (lex_line): Don't check for LIST_OFFSET.
5310 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
5311 * cpplib.c (_cpp_parse_assertion): Similarly.
5312 (cpp_push_buffer): Initialize extra_char.
5313 * cpplib.h (LIST_OFFSET): Delete.
5314 (struct cpp_buffer): New member extra_char.
5315 (struct lexer_state): New members lexing_comment and seen_dot.
5316
5317 2000-09-23 Jason Merrill <jason@redhat.com>
5318
5319 * config/rs6000/x-aix41 (CLIB): Define here.
5320 * config/rs6000/t-aix43: Not here.
5321 * config/rs6000/t-aix41: Or here. Remove.
5322 * configure.in: Don't use it.
5323
5324 2000-09-22 Jason Merrill <jason@redhat.com>
5325
5326 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
5327 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
5328 * config.in: Regenerate.
5329
5330 * configure.in: Fix checks for assembler features when using a
5331 one-tree assembler that has not yet been built.
5332 Fix --disable-threads.
5333
5334 2000-09-19 Geoff Keating <geoffk@cygnus.com>
5335
5336 * stmt.c (expand_asm_operands): Allow # in constraints.
5337
5338 2000-09-22 Jason Merrill <jason@redhat.com>
5339
5340 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
5341
5342 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
5343 function-local names.
5344
5345 2000-09-22 Brad Lucier <lucier@math.purdue.edu>
5346 Mark Mitchell <mark@codesourcery.com>
5347
5348 * toplev.c (warn_disabled_optimization): Declare new warning flag.
5349 * flags.h (warn_disabled_optimization): Add it here.
5350 * gcse.c (gcse_main): Add warning when disabled.
5351 * invoke.texi: Document -Wdisabled-optimization.
5352
5353 2000-09-21 Jason Merrill <jason@redhat.com>
5354
5355 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
5356
5357 * dwarf2out.c (tree_add_const_value_attribute): New fn.
5358 (gen_variable_die): Call it for non-definitions.
5359
5360 * dwarf2out.c (die_struct): Add die_mark field.
5361 (mark_dies, unmark_dies): New fns.
5362 (clear_die_sizes): Remove.
5363 (print_die): Check die_symbol rather than die_offset.
5364 (build_abbrev_table, output_pubnames, output_aranges): Check
5365 die_mark rather than die_offset.
5366 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
5367 Call mark_dies.
5368
5369 Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
5370
5371 * cppfiles.c (lookup_include_file): Rename to open_file.
5372 Always create a splay tree value, even on syscall failures.
5373 Negative entries indicated by fd == -2.
5374 Re-open files closed in the meantime.
5375 (_cpp_fake_include): Create a negative splay tree entry.
5376 (find_include_file, cpp_read_file): Update for function name
5377 change.
5378 * gcc.gd/cpp/mi4.c: Testcase.
5379
5380 2000-09-21 Nick Clifton <nickc@redhat.com>
5381
5382 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
5383 ARM and THUMB modes.
5384
5385 * config/mcore/mcore.c: Fix compile time warnings.
5386 * config/mcore/mcore-protos.h: Fix compile time warnings.
5387
5388 2000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5389
5390 * configure.in: Correct test of gcc_cv_glibc.
5391 * configure: Rebuilt.
5392 * config.in: Rebuilt.
5393
5394 2000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5395
5396 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
5397 (expand_builtin): Handle BUILT_IN_FWRITE.
5398
5399 * builtins.def (BUILT_IN_FWRITE): New entry.
5400
5401 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
5402
5403 Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5404
5405 * gcc.c (modify_target): New variable and struct.
5406 (process_command): Handle MODIFY_TARGET_NAME.
5407 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
5408 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
5409
5410 * c-decl.c (finish_decl): Add else's to avoid referencing
5411 TYPE_DOMAIN of an ERROR_MARK.
5412
5413 Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
5414
5415 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
5416 `reload_in*' insns.
5417
5418 2000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
5419
5420 * config/avr/avr.md (neghi2): Add alternative for input and output
5421 operands in different registers, as in negsi2.
5422 (*negsi2): Remove '*' from the name. Use "movw" if available.
5423
5424 2000-09-19 Jim Wilson <wilson@cygnus.com>
5425
5426 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
5427 HAVE_GAS_HIDDEN macro.
5428
5429 Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
5430
5431 * cpplex.c (lex_line): Drop the EOF token for unknown
5432 directives in assembler.
5433
5434 2000-09-19 David Edelsohn <edelsohn@gnu.org>
5435
5436 * configure.in: Allow enable_threads_flag value of "aix". Define
5437 thread_file as "aix" for AIX 4.3 and above.
5438 * configure: Regenerated.
5439
5440 * gthr-aix.h: New file.
5441
5442 * rs6000/t-aix43: Replace soft-float multilib with pthread.
5443 Remove 403 processor multilib match. Fix rios2 processor multilib
5444 match.
5445
5446 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
5447 to return to appropriate csect.
5448
5449 2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5450
5451 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
5452 functions.
5453 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
5454 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
5455 BUILT_IN_PRINTF.
5456
5457 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
5458 New entries.
5459
5460 * c-common.c (init_function_format_info): Handle __builtin_printf.
5461 Set `check_function_format_ptr'.
5462 (c_common_nodes_and_builtins): Set `puts_ftype' and
5463 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
5464 __builtin_printf and printf.
5465
5466 * tree.c, tree.h (check_function_format_ptr): Declare.
5467
5468 Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
5469
5470 * cppfiles.c (read_include_file): Take no special action for
5471 zero-length files.
5472
5473 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
5474
5475 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
5476 rather than that of branch.
5477 (shorten_branches): Don't increment insn_current_address twice.
5478
5479 Undo most of the Wed Jan 27 23:39:53 1999 patch:
5480 * loop.h (struct induction): Delete members derived, ix and last_use.
5481 (struct loop_ivs): Delete members first_increment_giv and
5482 last_increment_giv.
5483 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
5484 recombine_givs): Delete functions.
5485 (find_and_verify_loops): Don't initialize cont_dominator.
5486 (strength_reduce): Lose code to try to find bivs that can be
5487 expressed as givs of another biv, and to convert biv increments
5488 into givs.
5489 Lose loop_scan_start variable, always use loop->scan_start.
5490 Don't call recombine_givs. Don't handle derived givs.
5491 (record_giv): Don't initialize derived and last_use fields.
5492 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
5493 givs.
5494 * unroll.c (derived_regs): Delete static variable.
5495 (unroll_loop): Don't initialize it.
5496 (copy_loop_body): Lose code to handle derived givs.
5497 (find_splittable_givs): Don't check for givs made from biv
5498 increments.
5499 Don't set derived_regs.
5500
5501 Fix misapplied earlier patch:
5502 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
5503 to fpul.
5504 (floatsisf2): Generate floatsisf_ie by default.
5505 (floatsisf_i4): Conditional on TARGET_SH4.
5506
5507 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
5508 predicate for the expanders.
5509
5510 2000-09-19 Richard Henderson <rth@cygnus.com>
5511
5512 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
5513 in addition to pentium and pentiumpro symbols.
5514 (CPP_CPU_DEFAULT_SPEC): Likewise.
5515
5516 * c-typeck.c (c_expand_asm_operands): Restore the output tree
5517 after expanding.
5518
5519 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
5520 if the tree has side effects.
5521 (warn_if_unused_value): Do not warn about void constructs.
5522
5523 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
5524
5525 * unroll.c (copy_loop_body): Update LABEL_NUSES before
5526 calling invert_jump.
5527
5528 2000-09-18 Geoff Keating <geoffk@cygnus.com>
5529
5530 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
5531 into anything.
5532
5533 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5534
5535 * Makefile.in (c-common.o): Depend on diagnostic.h.
5536
5537 * c-common.c: Include diagnostic.h.
5538 (tfaff): Delete.
5539 (status_warning): New function.
5540 (check_format_info, maybe_read_dollar_number, check_format_types,
5541 finish_dollar_format_checking, check_function_format): Accept a
5542 `status' parameter. All callers changed.
5543
5544 * c-common.h (check_function_format): Accept a `status' parameter.
5545
5546 * c-typeck.c: Update call to `check_function_format'.
5547
5548 2000-09-18 Richard Henderson <rth@cygnus.com>
5549
5550 * c-decl.c (c_expand_body): Call mark_varargs before
5551 expand_function_start.
5552
5553 2000-09-18 Geoff Keating <geoffk@cygnus.com>
5554
5555 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
5556 * config/rs6000/eabi-ci.asm: Likewise.
5557
5558 2000-09-18 Richard Henderson <rth@cygnus.com>
5559
5560 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
5561 for BImode.
5562
5563 2000-09-18 Jim Wilson <wilson@cygnus.com>
5564
5565 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
5566 before passing it to fold_rtx_mult_add.
5567
5568 * unroll.c (final_giv_value): Pass increment through
5569 extend_value_for_giv before passing it to emit_iv_add_mult.
5570
5571 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
5572 paradoxical subreg, then directly substitute the replacement and
5573 return.
5574
5575 Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
5576
5577 * cpp.texi: Update documentation, including some clarifications,
5578 the treatment of various newline combinations, and space between
5579 backslash and newline.
5580
5581 Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
5582
5583 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
5584 Replace ASM_OUTPUT_LABELREF with assemble_name.
5585
5586 Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
5587
5588 * sh.c (addsubcosts): CONST is not cheap.
5589 (find_barrier): For Sh1, take alignment after jumps into account.
5590
5591 2000-09-15 Andrew Haley <aph@redhat.com>
5592
5593 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
5594 remove all SETs of SUBREGs of hard registers.
5595 * function.c (purge_hard_subreg_sets): New function.
5596 (purge_single_hard_subreg_set): New function.
5597 * rtl.h: (purge_hard_subreg_sets): New function.
5598
5599 2000-09-18 Richard Henderson <rth@cygnus.com>
5600
5601 * config/ia64/ia64-protos.h: Update.
5602 * config/ia64/ia64.c (signed_inequality_operator): New.
5603 (ia64_expand_compare): New.
5604 (ia64_register_move_cost): Handle PR_REGS moves.
5605 (ia64_secondary_reload_class): Require a GR when moving to a PR.
5606 (struct reg_write_state): Add written_by_and/or.
5607 (struct reg_flags): Add is_and/or.
5608 (rws_update): Set them.
5609 (rws_access_regno): Test them to allow parallel comparisons.
5610 (rtx_needs_barrier): Recognize parallel comparisons.
5611 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
5612 Call recog_memoized; ignore pred_rel_mutex.
5613 (emit_predicate_relation_info): Don't call find_basic_blocks here.
5614 (ia64_reorg): Do it here instead.
5615 * config/ia64/ia64.h: s/CCmode/BImode/g
5616 (MODES_TIEABLE_P): Don't tie BImode.
5617 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
5618 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
5619 (RTX_COSTS): Make multiply 4 insns.
5620 (MEMORY_MOVE_COST): New.
5621 (PREDICATE_CODES): Update.
5622 * config/ia64/ia64.md: s/CCmode/BImode/g
5623 (movcci, movbi): New.
5624 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
5625 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
5626 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
5627 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
5628 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
5629 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
5630 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
5631 (mulsi, muldi): Use xmpy not xma.
5632 (cmpbi): New.
5633 (movcc, movcc_internal): Remove.
5634 (branch expanders): Use ia64_expand_compare.
5635 (setcc expanders): Likewise.
5636 (cmov insns): Use move_operand and ia64_move_ok.
5637 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
5638 scheduler from moving it past a use.
5639 * config/ia64/build.hacks: Remove.
5640
5641 Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
5642
5643 * cpphash.h (HASHSTEP): Take character rather than pointer
5644 to character.
5645 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
5646
5647 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
5648
5649 * cpplex.c (auto_expand_name_space, trigraph_replace,
5650 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
5651 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
5652 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
5653 KNOWN_DIRECTIVE): Delete.
5654
5655 (handle_newline, check_long_token, skip_escaped_newlines,
5656 unterminated): New functions.
5657 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
5658
5659 (parse_identifier): Was parse_name, new implementation.
5660 (skip_line_comment, skip_block_comment, skip_whitespace,
5661 parse_number, parse_string, trigraph_ok, save_comment,
5662 adjust_column, _cpp_get_line): New implementations.
5663
5664 (lex_token): New function. Lexes a token at a time, looking
5665 forwards. Contains most of the guts of the old lex_line.
5666 (lex_line): New implementation, using lex_token to obtain
5667 individual tokens.
5668 (cpp_scan_buffer): Use the token's line, not the list's line.
5669
5670 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
5671 New implementations.
5672 (do_assert): Don't bother setting the answer's list's line.
5673 (cpp_push_buffer): Initialise new pfile and read_ahead members
5674 of struct cpp_buffer.
5675
5676 * cpplib.h (cppchar_t): New typedef.
5677 (struct cpp_buffer): read_ahead, pfile and col_adjust are
5678 new members.
5679 (struct lexer_state): New structure that determines the state
5680 and behaviour of the lexer.
5681 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
5682 (struct cpp_reader): New member "state". Rename
5683 multiline_string_line and multiline_string_column. Delete
5684 col_adjust, in_lex_line members.
5685 (CPP_BUF_COLUMN): Update.
5686
5687 2000-09-18 Richard Henderson <rth@cygnus.com>
5688
5689 * combine.c (simplify_comparison): Shift a NOT out of a single
5690 bit test.
5691
5692 * combine.c (if_then_else_cond): Canonicalize BImode true to
5693 STORE_FLAG_VALUE.
5694 * explow.c (trunc_int_for_mode): Likewise.
5695
5696 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
5697 the NOT for De Morgan's rule.
5698 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
5699 of a comparison to the reverse comparison.
5700
5701 * combine.c (try_combine): Allow split to create a single insn.
5702
5703 * machmode.def: Add BImode. Add a column for bitsize.
5704 * machmode.h (DEF_MACHMODE): Adjust for extra column.
5705 (GET_MODE_BITSIZE): Use it.
5706 * rtl.c (DEF_MACHMODE): Adjust for extra column.
5707 (mode_bitsize): New.
5708 (mode_mask_array): Use bitsize.
5709 * combine.c (combine_simplify_rtx): Require inner and outer
5710 modes to match on nonzero_bits optimizations.
5711
5712 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
5713
5714 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
5715 its entry in spill_reg_store.
5716 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
5717 * sh.c (reg_no_subreg_operand): New function.
5718 * sh-protos.h (reg_no_subreg_operand): Declare it.
5719 * sh.h (PREDICATE_CODES): Add it.
5720 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
5721 input operand that needs to be in fpul.
5722 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
5723 * sh.c (find_barrier): Take into account that machine_dependent_reorg
5724 might add new insns.
5725
5726 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5727
5728 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
5729 MAYBE_DEAD.
5730 (sh_expand_epilogue): Take the PIC register into account when
5731 computing the frame size.
5732
5733 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
5734 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
5735 LABEL_REFs with a PIC-safe unspec.
5736
5737 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
5738
5739 * c-common.c (check_format_info): Properly save the argument
5740 number and parameter for $ operand number formats in case width
5741 and precision arguments are also used. Allow printf width and
5742 precision arguments to have operand numbers even if none was
5743 specified for the main format, since this is OK for %*.*m. Only
5744 object to missing $ operand number if the format used requires an
5745 argument.
5746
5747 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
5748
5749 * c-common.c (format_char_info): Add 'W' flag to comment.
5750 (print_char_table, scan_char_table): Use it.
5751 (check_format_info): Use the 'W' flag to determine whether a
5752 format argument is written into.
5753
5754 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
5755
5756 * c-common.c (check_format_types): Reorganise and clean up,
5757 checking earlier for ERROR_MARKs and making cur_type into its
5758 TYPE_MAIN_VARIANT where convenient.
5759
5760 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
5761
5762 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
5763
5764 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
5765
5766 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
5767
5768 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
5769 * i386.c (struct builtin_description): New.
5770 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
5771 (mmx_reg_operand): Declare MODE arg as unused.
5772 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
5773 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
5774 ix86_expand_binop_builtin, ix86_expand_store_builtin,
5775 ix86_init_builtins, ix86_expand_builtin): New functions.
5776 * i386.h (ix86_builtins): New enumeration.
5777 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
5778 * i386.md (attr length_immediate): 0 for mmx/sse types.
5779 (attr prefix_0f): 1 for mmx/sse types.
5780 (setcc_2): Remove "*" so we get gen_setcc_2.
5781 (emms): Account for changed register numbering. Set "memory" attr
5782 to unknown.
5783 (sfence): Set "memory" attr to unknown.
5784
5785 2000-09-18 Andreas Jaeger <aj@suse.de>
5786
5787 * configure.in: Define _GNU_SOURCE only when using the GNU C
5788 Library.
5789 * configure: Regenerated.
5790 * config.in: Regenerated.
5791
5792 2000-09-17 Mark Mitchell <mark@codesourcery.com>
5793
5794 * cppinit.c (cpp_init): Don't use ANSI prototypes.
5795 * flow.c (flow_dump_loop): Likewise.
5796 (flow_loops_dump): Likewise.
5797
5798 * c-typeck.c (c_start_case): Fix typo.
5799
5800 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
5801
5802 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
5803 to int for plain complex which defaults to complex double. Do
5804 warn about defaulting to complex double if pedantic. Warn about
5805 complex integer types if pedantic. Warn about complex types if
5806 pedantic and not in C99 mode.
5807 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
5808 for complex conjugation.
5809
5810 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
5811
5812 * contrib.texi: Update my entry.
5813
5814 Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
5815
5816 * config/avr/avr.md (mcu_enhanced): New attribute.
5817 (mcu_mega): Likewise.
5818 (extendhisi2): Use mcu_enhanced.
5819 (zero_extendhisi2): Likewise.
5820 (call_insn): Use mcu_enhanced and mcu_mega.
5821 (call_value_insn): Likewise.
5822 (*sbrx_branch): Use mcu_mega.
5823 (*sbrx_and_branchsi): Likewise.
5824 (*sbrx_and_branchhi): Likewise.
5825 (*tablejump_lib): Likewise.
5826
5827 Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5828
5829 * alias.c (true_dependence): Allow non-unchanging read to conflict
5830 with unchanging write.
5831
5832 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
5833 (store_constructor): Pass alias_set to it.
5834
5835 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
5836 TYPE_MAIN_VARIANT of ERROR_MARK.
5837 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
5838
5839 * simplify-rtx.c (simplify_unary_operation): Add cases
5840 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
5841
5842 2000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
5843
5844 * expr.h (emit_library_call, emit_library_call_value): Delete
5845 declarations.
5846 * rtl.h (enum libcall_type): New.
5847 (emit_library_call, emit_library_call_value): Change fn_type arg to
5848 be of type enum libcall_type.
5849 * calls.c: Likewise for the function definitions. Several callers
5850 throughout changed to use the new enumeration appropriately.
5851 (emit_library_call_value_1): Likewise. Put back code to make libcall
5852 blocks of equal form, but only use it for the two new higher
5853 enumeration values.
5854
5855 2000-09-16 Mark Mitchell <mark@codesourcery.com>
5856
5857 Convert the C front-end to use function-at-a-time mode.
5858 * c-common.h: Include splay-tree.h.
5859 (C_DECLARED_LABEL_FLAG): New macro.
5860 (struct language_function): Add x_scope_stmt_stack and
5861 x_function_name_declared_p.
5862 (RECHAIN_STMTS): Move definition.
5863 (lang_statment_code_p): Likewise.
5864 (lang_expand_stmt): Likewise.
5865 (lang_expand_decl_stmt): New variable.
5866 (lang_expand_function_end): Likewise.
5867 (current_scope_stmt_stack): New function.
5868 (add_decl_stmt): Likewise.
5869 (add_scope_stmt): Likewise.
5870 (mark_stmt_tree): Likewise.
5871 (struct c_lang_decl): New structure.
5872 (DECL_SAVED_TREE): Define.
5873 (c_mark_lang_decl): New function.
5874 (c_expand_start_cond): Change prototype.
5875 (c_finish_then): New function.
5876 (c_finish_else): Likewise.
5877 (current_function_name_declared): Remove.
5878 (set_current_function_name_declared): Likewise.
5879 (mark_c_language_function): Declare.
5880 (case_compare): Likewise.
5881 (c_add_case_label): Likewise.
5882 (c_expand_expr): Likewise.
5883 (c_safe_from_p): Likewise.
5884 * c-common.c (lang_expand_function_end): New variable.
5885 (struct if_elt): Add if_stmt.
5886 (c_expand_start_cond): Add the if-statement to the statement-tree,
5887 rather than generating RTL.
5888 (c_finish_then): New function.
5889 (c_expand_start_else): Don't generate RTL.
5890 (c_finish_else): New function.
5891 (c_expand_expr_stmt): Don't generate RTL.
5892 (statement_code_p): Add SCOPE_STMT.
5893 (case_compare): New function.
5894 (c_add_case_label): Likewise.
5895 (mark_stmt_tree): Likewise.
5896 (c_mark_lang_decl): Likewise.
5897 (mark_c_language_function): Likewise.
5898 (c_expand_expr): Likewise.
5899 (c_safe_from_p): Likewise.
5900 * c-decl.c (c_stmt_tree): New variable
5901 (c_scope_stmt_stack): Likewise.
5902 (c_function_name_declared_p): Likewise.
5903 (lang_expand_expr_stmt): Remove.
5904 (poplevel): Don't call output_inline_function for nested
5905 functions.
5906 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
5907 `extern' function.
5908 (redeclaration_error_message): Change means of computing whether
5909 or not a function is nested.
5910 (lookup_label): Don't call label_rtx.
5911 (init_decl_processing): Add more GC roots.
5912 (start_decl): Add DECL_STMTs to the statement-tree, rather than
5913 calling rest_of_decl_compilation.
5914 (finish_decl): Don't call expand_decl.
5915 (store_parm_decls): Begin the statement-tree, but don't generate
5916 RTL.
5917 (finish_function): Tie off the statement-tree. Call c_expand_body
5918 if appropriate.
5919 (c_expand_body): New function.
5920 (push_c_function_context): Save more information.
5921 (pop_c_function_contxt): Likewise.
5922 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
5923 (lang_mark_tree): Mark it.
5924 (current_stmt_tree): Adjust.
5925 (current_scope_stmt_stack): New function.
5926 (do_case): Remove.
5927 (set_current_name_declared): Likewise.
5928 (c_begin_compound_stmt): Define.
5929 (c_expand_decl_stmt): Likewise.
5930 * c-lang.c: Include rtl.h and expr.h.
5931 (lang_init): Set more language-specific hooks.
5932 * c-lex.c: Include expr.h.
5933 * c-parse.in: Changes throughout to add statements to the
5934 statement-tree, rather than generating RTL after every statement.
5935 * c-semantics.c (lang_expand_decl_stmt): Define.
5936 (add_decl_stmt): New function.
5937 (add_scope_stmt): Likewise.
5938 (finish_stmt_tree): Tweak.
5939 (genrtl_expr_stmt): Likewise.
5940 (genrtl_decl_stmt): Handle local labels, and call
5941 lang_expand_decl_stmt if required.
5942 (genrtl_for_stmt): Fix line-number handling.
5943 (genrtl_case_label): Handle cleanups.
5944 (genrtl_asm_stmt): Don't call combine_strings.
5945 (genrtl_compound_stmt): Simplify.
5946 (expand_stmt): Handle SCOPE_STMTs.
5947 * c-tree.h (struct lang_decl): New structure.
5948 (C_DECLARED_LABEL_FLAG): Remove.
5949 (c_begin_compound_stmt): Declare.
5950 (c_expand_decl_stmt): Likewise.
5951 (c_expand_start_case): Rename to c_start_case.
5952 (c_finish_case): New function.
5953 * c-typeck.c (start_init): Tweak setting of
5954 constructor_incremental.
5955 (c_expand_asm_operands): Tweak error-handling. Add to the
5956 statement-tree.
5957 (c_expand_return): Add to the statement-tree.
5958 (c_expand_start_case): Rename to ...
5959 (c_start_case): ... this.
5960 (struct c_switch): New type.
5961 (switch_stack): New variable.
5962 (do_case): Simplify.
5963 (c_finish_case): New function.
5964 * dependence.c: Include expr.h.
5965 (enum dependence_type): Change spelling of enumerals.
5966 (check_node_dependence): Adjust.
5967 * expr.h (lang_safe_from_p): Declare.
5968 (safe_from_p): Likewise.
5969 * expr.c (lang_safe_from_p): New variable.
5970 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
5971 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
5972 * toplev.c (rest_of_decl_compilation): Robustify.
5973 * tree.c (contains_placeholder_p): Likewise.
5974 * Makefile.in: Update dependencies.
5975 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
5976 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
5977 (objc_expand_function_end): New function.
5978 (finish_method_def): Use it.
5979 (init_objc): Initialize more language-specific hooks.
5980 * objc/Make-lang.in: Update dependencies.
5981
5982 2000-09-16 Geoffrey Keating <geoffk@cygnus.com>
5983
5984 * configure.in: Define macros that affect features before
5985 testing for features. Don't define _XOPEN_SOURCE.
5986 * configure: Regenerated.
5987 * config.in: Regenerated.
5988
5989 Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
5990
5991 * rtlanal.c (rtx_varies_p): Volatile asms vary.
5992 (rtx_unstable_p): Restructure code. Volatile asms
5993 are unstable.
5994
5995 Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5996
5997 * function.h (no_debugging_symbols): New field.
5998 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
5999 Initialize no_debugging_symbols.
6000 (output_inline_function): Save and restore write_symbols and set from
6001 no_debugging_symbols.
6002 * toplev.c (rest_of_compilation): Call save_for_inline.
6003 * tree.h: Update comment.
6004
6005 * stor-layout.c (place_field): Don't do anything if field or
6006 its type are ERROR_MARK.
6007
6008 Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
6009
6010 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
6011 (read_include_file): Ensure inc->mmaped is initialized.
6012
6013 2000-09-16 Richard Henderson <rth@cygnus.com>
6014
6015 * cppiles.c (purge_cache): Use PTR not caddr_t.
6016
6017 2000-09-16 Hans-Peter Nilsson <hp@axis.com>
6018
6019 * gcc.c: In description for %{<S}, say the option removed is -S.
6020 * invoke.texi (Spec Files): Ditto.
6021
6022 2000-09-16 Andreas Jaeger <aj@suse.de>
6023
6024 * configure.in: Always define _GNU_SOURCE to make interfaces
6025 visible that were hidden by only defining _GNU_SOURCE.
6026 * configure: Regenerated.
6027
6028 Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
6029
6030 * cpplex.c (push_macro_context): Set an argument's level after
6031 calling parse_args. We could loop infinitely otherwise.
6032
6033 2000-09-15 Tom Tromey <tromey@cygnus.com>
6034
6035 * configure, config.in: Rebuilt.
6036 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
6037
6038 2000-09-15 Greg McGary <greg@mcgary.org>
6039
6040 * cppmacro.c (check_trad_stringification): Check token
6041 text pointers against limit before dereferencing.
6042
6043 2000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
6044
6045 * c-common.c (format_wanted_type): New structure.
6046 (check_format_types): New function.
6047 (check_format_info): Pass all checking of types of format
6048 arguments, including width and precision arguments, to this new
6049 function.
6050
6051 2000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6052
6053 * BUGS: Remove file.
6054
6055 2000-09-15 Jakub Jelinek <jakub@redhat.com>
6056
6057 * config/alpha/alpha.c (override_options): ev6 cache latencies
6058 from Richard Henderson. Don't allow -mmemory-latency=L0.
6059
6060 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
6061 (TARGET_OPTIONS): Add tune=.
6062 (alpha_tune_string): Declare.
6063 * config/alpha/alpha.c (override_options): Add cpu_table.
6064 Use alpha_cpu_string first to set both alpha_cpu and target_flags
6065 and then alpha_tune_string to set alpha_cpu only.
6066 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
6067 * config/alpha/elf.h (ASM_FILE_START): Likewise.
6068 * config/alpha/osf.h (ASM_FILE_START): Likewise.
6069 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
6070
6071 Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
6072
6073 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
6074 Remove.
6075 (ix86_comparison_operator, ix86_cc_mode): Declare
6076 * i386.h (CCGC, CCGCO): New modes.
6077 (SELECT_CC_MODE): Move offline to ....
6078 * i386.c (ix86_cc_mode): .... here; use new modes.
6079 (ix86_comparison_operator): New.
6080 (fcmov_comparison_operator): Ensure proper mode.
6081 (put_condition_mode): More sanity checking.
6082 (ix86_match_ccmode): Handle new modes.
6083 (ix86_expand_fp_compare): GEU requires CCmode.
6084 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
6085 doing it by hand.
6086 * i386.md (cmp?i_ccz_1): Remove
6087 (cmp?i_ccno_1): Use ix86_match_ccmode.
6088 (cmp?i_minus_1): New.
6089 (cmpsi_1): New expander.
6090 (cmpqi_ext_1): Use match_ccmode
6091 (cmpqi_ext_3): New expander.
6092 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
6093 (cmpqi_ext_4): Use match_ccmode.
6094 (add?i_?): Use match_ccmode.
6095 (add?i_6): New.
6096 (test?i_ccz_1): Remove
6097 (test?i_1): New.
6098 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
6099 (testqi_ext_0): Use ix86_match_ccmode.
6100 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
6101 (xorqi_cc_ext_1): New expander.
6102 (shift patterns): Use CCGOCmode for all shifts except for sar.
6103 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
6104 (setcc_3, jcc_3, miv?icc_c): Remove.
6105
6106 2000-09-15 Will Cohen <wcohen@redhat.com>
6107
6108 * dwarf2out.c (add_const_value_attribute): Changed array into a
6109 xmalloced object, so it exists after function exit.
6110 (free_AT): Added case for dw_val_class_float to free allocated
6111 memory.
6112
6113 2000-09-15 Kazu Hirata <kazu@hxi.com>
6114
6115 * config/i386/i386.md: Fix a comment typo.
6116 * gcc.c: Fix formatting.
6117
6118 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
6119
6120 * optabs.c (emit_libcall_block): If target is a user variable,
6121 copy to a temporary first.
6122 * expr.c (convert_move): When generating a libcall, make a libcall
6123 block.
6124 * calls.c (emit_library_call_value_1): Don't create a libcall
6125 sequence here; our caller will in most cases do it.
6126
6127 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
6128 MACH into FPUL.
6129 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
6130 * sh.md (reload_outsf): Generate recognizable patterns for
6131 TARGET_SH3E.
6132 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
6133 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
6134 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
6135 truncdfsf2_i4): Change not to use explicit references to fpul.
6136 (floatsisf2_ie): Remove USE of fpscr.
6137 (floatsisf2): Change default expansion to match this.
6138 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
6139 unused patterns.
6140
6141 2000-09-15 Richard Henderson <rth@cygnus.com>
6142
6143 * expmed.c (store_bit_field): Consider naturally aligned
6144 memory for direct reference.
6145
6146 2000-09-15 Richard Henderson <rth@cygnus.com>
6147
6148 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
6149 AND addresses into alias set 0.
6150 (alpha_expand_unaligned_store): Likewise.
6151 (alpha_expand_unaligned_load_words): Likewise.
6152 (alpha_expand_unaligned_store_words): Likewise.
6153
6154 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
6155
6156 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
6157 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
6158 is defined.
6159 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
6160 rsize of UNITS_PER_WORD.
6161
6162 Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
6163
6164 * cpplex.c (ON_REST_ARG): Correct the test.
6165 (maybe_paste_with_next): Duplicate a token that fail pasting,
6166 and clear its PASTE_LEFT flag, so that nested pasting attempts
6167 do not occur.
6168
6169 2000-09-14 Richard Henderson <rth@cygnus.com>
6170
6171 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
6172 * cse.c (rtx_cost): Likewise.
6173 * optabls.c (expand_binop): Likewise.
6174 (expand_twoval_binop, prepare_cmp_insn): Likewise.
6175 * regclass.c (copy_cost): Likewise.
6176 * reload1.c (reload_cse_move2add): Likewise.
6177
6178 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
6179
6180 * c-parse.in (reswords): Add _Complex.
6181
6182 2000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6183
6184 * gcc.1: Delete documentation for -undef preprocessor option.
6185
6186 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
6187
6188 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6189 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
6190 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
6191 Remove undefine before config/elfos.h.
6192 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
6193
6194 2000-09-14 Kazu Hirata <kazu@hxi.com>
6195
6196 * invoke.texi (H8/300 Options): Add -ms2600.
6197 * config/h8300.c (h8300_init_once): Output an error when -ms2600
6198 is used without -ms.
6199 * config/h8300.h (TARGET_MAC): New.
6200 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
6201 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
6202 machine other than H8/S2600.
6203 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
6204 of the H8/S2000.
6205
6206 2000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
6207
6208 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
6209 pseudos that refer to the original pseudos, not only to their
6210 equivalent memory locations.
6211
6212 Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6213
6214 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
6215 when making new MEM.
6216
6217 * Makefile.in (LN): Remove duplicate definition.
6218
6219 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
6220
6221 From Joern Rennecke:
6222 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
6223 on an insn and function_invariant_p returns nonzero for the source,
6224 add a REG_EQUAL note.
6225
6226 Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
6227
6228 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
6229 conflict with frame_pointer_rtx.
6230
6231 2000-09-13 Kazu Hirata <kazu@hxi.com>
6232
6233 * loop.c: Fix formatting.
6234 * loop.h: Likewise.
6235
6236 2000-09-13 Richard Henderson <rth@cygnus.com>
6237
6238 * config/ia64/ia64.md (divsf3): New.
6239 (divsf3_internal_lat, divsf3_internal_thr): New.
6240 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
6241 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
6242 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
6243 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
6244 (nmadddf4_alts, nmadddf4_trunc): New.
6245 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
6246 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
6247 (multf3_truncsf_alts, multf3_truncdf_alts): New.
6248 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
6249 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
6250 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
6251 (nmaddtf4_truncdf_alts): New.
6252 (recip_approx): Don't predicate.
6253
6254 2000-09-13 Richard Henderson <rth@cygnus.com>
6255
6256 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
6257
6258 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6259
6260 * flags.h (flag_dump_rtl_in_asm): Declare.
6261 * toplev.c (flag_dump_rtl_in_asm): Define.
6262 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
6263 if -dP is specified.
6264 * rtl.h (print_rtx_head): Declare.
6265 * print-rtl.c (print_rtx_head): Define.
6266 (print_rtx): Print the string pointed to by print_rtx_head
6267 at beginning of each dump line.
6268 (print_rtl): Likewise.
6269 (print_rtl_single): Likewise.
6270 * final.c (final_scan_insn): Dump the insn in the assembly
6271 file for debugging.
6272 * gcc.1: Document -dP option.
6273 * invoke.texi (Debugging Options): Likewise.
6274
6275 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6276
6277 * md.texi (Machine Constraints): Document the 68HC11 constraints.
6278 * install.texi (Configurations): Document the 68HC11&68HC12 port.
6279 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
6280
6281 Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
6282
6283 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
6284 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
6285 (*clrstrqi): Likewise.
6286 (xorhi3,xorsi3,absqi2): Likewise.
6287 (one_cmplhi2,one_cmplsi2): Likewise.
6288 (addsi3): Two stupid constraint alternatives removed.
6289 (extendhisi2): Use `movw' for enhanced avr cores.
6290 (zero_extendhisi2): Likewise.
6291
6292 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
6293
6294 * alias.c (find_base_term): Use frame_pointer_rtx
6295 when handling an ADDRESSOF.
6296
6297 * cse.c (canon_hash): Handle USE of BLKmode memory.
6298 (cse_insn): Outgoing arguments for a libcall don't
6299 affect any recorded expressions.
6300
6301 2000-09-12 Tom Tromey <tromey@cygnus.com>
6302
6303 * configure, config.in: Rebuilt.
6304 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
6305
6306 2000-09-12 Jakub Jelinek <jakub@redhat.com>
6307
6308 * c-lex.c (lex_string): Use charwidth to compute bytemask.
6309 * expr.c (expand_expr): Don't optimize constant array references
6310 initialized with wide string constants.
6311
6312 2000-09-13 Michael Hayes <mhayes@cygnus.com>
6313
6314 * loop.c (note_set_pseudo_multiple_uses): Correct.
6315
6316 2000-09-12 Jim Wilson <wilson@cygnus.com>
6317
6318 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
6319 else block, and X has side-effects, then fail.
6320
6321 2000-09-12 Greg McGary <greg@mcgary.org>
6322
6323 * config/mips/mips-protos.h
6324 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
6325 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
6326 (PREDICATE_CODES): Add "trap_cmp_op".
6327 * config/mips/mips.c
6328 (trap_cmp_op, mips_gen_conditional_trap): New functions.
6329 * config/mips/mips.md (trap, conditional_trap): New patterns.
6330
6331 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
6332
6333 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
6334 pointer.
6335
6336 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6337
6338 * builtins.c (built_in_decls): New array.
6339 (expand_builtin_fputs): New function.
6340 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
6341
6342 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
6343
6344 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
6345
6346 * tree.h (built_in_decls): New array.
6347
6348 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
6349
6350 * convex.md: Use "+" instead of "=" for outputs wrapped in a
6351 STRICT_LOW_PART.
6352 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
6353
6354 2000-09-12 Kazu Hirata <kazu@hxi.com>
6355
6356 * haifa-sched.c: Fix formatting.
6357
6358 * genattrtab.c: Fix formatting.
6359
6360 * unroll.c: Fix formatting.
6361
6362 2000-09-12 Bruce Korb <bkorb@gnu.org>
6363
6364 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
6365 remove obsolete code
6366 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
6367 * fixinc/fixincl.tpl: make non-exported arrays static scope
6368 * fixinc/fixincl.x: regenerate
6369 * fixinc/fixlib.h: Use PARAMS, not _P_
6370 * fixinc/fixtests.c: make a type for the test proc & use it
6371 * fixinc/server.h: Use PARAMS, not _P_
6372
6373 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6374
6375 * c-typeck.c (process_init_element): Avoid union init warnings on
6376 floating point zero. Don't crash on unions containing structs.
6377
6378 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
6379
6380 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
6381 general_movsrc_operand, and remove CONST_INT from
6382 general_movdst_operand.
6383
6384 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
6385
6386 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
6387 if a reference to non-fixed hardreg is seen. Otherwise, count hard
6388 regs with a higher cost.
6389 (preferrable): Deal with cases where either cost or regcost is
6390 MAX_COST.
6391 (cse_insn): Use MAX_COST rather than 10000. Always initialize
6392 regcost values.
6393 (COSTS_N_INSNS): Move definition...
6394 * rtl.h: ...here.
6395 (MAX_COST): New macro.
6396 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
6397 constant.
6398
6399 2000-09-11 Mark Mitchell <mark@codesourcery.com>
6400
6401 * c-common.h (genrtl_clear_out_block): Remove.
6402 * c-semantics.c (genrtl_clear_out_block): Remove.
6403 (genrtl_while_stmt): Don't call it.
6404 (genrtl_for_stmt): Likewise.
6405
6406 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
6407
6408 * cppfiles.c: Move all default-#defines to top of file.
6409 (open_include_file): Replace by lookup_include_file.
6410 (read_with_read, read_file): Merged into read_include_file.
6411 (stack_include_file, purge_cache): New functions.
6412 (close_cached_fd): Delete.
6413 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
6414 Cache the in-memory buffer, not the file descriptor.
6415
6416 * cpphash.h (struct include_file): Add buffer, st, refcnt,
6417 mapped fields.
6418 (xcnew): New utility macro.
6419 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
6420 * cpplib.h (struct cpp_buffer): Remove mapped field.
6421
6422 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
6423
6424 * cpplex.c (parse_string): Accept backslash space newline as a
6425 line continuation.
6426 (lex_line): Likewise.
6427 (_cpp_get_token): Remove hard limit on macro nesting.
6428
6429 2000-09-12 Philipp Thomas <pthomas@suse.de>
6430
6431 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
6432 * configure: Rebuilt.
6433
6434 2000-09-13 Michael Hayes <mhayes@cygnus.com>
6435
6436 * flow.c (split_block): Fix update of registers live at
6437 end of split block.
6438
6439 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
6440
6441 * i386.md (add?i_3, add?i_5): New.
6442 (add?i_4): Rename from add?i_3; Fix compare pattern.
6443 (sub?i_3, xor?i_3, ior?i_3): New.
6444
6445 * genrecog.c (write_tree): Output code to clear insn_extract cache.
6446 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
6447 instead of extract_insn and extract_constrain_insn_cache instead of
6448 extract_insn and constrain_operands.
6449 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
6450 New functions.
6451 (extract_insn): Clear which_alternative.
6452 (constrain_operands): Set which_alternative to -1 when failed.
6453 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
6454 Declare.
6455
6456 2000-09-11 Matthew Hiller <hiller@redhat.com>
6457
6458 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
6459 on operand 0 to '+'.
6460 (movstricthi): Likewise.
6461
6462 2000-09-12 Michael Hayes <mhayes@cygnus.com>
6463
6464 * loop.h (LOOP_IVS): New macro.
6465 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
6466 (struct loop_ivs): New.
6467 (struct loop_info): Add ivs field.
6468 (reg_iv_type, reg_iv_info): Delete prototype.
6469 (reg_biv_class, loop_iv_list): Likewise.
6470 * loop.c (record_biv, find_life_end): Pass loop argument.
6471 (reg_iv_type): Remove global array and use
6472 field in loop_regs structure within loop_ivs structure.
6473 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
6474 (first_increment_giv, last_increment_giv): Use entry in
6475 loop_ivs structure.
6476 (record_initial): Pass ivs pointer.
6477 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
6478
6479 2000-09-12 Michael Hayes <mhayes@cygnus.com>
6480
6481 * loop.h (LOOP_REGS): New macro.
6482 (struct loop_regs): New.
6483 (struct loop_info): Add regs field.
6484 * loop.c (set_in_loop): Remove global array and store
6485 in loop_regs structure as part of loop_info structure.
6486 (n_times_set, may_not_optimize): Likewise.
6487 (reg_single_usage, moved_once): Likewise.
6488 (count_one_set): Add regs argument.
6489 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
6490 (set_pseudo_multiple_uses): Pass regs pointer.
6491
6492 2000-09-12 Michael Hayes <mhayes@cygnus.com>
6493
6494 * unroll.c (iteration_info): Subsume into loop_iterations.
6495 * loop.h (loop_info): New field iv.
6496
6497 2000-09-12 Michael Hayes <mhayes@cygnus.com>
6498
6499 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
6500 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
6501 (flow_loops_update): New prototype.
6502 (flow_loops_find): Add flags to prototype.
6503 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
6504 * flow.c (flow_loop_pre_header_scan): New.
6505 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
6506 (flow_loop_free): Free pre-header root and trace and exit dominators.
6507 (flow_loops_find): New argument flags.
6508 (flow_loops_update): New function.
6509 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
6510
6511 2000-09-12 Michael Hayes <mhayes@cygnus.com>
6512
6513 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
6514 * flow.c (split_block, update_bb_for_insn): New functions.
6515
6516 2000-09-11 Richard Henderson <rth@cygnus.com>
6517
6518 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
6519
6520 2000-09-11 Richard Henderson <rth@cygnus.com>
6521
6522 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
6523 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
6524 (ia64_override_options): Prevent optimizing division for both
6525 latency and throughput.
6526 (rtx_needs_barrier): Handle frcpa.
6527 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
6528 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
6529 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
6530 (TARGET_SWITCHES): Add -minline-divide-min-latency and
6531 -minline-divide-max-throughput.
6532 (PREDICATE_CODES): Update.
6533 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
6534 (zero_extendsidi2): Likewise. Fix typo in f case insn.
6535 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
6536 (extendsftf2): Likewise.
6537 (extenddftf2): Likewise.
6538 (fix_trunctfdi2_alts): New.
6539 (fixuns_trunctfdi2_alts): New.
6540 (madd*4): Rename from madd*3.
6541 (divsi3, modsi3, udivsi3, umodsi3): New.
6542 (divsi3_internal): New.
6543 (divdi3, moddi3, udivdi3, umoddi3): New.
6544 (divdi3_internal_lat, divdi3_internal_thr): New.
6545 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
6546 (recip_approx): New.
6547
6548 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
6549
6550 * print-rtl.c (debug_call_placeholder_verbose): New variable.
6551 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
6552 set.
6553 * integrate.c (copy_rtx_and_substitute): Don't share
6554 LEAF_REG_REMAPpable registers with the inlined function. Don't
6555 share the function value with calling sequences.
6556
6557 2000-09-11 Jakub Jelinek <jakub@redhat.com>
6558
6559 * c-decl.c (do_case): Fix a typo.
6560
6561 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
6562 to a if the comparison is floating mode and not -ffast-math.
6563 * simplify-rtx.c (simplify_ternary_operation): Likewise.
6564
6565 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
6566
6567 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
6568 gen_ic_invalidate_line.
6569
6570 2000-09-11 Philip Blundell <pb@futuretv.com>
6571
6572 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
6573
6574 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
6575
6576 * install.texi (LANGUAGES): Update to include new languages.
6577 * INSTALL: Rebuilt.
6578
6579 2000-09-11 DJ Delorie <dj@redhat.com>
6580
6581 * gcc.c (main): Don't warn about unused -B prefixes
6582 (unused_prefix_warnings): remove
6583
6584 2000-09-11 Kazu Hirata <kazu@hxi.com>
6585
6586 * final.c: Fix formatting.
6587
6588 * integrate.c: Fix formatting.
6589
6590 2000-09-11 Geoff Keating <geoffk@cygnus.com>
6591
6592 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
6593
6594 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
6595
6596 * reload.c (regno_clobbered_p): Fix thinko in previous change.
6597
6598 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6599
6600 * gcc.1: Document 68hc11 specific options.
6601
6602 2000-09-10 Geoff Keating <geoffk@cygnus.com>
6603
6604 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
6605 (TARGET_LONG_DOUBLE_128): Define.
6606 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
6607 (LONG_DOUBLE_TYPE_SIZE): Redefine.
6608 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
6609 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
6610 of __LONG_DOUBLE_128__.
6611 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
6612 passed.
6613 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
6614 (CPP_SYSV_DEFAULT_SPEC): Define.
6615 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
6616 (INIT_TARGET_OPTABS): Define.
6617
6618 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
6619 (RS6000_UITRUNC): Likewise.
6620 (INIT_TARGET_OPTABS): New macro.
6621 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
6622 (trunc_defined): Delete.
6623 (output_prolog): Don't output .extern definitions for fp->int
6624 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
6625 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
6626 (trunc_defined): Delete.
6627 (RS6000_ITRUNC): Moved to aix.h.
6628 (RS6000_UITRUNC): Likewise.
6629 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
6630 only emit a libcall.
6631 (fixuns_truncdfsi2): Delete.
6632 (trunc_call): Delete.
6633 (trunc_call_rtl): Delete.
6634
6635 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
6636
6637 * varasm.c (make_decl_rtl): Restore leading star on
6638 DECL_ASSEMBLER_NAME set for decls with an asmspec.
6639
6640 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
6641
6642 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
6643 won't give a spurious error for '#pragma pack()'. Simplify
6644 control flow for readability. 'reset' action is not necessary.
6645
6646 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
6647
6648 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
6649 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
6650 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
6651 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
6652
6653 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
6654 profile.c, sdbout.c, tradcif.y, tree.c:
6655 Include defaults.h if not already included.
6656 Don't define the above macros.
6657
6658 * Makefile.in: Update dependencies.
6659
6660 2000-09-10 Mark Mitchell <mark@codesourcery.com>
6661
6662 * c-common.h (add_stmt): Change prototype.
6663 (RECHAIN_STMTS): New macro.
6664 (CASE_LABEL_DECL): Likewise.
6665 (genrtl_case_label): Change prototype.
6666 (c_expand_start_case): Remove prototype.
6667 (build_case_label): Change prototype.
6668 (decl_constant_value): Declare.
6669 * c-common.c (check_case_value): Handle C++'s extensions to C
6670 semantics.
6671 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
6672 field.
6673 * c-parse.in (stmt): Adjust handling of return statements and case
6674 laels.
6675 * c-semantics.c (add_stmt): Return the new statement.
6676 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
6677 returned expression. Directly generate RTL, rather than calling
6678 c_expand_return.
6679 (genrtl_switch_stmt): Don't call c_expand_start_case.
6680 (build_case_label): Take the LABEL_DECL as input, too.
6681 (genrtl_case_label): Just call add_case_node.
6682 (expand_stmt): Adjust calls to genrtl_return_stmt and
6683 genrtl_case_label.
6684 * c-tree.h (c_expand_start_case): Declare.
6685 * c-typeck.c (decl_constant_value): Give it external linkage.
6686 (c_expand_return): Don't call expand_return or expand_null_return;
6687 use genrtl_return_stmt instead.
6688 * stmt.c (struct nesting): Remove num_ranges field.
6689 (add_case_node): Give it external linkage.
6690 (expand_start_case): Don't set num_ranges.
6691 (expand_start_case_dummy): Don't clear it.
6692 (pushcase): Rely on add_case_node to handle `default' labels.
6693 (add_case_node): Handle `default' labels.
6694 * tree.c (tree_int_cst_compare): New function.
6695 * tree.h (tree_int_cst_compare): Declare.
6696 (add_case_node): Likewise.
6697
6698 2000-09-10 Richard Henderson <rth@cygnus.com>
6699
6700 * c-parse.in: Revert last change.
6701 (init_reswords): Do not enter disabled keywords into the ridpointers
6702 table, modulo objc weirdness.
6703 (_yylex): Return the canonical spelling for a keyword.
6704
6705 2000-09-10 Philip Blundell <philb@gnu.org>
6706
6707 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
6708 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
6709
6710 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
6711
6712 * alias.c (find_base_term): Handle ADDRESSOF.
6713 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
6714
6715 2000-09-10 Denis Chertykov <denisc@overta.ru>
6716
6717 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
6718 outputting templates with many lines.
6719
6720 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6721
6722 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
6723 to decide whether 64-bit support must be generated.
6724
6725 2000-09-10 Richard Henderson <rth@cygnus.com>
6726
6727 * c-parse.in (asm patterns): Fix volatile check.
6728
6729 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6730
6731 * cppmacro.c (check_trad_stringification): New function.
6732 (save_expansion): If -Wtraditional, warn about stringification of
6733 macro arguments.
6734
6735 2000-09-11 Michael Hayes <mhayes@cygnus.com>
6736
6737 * loop.h (struct loop_mem_info): Move from loop.c
6738 (struct loop_info): Add fields store_mems, mems, mems_idx,
6739 mems_allocated, unknown_address_altered,
6740 unknown_constant_address_altered, num_mem_sets, and
6741 first_loop_store_insn.
6742
6743 * loop.c (loop_store_mems): Replace with field in loop_info struct.
6744 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
6745 (unknown_address_altered, unknown_constant_address_altered): Likewise.
6746 (num_mem_sets): Likewise.
6747 (replace_loop_mems, replace_loop_regs): New.
6748 (struct loop_replace_args): New.
6749 (load_mems): Use replace_loop_mems.
6750 (try_copy_prop): Use replace_loop_regs.
6751 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
6752
6753 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6754
6755 * configure.in: Recognize m6811-elf and m6812-elf.
6756 * configure: Regenerate.
6757
6758 2000-09-09 Geoff Keating <geoffk@cygnus.com>
6759
6760 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
6761 to operand_subword.
6762
6763 2000-09-10 Michael Hayes <mhayes@cygnus.com>
6764
6765 * loop.c (struct movables): New.
6766 (num_movables): Move into struct movables.
6767 (the_movables): Change type to struct movables.
6768 (ignore_some_movables): Change struct movable arg to struct movables.
6769 (force_movables, combine_movables, regs_match_p): Likewise.
6770 (rtx_equal_for_loop_p, move_movables): Likewise.
6771 (scan_loop): Change movables to be of type struct movables.
6772 Replace last_movable with field in movables structure.
6773
6774 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
6775
6776 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
6777 (init_pragma): Avoid warning if pfile happens to be unused.
6778 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
6779 define init_pragma to nothing. Always prototype
6780 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
6781
6782 * c-lex.c (process_directive): Always call dispatch_pragma.
6783 Initialize entering_c_header to 0.
6784
6785 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6786
6787 * config/m68hc11/m68hc11.md: New file, machine description for
6788 68HC11 & 68HC12.
6789 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
6790 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
6791 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
6792 * config/m68hc11/m68hc11-protos.h: New file.
6793 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
6794 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
6795 * config/m68hc11/xm-m68hc11.h: New file, target defs.
6796 * config/m68hc11/larith.asm: New file, libgcc routines.
6797
6798 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6799
6800 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
6801 (FPBIT_FUNCS): Add _usi_to_sf.
6802 * config/fp-bit.c (usi_to_float): New function.
6803 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
6804 (usi_to_float): Add appropriate #define.
6805
6806 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
6807
6808 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
6809 new functions.
6810 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
6811 * i386.md (attr "type"): Add sse and mmx types.
6812 (attr "memory"): Handle them without a crash.
6813 (movsi_1, movdi_2): Allow MMX regs.
6814 (movdi splits): Don't split moves involving MMX regs.
6815 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
6816 (movv4sf_internal, movv4si_internal, movv8qi_internal,
6817 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
6818 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
6819 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
6820 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
6821 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
6822 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
6823 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
6824 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
6825 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
6826 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
6827 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
6828 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
6829 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
6830 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
6831 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
6832 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
6833 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
6834 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
6835 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
6836 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
6837 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
6838 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
6839 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
6840 mmx_clrdi): New patterns.
6841
6842 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
6843
6844 * arm.c: Don't include tm.h directly.
6845
6846 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
6847
6848 * recog.c (validate_replace_rtx_1): Fix confusion about equality
6849 testing; simplify subregs of constants and nested subregs.
6850
6851 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
6852
6853 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
6854
6855 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
6856
6857 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
6858 VEC_CONCAT.
6859 * rtl.texi (description of USE): Add note about possible pitfalls
6860 with this rtx.
6861 From Richard Henderson:
6862 * reload1.c (choose_reload_regs): Compute need_mode properly.
6863
6864 2000-09-07 Richard Henderson <rth@cygnus.com>
6865
6866 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
6867 (__modsi3, __umodsi3): Likewise.
6868 (__udivsi3): Likewise. Normalize the TFmode values.
6869
6870 2000-09-07 Geoff Keating <geoffk@cygnus.com>
6871
6872 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
6873 with a prototype.
6874 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
6875 warning.
6876
6877 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
6878
6879 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
6880 (cmpeqdi_t): Add output pattern.
6881 (cmpeqdi_t+1): Don't split when not optimizing.
6882 Restore proper splitting operation.
6883
6884 2000-09-07 Richard Henderson <rth@cygnus.com>
6885
6886 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
6887 do not call dispatch_pragma.
6888
6889 2000-09-07 Jim Wilson <wilson@cygnus.com>
6890
6891 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
6892 to CLASS_CANNOT_CHANGE_MODE.
6893 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
6894 mode classes are different.
6895
6896 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
6897
6898 * cpplib.h (struct cpp_options): Add user_label_prefix member,
6899 left out of commit which removed cppulp.c.
6900
6901 2000-09-07 Richard Henderson <rth@cygnus.com>
6902
6903 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
6904 after switch for CASE_DROPS_THROUGH.
6905
6906 2000-09-07 Richard Henderson <rth@cygnus.com>
6907
6908 * loop.c (strength_reduce): Call check_ext_dependant_givs.
6909 Properly extend the biv initial value for the giv.
6910 (record_biv): Zero ext_dependant.
6911 (record_giv): New argument ext_val. Update all callers.
6912 (general_induction_var): Likewise.
6913 (consec_sets_giv): Likewise.
6914 (simplify_giv_expr): Likewise. Fill in ext_val if we find
6915 a sign-extend, zero-extend, or truncate.
6916 (combine_givs_p): Make sure modes are compatible.
6917 (check_ext_dependant_givs): New.
6918 (extend_value_for_giv): New.
6919 * loop.h (struct induction): Add ext_dependant.
6920 * unroll.c (iteration_info): Extend the biv initial value for the giv.
6921 (find_splittable_givs): Likewise.
6922 (final_giv_value): Likewise.
6923
6924 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
6925
6926 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
6927 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
6928 definitions from cpplib.h.
6929 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
6930 already done it.
6931 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
6932 documentation for REGISTER_TARGET_PRAGMAS.
6933
6934 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
6935 default-pragma callback to implement -Wunknown-pragmas if
6936 USE_CPPLIB.
6937 * c-parse.in: Move all includes to top of file.
6938 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
6939 tm_p.h.
6940 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
6941 warning.
6942 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
6943
6944 * arm.h, arm-protos.h, arm.c,
6945 c4x.h, c4x-protos.h, c4x.c,
6946 h8300.h, h8300-protos.h, h8300.c,
6947 i370.h, i370-protos.h, i370.c,
6948 i960.h, i960-protos.h, i960.c,
6949 sh.h, sh-protos.h, sh.c,
6950 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
6951 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
6952
6953 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
6954 multiple include guard.
6955 * i370.md (untyped_call): Use GEN_CALL.
6956 (umodsi3): Remove unused variable.
6957 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
6958 * v850.c (output_move_single, output_move_double): Constify
6959 return value.
6960 (print_operand): Constify a char *.
6961 * v850.h (struct small_memory_info): Constify name member.
6962
6963 2000-09-07 Kazu Hirata <kazu@hxi.com>
6964
6965 * config/h8300.h: Fix comment typos.
6966 * config/h8300/h8300.md: Likewise.
6967 * config/h8300/lib1funcs.asm: Likewise.
6968
6969 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
6970
6971 * Makefile.in: Remove references to cppulp.{c,o}.
6972 * cppinit.c (initialize_builtins, cpp_start_read,
6973 cpp_handle_option): Update to use cpp_options structure.
6974 * cppulp.c: Remove.
6975
6976 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
6977
6978 * c-common.c (time_char_table): Allow %#b and %#h.
6979
6980 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6981
6982 * reorg.c (find_end_label): If the basic block reorder pass moves the
6983 return insn to some other place try to locate it again and put our
6984 end_of_function_label there.
6985 * reorg.c (relax_delay_slots): Check if find_end_label created a
6986 new label that invalidates the current optimazation.
6987
6988 2000-09-07 Catherine Moore <clm@redhat.com>
6989
6990 * unroll.c (unroll_loop): Check for unconditional jumps
6991 to loop continuation. Delete if n_iterations is 1.
6992 (ujump_to_loop_cont): New routine.
6993
6994 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
6995
6996 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
6997 MODE_VECTOR_FLOAT.
6998 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
6999 to handle multiword modes correctly. All callers and the declaration
7000 changed.
7001
7002 2000-09-06 Mark Mitchell <mark@codesourcery.com>
7003
7004 * c-common.h (prep_stmt): Declare.
7005 (lang_expand_stmt): Likewise.
7006 * c-decl.c (lang_expand_stmt): Remove.
7007 * c-semantics.c (lang_expand_stmt): Define.
7008 (prep_stmt): New function.
7009 (expand_stmt): Handle common statement types here.
7010
7011 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
7012
7013 * configure.in (sh-*-linux*): Added.
7014 * configure: Rebuilt.
7015 * config/sh/t-linux: New file.
7016 * config/sh/sh.h (USERMODE_BIT): Define.
7017 (TARGET_USERMODE): Likewise.
7018 (TARGET_SWITCHES): New switches for the bits above.
7019 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
7020 * config/sh/linux.h: New file.
7021 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
7022 underscore on linux.
7023 (L_sdivsi3, L_udivsi3): Define for linux.
7024 (L_ic_invalidate): Define.
7025 * invoke.texi (SH Options): Document -musermode.
7026
7027 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
7028
7029 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
7030 CSE unless generating PIC.
7031
7032 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
7033 the PIC register.
7034
7035 2000-09-06 H.J. Lu (hjl@gnu.org)
7036
7037 * Makefile.in (clean_s1): Depend on stage_b.
7038 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
7039 stage2. They are used for "make compare".
7040
7041 2000-09-06 Mark Mitchell <mark@codesourcery.com>
7042
7043 Move statement-tree facilities from C++ to C front-end.
7044 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
7045 (void_zero_node): New macro.
7046 (struct stmt_tree_s): New type.
7047 (stmt_tree): New typedef.
7048 (struct language_function): New type.
7049 (last_tree): New macro.
7050 (last_expr_type): Likewise.
7051 (walk_tree_fn): New typedef.
7052 (current_stmt_tree): New function.
7053 (begin_stmt_tree): Likewise.
7054 (add_stmt): Likewise.
7055 (finish_stmt_tree): Likewise.
7056 (statement_code_p): Likewise.
7057 (lang_statement_code_p): New variable.
7058 (walk_stmt_tree): New function.
7059 (STMT_IS_FULL_EXPR_P): New macro.
7060 * c-common.c (lang_statement_code_p): New variable.
7061 (c_common_nodes_and_builtins): Initialize void_zero_node.
7062 (statement_code_p): New function.
7063 (walk_stmt_tree): Likewise.
7064 * c-decl.c (language_function): Rename to ...
7065 (c_language_function): ... this. Include language_function.
7066 (push_c_function_context): Adjust accordingly.
7067 (pop_c_function_context): Likewise.
7068 (mark_c_function_context): Likewise.
7069 (current_stmt_tree): Define.
7070 * c-semantics.c (begin_stmt_tree): New function.
7071 (add_stmt): Likewise.
7072 (prune_unused_decls): Likewise.
7073 (finish_stmt_tree): Likewise.
7074
7075 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7076
7077 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
7078
7079 2000-09-06 Kazu Hirata <kazu@hxi.com>
7080
7081 * calls.c: Fix formatting.
7082
7083 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
7084
7085 * config/i386/i386.h (ADDRESS_COST): Fix typo.
7086
7087 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
7088
7089 Integrated preprocessor.
7090
7091 * Makefile.in: Remove all references to c-parse.gperf,
7092 c-gperf.h, and c-parse.h. Remove -d from yacc command line
7093 generating c-parse.c. Update dependencies.
7094 * c-parse.gperf, c-gperf.h: Delete.
7095
7096 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
7097 yy_lim, or yy_get_token. Don't define get_directive_line if
7098 USE_CPPLIB.
7099 * c-common.h: Add multiple include guard. Define RID values
7100 for every keyword in C, C++, and Objective C. Put all the
7101 modifiers first.
7102 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
7103 * c-decl.c (c_decode_option): Handle -lang-objc here.
7104 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
7105 (grokdeclarator): Adjust for new RID scheme.
7106 (extract_interface_info): New stub.
7107 * c-lang.c: Don't declare yy_cur or parse_options.
7108 (lang_init_options): Call cpp_init. Don't call
7109 cpp_options_init.
7110 (lang_init): Don't call check_newline if USE_CPPLIB.
7111
7112 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
7113 Elide lots of unnecessary code if USE_CPPLIB. Delete code
7114 rendered unnecessary by new architecture. Move routines not
7115 shared with C++ to c-parse.in. Maintain a local idea of the
7116 line number. Handle C++ as well as C.
7117 [USE_CPPLIB]: Declare and register callbacks for #ident and
7118 for entering/leaving files.
7119 (init_c_lex, c_lex): Are now the entry points to this file.
7120 (check_newline): Break out directive handling to
7121 process_directive.
7122 (read_ucs, is_extended_char, utf8_extend_token): Moved here
7123 from C++ front end.
7124 (readescape, parse_float): Overhaul.
7125 (lex_number, lex_string, lex_charconst): Break out of c_lex
7126 (n'ee yylex).
7127 (get_fileinfo, update_header_times, dump_one_header,
7128 dump_time_statistics): New and/or moved here from C++.
7129 Support per-file data needed by C++ and per-header timing
7130 statistics (C++ only, at the moment).
7131 * c-lex.h: Update prototypes. Add multiple include guard.
7132 * c-tree.h (struct lang_identifier): Add rid_code field.
7133 (C_IS_RESERVED_WORD, C_RID_CODE): New.
7134
7135 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
7136 reinit_parse_for_function and/or position_after_white_space.
7137 (save_filename, save_lineno): Look ahead before saving.
7138 (label -> identifier ':'): Save file and line before shifting ':'.
7139 (reservedwords): No need to call get_identifier.
7140 (init_parse, finish_parse, yyerror, yylex, yyprint,
7141 make_pointer_declarator): Are now here for C/ObjC.
7142 (rid_to_yy): Conversion table from RID constants to Yacc codes.
7143
7144 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
7145 #pragma registry. Provide dummy implementation of that
7146 interface if !USE_CPPLIB.
7147 * c-pragma.h: Update to match.
7148
7149 * flags.h: Add multiple include guard.
7150 (flag_detailed_statistics): Moved here from C++.
7151 * toplev.c: Define flag_detailed_statistics.
7152
7153 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
7154 #if USE_CPPLIB.
7155 * timevar.def (TV_CPP, TV_LEX): New.
7156 * timevar.h: Add multiple include guard.
7157
7158 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
7159 #if USE_CPPLIB.
7160 * objc/objc-act.c: Don't mention yy_cur or parse_options.
7161 Initialize cpplib properly. Force lineno to 0 after first
7162 call to check_newline. Don't handle -lang-objc here.
7163 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
7164
7165 2000-09-06 David Edelsohn <edelsohn@gnu.org>
7166
7167 * rs6000.md: Correct function unit definitions for cr_logical and
7168 mtjmpr.
7169 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
7170 and use portable method for >=0 and floating point >=. Remove
7171 associated matchers.
7172
7173 2000-09-06 Mark Mitchell <mark@codesourcery.com>
7174
7175 * extend.texi: Mark named return value extension as deprecated.
7176
7177 2000-09-06 Geoff Keating <geoffk@cygnus.com>
7178
7179 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
7180 the result.
7181
7182 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
7183
7184 * toplev.c (display_help): Fix thinko in documentation.
7185
7186 * diagnostic.h (output_buffer::indent_skip): New fields.
7187 (output_indentation): New macro.
7188
7189 * diagnostic.c (output_indent): New function.
7190 (output_set_prefix, clear_diagnostic_info): Use.
7191 (output_emit_prefix): Predict future indentation.
7192
7193 2000-09-06 DJ Delorie <dj@redhat.com>
7194
7195 * Makefile.in (stage_*): add more dependencies to ensure parallel
7196 builds build correctly
7197
7198 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
7199
7200 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
7201 not bootstrap-lean_f.
7202
7203 2000-09-06 Andreas Schwab <schwab@suse.de>
7204
7205 * mklibgcc.in: Emit rule for libgcc-stage-start.
7206 * Makefile.in (stage1-start, stage2-start, stage3-start,
7207 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
7208
7209 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
7210
7211 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
7212 (update_equiv_regs): Likewise, except for the mn10200 kludge.
7213 (combine_regs): Likewise.
7214
7215 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
7216 * cse.c: Include "basic-block.h".
7217 (struct table_elt): New field REGCOST.
7218 (CHEAP_REG): Delete macro.
7219 (COST): Return 0 for REGs.
7220 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
7221 (notreg_cost): Return 0 for appropriate SUBREGs.
7222 (COSTS_N_INSNS): Return N * 2.
7223 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
7224 SUBREGs.
7225 (CHEAPER): Use new function preferrable.
7226 (insert): Initialize REGCOST member.
7227 (find_best_addr): Use approx_reg_cost for estimation of register
7228 usage.
7229 (cse_insn): Likewise.
7230 * loop.c (iv_add_mult_cost): New function.
7231 (add_cost, shift_cost, mult_cost): Delete variables.
7232 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
7233 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
7234 Make code that detects autoinc opportunities slightly less optimistic.
7235 (simplify_giv_expr): If expression contains other reg that is also a
7236 giv, only increment benefit if this is the only use of that reg.
7237 (consec_sets_giv): Take that change into account.
7238 (combine_givs): Slightly more verbose output.
7239
7240 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
7241 not the cost of an equivalent shift.
7242 * sh-protos.h (addsubcosts): Declare.
7243 * sh.c (addsubcosts): New function.
7244 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
7245 (RTX_COSTS): Tweak. Use addsubcosts.
7246 (ADDRESS_COST): Return higher cost for reg+reg addressing.
7247
7248 2000-09-06 Geoff Keating <geoffk@cygnus.com>
7249
7250 * config/rs6000/rs6000.c (validate_condition_mode): New function.
7251 (branch_comparison_operator): Call validate_condition_mode to
7252 abort rather than returning 0.
7253 (branch_positive_comparison_operator): New function.
7254 (scc_comparison_operator): Call validate_condition_mode to abort
7255 rather than returning 0.
7256 (ccr_bit): Call validate_condition_mode. Update for
7257 new branch scheme.
7258 (print_operand): Delete %C modifier. Update %E case
7259 to use EQ bit not SO bit.
7260 (rs6000_reverse_condition): New function.
7261 (rs6000_generate_compare): New function.
7262 (rs6000_emit_sCOND): New function.
7263 (rs6000_emit_cbranch): New function.
7264 (output_cbranch): The length of a long branch insn is
7265 now only 8 bytes. Add validate_condition_mode. Use
7266 rs6000_reverse_condition. Remove cror generation.
7267
7268 * config/rs6000/rs6000.h: Update comments.
7269 (PREDICATE_CODES): Add new predicate. Update codes used
7270 by branch_comparison_operator and scc_comparison_operator.
7271 * config/rs6000/rs6000-protos.h: Add prototypes for
7272 new external functions.
7273 * config/rs6000/rs6000.md: Add new scheduling parameters
7274 for cr_logical instructions. Change length of branch
7275 instructions.
7276 (bCOND patterns): Call rs6000_emit_cbranch.
7277 (sCOND patterns): Call rs6000_emit_sCOND.
7278 (branch patterns): Change lengths to 4.
7279 (cr logical patterns): New.
7280
7281 2000-09-06 Richard Henderson <rth@cygnus.com>
7282
7283 * config/i386/i386.md (call_pop): Fix test for setting
7284 current_function_uses_pic_offset_table.
7285 (call, call_value_pop, call_value): Likewise.
7286
7287 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
7288
7289 * timevar.c (timevar_add): Delete.
7290 (timevar_get): Also count time since the selected timer was
7291 last updated. Do not examine the timevar stack if the
7292 selected timer is standalone.
7293
7294 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7295
7296 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
7297
7298 2000-09-05 Jason Merrill <jason@redhat.com>
7299
7300 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
7301 for 'extern' arrays.
7302
7303 2000-09-05 Richard Henderson <rth@cygnus.com>
7304
7305 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
7306 Eliminate final copy from non-trapping case.
7307 (__divdf3, __divsf3): Likewise.
7308
7309 2000-09-05 Richard Henderson <rth@cygnus.com>
7310
7311 * config/ia64/ia64.md (mulhi3): Fix typo last change.
7312 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
7313
7314 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
7315
7316 * Makefile.in: Restructure bootstrap stages to allow clean
7317 restart after failure.
7318
7319 2000-09-05 Richard Henderson <rth@cygnus.com>
7320
7321 * config/ia64.md (movsi and movdi patterns): Allow moves from
7322 8-bit constants to AR registers.
7323
7324 2000-09-05 Richard Henderson <rth@cygnus.com>
7325
7326 * config/ia64/ia64.md (mulhi3): New.
7327
7328 2000-09-05 Richard Henderson <rth@cygnus.com>
7329
7330 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
7331 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
7332 Optimization Guide, minimum latency alternative.
7333 (__moddi3, __udivdi3, __umoddi3): Likewise.
7334 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
7335
7336 2000-09-05 Bruce Korb <bkorb@gnu.org>
7337
7338 * fixinc/fixincl.c (load_file): always read header files
7339 with sizes that are a multiple of the page size.
7340 & use libiberty's getpagesize for determining that.
7341
7342 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
7343
7344 * gcse.c (hash_string_1): Add prototype.
7345 * cse.c (canon_hash_string): Likewise.
7346
7347 2000-09-04 Craig Newell <CraigN@ieee.org>
7348
7349 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
7350
7351 2000-09-04 Andreas Schwab <schwab@suse.de>
7352
7353 * Makefile.in (STAGESTUFF): Remove libgcc.
7354 (stage1-start, stage2-start, stage3-start): Copy the contents of
7355 the libgcc directory explicitly.
7356 (mostlyclean): Clean libgcc.
7357
7358 2000-09-04 Andrew Haley <aph@redhat.com>
7359
7360 * dwarf2out.c: (stack_adjust_offset): New prototype.
7361
7362 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
7363
7364 * combine.c (make_extraction): Fix rtx_cost comparison to
7365 match the comment.
7366
7367 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
7368
7369 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
7370 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
7371 Add '*' to insn pattern name.
7372
7373 2000-09-04 Jakub Jelinek <jakub@redhat.com>
7374
7375 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
7376 use posn - 1 to index into tokens array.
7377 (maybe_paste_with_next): Adjust caller.
7378
7379 2000-09-03 Geoff Keating <geoffk@cygnus.com>
7380
7381 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
7382
7383 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
7384 (REGNO_REG_CLASS): Use symbolic register
7385 names.
7386
7387 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
7388
7389 * arm.c (final_prescan_insn): If the form of a jump insn isn't
7390 recognized, don't try to conditionally execute it.
7391
7392 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
7393
7394 * config/avr/avr.md ("*tablejump_lib"): New pattern.
7395 (call_value_insn): Right length claculation.
7396 (call_insn): Likewise.
7397
7398 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
7399
7400 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
7401 gas_output_limited_string, gas_output_ascii, output_movqi,
7402 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
7403 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
7404 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
7405 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
7406 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
7407 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
7408 Add "const" as needed to remove warnings.
7409
7410 * config/avr/avr.c (avr_override_options, avr_init_once,
7411 function_prologue, function_epilogue, frame_pointer_required_p,
7412 class_likely_spilled_p, order_regs_for_local_alloc,
7413 avr_address_cost, avr_ret_register): Use K&R style arguments.
7414 (initial_elimination_offset, gas_output_limited_string):
7415 Remove ATTRIBUTE_UNUSED from the used arguments.
7416 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
7417 Use local variables src, dest, base to access operands[].
7418 Rename reg_dest to reg_src if that's what it is.
7419 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
7420 constants to LD_REGS if reg_was_0.
7421 (output_reload_insisf): Change arg 3 to insn length and set it.
7422 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
7423 access to 16-bit I/O register pairs.
7424 (avr_address_cost): Lower cost for the above case.
7425 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
7426 may be clobbered, also for LD_REGS.
7427 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
7428 with a CONST_INT.
7429
7430 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
7431
7432 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
7433 macro to test_hard_reg_class function.
7434 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
7435 for loading immediate constants to LD_REGS.
7436 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
7437
7438
7439 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
7440
7441 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
7442 * config/avr/libgcc.S: Lost part of the previous patch.
7443
7444 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7445
7446 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
7447 object before calling pthread_mutex_init.
7448
7449 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
7450
7451 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
7452 config/sh/crtn.asm: New files.
7453 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
7454 (crt1.o, crti.o, crtn.o): New targets.
7455 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
7456 sh/t-elf.
7457 * configure: Rebuilt.
7458 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
7459 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
7460 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
7461 Undefine for config/elfos.h to redefine.
7462 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
7463
7464 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
7465
7466 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
7467 legitimize_pic_address, output_pic_addr_const): Declare.
7468 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
7469 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
7470 (TARGET_SWITCHES): New switch -mprefergot.
7471 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
7472 (PIC_OFFSET_TABLE_REGNUM): Define.
7473 (GOT_SYMBOL_TABLE): Likewise.
7474 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
7475 (ENCODE_SECTION_INFO): Define.
7476 (FINALIZE_PIC): New macros.
7477 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
7478 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
7479 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
7480 (prepare_move_operands): Call emit_pic_move or
7481 emit_pic_const_move if appropriate.
7482 (output_far_jump): For PIC, use braf and output long offset.
7483 (machine_dependent_reorg):
7484 (sh_expand_prologue): Save and initialize the PIC register.
7485 (sh_expand_epilogue): Restore it.
7486 (initial_elimination_offset): Account for it.
7487 (nonpic_symbol_mentioned_p): New function.
7488 (legitimize_pic_address): Likewise.
7489 (output_pic_addr_const): Likewise.
7490 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
7491 (call, call_value): Use them.
7492 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
7493 symPLT_label2reg): New expands.
7494 * invoke.texi (SH Options): Document -mprefergot.
7495
7496 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
7497
7498 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
7499 * gcse.c (hash_string_1): New function.
7500 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
7501 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
7502 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
7503 (canon_hash_string): New function.
7504 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
7505 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
7506 (fold_rtx): Use ASM_OPERANDS accessor macros.
7507 * emit-rtl.c (copy_insn_1): Likewise.
7508 * integrate.c (copy_rtx_and_substitute): Likewise.
7509 * stmt.c (expand_asm_operands): Likewise. Give an
7510 ASM_OPERANDS rtx the mode of the output reg being set from it.
7511
7512 2000-09-01 Fred Fish <fnf@be.com>
7513
7514 * fix-header.c (write_rbrac): Add putc and getc to list of
7515 functions to protect against prior definition as a macro.
7516
7517 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
7518
7519 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
7520 (c_size_type_node): Define.
7521 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
7522 * c-common.c (enum format_lengths, enum format_std_version,
7523 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
7524 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
7525 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
7526 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
7527 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
7528 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
7529 format_types): Define.
7530 (format_char_info, print_char_table, scan_char_table,
7531 time_char_table): Rearrange for new organization of information
7532 about format length modifiers and standard versions.
7533 (T_ST): Redefine to use c_size_type_node.
7534 (check_format_info): Obtain information about length modifiers and
7535 standard versions from tables. Adjust warning message wordings.
7536 Use the name from the user's program for `ll' and `hh' length
7537 modifiers in warning messages. Use more informative names for
7538 wanted types where available (for wchar_t, wint_t, size_t, signed
7539 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
7540
7541 2000-09-01 Jim Wilson <wilson@cygnus.com>
7542
7543 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
7544 * combine.c (distribute_notes): Handle REG_NORETURN.
7545 * rtl.c (reg_note_name): Add REG_NORETURN.
7546 * rtl.h (enum reg_note): Likewise.
7547
7548 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
7549 ia64_file_start.
7550 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
7551 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
7552 (emit_predicate_relation_info): Handle conditional calls with
7553 REG_NORETURN.
7554 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
7555 instead of ia64_file_start.
7556 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
7557 * config/ia64/ia64.md (safe_across_calls_all,
7558 save_across_calls_normal): New patterns.
7559
7560 * loop.c (check_final_value): Check for biv use before checking for
7561 giv use. Check for both biv and giv uses. Always set last_giv_use
7562 if there is a giv use.
7563
7564 2000-09-01 Richard Henderson <rth@cygnus.com>
7565
7566 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
7567 (madddi3): Likewise.
7568 (maddsi3): New.
7569
7570 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7571
7572 * expr.c (clear_storage): Don't use emit_move_insn unless
7573 either BLKmode or proper size.
7574 (store_constructor): Don't call clear_storage if REG of wrong size.
7575
7576 * flow.c (init_propagate_block_info): Don't mark frame dead at end
7577 of function if returns wiht stack pointer depressed.
7578
7579 2000-09-01 Andrew Haley <aph@redhat.com>
7580
7581 * dwarf2out.c (stack_adjust_offset): New function.
7582 (dwarf2out_stack_adjust): Break out stack adjust logic into
7583 new stack_adjust_offset function. Look inside parallels and
7584 sequences for stack adjustments.
7585
7586 2000-08-31 Jeff Law <law@cygnus.com>
7587
7588 * arm.md: Use no_new_pseudos to determine when it is safe
7589 to create new pseudo registers.
7590
7591 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
7592 when we can safely allocate new registers.
7593
7594 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
7595
7596 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
7597 so that CONCATs are not generated for ASMs.
7598 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
7599 not generating_concat_p.
7600 * function.c (pop_function_context_from): Reset
7601 generating_concat_p.
7602 (prepare_function_start): Likewise.
7603 * rtl.c (generating_concat_p): Define.
7604 * rtl.h (generating_concat_p): Declare.
7605 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
7606
7607 2000-08-22 Philipp Thomas <pthomas@suse.de>
7608 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
7609
7610 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
7611 for translation.
7612
7613 2000-08-30 Greg McGary <greg@mcgary.org>
7614
7615 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
7616 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
7617 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
7618
7619 2000-08-30 Greg McGary <greg@mcgary.org>
7620
7621 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
7622 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
7623 (TREE_INT_CST): New macro.
7624 * varasm.c (const_hash, compare_constant_1, record_constant_1):
7625 Use new macro TREE_INT_CST.
7626
7627 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
7628
7629 * contrib.texi: Add self.
7630
7631 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
7632
7633 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
7634 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
7635 and labels.
7636
7637 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7638
7639 * fixinc/gnu-regex.c: Don't define `const'.
7640
7641 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7642
7643 * expr.c (store_constructor): Allow variable bounds of array type.
7644 (expand_expr): Don't blow up if type is ERROR_MARK.
7645 * varasm.c (output_constructor): Don't access lower bound of array
7646 type unless need it if index is supplied (so it can be a variable
7647 if no index is supplied).
7648 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
7649 Other minor cleanups.
7650
7651 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7652
7653 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
7654 for compilations in stage 1 and subsequent stages, respectively.
7655 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
7656 * configure: Rebuilt.
7657 * x-vax, x-vax-gcc: Deleted.
7658
7659 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
7660
7661 * c-common.c (declare_function_name): Use func_id_node,
7662 function_id_node, and pretty_function_id_node. Do not make
7663 __func__ visible at file scope.
7664 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
7665 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
7666 (function_id_node, pretty_function_id_node, func_id_node): New
7667 macros.
7668 * c-decl.c (init_decl_processing): Initialize function_id_node,
7669 pretty_function_id_node, and func_id_node.
7670 (c_make_fname_decl): Correct comment.
7671
7672 * tree.h (struct tree_identifier): Constify pointer member.
7673
7674 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
7675 * c-pragma.h (struct weak_syms): Constify name and value members.
7676 (add_weak): Constify arguments.
7677
7678 * calls.c (special_function_p): Constify a char *.
7679 (expand_call): Remove variable which is initialized and then
7680 never used.
7681 * dependence.c (struct def_use, struct induction, struct subscript):
7682 Constify 'variable' member.
7683 (get_low_bound, have_induction_variable): Constify char * argument.
7684 (find_induction_variable): Add braces to avoid dangling else.
7685 (classify_dependence): Constify char * arrays.
7686 * profile.c (output_func_start_profiler): Constify a char *.
7687 * stor-layout.c (finalize_record_size): Constify a char *.
7688 * tree.c (is_attribute_p): Constify a char *.
7689 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
7690
7691 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
7692 for comprehensibility. Do not call get_identifier if we did
7693 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
7694 create temporary string constants, not ggc_alloc_string. No
7695 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
7696 char * to hold IDENTIFIER_POINTERs.
7697
7698 2000-08-29 Richard Henderson <rth@cygnus.com>
7699
7700 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
7701 for the inputs.
7702
7703 2000-08-29 Richard Henderson <rth@cygnus.com>
7704
7705 * reload.c (push_secondary_reload): Allow class == reload_class
7706 if we're using a reload_in/out pattern.
7707
7708 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
7709 the half that does not conflict with the reload register.
7710 (reload_outti): Likewise.
7711
7712 2000-08-29 Kazu Hirata <kazu@hxi.com>
7713
7714 * reload.c: Fix formatting.
7715
7716 * stmt.c: Fix formatting.
7717
7718 * gcc.c: Fix formatting.
7719
7720 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
7721
7722 * flags.h (time_report, mem_report): New global flags.
7723 * toplev.c: Define time_report and mem_report.
7724 (f_options): Add -ftime-report and -fmem-report.
7725 (compile_file): Turn on time_report if quiet_flag is off.
7726 Call ggc_print_statistics at very end if mem_report is on.
7727 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
7728
7729 * ggc-common.c (ggc_print_statistics): Rename to
7730 ggc_print_common_statistics; all callers changed. Scale
7731 quantities above 10K to kilobytes and above 10M to megabytes.
7732 * ggc-page.c (ggc_page_print_statistics): Rename to
7733 ggc_print_statistics. Report memory consumed by internal data
7734 structures for each allocation bucket. Scale quantities above
7735 10K to kilobytes and above 10M to megabytes.
7736 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
7737 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
7738 Define tally_leaves always.
7739 (ggc_print_statistics): New function.
7740 * ggc.h: Adjust for renamed functions.
7741
7742 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
7743
7744 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
7745 output_movsisf instead of which_alternative.
7746
7747 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
7748
7749 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
7750
7751 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
7752 (avr_progmem_p): New prototype.
7753 (output_movsisf): Prototype declaration changed.
7754 (output_movqi): New prototype.
7755 (output_movhi): New prototype.
7756 (call_insn_operand): Likewise.
7757 (final_prescan_insn): Likewise.
7758 (avr_simplify_comparision_p): Likewise.
7759 (avr_normalize_condition): Likewise.
7760 (compare_eq_p): Likewise.
7761 (out_shift_with_cnt): Likewise.
7762 (const_int_pow2_p): Likewise.
7763 (output_reload_inhi): Prototype declaration changed.
7764
7765 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
7766 (ldi_reg_rtx): New. rtx for r31.
7767 (avr_init_stack): Initialize as "__stack".
7768 (function_prologue): Use it.
7769 Replace all TARGET_ENHANCED with AVR_ENHANCED.
7770 (avr_mcu_name): Initialize as "avr2".
7771 (avr_enhanced_p, avr_mega_p): New variables.
7772 (mcu_types, avr_override_options): Handle all known MCU types.
7773 Also handle avr1 (only preprocess, assemble and link).
7774 (print_operand): Using of `%K' in output template removed.
7775 (out_movqi_r_mr): Optimized.
7776 (out_movhi_r_mr): Likewise.
7777 (output_movqi): New function.
7778 (output_movhi): Likewise.
7779 (out_movsi_r_mr): Optimized.
7780 (output_movsisf): Compute insn length for `adjust_insn_length'
7781 (out_movqi_mr_r): Optimized.
7782 (out_movhi_mr_r): Optimized.
7783 (adjust_insn_length): Use output_movsisf, output_movqi,
7784 output_movhi for insn length adjusting.
7785 (reg_unused_after): Use dead_or_set_p.
7786 (preferred_reload_class): Now havn't any restriction.
7787 (reg_was_0): New function.
7788 (io_address_p): Likewise.
7789 (const_int_pow2_p): Likewise.
7790 (output_reload_inhi): Likewise.
7791 (output_reload_insisf): Likewise.
7792
7793 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
7794 (LIB_SPEC): Use -lc for all supported devices.
7795 (LIBGCC_SPEC): Use -lgcc for all supported devices.
7796 (AVR_MEGA): Define as avr_mega_p.
7797 (AVR_ENHANCED): New, define as avr_enhanced_p.
7798 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
7799 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
7800 (CRT_BINUTILS_SPECS): Handle all known MCU types.
7801 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
7802 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
7803 (ASM_SPEC): Pass -mmcu=... to the assembler.
7804 Change all -DAVR_* to -D__AVR_*__.
7805 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
7806 Rename library functions to start with two underscores.
7807 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
7808 alignment.
7809 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
7810 (SUPPORTS_WEAK): Likewise.
7811 (LDI_REG_REGNO): New. Register r31 will be used as temporary
7812 register for loading constants to r0-r14.
7813
7814 * config/avr/avr.md: Replace all TARGET_ENHANCED with
7815 AVR_ENHANCED.
7816 (*mov_r_sp): Removed. Handled by output_movhi.
7817 (*mov_sp_r): Likewise.
7818 (*mov_sp_r_no_interrupts): Likewise
7819 (*mov_sp_r_tiny): Likewise.
7820 (*movqi): Use output_movqi.
7821 (*reload_inqi): New.
7822 (*movhi): Use output_movhi.
7823 (*reload_inhi): New.
7824 (*negsi2): Optimized.
7825 (*negsf2): Likewise.
7826 Added peepholes (define_peephole2) for loading constants to r0-r14
7827 and for using `cpse' command.
7828
7829 * config/avr/libgcc.S: Rename library functions to start with two
7830 underscores.
7831 Add support for enhanced core.
7832 (_moqhi3): Fix typo, now _modqi3.
7833 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
7834 (__prologue_saves__): Remove test for stack adjust by 0.
7835 (__tablejump__): New.
7836
7837 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
7838 Add multilib support.
7839
7840 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
7841
7842 * loop.c (prescan_loop): Don't check unknown_address_altered
7843 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
7844 to loop_store_mems as necessary.
7845 (loop_invariant_p): Don't check unknown_address_altered
7846 or unknown_constant_address_altered.
7847
7848 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7849
7850 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
7851
7852 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
7853
7854 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
7855 print just the filename.
7856 * cpplex.c (_cpp_run_directive): Add additional argument, the
7857 name to give the synthetic buffer. This defaults to
7858 translated "<command line>".
7859 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
7860 Adjust to match.
7861 (_cpp_define_builtin): New function.
7862 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
7863 * cpphash.h: Update prototypes.
7864
7865 * tradcpp.c (main): Process -D and -U simultaneously, in the
7866 order they appeared on the command line.
7867
7868 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7869
7870 * c-decl.c (define_label): Call warning_with_file_and_line and
7871 error_with_file_and_line instead of plain warning or error.
7872
7873 * c-parse.in (label): Use save_filename/save_lineno to ensure
7874 correct values for calls to define_label.
7875
7876 2000-08-29 Mark Mitchell <mark@codesourcery.com>
7877
7878 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
7879 away.
7880 * expr.c (expand_expr, case TARGET_EXPR): Don't call
7881 mark_addressable.
7882 * tree.h (get_file_function_name): Remove two duplicate
7883 declarations.
7884
7885 2000-08-28 Kazu Hirata <kazu@hxi.com>
7886
7887 * tree.c: Fix formatting.
7888
7889 * xcoffout.c: Fix formatting.
7890
7891 2000-08-28 Jason Merrill <jason@redhat.com>
7892
7893 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
7894
7895 2000-08-28 Daniel Berlin <dberlin@redhat.com>
7896
7897 * dwarf2out.c (dwarf2out_finish): Don't bother calling
7898 break_out_includes if it won't do anything.
7899
7900 2000-08-28 Richard Henderson <rth@cygnus.com>
7901
7902 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
7903 (find_reloads): Likewise.
7904 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
7905 (reload_inhi): Likewise.
7906
7907 2000-08-28 Richard Henderson <rth@cygnus.com>
7908
7909 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
7910 (call_insn_operand): Don't expect a surrounding mem.
7911 (constant_call_address_operand): Likewise.
7912 * config/i386/i386.h (PREDICATE_CODES): Update.
7913 * config/i386/i386.md (call patterns): Move the match_operand
7914 for the call destination inside the mem.
7915
7916 2000-08-28 Richard Henderson <rth@cygnus.com>
7917
7918 * local-alloc.c (requires_inout): Don't use reserved range for
7919 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
7920 * recog.c (asm_operand_ok): Likewise.
7921 (preprocess_constraints, constrain_operands): Likewise.
7922 * regclass.c (record_reg_classes): Likewise.
7923 * reload.c (find_reloads): Likewise.
7924 * reload1.c (maybe_fix_stack_asms): Likewise.
7925 (reload_cse_simplify_operands): Likewise.
7926 * stmt.c (expand_asm_operands): Likewise.
7927
7928 * md.texi: Update constraints documentation.
7929 * tm.texi (EXTRA_CONSTRAINT): Update.
7930
7931 2000-08-28 Daniel Berlin <dberlin@redhat.com>
7932
7933 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
7934 (print_die): If we don't know the offset of the
7935 target die, try the symbol. Add a trailing newline.
7936 (reverse_all_dies): New fn.
7937 (dwarf2out_finish): Call it.
7938 (break_out_includes): Reorganize for clarity.
7939 (add_sibling_attributes): Don't call reverse_die_lists.
7940 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
7941 primary CU, too.
7942 * flags.h: Add flag_eliminate_dwarf2_dups.
7943 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
7944
7945 2000-08-28 Jason Merrill <jason@redhat.com>
7946
7947 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
7948 * dwarf2out.c: #include "md5.h".
7949 (DIE_LABEL_PREFIX): New macro.
7950 (dw_val_struct): Add 'external' flag to val_die_ref.
7951 (add_AT_die_ref, AT_ref): Adjust.
7952 (AT_ref_external, set_AT_ref_external): New fns.
7953 (build_abbrev_table): Call set_AT_ref_external.
7954 (value_format): Call AT_ref_external.
7955 (die_struct): Add die_symbol field.
7956 (new_die): Clear it.
7957 (dwarf_tag_name): Handle BINCL/EINCL.
7958 (dwarf2out_start_source_file): Add BINCL DIE.
7959 (dwarf2out_end_source_file): Add EINCL DIE.
7960 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
7961 (loc_checksum, attr_checksum, die_checksum): New fns.
7962 (is_type_die, is_comdat_die, is_symbol_die): New fns.
7963 (compute_section_prefix, assign_symbol_names): New fns.
7964 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
7965 (output_die): Call output_die_symbol and AT_ref_external.
7966 (output_comdat_comp_unit): New fn, split out from...
7967 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
7968 secondary CUs.
7969 (output_pubnames, output_aranges): Abort if we see entries from
7970 secondary CUs.
7971 * toplev.h: Declare file_name_nondirectory.
7972 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
7973 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
7974 (debug_start_source_file): Call dwarf2out_start_source_file
7975 regardless of debug verbosity.
7976 (debug_end_source_file): Similarly.
7977 * tree.h: Declare clean_symbol_name.
7978 * tree.c (clean_symbol_name): Split out from...
7979 (get_file_function_name_long): ...here.
7980
7981 * dwarf2out.c (new_loc_descr): Use calloc.
7982 (splice_child_die): Remove the die from the right parent.
7983 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
7984
7985 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7986
7987 * toplev.c (decode_g_option): Don't give warning for unknown -g
7988 option; return 0 instead.
7989 (main): If -g option is not recognized by front end or
7990 language-independent code, give warning.
7991
7992 2000-08-28 Greg McGary <greg@mcgary.org>
7993
7994 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
7995 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
7996 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
7997
7998 2000-08-27 Greg McGary <greg@mcgary.org>
7999
8000 * cpplex.c (parse_string): Don't look for backslash
8001 before first char in `namebuf'.
8002 * loop.c (strength_reduce): Skip NOTEs.
8003
8004 2000-08-27 Jason Merrill <jason@redhat.com>
8005
8006 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
8007 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
8008 TREE_ASM_WRITTEN, either.
8009 (finish_decl): Adjust.
8010
8011 2000-08-28 Philipp Thomas <pthomas@suse.de>
8012
8013 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
8014 they have been incorporated into the gettext CVS. Change the text to
8015 reflect the current status of NLS. Add instructions for accessing
8016 the gettext CVS and add the patch from Martin v. Loewis.
8017
8018 2000-08-27 Geoff Keating <geoffk@cygnus.com>
8019
8020 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
8021 by using gen_lowpart_common.
8022 (movdi_internal64+6): Likewise.
8023
8024 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
8025
8026 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
8027 Document.
8028
8029 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
8030 numbers to the ranges used by GDB.
8031
8032 2000-08-25 Richard Henderson <rth@cygnus.com>
8033
8034 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
8035 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
8036 (ia64_expand_prologue): Likewise.
8037 (ia64_setup_incoming_varargs): Set it. Properly skip the current
8038 argument for stdargs.
8039
8040 2000-08-25 Jason Merrill <jason@redhat.com>
8041
8042 * integrate.c (expand_inline_function): Pull out the original decl.
8043
8044 2000-08-25 Jim Wilson <wilson@cygnus.com>
8045
8046 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
8047
8048 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
8049
8050 2000-08-25 Greg McGary <greg@mcgary.org>
8051
8052 * flow.c (dump_edge_info): Use ARRAY_SIZE.
8053 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
8054
8055 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
8056
8057 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
8058
8059 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
8060
8061 * i386.c (ix86_find_base_term): New.
8062 * i386-protos.h (ix86_find_base_term): Prototype.
8063 * i386.h (FIND_BASE_TERM): Define.
8064 * alias.c (find_base_term): Use it.
8065 * tm.texi (FIND_BASE_TERM): Document it.
8066
8067 * alias.c (true_dependence, write_dependence_p): Unchanging
8068 memory can't conflict with non-unchanging memory.
8069
8070 * alias.c (memrefs_conflict_p): A BLKmode reference
8071 to a symbol (or CONST_INT address) always conflicts
8072 with a reference to another symbol.
8073
8074 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
8075
8076 * c-common.c (time_char_table): Don't allow width and flags with
8077 "z" format.
8078
8079 2000-08-25 Jakub Jelinek <jakub@redhat.com>
8080
8081 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
8082 way as LT and LTU when the second operand has 0 in low word.
8083
8084 2000-08-26 Michael Hayes <mhayes@cygnus.com>
8085
8086 * basic-block.h (struct loop): Rename `exits' field to
8087 `exit_edges'. Add `entry_edges' and `num_entries' fields.
8088
8089 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
8090 (flow_loop_entry_edges_find): Add.
8091 (flow_edge_list_print): Rename from flow_exits_print.
8092 (flow_loops_find): Call flow_loop_entry_edges_find.
8093 (flow_loop_dump): Dump entry_edges list.
8094 (flow_loops_free): Free entry_edges.
8095
8096 2000-08-26 Michael Hayes <mhayes@cygnus.com>
8097
8098 * loop.c (loop_dump_aux, debug_loop): New functions.
8099 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
8100
8101 * flow.c (flow_loops_dump): Add callback parameter.
8102 (flow_loop_dump): Add callback parameter and call it. Move
8103 loop note debugging code to loop_dump_aux.
8104
8105 * basic-block.h (flow_loop_dump): Add callback parameter
8106 (flow_loops_dump): Likewise.
8107
8108 * toplev.c (rest_of_compilation): Add NULL callback function pointer
8109 to call to flow_loops_dump.
8110
8111 2000-08-26 Michael Hayes <mhayes@cygnus.com>
8112
8113 * loop.c (count_loop_regs_set): Replace start and end arguments
8114 with loop argument. All callers udated.
8115
8116 2000-08-26 Michael Hayes <mhayes@cygnus.com>
8117
8118 * loop.c (constant_high_bytes): Delete.
8119
8120 2000-08-26 Michael Hayes <mhayes@cygnus.com>
8121
8122 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
8123 and NOTE_INSN_LOOP_VTOP to...
8124 (find_and_verify_loops) ...here.
8125
8126 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
8127
8128 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
8129 (fini_dummy, init_dummy): Use it.
8130
8131 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
8132
8133 * cpplex.c (is_macro_disabled): Caller has already checked
8134 that we're not a preprocessed file.
8135
8136 2000-08-24 Mark Mitchell <mark@codesourcery.com>
8137
8138 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
8139 (c-iterate.o): Remove target.
8140 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
8141 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
8142 (finish_decl): Don't handle iterators.
8143 (grokdeclarator): Likewise.
8144 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
8145 * gcc/c-gperf.h: Regenerated.
8146 * gcc/c-iterate.c: Removed.
8147 * gcc/c-lex.c (init_lex): Don't handle iterators.
8148 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
8149 (compstmt_primary_start): Remove push_iterator_stack call.
8150 (stmt): Don't allow iterator statements. Replace iterator_expand
8151 with expand_expr_stmt.
8152 (all_iter_stmt): Remove.
8153 (all_iter_stmt_simple): Likewise.
8154 (all_iter_stmt_with_decl): Likewise.
8155 * gcc/c-tree.h (ITERATOR_P): Remove.
8156 (ITERATOR_BOUND_P): Likewise.
8157 (init_iterators): Remove declaration.
8158 (iterator_expand): Likewise.
8159 (iterator_for_loop_start): Likewise.
8160 (iterator_for_loop_end): Likewise.
8161 (iterator_for_loop_record): Likewise.
8162 (push_iterator_stack): Likewise.
8163 (pop_iterator_stack): Likewise.
8164 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
8165 (readonly_warning): Likewise.
8166 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
8167
8168 2000-08-24 Jim Wilson <wilson@cygnus.com>
8169
8170 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
8171 Copy type in a TYPE_DECL, just like pushdecl does.
8172
8173 2000-08-24 Richard Henderson <rth@cygnus.com>
8174
8175 * toplev.c (main): Enable flag_reorder_blocks at -O2.
8176
8177 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
8178
8179 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
8180 asked for one page, allocate GGC_QUIRE_SIZE of them and put
8181 the extras on the free list.
8182 (release_pages): Clean up.
8183 (ggc_set_mark): Don't adjust G.allocated here...
8184 (sweep_pages): ... do it here.
8185
8186 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
8187
8188 * cppfiles.c (read_include_file): Rearrange initializations.
8189
8190 2000-08-24 Richard Henderson <rth@cygnus.com>
8191
8192 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
8193
8194 * config/ia64/ia64-protos.h: Update.
8195 * config/ia64/ia64.c (gr_register_operand): New.
8196 (fr_register_operand, grfr_register_operand): New.
8197 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
8198 (grfr_reg_or_8bit_operand): New.
8199 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
8200 use gr_register_operand.
8201 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
8202 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
8203 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
8204 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
8205 (fr_reg_or_fp01_operand): Likewise.
8206 (not_postinc_memory_operand): New.
8207 (ia64_split_timode): Remove unused variables.
8208 (rtx_needs_barrier): Check arguments to cmpxchg.
8209 (builtin_description): Remove.
8210 (bdesc_2argsi, bdesc_2argdi): Remove.
8211 (ia64_init_builtins): Declare all builtins directly.
8212 (ia64_expand_fetch_and_op): Rewrite to be called from
8213 ia64_expand_builtin directly. Use expand_binop and co.
8214 (ia64_expand_op_and_fetch): Likewise.
8215 (ia64_expand_compare_and_swap): Likewise.
8216 (ia64_expand_binop_builtin): Remove.
8217 (ia64_expand_lock_test_and_set): New.
8218 (ia64_expand_lock_release): New.
8219 (ia64_expand_builtin): Use them.
8220 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
8221 (EXTRA_CONSTRAINT): Use it.
8222 (PREDICATE_CODES): Update.
8223 * config/ia64/ia64.md (*): Use gr_register_operand and co.
8224 (mf): Indicate that we set memory as well as use it.
8225 (fetchadd_acq_si): Show memory being modified as well.
8226 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
8227 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
8228 (lock_test_and_set_si, lock_test_and_set_di): Remove.
8229 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
8230 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
8231 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
8232 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
8233 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
8234 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
8235 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
8236 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
8237 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
8238 return type. Pretty print definitions.
8239
8240 2000-08-24 Jim Wilson <wilson@cygnus.com>
8241
8242 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
8243 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
8244
8245 2000-08-24 Jason Merrill <jason@redhat.com>
8246
8247 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
8248 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
8249 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
8250 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
8251
8252 2000-08-24 Greg McGary <greg@mcgary.org>
8253
8254 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
8255 and extendtab within their proper array boundaries.
8256 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
8257 for the entire array.
8258
8259 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
8260 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
8261 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
8262 * config/fr30/fr30.c (fr30_print_operand): Likewise.
8263 * config/i386/dgux.c (output_options): Likewise.
8264 * config/i386/dgux.h (ASM_FILE_START): Likewise.
8265 * config/m88k/m88k.c (output_options): Likewise.
8266 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
8267 * config/mcore/mcore.c (mcore_output_inline_const_forced,
8268 layout_mcore_frame, handle_structs_in_regs): Likewise.
8269 * config/mips/mips.c (output_block_move): Likewise.
8270 * config/rs6000/rs6000.c (rs6000_override_options,
8271 rs6000_file_start): Likewise.
8272 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
8273 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
8274 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
8275 * builtins.c (expand_builtin_setjmp): Likewise.
8276 * expr.c (safe_from_p): Likewise.
8277 * flow.c (life_analysis): Likewise.
8278 * fold-const.c (size_int_type_wide): Likewise.
8279 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
8280 * genattrtab.c (make_length_attrs): Likewise.
8281 * genopinit.c (gen_insn): Likewise.
8282 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
8283 * global.c (global_alloc): Likewise.
8284 * local-alloc.c (find_free_reg): Likewise.
8285 * mips-tdump.c (print_symbol): Likewise.
8286 * mips-tfile.c (parse_def, parse_input): Likewise.
8287 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
8288 * stmt.c (expand_nl_goto_receiver): Likewise.
8289 * stor-layout.c (set_sizetype): Likewise.
8290 * varasm.c (decode_reg_name): Likewise.
8291 * toplev.c (decode_f_option, decode_W_option,
8292 set_target_switch, print_switch_values): Likewise.
8293 (NUM_ELEM): Remove macro.
8294 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
8295
8296 2000-08-24 Greg McGary <greg@mcgary.org>
8297
8298 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
8299 (MAIN_NAME_P, main_identifier_node): New macros.
8300 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
8301 * c-decl.c (start_decl, grokdeclarator, start_function,
8302 store_parm_decls, finish_function): Use MAIN_NAME_P.
8303 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
8304 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
8305 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
8306 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
8307
8308 2000-08-24 Greg McGary <greg@mcgary.org>
8309
8310 * cppfiles.c (actual_directory): Don't write beyond `dir'
8311 when it contains "".
8312 * real.c (asctoeg): Stay within bounds of etens[][].
8313
8314 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8315
8316 * dependence.c (dependence_string, direction_string,
8317 dump_one_node, dump_node_dependence): Hide unused identifiers.
8318 (get_low_bound, normalize_coefficients): Match definition to
8319 static prototype.
8320 (get_one_coefficient): Initialize variables `value0_is_idx' and
8321 `value1_is_idx'.
8322 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
8323 (ziv_test): Delete variable `idx', use parameter `sub' instead.
8324 (direction_merge): Avoid automatic aggregate initialization.
8325 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
8326 Initialize variables `dest_idx' and `src_idx'.
8327 (end_dependence_analysis): Avoid C89 style function definition.
8328
8329 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
8330
8331 * c-common.c (time_char_table): Don't allow width with %F.
8332 (check_format_info): Don't allow "Z" length with scanf.
8333
8334 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
8335
8336 * diagnostic.c (finish_diagnostic): Define.
8337 (output_do_printf): Use wrap_text instead of output_add_string.
8338 (default_print_error_function): Avoid embedded '\n'.
8339
8340 * diagnostic.h (flush_diagnostic_buffer): Declare.
8341
8342 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
8343
8344 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
8345
8346 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
8347
8348 * Makefile.in (GCC_PASSES): Add specs.
8349
8350 2000-08-23 Jim Wilson <wilson@cygnus.com>
8351
8352 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
8353 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
8354 EHANDLER nor UHANDLER bit is set.
8355 (__get_except_table): Likewise.
8356
8357 2000-08-23 Nick Clifton <nickc@redhat.com>
8358
8359 * config/arm/lib1funcs.asm: Replace upper case condition codes
8360 with lower case versions.
8361
8362 * config/arm/arm.h (STRUCT_VALUE): Define.
8363 (STRUCT_VALUE_REGNUM): Delete.
8364
8365 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
8366
8367 * cpphash.h (IN_I): New flag for directive table.
8368 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
8369 #pragma with IN_I.
8370 (_cpp_check_directive): If -fpreprocessed, execute directives
8371 marked with IN_I. Issue no warnings in this case.
8372 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
8373
8374 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
8375
8376 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
8377 %u.
8378 (check_format_info): Support printf 'I' flag; warn about it with
8379 -pedantic.
8380
8381 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
8382
8383 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
8384 barrier can't be ignored by the alias analysis code.
8385
8386 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
8387
8388 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
8389 works inside fixincl.
8390
8391 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
8392
8393 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
8394 simplify_relational_operation() unless both operands are of
8395 VOIDmode.
8396 * cse.c (fold_rtx): Likewise.
8397
8398 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
8399
8400 * rtlanal.c (rtx_unstable_p): The pic register is stable
8401 (within one function) and the actual rtx should be used
8402 when checking the registers.
8403 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
8404
8405 * alias.c (true_dependence, write_dependence_p): Fix
8406 bug in previous patch.
8407
8408 * i386.c (ix86_GOT_alias_set): New.
8409 (legitimize_pic_address): Use it.
8410
8411 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
8412 only stable if its address is stable.
8413 (rtx_varies_p): An unchanging MEM can't vary if
8414 its address doesn't vary.
8415
8416 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8417
8418 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
8419
8420 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8421
8422 * vax.h (ASM_SPEC): Pass `-J' to assembler.
8423 * x-vax-gcc: New file for bootstrapping with gcc.
8424 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
8425 * configure.in: Use x-vax-gcc with gcc.
8426 * configure: Rebuilt.
8427
8428 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8429
8430 * toplev.c (rest_of_compilation): Rebuild label notes after
8431 post-reload splitting pass if new labels have been created.
8432
8433 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
8434
8435 * diagnostic.h (output_buffer_state): New macro.
8436 * diagnostic.c (diagnostic_for_decl, sorry,
8437 default_print_error_function, output_do_verbatim,
8438 report_diagnostic, report_problematic_module): Use it.
8439 (wrap_text): Tweak.
8440 (output_format): Use wrap_text instead of maybe_wrap_text.
8441
8442 2000-08-22 Nick Clifton <nickc@redhat.com>
8443
8444 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
8445 Common code for ARM divide and modulus functions.
8446 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
8447 ARM_DIV_MOD_BODY.
8448 (FUNC_END): New macro: Common code at the end of the division and
8449 modulo functions.
8450 (THUMB_FUNCTION_START): New macro: Common code at the start of
8451 Thumb functions.
8452 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
8453
8454 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8455
8456 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
8457
8458 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
8459 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
8460 const0_rtx.
8461
8462 2000-08-22 Nick Clifton <nickc@redhat.com>
8463
8464 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
8465 restorative additions, test for bottom bits of IP being set,
8466 rather than relying upon the RORs not matching.
8467 (__modsi3): Ditto.
8468
8469 2000-08-22 David Edelsohn <edelsohn@gnu.org>
8470
8471 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
8472 text_section() as appropriate instead of emitting text csect
8473 pseudo-op directly.
8474 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
8475 (UNIQUE_SECTION): Define macro.
8476 (ASM_OUTPUT_SECTION_NAME): Define macro.
8477 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
8478 on AIX if debugging and -fdata-sections always.
8479
8480 2000-08-22 Steven King <sxking@uswest.net>
8481
8482 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
8483 machinery.
8484 (LDBL_MAX): Same here.
8485
8486 2000-08-22 Richard Henderson <rth@cygnus.com>
8487
8488 * flow.c (tidy_fallthru_edge): Update b->end properly.
8489
8490 2000-08-22 Stan Cox <scox@redhat.com>
8491
8492 * Makefile.in (OBJS): Add dependence.o.
8493 * dependence.c: New file.
8494
8495 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
8496
8497 * calls.c (check_sibcall_argument_overlap_1): Adjust for
8498 ARGS_GROW_DOWNWARD.
8499 (check_sibcall_argument_overlap): Likewise.
8500
8501 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
8502
8503 * invoke.texi (SH Options): Document -m4-nofpu,
8504 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
8505 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
8506
8507 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
8508
8509 * c-common.c (check_format_info): Give the 'some locales' warning
8510 for strftime %Ey rather than the unconditional 'only last 2 digits
8511 of year' one.
8512
8513 2000-08-22 Richard Henderson <rth@cygnus.com>
8514
8515 * alias.c (init_alias_analysis): Do not register
8516 struct_value_incoming_rtx or static_chain_rtx as pointing
8517 to stack memory.
8518
8519 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
8520
8521 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
8522
8523 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
8524
8525 * diagnostic.h (report_problematic_module): Declare.
8526 * diagnostic.c (report_problematic_module): New function.
8527 (report_error_function): Tweak.
8528
8529 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8530
8531 * stmt.c (expand_goto_internal, fixup_gotos): Only check
8532 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
8533
8534 2000-08-21 Richard Henderson <rth@cygnus.com>
8535
8536 * flow.c (calculate_global_regs_live): Mark frame pointer live
8537 everywhere before reload.
8538
8539 2000-08-21 Jim Wilson <wilson@cygnus.com>
8540
8541 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
8542 INTEL_EXTENDED_IEEE_FORMAT.
8543 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
8544 clear last two bytes of output FP value.
8545
8546 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
8547
8548 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
8549
8550 2000-08-21 Jakub Jelinek <jakub@redhat.com>
8551
8552 * unroll.c (loop_find_equiv_value): If ret is modified between
8553 insn and loop_start, ret might not be equivalent to reg.
8554
8555 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
8556
8557 * c-common.c (init_dollar_format_checking,
8558 maybe_read_dollar_number, finish_dollar_format_checking): New
8559 functions.
8560 (dollar_arguments_used, dollar_arguments_count,
8561 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
8562 New variables.
8563 (check_format_info): Support $ formats for scanf and printf width
8564 and precision. Always increment format_chars to advance past the
8565 '*' of precision, not just when the format parameters are
8566 available to check.
8567
8568 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8569
8570 * mips.c (block_move_loop, expand_block_move,
8571 function_arg_partial_nregs, save_restore_insns, function_prologue,
8572 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
8573 constant suffix.
8574 (function_arg_advance, function_arg): Match argument to format
8575 specifier `%p'.
8576
8577 2000-08-21 Nix <nix@esperi.demon.co.uk>
8578
8579 * gcc.c (do_spec_1): Implement %j spec flag.
8580 Remove dead comment.
8581
8582 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
8583 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
8584 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
8585 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
8586
8587 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
8588 writable) instead of hardcoded value.
8589
8590 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
8591
8592 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
8593 MKTEMP_EACH_FILE.
8594
8595 * gcc.c (cc1_options): Do not process -o or run the assembler if
8596 -fsyntax-only.
8597 * objc/lang-spec.h: Likewise.
8598
8599 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
8600
8601 * fixinc/fixincl.c (fix_with_system): Pipe the output of
8602 "external" fixes through `cat', to avoid truncating the input
8603 file by redirection.
8604
8605 2000-08-21 Jakub Jelinek <jakub@redhat.com>
8606
8607 * config/i386/i386.md (lea_general_1): Copy insn condition to split
8608 condition.
8609 (lea_general_2, lea_general_3): Likewise.
8610
8611 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8612
8613 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
8614 warnings to user code.
8615
8616 * c-lex.c (readescape, yylex): Likewise.
8617
8618 * c-typeck.c (store_init_value, process_init_element): Likewise
8619 (c_expand_start_case): Format.
8620
8621 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8622
8623 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
8624
8625 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
8626 and linker_endian_spec to endian_spec.
8627 (ENDIAN_SPEC): Add %{EB} and %{EL}.
8628 (LINK_SPEC): Remove %{EB} and %{EL}.
8629 (ASM_SPEC): Likewise. Use %(endian_spec).
8630
8631 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
8632
8633 * c-tree.h (flag_hosted): Move declaration from here...
8634 * c-common.h (flag_hosted): ... to here.
8635 (flag_noniso_default_format_attributes): New declaration.
8636 * c-decl.c (flag_noniso_default_format_attributes): New variable.
8637 (c_decode_option): Set it appropriately for options choosing
8638 language standard variant.
8639 * c-common.c (init_function_format_info): Only provide default
8640 format attributes if flag_hosted. Only provide the gettext
8641 formats if flag_noniso_default_format_attributes. Update
8642 comments.
8643 (check_format_info): Disable treatment of %a as a scanf flag in
8644 C99 mode.
8645
8646 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
8647
8648 * c-common.c (scan_char_table): Add 'w' to flags for all formats
8649 except 'n'.
8650 (check_format_info): Set 'wide' for scanf format widths. Warn for
8651 a zero scanf width. Make the check for writing into a constant
8652 object at the first level of indirection; at later levels, warn if
8653 any type qualifiers are encountered.
8654
8655 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
8656
8657 * reload.c (reload_inner_reg_of_subreg): New function broken out of
8658 push_reload.
8659 (push_reload): Use reload_inner_reg_of_subreg.
8660 (combine_reloads): Do not combine reloads if the input reload
8661 is a SUBREG in which the inner part will need reloading.
8662
8663 * global.c (global_alloc): Avoid passing dumpfile argument to
8664 reload routines.
8665 * toplev.c (rest_of_compilation): Likewise.
8666 * reload.h (reload): Remove dumpfile argument. Callers changed.
8667 (debug_reload, debug_reload_to_stream): Move prototypes here.
8668 * rtl.h (reload): Remove dumpfile argument.
8669 * reload.c (debug_reload): Remove prototype.
8670 (debug_reload_to_stream): Likewise.
8671 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
8672 instead.
8673
8674 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8675
8676 * diagnostic.c (context_as_prefix): Export.
8677 (need_error_newline): Remove.
8678 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
8679 (error_module_changed, record_last_error_module,
8680 error_function_changed, record_last_error_function): New functions.
8681 (initialize_diagnostics): Default intialize
8682 lang_diagnostic_starter, lang_diagnostic_finalizer.
8683 (init_output_buffer): Tweak.
8684 (file_name_as_prefix): New function.
8685 (announce_function, default_print_error_function,
8686 report_error_function, set_diagnostic_context): Tweak.
8687
8688 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
8689
8690 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
8691 condition expression.
8692
8693 2000-08-20 Richard Henderson <rth@cygnus.com>
8694
8695 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
8696
8697 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
8698
8699 * cppinit.c (cpp_init): Set global flag when called.
8700 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
8701
8702 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
8703
8704 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
8705 before `process_directive' so that newlines won't be missed
8706 for directives.
8707 (cpp_printf): Increment `print->lineno' when newline is emitted.
8708
8709 * cppmain.c (cb_ident): Likewise.
8710 (cb_define): Likewise.
8711 (cb_undef): Likewise.
8712 (cb_include): Likewise.
8713 (cb_def_pragma): Likewise.
8714 (dump_macros_helper): Likewise.
8715
8716 2000-08-20 Richard Henderson <rth@cygnus.com>
8717
8718 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
8719 assigned before a loop.
8720
8721 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
8722 (ashrsi3, lshrsi3): Likewise.
8723
8724 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
8725
8726 * c-lang.c: #include diagnostic.h
8727 (c_tree_printer): New function.
8728 (lang_init): Initialize lang_printer.
8729
8730 * Makefile.in (c-lang.o): Depends on diagnostic.h
8731
8732 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
8733
8734 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
8735
8736 * diagnostic.c (default_diagnostic_starter,
8737 default_diagnostic_finalizer): New functions.
8738 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
8739 (pedwarn, pedwarn_with_file_and_line, error,
8740 error_with_file_and_line, fatal, warning,
8741 warning_with_file_and_line): Adjust call to report_diagnostic.
8742 (report_diagnostic): Rework.
8743 (set_diagnostic_context): New function.
8744
8745 * diagnostic.h (struct diagnostic_context): New data structure.
8746 (diagnostic_message, diagnostic_argument_list,
8747 diagnostic_file_location, diagnostic_line_location,
8748 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
8749 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
8750 (set_diagnostic_context): Declare.
8751 (report_diagnostic): Change prototype.
8752
8753 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
8754
8755 * fix-header.c (main): Initialize cpplib.
8756
8757 2000-08-19 Michael Meissner <meissner@redhat.com>
8758
8759 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
8760 instructions in it before checking for indirect jumps.
8761
8762 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
8763 in a indirect jump as a potential for conditional execution.
8764
8765 * d30v.h (d30v_init_expanders): Don't declare here.
8766 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
8767 prototype.
8768
8769 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
8770
8771 * cpp.texi: Add @section for assertions.
8772
8773 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
8774
8775 * loop.c (scan_loop): Use CONST_CALL_P instead of
8776 checking for REG_LIBCALL / REG_RETVAL.
8777
8778 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
8779
8780 * reload1.c (reload_as_needed): Accept dumpfile argument,
8781 pass it to emit_reload_insns.
8782 (emit_reload_insns): Add new dumpfile argument. If non-null
8783 then dump the reloads for each insn into the dumpfile.
8784 (reload): Pass dumpfile to reload_as_needed.
8785
8786 * invoke.texi: Clean up linux-gnu vs linux comments.
8787
8788 2000-08-19 Richard Henderson <rth@cygnus.com>
8789
8790 * config/ia64/ia64.c (reg_or_5bit_operand): New.
8791 (ia64_depz_field_mask): New.
8792 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
8793 (PREDICATE_CODES): Update.
8794 * config/ia64/ia64.md: Update commentary.
8795 (depz_internal): New.
8796 (ashlsi3): Implement directly.
8797 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
8798 (ashldi3): Use shladd.
8799 * config/ia64/ia64-protos.h: Update.
8800
8801 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
8802
8803 * toplev.c (independent_decode_option): Always process -g.
8804 Remove third argument, now unused. Adjust caller to match.
8805
8806 2000-08-18 Richard Henderson <rth@cygnus.com>
8807
8808 * combine.c (make_compound_operation): Break after creating
8809 the extraction.
8810
8811 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
8812
8813 * cpplib.c (cpp_register_pragma_space): Just return if the
8814 namespace is already registered.
8815
8816 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
8817
8818 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
8819 constant amount. Do not generate ROTL instruction.
8820
8821 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
8822
8823 * config/sh/elf.h: Do not include sh/sh.h.
8824 * config/sh/rtems.h: Likewise.
8825 * config/sh/rtemself.h: Do not include sh/elf.h.
8826 * configure.in: Get them included with `tm_file's.
8827 * configure: Rebuilt.
8828
8829 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
8830 * config/sh/sh.c (fpscr_set_from_mem): Use them.
8831
8832 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8833
8834 * stor-layout.c (compute_record_type): Don't use mode of single
8835 field as mode of record if not integer mode of same type.
8836
8837 * regmove.c (perhaps_ends_bb_p): New function.
8838 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
8839 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
8840 (fixup_match_1): Likewise.
8841 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
8842 avoid signed/unsigned warnings.
8843
8844 * function.c (fixup_var_refs_1, case MEM): Update CODE after
8845 updating X.
8846
8847 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
8848
8849 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
8850 (_cpp_trigraph_map): Declaration moved from cpplex.c
8851
8852 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
8853 instead of 256. Use consistent test for designated initializers.
8854 (cpp_init): Initialize trigraph_map.
8855 (initialize_standard_includes, parse_option): Use memcmp
8856 instead of strncmp.
8857
8858 * cpplex.c (init_trigraph_map): Remove.
8859 (trigraph_ok, trigraph_replace, lex_line): Refer to
8860 _cpp_trigraph_map.
8861
8862 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
8863 (do_unassert): Remove unused "next" local.
8864
8865 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
8866
8867 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
8868
8869 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
8870 insn.
8871
8872 2000-08-17 Richard Henderson <rth@cygnus.com>
8873
8874 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
8875 the first insn in a sequence.
8876
8877 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
8878
8879 * alias.c (true_dependence, write_dependence_p): A read
8880 involving a label_ref or the constant pool doesn't create
8881 a dependency.
8882
8883 * rtl.h (unchanging): Improve documentation.
8884
8885 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
8886
8887 * cse.c (insert_regs): Remove unused `regno'.
8888
8889 2000-08-17 Neil Booth <NeilB@earthling.net>
8890
8891 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
8892 remove_dup_dirs. If qtail == brack, remove brack not
8893 qtail.
8894 (remove_dup_dir, remove_dup_dirs): New functions.
8895
8896 2000-08-17 Neil Booth <NeilB@earthling.net>
8897
8898 * cppinit.c (cpp_cleanup): Free include dir chains.
8899 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
8900 (do_unassert): Free the assert with _cpp_free_definition.
8901 * cppmacro.c (_cpp_free_definition): Free memory allocated for
8902 assertions. Make the node a T_VOID node.
8903
8904 2000-08-17 Neil Booth <NeilB@earthling.net>
8905
8906 * cppinit.c (path_include, append_include_chain):
8907 Remove 2nd parameter (struct cpp_pending *).
8908 (path_include, initialize_standard_includes, cpp_handle_option):
8909 Update callers appropriately.
8910 (cpp_handle_option): Use pend.
8911
8912 2000-08-17 Neil Booth <NeilB@earthling.net>
8913
8914 * cppinit.c (sort_options): Remove, put functionality in
8915 cpp_init.
8916 (cpp_init): New.
8917 (initialize_builtins): Free memory.
8918 (cpp_start_read): Move init_IStable to cpp_init.
8919
8920 * cpplib.h (cpp_init): New prototype.
8921 * cppmain.c (main): Call cpp_init.
8922
8923 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
8924
8925 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
8926 (rtx_unstable_p, rtx_varies_p): Process vectors.
8927
8928 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
8929
8930 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
8931 references to GLOBAL symbols. Use LOCAL where appropriate.
8932
8933 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8934
8935 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
8936 use t-aix41 when host == target.
8937
8938 2000-08-16 Richard Henderson <rth@cygnus.com>
8939
8940 * reload.c (push_secondary_reload): Revert last change.
8941 If we use a reload_in/out pattern, make the when the same
8942 as the primary reload.
8943 (find_reloads): Likewise.
8944
8945 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
8946
8947 * configure.in (libstdcxx-v3): Fix test.
8948 * configure: Regenerate.
8949
8950 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8951
8952 * calls.c (calls_function_1, expand_call): Only test
8953 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
8954 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8955
8956 2000-08-16 Richard Henderson <rth@cygnus.com>
8957
8958 * combine.c (simplify_shift_const): Revert previous two
8959 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
8960 before the main loop.
8961
8962 2000-08-15 Richard Henderson <rth@cygnus.com>
8963
8964 * combine.c (simplify_shift_const): Bound shift count when
8965 combining shifts.
8966
8967 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8968
8969 * calls.c (ECF_SP_DEPRESSED): New macro.
8970 (calls_function_1): Treat calling sp-depressed function as alloca.
8971 (emit_call_1): Don't adjust SP if calling sp-depressed function.
8972 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
8973 If sp-depressed, ensure block saves and restores SP.
8974 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
8975 for INTEGER_TYPE.
8976 * function.c (keep_stack_depressed): New function.
8977 (thread_prologue_and_epilogue_insns): Call it.
8978 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
8979 to print DECL_OFFSET_ALIGN.
8980 Print no-force-blk and transparent-union flags properly.
8981 * stmt.c (expand_goto_internal): Don't restore stack if last block
8982 and function returns with sp depressed.
8983 (fixup_gotos): Likewise.
8984 (save_stack_pointer): New function, from code in expand_decl.
8985 (expand_decl): Call new function.
8986 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
8987 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
8988 (save_stack_pointer): New declaration.
8989
8990 * diagnostic.c (fatal_function): New variable.
8991 (set_fatal_function): New function.
8992 (fatal): Call it.
8993 * diagnostic.h (set_fatal_function): New declaration.
8994
8995 2000-08-15 William Cohen <wcohen@redhat.com>
8996
8997 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
8998 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
8999 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
9000
9001 2000-08-15 Richard Henderson <rth@cygnus.com>
9002
9003 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
9004
9005 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
9006
9007 * arm.c (arm_function_ok_for_sibcall): New function.
9008 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
9009 * arm.md (call expanders): Don't check here for calls that can't
9010 be sibling calls.
9011
9012 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
9013
9014 * arm.md (splits generating cond_exec): Disable.
9015
9016 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
9017
9018 * arm/linux-elf.h (text_section): Delete declaration.
9019
9020 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
9021
9022 ARM support for unordered FP operations.
9023 * arm-protos.h (arm_comparison_operator): Declare.
9024 * arm.c (arm_comparison_operator): New function.
9025 (arm_select_cc_mode): Add unordered comparison codes.
9026 (get_arm_condition_code): Likewise.
9027 (arm_final_prescan_insn): Can't handle unordered jumps that can't
9028 be done in one insn.
9029 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
9030 * arm.md (all uses of comparison_operator): Replace with
9031 arm_comparison_operator.
9032 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
9033 expands.
9034 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
9035 patterns.
9036
9037 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
9038
9039 * gthr-posix.h: Conditionally include <sched.h>; include
9040 <config.h> from libobjc/.
9041
9042 2000-08-14 Richard Henderson <rth@cygnus.com>
9043
9044 * config/i386/i386.c (legitimize_pic_address): Use Pmode
9045 for all CONSTs.
9046
9047 2000-08-14 Richard Henderson <rth@cygnus.com>
9048
9049 * configure.in (ia64-*): Set float_format for i386 long double.
9050
9051 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
9052 as we would for i386 XFmode.
9053 (PUT_REAL): Likewise.
9054 (endian, ereal_atof, real_value_truncate): Likewise.
9055 (ereal_isneg, toe64, etens, make_nan): Likewise.
9056 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
9057
9058 * config/ia64/ia64-protos.h: Update.
9059 * config/ia64/ia64.c (general_tfmode_operand): New.
9060 (destination_tfmode_operand): New.
9061 (tfreg_or_fp01_operand): New.
9062 (ia64_split_timode): New.
9063 (spill_tfmode_operand): New.
9064 (ia64_expand_prologue): Use TFmode not XFmode.
9065 (ia64_expand_epilogue): Likewise.
9066 (ia64_function_arg): Likewise.
9067 (ia64_function_arg_advance): Likewise.
9068 (ia64_return_in_memory): Likewise.
9069 (ia64_function_value): Likewise.
9070 (ia64_print_operand): Likewise.
9071 (ia64_register_move_cost): Set GR<->FR to 5.
9072 (ia64_secondary_reload_class): Get GR for TImode memory op.
9073 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
9074 (ROUND_TYPE_ALIGN): Remove.
9075 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
9076 (INTEL_EXTENDED_IEEE_FORMAT): Define.
9077 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
9078 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
9079 (MODES_TIEABLE_P): Use TFmode, not XFmode.
9080 (CLASS_MAX_NREGS): Likewise.
9081 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
9082 (PREDICATE_CODES): Update.
9083 * config/ia64/ia64.md (movti): New.
9084 (movti_internal): Use a clobber for memory alternatives.
9085 (reload_inti, reload_outti): New.
9086 (movsfcc_astep): Predicate properly.
9087 (movdfcc_astep): Likewise.
9088 (movxf): Remove.
9089 (movtf): New.
9090 (extendsftf2, extenddftf2): New.
9091 (trunctfsf2, trunctfdf2): New.
9092 (floatditf2, fix_trunctfdi2): New.
9093 (floatunsditf2, fixuns_trunctfdi2): New.
9094 (addtf3, subtf3, multf3, abstf2): New.
9095 (negtf2, nabstf2, mintf3, maxtf3): New.
9096 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
9097 (cmptf): New.
9098 (fr_spill): Use TFmode, not XFmode.
9099 (fr_restore): Likewise.
9100 * config/ia64/lib1funcs.asm (__divtf3): New.
9101 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
9102
9103 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9104
9105 * cse.c (fold_rtx): Avoid empty body in an if-statement.
9106
9107 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
9108 `U' integer constant suffix.
9109
9110 * dwarf2out.c (add_subscript_info): Avoid empty body in an
9111 else-statement.
9112
9113 * sparc/sol2.h (__enable_execute_stack): Prototype.
9114
9115 2000-08-14 David Edelsohn <edelsohn@gnu.org>
9116
9117 * collect2.c: Remove use of AIX import file.
9118
9119 * longlong.h: Test ARCH_PWR not ARCH_POWER.
9120
9121 * rs6000.c (print_operand, case 'E'): Add else.
9122
9123 2000-08-14 Richard Henderson <rth@cygnus.com>
9124
9125 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
9126 (movdi_symbolic): New.
9127
9128 2000-08-14 Jim Wilson <wilson@cygnus.com>
9129
9130 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
9131 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
9132 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
9133 to GNU as.
9134
9135 2000-08-14 Richard Henderson <rth@cygnus.com>
9136
9137 * expr.c (emit_group_load): Don't force constants into registers.
9138 Special case source already in the correct mode.
9139
9140 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
9141
9142 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
9143 * fixinc/inclhack.def: Likewise.
9144 * fixinc/mkfixinc.sh: Likewise.
9145 * configure: Regenerate.
9146 * fixinc/fixincl.x: Regenerate.
9147 * install.texi: Document equivalence of linux and linux-gnu.
9148
9149 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9150
9151 * cse.c (insert_regs): Also in REG case: When finding an invalid
9152 value, and we make a new quantity, make sure that it won't be
9153 mistaken by for a valid one by mention_regs.
9154
9155 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
9156
9157 * h8300.md: Remove obsolete peepholes.
9158
9159 2000-08-13 Kazu Hirata <kazu@hxi.com>
9160
9161 * invoke.texi (H8/300 Options): Fix typos.
9162 * config/h8300.c: Fix formatting.
9163 * config/h8300.h: Fix comment typos.
9164 (OVERRIDE_OPTIONS): Fix formatting.
9165
9166 * function.c: Fix formatting.
9167
9168 * cse.c: Fix formatting.
9169
9170 2000-08-13 Geoff Keating <geoffk@cygnus.com>
9171
9172 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
9173 (attempt_auto_inc): Suppress parentheses warning.
9174 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
9175 * loop.c (load_mems): Remove `u' suffix in two places.
9176 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
9177 hex constants.
9178 * config/rs6000/rs6000.h: Likewise.
9179 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
9180 __eabi dummy routine.
9181 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
9182 variable `buf_ptr'.
9183
9184 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
9185 not put stuff in .sdata unnecessarily.
9186 (rs6000_unique_section): New function.
9187 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
9188 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
9189
9190 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
9191 arrays in C99. Don't try to look at DECL_REGISTER of a
9192 COMPONENT_REF. Don't complain twice about the same error.
9193
9194 * fixinc/inclhack.def (aix_pthread): New fix.
9195 (aix_sysmachine): New fix.
9196 * fixinc/fixincl.x: Regenerate.
9197
9198 * expr.c (expand_expr): Call convert_modes when turning a large
9199 multiply into a small one.
9200
9201 2000-08-12 Geoff Keating <geoffk@cygnus.com>
9202
9203 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
9204 the tree structure an exponent rather than an explicit alignment
9205 so it doesn't overflow.
9206 (SET_DECL_OFFSET_ALIGN): New macro.
9207 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
9208 rather than DECL_OFFSET_ALIGN.
9209 (place_field): Likewise.
9210 * expmed.c (store_bit_field): Abort on align==0 to avoid
9211 antisocial machine behaviour.
9212
9213 2000-08-12 Richard Henderson <rth@cygnus.com>
9214
9215 * sibcall.c (uses_addressof): Accept both addressof and
9216 current_function_internal_arg_pointer inside a mem.
9217 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
9218 if current_function_uses_addressof.
9219 * stmt.c (expand_return): Kill tail recursion and HAVE_return
9220 optimizations.
9221
9222 2000-08-11 Richard Henderson <rth@cygnus.com>
9223
9224 * config/ia64/ia64.md (addsi3): Remove expander.
9225 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
9226 (*addsi3_shladd): New.
9227
9228 2000-08-11 Richard Henderson <rth@cygnus.com>
9229
9230 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
9231 (do_restore): Likewise.
9232 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
9233 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
9234 (rtx_needs_barrier): Track actual bit manipulation for
9235 ar.unat moves, gr_spill, and gr_restore.
9236 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
9237 (process_set): Don't handle varargs spills.
9238 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
9239 .mem.offset here instead of in process_set.
9240 (gr_restore): Likewise.
9241
9242 2000-08-11 Richard Henderson <rth@cygnus.com>
9243
9244 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
9245
9246 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
9247
9248 * gcc.texi (The Configuration File): Document
9249 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
9250 UPDATE_PATH_HOST_CANONICALIZATION.
9251
9252 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9253
9254 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
9255 unprototyped function pointer casts on integer constants.
9256
9257 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
9258
9259 * fixproto: Recognize DOS paths with drive letters as absolute paths.
9260
9261 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
9262
9263 * extend.texi (Volatiles): Fix typos.
9264
9265 2000-08-11 Kazu Hirata <kazu@hxi.com>
9266
9267 * flow.c: Fix formatting.
9268
9269 2000-08-11 Richard Henderson <rth@cygnus.com>
9270
9271 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
9272 pattern, always allocate a tertiary scratch register.
9273
9274 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
9275 (reload_inhi): Likewise.
9276
9277 2000-08-11 Richard Henderson <rth@cygnus.com>
9278
9279 * function.c (put_reg_into_stack): Allow type to be NULL.
9280 (schedule_fixup_var_refs): Likewise.
9281 (gen_mem_addressof): Allow decl to be NULL.
9282 (put_addressof_into_stack): Likewise.
9283
9284 * flow.c (merge_blocks_nomove): Be more careful about
9285 locating the beginning of block A.
9286
9287 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
9288
9289 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
9290
9291 * configure.in:
9292 * configure:
9293 * gthr-posix.h:
9294 * config.in: Reverted the check for <sched.h>.
9295
9296 2000-08-10 Chris Demetriou <cgd@sibyte.com>
9297
9298 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
9299 macros define the name of CTOR and DTOR sections.
9300 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
9301 DTOR_LIST_END): Change to use attributes to specify
9302 sections.
9303 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
9304 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
9305 DTOR_LIST_END): Same as in mips/elf.h.
9306
9307 2000-08-10 Drew Moseley <dmoseley@redhat.com>
9308
9309 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
9310 disabling just crt0.o.
9311
9312 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
9313
9314 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
9315 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
9316 (EXTRA_SPECS): Add them.
9317 * arm/lib1funcs.asm: Support builds for interworking.
9318 Use macros to eliminate duplicated pieces of code.
9319
9320 2000-08-10 Kazu Hirata <kazu@hxi.com>
9321
9322 * h8300.c (expand_a_rotate): New.
9323 (emit_a_rotate): Likewise.
9324 (h8300_adjust_insn_length): Add support for the rotate insns.
9325 * h8300.md (rotlqi3): New.
9326 (*rotlqi3_1): Likewise.
9327 (rotlhi3): Likewise.
9328 (*rotlhi3_1): Likewise.
9329 (rotlhi3): Likewise.
9330 (*rotlhi3_1): Likewise.
9331 * h8300-proto.h: Add prototypes for expand_a_rotate and
9332 emit_a_rotate.
9333
9334 * h8300.c: Fix comment typos.
9335 (dosize): Declare the variable amount as unsigned.
9336 (get_shift_alg): Fix a comparison between signed and unsigned.
9337 (emit_a_shift): Likewise.
9338 (h8300_adjust_insn_length): Simplify the code.
9339
9340 * c-decl.c: Fix formatting.
9341
9342 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9343
9344 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
9345 warning about non-traditional numeric constant suffixes.
9346
9347 * cppexp.c (parse_number): Likewise.
9348
9349 * invoke.texi: (-Wtraditional): Document new behavior.
9350
9351 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
9352
9353 * gthr-posix.h: Include auto-host.h. Conditionally include
9354 <sched.h>.
9355 * configure.in: Check for the <sched.h> header file.
9356 * config.in: Added define for HAVE_SCHED_H.
9357
9358 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9359
9360 * c-typeck.c (process_init_element): For -Wtraditional, warn about
9361 initialization of unions.
9362
9363 * invoke.texi (-Wtraditional): Document new behavior.
9364
9365 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
9366
9367 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
9368 instead of extra_c_flags.
9369 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
9370 * configure: Regenerate.
9371 * config.in: Regenerate.
9372
9373 * cpperror.c (cpp_type2name): New function.
9374 * cpplex.c (lex_line): If we issued an error for an invalid
9375 preprocessing directive, discard that logical line.
9376 * cpplib.c (do_line): Call a hook function if the current file
9377 is renamed by #line.
9378 (do_ident): Pass the contents of the string, not the entire
9379 token, to the callback function.
9380 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
9381 (cb.rename_file): New hook function.
9382 (cb.ident): Adjust prototype.
9383 (cpp_type2name): Prototype.
9384 * cppmacro.c (dump_macro_args): Correct precedence lossage.
9385
9386 * cppmain.c (cb_ident): Update for changed interface.
9387 (cb_rename_file): New function.
9388 (main): Set rename callback.
9389
9390 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
9391
9392 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
9393 multi-word registers.
9394
9395 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
9396
9397 * c-common.c (combine_strings, check_format_info): Refer to ISO C
9398 or ISO C89 instead of ANSI C.
9399 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
9400 build_enumerator, do_case): Likewise.
9401 * c-lex.c (parse_float, yylex): Likewise.
9402 * c-parse.in: Likewise.
9403 * c-typeck.c (common_type, build_array_ref, build_binary_op,
9404 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
9405 build_c_cast, convert_for_assignment, set_init_index,
9406 set_init_label, c_expand_start_case): Likewise.
9407 * toplev.c (documented_lang_options, display_help): Likewise.
9408
9409 2000-08-08 Kazu Hirata <kazu@hxi.com>
9410
9411 * h8300.c: Fix formatting.
9412 * h8300.h: Likewise.
9413 * h8300.md: Likewise.
9414 (movsi_h8300hs): Fix formatting of the resulting assembly code.
9415
9416 * reload1.c: Fix formatting.
9417
9418 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
9419
9420 * alpha/alpha.c (alpha_emit_xfloating_libcall):
9421 Use GEN_CALL_VALUE define.
9422 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
9423 * clipper/clipper.md (untyped_call): Likewise.
9424 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
9425 * fx80/fx80.md (untyped_call): Likewise.
9426 * mips/mips.md (untyped_call): Likewise.
9427 * ns32k/ns32k.md (untyped_call): Likewise.
9428 * pa/pa.md (untyped_call): Likewise.
9429 * romp/romp.md (untyped_call): Likewise.
9430 * sparc/sparc.md (untyped_call): Likewise.
9431
9432 2000-08-08 Jason Eckhardt <jle@cygnus.com>
9433
9434 * config/i860/i860.c (singlemove_string): Do not generate assembler
9435 pseudo instructions that must be expanded (that is, with signed
9436 constants larger than 16 bits).
9437
9438 2000-08-08 Richard Henderson <rth@cygnus.com>
9439
9440 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
9441 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
9442 (init_propagate_block_info): Don't kill memory stores at -O0.
9443 (mark_set_1, mark_used_regs): Likewise.
9444
9445 2000-08-08 David Edelsohn <edelsohn@gnu.org>
9446
9447 * rs6000.c (optimization_options): Decorate 'level' as
9448 ATTRIBUTE_UNUSED.
9449 (mask64_operand): Remove sign-extend thinko.
9450 (rldic_operand): New function.
9451 (load_multiple_operation): regno's are unsigned ints.
9452 (store_multiple_operation): Likewise.
9453 (lmw_operation): Likewise.
9454 (stmw_operation): Likewise.
9455 (includes_lshift_p): shift_mask is unsigned int.
9456 (includes_lshift64_p): New function.
9457 (addrs_ok_for_quad_peep): unsigned int reg1.
9458 (print_operand): Consistently add "else" after
9459 output_operand_lossage().
9460 (print_operand, case 'b'): Fold in case 'W'.
9461 (print_operand, case 'W'): Print rldic MB value.
9462 (output_epilogue): Update Objective-C language string.
9463 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
9464 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
9465 * rs6000.md (ashldi3): Add rldic instruction.
9466 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
9467 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
9468 modifier.
9469
9470 2000-08-08 Richard Henderson <rth@cygnus.com>
9471
9472 * config/ia64/ia64-protos.h: Remove duplicates. Update
9473 for massive code rearrangements.
9474 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
9475 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
9476 (ia64_local_regs, ia64_need_regstk): Remove.
9477 (ar_ccv_reg_operand): New.
9478 (ia64_gp_save_reg): New.
9479 (struct ia64_frame_info): Combine most of the size elements;
9480 add new gr save elements.
9481 (find_gr_spill): New.
9482 (next_scratch_gr_reg): New.
9483 (mark_reg_gr_used_mask): New.
9484 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
9485 to GR backing store regs when possible.
9486 (ia64_initial_elimination_offset): New.
9487 (ia64_rap_fp_offset): Remove.
9488 (save_restore_insns): Remove.
9489 (setup_spill_pointers): New.
9490 (finish_spill_pointers): New.
9491 (spill_restore_mem): New.
9492 (do_spill, do_restore): New.
9493 (ia64_expand_prologue): Rewrite to use them.
9494 (ia64_expand_epilogue): Likewise.
9495 (ia64_direct_return): Update for current_frame_info changes.
9496 (ia64_function_prologue): Simplify .prologue emission. Emit
9497 .spill when needed.
9498 (ia64_setup_incoming_varargs): Don't ever emit rtl.
9499 (ia64_dbx_register_number): New.
9500 (ia64_initialize_trampoline): New.
9501 (ia64_secondary_reload_class): Request GR_REGS for integer
9502 arithmetic destined for FR_REGS.
9503 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
9504 (ia64_mark_machine_status): Mark ia64_gp_save.
9505 (rws_access_regno): Rename from rws_access_reg; don't treat
9506 predicates specially.
9507 (rws_access_reg): New. Update all callers.
9508 (rtx_needs_barrier): Remove dead unspecs.
9509 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
9510 (ia64_encode_section_info): Silence signed/unsigned warnings.
9511 (spill_offset, sp_offset, spill_offset_emitted): Remove.
9512 (tmp_reg, tmp_saved): Remove.
9513 (process_set): Rewrite to expect complicated bits via
9514 REG_FRAME_RELATED_EXPR.
9515 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
9516 in the use of ar.ccv; never set RTX_UNCHANGING_P.
9517 (ia64_expand_op_and_fetch): Likewise.
9518 (ia64_expand_compare_and_swap): Likewise.
9519 (ia64_expand_builtin): Likewise.
9520 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
9521 (FIRST_PSEUDO_REGISTER): Update.
9522 (AR_M_REGNO_P): Update.
9523 (FIXED_REGS): Don't mark three local registers as used.
9524 (EXTRA_CC_MODES): New.
9525 (SELECT_CC_MODE): New.
9526 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
9527 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
9528 (FRAME_GROWS_DOWNWARD): Unset.
9529 (STARTING_FRAME_OFFSET): Zero.
9530 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
9531 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
9532 (HARD_FRAME_POINTER_REGNUM): New.
9533 (CAN_DEBUG_WITHOUT_FP): Define.
9534 (TRAMPOLINE_TEMPLATE): Remove.
9535 (TRAMPOLINE_SIZE): Lower to 32.
9536 (TRAMPOLINE_ALIGNMENT): Lower to 64.
9537 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
9538 (PREDICATE_CODES): Update.
9539 (struct machine_function): Add ia64_gp_save.
9540 * config/ia64/ia64.md: Purge unused unspecs.
9541 (movsi patterns): Allow moves to/from AR_M_REGS.
9542 (movdi patterns): Allow moves to/from p0.
9543 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
9544 (gr_spill, gr_restore): Indicate ar.unat read/written.
9545 (nonlocal_goto): Don't pass old frame_pointer.
9546 (nonlocal_goto_receiver): Remove.
9547 (exception_receiver): New.
9548 (builtin_setjmp_setup): New.
9549 (builtin_setjmp_receiver): New.
9550 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
9551 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
9552 (__ia64_restore_stack_nonlocal): Likewise.
9553 (__ia64_trampoline): New.
9554 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
9555 function.
9556 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
9557
9558 2000-08-08 Richard Henderson <rth@cygnus.com>
9559
9560 * frame.h (ia64_frame_state): Add my_psp.
9561 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
9562 (__throw): Pass it in. Don't clobber r7.
9563 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
9564 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
9565 and nothing to do with sp.
9566 (normalize_reg_loc): Use frame->my_psp.
9567 (frame_translate): Handle frame-pointer-less functions. Set
9568 spill_base correctly, in absence of being told.
9569 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
9570 (__ia64_backtrace_helper): New sp argument. Use
9571 builtin_return_address instead of label addresses.
9572 (print_record) [mem_stack_v]: No size member.
9573
9574 2000-08-08 Richard Henderson <rth@cygnus.com>
9575
9576 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
9577
9578 2000-08-08 Richard Henderson <rth@cygnus.com>
9579
9580 * tm.texi (LOCAL_REGNO): Document.
9581 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
9582 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
9583 * reload1.c (reload): Likewise when considering nonlocal labels.
9584
9585 * config/ia64/ia64.h (LOCAL_REGNO): New.
9586 * config/sparc/sparc.h (LOCAL_REGNO): New.
9587
9588 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
9589
9590 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
9591
9592 2000-08-07 Nick Clifton <nickc@redhat.com>
9593
9594 * config/mips/mips.c: Fix compile time warning messages.
9595 * config/mips/mips-protos.h: Add prototype for equality_op.
9596
9597 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
9598
9599 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
9600
9601 * mn10300.md: Use nonimmediate_operand instead of general_operand
9602 on output operands.
9603
9604 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
9605
9606 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
9607
9608 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
9609 * sh.c (expand_block_move): Break long lines.
9610 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
9611 * sh.md (mulsi3): Likewise.
9612 (movdi): Adjust spacing.
9613
9614 2000-08-07 Richard Henderson <rth@cygnus.com>
9615
9616 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
9617 * expr.c (emit_group_store): Don't set it.
9618
9619 2000-08-07 Kazu Hirata <kazu@hxi.com>
9620
9621 * invoke.texi (Options for Debugging Your Program or GCC): Remove
9622 duplicate entries for 'w' and 'z'.
9623
9624 * flow.c: Fix a comment typo.
9625
9626 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
9627
9628 * c-parse.in: Changed the language string for Objective-C to "GNU
9629 Objective-C".
9630
9631 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
9632
9633 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
9634 to improve the Posix thread support for Objective-C.
9635
9636 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
9637
9638 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
9639 CTI_UNSIGNED_PTRDIFF_TYPE.
9640 (signed_size_type_node): Define.
9641 (unsigned_ptrdiff_type_node): Define.
9642 * c-decl.c (init_decl_processing): Create the
9643 signed_size_type_node and unsigned_ptrdiff_type_node types.
9644 * c-common.c (T_SC): Define.
9645 (T_SST): Define.
9646 (T_UPD): Define.
9647 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
9648 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
9649 %s and %p.
9650 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
9651 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
9652 flags for %c, %s and %[.
9653 (check_format_info): Only allow leniency for signedness of targets
9654 of character pointers (when pedantic) for formats flagged with
9655 "c", so for strings but not for %hh formats. When pedantic, don't
9656 allow character pointers to substitute for void pointers if a
9657 second level of indirection is present.
9658
9659 2000-08-06 Kazu Hirata <kazu@hxi.com>
9660
9661 * invoke.texi (Options for Debugging Your Program or GCC): Update
9662 the names of dump files.
9663
9664 * h8300.c (dosize): Rearrange code for conciseness.
9665 (split_adds_subs): Likewise.
9666
9667 * loop.c: Fix formatting.
9668
9669 * dwarf2out.c: Fix formatting.
9670
9671 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
9672
9673 * expr.c: Fix formatting.
9674
9675 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9676
9677 * rs6000.c (rs6000_maybe_dead): Prototype.
9678
9679 2000-08-06 Richard Henderson <rth@cygnus.com>
9680
9681 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
9682 HAVE_nonlocal_goto as well.
9683 * config/i960/i960.md (nonlocal_goto): Don't do it here.
9684 * config/pj/pj.md (nonlocal_goto): Likewise.
9685
9686 2000-08-07 Michael Hayes <mhayes@cygnus.com>
9687
9688 * loop.c (try_swap_copy_prop): New function.
9689 (load_mems): Rename copies to load_copies and add new regset
9690 store_copies. Check for sets of shadow registers and mark
9691 in store_copies. Call try_swap_copy_prop for registers
9692 marked in store_copies.
9693
9694 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
9695
9696 * objc/objc-act.c: New command line option -fconstant-string-class
9697 to allow specifying a user defined constant string class,
9698 different from NXConstantString.
9699
9700 * toplev.c: Moved the Objective-C specific options to
9701 objc/lang-options.h.
9702
9703 * objc/lang-options.h: Moved the Objective-C specific options from
9704 toplev.c. Added -fconstant-string-class.
9705
9706 2000-08-05 Chris Demetriou <cgd@sibyte.com>
9707
9708 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
9709 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
9710 __CTOR_LIST__ from func_ptr array to just func_ptr, to
9711 avoid extra alignment imposed on arrays.
9712 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
9713 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
9714
9715 * mips.h: Clean up comments and spacing near MASKs.
9716 (TARGET_UNIX_ASM): Delete.
9717 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
9718 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
9719 values contiguous.
9720
9721 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
9722
9723 * c-common.c (print_char_table): Add entries for the X/Open '
9724 format flag (print decimals with locale's thousands grouping
9725 character). Make %C expect wint_t.
9726 (check_format_info): If pedantic, warn when the %n$ operand
9727 number form is used. Allow for the ' flag; warn about it if
9728 pedantic.
9729
9730 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
9731
9732 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
9733 type is a float mode, cfun->decl's return type is not, and
9734 TARGET_FLOAT_RETURNS_IN_80387.
9735
9736 2000-08-04 Andreas Schwab <schwab@suse.de>
9737
9738 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
9739 token list, which are always `#' and `pragma'.
9740
9741 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
9742
9743 * tree.c (tree_expr_nonnegative_p): Move to...
9744 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
9745 (rtl_expr_nonnegative_p): New.
9746 * tree.h: Add prototype for rtl_expr_nonnegative_p.
9747
9748 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
9749 CONST_DOUBLE_CHAIN: Move to...
9750 * rtl.h: ...here. Use XCINT/XCEXP.
9751
9752 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
9753 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
9754 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
9755 to VOL_FILES.
9756
9757 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
9758
9759 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9760
9761 * config/c4x/c4x.md (return_indirect_internal): New.
9762 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
9763
9764 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
9765
9766 * c-common.c (time_char_table): Mark up formats added in C99 and
9767 make other corrections. %D and %g were added in C99. %Og is an
9768 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
9769 C99. %e was added in C99. %Oj is an extension. %G and %z are in
9770 C99 rather than GNU extensions, but %OG and %Oz are extensions.
9771 %h was added in C99. %C was added in C99. %OY and %OC are
9772 extensions. Add the C99 format %F.
9773 (check_format_info): If pedantic and not in C99 mode, warn for C99
9774 formats, %E and %O.
9775
9776 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9777
9778 * function.c (schedule_fixup_var_refs): New function, broken out
9779 of put_reg_into_stack.
9780 (put_reg_into_stack): Use it.
9781 (put_var_into_stack): In CONCAT case, fixup up references for
9782 components only after fixing up references to the whole concat.
9783
9784 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
9785
9786 * alias.c (mark_constant_function): Use INSN_P.
9787 (init_alias_analysis): Likewise.
9788 * combine.c (combine_instructions): Use INSN_P.
9789 (can_combine_p): Likewise.
9790 (try_combine): Likewise.
9791 (distribute_notes): Likewise.
9792 (distribute_links): Likewise.
9793 * cse.c (cse_around_loop): Use INSN_P.
9794 (invalidate_skipped_block): Likewise.
9795 (cse_set_around_loop): Likewise.
9796 (cse_end_of_basic_block): Likewise.
9797 (delete_trivially_dead_insns): Likewise.
9798 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
9799 (unshare_all_rtl_1): Likewise.
9800 (next_cc0_user): Likewise.
9801 (try_split make_insn_raw): Likewise.
9802 (remove_unnecessary_notes): Likewise.
9803 * final.c (shorten_branches): Use INSN_P.
9804 (leaf_renumber_regs): Likewise.
9805 (leaf_renumber_regs_insn): Likewise.
9806 * flow.c (find_label_refs): Use INSN_P.
9807 (verify_wide_reg): Likewise.
9808 (notice_stack_pointer_modification): Likewise.
9809 (count_or_remove_death_notes): Likewise.
9810 (verify_flow_info): Likewise.
9811 (clear_log_links): Likewise.
9812 * function.c (fixup_var_refs_insns): Use INSN_P.
9813 (compute_insns_for_mem): Likewise.
9814 * gcse.c (alloc_gcse_mem): Use INSN_P.
9815 (compute_sets): Likewise.
9816 (compute_hash_table): Likewise.
9817 (classic_gcse): Likewise.
9818 (cprop): Likewise.
9819 (insert_insn_end_bb): Likewise.
9820 (delete_null_pointer_checks_1): Likewise.
9821 * global.c (expand_preferences): Use INSN_P.
9822 (build_insn_chain): Likewise.
9823 * graph.c (node_data): Use INSN_P.
9824 * haifa-sched.c (priority): Use INSN_P.
9825 (rm_line_notes): Likewise.
9826 (rm_other_notes): Likewise.
9827 (find_insn_reg_weight): Likewise.
9828 (init_target_units): Likewise.
9829 (schedule_block): Likewise.
9830 (compute_block_forward_dependences): Likewise.
9831 (debug_dependencies): Likewise.
9832 (set_priorities): Likewise.
9833 * integrate.c (function_cannot_inline_p): Use INSN_P.
9834 (save_parm_insns): Likewise.
9835 (copy_insn_list): Likewise.
9836 * jump.c (mark_all_labels): Use INSN_P.
9837 (never_reached_warning): Likewise.
9838 * lcm.c (optimize_mode_switching): Use INSN_P.
9839 * local-alloc.c (validate_equiv_mem): Use INSN_P.
9840 (memref_used_between_p): Likewise.
9841 (update_equiv_regs): Likewise.
9842 (block_alloc): Likewise.
9843 (no_conflict_p): Likewise.
9844 * loop.c (scan_loop): Use INSN_P.
9845 (find_and_verify_loops): Likewise.
9846 (count_loop_regs_set): Likewise.
9847 (loop_reg_used_before_p): Likewise.
9848 (strength_reduce): Likewise.
9849 (recombine_givs): Likewise.
9850 (check_dbra_loop): Likewise.
9851 (load_mems): Likewise.
9852 (try_copy_prop): Likewise.
9853 * print-rtl.c (print_rtx): Use INSN_P.
9854 * recog.c (find_single_use): Use INSN_P.
9855 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
9856 (next_flags_user): Likewise.
9857 (swap_rtx_condition): Likewise.
9858 * regmove.c (mark_flags_life_zones): Use INSN_P.
9859 (optimize_reg_copy_1): Likewise.
9860 (optimize_reg_copy_2): Likewise.
9861 (optimize_reg_copy_3): Likewise.
9862 (reg_is_remote_constant_p): Likewise.
9863 (fixup_match_2): Likewise.
9864 (regmove_optimize): Likewise.
9865 (fixup_match_1): Likewise.
9866 * regrename.c (build_def_use): Use INSN_P.
9867 (replace_reg_in_block): Likewise.
9868 (consider_use): Likewise.
9869 * reload.c (find_equiv_reg): Use INSN_P.
9870 * reload1.c (reload): Use INSN_P.
9871 (maybe_fix_stack_asms): Likewise.
9872 (calculate_needs_all_insns): Likewise.
9873 (reload_as_needed): Likewise.
9874 (emit_output_reload_insns): Likewise.
9875 (delete_address_reloads_1): Likewise.
9876 (reload_cse_regs_1): Likewise.
9877 (reload_combine): Likewise.
9878 (reload_cse_move2add): Likewise.
9879 * reorg.c (redundant_insn): Use INSN_P.
9880 (dbr_schedule): Likewise.
9881 * resource.c (find_dead_or_set_registers): Use INSN_P.
9882 (mark_target_live_regs): Likewise.
9883 * rtlanal.c (reg_used_between_p): Use INSN_P.
9884 (reg_referenced_between_p): Likewise.
9885 (reg_set_between_p): Likewise.
9886 (reg_set_p): Likewise.
9887 (single_set): Likewise.
9888 (multiple_sets): Likewise.
9889 (find_last_value): Likewise.
9890 (reg_set_last): Likewise.
9891 (find_reg_note): Likewise.
9892 (find_regno_note): Likewise.
9893 * sibcall.c (sequence_uses_addressof): Use INSN_P.
9894 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
9895 * ssa.c (find_evaluations): Use INSN_P.
9896 (rename_block): Likewise.
9897 (rename_equivalent_regs): Likewise.
9898 * unroll.c (loop_find_equiv_value): Use INSN_P.
9899 (set_dominates_use): Likewise.
9900 * varasm.c (mark_constant_pool): Use INSN_P.
9901 (mark_constants): Likewise.
9902 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
9903 (alphaev4_next_group): Likewise.
9904 (alphaev5_next_group): Likewise.
9905 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
9906 (c4x_rptb_rpts_p): Likewise.
9907 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
9908 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
9909 (rs6000_adjust_priority): Likewise.
9910 * config/sh/sh.c (sh_loop_align): Use INSN_P.
9911 (machine_dependent_reorg): Likewise.
9912 (split_branches): Likewise.
9913 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
9914
9915 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
9916
9917 * combine.c (recog_for_combine): Remove the old notes
9918 prior to attempting to recognize the new pattern.
9919 (distribute_notes): Ignore REG_NONNEG notes.
9920
9921 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
9922
9923 * varasm.c (output_constructor): Add .align 0 for packed vars.
9924
9925 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9926
9927 * configure.in: Use default thread_file even when enable_threads is
9928 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
9929 * configure: Rebuilt.
9930
9931 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
9932
9933 2000-08-04 Donn Terry (donnte@microsoft.com)
9934
9935 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
9936
9937 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
9938
9939 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
9940 Delete code that conditionally modifies 'version'.
9941 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
9942 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
9943 * gcc.c (main): Use it.
9944 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
9945 * prefix.c (update_path): Use it.
9946 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
9947 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
9948 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
9949 code.
9950 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
9951 (SUBTARGET_SWITCHES): Adjust.
9952 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
9953 defining.
9954 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
9955
9956 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
9957
9958 * c-common.h (flag_isoc94): Declare.
9959 * c-decl.c (flag_isoc94): Define.
9960 (c_decode_option): Set flag_isoc94 as appropriate.
9961 * c-common.c (T_PD, T_IM, T_UIM): Define.
9962 (format_char_info): Add tlen and jlen.
9963 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
9964 %F. Allow %lf.
9965 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
9966 %l[.
9967 (time_char_table): Add NULL entries for %t and %j.
9968 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
9969 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
9970 Warn for printf %lf if pedantic and not C99. Don't warn for empty
9971 precision. Allow precision argument to be unsigned int. If
9972 pedantic, warn for %p passed an argument not a pointer to possibly
9973 qualified void or a possibly qualified character type, and for
9974 pointer targets of the wrong sign, except for character pointers.
9975
9976 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
9977
9978 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
9979 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
9980 (wint_type_node): Define.
9981 * c-decl.c (WINT_TYPE): Define.
9982 (init_decl_processing): Create the wint_type_node type.
9983 * c-common.c (T_WI): Define.
9984 (print_char_table): Use T_WI for %lc format.
9985
9986 2000-08-04 Bruce Korb <bkorb@gnu.org>
9987
9988 * fixinc/: Verified that the MSDOS patch does not break
9989 the UNIX functionality and applied the next three patches
9990 from July:
9991
9992 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
9993
9994 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
9995 output file with the temporary one by appending ".X" to generate
9996 the temporary fuile's name. If the output file already has an
9997 extension, replace it with ".X".
9998
9999 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
10000 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
10001 reallocate the command buffer while copying the command-line
10002 argument. Redirect the output directly to the temporary file,
10003 instead of going through another temporary file.
10004 (process): Close the temporary file before unlinking it.
10005 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
10006 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
10007 (run_compiles): Pass p_fixd argument to machine_matches, as it
10008 expects.
10009
10010 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
10011 environment, assume there are no symlinks in the include
10012 directory. When cleaning up the DONE files, look for them
10013 case-insensitively. Don't try to remove symlinks if they aren't
10014 there.
10015
10016 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
10017 all callers changed. Declare pz "const char *", to avoid compiler
10018 warnings.
10019
10020 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
10021 Change prototype of make_raw_shell_str.
10022
10023 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10024
10025 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
10026 (initialize) [__MSDOS__]: Use tempnam.
10027 (initialize): Don't use SIGPIPE if it is not defined.
10028
10029 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
10030 return stdout.
10031
10032 2000-07-25 Bruce Korb <bkorb@gnu.org>
10033
10034 * fixinc/fix*.[ch]: substantially reworked to make it possible
10035 to run this program without using fork(2) or pipe(2) (i.e. in
10036 a DOS environment).
10037
10038 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
10039
10040 * cppdefault.h (WINT_TYPE): Define.
10041 * cppinit.c (builtin_array): Define __WINT_TYPE__.
10042 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
10043 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
10044
10045 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
10046
10047 * (mips_legitimate_address_p): Don't allow register+offset
10048 if the offset is large and negative, and we are compiling
10049 for 64 bit registers.
10050
10051 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10052
10053 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
10054 insn_code_number + 1.
10055
10056 2000-08-04 Kazu Hirata <kazu@hxi.com>
10057
10058 * h8300.c (function_prologue): Rearrange code for conciseness.
10059 (function_epilogue): Likewise.
10060 * h8300.h (OK_FOR_U): Fix formatting.
10061
10062 * cse.c: Fix a comment typo. Fix formatting.
10063
10064 2000-08-03 Richard Henderson <rth@cygnus.com>
10065
10066 * config/i386/i386.md (return_indirect_internal): New.
10067 * config/i386/i386.c (ix86_expand_epilogue): Use it.
10068
10069 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
10070
10071 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
10072 before the name.
10073 (lex_line): Glue @ onto the beginning of identifiers and
10074 string constants, in Objective-C mode.
10075 (output_token, spell_token): Handle CPP_OSTRING.
10076 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
10077 beginning of a NAME or a STRING, in objc mode.
10078
10079 * cpplib.c (get_define_node): Do not permit identifiers that
10080 begin with @ to be #defined.
10081 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
10082 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
10083
10084 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
10085 * c-tree.h (build_objc_string): Delete prototype.
10086 * objc/objc-tree.def: Delete OBJC_STRING_CST.
10087 * c-lex.c (yylex): Use build_string for all three kinds of strings.
10088
10089 * c-parse.in, objc/objc-act.c: Update commentary.
10090
10091 2000-08-03 Mark Mitchell <mark@codesourcery.com>
10092
10093 * extend.texi: Fix typo in last change.
10094
10095 * extend.texi: Add commentary on statement-expressions and their
10096 interactions with C++.
10097
10098 2000-08-03 Nick Clifton <nickc@cygnus.com>
10099
10100 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
10101 * dwarf.h (LANG_JAVA): Change value to 0x000b.
10102
10103 2000-08-03 Anthony Green <green@cygnus.com>
10104
10105 * dwarf2out.c (gen_compile_unit_die): Add java language support.
10106 (add_bound_info): Check for java language.
10107 (is_java): New function.
10108 * dwarfout.c (output_compile_unit_die): Ditto.
10109 * dwarf.h (dwarf_source_language): Add java source language type.
10110 * dwarf2.h (dwarf_source_language): Ditto.
10111
10112 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
10113
10114 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
10115 operands.
10116
10117 * i386.c (ix86_expand_branch): Mode of comparison in
10118 IF_THEN_ELSE is VOIDmode.
10119
10120 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
10121
10122 * gengenrtl.c, rtl.c: Avoid #elif.
10123
10124 2000-08-03 Michael Poole <poole@troilus.org>
10125
10126 * tm.texi (Register Classes): Clarify order of sub-initializers
10127 in REG_CLASS_CONTENTS.
10128
10129 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10130
10131 From SAITOH Masanobu:
10132 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
10133
10134 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
10135
10136 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
10137 is not supported by tradcpp and isn't actually needed for cygwin.
10138
10139 2000-08-03 Kazu Hirata <kazu@hxi.com>
10140
10141 * h8300.c: Fix a comment typo.
10142 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
10143
10144 * jump.c: Fix formatting.
10145
10146 * toplev.c: Fix formatting.
10147
10148 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
10149
10150 * flow.c (find_auto_inc): Verify that we've got a REG before
10151 peeking at its regno. Fail, don't abort if we can't find
10152 the increment of the desired register.
10153
10154 * pa.md (shadd height reduction patterns/splitters): Remove.
10155
10156 2000-08-02 Jim Wilson <wilson@cygnus.com>
10157
10158 * config/ia64/ia64-protos.h (flag_ssa): Declare.
10159 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
10160
10161 2000-08-02 Mark Mitchell <mark@codesourcery.com>
10162
10163 * dce.c: Remove all uses of assert.
10164 * dwarf2out.c: Likewise.
10165 * dwarfout.c: Likewise.
10166 * ssa.c: Likewise.
10167
10168 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
10169
10170 * gcc.h (lang_specific_driver): Constify second argument.
10171 * gcc.c (translate_options, process_command, main): Likewise.
10172 Constify variables to match. Cast second argument to
10173 pexecute.
10174
10175 * cppspec.c, gccspec.c: Adjust type of second argument to
10176 lang_specific_driver, and update code as necessary.
10177
10178 2000-08-02 Jakub Jelinek <jakub@redhat.com>
10179
10180 * loop.c (scan_loop): Ensure update_end label does not
10181 go away until reg_scan_update is run.
10182
10183 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
10184
10185 * c-common.h: Prototype min_precision and c_build_qualified_type here...
10186 * c-tree.h: ... not here.
10187 * errors.h: Prototype fancy_abort.
10188
10189 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
10190 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
10191 * regrename.c (regrename_optimize): Make control flow explicit.
10192 (replace_reg_in_block): Initialize reg_use to 0.
10193
10194 * i386.c (legitimate_address_p): Rename error label to
10195 report_error to avoid namespace clash.
10196
10197 2000-08-02 Kazu Hirata <kazu@hxi.com>
10198
10199 * fold-const.c: Fix formatting.
10200
10201 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
10202
10203 * i386.c (legitimate_address_p): Accept other bases than
10204 pic_offset_table_rtx for GOTOFF constructs.
10205
10206 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
10207
10208 * i386.md (shift to lea splitter): Use const_int_operand.
10209
10210 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
10211
10212 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
10213 cppspec.c: Do not use 'legal' or 'illegal' in error messages
10214 and comments.
10215
10216 * cppmain.c (cb_define, cb_undef): Don't generate any output
10217 if not done_initializing.
10218 * cpplex.c (maybe_paste_with_next): When the token after a ##
10219 is an omitted rest argument, only delete the token before it
10220 if that token is a comma. Do not warn about bogus token
10221 pastes for , ## rest_arg.
10222
10223 * cpp.texi: Update.
10224 * cpp.1: Regenerate.
10225
10226 2000-08-02 Fred Fish <fnf@be.com>
10227
10228 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
10229 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
10230 and later.
10231
10232 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
10233 Be directories to search path.
10234
10235 Remove support for __declspec(dllimport) and __declspec(dllexport).
10236 This is leftover cruft from the earlier BeOS gcc port when BeOS
10237 used Microsoft's PE object file format.
10238 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
10239 * config/i386/t-beos (winnt.o): Remove Makefile frag.
10240 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
10241 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
10242 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
10243 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
10244 (REDO_SECTION_INFO_P): Remove.
10245 (ASM_EXPORT_DECL): Remove.
10246 (ASM_DECLARE_FUNCTION_NAME): Remove.
10247 (ASM_DECLARE_OBJECT_NAME): Remove.
10248 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
10249 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
10250 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
10251 (STRIP_NAME_ENCODING): Remove.
10252
10253 Remove support for obsolete version of BeOS that is no longer
10254 supported by Be.
10255 * configure.in (i*86-*-beospe*): Remove.
10256 * config/i386/beos-pe.h: Remove.
10257
10258 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
10259 Mark Mitchell <mark@codesourcery.com>
10260
10261 * Makefile.in (OBJS): Added dce.o.
10262 (ssa.o): Updated target to include ssa.h.
10263 (flow.o): Likewise.
10264 (toplev.o): Likewise.
10265 (dce.o): Created target.
10266 * basic-block.h: Added comments.
10267 (INVALID_BLOCK): Added definition.
10268 (connect_infinite_loops_to_exit): Added declaration.
10269 Moved SSA declarations to ssa.h.
10270 * flow.c: Added inclusion of ssa.h.
10271 (struct depth_first_search_dsS, depth_first_search_ds):
10272 Added definitions.
10273 (compute_immediate_postdominators): Added definition.
10274 (connect_infinite_loops_to_exit): Likewise.
10275 (flow_dfs_compute_reverse_init): Likewise.
10276 (flow_dfs_compute_reverse_add_bb): Likewise.
10277 (flow_dfs_compute_reverse_execute): Likewise.
10278 (flow_dfs_compute_reverse_finish): Likewise.
10279 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
10280 (LABEL_P): Added definition.
10281 (JUMP_P): Likewise.
10282 (NOTE_P): Likewise.
10283 (BARRIER_P): Likewise.
10284 (JUMP_TABLE_DATA_P): Likewise.
10285 (INSN_DEAD_CODE_P): Likewise.
10286 * ssa.c: Replaced inclusions with ssa.h inclusion.
10287 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
10288 (rename_registers): Removed unnecessary variables.
10289 * ssa.h: Created by moving declarations from ssa.c and
10290 basic-block.h.
10291 * timevar.def: Defined TV_DEAD_CODE_ELIM.
10292 * toplev.c: Added ssa.h inclusion.
10293 (dump_file_index): Added DFI_dce.
10294 (dump_file): Added "dce" entry.
10295 Defined flag_ssa.
10296 (f_options): Added dce entry.
10297 * invoke.texi: Document -fdce. Emphasize experimental status of
10298 -fssa.
10299 * dce.c: New file.
10300
10301 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
10302
10303 * cpperror.c (v_message): Split into _cpp_begin_message and
10304 v_message macro. All callers updated.
10305 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
10306 checks here.
10307
10308 * cppfiles.c (cpp_syshdr_flags): New function.
10309 (read_include_file): Don't call cpp_output_tokens. Call
10310 enter_file hook.
10311 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
10312 (cpp_reader_init): Don't initialize token_buffer. Call
10313 _cpp_init_internal_pragmas.
10314 (cpp_cleanup): Don't clear token_buffer.
10315 (cpp_start_read): Don't worry about output from -D processing.
10316 Don't call cpp_output_tokens.
10317 (cpp_finish): Don't dump macros here. Don't call
10318 cpp_output_tokens.
10319 * cppmacro.c (_cpp_dump_definition): Rename
10320 cpp_dump_definition. Write directly to a FILE *.
10321 (dump_funlike_macro): Delete.
10322 (dump_macro_args): New.
10323
10324 * cpplex.c (TOKEN_LEN): Convert to inline function.
10325 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
10326 cpp_scan_line, _cpp_dump_list): Delete.
10327 (cpp_printf, cpp_output_list): New.
10328 (output_line_command): Don't worry about entering or leaving files.
10329 (cpp_scan_buffer): Just output each token as we hit it.
10330 (process_directive): Don't call cpp_output_tokens.
10331 (_cpp_glue_header_name): Don't use token_buffer.
10332 (output_token, dump_param_spelling): Write directly to a FILE *.
10333
10334 * cpplib.c (pass_thru_directive, dump_macro_name,
10335 pragma_dispatch, do_pragma_gcc): Delete.
10336 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
10337 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
10338 functions.
10339 (do_error, do_warning, pragma_dependency): Call
10340 _cpp_begin_message, then cpp_output_list.
10341 (cpp_register_pragma, cpp_register_pragma_space,
10342 _cpp_init_internal_pragmas): New.
10343 (do_pragma): Walk the pragmas table here.
10344 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
10345 do_pragma_dependency): Return void.
10346 (do_pragma_implementation): Moved to cppmain.c.
10347
10348 * cpplib.h: Update prototypes.
10349 (struct cpp_reader): Remove printer, token_buffer,
10350 token_buffer_size, and limit. Add struct cb, and pragmas.
10351 (struct cpp_printer): Remove last_id and written.
10352 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
10353 CPP_ADJUST_WRITTEN): Delete.
10354 * cpphash.h: Update prototypes.
10355 (ufputs): New wrapper.
10356
10357 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
10358 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
10359 (main): Set up callbacks. Register #pragma implementation.
10360 Dump macros from here.
10361
10362 2000-08-01 Geoff Keating <geoffk@cygnus.com>
10363
10364 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
10365 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
10366 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
10367 insns if they have a REG_MAYBE_DEAD note attached.
10368 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
10369 (rs6000_emit_load_toc_table): TOC loads may go dead.
10370
10371 2000-08-01 Jim Wilson <wilson@cygnus.com>
10372
10373 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
10374 type exists before using it. Use number of words as alignment
10375 otherwise.
10376 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
10377 ia64_va_arg): Propagate ia64_function_args changes here.
10378
10379 2000-08-01 Richard Henderson <rth@cygnus.com>
10380
10381 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
10382 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10383
10384 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
10385
10386 From Joern Rennecke:
10387 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
10388 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
10389 unless TARGET_SH3E is set.
10390 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
10391
10392 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
10393 (ashlsi3_std): New pattern.
10394 (ashlsi3 expander): Use it for TARGET_SH3.
10395 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
10396
10397 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
10398
10399 * loop.c (canonicalize_condition): Use destination, not source to
10400 determine SET's mode.
10401
10402 2000-07-31 Mark Mitchell <mark@codesourcery.com>
10403
10404 * flow.c (clear_log_links): Fix typo.
10405
10406 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
10407
10408 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
10409 on targets which need more than one insn for a compare/cbranch
10410 operation.
10411
10412 2000-07-31 Jim Wilson <wilson@cygnus.com>
10413
10414 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
10415 when computing offset.
10416
10417 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
10418
10419 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
10420
10421 2000-07-31 Geoff Keating <geoffk@cygnus.com>
10422
10423 * flow.c (clear_log_links): Nuke global_live_at_start and
10424 global_live_at_end data, since if the log_links stuff is invalid
10425 so is global_live_at_*.
10426
10427 2000-07-31 Richard Henderson <rth@cygnus.com>
10428
10429 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
10430
10431 2000-07-31 Jakub Jelinek <jakub@redhat.com>
10432
10433 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
10434 (_cpp_get_token): Don't macro expand a just pasted token if it
10435 was pasted at no_expand_level.
10436
10437 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
10438
10439 * cppmacro.c (find_param, count_params, save_expansion):
10440 Permit 'defined' as a macro parameter name.
10441
10442 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
10443
10444 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
10445 xcpp to cpp throughout.
10446 (native): Remove unnecessary dependency on cpp.
10447
10448 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
10449 tradcpp to tradcpp0.
10450 (.i spec): Add missing output-file spec to cc1 command line.
10451 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
10452
10453 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
10454
10455 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
10456 (implicit_decl_warning): New function.
10457 (implicitly_declare): Use it.
10458 * c-typeck.c (build_external_ref): Use implicit_decl_warning
10459 to complain about implicit decls of builtins.
10460
10461 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
10462 based on pedantic && flag_isoc99, if not already set.
10463 * c-tree.h: Declare mesg_implicit_function_declaration.
10464 Prototype implicit_decl_warning.
10465
10466 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
10467
10468 * Makefile.in (ssa.o): Updated header files in dependences.
10469 * basic-block.h: Added compute_immediate_postdominators declaration.
10470 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
10471 definition.
10472 * flow.c (compute_immediate_dominators): Updated comment.
10473 (compute_immediate_postdominators): Added definition.
10474 * rtl.h (HARD_REGISTER_P): Added definition.
10475 * ssa.c: Include additional header files.
10476 (assert): Added definition.
10477 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
10478 include select hard registers.
10479 (ssa_rename_to_insert): Likewise.
10480 (ssa_rename_from_initialize): Likewise.
10481 (ssa_rename_from_lookup): Likewise.
10482 (original_register): Likewise.
10483 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
10484 include select hard reigsters.
10485 (ssa_rename_from_traverse): Likewise.
10486 (ssa_rename_from_free): Likewise.
10487 (ssa_rename_from_print): Likewise.
10488 (ssa_rename_from_print_1): Likewise.
10489 (ssa_rename_from_hash_function): Likewise.
10490 (ssa_rename_from_equal): Likewise.
10491 (ssa_rename_from_delete): Likewise.
10492 (simplify_to_immediate_dominators): Removed in favor of
10493 flow.c:compute_immediate_dominators.
10494 (find_evaluations_1): Modified to work with hard registers.
10495 (insert_phi_node): Likewise.
10496 (insert_phi_nodes): Likewise.
10497 (struct rename_set_data): Updated prev_reg comment.
10498 (create_delayed_rename): Modified to work with hard registers.
10499 (RENAME_NO_RTX): Updated comment.
10500 (apply_delayed_renames): Modified to work with hard registers.
10501 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
10502 (rename_block): Updated to use revised ssa_rename_to interface.
10503 (rename_registers): Updated to use revised ssa_rename_to and
10504 ssa_rename_from interface.
10505 (convert_to_ssa): Revised to use compute_immediate_dominators and
10506 deal with hard registers.
10507 (make_regs_equivalent_over_bad_edges): Modified to work with hard
10508 registers. Added check for illegal unification of hard register.
10509 (make_equivalent_phi_alternatives_equivalent): Modified to work
10510 with hard registers.
10511 (compute_conservative_reg_partition): Likewise.
10512 (coalesce_if_unconflicting): Modified to work with hard registers
10513 and check for conflicting hard registers.
10514 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
10515 registers.
10516 (rename_equivalent_regs_in_insn): Modified to work with hard
10517 registers.
10518 (record_canonical_element_1): Added definition.
10519 (check_hard_regs_in_partition): Added definition.
10520 (convert_from_ssa): Added data structure deallocation and check
10521 for illegal hard register unification.
10522 (conflict_hard_regs_p): Added definition.
10523 * toplev.c (rest_of_compilation): Added comment.
10524
10525 2000-07-31 Anthony Green <green@redhat.com>
10526
10527 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
10528
10529 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
10530
10531 * builtins.c (expand_builtin_apply): Don't defer pop during
10532 argument setup.
10533
10534 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10535
10536 * calls.c (combine_pending_stack_adjustment_and_call): Only use
10537 preferred_unit_stack_boundary when it is > 1.
10538
10539 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
10540
10541 * c-common.c (init_function_format_info): Add C99 format functions
10542 in C99 mode.
10543
10544 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
10545 void' or 'register void' as being the special case of 'void' alone
10546 in a parameter list.
10547
10548 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
10549 discarding qualifiers into a plain warning.
10550
10551 2000-07-31 Kazu Hirata <kazu@hxi.com>
10552
10553 * combine.c: Fix formatting.
10554
10555 * h8300.md: Fix formatting.
10556
10557 * local-alloc.c: Fix formatting.
10558
10559 * h8300.c (get_shift_alg): Remove the variable alg.
10560 (emit_a_shift): Rearrange code to improve readability.
10561
10562 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
10563
10564 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
10565 HImode on all architectures and a combination of HImode and SImode
10566 on H8/300H and H8/S.
10567
10568 * h8300.c (split_adds_subs): Rearrange code for conciseness.
10569
10570 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
10571
10572 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
10573 in my last checkin.
10574
10575 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
10576
10577 * recog.c (extract_insn): Set operand_mode according to
10578 operand if match_operand is VOIDmode.
10579
10580 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
10581
10582 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
10583
10584 2000-07-31 Geoff Keating <geoffk@cygnus.com>
10585
10586 * c-parse.in (extdefs): Call ggc_collect between external
10587 definitions.
10588
10589 2000-07-30 Michael Hayes <mhayes@cygnus.com>
10590 Richard Henderson <rth@cygnus.com>
10591
10592 * Makefile.in (OBJS): Add doloop.o.
10593 * doloop.c: New file.
10594
10595 * final.c (insn_current_reference_address): Return 0 before final.
10596 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
10597 * jump.c (any_uncondjump_p): Likewise.
10598 * loop.c (indirect_jump_in_function): Make static.
10599 (strength_reduce): Call doloop_optimize.
10600 (insert_bct, instrument_loop_bct): Remove.
10601 * loop.h (doloop_optimize): Prototype.
10602 * recog.c (split_all_insns): Split all INSN_P.
10603 * toplev.c (flag_branch_on_count_reg): Default on.
10604
10605 * config/c4x/c4x.c (c4x_optimization_options): Don't set
10606 flag_branch_on_count_reg.
10607 * config/i386/i386.c (override_options): Likewise.
10608 * config/rs6000/rs6000.c (optimization_options): Likewise.
10609
10610 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
10611 (doloop_end): New.
10612 (dbra_ge): Remove, as well as all it's splitters.
10613
10614 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
10615 (doloop_end): New.
10616
10617 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
10618 (ia64_register_move_cost): Declare.
10619 * config/ia64/ia64.c (ar_lc_reg_operand): New.
10620 (struct ia64_frame_info): Add ar_size.
10621 (ia64_compute_frame_size): Set it.
10622 (save_restore_insns): Save and restore ar.lc.
10623 (ia64_register_move_cost): New, moved from header file. Handle
10624 application registers.
10625 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
10626 (emit_insn_group_barriers): Special case doloop_end_internal.
10627 (ia64_epilogue_uses): Mark ar.lc live at end.
10628 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
10629 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
10630 (FIRST_PSEUDO_REGISTER): Make room.
10631 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
10632 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
10633 (REG_ALLOC_ORDER): Update.
10634 (HARD_REGNO_MODE_OK): Update.
10635 (REGISTER_NAMES): Update.
10636 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
10637 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
10638 (REGNO_REG_CLASS): Update.
10639 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
10640 (REGISTER_MOVE_COST): Move out of line.
10641 (PREDICATE_CODES): Update.
10642 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
10643 (addsi3_plus1_alt, adddi3_plus1_alt): New.
10644 (shladd_elim splitter): Allow constants in the predicate.
10645 (doloop_end, doloop_end_internal): New.
10646
10647 2000-07-30 Richard Henderson <rth@cygnus.com>
10648
10649 * genattrtab.c (struct insn_def): Add lineno member.
10650 (struct insn_ent): Likewise.
10651 (struct attr_desc): Likewise.
10652 (struct delay_desc): Likewise.
10653 (struct function_unit_op): Likewise.
10654 (struct function_unit): Likewise.
10655 (check_attr_value): Use message_with_line.
10656 (check_defs): Likewise.
10657 (expand_units): Likewise.
10658 (check_attr_test): Take a lineno argument.
10659 (gen_attr): Likewise.
10660 (gen_insn): Likewise.
10661 (gen_delay): Likewise.
10662 (gen_unit): Likewise.
10663 (main): Give it to them.
10664 (convert_set_attr_alternative): Take an insn_def argument
10665 instead of num_alt and insn_index.
10666 (convert_set_attr): Likewise.
10667 (write_test_expr): Protect INSN_ADDRESSES load
10668 with INSN_ADDRESSES_SET_P.
10669
10670 2000-07-30 Richard Henderson <rth@cygnus.com>
10671
10672 * flow.c (init_propagate_block_info): Use pc_set.
10673
10674 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
10675
10676 * i386.md (*lea_general_[123]) New insns and splits.
10677 (addsi3 to lea splitter): Handle other modes too.
10678 (shlsi3 to lea splitter): Likewise.
10679 (addhi_1_lea, shlhi_1_lea): New patterns.
10680 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
10681
10682 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
10683
10684 * recog.c (general_operand, nonimmediate_operand): Accept
10685 any mode for VOIDmode CONSTANT_P operands.
10686
10687 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
10688
10689 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
10690 instead of replace_rtx.
10691 * recog.c (validate_replace_rtx_subexp): New function.
10692 * recog.h (validate_replace_rtx_subexp): Declare.
10693
10694 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
10695
10696 * combine.c (simplify_set, make_extraction, make_compound_operation
10697 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
10698 as force_to_mode argument.
10699
10700 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
10701
10702 * combine.c (if_then_else_cond): Be sure that mode fits in
10703 HOST_WIDE_INT.
10704
10705 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
10706
10707 * combine.c (record_promoted_value): Allow bitsize of mode
10708 to be equivalent to HOST_BITS_PER_WISE_INT.
10709
10710 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
10711
10712 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
10713 Do not call gen_mode_alignment when mode is BLKmode.
10714
10715 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
10716
10717 * loop.c (express_from_1): Fix call of simplify_gen_binary.
10718
10719 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
10720
10721 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
10722 VOIDmode implies both operands to be VOIDmode.
10723 (simplify_ternary_operation): Compute properly the mode of comparison.
10724 * combine.c (combine_simplify_rtx): Likewise.
10725
10726 2000-07-25 Michael Hayes <mph@paradise.net.nz>
10727
10728 * basic-block.h (struct loops): New field rc_order.
10729 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
10730 (flow_loops_free): Free rc_order.
10731 (flow_depth_first_order_compute): New parameter rc_order.
10732 (flow_loops_find): Allocate rc_order and swap usage with
10733 dfs_order.
10734
10735 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10736 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10737
10738 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
10739 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
10740 (nodb_call, return_from_epilogue): Likewise.
10741 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
10742 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
10743 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
10744 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
10745 (c4x_valid_type_attribute_p): Likewise.
10746 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
10747 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
10748
10749 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10750
10751 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
10752 and loadhi_big_constant if applicable.
10753 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
10754 and add new splitter.s
10755
10756 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10757
10758 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
10759
10760 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10761
10762 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
10763
10764 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10765
10766 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
10767
10768 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10769
10770 * config/c4x/libgcc.S (divqf3): Improve accuracy.
10771
10772 2000-07-27 Mark Mitchell <mark@codesourcery.com>
10773
10774 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
10775 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
10776 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
10777 (get_prev_bb_note): Likewise.
10778 (remove_scope_notes): Likewise.
10779 * flow.c (commit_one_edge_insertion): Likewise.
10780 (merge_blocks_nomove): Likewise.
10781 (verify_flow_info): Likewise.
10782 * gcse.c (insert_insn_end_bb): Likewise.
10783 * reg-stack.c (emit_swap_insn): Likewise.
10784 * ssa.c (first_insn_after_basic_block_note): New function.
10785 (insert_phi_node): Use it.
10786 (rename_block): Likewise.
10787 (eliminate_phi): Likewise.
10788 (make_regs_equivalent_over_bad_edges): Likewise.
10789 (make_equivalent_phi_alternatives_equivalent): Likewise.
10790 (for_each_successor_phi): Likewise.
10791 (convert_from_ssa): Modify phi-node deletion algorithm.
10792
10793 2000-07-29 Andreas Jaeger <aj@suse.de>
10794
10795 * configure.in (mips*-*-linux*): Use mips*el to check for little
10796 endian MIPS, add tmake_file.
10797
10798 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
10799 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
10800 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
10801
10802 2000-07-28 Richard Henderson <rth@cygnus.com>
10803
10804 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
10805 Sign extend mode size before negating.
10806
10807 2000-07-28 Richard Henderson <rth@cygnus.com>
10808
10809 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
10810
10811 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
10812
10813 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
10814 (cse_insn): Likewise.
10815 (addr_affects_sp_p): Likewise.
10816 * expr.c (move_by_pieces): Likewise.
10817 (clear_by_pieces): Likewise.
10818 * gcse.c (oprs_unchanged_p): Likewise.
10819 * haifa-sched.c (sched_analyze_2): Likewise.
10820 * recog.c (offsettable_address_p): Likewise.
10821 * regclass.c (record_address_regs): Likewise.
10822 * reload.c (find_reusable_reload): Likewise.
10823 (push_reload): Likewise.
10824 (operands_match_p): Likewise.
10825 (decompose): Likewise.
10826 (find_reloads_address_1): Likewise.
10827 (find_inc_amount): Likewise.
10828 * reload1.c (elimination_effects): Likewise.
10829 * resource.c (mark_set_resources): Likewise.
10830 * flow.c (attempt_auto_inc): New function; mostly broken out
10831 of find_auto_inc.
10832 (find_auto_inc): Split into two functions and enhanced to
10833 generate POST_MODIFY.
10834 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
10835 * rtl.h (count_all_occurrences): Declare.
10836 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
10837 defined.
10838 * rtlanal.c (count_all_occurrences): New function.
10839 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
10840 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
10841
10842 * config/ia64/ia64-protos.h (destination_operand): Declare.
10843 * config/ia64/ia64.c (destination_operand): New function.
10844 (ia64_print_operand): Handle POST_MODIFY.
10845 (rtx_needs_barrier): Likewise.
10846 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
10847 (HAVE_POST_MODIFY_REG): Define to 1.
10848 (MAX_REGS_PER_ADDRESS): Change to 2.
10849 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
10850 (LEGITIMATE_ADDRESS_REG): New helper macro.
10851 (LEGITIMATE_ADDRESS_DISP): Likewise.
10852 (PREDICATE_CODES): Add entry for destination_operand.
10853 * config/ia64/ia64.md (all mov patterns): Use destination_operand
10854 predicate for operand 0.
10855
10856 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10857
10858 * dwarf2out.c: Indent #error directive.
10859
10860 * gbl-ctors.h: Fix typo in comment.
10861 (__do_global_ctors): Prototype.
10862
10863 * gcse.c (record_one_set, pre_delete): Remove unused variables.
10864
10865 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
10866 (print_operand): Initialize variable `t'.
10867
10868 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
10869
10870 * config/arm/arm.md ("call_value"): removed constraints.
10871 Constraints are ignored in expanders.
10872 (*call_value_reg): split =rf into various constraints.
10873 (*call_value_mem): same
10874 (*call_value_symbol): same
10875 (*sibcall_value_insn): same
10876
10877 2000-07-28 Philipp Thomas <pthomas@suse.de>
10878
10879 * install.texi (--enable-nls): Change the description of the NLS
10880 related configure options to match the current state.
10881 (--with-included-gettext): Likewise.
10882 (--enable-maintainer-mode): New description added.
10883 * extend.texi (-fstrict-prototype): Add missing '.'.
10884
10885 2000-07-27 Jim Wilson <wilson@cygnus.com>
10886
10887 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
10888 DECL_INITIAL (decl) == NULL_TREE.
10889
10890 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
10891
10892 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
10893 on insn-attr.h with it.
10894 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
10895 * insn-addr.h: New header.
10896 (insn_addresses_): Renamed from insn_addresses.
10897 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
10898 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
10899 INSN_ADDRESSES_NEW): New macros.
10900 * genattrtab.c (write_test_expr): Use new macros.
10901 * final.c (insn_addresses, init_insn_lengths): Likewise.
10902 (align_fuzz, shorten_branches): Likewise.
10903 (final): Likewise. Do not reject new insns if their addresses
10904 have been added to INSN_ADDRESSES.
10905 * config/arm/arm.c, config/avr/avr.c: Use new macros.
10906 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
10907 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
10908 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
10909 * config/sh/sh.c: Likewise.
10910 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
10911
10912 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
10913
10914 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
10915
10916 * gcc.c (struct prefix_list): Add member priority.
10917 (enum path_prefix_priority): Declare.
10918 (add_prefix): Replace ``first'' with ``priority''. Append new
10919 entry but keep list in priority order.
10920 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
10921 PREFIX_PRIORITY_LAST to add_prefix.
10922 (process_command): Move include kludge - foo/stageN - to before
10923 foo/include.
10924
10925 2000-07-27 Jason Merrill <jason@redhat.com>
10926
10927 * dwarf2out.c (gen_typedef_die): Abort if we get identical
10928 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
10929
10930 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
10931
10932 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
10933 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
10934
10935 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
10936
10937 * c-decl.c (finish_function): Don't treat 'main' specially unless
10938 flag_hosted. In C99 mode, return 0 from 'main' unless
10939 DEFAULT_MAIN_RETURN is otherwise defined.
10940
10941 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
10942 parameters defaulting to int in an old-style function definition.
10943
10944 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10945
10946 * c-parse.in (string): For -Wtraditional, warn about string
10947 concatenation only once per line.
10948
10949 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
10950
10951 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
10952 for HI-UX/WE2 systems.
10953
10954 2000-07-24 Bruce Korb <bkorb@gnu.org>
10955
10956 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
10957 defining the __xxx_TYPE__ macros.
10958 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
10959 * fixincl/fixlib.h: don't need to include "tm.h" anymore
10960 * fixincl/inclhack.def(type_map): now obsolete
10961
10962 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
10963
10964 * cpp.texi: Append a trailing full-stop to xrefs where needed.
10965
10966 2000-07-26 Dave Pitts <dpitts@cozx.com>
10967
10968 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
10969 routine constants.
10970 (mvs_hash_alias): New function.
10971 (mvs_add_alias): Change argument spacing.
10972 (mvs_need_alias): Change aliasing criteria. Added documentation.
10973 (mvs_get_alias): Change to use hashed name. The hashed name prevents
10974 CSECT name collisions.
10975 (mvs_check_alias): Likewise.
10976 (handle_pragma): Change documentation.
10977 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
10978 mode from SImode to DImode.
10979 (iorhi3): Changed LTORG size for insn.
10980
10981 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
10982
10983 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
10984 mem if the address is a mode_dependent_address_p.
10985
10986 2000-07-26 Kazu Hirata <kazu@hxi.com>
10987
10988 * h8300.c (print_operand): Print ":8" when the 'R' operand is
10989 suitable for 8-bit absolute.
10990 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
10991 (OK_FOR_U): Add a case for the 8-bit constant address on the
10992 H8/300H.
10993
10994 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
10995
10996 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
10997 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
10998 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
10999 lack of implemented alignment.
11000
11001 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
11002
11003 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
11004 cross-compiling between 64-bit and 32-bit machines.
11005
11006 2000-07-27 Richard Henderson <rth@cygnus.com>
11007
11008 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
11009 (movhicc_astep, movhi_internal_astep): New.
11010 (movsicc_astep, movsi_internal_astep): New.
11011 (movdicc_astep, movdi_internal_astep): New.
11012 (movsfcc_astep, movsf_internal_astep): New.
11013 (movdfcc_astep, movdf_internal_astep): New.
11014 (movxfcc_astep, movxf_internal_astep): New.
11015 (cmovdi_internal_astep, cmovsi_internal_astep): New.
11016 Unify the cmov[ds]i splitters.
11017
11018 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
11019
11020 * real.c (asctoeg): Rename `error' label to unexpected_char_error
11021
11022 2000-07-26 Nick Clifton <nickc@cygnus.com>
11023
11024 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
11025 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
11026
11027 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
11028 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
11029
11030 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
11031
11032 * c-decl.c (finish_enum): Convert enumerations that fit in an
11033 `int' to `int'.
11034 (build_enumerator): In pedantic mode, cast to `int' those that
11035 don't.
11036
11037 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
11038
11039 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
11040
11041 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11042
11043 * sh.md (cmpgtdi_t): Must be split.
11044 (cmpgtdi_t+1): New splitter.
11045
11046 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
11047
11048 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
11049 warnings for indented directives even if we are skipping.
11050
11051 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
11052
11053 * invoke.texi (strict-prototypes): Remove.
11054 * extend.texi (Deprecated Features): Add strict-prototypes.
11055 (Backwards Compatibility): New node.
11056
11057 2000-07-25 Jakub Jelinek <jakub@redhat.com>
11058
11059 * config/i386/i386.md (andsi_1+1): Allow HImode.
11060 (andsi_1+2): Require q_regs_operand.
11061
11062 2000-07-25 Jakub Jelinek <jakub@redhat.com>
11063
11064 * config/i386/i386.md (call_pop): Check operands[0],
11065 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
11066 (call): Likewise.
11067 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
11068 (call_value): Likewise.
11069
11070 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
11071
11072 * toplev.c (pipe_closed): Delete.
11073 (crash_signal): New. Generate ICE for a fatal signal.
11074 (float_signal): Call crash_signal outside a float-handler
11075 block, not abort.
11076 (main): Install crash_signal as handler for core-dumping signals.
11077
11078 2000-07-25 David Edelsohn <edelsohn@gnu.org>
11079
11080 * rs6000.c (print_operand, case 'T'): New case.
11081
11082 * rs6000.md (call_indirect_aix32): Convert to expander of
11083 scheduled instructions.
11084 (call_indirect_aix64): Likewise.
11085 (call_value_indirect_aix{32,64}): Likewise.
11086 (call, call_value): Invoke expanders for AIX. Fall through to
11087 matchers for SysV.
11088 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
11089 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
11090 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
11091 only "g" constraint.
11092 (call_nonlocal_aix64): Likewise.
11093 (call_value_nonlocal_aix{32,64}): Likewise.
11094 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
11095 operands.
11096 (call_value_nonlocal_sysv): New pattern.
11097 (indirect_jump{si,di}): Use new 'T' modifier.
11098 (tablejump{si,di} matchers): Likewise.
11099 (return_internal_{si,di}): Likewise.
11100 (return_eh_{si,di}): Likewise.
11101
11102 2000-07-24 Richard Henderson <rth@cygnus.com>
11103
11104 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
11105 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11106 * config/ia64/ia64.md (movdi_internal): Use it.
11107
11108 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
11109
11110 * cppexp.c: Warn about unary + if -Wtraditional.
11111 * cpplex.c (lex_line): Always set BOL on the first token of a line.
11112
11113 2000-07-24 Michael Meissner <meissner@redhat.com>
11114
11115 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
11116 unsupported macro.
11117
11118 2000-07-24 Nick Clifton <nickc@cygnus.com>
11119
11120 * config/arm/arm.c (emit_multi_reg_push): Generate a
11121 REG_FRAME_RELEATED_NOTE that is compatable with the code in
11122 dwarf2out_debug_frame_expr.
11123
11124 2000-07-24 Jason Merrill <jason@redhat.com>
11125
11126 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
11127 UNALIGNED_INT_ASM_OP.
11128 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
11129 a location expression.
11130 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
11131 assume indirect access if we're saving the CFA address exactly.
11132
11133 * Makefile.in (bootstrap): Move -BstageN/ to the end.
11134
11135 2000-07-24 Jakub Jelinek <jakub@redhat.com>
11136
11137 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
11138 as well.
11139
11140 2000-07-24 Michael Meissner <meissner@redhat.com>
11141
11142 * invoke.texi (D30V Options): Add d30v options.
11143
11144 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
11145
11146 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
11147 needed by our gcse pass anymore.
11148 (free_pre_mem): Corresponding changes.
11149 (compute_pre_data): Do not call compute_transpout anymore.
11150
11151 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
11152 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
11153 changes.
11154
11155 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
11156 (compute_pre_data): Do it here instead.
11157
11158 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
11159 'temp_bitmap'.
11160 (pre_delete): Corresponding changes.
11161
11162 2000-07-23 Mark Mitchell <mark@codesourcery.com>
11163
11164 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
11165 to figure out whether or not a variable has already been emitted.
11166
11167 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
11168
11169 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
11170 instead of gen_call.
11171
11172 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
11173
11174 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
11175
11176 2000-07-23 Kazu Hirata <kazu@hxi.com>
11177
11178 * h8300.c: Fix formatting.
11179
11180 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
11181
11182 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
11183 for `long' switch expression into a plain warning.
11184
11185 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
11186 (yylex): Don't pedwarn for "inline" in C99 mode.
11187
11188 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
11189 with %p.
11190 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
11191 ggc_alloc): Likewise.
11192 * bb-reorder.c (dump_scope_forest_1): Likewise.
11193
11194 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
11195
11196 * reload.c (find_reloads_toplev): Add new parameter
11197 "address_reloaded".
11198 (find_reloads): Add new parameter to find_reloads_toplev calls.
11199
11200 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
11201
11202 * collect2.c (main): Typo fixed.
11203 * diagnostic.c: Typo fixed.
11204 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
11205 * eh-common.h: Typo fixed.
11206 * emit-rtl.c (start_sequence): Typo fixed.
11207 * flow.c (find_label_refs): Typo fixed.
11208 (calculate_global_regs_live): Typo fixed.
11209 (mark_regno_cond_dead): Typo fixed.
11210 (create_edge_list): Typos fixed.
11211 (verify_edge_list): Typo fixed.
11212 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
11213 * loop.c (strength_reduce): Typo in function name fixed.
11214 * rtl.h: Added comments. Typo in function name fixed.
11215 * rtlanal.c: Typo in function name fixed.
11216 (insn_dependant_p): Rename to ...
11217 (insn_dependent_p): ... this.
11218 (computed_jumo_p): Typo fixed.
11219
11220 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11221
11222 * system.h (__FUNCTION__): Wrap definition in #ifndef.
11223
11224 2000-07-21 David Edelsohn <edelsohn@gnu.org>
11225
11226 * rs6000.h (SIZE_TYPE): Define.
11227
11228 2000-07-21 Mark Mitchell <mark@codesourcery.com>
11229
11230 * ssa.c (rename_insn_1): Don't rename registers that are
11231 CLOBBERed.
11232
11233 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
11234
11235 * diagnostic.c (trim_filename, fancy_abort): Moved here from
11236 rtl.c.
11237 (fatal_function, set_fatal_function): Removed.
11238 (fatal): Don't prepare for or call the fatal_function.
11239 (diagnostic_lock, error_recursion): New.
11240 (diagnostic_for_decl, report_diagnostic): Guard against
11241 re-entering the error reporting routines.
11242 (fancy_abort): Assume function is not NULL.
11243
11244 * errors.c (fancy_abort): New. Assume function is not NULL.
11245 * tradcpp.c (fancy_abort): Assume function is not NULL.
11246
11247 * system.h: Provide default definition of __FUNCTION__.
11248 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
11249 Always use __FUNCTION__ in definition of abort.
11250 * tree.h: Likewise.
11251 * varray.h: Likewise.
11252 * toplev.h: Likewise. Don't prototype set_fatal_function.
11253
11254 2000-07-20 Geoff Keating <geoffk@cygnus.com>
11255
11256 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
11257 in 64-bit mode.
11258 * glimits.h: Don't do #if defined for ARCH_PPC.
11259
11260 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
11261 constants of size no larger than a pointer should go in the TOC.
11262 Add 'MODE' parameter.
11263 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
11264 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
11265 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
11266 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
11267 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
11268 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
11269 (rs6000_legitimize_address): Likewise.
11270 (rs6000_emit_move): Likewise.
11271 (rs6000_select_rtx_section): Likewise.
11272 (output_toc): Deal properly with outputting small constants like
11273 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
11274 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
11275 MODE parameter. Put small constants in the TOC.
11276
11277 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
11278 easy in SImode.
11279 (rs6000_emit_move): When reload calls us with an illegitimate
11280 address, exit early. Move the change_address calls to one place
11281 at the end of the routine. Merge the SImode and DImode expanders.
11282 When called by reload to put an integer into a FP register, force
11283 it to memory.
11284
11285 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
11286 field.
11287 (rs6000_hash_constant): Hash mode too.
11288 (toc_hash_function): Allow for key_mode.
11289 (toc_hash_eq): Structures are different if key_mode differs.
11290 (output_toc): Add 'mode' parameter. Save key_mode.
11291 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
11292 Pass 'mode' parameter.
11293 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
11294
11295 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
11296 for vtable references.
11297
11298 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
11299 choice, don't put integer values in FP regs.
11300
11301 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
11302
11303 * flow.c (verify_flow_info): Revamp code to verify that the
11304 head and end of each basic block are in the insn chain.
11305
11306 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
11307
11308 * gcse.c (record_one_set): Prepend instead of append onto
11309 reg_set_table, making it O(n) instead O(n^2).
11310 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
11311 Use a queue instead of a stack as worklist.
11312
11313 2000-07-20 Kazu Hirata <kazu@hxi.com>
11314
11315 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
11316 * h8300.h (OK_FOR_T): New.
11317 (EXTRA_CONSTRAINT): Support OK_FOR_T.
11318 * h8300.md: Use inc/dec.[wl] for increment/decrement
11319 by 1 and 2 in HI and SI modes.
11320
11321 2000-07-20 Jim Wilson <wilson@cygnus.com>
11322
11323 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
11324 larger than 14 bits.
11325
11326 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
11327
11328 * cppmacro.c (CAN_PASTE_AFTER): New macro.
11329 (count_params): Don't set GNU_REST_ARGS on anything.
11330 (save_expansion): Set PASTE_LEFT only on tokens for which
11331 CAN_PASTE_AFTER is true, or which are named operators.
11332
11333 * cpplex.c (parse_args): Distinguish between a rest argument
11334 given one empty argument, and a rest argument given zero arguments.
11335 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
11336 deletion of previous token based on that.
11337 (get_raw_token): Flatten some control structure.
11338
11339 * cpplib.h (CPP_LAST_EQ): Correct.
11340 (VOID_REST): New token flag.
11341 (GNU_REST_ARGS): Delete.
11342
11343 * tradcpp.c (main): Don't munge -D options.
11344 (make_definition): Bring -D handling in line with cpplib.
11345 (do_define): Strip all leading whitespace from macro definitions.
11346
11347 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
11348
11349 * Makefile.in (tradcpp): Depend on intl.o and version.o.
11350
11351 2000-07-20 Bruce Korb <bkorb@gnu.org>
11352
11353 * fixincl/check.tpl: strip the platform specific types before testing
11354 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
11355 * fixincl/fixincl.tpl: use platform specific types
11356 * fixincl/fixlib.h: include the platform specific types
11357 * fixincl/inclhack.def(gnu_types): don't supply the types
11358 * fixincl/fixincl.x: regen
11359
11360 2000-07-19 Jim Wilson <wilson@cygnus.com>
11361
11362 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
11363 GR_REGS.
11364
11365 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
11366
11367 * tradcpp.c (rescan): Do not recognize directives when the #
11368 is indented.
11369
11370 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
11371
11372 Implement C++ named operators.
11373
11374 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
11375 of operators allowed in #if and having an _EQ variant. Add
11376 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
11377 (cpp_token flags): Add NAMED_OP.
11378 (enum node_type): Add T_OPERATOR.
11379 (struct cpp_hashnode): Add code slot to value union.
11380 * cpphash.h (spec_nodes): Remove n_defined.
11381
11382 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
11383 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
11384 (is_macro_disabled): Tweak error messages.
11385
11386 * cpplib.c (get_define_node): Disallow all named operators as
11387 macro names. Tweak error messages.
11388 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
11389
11390 * cppinit.c (builtin_array): Add entries for the named operators.
11391 * cppexp.c (lex): Check for CPP_DEFINED token.
11392 (priority table): Add entries for CPP_MIN and CPP_MAX.
11393 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
11394
11395 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
11396
11397 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
11398 larger than the array of cuids.
11399 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
11400 cuids.
11401
11402 2000-07-19 Bruce Korb <bkorb@gnu.org>
11403
11404 * fixinc/fixincl.c: Convert to using a table of environment variables
11405 and activate the auto-edit marker on the fixed output files.
11406 * fixinc/fixlib.h: Define the environment table
11407 * fixinc/fixincl.sh: export the ${INPUT} dir
11408 * fixinc/check.tpl: likewise
11409
11410 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
11411
11412 * gcc.c (.h spec): Fix typo.
11413
11414 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
11415
11416 * Makefile.in: Fix tradcif.c path.
11417
11418 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
11419
11420 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
11421 macros, not five.
11422
11423 * cpphash.h (TOKEN_NAME): New macro.
11424 (_cpp_spell_operator): Deleted.
11425 (token_spellings): Now _cpp_token_spellings.
11426
11427 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
11428 * cpplex.c: Use OP and TK macros when expanding the
11429 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
11430 store the stringification of the enumeration name (CPP_CHAR,
11431 etc.) in the name slot of token_spellings.
11432 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
11433 token_spellings directly.
11434 * cpplib.c: Use TOKEN_SPELL.
11435
11436 * cpplex.c (_cpp_push_token): If the token being pushed back
11437 is the previous token in this context, just subtract one from
11438 context->posn.
11439 * cppmacro.c (save_expansion): Clear aux field when storing a
11440 placemarker.
11441
11442 2000-07-18 Jakub Jelinek <jakub@redhat.com>
11443
11444 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
11445 buffer, provided it is not NULL.
11446
11447 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
11448
11449 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
11450 case of invalid volatile re-declaration.
11451
11452 2000-07-18 Jakub Jelinek <jakub@redhat.com>
11453
11454 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
11455 (expand_call): Adjust caller.
11456
11457 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
11458
11459 * diagnostic.h (report_diagnostic): Change prototype.
11460
11461 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
11462 diagnostic_for_decl): Change prototype.
11463 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
11464 error, warning, error_with_file_and_line,
11465 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
11466 Adjust call to report_diagnostic, diagnostic_for_decl.
11467 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
11468 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
11469
11470 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
11471 varaible argument list.
11472
11473 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
11474
11475 * cpphash.c: Don't include hashtab.h. Most macro-handling code
11476 moved to cppmacro.c.
11477 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
11478 dump_hash_helper): Delete.
11479 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
11480 cpp_forall_identifiers): New. Implement specialized version of
11481 Vlad's expandable hash table.
11482 (cpp_lookup): Use new functions.
11483 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
11484 implementation.
11485 * cppmacro.c: New file.
11486 * cppinit.c (dump_macros_helper): New.
11487 (cpp_finish): Iterate over the identifier table directly.
11488 * cpplex.c (parse_name): Calculate the hash of the identifier
11489 while we scan it. Use _cpp_lookup_with_hash when we can.
11490
11491 * cpphash.h: Update prototypes.
11492 (xcnewvec, HASHSTEP): New helper macros.
11493 * cpplib.h: Update prototypes.
11494 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
11495 (cppmacro.o): New rule.
11496 (cpphash.o): Update deps.
11497
11498 * cppmain.c: Do not set pfile->printer if no_output is on.
11499
11500 2000-07-15 Neil Booth <neilb@earthling.net>
11501
11502 * cpplib.c: Change all directive-handler functions to return
11503 void, not int.
11504 * cpphash.h: Update typedefs.
11505
11506 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
11507
11508 * configure: Regenerate.
11509
11510 * extend.texi (Extended Asm): Mention that a memory clobber
11511 does not count as a side-effect.
11512
11513 * unroll.c (copy_loop_body): Fix one instance of using host
11514 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
11515 cross-compile.
11516
11517 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
11518
11519 2000-07-17 Richard Henderson <rth@cygnus.com>
11520
11521 * config/ia64/ia64.md (movdi): Split out load address code.
11522 New post-reload splitter for symbolic operands.
11523 (movdi_internal): Abort if we didn't split symbolic operands
11524 when we should have.
11525 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
11526 (ia64_reorg): Split insns when not optimizing.
11527 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
11528
11529 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
11530
11531 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
11532 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
11533
11534 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
11535
11536 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
11537
11538 2000-07-17 Jason Merrill <jason@redhat.com>
11539
11540 * Makefile.in (clean): Remove libgcc directory.
11541
11542 * configure.in (-Wno-long-long check): Use higher-level macros.
11543
11544 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
11545
11546 * simplify-rtx.c (simplify_binary_operation): Recognize
11547 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
11548 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
11549 a CONST_INT, it will always be zero.
11550
11551 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
11552
11553 * loop.c (check_dbra_loop) : Return if more than one condition is
11554 present to control the loop.
11555
11556 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
11557
11558 * mips.c (mips_expand_prologue): Don't calculate the last argument
11559 register unless we need it. When we are calculating this, make
11560 sure FUNCTION_ARG is giving us a REG.
11561
11562 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11563
11564 * flow.c (libcall_dead_p): Use single_set to verify the insn
11565 has only one set and get for analysis.
11566 (propagate_one_insn): Don't pass the PATTERN of the insn.
11567
11568 2000-07-17 Mark Klein <mklein@dis.com>
11569
11570 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
11571
11572 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
11573
11574 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
11575 * configure.in (TARGET_GETGROUPS_T): Evaluate.
11576 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
11577 of second argument of getgroups.
11578 * configure, config.in: Rebuilt.
11579
11580 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
11581
11582 * simplify-rtx.c (simplify_relational_operation): Two signed
11583 values with equal high words are less/greater than each other if
11584 their low words are less/greater when considered as unsigned.
11585
11586 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
11587
11588 * configure.in (vax-*-openbsd): Change to new style configuration,
11589 add collect2/float_format information.
11590 * configure: Rebuilt.
11591 * config/vax/openbsd1.h: New.
11592 * config/vax/openbsd.h: New.
11593 * config/vax/t-openbsd: New.
11594
11595 2000-07-17 Chip Salzenberg <chip@valinux.com>
11596
11597 * c-common.c (shorten_compare): Quiet warnings about unsigned
11598 comparisons with zero when they occur in a system header.
11599
11600 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
11601
11602 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
11603 update to describe current practice.
11604
11605 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
11606
11607 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
11608 references to C9X. Change references to -fstd and -flang-isoc9x
11609 to refer to -std.
11610
11611 * c-common.c (scan_char_table): Allow "z" length modifiers on
11612 diouxXn formats.
11613 (check_format_info): Use TYPE_DOMAIN on the type matched against
11614 for "z" formats, to retrieve the language size_t rather than the
11615 internal one.
11616
11617 * c-common.c (check_format_info): Do not make a pedantic objection
11618 to the 'L' length modifier if used with a floating point type
11619 character.
11620
11621 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
11622 constants in C99 mode.
11623
11624 2000-07-17 Kazu Hirata <kazu@hxi.com>
11625
11626 * h8300.md: Fix the format of mac.
11627 (movsi_h8300hs): Output a tab after stmac instead of a space.
11628
11629 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
11630 profitable adds/subs sequences.
11631
11632 * fold-const.c: Fix comment typos.
11633
11634 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
11635
11636 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
11637
11638 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11639
11640 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
11641
11642 2000-07-16 Neil Booth <NeilB@earthling.net>
11643
11644 * cpplex.c: Update comments.
11645 * README.Portability: Small update.
11646
11647 2000-07-16 Neil Booth <NeilB@earthling.net>
11648
11649 * README.Portability: Small update.
11650
11651 2000-07-15 Richard Henderson <rth@cygnus.com>
11652
11653 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
11654 * config/ia64/ia64.c (ia64_move_ok): New function.
11655 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
11656 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
11657
11658 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
11659
11660 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
11661 immediately following a paste operator.
11662 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
11663 (cpp_reader_init): Call it, if HOST_EBCDIC.
11664 (cpp_handle_options): Do not sort option list here.
11665 (handle_option): Rename to cpp_handle_option and export.
11666 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
11667 _cpp_get_token directly.
11668 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
11669 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
11670 * cpplib.h: Prototype cpp_handle_option. Update prototype of
11671 cpp_scan_line.
11672
11673 2000-07-15 Richard Henderson <rth@cygnus.com>
11674
11675 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
11676 cast around an expression. Tidy other unsigned tests.
11677
11678 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
11679
11680 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
11681 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
11682 (v_message_with_decl): Rename to ...
11683 (format_with_decl): ... this. Tweak
11684 (diagnostic_for_decl): New function.
11685 (fatal_io_error): Use verbatim in lieu of notice.
11686 (announce_function): Use verbatim.
11687 (default_print_error_function): Likewise.
11688 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
11689 infratructure.
11690
11691 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11692
11693 * mips.c (function_arg_pass_by_reference): Don't do automatic
11694 aggregate initialization.
11695 (machine_dependent_reorg): Initialize variable `mode'.
11696
11697 * mips.md (absdi2): Change variable `regno1' to unsigned int.
11698 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
11699 conflicts with sys/param.h macro of the same name.
11700 (reload_outdi): Likewise.
11701
11702 2000-07-15 Michael Meissner <meissner@redhat.com>
11703
11704 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
11705 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
11706 create a new node instead.
11707
11708 2000-07-15 Neil Booth <NeilB@earthling.net>
11709
11710 * README.Portability: Correct example about calling a function
11711 through a pointer to function. Format wide paragraphs.
11712
11713 2000-07-15 Michael Meissner <meissner@redhat.com>
11714
11715 * README.Portability: Update integer suffixes and function
11716 prototype sections.
11717
11718 2000-07-15 Neil Booth <NeilB@earthling.net>
11719
11720 * README.Portability: Small update.
11721
11722 2000-07-15 Neil Booth <NeilB@earthling.net>
11723
11724 * README.Portability: New file.
11725
11726 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
11727
11728 * INSTALL: Give special instructions for building GCC on Irix 6.
11729 * config/mips/x-iris6 (CC): Don't set it.
11730 (OLDCC): Likewise.
11731
11732 2000-07-14 Jason Merrill <jason@redhat.com>
11733
11734 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
11735 register in the stack and later in another register, use the new
11736 register.
11737
11738 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
11739
11740 * config/mips/mips.md: (absdi2): Handle sign_extend for
11741 second operand.
11742
11743 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
11744
11745 * cpplib.c (do_pragma_dependency): Tidy warning messages.
11746
11747 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
11748
11749 * .cvsignore: Correct typo.
11750
11751 2000-07-13 Mark Mitchell <mark@codesourcery.com>
11752
11753 * .cvsignore: Add generated YACC files.
11754 * objc/.cvsignore: New file.
11755
11756 2000-07-14 Neil Booth <NeilB@earthling.net>
11757
11758 * cpplex.c (adjust_column): New funcion.
11759 (skip_whitespace): Use it.
11760 (skip_block_comment): Use it, and warn about /*/* with
11761 -Wcomments.
11762
11763 2000-07-14 Neil Booth <NeilB@earthling.net>
11764
11765 * cpphash.c (struct macro_info): Add new members.
11766 (_cpp_free_definition): Delete the macro directly.
11767 (count_params): Return void, with first token of
11768 expansion in struct macro_info on success.
11769 (parse_define): Return int. Hoist syntax checking from
11770 save_macro_expansion. Leave call to save_expansion to
11771 _cpp_create_definition.
11772 (alloc_macro): Needs just 2 arguments.
11773 (free_macro): Delete.
11774 (save_expansion): Don't perform syntax check.
11775 (_cpp_create_definition): Call save_expansion.
11776
11777 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11778
11779 * genrecog.c (write_header): Split long string.
11780
11781 * cpphash.c (macro_info): Don't use the `signed' keyword.
11782
11783 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
11784
11785 2000-07-13 Jakub Jelinek <jakub@redhat.com>
11786
11787 * calls.c (stored_args_map): New variable.
11788 (check_sibcall_argument_overlap_1): New.
11789 (check_sibcall_argument_overlap): New.
11790 (expand_call): Initialize stored_args_map.
11791 Call check_sibcall_argument_overlap.
11792
11793 2000-07-13 Bruce Korb <bkorb@gnu.org>
11794
11795 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
11796 (emit_gnu_type): utility procedure for gnu_type_fix
11797 (gnu_type_fix): implement various pre-processor guards around
11798 standard types so these types can be defined over and over
11799 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
11800 types alluded to above will have GNU-compliant base types
11801 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
11802 * fixinc/inclhack.def: add test_text entries and utilize the new
11803 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
11804 * fixinc/fixincl.x: regenerate
11805
11806 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
11807
11808 * diagnostic.c (vline_wrapper_message_with_location,
11809 v_message_with_file_and_line, v_error_with_file_and_file,
11810 v_error_for_asm, v_warning_for_asm, vfatal,
11811 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
11812 vsorry, verror, vwarning, vpedwarn): Remove.
11813 (diagnostic_for_asm): New function.
11814 (pedwarn, error, warning, pedwarn_with_file_and_line,
11815 error_with_file_and_line, warning_with_file_and_line, sorry,
11816 error_for_asm, warning_for_asm, fatal): Reimplement.
11817 (finish_diagnostic): Clear diagnostic info as well.
11818
11819 2000-07-13 Neil Booth <NeilB@earthling.net>
11820
11821 * c-common.h (flag_digraphs): New.
11822 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
11823 * c-lex.c (yylex): Use flag_digraphs to decide whether to
11824 honour digraphs.
11825
11826 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
11827
11828 * gcc.c (do_spec_1): Add new %B operator.
11829 (set_input): Prepare for %B.
11830
11831 (link_command_spec): Move up with the other tm.h-
11832 overrideable specs. Factor out the portion conditional on
11833 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
11834 (struct compiler): Just have a single spec string. All users
11835 updated.
11836 (default_compilers): Remove unnecessary braces.
11837 (static_specs): Update.
11838
11839 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
11840 named specs.
11841 (C and assembly specs): Use the new named specs, as appropriate.
11842
11843 * objc/lang-specs.h: Use the new named specs.
11844 Remove unnecessary braces.
11845
11846 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
11847
11848 * gcc.c (execute): If a subprocess gets a fatal signal, report
11849 strsignal() of the signal number, and ask for a bug report.
11850 Do not do this for SIGPIPE if there's already been an error.
11851
11852 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
11853 Delete pipe_closed.
11854
11855 * tradcif.c: Remove.
11856
11857 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
11858
11859 * final.c (profile_function): Do not emit profile counters in
11860 the data section, if NO_PROFILE_COUNTERS is defined.
11861 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
11862 FUNCTION_PROFILER.
11863
11864 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
11865 (FUNCTION_PROFILER): Just emit a call to mcount.
11866
11867 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
11868
11869 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
11870
11871 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
11872 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
11873 traditional, lang_chill, or lang_fortran.
11874
11875 * cppfiles.c: #undef strcmp to suppress warning about macros
11876 used without arguments.
11877 (_cpp_execute_include): Use f, not fname, in "No include path"
11878 error.
11879 (_cpp_pop_file_buffer): New function.
11880 * cpplib.c: Don't include <sys/mman.h>.
11881 (cpp_push_buffer): Set line_base and lineno in new buffer.
11882 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
11883
11884 * cpplex.c: Move all prototypes and structure declarations to the
11885 top of the file. Properly parenthesise some macro arguments.
11886 (cpp_scan_line): New function.
11887 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
11888 don't need to walk up the stack counting.
11889
11890 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11891
11892 * c-common.c (combine_strings): Emit a pedantic warning when a
11893 string length is greater than the minimum ANSI C is required
11894 to support.
11895
11896 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
11897
11898 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
11899 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
11900
11901 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11902
11903 * c-decl.c (define_label): Warn about identifier conflicts with
11904 labels in traditional C.
11905
11906 * c-parse.in (unop +): Warn about the unary plus operator for
11907 traditional C.
11908
11909 * c-typeck.c (store_init_value): Warn about automatic aggregate
11910 initialization for traditional C.
11911
11912 * invoke.texi (-Wtraditional): Document new warnings.
11913
11914 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
11915
11916 * Makefile.in (c-errors.o): Fix thinko in dependency.
11917
11918 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
11919
11920 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
11921 -traditional, -ftraditional, or -traditional-cpp was given.
11922 Do not pass -traditional to the preprocessor.
11923 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
11924 preprocessor does it automatically.
11925 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
11926
11927 * ch/lang-specs.h: Always use tradcpp. Do not pass
11928 -traditional, -trigraphs, or -pedantic to the preprocessor.
11929 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
11930 _LANGUAGE_FORTRAN.
11931
11932 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
11933
11934 * cppexp.c (LOGICAL): Delete macro.
11935 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
11936 and && directly.
11937
11938 * cpphash.c (HASHSIZE): Increase to 4096.
11939 (struct hashdummy): Add hash field.
11940 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
11941 the string values using memcmp.
11942 (cpp_lookup): Set dummy.hash.
11943
11944 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
11945
11946 * configure.in (m88k-openbsd): Express configuration using new fragment
11947 style.
11948 * configure: Rebuilt.
11949 * m88k/aout-dbx.h: New.
11950 * m88k/openbsd.h: New.
11951 * m88k/xm-openbsd.h: New.
11952
11953 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11954
11955 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
11956
11957 2000-07-12 Richard Henderson <rth@cygnus.com>
11958
11959 * reload.c (push_secondary_reload): Make sure to add the new
11960 reload at the end, after acquiring secondary memory.
11961
11962 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11963
11964 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
11965
11966 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
11967 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
11968
11969 * c-parse.in (stmt): Delete unused variables.
11970
11971 * convert.c (convert_to_vector): Likewise.
11972
11973 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
11974
11975 * tree.c (finish_vector_type): Prototype.
11976
11977 2000-07-12 Bruce Korb <bkorb@gnu.org>
11978
11979 * fixinc/fixfixes.c: use xmalloc
11980 * fixinc/fixincl.c(initialize): set program name for xmalloc
11981 * fixinc/fixlib.c(must_malloc): obsolete
11982 (is_cxx_header): no longer used - disabled
11983 (skip_quote): inserted and disabled for future use
11984 * fixinc/fixlib.h: reflects above
11985 * fixinc/fixtests.c: removed dinkleberries
11986
11987 2000-07-12 Neil Booth <NeilB@earthling.net>
11988
11989 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
11990 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
11991
11992 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
11993 struct toklist_dummy): New.
11994 (cpp_free_definition): Free macros with free_macro.
11995 (count_params): Don't save paramter spellings. Save macro
11996 information in a struct macro_info.
11997 (parse_define): Don't allocate a token list.
11998 (save_expansion): Allocate the macro's token list, and
11999 save parameter spellings if necessary. Use TOKEN_SPELL.
12000 (cpp_create_definition): Make list const.
12001
12002 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
12003
12004 * c-typeck.c (pedwarn_c99): Move to
12005 * c-errors.c: ... Here.
12006 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
12007 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
12008 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
12009 (c-errors.o): List dependency.
12010
12011 2000-07-12 Mark Mitchell <mark@codesourcery.com>
12012
12013 * c-parse.c: Remove.
12014 * c-parse.h: Likewise.
12015 * c-parse.y: Likewise.
12016 * objc/objc-parse.c: Likewise.
12017 * objc/objc-pasre.y: Likewise.
12018
12019 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
12020
12021 * gcc.texi: Fix minor typos
12022 * extend.texi: Fix minor typos
12023
12024 2000-07-11 Marc Espie <espie@openbsd.org>
12025
12026 * collect2.c (main): Recognize .lo as object files.
12027
12028 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
12029
12030 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
12031 true.
12032
12033 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
12034 with MAP_ANONYMOUS and MAP_ANON.
12035 * configure, config.in: Rebuilt.
12036
12037 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
12038
12039 * diagnostic.c (save_output_state): Remove.
12040 (restore_output_state): Likewise.
12041 (clear_text_info): New function.
12042 (clear_diagnostic_info): Likewise.
12043 (output_text_length, is_starting_newline, output_prefix,
12044 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
12045 prefixing_policy, output_buffer_ptr_to_format_args): New macros
12046 (set_real_maximum_length, output_set_maximum_length,
12047 output_set_prefix, output_get_prefix, output_set_maximum_length,
12048 output_destroy_prefix, init_output_buffer,
12049 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
12050 output_add_newline, output_add_character, output_add_space,
12051 output_append_r, output_append, wrap_text, output_format,
12052 output_do_printf, output_printf, output_do_verbatim,
12053 output_verbatim, verbatim): Use them.
12054 (output_clear): Split into cleat_text_info and
12055 clear_diagnostic_info.
12056 (struct output_state): Move to...
12057
12058 * diagnostic.h: ...Here
12059 (struct output_buffer): Adjust.
12060
12061 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
12062
12063 * cpplex.c (parse_name): No longer inline (premature optimization).
12064 (do_pop_context): Fold into pop_context.
12065 (pop_context): Returns int.
12066 (lex_next): Hoist test for end of directive into pop_context.
12067 (push_macro_context): Returns int; takes just reader and token.
12068 Hoist test for excessive nesting to caller.
12069 (push_arg_context): Returns void; takes just reader and token.
12070 Do not call stringify_arg or get_raw_token.
12071 (get_raw_token): Convert tail recursion through push_arg_context
12072 to a loop at this level. Call stringify_arg here if appropriate.
12073 (maybe_paste_with_next): Convert tail recursion to a while loop.
12074 Hoist test of paste_level to caller.
12075
12076 (stringify_arg): Push arg context at beginning.
12077 (cpp_get_token): Split out core into _cpp_get_token. Call
12078 process_directive here. Throw away CPP_PLACEMARKER tokens.
12079 (_cpp_get_token): Convert tail recursion through
12080 push_macro_context to a loop at this level.
12081 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
12082 _cpp_get_raw_token): Use _cpp_get_token.
12083 (_cpp_skip_rest_of_line): Drop the context stack directly; do
12084 not call pop_context.
12085 (_cpp_run_directive): Call lex_next directly.
12086
12087 * cpphash.h: Prototype _cpp_get_token.
12088 * cppexp.c (lex): Use it.
12089 * cpphash.c (parse_define): Use it.
12090 * cpplib.c (get_define_node, do_undef, parse_include,
12091 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
12092 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
12093 parse_ifdef, validate_else): Use it.
12094 (cpp_push_buffer): Tweak error message; abort if anyone tries
12095 to push a buffer while macro expansions are stacked.
12096
12097 2000-07-11 Donn Terry <donnte@microsoft.com>
12098
12099 * cpplex.c (free_macro_args, save_token): Cast arg of free
12100 and/or xrealloc to PTR.
12101 (_cpp_init_input_buffer): Clear all fields of the base context.
12102
12103 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
12104
12105 * gensupport.c (process_rtx): Make rtl checking stop
12106 complaining about the define_insn while it is being
12107 converted from a define_insn_and_split.
12108
12109 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
12110
12111 * config/mips/mips.c (simple_memory_operand): Access the
12112 INTVAL of the address, not it's containing MEM.
12113
12114 2000-07-11 Bruce Korb <bkorb@gnu.org>
12115
12116 * fixinc/fixtests.c(double_slash): obsolete
12117 (else_endif_label): likewise
12118 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
12119 (libc1_ifdefd_memx): correct initial comment
12120 and omit the #if/#endif pair from the memxxx declarations
12121 * fixinc/fixincl.x: regen
12122
12123 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12124
12125 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
12126
12127 2000-07-11 Neil Booth <NeilB@earthling.net>
12128
12129 * cpp.texi: Update.
12130
12131 2000-07-11 Neil Booth <NeilB@earthling.net>
12132
12133 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
12134 (handle_option): Set digraphs according to standard.
12135 Merge OPT_lang_c89 handler with OPT_std_c89.
12136
12137 * cpplex.c: (lex_line, can_paste): Honour digraphs in
12138 accordance with the digraphs flag.
12139
12140 * cpplib.h: (struct cpp_options): New option digraphs.
12141
12142 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
12143 Bruce Korb <bkorb@gnu.org>
12144
12145 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
12146 * fixinc/fixincl.x: Regenerate.
12147 * fixinc/tests/base/testing.h: Add testcase.
12148
12149 2000-07-10 Richard Henderson <rth@cygnus.com>
12150
12151 * config/ia64/ia64.c (got_symbolic_operand): New.
12152 (symbolic_operand, move_operand): Revert 0701 change.
12153 * config/ia64/ia64.h (PREDICATE_CODES): Update.
12154 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
12155 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
12156 split the offset into a 14-bit low part instead of a 13-bit low part.
12157 (load_fptr): Mark the mem as unchanging.
12158 (load_symptr): Use got_symbolic_operand.
12159
12160 2000-07-10 Nick Clifton <nickc@cygnus.com>
12161
12162 * libgcc2.c (next_stack_level): Cast result of computation to
12163 (void **) so that the assignment does not generate a warning.
12164
12165 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
12166
12167 * flags.h : Add new variable flag_single_precision_constant.
12168 * toplev.c (display_help) : Add -fsingle-precision-constant option.
12169 (flag_single_precision_constant): New.
12170 * c-lex.c (yylex): Convert floating point constant to single
12171 precision constant.
12172 * invoke.texi : Add documentation for this new option.
12173
12174 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
12175
12176 * diagnostic.c (output_octal): Second parameter is unsigned.
12177 (output_long_octal): Likewise.
12178 (output_hexadecimal): Likewise.
12179 (output_long_hexadecimal): Likewise.
12180 (output_format): Adjust arguments extraction. Tweak.
12181 (output_verbatim, verbatim): End variable argument list.
12182 (report_diagnostic): Improve documentation.
12183
12184 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
12185
12186 * c-common.h (build_stmt): Declare.
12187 (build_continue_stmt): Likewise.
12188 (build_break_stmt): Likewise.
12189 (build_return_stmt): Likewise.
12190
12191 * c-decl.c (do_case): Rewrite to do what previously done in
12192 c-parse.in.
12193
12194 * c-semantics.c (build_stmt): Define.
12195 (build_return_stmt): Likewise.
12196 (build_break_stmt): Likewise.
12197 (build_continue_stmt): Likewise.
12198 (build_case_label): Likewise.
12199
12200 * c-parse.in (BREAK): Change to build tree, then generate RTL.
12201 (CONTINUE): Likewise.
12202 (RETURN): Likewise.
12203 (CASE): Likewise.
12204 (DEFAULT): Likewise.
12205
12206 * c-parse.y: Regenerate.
12207 * c-pasre.c: Likewise.
12208
12209 2000-07-09 Jason Merrill <jason@redhat.com>
12210
12211 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
12212
12213 * tree.h (STRIP_NOPS): Check for error_mark_node.
12214 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
12215 (dwarf2out_*): Remove duplicate declarations.
12216
12217 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
12218 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
12219
12220 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
12221
12222 * diagnostic.c (wrap_text): New function.
12223 (maybe_wrap_text): Likewise.
12224 (output_add_string): Use it.
12225 (output_format): Likewise.
12226 (count_error): Use verbatim instead of notice.
12227 (report_error_function): Likewise. Don't use plain fprintf.
12228 (finish_diagnostic): New function.
12229 (output_do_verbatim): Tweak. Commonalize functionalities in
12230 output_verbatim and verbatim.
12231 (output_verbatim): Adjust.
12232 (verbatim): Likewise.
12233 (report_diagnostic): Define.
12234
12235 * diagnostic.h (report_diagnostic): Prototype.
12236
12237 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
12238
12239 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
12240
12241 2000-07-09 Neil Booth <NeilB@earthling.net>
12242
12243 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
12244 IShspace, ISspace: Update.
12245
12246 * cppinit.c: ISTABLE: Update.
12247 V: New.
12248
12249 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
12250 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
12251 (skip_block_comment, skip_line_comment, parse_string,
12252 lex_line): Use is_vspace rather than IS_NEWLINE.
12253 (skip_whitespace, lex_line): Clean up to use is_nvspace.
12254 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
12255 gets a BOL flag.
12256 (lex_next): Unconditionally stop if within a directive.
12257 Treat directives within macro invocations as directives
12258 (after parse_args emits error), not as the argument.
12259
12260 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
12261
12262 * diagnostic.c (diagnostic_args): New macro.
12263 (diagnostic_msg): Likewise.
12264 (output_formatted_integer): Likewise.
12265 (output_state): New data type.
12266 (digit_buffer): Make global.
12267 (output_add_integer): Rename to output_decimal. Squeeze
12268 digit_buffer.
12269 (output_long_decimal, output_unsigned_decimal,
12270 output_long_unsigned_decimal, output_octal, output_long_octal,
12271 output_hexadecimal, output_long_hexadecimal): New functions.
12272 (output_append_r): New function.
12273 (output_append): Tweak.
12274 (output_flush_on): Rename to output_to_stream.
12275 (output_format): Change prototype. Improve documentation. Handle
12276 more format specifiers.
12277 (build_location_prefix): Rename to context_as_prefix.
12278 (output_notice): Rename to output_do_printf.
12279 (output_printf): Tweak.
12280 (line_wrapper_printf): Likewise.
12281 (vline_wrapper_message_with_location): Adjust call to renamed
12282 functions.
12283 (v_message_with_decl): Likewise.
12284 (default_print_error_function): Likewise.
12285 (save_output_state): New function.
12286 (restore_output_state): Likewise.
12287 (output_do_verbatim): Likewise.
12288 (output_verbatim): Define.
12289 (verbatim): Likewise.
12290
12291 * diagnostic.h (printer_fn): Change return type from void to int.
12292 Improve documentation.
12293 (output_add_integer): Rename to output_decimal.
12294 (output_flush_on, output_format): Don't export.
12295 (output_verbatim, verbatim): Declare.
12296
12297 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
12298
12299 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
12300 Check whether c divides op1 exactly if operation is not
12301 multiplication.
12302
12303 2000-07-08 Richard Henderson <rth@cygnus.com>
12304
12305 * final.c (final): Do not abort when reg-stack introduces
12306 a new insn.
12307
12308 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
12309
12310 * cpplib.h (struct cpp_name): Now struct cpp_string.
12311 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
12312 CPP_HEADER_NAME): Change to type S.
12313 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
12314 field, a cpp_hashnode *. All references to val.name updated
12315 to use val.str or val.node as appropriate.
12316 (struct cpp_reader): Add spec_nodes field.
12317 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
12318
12319 * cpphash.h (struct spec_nodes): New.
12320 (enum spell_type): Reorder. Only SPELL_STRING tokens use
12321 val.str. All references to 'spelling > SPELL_NONE' updated to
12322 match.
12323
12324 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
12325 pfile->buffer->inc are not NULL before dereferencing them.
12326
12327 * cpplex.c (parse_name): Take a pointer to the current token,
12328 plus current position and limit as args; return the new
12329 position; don't copy the text of a name into the string
12330 buffer, instead call cpp_lookup and store the node pointer.
12331 If extending a token, copy out the text of the old into a
12332 scratch buffer, append the new, look that up and store the new
12333 node pointer. Inline.
12334 (maybe_paste_with_next): If the result of paste is a NAME,
12335 then look up the pasted text and store its node pointer.
12336 (lex_line): Adjust for new parse_name interface.
12337 Check for L"str", L'str' using spec_nodes->n_L.
12338 (spell_token): SPELL_IDENT tokens have their spelling in
12339 val.node->name. Handle SPELL_STRING tokens that don't have
12340 string delimiters.
12341 (_cpp_expand_name_space,
12342 (can_paste): Check for L ## "str" using spec_nodes->n_L.
12343 (cpp_get_token, special_symbol): No need to call cpp_lookup.
12344 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
12345 return 1=equal 0=not, not a tristate.
12346
12347 * cpphash.c (var_args_str): Delete.
12348 (find_param): Compare node fields directly.
12349 (is__va_args__): Use CPP_PEDANTIC. Just compare
12350 token->val.node with spec_nodes->n__VA_ARGS__.
12351 (dump_funlike_macro): Don't use var_args_str.
12352
12353 * cpplib.c (_cpp_check_directive): Just walk through
12354 spec_nodes->dirs comparing pointers.
12355 (get_define_node, do_pragma_poison, detect_if_not_defined,
12356 parse_ifdef): The identifier has already been looked up.
12357 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
12358 node.
12359 (do_if): Only call detect_if_not_defined at beginning of file.
12360 (_cpp_parse_assertion): Only copy string pointers for
12361 SPELL_STRING tokens.
12362 (pragma_dispatch): Take a node pointer and examine its name
12363 field.
12364 (_cpp_init_stacks): Also initialize the spec_nodes structure.
12365
12366 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
12367 _cpp_init_macros.
12368 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
12369 reverse order from the corresponding _cpp_init_* routines.
12370
12371 * cppexp.c (parse_number, parse_charconst, parse_defined,
12372 lex): Check val.node->type instead of calling cpp_defined.
12373 Use spec_nodes entries where appropriate.
12374
12375 * fix-header.c, scan-decls.c: Update for interface changes.
12376
12377 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
12378
12379 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
12380 emitting aux_truncdfsf2.
12381
12382 2000-07-03 Donn Terry (donnte@microsoft.com)
12383
12384 * cppinit.c (print_help): split overlong line into ISO C89
12385 maximum chunks.
12386
12387 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
12388
12389 * cppexp.c: Update all code for new lexer interface.
12390 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
12391 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
12392 * cpplex.c (token_names): Trim leading CPP_ from names; make
12393 the strings unsigned.
12394 (_cpp_spell_operator): New.
12395 (is_macro_disabled): Disable all macros if rescanning
12396 preprocessed text.
12397 (_cpp_get_directive_token): Remove.
12398
12399 * cppinit.c: Don't set no_macro_expand.
12400 * cpplib.c (read_line_number, do_line): Check only for EOF,
12401 not VSPACE.
12402 * cpphash.h: Update prototypes.
12403 * cpplib.h (CPP_VSPACE): Remove.
12404 (struct cpp_reader): Remove no_macro_expand.
12405
12406 2000-07-08 Neil Booth <NeilB@earthling.net>
12407
12408 * cpphash.c (is__va_args__): New function.
12409 (count_params): Fix line reported in error messages. Use
12410 is__va_args__. Don't return ')' on error. Flag GNU style
12411 rest args macro definitions.
12412 (parse_define): Check macro name is not __VA_ARGS__.
12413 (save_expansion): Check identifier in non-varargs-macro is
12414 not __VA_ARGS__. Don't flag GNU_VARARGS.
12415 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
12416 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
12417 than per-token GNU_VARARGS.
12418 * cpplib.h (GNU_VARARGS): Remove.
12419 (GNU_REST_ARGS): New.
12420
12421 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
12422
12423 * i386.md (call_pop, call, call_value_pop): Do not set
12424 current_function_uses_pic_offset_table for calls to static
12425 functions or indirect calls.
12426
12427 2000-07-07 Jim Wilson <wilson@cygnus.com>
12428
12429 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
12430 is_predicate_reg, then take max write_count of register pair.
12431
12432 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12433
12434 * tradcpp.c (main): Rename label `include' to `add_include' to
12435 avoid conflicts with variable `include' in traditional C.
12436
12437 2000-07-07 Jakub Jelinek <jakub@redhat.com>
12438
12439 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
12440
12441 2000-07-07 Jakub Jelinek <jakub@redhat.com>
12442
12443 * sibcall.c (uses_addressof): Add INMEM argument, check for
12444 current_function_internal_arg_pointer outside of MEM rtxs in addition
12445 to ADDRESSOFs.
12446 (sequence_uses_addressof): Update caller.
12447
12448 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
12449
12450 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
12451 and friends.
12452
12453 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12454
12455 * system.h (UNION_INIT_ZERO): New macro for initializing union
12456 members in structs.
12457
12458 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
12459
12460 2000-07-07 Neil Booth <NeilB@earthling.net>
12461
12462 * cpp.texi: Update.
12463
12464 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
12465
12466 * final.c (final): Detect out of bounds array access to
12467 the insn_lengths array.
12468
12469 2000-07-07 Kazu Hirata <kazu@hxi.com>
12470
12471 * fold-const.c (fold): Fix a comment typo.
12472
12473 2000-07-07 Neil Booth <NeilB@earthling.net>
12474
12475 * cpp.texi: Update to new lexer.
12476
12477 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
12478
12479 * tradcpp.c: New file.
12480 * tradcif.y: New file.
12481 * tradcif.c: New generated file.
12482
12483 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
12484 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
12485 dependencies of C. Install tradcpp from install-common, in
12486 $(libsubdir).
12487
12488 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
12489
12490 * cppinit.c: Include cppdefault.h. Refer to
12491 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
12492 to GCC_INCLUDE_DIR and its length.
12493 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
12494 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
12495 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
12496 cppdefault.h.
12497 (include_defaults_array): Move to cppdefault.c.
12498
12499 * cppdefault.h: New file.
12500 * cppdefault.c: New file.
12501
12502 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
12503 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
12504 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
12505 this file.
12506
12507 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12508
12509 * reload.c (push_reload): When seeing if can reuse a register,
12510 check extra registers against widest of INMODE and OUTMODE.
12511
12512 2000-07-06 Neil Booth <NeilB@earthling.net>
12513
12514 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
12515 based on full length of predicate.
12516
12517 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
12518
12519 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
12520 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
12521
12522 2000-07-05 Kazu Hirata <kazu@hxi.com>
12523
12524 * h8300-proto.h: Fix formatting.
12525 * h8300.c: Likewise.
12526 * h8300.h: Likewise.
12527
12528 2000-07-05 Jim Wilson <wilson@cygnus.com>
12529
12530 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
12531 CCmode.
12532
12533 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
12534
12535 * invoke.texi: Fix minor typos
12536 * md.texi: Fix minor typos
12537
12538 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
12539
12540 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
12541
12542 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
12543
12544 * cpplex.c: Don't include sys/mman.h.
12545 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
12546
12547 * cpplib.c: Include sys/mman.h and obstack.h.
12548 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
12549 obstack.
12550 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
12551 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
12552 bother freeing if stack entries (they will be freed with their buffer).
12553 (do_endif): Free if stack entries from the buffer obstack.
12554 (push_conditional): Allocate if stack entries from the buffer obstack.
12555
12556 (find_answer): Rename to _cpp_find_answer.
12557 (do_assert, do_unassert): Update.
12558
12559 * cpphash.h: Update prototypes.
12560 (xobnew): New convenience macro.
12561 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
12562 Update comments.
12563 (struct cpp_hashnode): Remove disabled field.
12564
12565 * cppinit.c: Don't include hashtab.h or splay-tree.h.
12566 (report_missing_guard): Moved to cppfiles.c.
12567 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
12568 cpp_init_includes.
12569 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
12570 cpp_cleanup_includes. Don't destroy hashtab or
12571 all_include_files here.
12572 (cpp_finish): Use _cpp_report_missing_guards.
12573
12574 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
12575 (_cpp_init_include_table): Rename _cpp_init_includes.
12576 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
12577
12578 * cppexp.c (parse_assertion): Update for new name of
12579 find_answer.
12580
12581 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
12582
12583 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
12584
12585 * cpplib.c (do_ident): s/VSPACE/EOF/
12586
12587 2000-07-05 Neil Booth <NeilB@earthling.net>
12588
12589 * cpplex.c: Fix trigraph replacement within strings.
12590
12591 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12592
12593 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
12594
12595 * xcoffout.c (assign_type_number): Constify.
12596 (xcoffout_source_file): Add static prototype. Don't needlessly
12597 cast away const-ness.
12598
12599 2000-07-04 Jason Merrill <jason@redhat.com>
12600
12601 * frame.h (frame_state): Move base_offset to end.
12602
12603 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
12604
12605 * calls.c (emit_library_call_value_1): Revert previous change.
12606
12607 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
12608
12609 * fix-header.c (struct partial_proto): Remove unnecessary fields.
12610 (recognized_extern, recognized_function, read_scan_file):
12611 Update for new scheme.
12612 (check_protection): It's still a multiple include guard even
12613 if it doesn't always trigger.
12614 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
12615 new scheme.
12616 * scan.h: Declare struct cpp_token. Update prototypes.
12617
12618 2000-07-03 Neil Booth <neilb@earthling.net>
12619 Zack Weinberg <zack@wolery.cumb.org>
12620
12621 Complete overhaul of the lexer and macro expander.
12622
12623 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
12624 arg, arglist, argdata, reflist, collect_objlike_expansion,
12625 collect_funlike_expansion, collect_params,
12626 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
12627 unsafe_chars, macarg, compare_defs, special_symbol,
12628 scan_arguments, stringify, funlike_macroexpand,
12629 _cpp_quote_string, monthnames): Delete.
12630 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
12631 _cpp_create_definition, _cpp_dump_definition,
12632 dump_hash_helper): Adjust.
12633 (find_param, count_params, parse_define, var_args_str,
12634 check_macro_redefinition, save_expansion): New.
12635
12636 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
12637 parse_string, output_line_command, trigraph_replace,
12638 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
12639 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
12640 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
12641 _cpp_skip_rest_of_line): Modify.
12642
12643 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
12644 find_position, null_warning, bump_column, expand_name_space,
12645 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
12646 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
12647 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
12648 _cpp_prescan): Delete.
12649
12650 (dump_param_spelling, process_directive, lex_next,
12651 is_macro_disabled, stringify_arg, expand_context_stack,
12652 output_token, make_string_token, alloc_number_token,
12653 special_symbol, duplicate_token, maybe_paste_with_next,
12654 can_paste, prevent_macro_expansion, restore_macro_expansion,
12655 get_temp_token, release_temp_tokens, quote_string,
12656 token_names, token_spellings, _cpp_expand_name_space,
12657 _cpp_glue_header_name, _cpp_reserve_name_space,
12658 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
12659 placemarker_token, eof_token, cpp_context, macro_args,
12660 get_raw_token, parse_arg, parse_args, save_token,
12661 push_arg_context, push_macro_context, pop_context,
12662 do_pop_context, free_macro_args, _cpp_get_line,
12663 _cpp_run_directive): New.
12664
12665 * cpplib.c (validate_else, parse_include, push_conditional,
12666 pass_thru_directive, read_line_number, parse_ifdef,
12667 detect_if_not_defined, _cpp_check_directive, do_define,
12668 do_undef, do_include, do_import, do_include_next, do_error,
12669 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
12670 top_pragmas, do_pragma_gcc, do_pragma_implementation,
12671 do_pragma_poison, do_pragma_system_header,
12672 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
12673 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
12674 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
12675 cpp_defined): Update for new scheme.
12676 (strtoul_for_line, get_define_node, dump_macro_name,
12677 _cpp_check_linemarker, _cpp_parse_assertion): New.
12678 (_cpp_handle_directive, do_pragma_default): Delete.
12679
12680 * cpphash.h (struct predicate): Now struct answer.
12681 (enum spell_type, struct token_spelling, struct directive,
12682 directive_handler): New.
12683 Update prototypes. Remove unused macros.
12684 * cpplib.h: Update prototypes. Remove unused macros,
12685 structure definitions, and fields.
12686
12687 * cpperror.c (print_containing_files, v_message): Adjust.
12688 * cppexp.c (parse_assertion, lex, parse_escape,
12689 _cpp_parse_expr): Adjust.
12690 * cppfiles.c (open_include_file, _cpp_execute_include,
12691 _cpp_compare_file_date, cpp_read_file, read_include_file):
12692 Adjust.
12693 * cppinit.c (dump_special_to_buffer): Delete.
12694 (append_include_chain, merge_include_chains, cpp_reader_init,
12695 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
12696 cpp_finish, handle_option, print_help): Adjust.
12697 * cppmain.c (main): Adjust.
12698
12699 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
12700
12701 * cppspec.c (lang_specific_driver): Use double quotes in error
12702 message.
12703
12704 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
12705
12706 * calls.c (emit_library_call_value_1): Use valreg instead
12707 of hard_libcall_value.
12708
12709 2000-07-03 Geoff Keating <geoffk@cygnus.com>
12710
12711 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
12712 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
12713 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
12714 (movhi): Likewise.
12715 (movqi): Likewise.
12716 (movdf): Likewise.
12717 (movsf): Likewise.
12718 (movdi): Likewise.
12719 (movti): Likewise.
12720
12721 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
12722 mode instead of wider_mode is being used.
12723
12724 2000-07-03 Jakub Jelinek <jakub@redhat.com>
12725
12726 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
12727 of 'r'. Use q_regs_operand.
12728 (andsi_1+2): Use q_regs_operand.
12729
12730 2000-07-03 Jakub Jelinek <jakub@redhat.com>
12731
12732 * builtins.c (get_memory_rtx): Always put into alias set 0.
12733
12734 2000-07-03 Nick Clifton <nickc@cygnus.com>
12735
12736 * config/arm/arm.md: Fix post increment and pre increment
12737 peepholes so that they do not generate UNPREDICATBLE opcodes.
12738 (ie ones where the increment clobbers the source/destination).
12739
12740 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
12741
12742 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
12743 change too big for -mtiny-stack" a warning, if larger than 63.
12744 (out_set_stack_ptr): Change the logic so -mno-interrupts is
12745 always safe to use on possible future devices.
12746 (function_prologue): Write SPH before SPL, for consistency.
12747 If interrupt_func_p true, we know we have enabled interrupts.
12748 (avr_num_arg_regs): New function. Round up to even number of
12749 bytes if no -mpack-args or if calling a libgcc function.
12750 (function_arg, function_arg_advance): Use it.
12751 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
12752 Output "movw" if available.
12753 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
12754 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
12755 (asm_output_section_name): Add blanks for consistent output.
12756 (encode_section_info): Set TREE_READONLY for progmem data to
12757 avoid gas warnings about changed section attributes.
12758 (avr_hard_regno_mode_ok): Force non-QImode data to start in
12759 even numbered registers on devices with "movw".
12760 * config/avr/avr.h (MASK_*): Define bits for target_flags.
12761 (TARGET_SWITCHES): Mark help strings for translation.
12762 Add new -mpack-args and -menhanced switches.
12763 (TARGET_OPTIONS): Mark help strings for translation.
12764 (progmem_section): Add section attributes.
12765 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
12766 Output "movw" if available.
12767 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
12768 New patterns.
12769 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
12770 call convention (arguments aligned on even registers).
12771 (_cleanup, _exit): Make weak symbols libc can override.
12772
12773 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12774
12775 * fp-bit.h: New file.
12776
12777 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
12778 Comment #endif statements.
12779 (__thenan_sf, __thenan_df): Add missing braces around initializer.
12780
12781 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
12782
12783 * gcse.c (compute_pre_data): Compute ae_kill using other local
12784 properties instead of calling compute_ae_kill.
12785
12786 * alias.c (init_alias_analysis): Do not call
12787 prologue_epilogue_contains until after reload has completed.
12788
12789 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
12790
12791 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
12792 (genrtl_finish_compound_stmt): Likewise.
12793 (genrtl_compound_stmt): Change to return void.
12794
12795 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
12796 move code from here to ...
12797 (genrtl_compound_stmt): ... here.
12798 (genrtl_finish_compound_stmt): Remove.
12799 (expand_stmt): Add comment.
12800
12801 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
12802
12803 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
12804 and VOID_TYPE_P.
12805
12806 2000-07-02 Jakub Jelinek <jakub@redhat.com>
12807
12808 * cpplib.h (struct cpp_reader): New field include_depth.
12809 (struct cpp_printer): Rename last_bsd to last_id.
12810 * cppfiles.c (read_include_file): Bump include_depth.
12811 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
12812 (output_line_command): Output correct #line if a header
12813 is including itself and is not protected against multiple inclusion.
12814 Use include_depth instead of buffer_stack_depth, last_id instead of
12815 last_bsd.
12816 * cppinit.c (cpp_start_read): Initialize last_id instead of
12817 last_bsd.
12818
12819 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
12820
12821 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
12822 (c-semantics.o): New target.
12823
12824 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
12825 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
12826 (genrtl_clear_out_block): Likewise.
12827 (genrtl_goto_stmt): Likewise.
12828 (genrtl_expr_stmt): Likewise.
12829 (genrtl_decl_stmt): Likewise.
12830 (genrtl_if_stmt): Likewise.
12831 (genrtl_while_stmt): Likewise.
12832 (genrtl_do_stmt): Likewise.
12833 (genrtl_return_stmt): Likewise.
12834 (genrtl_for_stmt): Likewise.
12835 (genrtl_break_stmt): Likewise.
12836 (genrtl_continue_stmt): Likewise.
12837 (genrtl_scope_stmt): Likewise.
12838 (genrtl_switch_stmt): Likewise.
12839 (genrtl_case_label): Likewise.
12840 (genrtl_begin_compound_stmt): Likewise.
12841 (gerntl_finish_compound_stmt): Likewise.
12842 (genrtl_compound_stmt): Likewise.
12843 (genrtl_asm_stmt): Likewise.
12844 (genrtl_decl_cleanup): Likewise.
12845 (DECL_ANON_UNION_ELEMS): Likewise.
12846 (emit_local_var): Likewise.
12847 (make_rtl_for_local_static): Likewise.
12848 (expand_cond): Likewise.
12849 (expand_stmt): Likewise.
12850 (c_expand_return): Likewise.
12851 (c_expand_start_case): Likewise.
12852 (do_case): Likewise.
12853 (COMPOUND_STMT_NO_SCOPE): Likewise.
12854 (c_expand_asm_operands): Likewise.
12855 (NEW_FOR_SCOPE_P): New macro.
12856 (expand_expr_stmt_fn): New type.
12857
12858 (set_current_function_name_declared): Likewise.
12859 (current_function_name_declared): Likewise.
12860 (lang_expand_stmt): Likewise.
12861 (stmts_are_full_exprs_p): Likewise.
12862 (anon_aggr_type_p): Likewise.
12863 (lang_expand_expr_stmt): Likewise.
12864 (build_case_label): Likewise.
12865
12866 * c-decl.c (lang_expand_expr_stmt): Initialize.
12867 (stmts_are_full_exprs_p): Define.
12868 (current_function_name_declared): Likewise.
12869 (do_case): Likewise.
12870 (lang_expand_stmt): Likewise.
12871 (set_current_function_name_declared): Likewise.
12872 (anon_aggr_type_p): Likewise.
12873
12874 * c-semantics.c: New file.
12875 (expand_cond): Moved from cp/semantics.c.
12876 (genrtl_do_pushlevel): Likewise.
12877 (genrtl_clear_out_block): Likewise.
12878 (genrtl_goto_stmt): Likewise.
12879 (genrtl_expr_stmt): Likewise.
12880 (genrtl_decl_stmt): Likewise.
12881 (genrtl_if_stmt): Likewise.
12882 (genrtl_while_stmt): Likewise.
12883 (genrtl_do_stmt): Likewise.
12884 (genrtl_return_stmt): Likewise.
12885 (genrtl_for_stmt): Likewise.
12886 (genrtl_break_stmt): Likewise.
12887 (genrtl_continue_stmt): Likewise.
12888 (genrtl_scope_stmt): Likewise.
12889 (genrtl_switch_stmt): Likewise.
12890 (genrtl_case_label): Likewise.
12891 (genrtl_begin_compound_stmt): Likewise.
12892 (genrtl_finish_compound_stmt): Likewise.
12893 (genrtl_compound_stmt): Likewise.
12894 (genrtl_asm_stmt): Likewise.
12895 (genrtl_decl_cleanup): Likewise.
12896 (make_rtl_for_local_static): Moved from cp/decl.c.
12897 (emit_local_var): Likewise.
12898 (expand_stmt): Define.
12899
12900 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
12901 (c_expand_return): Likewise.
12902 (c_expand_start_case): Likewise.
12903
12904 2000-07-01 Richard Henderson <rth@cygnus.com>
12905
12906 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
12907 with the low 13 bits set.
12908 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
12909 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
12910 of the low 13 bits into a CONST plus an adddi3.
12911 (load_symptr): Set RTX_UNCHANGING_P.
12912
12913 See ChangeLog.3 for earlier changes.