]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
integrate.c (expand_inline_function): Don't put a virtual register into the reg map.
[gcc.git] / gcc / ChangeLog
1 Thu Jan 4 21:09:47 2001 J"orn Rennecke <amylaar@redhat.com>
2
3 * integrate.c (expand_inline_function): Don't put a virtual
4 register into the reg map.
5
6 * function.c (fixup_var_refs_1): If force_operand didn't put
7 the address into the target, move it there.
8
9 2001-01-04 Mark Mitchell <mark@codesourcery.com>
10
11 Special-case tree_decl/tree_list allocations.
12 * ggc-page.c (OBJECT_PER_PAGE): Reimplement.
13 (OBJECT_SIZE): New macro.
14 (NUM_EXTRA_ORDER): Likewise.
15 (extra_order_size_table): New variable.
16 (NUM_ORDERS): New macro.
17 (objects_per_page_table): New variable.
18 (object_size_table): New variable.
19 (G.pages): Use NUM_ORDERS to bound the array.
20 (G.page_tails): Likewise.
21 (DIV_ROUND_UP): Remove.
22 (BITMAP_SIZE): Use CEIL, instead of DIV_ROUND_UP.
23 (alloc_page): Use OBJECT_SIZE.
24 (size_lookup): Don't make it const.
25 (ggc_alloc): Use OBJECT_SIZE.
26 (ggc_set_mark): Likewise.
27 (ggc_get_size): Likewise.
28 (init_ggc): Set up the object_size_table, objects_per_page_table,
29 and adjust size_lookup.
30 (ggc_recalculate_in_use_p): Use CEIL, not DIV_ROUND_UP.
31 (ggc_pop_context): Use NUM_ORDERS.
32 (clear_marks): Likewise.
33 (sweep_pages): Likewise.
34 (poison_pages): Likewise.
35 (ggc_print_statistics): Use OBJECT_SIZE.
36
37 Thu Jan 4 15:54:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38
39 * varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.
40 Only call array_size_for_constructor if last field and array type
41 with no upper bound.
42
43 2001-01-04 Philip Blundell <philb@gnu.org>
44
45 * config/arm/arm.c (arm_gen_constant): Prefer to emit constants
46 from bit 31 downwards, if this requires no more insns.
47 (count_insns_for_constant): New helper function for above.
48
49 2001-01-04 Alexandre Oliva <aoliva@redhat.com>
50
51 * gencodes.c (output_predicate_decls): Remove empty initializer.
52
53 2001-01-04 Mark Mitchell <mark@codesourcery.com>
54
55 * tree.c (copy_node): Remove documentation about obstacks.
56 (buidl1): Check that nobody tries to build 2-argument nodes this
57 way.
58
59 2001-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
60
61 * sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and
62 fp_high_losum_p.
63
64 * gencodes.c (output_predicate_decls): Fill empty initializer
65 braces.
66
67 2001-01-04 Jakub Jelinek <jakub@redhat.com>
68
69 * tradcpp.c (deps_file, print_deps_missing_files): New variables.
70 (main): Handle -MG, -MD, -MMD. Bail out if -MG is given without -M
71 or -MM.
72 (do_include): Handle missing headers like cpp0.
73 * cppfiles.c (_cpp_execute_include): Don't prefix absolute header
74 paths with first include pathname. Don't strcat to uninitialized
75 string.
76
77 2001-01-04 Bernd Schmidt <bernds@redhat.com>
78
79 * regrename.c (regrename_optimize): Don't rename from frame pointer
80 if frame_pointer_needed.
81 (do_replace): Don't set ORIGINAL_REGNO to a hard register number.
82 * config/ia64/ia64.c (emit_all_group_insn_barriers): New function.
83 (ia64_reorg): Use it instead of scheduling if ! optimize.
84 (errata_emit_nops): Properly call asm_noperands.
85 (ia64_sched_reorder): Finish cycle if we see an asm.
86 (ia64_variable_issue): Clear scheduling state after asms.
87
88 2001-01-04 Neil Booth <neil@daikokuya.demon.co.uk>
89
90 * cpp.texi: Update for -MT.
91 * cppinit.c (initialize_dependency_output): Add a default
92 target if none has been given already.
93 (no_tgt, OPT_MT): New.
94 (cpp_handle_option): Handle -MT. Update -M etc.
95 * cpplib.h (struct cpp_options): Remove deps_target.
96 * gcc.c (cpp_options): Handle -MT.
97 * mkdeps.c (struct deps): Move from mkdeps.h.
98 (deps_calc_target): Rename deps_add_default_target. Add a
99 default target if none has been specified already.
100 * mkdeps.h (struct deps): Move to mkdeps.c.
101 (deps_calc_target): Rename deps_add_default_target.
102
103 2000-01-03 Richard Henderson <rth@redhat.com>
104
105 * c-decl.c (grokdeclarator): Give zero-length arrays size zero.
106 Remove dead code.
107 * c-typeck.c (push_init_level): Move checks for flexible array
108 members and zero length arrays ...
109 (pop_init_level): ... here. Silently discard empty initializations.
110 Remove dead code.
111 * varasm.c (output_constructor): Update for sizeof change to
112 zero-length arrays.
113
114 * extend.texi (Zero Length): Clarify semantics.
115
116 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
117
118 * configure.in (tm.h): Include isns-codes.h last.
119 * configure: Rebuilt.
120
121 2001-01-03 Richard Henderson <rth@redhat.com>
122
123 * config/alpha/alpha.md (addvsi3, addvdi3): New.
124 (negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New.
125
126 2001-01-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
127
128 * tradcpp.c (main): Make sure finclude() is called with a valid
129 indepth value while handling -include.
130
131 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
132
133 * gencodes.c (output_predicate_decls): New function.
134 (main): Call it.
135 * machmode.h (GET_MODE_MASK): Arrange for it to be defined
136 even if it is not the first time machmode.h is #included.
137 * config/sh/sh.c (fpul_operand): Declare MODE argument.
138 * tm.texi (PREDICATE_CODES): Document predicate declarations.
139 * gcc.texi (Copyright): Added 2001.
140
141 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
142
143 * c-common.c (c_common_lang_init): New function. Warn if format
144 warning options which only have effects when used with -Wformat
145 are used without -Wformat.
146 * c-common.h (c_common_lang_init): Declare.
147 * c-lang.c (lang_init): Call c_common_lang_init.
148 * objc/objc-act.c (lang_init): Call c_common_lang_init.
149
150 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
151
152 * configure.in: Check for the mktemp command.
153 * configure: Regenerate.
154 * gccbug.in: Use a separate temporary file $TEMP0 for one use of
155 $TEMP. Create temporary files with mktemp, if available at
156 configure time; otherwise use set -C. Remove temporary files
157 before exit.
158
159 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
160
161 * configure.in: Require at least texinfo 4.0. Check for whether
162 Pod::Man is sufficiently recent to regenerate GCC manpages.
163 * configure: Regenerate.
164 * Makefile.in (TEXI2POD): Call perl explicitly rather than relying
165 on #!.
166 (GENERATED_MANPAGES): Define.
167 (generated-manpages): New target. Depend on cpp.1 as well as
168 gcov.1.
169 (install-man): Depend on $(GENERATED_MANPAGES) (defined by
170 configure to generated-manpages or empty) rather than on the
171 manpages directly. Remove execute permission from installed
172 gcov.1 as well as cpp.1.
173 * cpp.1, gcov.1: Regenerate.
174
175 2001-01-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
176
177 * builtins.c (expand_builtin_strncmp): Use host_integerp and
178 tree_low_cst. Allow using cmpstrsi in more cases.
179
180 Wed Jan 3 10:48:43 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
181
182 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for variable
183 sized types.
184
185 Wed Jan 3 12:22:32 2001 Alexandre Oliva <aoliva@redhat.com>
186
187 * build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
188 * Makefile.in (HOST_CFLAGS): Mention build-make.
189
190 Wed Jan 3 08:53:50 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
191
192 * config/sparc/sparc.md (nonlocal_goto): Emit goto_handler_and_restore
193 as JUMP_INSN.
194
195 2001-01-01 Bernd Schmidt <bernds@redhat.com>
196
197 * builtins.c (expand_builtin_return_addr): Don't use MEM_ALIAS_SET on
198 a REG rtx.
199
200 * cse.c (cse_rtx_varies_p): Accept additional FROM_ALIAS arg. All
201 callers changed.
202
203 * alias.c (throughout): Use ORIGINAL_REGNO when accessing
204 reg_base_value and reg_known_value arrays.
205 (init_alias_analysis): Add more cases to detect known values.
206 * sched-deps.c (deps_may_trap_p): New function.
207 (sched_analyze_2): Use it.
208
209 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
210
211 * combine.c (simplify_shift_const): Even if we're sign-extracting,
212 don't discard an ASHIFTRT if we're shifting in a wider mode.
213
214 2000-01-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
215
216 * toplev.c (rest_of_compilation): Don't print basic block information
217 when CFG isn't up to date.
218
219 2001-01-02 Mark Elbrecht <snowball3@bigfoot.com>
220
221 * config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define.
222 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define.
223 (UNALIGNED_SHORT_ASM_OP): Define.
224 (CPP_PREDEFINES): Remove defines for GO32 and DJGPP.
225
226 2001-01-02 Mark Mitchell <mark@codesourcery.com>
227
228 * fold-const.c (fold_convert): Fix typo.
229
230 2001-01-02 Richard Henderson <rth@redhat.com>
231
232 * c-common.h (ASM_INPUT_P): New.
233 * c-parse.in (asm): Set it when needed.
234 * c-semantics.c (genrtl_asm_stmt): Test it instead of the
235 existance of an operand.
236
237 Tue Jan 2 20:27:07 MET 2001 Jan Hubicka <jh@suse.cz>
238
239 * dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.
240 (dwarf2out_frame_debug_expr): Likewise.
241 (mem_loc_descriptor): Handle PRE and POST_MODIFY.
242
243 Tue Jan 2 20:21:31 MET 2001 Jan Hubicka <jh@suse.cz>
244
245 * i386.c (ix86_split_to_parts): Return number of part required;
246 handle TFmodes.
247 (print_operand, ix86_expand_branch, ix86_expand_fp_movcc): Handle
248 TFmodes.
249 (ix86_split_long_move): Use number of part returned
250 by ix86_split_to_parts
251 * i386.h (MASK_128BIT_LONG_DOUBLE, TARGET_128BIT_LONG_DOUBLE):
252 New macros.
253 (TARGET_SWITCHES): Add 128bit-long-double and 96bit-long-double
254 (LONG_DOUBLE_TYPE_SIZE): Change from constant.
255 (MAX_LONG_DOUBLE_TYPE_SIZE): New macro.
256 (INTEL_EXTENDED_IEEE_FORMAT): Likewise.
257 (ALIGN_MODE_128): Add TFmode.
258 (IS_STACK_MODE): Likewise.
259 (HARD_REGNO_NREGS): TFmode needs 3 registers.
260 (HARD_REGNO_OK): Support TFmodes.
261 (ASM_OUTPUT_LONG_DOUBLE): Handle TFmodes.
262 * i386.md (scheduler definitions): Use memory operand to determine
263 fst/fld instructions; use mode attribute to determine real mode of
264 the instruction.
265 (*tf): New patterns, expanders and splitters; based on XFmode patterns.
266 * invoke.texi (128bit-long-double, 96bit-long-double): Document.
267
268 2001-01-02 Mark Mitchell <mark@codesourcery.com>
269
270 * tree.def (TRUTH_NOT_EXPR): Improve documentation.
271
272 Tue Jan 2 10:47:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
273
274 * expr.c (store_constructor_field): Update ALIGN before calling
275 store_constructor.
276
277 2001-01-02 Jeffrey Oldham <oldham@codesourcery.com>
278
279 * config/mips/mips.c (function_arg): Don't pass NULL_TREE to
280 host_integerp.
281
282 2001-01-02 Jeffrey Oldham <oldham@codesourcery.com>
283
284 * tm.texi (FUNCTION_ARG): Document that @var{type} can be an
285 incomplete type.
286
287 Tue Jan 2 10:47:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
288
289 * c-decl.c (start_function): Don't warn on third parameter to main.
290
291 2001-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
292
293 * tsystem.h: Define HAVE_DECL_GETOPT.
294
295 2001-01-02 Philip Blundell <pb@futuretv.com>
296
297 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Avoid illegal clobber
298 of input operand.
299
300 2001-01-02 Richard Henderson <rth@redhat.com>
301
302 * alpha.md (*ze_and_ne): Duplicate insn condition to split.
303
304 2001-01-02 Andreas Jaeger <aj@suse.de>
305
306 * c-decl.c (c_decode_option): Remove support of
307 -Wmissing-noreturn.
308
309 * toplev.c (documented_lang_options): Remove -Wmissing-noreturn.
310 (W_options): Add -Wmissing-noreturn here.
311
312 * flow.c: Define lang_missing_noreturn_ok_p.
313 (check_function_return_warnings): Use it.
314
315 * c-common.h: Declare lang_missing_noreturn_ok_p.
316
317 * c-lang.c (c_missing_noreturn_ok_p): New function.
318 (lang_init): Set lang_missing_noreturn_ok_p.
319
320 * invoke.texi (Warning Options): Document this.
321
322 2000-12-27 Phil Edwards <pme@sources.redhat.com>
323
324 * extend.texi (C++ Extensions): New node for C++ attributes;
325 describe init_priority and com_interface.
326 * invoke.texi: Remove -finit-priority as it now has zero effect.
327 * install.texi: Fix xref syntax.
328 * md.texi: Likewise.
329
330 Mon Jan 1 21:28:29 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
331
332 * config.gcc (sparc64-wrs-vxworks*): New case.
333 * config/sparc/vxsparc64.h, config/sparc/t-vxsparc64: New files.
334
335 * config/sparc/sparc.c (sparc_override_options): Do support different
336 pointer and architecture size.
337 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Always 4.
338 (POINTERS_EXTEND_UNSIGNED): Define.
339 (Pmode): Test TARGET_ARCH64, not TARGET_PTR64.
340 (FUNCTION_MODE): Define to be Pmode.
341 * config/sparc/sparc.md (64-bit call patterns): FUNCTION_MODE now DI.
342
343 * function.c (expand_function_end): Properly handle DECL_RESULT
344 and copy when ptr_mode != Pmode.
345 * expmed.c (make_tree): Convert X from Pmode to ptr_mode, if needed.
346
347 2001-01-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
348
349 * c-common.c (c_common_nodes_and_builtins): Set prototype
350 parameters for __builtin_fputs, __builtin_fputc and
351 __builtin_fwrite. Don't declare plain fputc as a builtin.
352
353 2001-01-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
354
355 * loop.c (add_label_notes): Increment the label usage count when
356 a note is added to an insn which refers to a CODE_LABEL.
357 * gcse.c (add_label_notes): Likewise.
358
359 2001-01-01 Andreas Jaeger <aj@suse.de>
360
361 * loop.c (scan_loop): Use xmalloc to allocate movables.
362
363 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
364
365 * tm.texi (REGISTER_MOVE_COST): Add a mode argument.
366 * reload.c (REGISTER_MOVE_COST): Likewise. Adjust all callers.
367 * reload1.c (REGISTER_MOVE_COST): Likewise.
368 * regclass.c (REGISTER_MOVE_COST): Likewise.
369 (move_cost, may_move_in_cost, may_move_out_cost): Add mode
370 dimension. Adjust all users.
371 (init_reg_sets_1): Iterate on all modes.
372 * config/1750a/1750a.h (REGISTER_MOVE_COST): Adjust.
373 * config/a29k/a29k.h (REGISTER_MOVE_COST): Adjust.
374 * config/alpha/alpha.h (REGISTER_MOVE_COST): Adjust.
375 * config/arc/arc.h (REGISTER_MOVE_COST): Adjust.
376 * config/arm/arm.h (REGISTER_MOVE_COST): Adjust.
377 * config/avr/avr.h (REGISTER_MOVE_COST): Adjust.
378 * config/c4x/c4x.h (REGISTER_MOVE_COST): Adjust.
379 * config/d30v/d30v.h (REGISTER_MOVE_COST): Adjust.
380 * config/dsp16xx/dsp16xx.h (REGISTER_MOVE_COST): Adjust.
381 * config/h8300/h8300.h (REGISTER_MOVE_COST): Adjust.
382 * config/i386/i386.h (REGISTER_MOVE_COST): Adjust.
383 * config/ia64/ia64.h (REGISTER_MOVE_COST): Adjust.
384 * config/m32r/m32r.h (REGISTER_MOVE_COST): Adjust.
385 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Adjust.
386 * config/m68k/m68k.h (REGISTER_MOVE_COST): Adjust.
387 * config/mcore/mcore.h (REGISTER_MOVE_COST): Adjust.
388 * config/mips/mips.h (REGISTER_MOVE_COST): Adjust.
389 * config/mn10200/mn10200.h (REGISTER_MOVE_COST): Adjust.
390 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Adjust.
391 * config/ns32k/ns32k.h (REGISTER_MOVE_COST): Adjust.
392 * config/pa/pa.h (REGISTER_MOVE_COST): Adjust.
393 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Adjust.
394 * config/pj/pj.h (REGISTER_MOVE_COST): Adjust.
395 * config/romp/romp.h (REGISTER_MOVE_COST): Adjust.
396 * config/rs6000/rs6000.h (REGISTER_MOVE_COST): Adjust.
397 * config/sh/sh.h (REGISTER_MOVE_COST): Adjust.
398 * config/sparc/sparc.h (REGISTER_MOVE_COST): Adjust.
399
400 2001-01-01 Bernd Schmidt <bernds@redhat.com>
401
402 * alias.c (fixed_scalar_and_varying_struct): Adjust prototype of
403 arg VARIES_P. Call it with extra arg.
404 (true_dependence): Likewise.
405 * rtl.h (rtx_addr_can_trap_p): Declare.
406 (rtx_varies_p, rtx_addr_varies_p, true_dependence): Update
407 prototypes.
408 * rtlanal.c (rtx_addr_can_trap_p): No longer static.
409 (rtx_varies_p): Accept extra arg FOR_ALIAS; only disallow
410 pic offset table register if it's zero. All callers changed.
411 (rtx_addr_varies_p): Accept extra arg FOR_ALIAS; all callers changed.
412
413 Mon Jan 1 07:38:33 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
414
415 * explow.c (convert_memory_address, case SYMBOL_REF): Copy
416 STRING_POOL_ADDRESS_P.
417
418 * config/sparc/sparc.c (input_operand): Properly test for short op.
419
420 * config.gcc (sparc-*-elf): Include sparc/sol2.h.
421 (sparc-*-rtems*): Include sparc/sol2.h and sparc/elf.h.
422 (sparclite-*-elf*, sparc86x-*-elf*): Likewise.
423 * config/sparc/elf.h: No longer include sol2.h.
424 * config/sparc/lifeelf.h: No longer include sparc/elf.h.
425 * config/sparc/rtemself.h, config/sparc/sp86x-elf.h: Likewise.
426
427 * config/sparc/sparc.md: Test TARGET_ARCH64 instead of TARGET_PTR64.
428
429 2001-01-01 Michael Hayes <mhayes@redhat.com>
430
431 * loop.c (check_insn_for_bivs): Use ivs->n_regs to check array bounds.
432 (find_mem_givs, record_biv, maybe_eliminate_biv): Likewise.
433 (record_initial): Likewise.
434 * unroll.c (copy_loop_body, loop_iterations): Likewise.
435 (remap_split_bivs): Likewise.
436
437 2001-01-01 Michael Hayes <mhayes@redhat.com>
438
439 * loop.c (loop_ivs_free): New function.
440 (strength_reduce): Break out from...
441
442 2001-01-01 Michael Hayes <mhayes@redhat.com>
443
444 * loop.h (struct iv): New.
445 (REG_IV_TYPE, REG_IV_CLASS, REG_INFO): Modify to use 'struct iv'.
446 (struct loop_ivs): Replace 'reg_iv_type', 'reg_iv_info',
447 'reg_biv_class' fields with 'regs' and 'n_regs'.
448 (struct ivs): Rename 'loop_iv_list' field to 'list'.
449 * loop.c (loop_bivs_find, strength_reduce): Use ivs->regs array.
450 * unroll.c (loop_iterations): Check array bounds with ivs->n_regs.
451
452 2000-12-31 Alexandre Oliva <aoliva@redhat.com>
453
454 * resource.c (mark_referenced_resources): Abort() before
455 attempting to mark a pseudo register.
456 (mark_set_resources): Likewise.
457
458 2001-01-01 Michael Hayes <mhayes@redhat.com>
459
460 * loop.h (REG_IV_CLASS): New accessor macro.
461 * loop.c (REG_IV_CLASS): Use it instead of reg_iv_class array.
462 * unroll.c (REG_IV_CLASS): Likewise.
463
464 Sun Dec 31 19:20:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
465
466 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR): New.
467 (loc_descriptor_from_tree, case SAVE_EXPR): New.
468
469 2001-01-01 Michael Hayes <mhayes@redhat.com>
470
471 * loop.c (loop_giv_reduce_benefit): Break out from strength_reduce.
472 (loop_givs_dead_check, loop_givs_reduce, loop_givs_rescan): Likewise.
473 (prescan_loop): Set pre_header_has_call in loop_info.
474 * loop.h (struct_iv_class): Add `final_value' and `all_reduced'.
475 (struct loop_info): Add `pre_header_has_call'.
476
477 * loop.c (loop_bivs_find): Break out from strength_reduce.
478 (loop_bivs_init_find, loop_bivs_check, loop_givs_find): Likewise.
479 (loop_givs_check, loop_biv_eliminable_p): Likewise.
480
481 * loop.c (LOOP_REG_LIFETIME, LOOP_REG_GLOBAL_P): Define.
482 (scan_loop, record_giv): Use LOOP_REG_LIFETIME and LOOP_REG_GLOBAL_P.
483
484 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Define.
485 * loop.c (REGNO_FIRST_LUID, REGNO_LAST_LUID): Use in place of
486 direct access to uid_luid array.
487 * unroll.c (REGNO_FIRST_LUID, REGNO_LAST_LUID): Likewise.
488
489 * loop.h (struct loop_movables): New.
490 (LOOP_MOVABLES): New.
491 (struct loop_info): Add movables field.
492 * loop.c (struct movables): Delete. Replace all uses
493 with struct loop_movables.
494 (the_movables): Delete. Replace all uses with movables
495 field in loop_info.
496 (loop_movables_add, loop_movables_free): New functions.
497 (scan_loop): Use xmalloc instead of alloca for movables.
498 Call loop_movables_free.
499
500 * loop.c (debug_loops): New.
501
502 2000-12-31 Philip Blundell <philb@gnu.org>
503
504 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Add missing asm
505 operands.
506
507 2000-12-30 Richard Henderson <rth@redhat.com>
508
509 * dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
510 Initialize variables properly for DBX_LBRAC_FIRST.
511
512 2000-12-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
513
514 * expr.c (expand_expr, case COMPONENT_REF): Fix typo in last change.
515
516 2000-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
517
518 * builtins.c (validate_arglist): New function, use it.
519
520 2000-12-30 Philip Blundell <philb@gnu.org>
521
522 * config/arm/arm.c (arm_expand_prologue): Fix typos in error
523 message and comment. Note location of testcase for an unhandled
524 situation.
525
526 2000-12-30 Jeffrey Oldham <oldham@codesourcery.com>
527
528 * defaults.h (BUILD_VA_LIST_TYPE): New definition.
529 * tree.c (build_common_tree_nodes_2): Ensure the va_list_type_node
530 is a copy, not an alias.
531
532 2000-12-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
533
534 * calls.c (calls_function_1, case CONSTRUCTOR): New case.
535
536 * alias.c (alias_sets_conflict_p): New function.
537 (mems_in_disjoint_alias_sets_p): Use it.
538 (readonly_fields_p): Moved from expr.c; check for record type.
539 (objects_must_conflict_p): New function.
540 * calls.c (expand_call): Use assign_temp as much as possible, use
541 readonly variant if assigned once, and don't set memory attributes.
542 (emit_library_call_value_1, store_one_arg): Likewise.
543 * integrate.c (expand_inline_function): Likewise.
544 * stmt.c (expand_asm_operands, expand_return): Likewise.
545 * expr.c (copy_blkmode_from_reg, store_constructor): Likewise.
546 (store_field, save_noncopied_parts, expand_expr): Likewise.
547 (expand_expr_unaligned): Likewise.
548 (readonly_fields_p): Moved to alias.c.
549 (safe_from_p): Rework handling of SAVE_EXPR.
550 MEMs ony conflict if alias sets conflict; likewise for INDIRECT_REF.
551 * function.c (struct temp_slot): Delete field ALIAS_SET; add TYPE.
552 (assign_stack_for_temp): Use objects_must_confict_p.
553 Set all memory attributes from type, if specified.
554 (mark_temp_slot): Mark TYPE field.
555 * tree.h (alias_sets_conflict_p, readonly_fields_p): New decls.
556 (objects_must_conflict_p): Likewise.
557
558 * stmt.c (expand_decl): Don't use assign_stack_temp in error case.
559 (add_case_node): No need to copy nodes anymore.
560
561 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
562
563 * config/sh/sh.c (split_branches): Don't dereference re-computed
564 `beyond' before checking it's non-NULL.
565
566 2000-12-29 Robert Lipe <robertl@sco.com>
567
568 Remove COFF support from i?86-pc-sco3.2v5.
569 * i386/sco5.h (PREFERRED_DEBUGGING_TYPE): Change to Dwarf II.
570 (TARGET_ELF): Now always true.
571 (SUBTARGET_SWTICHES: )Remove -mcoff.
572
573 * i386/t-sco5 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
574 MULTILIB_EXCEPTION): Nuke coff.
575 (CRTSTUFF_T_CFLAGS_S): Deleted.
576 (TARGET_LIBGCC2_CFLAGS): Added.
577
578 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
579
580 * varasm.c (output_constant_def): Don't ENCODE_SECTION_INFO
581 twice. Update desc->rtl and ->label, in case ENCODE_SECTION_INFO
582 modifies them.
583
584 2000-12-29 Bernd Schmidt <bernds@redhat.com>
585
586 * ia64.c (ia64_expand_load_address): Accept additional scratch
587 register argument. All callers & prototype changed.
588 Use scratch register when generating load_symptr insns.
589 * ia64.md (movdi_symbolic): Clobber a scratch register. Use it
590 when calling ia64_expand_load_address.
591 (movdi): Generate movdi_symbolic with additional operand.
592 (load_gprel64): Use pic_offset_table_rtx instead of (reg:DI 1).
593 (load_symptr): Likewise. Use additional operand as a scratch
594 register instead of generating it here.
595
596 * basic-block.h: Add a comment.
597 * flow.c (PROP_POSTRELOAD): New macro.
598 (update_life_info): Add it to prop_flags.
599 (mark_set_1): If it is set, compute REG_N_SETS for the original
600 register number of a hard reg.
601
602 * emit-rtl.c (gen_raw_REG): New function.
603 (gen_rtx_REG, gen_reg_rtx, init_emit_once): Use it instead of
604 gen_rtx_raw_REG.
605 * print-rtl.c (print_rtx): Print ORIGINAL_REGNO.
606 * final.c (alter_subreg): Update it.
607 * regrename.c (do_replace): Likewise. Use gen_raw_REG.
608 * rtl.def (REG): Update comment.
609 * rtl.h (X0UINT, ORIGINAL_REGNO): New macros.
610 (gen_raw_REG): Declare.
611
612 2000-12-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
613
614 * tree.c (get_set_constructor_bits): Use host_integerp and
615 tree_low_cst.
616
617 * local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN.
618
619 * toplev.c (main): Call xmalloc_set_program_name.
620 * gcc.c (main): Likewise.
621
622 2000-12-29 Philip Blundell <philb@gnu.org>
623
624 * config/arm/arm.c (arm_override_options): Fix typo in warning
625 message.
626
627 2000-12-29 Richard Henderson <rth@redhat.com>
628
629 * config/alpha/alpha.c (alpha_expand_block_move): Initialize
630 src_align and dst_align in bits. Do unaligned quadword loads
631 if possible for BWX too.
632 (alpha_expand_block_clear): Initialize align in bits. Track
633 small leading offsets into a larger alignment. Play games with
634 stq_u for large 4-byte aligned blocks. Use load/mask/store
635 for appropreately aligned heads and tails.
636
637 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
638
639 * function.c (assign_parms): Convert arguments passed by
640 reference to the right mode.
641
642 2000-12-28 Geoffrey Keating <geoffk@redhat.com>
643
644 * c-parse.in (select_or_iter_stmt): Use truthvalue_conversion
645 on the condition of a FOR statement, so that it gets typechecked
646 and optimised.
647
648 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
649
650 * c-decl.c (grokdeclarator): Prevent crash in case of overflow in
651 array size.
652
653 * calls.c (emit_library_call_value_1): Add to call_fusage the
654 stack slot assigned to argument passed by reference.
655
656 2000-12-28 Jeffrey Oldham <oldham@codesourcery.com>
657
658 * toplev.h (extern really_sorry): Remove extern declaration for
659 nonexistent function.
660
661 2000-12-28 Jeffrey Oldham <oldham@codesourcery.com>
662
663 * varasm.c (initializer_constant_valid_p): Indicate subtraction of
664 pointers to the same string constant is absolute.
665
666 2000-12-28 Joseph S. Myers <jsm28@cam.ac.uk>
667
668 * c-common.c (enum format_type): Add strfmon_format_type.
669 (decl_attributes): Handle format attributes strfmon and
670 __strfmon__.
671 (FMT_FLAG_USE_DOLLAR, FMT_FLAG_ZERO_WIDTH_BAD,
672 FMT_FLAG_EMPTY_PREC_OK): Define.
673 (format_char_info): Update comment for flag_chars.
674 (format_flag_spec): Add skip_next_char.
675 (format_kind_info): Add left_precision_char.
676 (printf_flag_specs, scanf_flag_specs, strftime_flag_specs,
677 format_types): Update for these new structure members and flags.
678 (time_char_table): Make const.
679 (strfmon_length_specs, strfmon_flag_specs, strfmon_flag_pairs,
680 monetary_char_table): New.
681 (format_types): Add details of strfmon formats.
682 (init_function_format_info): Create default attribute for strfmon.
683 (check_format_info_main): Check the new flags. Handle
684 skip_next_char and left precision.
685 * toplev.c (documented_lang_options): Update description of
686 -Wformat.
687 * extend.texi: Document strfmon format attributes. Document
688 attribute forms such as __printf__. Clarify format_arg attribute
689 documentation.
690 * invoke.texi (-Wformat): Update for strfmon formats.
691
692 2000-12-28 Andreas Jaeger <aj@suse.de>
693
694 * expmed.c (store_bit_field): Fix last patch.
695
696 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
697
698 * config/sh/crt1.asm (start_l): `__SH4_SINGLE_ONLY__' was missing
699 the trailing `__'.
700
701 2000-12-28 Alan Lehotsky <lehotsky@tiac.net>
702
703 * expmed.c (store_bit_field): Correctly compute smallest mode that
704 is sufficient to contain all bits we are storing.
705
706 2000-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
707
708 * builtins.c (build_function_call_expr): New function. Use it
709 everywhere in lieu of manually constructing a CALL_EXPR.
710
711 2000-12-27 Chandrakala Chavva <cchavva@redhat.com>
712
713 * calls.c (store_one_arg): If parm is passed both in stack and in
714 register and offset is greater than reg_parm_stack_space, split
715 the offset and call emit_push_insn().
716
717 2000-12-27 Nick Clifton <nickc@redhat.com>
718
719 * ifcvt.c (noce_emit_store_flag): Handle jump insns that are
720 PARALLEL.
721
722 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
723
724 * rtl.c (copy_most_rtx, shallow_copy_rtx): Copy frame_related
725 flag.
726
727 2000-12-27 Bruce Korb <bkorb@gnu.org>
728
729 * fixinc/Makefile.in: fix for ancient Bourne shell
730 * fixinc/Makefile.BEOS: obsolete
731 * fixinc/Makefile.DOS: obsolete
732 * fixinc/fixincl.sh(LINKS): use `test -d' rather than `ls' for testing
733
734 2000-12-27 Bernd Schmidt <bernds@redhat.com>
735
736 * sched-deps.c (get_condition, conditions_mutex_p): New functions.
737 (add_dependence): Use them to avoid adding unnecessary dependencies
738 between conditionally executed insns.
739 (sched_analyze_1, sched_analyze_2, sched_analyze_insn): Don't free
740 dependency lists if current insn is a COND_EXEC.
741
742 2000-12-27 Geoffrey Keating <geoffk@redhat.com>
743
744 * config/rs6000/rs6000.md (define_attr "length"): Correct
745 calculation.
746
747 2000-12-26 Kazu Hirata <kazu@hxi.com>
748
749 * config/h8300/h8300.c: Fix a comment typo.
750 (get_shift_alg): Fix a typo in the assembly code for 12-bit
751 ASHIFTRT in HImode. Do not output extra whitespace after one line
752 of assembly code. Output a tab after an opcode instead of a
753 space.
754 (emit_a_shift): Output a tab after an opcode instead of a space.
755
756 2000-12-23 Marek Michalkiewicz <marekm@linux.org.pl>
757
758 * config/avr/avr.c (out_movqi_r_mr, out_movhi_r_mr, out_movsi_r_mr,
759 out_movsi_mr_r, out_movqi_mr_r, out_movhi_mr_r): Use %o instead of
760 %4 in output templates, do not modify operands passed by the caller.
761
762 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
763
764 * builtins.def (BUILT_IN_LABS, BUILT_IN_LLABS, BUILT_IN_IMAXABS):
765 Don't define.
766 * builtins.c (expand_builtin): Don't handle BUILT_IN_LABS,
767 BUILT_IN_LLABS and BUILT_IN_IMAXABS.
768 * c-common.c (c_common_nodes_and_builtins): Use BUILT_IN_ABS for
769 builtin labs, llabs and imaxabs.
770 (expand_tree_builtin): Don't handle BUILT_IN_LABS, BUILT_IN_LLABS
771 and BUILT_IN_IMAXABS.
772
773 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
774
775 * c-common.c (builtin_function_2): New function.
776 (c_common_nodes_and_builtins): Use it to define each pair (foo,
777 __builtin_foo) of builtins in one place.
778
779 2000-12-22 Joseph S. Myers <jsm28@cam.ac.uk>
780
781 * gccbug.in: Add libgcj and preprocessor categories.
782
783 2000-12-22 Bernd Schmidt <bernds@redhat.com>
784
785 * config/ia64/ia64.c (itanium_reorder): Only schedule stops in
786 the final scheduling pass.
787
788 2000-12-22 Nick Clifton <nickc@redhat.com>
789
790 * config/arm/arm.h (struct machine_function): Add new field
791 'lr_save_eliminated'.
792 * config/arm/arm.c (arm_compute_save_reg_mask): Do not include the
793 link register if its save has been eliminated.
794 (output_arm_prologue): Mention if the save of the link register
795 has been eliminated.
796 (output_arm_epilogue): Rename 'live_regs_mask' to
797 'saved_regs_mask'.
798 Test 'saved_regs_mask' for the link register, not regs_ever_live.
799 (arm_expand_prologue): If the link register has not been saved set
800 lr_save_eliminated and emit a USE to prevent later passes from
801 scavenging it.
802
803 * dwarf2out_frame_debug_expr: Allow the (scratch) frame
804 pointer to be initialised from the stack pointer plus a
805 constant.
806
807 2000-12-22 Bernd Schmidt <bernds@redhat.com>
808
809 * regrename.c (struct du_chain): New field "earlyclobber".
810 (enum scan_actions): Remove unused entry "note_reference".
811 (enum scan_actions_name): Likewise.
812 (note_sets, clear_dead_regs, merge_overlapping_regs): New static
813 functions.
814 (regrename_optimize): Use them to compute unavailable regs; get
815 rid of the more simpleminded code we used to have here.
816 Use a tick array to ensure registers are allocated in a more
817 round-robin way. Disable code that only optimizes registers
818 that were seen more than once.
819 (referenced_regs): Remove variable.
820 (scan_rtx_reg): New arg "earlyclobber". All callers changed.
821 Store its value in newly generated du_chain structures.
822 Add new du_chains at the end, not the start, of the list.
823 Don't handle the "note_reference" action.
824 (scan_rtx): New arg "earlyclobber". All callers changed.
825 (build_def_use): Lose code to keep track of referenced regs.
826
827 2000-12-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
828
829 * Makefile.in (sched-deps.o, sched-rgn.o): Fix dependency typo.
830
831 * fp-bit.h (usi_to_float): Add prototype.
832
833 * i386.c (ix86_expand_builtin): Delete unused label.
834
835 * dwarf2out.c (file_info_cmp): Prototype.
836 (dwarf2out_line): Hide variable `old_in_use'.
837
838 * objc-act.c (objc_fatal): Delete.
839
840 * sched-vis.c (visualize_stall_cycles): Remove unused variable.
841
842 * system.h (getopt): Fix error in last change.
843
844 * varasm.c (assemble_trampoline_template): Constify.
845
846 2000-12-22 Jason Merrill <jason@redhat.com>
847
848 * collect2.c (main): Use auto_demangling.
849
850 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
851
852 * function.c (assign_parms): Update parm's DECL_INCOMING_RTL
853 when optimizing PARALLEL to REG.
854
855 2000-12-22 Graham Stott <grahams@redhat.com>
856
857 * reload.c (update_auto_inc_notes): New, broken out from ...
858 (find_reloads_address_1): ... use here, also correct possible
859 use of uninitialised reloadnum.
860
861 2000-12-21 David O'Brien <obrien@FreeBSD.org>
862
863 * config/freebsd.h (LIB_SPEC): remove -kthread option.
864
865 2000-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
866
867 * resource.c (mark_set_resources): Use MARK_SRC_DEST for
868 PRE_MODIFY and POST_MODIFY cases.
869
870 * rtlanal.c (side_effects_p): Handle PRE_MODIFY and POST_MODIFY.
871
872 2000-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
873
874 * md.texi (Looping Patterns): New node.
875
876 2000-12-21 Joseph S. Myers <jsm28@cam.ac.uk>
877
878 * gcc.texi, cpp.texi: Update last-updated dates.
879
880 2000-12-21 Chandrakala Chavva <cchavva@redhat.com>
881
882 * varasm.c (output_addressed_constants): Use language specific
883 expander on unknown nodes.
884
885 2000-12-21 Graham Stott <grahams@redhat.com>
886
887 * combine.c (distribute_notes): Handle REG_NON_LOCAL_GOTO notes.
888
889 2000-12-21 Bernd Schmidt <bernds@redhat.com>
890
891 * Makefile.in (out_object_file): Depend on sched-int.h.
892 * rtl.h (single_set_1): New macro.
893 (single_set_2): Renamed from single_set_1 and extra argument added.
894 * rtlanal.c (single_set_2): Likewise.
895
896 * config/ia64/ia64-protos.h (get_bundle_name, ia64_issue_rate,
897 ia64_adjust_cost, ia64_sched_init, ia64_sched_finish,
898 ia64_sched_reorder, ia64_sched_reorder2, ia64_variable_issue):
899 Declare.
900 * config/ia64/ia64.c: Include "sched-int.h".
901 (hard_regno_rename_ok): Also disallow renaming from the various
902 reg_save_* regs.
903 (ia64_safe_itanium_requiers_unit0, ia64_safe_itanium_class,
904 ia64_safe_type, init_insn_group_barriers, group_barrier_needed_p,
905 safe_group_barrier_needed_p, fixup_errata): New static functions.
906 (rtx_needs_barrier): Handle bundle selector and cycle display
907 insns.
908 (emit_insn_group_barriers): Accept additional FILE * arg. All
909 callers changed. Rework to only generate stop bits between
910 basic blocks that haven't been inserted by scheduling.
911 (struct bundle, struct ia64_packet): New structures.
912 (NR_BUNDLES, NR_PACKETS): New macros.
913 (bundle, packets, type_names): New static arrays.
914 (ia64_final_schedule): New variable.
915 (ia64_single_set, insn_matches_slot, ia64_emit_insn_before,
916 gen_nop_type, finish_last_head, rotate_one_bundle, rotate_two_bundles,
917 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
918 find_best_packet, itanium_reorder, dump_current_packet, schedule_stop):
919 New static functions.
920 (ia64_issue_rate, ia64_sched_init, ia64_sched_reorder,
921 ia64_sched_finish, ia64_sched_reorder2, ia64_variable_issue): New
922 functions.
923 (ia64_reorg): Perform a final scheduling pass.
924 * config/ia64/ia64.h (CONST_COSTS): Slightly increase SYMBOL_REF costs.
925 (MAX_CONDITIONAL_EXECUTE, ADJUST_COST, ISSUE_RATE, MD_SCHED_INIT,
926 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_FINISH,
927 MD_SCHED_VARIABLE_ISSUE): Define macros.
928 (ia64_final_schedule): Declare variable.
929 * config/ia64/ia64.md (attr itanium_class): Add some more classes.
930 (attr type): Account for them.
931 (itanium_requires_unit0): New attribute.
932 (function units): Rewrite.
933 (some splitters): Don't create scheduling barriers here.
934 (gr_spill_internal, gr_restore_internal): Don't predicate the
935 pseudo-op.
936 (nop_m, nop_i, nop_f, nop_b, nop_x, cycle_display, cycle_display_1,
937 bundle_selector): New patterns.
938 (insn_group_barrier): Now has an operand.
939
940 2000-12-21 DJ Delorie <dj@redhat.com>
941
942 * dwarf2out.c (simple_decl_align_in_bits): new
943 (field_byte_offset): Try both the type align and the
944 decl align, use whichever works, preferring the type align.
945
946 2000-12-21 Joseph S. Myers <jsm28@cam.ac.uk>
947
948 * gccbug.in: Fix typo.
949
950 2000-12-20 Benjamin Kosnik <bkoz@redhat.com>
951
952 * Makefile.in (gcc_gxx_target_include_dir): Use instead of
953 build_tooldir and libstdcxx_incdir.
954
955 2000-12-20 Robert Lipe <robertlipe@usa.net>
956
957 * haifa-sched.c (schedule_block): Provide empty source statement
958 if not MD_SCHED_REORDER2.
959
960 2000-12-20 Richard Henderson <rth@redhat.com>
961
962 * rtl.h (REG_NON_LOCAL_GOTO): New.
963 * rtl.c (reg_note_name): Update.
964 * stmt.c (expand_goto): Emit a REG_NON_LOCAL_GOTO note.
965 * builtins.c (expand_builtin_longjmp): Likewise.
966 * flow.c (make_edges): Check for REG_NON_LOCAL_GOTO and do
967 not emit an edge.
968
969 2000-12-20 Marek Michalkiewicz <marekm@linux.org.pl>
970
971 * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r, out_movhi_mr_r):
972 Do not output undefined opcodes where source or destination register
973 overlaps with modified pointer register. Handle (X + d) addresses.
974 * config/avr/avr.md (*movhi, *movsi, *movsf): Correct insn length
975 in alternatives with memory operand.
976
977 2000-12-20 Richard Henderson <rth@redhat.com>
978
979 * c-typeck.c (build_asm_stmt): New, broken out from ...
980 (c_expand_asm_operands): ... here. Just do rtl expansion.
981 (c_expand_return): Return the new stmt node.
982 (c_start_case, do_case): Likewise.
983 * c-common.c (c_expand_expr_stmt): Likewise.
984 * c-common.h: Update declarations.
985 * c-tree.h: Likewise.
986 * c-semantics.c (build_stmt): Use STMT_LINENO not TREE_COMPLEXITY.
987 * c-parse.in (fndef): Set DECL_SOURCE_LINE to the open brace.
988 (nested_function, notype_nested_function): Likewise.
989 (compstmt): Return the compound statement not the binding level.
990 (lineno_labeled_stmt): Simplify.
991 (lineno_stmt, lineno_label): Set STMT_LINENO.
992 (stmt, label): Return the new stmt node.
993
994 2000-12-20 Bernd Schmidt <bernds@redhat.com>
995
996 * Makefile.in (OBJS): Add sched-ebb.o.
997 (sched-ebb.o): New rule.
998 (sched-vis.o): Depend on hard-reg-set.h and $(BASIC_BLOCK_H).
999 (haifa-sched.o): Depend on insn-flags.h.
1000 * haifa-sched.c: Include "insn-flags.h".
1001 (priority): Don't access BLOCK_NUM, use the new contributes_to_priority
1002 callback.
1003 * rtl.h (schedule_ebbs): Declare.
1004 * sched-int.h (struct sched_info): Add new members
1005 contributes_to_priority and compute_jump_reg_dependencies.
1006 * sched-rgn.c (contributes_to_priority, compute_jump_reg_dependencies):
1007 New functions.
1008 (region_sched_info): Add them.
1009 * sched-vis.c: Include "hard-reg-set.h" and "basic-block.h".
1010 * sched-ebb.c: New file.
1011 * sched-deps.c (sched_analyze_insn): Add code to handle JUMP_INSNs.
1012
1013 * flow.c (ior_reg_cond, and_reg_cond, elim_reg_cond): Properly
1014 handle all relational operators.
1015
1016 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1017
1018 * final.c (output_addr_const): Use ASM_OUTPUT_SYMBOL_REF.
1019 * tm.texi: Document it.
1020
1021 2000-12-19 Benjamin Kosnik <bkoz@redhat.com>
1022
1023 * Makefile.in (-DGPLUSPLUS_TOOL_INCLUDE_DIR): Use build_tooldir
1024 instead of gcc_tooldir.
1025
1026 2000-12-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
1027
1028 * system.h (getopt): Update prototype to match include/getopt.h.
1029
1030 2000-12-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
1031
1032 From Jeff Law.
1033 * pa.c (basereg_operand): Simplify.
1034
1035 2000-12-19 Bernd Schmidt <bernds@redhat.co.uk>
1036
1037 * haifa-sched.c (rm_line_notes): Arguments are now head and tail,
1038 not block number. All callers and prototype changed.
1039 (set_priorities): Likewise.
1040 (save_line_notes): Add head and tail arguments; all callers and
1041 prototype changed.
1042 (restore_line_notes): Likewise. Don't crash on insns generated
1043 during scheduling.
1044 (schedule_block): Don't use BLOCK_HEAD/BLOCK_END macros.
1045 Call MD_SCHED_INIT with additional argument.
1046 When starting a new cycle, emit cycle_display insns if available.
1047 Don't stop scheduling when encountering a JUMP_INSN, but add another
1048 call to schedule_more_p in the inner loop.
1049 Call MD_SCHED_REORDER2 after scheduling an insn.
1050 Call MD_SCHED_FINISH once all insns are scheduled.
1051 (sched_init): Compensate for the fact that get_block_head_tail
1052 doesn't include leading notes.
1053 * sched-deps.c (free_deps): Free vectors here.
1054 * sched-rgn.c (compute_block_backward_dependencies): Not here.
1055 (last_was_jump): New static variable.
1056 (schedule_more_p): Test it.
1057 (init_ready_list): Initialize it.
1058 (can_schedule_ready_p): Set it if we have a JUMP_INSN.
1059
1060 * config/i386/i386.h (MD_SCHED_INIT): Add new arg.
1061 * config/m32r/m32r.h (MD_SCHED_INIT): Add new arg.
1062 * config/sparc/sparc.h (MD_SCHED_INIT): Add new arg.
1063
1064 * md.texi (cycle_display): Document.
1065 * tm.texi (MD_SCHED_INIT): Document new arg.
1066 (MD_SCHED_FINISH, MD_SCHED_REORDER2): Document.
1067
1068 * flow.c (ior_reg_cond, nand_reg_cond, not_reg_cond): Rewrite
1069 to use different representation. All callers changed.
1070 (and_reg_cond): Renamed from nand_reg_cond; caller changed.
1071 (init_propagate_block_info): Don't test flags to determine
1072 whether to compute conditional lifetimes.
1073 Adjust code for new representation of conditional lifetimes.
1074 (mark_regno_cond_dead): Similar adjustment.
1075 (free_reg_cond_life_info): Similar adjustment.
1076 (elim_reg_cond): New function.
1077 (flush_reg_cond_1): Use it.
1078
1079 2000-12-19 Catherine Moore <clm@redhat.com>
1080
1081 * reload1.c (reload_combine): Take multi-hard-regs into account
1082 when processing CALL_INSN_FUNCTION_USAGE.
1083
1084 2000-12-19 Joseph S. Myers <jsm28@cam.ac.uk>
1085
1086 * invoke.texi (-print-search-dirs): Make references to cpp refer
1087 to cpp0 instead.
1088
1089 2000-12-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1090
1091 * fold-const.c (tree_expr_nonnegative_p): Treat truth values as
1092 non-negative.
1093
1094 Tue Dec 19 00:37:08 2000 J"orn Rennecke <amylaar@redhat.com>
1095
1096 * reload.c (push_reload): When using a dying register for the reload
1097 register in an in-out reload, use outmode if wider than inmode.
1098
1099 2000-12-19 Joseph S. Myers <jsm28@cam.ac.uk>
1100
1101 * config/d30v/d30v.h (EXIT_BODY): Update comment.
1102
1103 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1104
1105 * config.gcc (*-*-linux*): Don't define HAVE_ATEXIT or BSTRING.
1106 * tm.texi (EXIT_BODY): Update documentation.
1107 * config/freebsd.h, config/netware.h, config/arm/coff.h,
1108 config/arm/conix-elf.h, config/arm/unknown-elf.h,
1109 config/d30v/d30v.h, config/mcore/mcore.h, config/pj/pj.h,
1110 sparc/sp86x-aout.h: Remove definitions of HAVE_ATEXIT (some
1111 commented out) and associated comments.
1112
1113 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1114
1115 * c-common.c (STD_C9L, ADJ_STD): Define.
1116 (printf_length_specs, scanf_length_specs): Mark "ll" as standard
1117 STD_C9L.
1118 (T99_LL): Rename to T9L_LL.
1119 (T99_ULL): Rename to T9L_ULL.
1120 (print_char_table, scan_char_table): Use T9L_LL and T9L_ULL
1121 instead of T99_LL and T99_ULL.
1122 (check_format_info_main): Use ADJ_STD on all format standard
1123 versions being compared.
1124 * c-common.h: Declare warn_long_long.
1125 * c-tree.h: Don't declare warn_long_long.
1126
1127 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1128
1129 * COPYING: Update to current
1130 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1131 to 19yy as example year in copyright notice).
1132
1133 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
1134
1135 * c-lex.c (cb_file_change): Treat in_system_header as strictly
1136 boolean (0 or 1).
1137
1138 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
1139
1140 * cppmain.c: Update print.lineno with -P.
1141
1142 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
1143
1144 * c-lex.c: s/change_file/file_change.
1145 * cpplib.h: Similarly.
1146 * cppmain.c: Similarly.
1147 * fix-header.c: Similarly.
1148 * cppfiles.c (stack_include_file): Pass the buffer location and
1149 size to cpp_push_buffer. Generate the file_change callback,
1150 so that sysp is already set.
1151 * cpphash.h: Add _cpp_do_file_change.
1152 * cpplib.c (do_line): Set buffer->sysp directly. Generate the
1153 file_change callback after setting sysp.
1154 (_cpp_do_file_change): Handle FC_ENTER and the FC_RENAME exception
1155 here.
1156 (cpp_push_buffer): Don't generate a callback. Clear sysp.
1157 (cpp_pop_buffer): Clean up logic.
1158
1159 2000-12-18 Benjamin Kosnik <bkoz@redhat.com>
1160
1161 * configure.in (gcc_gxx_include_dir): Simplify.
1162 (libstdcxx_incdir): Export.
1163 * configure: Regenerate.
1164 * Makefile.in (PREPROCESSOR_DEFINES): Add in
1165 GPLUSPLUS_TOOL_INCLUDE_DIR bits here..
1166 (libstdcxx_incdir): Add.
1167 * cppdefault.c (GPLUSPLUS_TOOL_INCLUDE_DIR): Add search path.
1168
1169 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
1170
1171 * c-lex.c (lex_lineno): Remove.
1172 (init_c_lex, c_lex): Remove lex_lineno.
1173 (cb_change_file): Update lineno correctly, both before calling
1174 push_srcloc and before leaving the function.
1175 (cb_def_pragma): Set lineno before outputting diagnostics.
1176
1177 Sun Dec 17 18:45:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1178
1179 * print-tree.c (print_node): Print DECL_USER_ALIGN and TYPE_USER_ALIGN.
1180 Print TYPE_MIN_VALUE and TYPE_MAX_VALUE for REAL_TYPE.
1181 Use print_node_brief to print bounds.
1182
1183 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
1184
1185 * cpplib.h (struct cpp_reader): Remove references to string_pool
1186 and temp_string_pool.
1187 * cppinit.c (cpp_create_reader, cpp_cleanup): Similarly; using
1188 ident_pool in place.
1189 * cpplex.c (parse_number, unescaped_terminator_p, parse_string,
1190 save_comment, cpp_token_as_text): Similarly.
1191 * cpplib.c (do_define, glue_header_name, parse_assertion): Similarly.
1192 * cppmacro.c (make_number_token, builtin_macro, lock_pools,
1193 unlock_pools, stringify_arg, paste_tokens): Similarly.
1194
1195 Sun Dec 17 12:41:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1196
1197 * dwarf2out.c (loc_descriptor_from_tree, case NOP_EXPR): New case.
1198 (loc_descriptor_from_tree, case CONVERT_EXPR): Likewise.
1199 (loc_descriptor_from_tree, case NON_LVALUE_EXPR): Likewise.
1200
1201 2000-12-17 Richard Earnshaw <rearnsha@arm.com>
1202
1203 * Makefile.in (check-po): Use $(MAKE).
1204 (risky-stage1, risky-stage2, risky-stage3, risky-stage4): Likewise.
1205
1206 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
1207
1208 * cppmain.c (check_multiline_token): New function.
1209 (scan_buffer): Use it.
1210 (cb_change_file): Restructure to avoid warning.
1211 * cpperror.c (print_location): Initialize col.
1212
1213 2000-12-14 Philipp Thomas <pthomas@suse.de>
1214
1215 * protoize.c (main): Correctly set locale categories.
1216 * gcc.c (main): Likewise.
1217 * cppmain.c (general_init): Likewise.
1218 * toplev.c (main): Likewise.
1219 * gcov.c (main): Likewise.
1220 * collect2.c (main): Likewise.
1221
1222 2000-12-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1223
1224 * c-common.c (c_common_nodes_and_builtins): Create a
1225 cstring_endlink, use it. Rename int_ftype_string_string to
1226 int_ftype_cstring_cstring, string_ftype_string_int to
1227 string_ftype_cstring_int, and string_ftype_string_string to
1228 string_ftype_cstring_cstring. Prefer sizetype_endlink and
1229 int_endlink to manually recreating them. Fix the prototype
1230 set for __builtin_strspn/__builtin_strcspn.
1231
1232 2000-12-12 Marek Michalkiewicz <marekm@linux.org.pl>
1233
1234 * config/avr/avr.c (out_set_stack_ptr): Update comment.
1235 (print_operand): Add support for %~ and %o.
1236
1237 2000-12-17 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1238
1239 * c4x.h: Add ASM_OUTPUT_DEF definition for bounded pointer code.
1240
1241 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
1242
1243 * c-lex.c: Move main_input_filename handling to FC_ENTER. Clean up.
1244 * cpperror.c (print_containing_files): Get right line number.
1245 (print_location): Output column of 1 if 0.
1246 * cppfiles.c (stack_include_file): cpp_push_buffer handles
1247 the callback.
1248 * cpphash.h (_cpp_do_file_change): No longer external.
1249 * cpplib.c (do_file_change): Now local to cpplib.c.
1250 (do_line): Fake a buffer stack for preprocessed files.
1251 (cpp_push_buffer): Create a file_change callback. Handle faked
1252 buffers.
1253 (cpp_pop_buffer): Similarly.
1254 * cpplib.h: BUF_FAKE: New buffer type.
1255 * cppmain.c: Update to handle correct file renaming where a
1256 #line is the first line of the main file, and produce only
1257 the renamed file, not the original file, as output.
1258
1259 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1260
1261 * config/c4x/c4x.md: Remove redundant @s from output patterns.
1262
1263 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1264 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1265
1266 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Call c4x_init_pragma.
1267
1268 * config/c4x/c4x-protos.h (c4x_init_pragma): New prototype.
1269
1270 * config/c4x/c4x.c (c4x_init_pragma): New function.
1271 (c_lex_func): New variable.
1272 (c4x_parse_pragma): Use c_lex_func.
1273
1274 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1275 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1276
1277 * config/c4x/c4x.h (MD_INIT_BUILTINS): Add void_list_node argument
1278 to c4x_init_builtins.
1279
1280 * config/c4x/c4x-protos.h (c4x_init_builtins): Add tree argument.
1281
1282 * config/c4x/c4x.c (c4x_init_builtins): Add tree argument.
1283 (c4x_output_ascii): Fix.
1284
1285 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1286 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1287
1288 * config/c4x/c4x.h (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Define.
1289
1290 * config/c4x/c4x-protos.h (c4x_init_builtins): New prototype.
1291 (c4x_expand_builtin): Likewise.
1292
1293 * config/c4x/c4x.c (c4x_init_builtins): New function.
1294 (c4x_expand_builtin): Likewise.
1295
1296 * config/c4x/c4x.md (floatunsqihf2): New pattern.
1297 (*floatqihf2_set, *fixhfqi_set, fix_trunchfqi2): Likewise.
1298 (fixuns_trunchfqi2, toieee, frieee, *ldhf_conditional): Likewise.
1299 (*ldhf_conditional_noov, movhfcc, trap, cond_trap_cc): Likewise.
1300 (*toieee_movqf_clobber, *frieee_movqf_clobber): Likewise.
1301
1302 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1303
1304 * libgcc2.h: Use Wtype for SItype and DWtype for DItype in prototypes.
1305 * libgcc2.c (__absvsi2): Use Wtype and DWtype.
1306 (__absvdi2, __addvsi3, __addvdi3, __subvsi3): Likewise.
1307 (__subvdi3, __mulvsi3, __mulvdi3, __negvsi2, __negvdi2): Likewise.
1308
1309 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1310
1311 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Enclose the block
1312 statement in do/while(0).
1313
1314 Sat Dec 16 19:56:24 MET 2000 Jan Hubicka <jh@suse.cz>
1315
1316 * i386.md (ashrsi3_cmpno, ashrhi3_cmpno, ashrqi3_cmpno, lshrsi3_cmpno,
1317 lshrhi3_cmpno): Remove redundant '@' from the template.
1318
1319 * i386.md (cmpstrsi_1): Fix type of the compare.
1320
1321 * genattrtab.c (attr_rtx_cost): New function.
1322 (simplify_test_exp): Avoid overactive inlining; use temporary
1323 obstacks for tests.
1324
1325 Sat Dec 16 10:41:11 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1326
1327 * diagnostic.c (finish_abort): Deleted.
1328 (fatal): Add code from finish_abort.
1329 (error_recursion, fancy_abort): Call fatal, not finish_abort.
1330 (trim_filename): Remove leading "../".
1331 * diagnostic.h (finish_abort): Deleted.
1332 * toplev.c (crash_signal): Call fatal, not finish_abort.
1333
1334 * stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT
1335 as if size were variable.
1336
1337 * expmed.c (expand_mult): Write REG_EQUAL note with proper mode.
1338
1339 2000-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
1340
1341 * tradcpp.c: T_WARNING: New.
1342 (do_warning): New function.
1343 (finclude): Skip past the newline and increase the line number
1344 before calling output_line_command.
1345 (do_line): Skip the new line after output_line_command. Don't
1346 pre-decrement the line number.
1347
1348 2000-12-15 Diego Novillo <dnovillo@redhat.com>
1349
1350 * i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix references to
1351 _GLOBAL_OFFSET_TABLE_ when using Intel syntax.
1352
1353 2000-12-15 Jakub Jelinek <jakub@redhat.com>
1354
1355 * gcc.c (cpp_options): Pass -fno-operator-names.
1356 * cpplib.h (struct cpp_options): Add operator_names.
1357 * cppinit.c (cpp_create_reader): Initialize it.
1358 (initialize_builtins): If -fno-operator-names, don't add
1359 C++ alternate operator names.
1360 (COMMAND_LINE_OPTIONS): Add -fno-operator-names.
1361 (cpp_handle_option): Clear operator_names.
1362
1363 2000-12-15 Jason Merrill <jason@redhat.com>
1364
1365 * jump.c (jump_optimize_1): Don't delete the line note after the
1366 prologue even if it seems redundant.
1367
1368 * config/arm/arm.c (arm_expand_prologue): Set RTX_FRAME_RELATED_P
1369 on all insns used to adjust the stack.
1370
1371 Fri Dec 15 15:32:16 MET 2000 Jan Hubicka <jh@suse.cz>
1372
1373 * combine.c (cant_combine_insn_p): Get around SUBREGs when determining
1374 hardreg<->reg moves.
1375
1376 Fri Dec 15 14:48:37 MET 2000 Jan Hubicka <jh@suse.cz>
1377
1378 * genrecog.c (add_to_sequence): Remove special case for
1379 const_int_operand.
1380 (maybe_both_true): Return 1 when falling out of sequence when
1381 trying to find common possition in the pattern.
1382
1383 Fri Dec 15 14:44:51 MET 2000 Jan Hubicka <jh@suse.cz>
1384
1385 * integrate.c (copy_rtx_and_substitute): Copy mode too.
1386
1387 Fri Dec 15 14:11:57 MET 2000 Jan Hubicka <jh@suse.cz>
1388
1389 * flow.c (notice_stack_pointer_modification_1): Cleanup.
1390
1391 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1392
1393 * function.c (adjust_trampoline_addr): New function.
1394 (trampoline_address): Call it instead of round_trampoline_addr().
1395 * tm.texi (TRAMPOLINE_ADJUST_ADDRESS): Document it.
1396
1397 2000-12-14 Zack Weinberg <zack@wolery.stanford.edu>
1398
1399 * cppfiles.c (hack_vms_include_specification): Delete function
1400 (not used since 1998).
1401
1402 Fri Dec 15 03:37:51 2000 J"orn Rennecke <amylaar@redhat.com>
1403
1404 * haifa-sched.c (sched_init): Don't put a note in front of any BARRIER.
1405
1406 2000-12-14 Jim Wilson <wilson@redhat.com>
1407
1408 * alias.c (get_alias_set): Call record_component_aliases for
1409 COMPLEX_TYPE.
1410 (record_component_aliases): Handle COMPLEX_TYPE.
1411
1412 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1413
1414 * fixinc/gnu-regex.c: Disable NLS.
1415
1416 2000-12-14 Richard Henderson <rth@redhat.com>
1417
1418 * config/alpha/alpha.c (alpha_emit_conditional_move): Do not swap
1419 comparison operands when that would create non-canonical rtl.
1420
1421 * config/i386/i386.md (umulsi3_highpart): Remove * from name.
1422 (smulsi3_highpart): Likewise.
1423
1424 2000-12-14 Neil Booth <neil@daikokuya.demon.co.uk>
1425
1426 * gcc.c (cpp_options): Add -remap.
1427
1428 2000-12-14 Neil Booth <neil@daikokuya.demon.co.uk>
1429
1430 * gcc.c (cpp_options): Update to use '&'.
1431 (struct switchstr): Change type of validated to save space.
1432 New member 'ordering'.
1433 (handle_braces, validate_switches): Update to handle '&'.
1434
1435 2000-12-13 Laurynas Biveinis <lauras@softhome.net>
1436
1437 * fixinc/inclhack.def: skip stdio_va_list fix if __DJ_va_list
1438 found in a header.
1439 * fixinc/fixincl.x: regenerated.
1440
1441 2000-12-13 DJ Delorie <dj@redhat.com>
1442
1443 * config.gcc (cygwin, win32, mingw32): Use float-i386.h.
1444
1445 2000-12-13 Tom Tromey <tromey@redhat.com>
1446
1447 * gcc.c (handle_braces): Handle %{<S*} spec correctly.
1448
1449 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1450
1451 * function.c (assign_parms): Optimize incoming PARALLELs into
1452 REGs if possible.
1453
1454 2000-12-13 Bruce Korb <bkorb@gnu.org>
1455
1456 * fixinc/Makefile.in(*): substantial rewrite to accommodate systems
1457 that cannot handle bi-directional pipes, viz. BeOS and DOS.
1458 * fixinc/fixlib.h(IGNORE_ARG): new macro
1459 (STATIC): define for all of fixinc to use
1460 * fixinc/fixfixes.c(*): eliminate unused arg warnings
1461 * fixinc/fixtests.c(*): ditto
1462 * fixinc/fixincl.c(start_fixer): chain_open now uses const arg list
1463 * fixinc/gnu-regex.c: reorder some includes to avoid _GNU_SOURCE
1464 warning. Also, eliminate the ``#ifdef emacs'' stuff.
1465 (re_syntax_options): make global as it is declared so.
1466 * fixinc/mkfixinc.sh: process the argument list more consistently
1467 (beos/msdosdjgpp): set TARGETS to twoprocess vs. oneprocess
1468 * fixinc/procopen.c(globals): include "fixlib.h" for std defs
1469 * fixinc/server.c(globals): ditto
1470 * fixinc/server.h(defines): ditto
1471
1472 2000-12-13 Neil Booth <neil@daikokuya.demon.co.uk>
1473
1474 * tradcpp.c (special_symbol): Improve test for definedness,
1475 though it is still not perfect.
1476 (do_define): Don't define illegal macro names.
1477
1478 2000-12-07 Aldy Hernandez <aldyh@redhat.com>
1479
1480 * config/mips/elf.h (ASM_OUTPUT_SECTION_NAME): emit @nobits
1481 if changing into .bss section.
1482 * config/mips/elf64.h: same.
1483 * config/mips/iris6.h: same.
1484 * config/mips/netbsd.h: same.
1485 * config/mips/openbsd.h: same.
1486
1487 2000-12-13 Neil Booth <neil@daikokuya.demon.co.uk>
1488
1489 * cppfiles.c (read_name_map): Return null if open () fails.
1490 (remap_filename): Simplify logic. Add ICE if it doesn't work
1491 as expected. Perform secondary lookup attempt on base filename
1492 only.
1493
1494 Wed Dec 13 19:48:04 MET 2000 Jan hubicka <jh@suse.cz>
1495
1496 * flow.c (notice_stack_pointer_modification_1): Notice midifications
1497 using PRE_MODIFY and POST_MODIFY.
1498
1499 Wed Dec 13 17:25:32 MET 2000 Jan Hubicka <jh@suse.cz>
1500
1501 * genoutput.c (process_template): Add sanity checking for '@' templates.
1502
1503 2000-12-13 Bernd Schmidt <bernds@redhat.co.uk>
1504
1505 * simplify-rtx.c (cselib_finish): Free reg_values and used_regs
1506 varrays.
1507
1508 2000-12-12 Mike Stump <mrs@wrs.com>
1509
1510 * Makefile.in (distclean): Remove safe-ctype.c as well.
1511
1512 2000-12-12 Brad Lucier <lucier@math.purdue.edu>
1513
1514 * tradcpp.c (do_error): Cast difference of pointers to int
1515 for error message.
1516
1517 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1518
1519 * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here...
1520 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): ...to here.
1521
1522 2000-12-12 Jim Wilson <wilson@redhat.com>
1523
1524 * rtlanal.c (may_trap_p): Check operand modes of LE, LT, GE, and GT.
1525
1526 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1527
1528 * configure.in: Simplify language enabling/disabling code.
1529 * configure: Rebuilt.
1530 * ch/config-lang.in (target_libs): Set.
1531 (build_by_default): Set to no.
1532 * cp/config-lang.in (target_libs): Set.
1533 * f/config-lang.in (target_libs): Set.
1534 * java/config-lang.in (target_libs): Set.
1535 * objc/config-lang.in (target_libs): Set.
1536
1537 2000-12-12 Neil Booth <neil@daikokuya.demon.co.uk>
1538
1539 * tradcpp.c (enum node_type): Add T_ERROR.
1540 (do_error): New function.
1541 (directive_table): Add #error handler.
1542
1543 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1544
1545 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Enable .file/.loc check
1546 for powerpc*-*-*.
1547 * configure: Regenerated.
1548 * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1549 * config/rs6000/rs6000.c (rs6000_unique_section): Use
1550 STRIP_NAME_ENCODING.
1551
1552 Mon Dec 11 13:51:09 2000 Jeffrey A Law (law@cygnus.com)
1553
1554 * pa.c (cmpib_comparison_operator): Remove GEU and LTU.
1555 * pa.h (PREDICATE_CODES, cmpib_comparison_operator): Corresponding
1556 changes.
1557
1558 2000-12-11 Bruce Korb <bkorb@gnu.org>
1559
1560 * fixinc/fixincl.tpl: initialize all fields for warnings
1561 * fixinc/fixincl.x: regenerate
1562
1563 2000-12-11 Neil Booth <neilb@earthling.net>
1564
1565 * tradcpp.h: For tradcpp, NUL is not whitespace.
1566
1567 2000-12-11 Neil Booth <neilb@earthling.net>
1568
1569 * fix-header.c (read_scan_file): Macro expansion is not a file buffer.
1570
1571 2000-12-05 Marek Michalkiewicz <marekm@linux.org.pl>
1572
1573 * config/avr/avr.c (compare_condition, compare_sign_p): New functions.
1574 (compare_diff_p, compare_eq_p): Call compare_condition.
1575 (out_tsthi, out_tstsi): Call compare_sign_p.
1576 (avr_progmem_p): Check for error_mark_node.
1577
1578 2000-12-11 Neil Booth <neilb@earthling.net>
1579
1580 * cpperror.c (print_location): New function.
1581 (print_containing_files): Simplify.
1582 (_cpp_begin_message): Simplify and use print_location.
1583 * cppfiles.c (stack_include_file): Update.
1584 (_cpp_pop_file_buffer): Update.
1585 * cpphash.h (struct cpp_buffer): New members
1586 include_stack_listed and type.
1587 * cpplib.c (_cpp_handle_directive): Buffer->inc is not null.
1588 (run_directive): Take buffer type. cpp_push_buffer cannot fail.
1589 (_cpp_do__Pragma, cpp_define, _cpp_define_builtin, cpp_undef,
1590 handle_assertion): Update.
1591 (cpp_push_buffer): Take a buffer type and file name.
1592 (cpp_pop_buffer): Update. Clear include_stack_listed.
1593 * cpplib.h (input_stack_listing_current): Remove.
1594 (enum cpp_buffer_type): New.
1595 (cpp_push_buffer): New prototype.
1596 * cppmacro.c (builtin_macro): Simplify; buffer cannot be null.
1597 * fix-header.c (read_scan_file): Update.
1598
1599 2000-12-10 Robert Lipe <robertlipe@usa.net>
1600
1601 * install.texi (i*86-*-sco3.2v5*): Remove information duplicated
1602 in html version.
1603
1604 2000-12-10 Richard Henderson <rth@redhat.com>
1605
1606 * genrecog.c (find_operand): Handle 'V' format code.
1607 (find_matching_operand): New.
1608 (validate_pattern): Accept '=' for an in-out operand if there
1609 is another operand with a matching constraint.
1610
1611 * config/i386/i386.md (andqi_ext_0_cc): Use matching constraint
1612 for op1 to op0.
1613
1614 2000-12-10 Richard Henderson <rth@redhat.com>
1615
1616 * genrecog.c (validate_pattern) [STRICT_LOW_PART]: Fix thinko.
1617
1618 2000-12-09 Richard Henderson <rth@redhat.com>
1619
1620 * genrecog.c (validate_pattern): Verify that ZERO_EXTRACT and
1621 STRICT_LOW_PART as SET_DEST have in-out constraints.
1622
1623 2000-12-09 Joseph S. Myers <jsm28@cam.ac.uk>
1624
1625 * c-common.c (check_function_format): Don't suggest adding format
1626 attributes to functions with no parameter to which to add them.
1627
1628 2000-12-09 Nick Clifton <nickc@redhat.com>
1629
1630 * config/arm/arm.c (arm_expand_prologue): Mark the generated
1631 insn not the set as being DWARF2_FRAME_RELATED_P.
1632
1633 2000-12-09 Laurynas Biveinis <lauras@softhome.net>
1634
1635 * Makefile.in: use $(build_exeext) for all build
1636 system executable targets.
1637
1638 2000-12-09 Laurynas Biveinis <lauras@softhome.net>
1639
1640 * install.texi: remove i[345]86-*-winnt3.5 section.
1641 * configur.bat: removed.
1642 * config/msdos: directory removed.
1643
1644 2000-12-09 Neil Booth <neilb@earthling.net>
1645
1646 * cppfiles.c (NEVER_REREAD, DO_NOT_REREAD): Move from cpphash.h.
1647 * cpphash.h (NEVER_REREAD, DO_NOT_REREAD, ABSOLUTE_PATH): Delete.
1648 * cpplex.c (parse_identifier): Improve diagnostic.
1649 (_cpp_lex_token): Return unconditionally at the end of a directive.
1650 * cpplib.c (read_flag): Verify legality of each flag.
1651 (end_directive): Resotre pfile->skipping before skip_rest_of_line.
1652 (do_line): Use the new read_flag.
1653 * cppmacro.c (struct cpp_macro, parse_arg, replace_args,
1654 check_macro_redefinition, parse_params): Rename var_args to
1655 variadic.
1656
1657 2000-12-09 Joseph S. Myers <jsm28@cam.ac.uk>
1658
1659 * .cvsignore: Add info files.
1660
1661 2000-12-08 Laurynas Biveinis <lauras@softhome.net>
1662
1663 * config/winnt: Remove obsolete directory.
1664 * install.texi (Configurations): Remove obsolete documentation for
1665 Windows NT.
1666
1667 2000-12-08 Joseph S. Myers <jsm28@cam.ac.uk>
1668
1669 * configure.in: Don't define INSTALL_INFO.
1670 * configure: Regenerate.
1671 * Makefile.in (INSTALL_INFO): Remove.
1672 (info): Depend on info files in source directory.
1673 (cpp.info, gcc.info, c-tree.info): Build info files in source
1674 directory.
1675 (distclean): Don't remove info files.
1676 (maintainer-clean): Remove info files from source directory.
1677 (install-normal): Depend on install-info.
1678 (install-info): Install info files from source directory, if they
1679 exist.
1680 * texinfo.tex: Update to version 2000-11-09.08 from ftp.gnu.org.
1681
1682 2000-12-08 Alexandre Oliva <aoliva@redhat.com>
1683
1684 * lcm.c (optimize_mode_switching): Check whether an insn is a NOTE
1685 before taking its NOTE_LINE_NUMBER.
1686
1687 2000-12-08 Nick Clifton <nickc@redhat.com>
1688
1689 * config/arm/arm.md (load_indirect_jump): Add pool ranges.
1690
1691 * extend.texi: Document ARM "interrupt" function attribute.
1692 Mention that the ARM also support the "naked" function
1693 attribute.
1694
1695 * config/arm/arm-protos.h (arm_current_func_type): Add
1696 prototype.
1697
1698 * config/arm/arm.h (EXCEPTION_LR_REGNUM): Define.
1699 (struct machine_function): Add 'func_type' field.
1700 Define bit values for 'func_type' field.
1701 (ARM_FUNC_TYPE): New macro.
1702 (IS_INTERRUPT): New macro.
1703 (IS_VOLATILE): New macro.
1704 (IS_NAKED): New macro.
1705 (IS_NESTED): New macro.
1706 (ARM_INITIAL_ELIMINATION_OFFSET): Use IS_VOLATILE.
1707
1708 * config/arm/arm.c (isr_attribute_args): New Structure. A
1709 list of "interrupt" function attribute modifiers.
1710 (arm_isr_value): New Function: Returns the type of the current
1711 interrupt function.
1712 (arm_compute_func_type): New Function: Computes the type of
1713 the current function.
1714 (arm_current_func_type): New Function: Returns the type of the
1715 current function.
1716 (use_return_insn): Use arm_current_func_type.
1717 (arm_valid_type_attribute_p): Accept "interrupt" function
1718 attribute.
1719 (arm_comp_type_attributes): Check "interrupt" attributes.
1720 (arm_valid_machine_decl): Accept "interrupt" function
1721 attribute.
1722 (arm_function_ok_for_sibcall): Do not allow interrupt
1723 functions to use sibcalls.
1724 (arm_naked_function_p): Delete.
1725 (print_multi_reg): Remove redundant parameter 'hat'.
1726 (arm_compute_save_reg_mask): New Function: Compute a bit mask
1727 of registers saved during the current function's prologue.
1728 (output_arm_return_instruction): Use arm_current_func_type.
1729 Generate return instruction when LR is not poppsed off the
1730 stack.
1731 (arm_volatile_func): Delete.
1732 (output_arm_prologue): Use arm_current_func_type and
1733 arm_compute_save_reg_mask.
1734 Note presernce of interrupt functions.
1735 (arm_output_epilogue): Use arm_current_func_type and
1736 arm_compute_save_reg_mask.
1737 (arm_expand_prologue): Use arm_current_func_type and
1738 arm_compute_save_reg_mask.
1739 (arm_init_machine_status): Initialise func_type field, if
1740 necessary.
1741 (thumb_expand_prologue): Use arm_current_func_type.
1742 (output_thumb_prologue): Use arm_current_func_type.
1743
1744 2000-12-08 Brad Lucier <lucier@math.purdue.edu>
1745
1746 * tradcpp.c (do_include): Make pointer differences 64-bit clean.
1747
1748 Fri Dec 8 08:23:29 2000 J"orn Rennecke <amylaar@redhat.com>
1749
1750 * fp-bit.c (_fpmul_parts): Use USItype variables as inputs
1751 for multiplies.
1752
1753 2000-12-07 Mike Stump <mrs@wrs.com>
1754
1755 * Makefile.in (distclean): Remove alloca.c hashtab.c.
1756
1757 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1758
1759 * Makefile.in (HOST_RTL): Add safe-ctype.o.
1760 (safe-ctype.o): New rule.
1761 * system.h: Include safe-ctype.h, not ctype.h. No need to
1762 wrap ctype macros.
1763
1764 * cpphash.h: Zap IStable and related macros. Define is_* in
1765 terms of safe-ctype.h macros.
1766 * cppinit.c: Delete the IStable and all related code.
1767
1768 * tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
1769 is_space arrays. Delete initialize_char_syntax. Change all
1770 references to the above arrays to use macros instead.
1771 * tradcpp.h: Define is_idchar, is_idstart, is_space, and
1772 is_nvspace in terms of safe_ctype.h's macros.
1773 * tradcif.y: is_idchar, is_idstart are macros not arrays.
1774
1775 * config/i370/i370.c, config/winnt/dirent.c,
1776 config/winnt/fixinc-nt.c, config/winnt/ld.c:
1777 Use uppercase ctype macros. If we included ctype.h,
1778 include safe-ctype.h instead.
1779
1780 * fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
1781 ISLOWER(c) before calling TOUPPER(c).
1782 * fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
1783 * fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
1784 wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
1785
1786 2000-12-07 DJ Delorie <dj@redhat.com>
1787
1788 * c-decl.c (grokdeclarator): preserve previous alignments when
1789 rebuilding array types.
1790
1791 2000-12-07 Neil Booth <neilb@earthling.net>
1792
1793 * cppfiles.c (struct include_file): Move from cpphash.h.
1794 (_cpp_never_reread): New function.
1795 (open_file, read_include_file): Use it.
1796 (stack_include_file): Set the buffer's sysp according to the
1797 path in which the file was found.
1798 (find_include_file): Don't set sysp.
1799 (cpp_make_system_header, actual_directory): Update.
1800 (_cpp_execute_include): Do #include_next lookup handling here,
1801 not in cpplib.c. Use _cpp_never_reread.
1802 * cpphash.h (struct_include_file): Remove.
1803 (struct cpp_buffer): New member sysp.
1804 (CPP_IN_SYSTEM_HEADER, _cpp_execute_include): Update.
1805 (_cpp_never_reread): New.
1806 * cpplib.c (read_line_number): Rename read_flag. Rework slightly.
1807 (end_directive): Clear line_extension flag.
1808 (_cpp_handle_directive): Set line_extension flag for #number.
1809 (do_include_next): Handle path lookup in _cpp_execute_include.
1810 (do_line): Cleanup to use read_flag. Don't allow flags in #line.
1811 (_cpp_do_file_change): Update.
1812 (do_pragma_once): Use cpp_never_reread. Clean up.
1813 * cpplib.h (struct lexer_state): New member line_extension.
1814
1815 2000-12-07 Richard Henderson <rth@redhat.com>
1816
1817 * flow.c (calculate_global_regs_live): Force the stack pointer live
1818 after reload as well.
1819
1820 2000-12-07 Bruce Korb <bkorb@gnu.org>
1821
1822 * fixinc/Makefile.*(exeext): the variables are exeext, the
1823 substitution expression is build_exeext.
1824
1825 2000-12-07 Neil Booth <neilb@earthling.net>
1826
1827 * c-common.c (parse_in): Make a cpp_reader *.
1828 * cppfiles.c (_cpp_fake_include): Remove.
1829 * cpphash.h: Similarly.
1830 * cpplib.c (do_line): Don't call _cpp_fake_include. A valid
1831 #line always creates a callback; FC_RENAME if there are no
1832 #line flags.
1833 * fix-header.c (read_scan_file): cpp_push_buffer cannot fail.
1834 The first EOF must be our get_char buffer.
1835
1836 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
1837
1838 * c-common.c (warn_format_security): New variable.
1839 (check_format_info): Warn about non-literal formats with no format
1840 arguments if either -Wformat-nonliteral or -Wformat-security is
1841 specified.
1842 (set_Wformat): Set warn_format_security for settings other than 1.
1843 * c-common.h (warn_format_security): Declare.
1844 * c-decl.c (c_decode_option): Decode -Wformat-security and
1845 -Wno-format-security.
1846 * invoke.texi: Document -Wformat-security.
1847 * toplev.c (documented_lang_options): Include -Wformat-security
1848 and -Wno-format-security.
1849
1850 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
1851
1852 * c-common.c (check_format_info): Warn for non-constant format
1853 strings with strftime formats if -Wformat-nonliteral. Where the
1854 format can convert arguments, if the format is not a string
1855 literal and there are no arguments to the format, give a different
1856 warning message from the general non-string-literal case.
1857
1858 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
1859
1860 * c-common.c (format_wanted_type): Add reading_from_flag.
1861 (print_char_table): Mark %s and %S formats with flag "R".
1862 (check_format_info_main): Set up reading_from_flag appropriately.
1863 If aflag, always set writing_in_flag rather than relying on the
1864 format used being a scanf format and so having it set.
1865 (check_format_types): Check for formats reading through null
1866 pointers.
1867
1868 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
1869
1870 * invoke.texi (-Wformat): Document what format features are
1871 checked.
1872
1873 2000-12-06 Kazu Hirata <kazu@hxi.com>
1874
1875 * config/h8300/h8300.h: Fix formatting.
1876
1877 2000-12-06 Joel Sherrill <joel@OARcorp.com>
1878
1879 * config.gcc (a29k*-*-rtems*, arm*-*-rtems*, c4x-*-rtems*,
1880 h8300-*-rtems*, hppa1.1-*-rtems, *mips*-*-rtems*): New targets.
1881 * config.gcc (*-rtems*): Add support for gthr-rtems.h.
1882 * gthr-rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1883 config/h8300/rtems.h, config/mips/rtems.h: New files.
1884
1885 2000-12-06 Mark Kettenis <kettenis@gnu.org>
1886
1887 * config.gcc: Reorganize handling of *-*-gnu*, to share target
1888 specific make details with Linux. Update comments to clarify
1889 the distinction between GNU/Linux and GNU/Hurd.
1890
1891 Wed Dec 6 19:22:02 2000 Jeffrey A Law (law@cygnus.com)
1892
1893 * contrib.texi: Fix my email address. Update Per's
1894 list of contributions.
1895
1896 2000-12-06 Rodney Brown <RodneyBrown@mynd.com>
1897
1898 * c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
1899 * collect2.c (scan_libraries): Remove unused `ch'.
1900 (COFF specific stuff): Prototype ldgetname. Declare and prototype
1901 ldbtread and ldclose.
1902
1903 * config/alpha/osf.h: Standarize copyright statement.
1904 * config/arc/arc.h: Likewise.
1905 * config/arm/elf.h config/arm/coff.h config/arm/aout.h: Likewise.
1906 * config/arm/arm.c config/arm/arm.h: Likewise.
1907 * config/elxsi/elxsi.h: Likewise.
1908 * config/i386/sco.h: Likewise.
1909 * config/m68k/crds.h config/m68k/hp320.h config/m68k/lynx.h: Likewise.
1910 * config/m68k/m68kv4.h config/m68k/next21.h: Likewise.
1911 * config/m68k/sun3.h: Likewise.
1912 * config/m88k/dgux.h config/m88k/dguxbcs.h: Likewise.
1913 * config/pdp11/2bsd.h config/pdp11/pdp11.h: Likewise.
1914 * config/romp/romp.h: Likewise.
1915 * config/rs6000/aix41.h: Likewise.
1916 * config/sparc/sysv4.h: Likewise.
1917 * config/we32k/we32k.c config/we32k/we32k.h: Likewise.
1918 * fixinc/gnu-regex.c fixinc/gnu-regex.h: Likewise.
1919 * cpplib.h cppexp.c cselib.h profile.c: Likewise.
1920 * longlong.h: Likewise.
1921 * libgcc2.c: Likewise.
1922
1923 2000-12-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1924
1925 * machmode.def: Use correct definition for BITSIZE on targets where
1926 BITS_PER_UNIT != 8.
1927
1928 2000-12-06 Bruce Korb <bkorb@gnu.org>
1929
1930 * fixinc/Makefile.*: Reduce differences to (ultimately) reduce
1931 the number of them.
1932
1933 2000-12-06 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1934
1935 * pa.c: Include expr.h before c-tree.h.
1936 (remove_useless_addtr_insns): Use reverse_condition_maybe_unordered
1937 instead of reverse_condition.
1938 (print_operand): Correct predicates for GT, GE, LT and LE. Add
1939 predicates for LTGT, UNLE, UNLT, UNGE, UNGT, UNEQ, UNORDERED and
1940 ORDERED.
1941 (cmpib_comparison_operator): Add GEU and LTU codes.
1942 * pa.h (PREDICATE_CODES): Add codes for cmpib_comparison_operator.
1943 * pa.md (bltgt, bunle, bunlt, bunge, bungt, buneq, bunordered,
1944 bordered): New float conditional branch patterns.
1945
1946 Wed Dec 6 21:03:41 2000 J"orn Rennecke <amylaar@redhat.com>
1947
1948 * final.c (final_addr_vec_align): Fix clipping to BIGGEST_ALIGNMENT.
1949
1950 2000-12-06 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
1951
1952 * cpplex.c (skip_escaped_newlines): Don't warn for spaces between
1953 backslash and newline, when inside a comment.
1954
1955 2000-12-06 Joseph S. Myers <jsm28@cam.ac.uk>
1956
1957 * invoke.texi: Use @table @samp instead of @itemize @minus for
1958 table of language standards. Fix use of @pxref. From Zack
1959 Weinberg. Also exclude specs documentation from generated
1960 manpage, and create separate ENVIRONMENT section.
1961
1962 2000-12-06 Michael Matz <matzmich@cs.tu-berlin.de>
1963
1964 * gcse.c (compute_pre_data): Kill trapping expressions in
1965 destination blocks of abnormal edges.
1966
1967 2000-12-05 Richard Sandiford <r.sandiford@redhat.com>
1968
1969 * config/mn10300/mn10300.c (mn10300_print_reg_list): Added.
1970 (mn10300_get_live_callee_saved_regs): Likewise.
1971 (mn10300_gen_multiple_store): Likewise.
1972 (store_multiple_operation): Likewise.
1973 (expand_prologue): Use mn10300_gen_multiple_store().
1974 * config/mn10300/mn10300-protos.h (mn10300_print_reg_list): Added.
1975 (mn10300_get_live_callee_saved_regs): Likewise.
1976 (mn10300_gen_multiple_store): Likewise.
1977 (store_multiple_operation): Likewise.
1978 * config/mn10300/mn10300.md (store_movm): Use a MATCH_PARALLEL
1979 tied to store_multiple_operation().
1980
1981 Tue Dec 5 20:09:14 2000 Jeffrey A Law (law@cygnus.com)
1982
1983 * builtins.c (expand_builtin_setjmp_setup): Set
1984 current_function_has_nonlocal_label.
1985
1986 2000-12-05 Neil Booth <neilb@earthling.net>
1987
1988 * cppfiles.c (stack_include_file): Push zero-length buffers
1989 in case of failure. Return void, as we don't fail any more.
1990 (read_include_file): Check for files we shouldn't re-read.
1991 Don't return an error code; errors are implied by marking the
1992 file NEVER_REREAD.
1993 (_cpp_execute_include): Move the recursion and in-macro checks
1994 here. Update for stack_include_file not failing.
1995 * cpplib.c (cpp_push_buffer): Always succeed, since
1996 _cpp_execute_include performs the recursion check. Tidy up.
1997 * cpplib.h (cpp_push_buffer): Update prototype.
1998
1999 2000-12-05 Alexandre Oliva <aoliva@redhat.com>
2000
2001 * sched-vis.c (visual_tbl_line_length): New variable.
2002 (get_visual_tbl_length): Set it.
2003 (visualize_stall_cycles): Don't let stalls overrun
2004 visual_tbl_line_length.
2005
2006 2000-12-05 Geoffrey Keating <geoffk@redhat.com>
2007
2008 * global.c (global_conflicts): Allow for a REG_UNUSED note
2009 with a different mode to the REG set in the insn.
2010
2011 2000-12-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2012
2013 * Makefile.in (fixinc.sh): Pass $WARN_CFLAGS into fixinc dir.
2014
2015 * fixinc/Makefile.in (FIXINC_DEFS): Add $(WARN_CFLAGS).
2016
2017 2000-12-05 Bruce Korb <bkorb@gnu.org>
2018
2019 * fixinc/mkfixinc.sh(*-gnu*): activate fixinc for GNU/Hurd and
2020 GNU/Linux.
2021
2022 2000-12-05 Richard Earnshaw <rearnsha@arm.com>
2023
2024 * fixinc/mkfixinc.sh: Run fixinc on netbsd.
2025 * fixinc/inclhack.def (machine/ansi.h): Run this rule on all files,
2026 to cope with aliased copies.
2027 * fixinc/fixincl.x: Regenerate.
2028
2029 2000-12-05 Bernd Schmidt <bernds@redhat.co.uk>
2030
2031 * sched-vis.c: Guard with #ifdef INSN_SCHEDULING.
2032 * sched-rgn.c: Likewise.
2033 (rgn_print_insn): Fix output.
2034
2035 2000-12-05 Bruce Korb <bkorb@gnu.org>
2036
2037 * fixinc/Makefile.*: make these more consistent
2038 * fixinc/mkfixincl.sh: enable BeOS fixincludes
2039
2040 2000-12-05 Richard Henderson <rth@redhat.com>
2041
2042 * stmt.c (warn_if_unused_value): Move side effects test earlier.
2043
2044 2000-12-05 Alan Modra <alan@linuxcare.com.au>
2045
2046 * bb-reorder.c (reorder_basic_blocks): Do check for EH edges even
2047 when using sjlj.
2048
2049 2000-12-05 Richard Henderson <rth@redhat.com>
2050
2051 * flow.c (calculate_global_regs_live): Only force stack pointer
2052 live before reload. Force pic register live before reload.
2053 (insn_dead_p): Don't protect pic references from deletion.
2054
2055 2000-12-05 Joseph S. Myers <jsm28@cam.ac.uk>
2056
2057 * invoke.texi: Add support for using texi2pod.pl. Don't use
2058 @multitable.
2059
2060 2000-12-04 Nick Clifton <nickc@redhat.com>
2061
2062 * config/arm/arm.c (arm_override_options): Test 'insn_flags' not
2063 'tune_flags' for XScale nature.
2064 Remove spurious test of HARD_FLOAT and XScale flags.
2065
2066 * config/arm/arm.md (umulsidi3adddi): Restore "=&r" register
2067 contraint, accidentally changed during XScale contribution.
2068
2069 * config/arm/lib1funcs.asm (interwork_call_via_, call_via_): Do
2070 not create these functions if the target architecture does not
2071 support Thumb instructions.
2072
2073 2000-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
2074
2075 * ONEWS: New file with the current contents of NEWS up to EGCS
2076 1.1.
2077 * NEWS: Generate automatically from online release notes from EGCS
2078 1.0 to GCC 2.95.2, using ../contrib/gennews.
2079
2080 2000-12-04 Neil Booth <neilb@earthling.net>
2081
2082 * tradcif.y: Move lexptr to top of file. Add rule to handle
2083 assertions in conditional expressions.
2084 * tradcpp.c (parse_answer): Assertions do not need to go to
2085 end of line in conditional directives.
2086 (parse_assertion): Get first character of identifiers correct.
2087 (test_assertion): New function.
2088 * tradcpp.h (test_assertion): New prototype.
2089
2090 2000-12-01 Rodney Brown <RodneyBrown@mynd.com>
2091
2092 * config.gcc: Fix typo for UnixWare 7.
2093
2094 2000-12-03 Phil Edwards <pme@sources.redhat.com>
2095
2096 * invoke.texi: Replace `pedwarns' with clearer text.
2097
2098 2000-12-04 Bruce Korb <bkorb@gnu.org>
2099
2100 * fixinc/Makefile.*(clean): don't clean autogenerated files.
2101 (mainainer-clean): clean autogenerated files
2102
2103 2000-12-04 DJ Delorie <dj@redhat.com>
2104
2105 * md.texi: Add overview, clarify match_dup and define_expand.
2106
2107 2000-12-04 DJ Delorie <dj@redhat.com>
2108
2109 * print-tree.c (print_node): Target-specific builtins print
2110 numbers, not names.
2111
2112 2000-12-04 Jason Merrill <jason@redhat.com>
2113
2114 * stor-layout.c (int_mode_for_mode): Handle MODE_VECTOR_INT,
2115 MODE_VECTOR_FLOAT.
2116
2117 * diagnostic.c (report_problematic_module): s/function/module/.
2118
2119 * c-lex.h: Remove decl for check_newline.
2120
2121 2000-12-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2122
2123 * README.APOLLO: Remove obsolete file.
2124
2125 2000-12-04 Neil Booth <neilb@earthling.net>
2126
2127 * cppinternals.texi: New file.
2128
2129 2000-12-04 Neil Booth <neilb@earthling.net>
2130
2131 * cppfiles.c (cpp_make_system_header): Take 2 booleans,
2132 and operate on current buffer.
2133 (cpp_read_file): Rename _cpp_read_file.
2134 * cpplib.c (do_line, do_pragma_system_header): Update calls to
2135 cpp_make_system_header.
2136 * fix-header.c: Similarly.
2137 * cpphash.h (_cpp_read_file): Move from...
2138 * cpplib.h: ... here.
2139 * cppinit.c (do_includes, cpp_start_read): Update appropriately.
2140
2141 2000-12-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2142
2143 * builtins.c (expand_builtin_strspn, expand_builtin_strcspn):
2144 Handle another transformation.
2145
2146 2000-12-03 Nick Clifton <nickc@redhat.com>
2147
2148 * config.gcc: Add support for StrongARM targets.
2149 * config/arm/t-strongarm-elf: New file.
2150 * config/arm/t-strongarm-coff: New file.
2151 * config/arm/t-strongarm-pe: New file.
2152 * config/arm/strongarm-pe.h: New file.
2153
2154 2000-12-03 Nick Clifton <nickc@redhat.com>
2155
2156 * NEWS: Mention XScale has been added.
2157 * config.gcc: Add support for XScale targets.
2158 * config/arm/arm.h: Add support for XScale processor.
2159 * config/arm/arm.c: Add support for XScale processor.
2160 * config/arm/arm.md: Add support for XScale processor.
2161 * config/arm/t-xscale-elf: New file.
2162 * config/arm/t-xscale-coff: New file.
2163 * config/arm/xscale-elf.h: New file.
2164 * config/arm/xscale-coff.h: New file.
2165
2166 2000-12-03 Richard Henderson <rth@redhat.com>
2167
2168 * bb-reorder.c (reorder_basic_blocks): Don't check for EH edges
2169 unless exception handling is enabled, and if not using sjlj.
2170
2171 * builtins.c (expand_builtin_setjmp_setup): New.
2172 (expand_builtin_setjmp_receiver): New.
2173 (expand_builtin_setjmp): Split out _setup and _receiver functions.
2174 Move argument parsing in from ...
2175 (expand_builtin): ... here.
2176 * except.c (receive_exception_label): Branch around receiver
2177 unless new-style exceptions. Call expand_builtin_setjmp_receiver.
2178 (start_dynamic_handler): Call expand_builtin_setjmp_setup.
2179 * expr.h: Update builtin setjmp decls.
2180
2181 2000-12-03 Bruce Korb <bkorb@gcc.org>
2182
2183 * fixinc/mkfixinc.sh(build machine): Sometimes, there is no canonical
2184 build machine name. Default to the target.
2185
2186 2000-12-03 Laurynas Biveinis <lauras@softhome.net>
2187
2188 * Makefile.in: use $(build_canonical), not $(canonical_build).
2189
2190 2000-12-03 Bernd Schmidt <bernds@redhat.co.uk>
2191
2192 * Makefile.in (OBJS): Add sched-rgn.o.
2193 (sched-rgn.o): New rule. * haifa-sched.c (sched_verbose): No
2194 longer static.
2195 (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
2196 INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
2197 UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
2198 MAX_BLOCKAGE_COST): Move to sched-int.h.
2199 (MAX_RGN_BLOCKS, MAX_RGN_INSNS, INSN_REF_COUNT, FED_BY_SPEC_LOAD,
2200 IS_LOAD_INSN, struct haifa_edge, edge_table, NEXT_IN, NEXT_OUT,
2201 FROM_BLOCK, TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES,
2202 OUT_EDGES, edgelst, struct region, nr_regions, rgn_table,
2203 rgn_bb_table, block_to_bb, containing_rgn, RGN_NR_BLOCKS,
2204 RGN_BLOCKS, BLOCK_TO_BB, BB_TO_BLOCK, CONTAINING_RGN,
2205 debug_regions, find_single_block_region, find_rgns, too_large,
2206 init_regions, current_nr_blocks, current_blocks, bitset, bitlst,
2207 bitlst_table_last, bitlst_table_size, bitlst_table, bitset_member,
2208 extract_bitlst, bblst, struct candidate, candidate_table,
2209 bblst_table, bblst_size, bblst_last, IS_VALID, IS_SPECULATIVE,
2210 SRC_PROB, target_bb, split_edges, compute_trg_info,
2211 debug_candidate, debug_candidates, bbset, bbset_size, dom,
2212 IS_RGN_ENTRY, IS_DOMINATED, prob, GET_SRC_PROB, edgeset,
2213 rgn_nr_edges, rgn_edges, edgeset_size, edgeset_bitsize,
2214 EDGE_TO_BIT, edge_to_bit, pot_split, ancestor_edges,
2215 compute_dom_prob_ps, ABS_VALUE, INSN_PROBABILITY,
2216 IS_SPECULATIVE_INSN, INSN_BB, MIN_DIFF_PRIORITY, MIN_PROBABILITY,
2217 MIN_PROB_DIFF, check_live_1, update_live_1, check_live,
2218 update_live, set_spec_fed, is_pfree, find_conditional_protection,
2219 is_conditionally_protected, may_trap_exp, haifa_classify_insn,
2220 is_prisky, is_exception_free, add_branch_dependences,
2221 propagate_deps, compute_block_backward_dependences,
2222 debug_dependencies, is_cfg_nonregular, build_control_flow,
2223 new_edge, bb_deps, BITSET_UNION, BITSET_INTER, BITSET_DIFFER,
2224 BITSET_INVERT, BITSET_ADD, BITSET_REMOVE, debug_regions,
2225 UPDATE_LOOP_RELATIONS, INSN_TRAP_CLASS, WORST_CLASS, IS_REACHABLE,
2226 CONST_BASED_ADDRESS_P, free_pending_lists, sched_target_n_insns,
2227 target_n_insns, sched_n_insns, init_ready_list, deaths_in_region,
2228 can_schedule_ready_p, new_ready, schedule_more_p, rgn_print_insn,
2229 rgn_rank, region_sched_info): Move to sched-rgn.c.
2230 (debug_reg_vector): Delete useless function.
2231 (get_bb_head_tail): Likewise.
2232 (insn_issue_delay, insn_cost, ready_add, get_block_head_tail,
2233 no_real_insns_p, rm_line_notes, save_line_notes,
2234 restore_line_notes, rm_redundant_line_notes, sched_init): No
2235 longer static.
2236 (rm_line_notes, save_line_notes, restore_line_notes,
2237 schedule_block, set_priorities): Change argument to be a real
2238 basic block, not one of haifa's "bb"s. All callers changed
2239 (rm_other_notes): Initialize note_list here, not in
2240 schedule_region.
2241 (sched_finish): New function, called from schedule_insn. * *
2242 sched-int.h (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
2243 INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
2244 UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
2245 MAX_BLOCKAGE_COST): Moved here from haifa-sched.c.
2246 (get_block_head_tail, no_real_insns_p, rm_line_notes,
2247 save_line_notes, restore_line_notes, rm_redundant_line_notes,
2248 rm_other_notes, insn_issue_delay, set_priorities, schedule_block,
2249 sched_init, sched_finish, ready_add, insn_cost): Declare.
2250
2251 2000-12-03 Laurynas Biveinis <lauras@softhome.net>
2252 Bruce Korb <bkorb@gnu.org>
2253
2254 * Makefile.in: pass $(build_canonical) to mkfixinc.sh.
2255 * fixinc/mkfixinc.sh: accept build system name as an argument.
2256 Use it for choosing the fix build method. Use the target for
2257 selecting special fix rules.
2258
2259 2000-12-03 Bernd Schmidt <bernds@redhat.co.uk>
2260
2261 * Makefile.in (OBJS): Add sched-deps.o.
2262 (sched-deps.o): New rule.
2263 * haifa-sched.c (struct deps, struct haifa_insn_data): Moved to
2264 sched-int.h.
2265 (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved to
2266 sched-int.h.
2267 (SIZE_FOR_MODE): Delete unused macro.
2268 (reg_known_equiv_p, reg_known_value, reg_pending_clobbers,
2269 reg_pending_sets, reg_pending_sets_all, true_dependency_cache,
2270 anti_dependency_cache, output_dependency_cache,
2271 forward_dependency_cache): Variables moved to sched-deps.c.
2272 (add_dependence, remove_dependence, find_insn_list,
2273 find_insn_mem_list, add_insn_mem_dependence, flush_pending_lists,
2274 sched_analyze_insn, sched_analyze_1, sched_analyze_2,
2275 sched_analyze, group_leader, compute_forward_dependences,
2276 init_deps, free_deps, init_dependency_caches, free_dependency_caches):
2277 Functions moved to sched-deps.c.
2278 (schedule_region): Call init_deps_global and finish_deps_global
2279 instead of directly manipulating dependency data structures.
2280 * sched-deps.c: New file.
2281 (init_deps_global, finish_deps_global): New functions.
2282 * sched-int.h (struct haifa_insn_data, struct deps): Moved here from
2283 haifa-sched.c.
2284 (h_i_d): Declare.
2285 (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved here
2286 from haifa-sched.c.
2287
2288 * Makefile.in (OBJS): Add sched-vis.o.
2289 (sched-vis.o): New rule.
2290 * haifa-sched.c (get_unit_last_insn): New function.
2291 (sched_dump, insn_unit, actual_hazard_this_instance): No longer
2292 static.
2293 (schedule_block): Call visualize_alloc and visualize_free. Delete
2294 spurious return statement.
2295 (init_target_units, insn_print_units, get_visual_tbl_length,
2296 init_block_visualization, print_block_visualization, safe_concat,
2297 visualize_scheduled_inns, visualize_no_unit, visualize_stall_cycles,
2298 print_exp, print_value, print_pattern, print_insn, target_units,
2299 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines, visual_tbl,
2300 n_vis_no_unit, vis_no_unit): Move scheduling visualization
2301 functions/variables...
2302 * sched-vis.c: ...here. New file.
2303 (visualize_alloc, visualize_free): New functions.
2304 (visualize_scheduled_insns, visualize_stall_cycles,
2305 print_block_visualization): Lose basic block argument. All callers
2306 changed.
2307 (visualize_scheduled_insns): Use new function get_unit_last_insn.
2308 * sched-int.h (current_sched_info, sched_dump): Declare.
2309 (init_target_units, insn_print_units, init_block_visualization,
2310 print_block_visualization, visualize_scheduled_inns,
2311 visualize_no_unit, visualize_stall_cycles, visualize_alloc,
2312 visualize_free): Declare functions.
2313
2314 * sched-int.h: New file.
2315 * Makefile.in (haifa-sched.o): Depend on it.
2316 * haifa-sched.c: Include it.
2317 (no_real_insns_p): New function.
2318 (current_sched_info): New static variable.
2319 (__inline, HAIFA_INLINE): Moved to sched-int.h.
2320 (get_block_head_tail): Minor cleanup.
2321 (init_ready_list, can_schedule_ready_p, new_ready, schedule_more_p,
2322 rgn_print_insn, rgn_rank): New functions, broken out of
2323 rank_for_schedule, schedule_insn and schedule_block, where they
2324 are now called through function pointers in current_sched_info.
2325 (queue_insn, schedule_insn, queue_to_ready, debug_ready_list,
2326 print_insn): To display uid and block number, call the print_insn
2327 function pointer in current_schedule_info.
2328 (region_sched_info): New static variable.
2329 (sched_target_n_insns, sched_n_insns, target_n_insns): New global
2330 variables, moved out of schedule_block.
2331 (schedule_block): Return void. All callers changed.
2332 Move some of the setup code into schedule_region. Get head/tail
2333 from current_sched_info, and update it when done.
2334 (schedule_region): Slightly rearranged, some code moved here from
2335 schedule_block. Call no_real_insns_p to avoid doing work for a
2336 block that consists only of notes and labels.
2337 (schedule_insns): Initialize current_sched_info.
2338
2339 2000-12-03 Neil Booth <neilb@earthling.net>
2340
2341 * cppmacro.c (funlike_invocation_p): Re-disable macros enabled
2342 by contexts drops AFTER argument pre-expansion, so that they
2343 remain enabled during argument pre-expansion.
2344 (_cpp_pop_context): Unconditionally re-enable a macro when
2345 dropping a context level.
2346
2347 2000-12-03 Manfred Hollstein <manfredh@redhat.com>
2348
2349 * arm/t-linux (MULTILIB_OPTIONS): Comment.
2350 (MULTILIB_DIRNAMES): Likewise.
2351 (EXTRA_MULTILIB_PARTS): Likewise.
2352 (LIBGCC): Likewise.
2353 (INSTALL_LIBGCC): Likewise.
2354
2355 2000-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2356
2357 * builtins.c (expand_builtin_strcat, expand_builtin_strncat,
2358 expand_builtin_strspn, expand_builtin_strcspn): New functions.
2359 (expand_builtin): Handle BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
2360 BUILT_IN_STRSPN and BUILT_IN_STRCSPN.
2361
2362 * builtins.def (BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
2363 BUILT_IN_STRSPN, BUILT_IN_STRCSPN): New entries.
2364
2365 * c-common.c (c_common_nodes_and_builtins): Declare builtin
2366 strcat, strncat, strspn and strcspn.
2367 (string_ftype_string_cstring): Renamed from `string_ftype_ptr_ptr'.
2368
2369 * extend.texi (strcat, strcspn, strncat, strspn): Document new
2370 builtins.
2371
2372 2000-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2373
2374 * builtins.c (expand_builtin_strcmp): Use const*_rtx when
2375 expanding strcmp at compile-time. Add another transformation.
2376 (expand_builtin_strncmp): Add more transformations. Call
2377 expand_builtin_memcmp, not expand_builtin_strcmp, under
2378 appropriate conditions if HAVE_cmpstrsi.
2379
2380 2000-12-02 David Edelsohn <edelsohn@gnu.org>
2381
2382 * rs6000.md (anddi3_internal[23]): Prefer rldic? over andis
2383 instruction.
2384 (cr logic): Really make operands sequential.
2385
2386 2000-12-02 Geoffrey Keating <geoffk@redhat.com>
2387
2388 * c-common.c (combine_strings): When the ISO C standard specifies
2389 the maximum length of a string, it doesn't include the trailing
2390 zero byte.
2391
2392 * cpplib.c (do_ifdef): Add check_eol() call.
2393 (do_ifndef): Likewise.
2394
2395 2000-12-02 Daniel Berlin <dberlin@redhat.com>
2396 Bruce Korb <bkorb@gnu.org>
2397
2398 * fixinc/*: global substitute /__MSDOS__/SEPARATE_FIX_PROC/
2399 * fixinc/mkfixinc.sh: prepare to use Makefile.BEOS for *-*-beos*
2400 * fixinc/Makefile.DOS: define SEPARATE_FIX_PROC for build
2401 * fixinc/fixfix.c(wrap_fix): avoid wrapping files that
2402 use the "__need_" hackery. It breaks them.
2403 * fixinc/fixincl.c(process - SEPARATE_FIX_PROC):
2404 Sometimes on DOS and BeOS the temp output file cannot be opened.
2405 Skip the file noisily. Ought to be fixed instead.
2406
2407 2000-12-02 Bruce Korb <bkorb@gnu.org>
2408
2409 From: 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2410
2411 * fixfixes.c (emit_gnu_type, format_write): Prototype.
2412 (format_write, char_macro_use_fix, char_macro_def_fix): Use gcc's
2413 custom uppercase ctype macros.
2414 * fixincl.c (do_version): Make static and add ATTRIBUTE_NORETURN.
2415 Use gcc's custom uppercase ctype macros.
2416 (main): Prototype.
2417 (machine_matches): Add static prototype and constify variable.
2418 (create_file, test_test, egrep_test): Add static prototype.
2419 (quoted_file_exists): Likewise, and constify parameters.
2420 (extract_quoted_files, internal_fix, start_fixer, fix_applies,
2421 write_replacement, test_for_changes): Add static prototype.
2422 (write_replacement, test_for_changes): Delete excess argument to
2423 `create_file'.
2424 * fixtests.c (test): Make static.
2425 * server.c (load_data, sig_handler, server_setup, find_shell): Add
2426 static prototype.
2427 (sig_handler): Mark parameter with ATTRIBUTE_UNUSED.
2428
2429 2000-12-02 Bruce Korb <bkorb@gnu.org>
2430
2431 * fixnc/mkfixinc.sh(msdosdjgpp): remove from fixincludes exception list
2432 (per Laurynas Biveinis <lauras@softhome.net>)
2433
2434 2000-12-02 Richard Earnshaw <rearnsha@arm.com>
2435
2436 * arm.h (ARM_REGNO_OK_FOR_BASE_P, THUMB_REGNO_MODE_OK_FOR_BASE_P): New
2437 macros.
2438 (REGNO_MODE_OK_FOR_BASE_P): Define in terms of above.
2439 (REGNO_OK_FOR_FOR_BASE_P): Delete.
2440 (ARM_REG_OK_FOR_BASE_P, THUMB_REG_MODE_OK_FOR_BASE_P): New macros for
2441 both strict and non-strict uses.
2442 (REG_MODE_OK_FOR_BASE_P): Define in terms of above.
2443 (ARM_REG_OK_FOR_INDEX_P, THUMB_REG_OK_FOR_INDEX_P): New macros.
2444 (REG_OK_FOR_INDEX_P): Define in terms of above.
2445 (REG_OK_FOR_BASE_P): Delete.
2446 (REG_OK_FOR_PRE_POST_P): Delete.
2447 (ARM_BASE_REGISTER_RTX_P): Renamed from BASE_REGISTER_RTX_P.
2448 (ARM_INDEX_REGISTER_RTX_P): Renamed from INDEX_REGISTER_RTX_P.
2449 (ARM_GO_IF_LEGITIMATE_INDEX): Renamed from GO_IF_LEGITIMATE_INDEX.
2450 (THUMB_LEGITIMATE_OFFSET): Renamed from LEGITIMATE_OFFSET.
2451 (ARM_GO_IF_LEGITIMATE_ADDRESS): Adjust for name changes. Use ARM
2452 specific variants rather than general ones. Use ARM_REG_OK_FOR_BASE_P
2453 in pre/post increment cases.
2454 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Similarly for Thumb.
2455 (ARM_LEGITIMIZE_ADDRESS): Similarly.
2456 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Similarly.
2457 * arm.c (legitimate_pic_address): Similarly.
2458
2459 2000-12-02 Neil Booth <neilb@earthling.net>
2460
2461 * tradcpp.c (struct answer, parse_assertion, parse_answer,
2462 canonicalize_text, find_answer): New.
2463 (do_assert, do_unassert): Provide appropriate function bodies.
2464 (union hashval): New member answers.
2465
2466 2000-11-23 Marek Michalkiewicz <marekm@linux.org.pl>
2467
2468 * config/avr/avr.md: Document UNSPEC usage.
2469 (*tablejump_rjmp, *tablejump_lib, *tablejump_enh, *tablejump):
2470 Make operand 0 input only, clobber it. Use UNSPEC, not a bogus
2471 MEM for program memory word reference. Do not add the label to
2472 the table index in each of the asm output templates, instead ...
2473 (casesi): ... do it in RTL. Adjust to match the above change.
2474
2475 2000-12-02 Bernd Schmidt <bernds@redhat.co.uk>
2476
2477 * c-common.c (PTRDIFF_TYPE): Provide default here, ...
2478 * c-decl.c: ... not here.
2479
2480 * haifa-sched.c (sched_dump): Renamed from dump. All users changed.
2481 (old_max_uid): New variable.
2482 (compute_forward_dependences): Renamed from
2483 compute_block_forward_dependences; changed to accept block head and
2484 tail instead of block number. Caller changed.
2485 (free_deps, init_dependency_caches, free_dependency_caches,
2486 init_regions, sched_init): New functions, split out from
2487 schedule_insns and compute_block_backward_dependences.
2488
2489 2000-12-02 Neil Booth <neilb@earthling.net>
2490
2491 * cppexp.c (parse_number): Update diagnostic test.
2492
2493 2000-12-02 Bernd Schmidt <bernds@redhat.co.uk>
2494
2495 * reload1.c (free_for_value_p): New function, frontend to
2496 reload_reg_free_for_value_p. All callers of the latter now call
2497 this function with an additional mode argument.
2498
2499 2000-12-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2500
2501 * install.texi (Configurations): Remove obsolete documentation for
2502 hppa*-*-*.
2503
2504 2000-12-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2505
2506 * install.texi (Installation): Remove obsolete description for
2507 libstdc++ which is now an integral part of GCC.
2508
2509 2000-12-01 Jim Blandy <jimb@redhat.com>
2510
2511 * dbxout.c (dbxout_parms): Correctly describe parameters passed by
2512 invisible reference in registers, but then spilled to the stack.
2513 Remove code to emit a second stab for such parameters; it attempts
2514 to describe the value's location by introducing a synthetic C++
2515 `reference' type, and then saying the stack slot has that
2516 reference type. This loses type information (breaking GDB's
2517 `ptype' command, among other things) just to describe a location
2518 which stabs can represent correctly in other ways.
2519
2520 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
2521
2522 * final.c (output_addr_const) <PLUS>: Don't assume at least one
2523 operand is a CONST_INT.
2524
2525 * config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
2526 (machine_dependent_reorg): Split all insns.
2527 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
2528 reg_class_contents[SIBCALL_REGS].
2529 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS.
2530 * config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel,
2531 call_value_pcrel, call, call_value, sibcall): Match even when
2532 not optimizing.
2533 (sibcalli_pcrel, sibcall_pcrel): Likewise. Use constraint `k'
2534 for call address.
2535 (sibcalli): Likewise.
2536
2537 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2538
2539 * c-common.c (warn_format, warn_format_y2k,
2540 warn_format_extra_args, warn_format_nonliteral): Define.
2541 (check_format_info): Check warn_format_nonliteral and
2542 warn_format_extra_args.
2543 (check_format_info_main): Check warn_format_y2k.
2544 (set_Wformat): New function.
2545 * c-common.h (warn_format_y2k, warn_format_extra_args,
2546 warn_format_nonliteral, set_Wformat): Declare.
2547 * c-decl.c (warn_format): Remove definition.
2548 (c_decode_option): Handle -Wformat-nonliteral,
2549 -Wno-format-extra-args and -Wno-format-y2k, and negated versions.
2550 Use set_Wformat.
2551 * invoke.texi: Document these new options and -Wformat=2.
2552 * toplev.c (documented_lang_options): Add these new options.
2553
2554 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2555
2556 * builtins.def (BUILT_IN_IMAXABS): Add.
2557 * builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS.
2558 * c-common.c (c_common_nodes_and_builtins): Create builtin
2559 functions __builtin_imaxabs, and plain imaxabs unless
2560 flag_no_nonansi_builtin outside C99 mode.
2561 (expand_tree_builtin): Handle BUILT_IN_IMAXABS.
2562 * extend.texi: Document builtin imaxabs.
2563
2564 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2565
2566 * c-common.c: Include "defaults.h".
2567 (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define.
2568 (c_common_nodes_and_builtins): Create string_type_node,
2569 const_string_type_node, wint_type_node, intmax_type_node,
2570 uintmax_type_node, default_function_type, ptrdiff_type_node and
2571 unsigned_ptrdiff_type_node.
2572 * c-common.h (identifier_global_value): Declare.
2573 * c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
2574 (init_decl_processing): Don't create string_type_node,
2575 const_string_type_node, wint_type_node, intmax_type_node,
2576 uintmax_type_node, default_function_type, ptrdiff_type_node and
2577 unsigned_ptrdiff_type_node.
2578 (identifier_global_value): New function.
2579
2580 2000-12-01 Neil Booth <neilb@earthling.net>
2581
2582 * cppinit.c (initialize): Forgotten prototype.
2583 * cpplex.c (_cpp_lex_token): Loop until not skipping.
2584 Always clear PREV_WHITE upon meeting a new line.
2585 * cpplib.c (end_directive): Set pfile->skipping after
2586 skip_rest_of_line.
2587 * cpplib.h (cpp_reader): Remove macro_pos.
2588 * cppmacro.c (cpp_get_line): Don't do anything special inside
2589 macros.
2590 (parse_arg): Add PREV_WHITE if a token appears after new lines.
2591 (funlike_invocation_p): Save and restore the output position
2592 over a successful check for a '('.
2593 (enter_macro_context): Delete uses of macro_pos.
2594 (cpp_get_token): Don't use pfile->skipping.
2595
2596 2000-12-01 Phil Edwards <pme@sources.redhat.com>
2597
2598 * diagnostic.c: Fix typos in comments.
2599 * diagnostic.h: Likewise.
2600
2601 2000-11-30 Phil Edwards <pme@sources.redhat.com>
2602
2603 * rtl.texi (Machine Modes): Document BImode and OImode.
2604
2605 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2606
2607 * gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and
2608 .FPP.
2609
2610 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2611
2612 * c-decl.c (grokdeclarator): If pedantic, warn about arrays with
2613 incomplete element type.
2614 (grokparms): Before checking for incomplete parameter type, check
2615 the type isn't error_mark_node.
2616
2617 2000-12-01 Jakub Jelinek <jakub@redhat.com>
2618
2619 * builtins.c (target_char_cast): New function.
2620 (expand_builtin_strchr): Use it.
2621 (expand_builtin_strrchr): Use it.
2622 (builtin_memset_read_str): New function.
2623 (expand_builtin_memset): Use target_char_cast.
2624 Try to optimize memset with second argument non-zero using
2625 store_by_pieces.
2626
2627 2000-11-30 Marek Michalkiewicz <marekm@linux.org.pl>
2628
2629 * install.texi (avr): Replace incomplete list of supported MCU
2630 types with a link to the current one ...
2631 * invoke.texi (AVR Options): ... here. Update -mmcu= to list
2632 all supported MCU types. Document -minit-stack= default.
2633 Document new options -mno-tablejump, -mtiny-stack.
2634 * md.texi (AVR family): Fix typo in 'w' constraint letter
2635 description. Document 'q'. Update 'O'.
2636
2637 2000-12-01 Bernd Schmidt <bernds@redhat.co.uk>
2638
2639 * combine.c (cant_combine_insn_p): Only disallow insns involving
2640 hard regs if they are reg-reg moves.
2641 (try_combine, can_combine_p, combinable_i3pat): Delete old
2642 SMALL_REGISTER_CLASSES tests.
2643
2644 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
2645
2646 * config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
2647 whether X is a CONST_INT.
2648 (addsubcosts): Likewise.
2649
2650 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
2651 mis-used XINT.
2652 (ARG_POINTER_REGNUM): Set to AP_REG.
2653
2654 2000-11-30 Alexandre Oliva <aoliva@redhat.com>
2655
2656 * config/sh/sh.md (fpu_switch0, fpu_switch1, movpsi, fpu_switch,
2657 splits): Only match on TARGET_SH4.
2658
2659 * combine.c (try_combine): Disregard USEs when updating LOG_LINKS
2660 of subsequent insns.
2661
2662 2000-11-30 Richard Henderson <rth@redhat.com>
2663
2664 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
2665 * config/alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
2666
2667 2000-11-30 Richard Henderson <rth@redhat.com>
2668
2669 * config/alpha/elf.h (ASM_OUTPUT_SECTION_NAME): Copy elfos.h defn.
2670 (DO_SELECT_SECTION): New.
2671 (SELECT_SECTION): Use it.
2672 (UNIQUE_SECTION_P): New.
2673 (UNIQUE_SECTION): New.
2674
2675 2000-11-30 Alexandre Oliva <aoliva@redhat.com>
2676
2677 * c-common.c (status_warning) [! ANSI_PROTOTYPES]: Load status
2678 from va_list before using it.
2679
2680 2000-11-30 Michael Matz <matzmich@cs.tu-berlin.de>
2681
2682 * flow.c (make_edge): Early out, if no flags to set.
2683 (calculate_global_regs_live): Clear out garbage only when necessary.
2684
2685 * simplify-rtx.c (varray_type used_regs): New.
2686 (clear_table): Use it to only clear necessary items.
2687 (cselib_lookup, cselib_record_set): Remember newly set items.
2688 (cselib_update_varray_sizes, cselib_init): Initialize and grow
2689 used_regs.
2690
2691 * local-alloc.c (update_equiv_regs): New local `cleared_regs'.
2692 Move clearing of dead regs out of insn-loop.
2693
2694 2000-11-30 Richard Henderson <rth@redhat.com>
2695
2696 * calls.c (expand_call): Emit queued insns before creating
2697 the tail recursion sequence.
2698
2699 2000-11-30 J. David Anglin <dave.anglin@nrc.ca>
2700 Bruce Korb <bkorb@gnu.org>
2701
2702 * fixinc/inclhack.def(): prevent dual double definition protection
2703 * fixinc/fixincl.x: regenerate
2704
2705 2000-11-29 Loren J. Rittle <ljrittle@acm.org>
2706
2707 * fixinc/Makefile.in (fixincl.x): Explicitly state the
2708 location of the generated file.
2709
2710 2000-11-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2711
2712 * README.FRESCO: Remove obsolete file.
2713
2714 2000-11-30 Mark Kettenis <kettenis@gnu.org>
2715
2716 * config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
2717 TARGET_LIBGCC2_CFLAGS): Remove. We now use the settings from
2718 config/t-linux for the Hurd.
2719
2720 2000-11-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2721
2722 * config/mn10200/udivmod.c, config/mn10200/divmod.c,
2723 config/mn10200/udivmodsi4.c: Moved from here.
2724 * config/udivmod.c, config/divmod.c, config/udivmodsi4.c: To here.
2725 * config/mn10200/t-mn10200 (LIB2FUNCS_EXTRA): Use the generic
2726 C division functions.
2727 * config/m68hc11/t-m68hc11-gas (LIB2FUNCS_EXTRA): Likewise.
2728
2729 Thu Nov 30 01:12:52 2000 Jeffrey A Law (law@cygnus.com)
2730
2731 * pa.md (conditional moves): Avoid holes in operand list.
2732 (mod, umod patterns): Similarly.
2733 (variable extract/shift patterns): Similarly.
2734
2735 2000-11-30 Neil Booth <neilb@earthling.net>
2736
2737 * objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
2738 maybe_objc_check_decl, build_objc_string_object,
2739 objc_declare_alias, objc_declare_class, build_message_expr,
2740 build_protocol_expr, build_selector_expr, build_encode_expr,
2741 get_class_ivars, start_class, start_protocol): Remove
2742 redundant code, assuming doing_objc_thang is true.
2743
2744 2000-11-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
2745
2746 * pa.c (restore_unscaled_index_insn_codes): Delete procedure.
2747 (record_unscaled_index_insn_codes): Likewise.
2748 (unscaled_index_insn_codes): Delete.
2749 (max_unscaled_index_insn_codes_uid): Delete.
2750 (output_function_prologue, output_function_epilogue, pa_reorg):
2751 Don't use the unscaled index insn hack.
2752
2753 * pa.md: Remove hack from all index insns to reverse the operand
2754 order of frame and stack pointer references incorrectly created
2755 in the reload pass.
2756
2757 * function.h (emit_status): Delete member regno_pointer_flag and
2758 rename regno_pointer_flag_length to regno_pointer_align_length.
2759 Delete define for REGNO_POINTER_FLAG.
2760 * integrate.h (inline_remap): Delete member regno_pointer_flag.
2761 Add member x_regno_reg_rtx.
2762 * rtl.h (rtx_def): Use frame_related bit to indicate register is
2763 a pointer in REG expressions. Define REG_POINTER macro.
2764 * alias.c (find_base_value, find_base_term): Use REG_POINTER
2765 instead of REGNO_POINTER_FLAG.
2766 * combine.c (nonzero_bits, num_sign_bit_copies): Likewise.
2767 * emit-rtl.c (gen_reg_rtx): Use regno_pointer_align_length instead
2768 of regno_pointer_flag_length. Remove code which refers to
2769 regno_pointer_flag.
2770 (mark_reg_pointer): Use REG_POINTER.
2771 (free_emit_status): Remove code which refers to regno_pointer_flag.
2772 (init_emit, mark_emit_status): Likewise.
2773 * flow.c (dump_flow_info): Likewise.
2774 * function.c (preserve_temp_slots): Likewise.
2775 * integrate.c (expand_inline_function, copy_rtx_and_substitute):
2776 Use x_regno_reg_rtx instead of regno_pointer_flag for function
2777 pointer determination in map.
2778 * loop.c (strength_reduce, maybe_eliminate_biv_1): Use REG_POINTER.
2779 * predict.c (estimate_probability): Likewise.
2780 * regclass.c (record_address_regs, reg_scan_mark_refs): Likewise.
2781 * unroll.c (unroll_loop): Use x_regno_reg_rtx instead of
2782 regno_pointer_flag for function pointer determination in map.
2783 * convex.h (RTX_COSTS): Don't test regno_pointer_flag and use
2784 REG_POINTER.
2785 * pa.c (hppa_legitimize_address, emit_move_sequence, basereg_operand):
2786 Use REG_POINTER.
2787 (restore_unscaled_index_insn_codes): Revise comment.
2788
2789 * expr.c (do_compare_and_jump): Add missing TYPE_MODE in statement.
2790
2791 2000-11-30 Joseph S. Myers <jsm28@cam.ac.uk>
2792
2793 * extend.texi: Update documentation for attributes.
2794
2795 2000-11-29 David O'Brien <obrien@FreeBSD.org>
2796
2797 * config/alpha/elf.h (IDENT_ASM_OP): Protect the #define.
2798 (ASM_DECLARE_OBJECT_NAME): Same.
2799 (ASM_FILE_END): Same.
2800 (ASM_FINISH_DECLARE_OBJECT): Same.
2801 (ASM_IDENTIFY_GCC): Same.
2802 (ASM_IDENTIFY_LANGUAGE): Same.
2803 (ASM_OUTPUT_CONSTRUCTOR): Same.
2804 (ASM_OUTPUT_DEF): Same.
2805 (ASM_OUTPUT_DESTRUCTOR): Same.
2806 (ASM_OUTPUT_EXTERNAL_LIBCALL): Same.
2807 (ASM_OUTPUT_SECTION_NAME): Same.
2808 (ASM_WEAKEN_LABEL): Same.
2809 (BSS_SECTION_ASM_OP): Same.
2810 (COMMON_ASM_OP): Same.
2811 (CONST_SECTION_ASM_OP): Same.
2812 (CONST_SECTION_FUNCTION): Same.
2813 (CTORS_SECTION_ASM_OP): Same.
2814 (DTORS_SECTION_ASM_OP): Same.
2815 (ESCAPES): Same.
2816 (FINI_SECTION_ASM_OP): Same.
2817 (IDENT_ASM_OP): Same.
2818 (IDENT_ASM_OP): Same.
2819 (INIT_SECTION_ASM_OP): Same.
2820 (INT_ASM_OP): Same.
2821 (MAX_OFILE_ALIGNMENT): Same.
2822 (SBSS_SECTION_ASM_OP): Same.
2823 (SDATA_SECTION_ASM_OP): Same.
2824 (SECTION_FUNCTION_TEMPLATE): Same.
2825 (SELECT_SECTION): Same.
2826 (SE_CONST_SECTION): Same.
2827 (SIZE_ASM_OP): Same.
2828 (SKIP_ASM_OP): Same.
2829 (STRING_ASM_OP): Same.
2830 (STRING_LIMIT): Same.
2831 (TYPE_ASM_OP): Same.
2832 (TYPE_OPERAND_FMT): Same.
2833
2834 2000-11-29 Neil Booth <neilb@earthling.net>
2835
2836 * c-decl.c (c_decode_option): Don't handle -lang-objc.
2837 * objc/lang-options.h: Remove -lang-objc.
2838 * objc/lang-specs.h: Don't pass -lang-objc to cc1obj.
2839 * objc/objc-act.c (lang_init_options): Set c_language.
2840
2841 2000-11-29 Jakub Jelinek <jakub@redhat.com>
2842
2843 * expr.c (can_store_by_pieces): Reinitialize max_size for reverse
2844 tests.
2845
2846 2000-11-29 Neil Booth <neilb@earthling.net>
2847
2848 * c-pragma.c (init_pragma): Update for parse_in type change.
2849
2850 2000-11-29 Laurynas Biveinis <lauras@softhome.net>
2851
2852 * configure.in: recognize DOS-style absolute paths.
2853
2854 2000-11-29 Jakub Jelinek <jakub@redhat.com>
2855
2856 * expr.h (store_by_pieces): Add prototype.
2857 (can_store_by_pieces): Likewise.
2858 * expr.c (struct store_by_pieces): Renamed from clear_by_pieces.
2859 (can_store_by_pieces): New.
2860 (store_by_pieces): New.
2861 (clear_by_pieces): New.
2862 (clear_by_pieces_1): New.
2863 (store_by_pieces_1): Renamed from clear_by_pieces, handle storing
2864 arbitrary compiler generated constants into memory block.
2865 (store_by_pieces_2): Renamed from clear_by_pieces_1, likewise.
2866 * builtins.c (c_readstr): New.
2867 (builtin_memcpy_read_str): New.
2868 (expand_builtin_memcpy): If src is string constant and
2869 emit_block_move would move it by pieces, compute integer constants
2870 from the string and store it into memory block instead.
2871 (builtin_strncpy_read_str): New.
2872 (expand_builtin_strncpy): If N is not constant zero and c_strlen does
2873 not return INTEGER_CST, don't optimize.
2874 If N is larger than strlen(src) + 1, try to copy the string
2875 including padding with store_by_pieces.
2876 (expand_builtin_strcmp): If both arguments have side effects, don't
2877 optimize.
2878 (expand_builtin_fputs): If STR has side effects, don't optimize.
2879
2880 2000-11-29 Richard Earnshaw <rearnsha@arm.com>
2881
2882 * arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
2883 Add use of link register.
2884
2885 2000-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
2886
2887 * extend.texi: Update documentation for default format attributes.
2888
2889 Tue Nov 28 21:56:45 2000 Jeffrey A Law (law@cygnus.com)
2890
2891 * pa/pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
2892 a list, to keep track of the sections.
2893
2894 2000-11-28 Nick Clifton <nickc@redhat.com>
2895
2896 * config/arm/arm.md (pic_load_addr): Split into
2897 pic_load_addr_arm and pic_load_addr_thumb.
2898
2899 * config/arm/arm.c (legitimize_pic_address): Generate either
2900 ARM or Thumb versions of pic_load_addr.
2901 (arm_finalize_pic): Generate either ARM or Thumb versions of
2902 pic_load_addr.
2903
2904 2000-11-28 Richard Henderson <rth@redhat.com>
2905
2906 * calls.c (expand_call): Defer const/pure NO_DEFER_POP until
2907 after sibcall do_pending_stack_adjust.
2908
2909 Wed Nov 29 00:08:23 2000 J"orn Rennecke <amylaar@redhat.com>
2910
2911 * jump.c (delete_insn): Check that REG_LABEL note actually contains
2912 a CODE_LABEL.
2913
2914 2000-11-28 Neil Booth <neilb@earthling.net>
2915
2916 * c-common.h: Remove flag_digraphs.
2917 * c-decl.c: Remove flag_digraphs.
2918 (c_decode_option): Don't set it.
2919 * c-lex.c (init_c_lex): Don't do anything for digraphs.
2920
2921 2000-11-28 Richard Henderson <rth@redhat.com>
2922
2923 * c-parse.in (finish_parse): Update for parse_in type change.
2924 (_yylex): Likewise.
2925
2926 2000-11-28 Neil Booth <neilb@earthling.net>
2927
2928 * cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
2929 indicating whether to scan all buffers on the stack or
2930 just one.
2931 * cppinit.c (do_includes): Update.
2932 * cppmain.c (main): Update.
2933 * cpplib.h: Update prototype.
2934
2935 2000-11-28 Richard Henderson <rth@redhat.com>
2936
2937 * genoutput.c (validate_insn_operands): New.
2938 (gen_insn): Call it.
2939
2940 * config/alpha/alpha.md (divmodsi_internal): Renumber operands.
2941 (divmoddi_internal): Likewise.
2942 * config/arm/arm.md (andsi3_compare0_scratch): Likewise.
2943 * config/i960/i960.md (branch patterns): Likewise.
2944 * config/ia64/ia64.md (tbit_and_0): Likewise.
2945 (tbit_and_1, tbit_or_0, tbit_or_1): Likewise.
2946 * config/m68k/m68k.md (zero_extract memory patterns): Likewise.
2947 * config/mips/mips.md (divmodsi4_internal): Likewise.
2948 (divmoddi4_internal): Likewise.
2949 * config/rs6000/rs6000.md (call patterns): Likewise.
2950 * config/sh/sh.md (movsi_y): Likewise.
2951 * config/sparc/sparc.md: Comment out if 0 v8p shift pattern.
2952
2953 2000-11-28 Richard Henderson <rth@redhat.com>
2954
2955 * config.gcc: Kill residual pyramid support.
2956
2957 2000-11-28 Neil Booth <neilb@earthling.net>
2958
2959 * c-lex.h (parse_in): Change parse_in to a cpp_reader *.
2960 * c-decl.c (c_decode_option): Update to match.
2961 * c-lex.c (init_c_lex, yyparse): Update to match.
2962 * c-lang.c (lang_init_options): Use cpp_create_reader.
2963 * cppinit.c (cpp_init): Rename initialize.
2964 (cpp_reader_init): Rename cpp_create_reader. Create the
2965 reader. Initialize cpplib if appropriate.
2966 * cpplib.h (cpp_create_reader) New prototype.
2967 (cpp_init, cpp_reader_init): Delete prototypes.
2968 * cppmain.c (general_init, setup_callbacks): New functions.
2969 (main): Use them.
2970 * fix-header.c (scan_in): Change type to cpp_reader *.
2971 (read_scan_file): Update for new cpplib interface and scan_in type.
2972
2973 * cp/decl.c (parse_in): Change to cpp_reader *.
2974 (lang_decode_option): Update.
2975 * cp/lex.c (lang_init_options): Use new cpplib interface.
2976 (init_cp_pragma, finish_parse, handle_pragma_implementation): Update.
2977 * cp/spew.c (read_token): Update.
2978 * objc/objc-act.c (lang_init_options): Update new cpplib interface.
2979
2980 2000-11-28 Jakub Jelinek <jakub@redhat.com>
2981
2982 * loop.c (load_mems): Avoid using next_label to find end_label. If
2983 jumping outside of the loop (other than loop end), don't hoist MEMs
2984 out of loop.
2985
2986 2000-11-28 Jan Hubicka <jh@suse.cz>
2987
2988 * calls.c (expand_call): Don't disable tail recursion based
2989 on the loop nest.
2990
2991 2000-11-28 Neil Booth <neilb@earthling.net>
2992
2993 * tradcpp.c (enum node_type): New hash types T_ASSERT, T_UNASSERT.
2994 (struct directive): Drop 4th argument from handlers.
2995 (do_define, do_line, do_include, do_undef, do_else, do_elif,
2996 do_endif): Similarly.
2997 (do_assert, do_unassert, do_ifdef, do_ifndef): New handlers.
2998 (do_ifxdef): Update as common handler of do_ifdef and do_ifndef.
2999 (make_definition, make_undef): Take a const char*.
3000 (make_assertion): New function.
3001 (struct directive_table): Update.
3002 (main): Handle -A command line argument.
3003 (handle_directive): Drop fourth handler argument.
3004
3005 2000-11-28 Bernd Schmidt <bernds@redhat.co.uk>
3006
3007 * simplify-rtx.c (cselib_record_sets): Ignore sets whose destination
3008 is anything but REG or MEM, but look inside STRICT_LOW_PART.
3009
3010 Tue Nov 28 09:53:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3011
3012 * system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
3013 (IS_ABSOLUTE_PATHNAME): New macro.
3014 * gcc.c (find_a_file, process_command, do_spec_1, main): Use it.
3015
3016 2000-11-28 Jakub Jelinek <jakub@redhat.com>
3017
3018 * config/i386/i386.md (truncxfsf2_2): Fix predicate.
3019
3020 2000-11-27 Jim Wilson <wilson@redhat.com>
3021
3022 * reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.
3023
3024 2000-11-27 Matthias Klose <doko@cs.tu-berlin.de>
3025
3026 * extend.texi (Nested Functions): Update URL of Usenix paper.
3027
3028 2000-11-27 Mark Mitchell <mark@codesourcery.com>
3029
3030 * function.c (free_after_compilation): Clear x_clobber_return_insn.
3031
3032 2000-11-27 Neil Booth <neilb@earthling.net>
3033
3034 * cppinit.c (cpp_reader_init): Remove handling of warn_paste
3035 command line options.
3036 (cpp_handle_option): Similarly.
3037 * cpplib.h (struct cpp_options): Remove warn_paste.
3038 * cppmacro.c (paste_tokens): Apart from assembler, make
3039 unpasteable token warning mandatory.
3040
3041 2000-11-27 Neil Booth <neilb@earthling.net>
3042
3043 * tradcpp.c (enum pending_dir_t, struct pending_dir): New.
3044 (main): Allocate a pending directive set of these. Use it.
3045 Merge handling of -D and -U. Update handling of pending
3046 directives. Free the memory after use.
3047
3048 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
3049
3050 * flow.c (entry_exit_blocks): Add entry for cond_local_set.
3051 (struct propagate_block_info): Add new member cond_local_set.
3052 (propagate_block): Accept new arg cond_local_set. All callers
3053 changed.
3054 (init_propagate_block_info): Likewise.
3055 (calculate_global_regs_live): Allocate & free cond_local_set. Always
3056 rescan if there's overlap between cond_local_set and new_live_at_end.
3057 (mark_set_1): Set bits either in cond_local_set or local_set, as
3058 appropriate.
3059 * basic-block.h (struct basic_block_def): New field cond_local_set.
3060 (propagate_block, init_propagate_block_info): Update prototypes.
3061
3062 Mon Nov 27 17:29:44 2000 kaz Kojima <kkojima@rr.iij4u.or.jp>
3063
3064 * gcc/config/sh/sh.md (udivsi3_i4, udivsi3_i4_single): Clobber
3065 T register.
3066
3067 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
3068
3069 * arm.c (select_dominance_cc_mode): Handle new way that combine
3070 canonicalizes conditional compares.
3071 (arm_select_cc_mode): Likewise.
3072 * arm.md: Garbage collect some dead code.
3073 (cmp_and, cmp_ior): New patterns.
3074 (splitter for conditional move with inverted false): Use cond_exec
3075 and handle unordered comparisons.
3076
3077 Mon Nov 27 17:22:56 MET 2000 Jan Hubicka <jh@suse.cz>
3078
3079 * i386.c (ix86_force_to_memory, ix86_free_from_memory): New.
3080 * i386-protos.h (ix86_force_to_memory, ix86_free_from_memory): Declare
3081 * i386.md (float?i?f, int/fp operations): Rewrite spliters to use
3082 ix86_force_to_memory and ix86_free_from_memory.
3083
3084 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
3085
3086 * arm.md (arm_adddi3, adddi_sesidi_di, adddi_zesidi_di, arm_addsi3,
3087 arm_subsi3_insn, anddi_zesidi_di, arm_andsi3_insn, anddi_notdi_di,
3088 anddi_notzesidi_di, anddi_notsesidi_di, arm_iorsi3,
3089 one_cmpldi2): Merge with splitters to create define_insn_and_split
3090 patterns. Remove redundant splits.
3091 (peephole2 for add:SI of invalid immediate): New.
3092 (peephole2 for minus:SI of invalid immediate): New.
3093 (peephole2 for ior:SI of invalid immediate): New.
3094 (peephole for merge of move and compare): Convert ot peephole2.
3095 (addsf3, adddf3): Mark as commutative.
3096
3097 * arm.md (thumb peephole for merging stack adjustments): Convert to
3098 peephole2.
3099
3100 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
3101
3102 * haifa-sched.c (print_pattern): Prettier output for COND_EXEC.
3103
3104 * reload1.c (reload_cse_simplify_set): Pass down mode to cselib_lookup.
3105 (reload_cse_simplify_operands): Do nothing about operands where both
3106 the operand and the match_operand fail to give us a mode.
3107 * simplify-rtx.c (wrap_constant): New function.
3108 (entry_and_rtx_equal_p): Except integer constants to come wrapped in a
3109 CONST describing the proper mode.
3110 (rtx_equal_for_cselib_p): Pass down modes to recursive calls of
3111 cselib_lookup.
3112 (cselib_lookup_mem): Call wrap_constant on the rtx that is passed to
3113 htab_find_slot_with_hash.
3114 (cselib_lookup): Likewise.
3115
3116 Based on a patch from Geoff Keating <geoffk@redhat.com>:
3117 * loop.c (basic_induction_var): If a REG is set from something
3118 that is not a biv, then the REG is not a biv. Even if it is
3119 earlier set from something that is a biv.
3120
3121 2000-11-27 Alexandre Oliva <aoliva@redhat.com>
3122
3123 * configure.in (extra_objs): Enclose extra_headers in quotes.
3124 * configure: Rebuilt.
3125
3126 2000-11-27 Neil Booth <neilb@earthling.net>
3127
3128 * c-lex.c (cb_enter_file, cb_leave_file, cb_rename_file):
3129 Combine into the new function cb_change_file.
3130 (init_c_lex): Update.
3131 * cppfiles.c (stack_include_file): Use _cpp_do_file_change.
3132 (cpp_syshdr_flags): Delete.
3133 * cpphash.h (_cpp_do_file_change): New prototype.
3134 Move struct cpp_buffer here from...
3135 * cpplib.h (struct cpp_buffer): ... here.
3136 (enum cpp_fc_reason, struct cpp_file_loc,
3137 struct_cpp_file_change, change_file): New.
3138 (enter_file, leave_file, rename_file, cpp_syshdr_flags): Delete.
3139 * cpplib.c (do_line): Update for new cb_change_file callback.
3140 (_cpp_do_file_change): New function.
3141 (_cpp_pop_buffer): Update to use it.
3142 * cppmain.c (move_printer): Delete.
3143 (main): Set up single callback cb_change_file.
3144 (cb_enter_file, cb_leave_file, cb_rename_file): Delete.
3145 (cb_change_file): New.
3146 * fix-header.c (cur_file, cb_change_file): New.
3147 (recognized_function, read_scan_file): Update.
3148 * scan-decls.c (scan_decls): Update.
3149 * scan.h (recognized_function): Update prototype.
3150
3151 2000-11-26 Mark Mitchell <mark@codesourcery.com>
3152
3153 * tree.h (mark_tree_hashtable): New function.
3154 * tree.c (mark_tree_hashtable_entry): New function.
3155 (mark_tree_hashtable): Likewise.
3156
3157 2000-11-27 Michael Meissner <meissner@redhat.com>
3158
3159 * d30v-protos.h (srelational_si_operator): Correctly spell
3160 function.
3161 (urelational_si_operator): Ditto.
3162 (relational_si_operator): Ditto.
3163 (d30v_expand_prologue): Add prototype.
3164 (d30v_expand_epilogue): Ditto.
3165
3166 * d30v.h (OPTIMIZATION_OPTIONS): Undo November 22nd change.
3167
3168 * d30v.md (movcccc_*): Delete now unused patterns.
3169 (64 bit comparison splitters): Rewrite to use COND_EXEC instead of
3170 IF_THEN_ELSE.
3171 (define_cond_exec): Use 'b' to select branch flags.
3172
3173 2000-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3174
3175 * builtins.c (expand_builtin_strncmp, expand_builtin_strncpy): New
3176 functions.
3177 (expand_builtin): Handle BUILT_IN_STRNCPY and BUILT_IN_STRNCMP.
3178
3179 * builtins.def (BUILT_IN_STRNCPY, BUILT_IN_STRNCMP): New entries.
3180
3181 * c-common.c (c_common_nodes_and_builtins): Declare builtin
3182 strncpy and strncmp.
3183
3184 * extend.texi (strncmp, strncpy): Document new builtins.
3185
3186 2000-11-26 Mark Mitchell <mark@codesourcery.com>
3187
3188 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
3189 a list, to keep track of the sections.
3190 * tm.texi (ASM_OUTPUT_SECTION_NAME): Document the fact that the
3191 parameter provided will always be a canonical string.
3192
3193 2000-11-26 Neil Booth <neilb@earthling.net>
3194
3195 * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
3196 current buffer.
3197
3198 2000-11-26 Joseph S. Myers <jsm28@cam.ac.uk>
3199
3200 * makefile.vms: Remove EGCS references.
3201
3202 2000-11-26 Ulrich Drepper <drepper@redhat.com>
3203
3204 * dwarf2out.c (output_file_names): New function. Compute minimal
3205 combination of directory and file name table and emit them.
3206 (output_line_info): Remove code to emit directory and file name
3207 table and call output_file_names instead.
3208 (file_info_cmp): Helper function to sort directory names.
3209
3210 2000-11-26 Neil Booth <neilb@earthling.net>
3211
3212 * cpplib.h (struct cpp_reader): Remove lang_asm.
3213 (struct cpp_options): Remove c89. New members lang,
3214 extended_numbers.
3215 * cppexp.c (parse_number): Use them.
3216 * cpphash.h (VALID_SIGN): Use them.
3217 * cppinit.c (set_lang, cpp_start_read): Update.
3218 * cpplex.c (parse_string, _cpp_lex_token): Update.
3219 * cpplib.c (_cpp_handle_directive): Update.
3220 * cppmacro.c (parse_args): Update.
3221 * cppmain.c (scan_buffer): Update.
3222
3223 Sun Nov 26 10:02:37 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3224
3225 * fold-const.c (fold, case CONVERT_EXPR): Always return tree of
3226 proper type.
3227
3228 2000-11-26 Neil Booth <neilb@earthling.net>
3229
3230 * Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
3231 * c-decl.c: Remove parse_in declaration.
3232 * c-lang.c: Similarly.
3233 * c-lex.c: Similarly.
3234 * c-parse.in: Similarly.
3235 * c-pragma.c: Similarly.
3236 * configure.in: Similarly.
3237 * cp/Make-lang.in: Similarly.
3238 * cp/spew.c: Similarly.
3239 * cp/decl2.c: Remove check for lang-c++ option.
3240 * cp/lang-specs.h: Remove -lang-c++ from cc1plus command line.
3241 * cp/lex.c (lang_init_options): With cpp_reader_init, default to C++.
3242 * c-lex.h: Add declaration of parse_in.
3243 * cppinit.c: Call set_lang after allocating pfile->pending.
3244 * configure: Regenerate.
3245
3246 2000-11-25 Zack Weinberg <zack@wolery.stanford.edu>
3247
3248 * combine.c (try_combine): Remove redundant test.
3249
3250 2000-11-25 Richard Henderson <rth@redhat.com>
3251
3252 * c-common.h (DECL_C_HARD_REGISTER): New.
3253 * c-decl.c (finish_decl): Set it for asm register variables.
3254 * c-semantics.c (emit_local_var): Test it when instantiating one.
3255
3256 2000-11-25 Richard Henderson <rth@redhat.com>
3257
3258 * c-decl.c (c_expand_body): Use DECL_SOURCE_LINE rather than
3259 lineno for the start of the function.
3260
3261 2000-11-25 Richard Henderson <rth@redhat.com>
3262
3263 * dwarf2out.c (file_table, file_table_allocated): Remove.
3264 (file_table_allocated): Remove.
3265 (struct file_table): New.
3266 (decl_file_table, line_file_table): New.
3267 (print_dwarf_line_table): Use them.
3268 (size_of_line_prolog): Likewise.
3269 (output_line_info): Likewise.
3270 (add_src_coords_attributes): Likewise.
3271 (gen_subprogram_die): Likewise.
3272 (gen_variable_die): Likewise.
3273 (dwarf2out_add_library_unit_info): Likewise.
3274 (dwarf2out_line): Likewise.
3275 (lookup_filename): Take a struct file_table argument.
3276 (init_file_table): New.
3277 (dwarf2out_init): Use it.
3278
3279 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
3280
3281 * invoke.texi: Update sequence points references.
3282
3283 2000-11-25 Neil Booth <neilb@earthling.net>
3284
3285 * c-common.c: Remove USE_CPPLIB conditional inclusions.
3286 * c-common.h: Similarly.
3287 * c-decl.c: Similarly.
3288 * c-lang.c: Similarly.
3289 * c-lex.c: Similarly.
3290 * c-parse.in: Similarly.
3291 * c-pragma.c: Similarly.
3292 * c-pragma.h: Similarly.
3293 * gcc.c: Similarly.
3294 * toplev.c: Similarly.
3295 * cp/cp-tree.h: Similarly.
3296 * cp/decl2.c: Similarly.
3297 * cp/lang-specs.h: Similarly.
3298 * cp/lex.c: Similarly.
3299 * cp/lex.h: Similarly.
3300 * cp/spew.c: Similarly.
3301 * java/lang-options.h: Similarly.
3302 * objc/lang-specs.h: Similarly.
3303 * objc/objc-act.c: Similarly.
3304
3305 * configure.in: Remove configure option.
3306 * config.in: Regenerate.
3307 * configure: Regenerate.
3308
3309 2000-11-25 Richard Henderson <rth@redhat.com>
3310
3311 * haifa-sched.c (sched_analyze_1, sched_analyze_2, sched_analyze):
3312 Revert 2000-11-22 change.
3313
3314 2000-11-25 Bernd Schmidt <bernds@redhat.co.uk>
3315
3316 * config/i386/i386.h (FIXED_REGS): Make the three flags registers
3317 fixed.
3318
3319 2000-11-25 Philipp Thomas <pthomas@suse.de>
3320 * configure.in (ALL_LINGUAS): Remove en_GB and add sv.
3321 * configure: Rebuilt.
3322
3323 2000-11-25 Jakub Jelinek <jakub@redhat.com>
3324
3325 * config/sparc/sparc.md (muldi3_v8plus): Remove H constraint.
3326 Handle CONST_INT as second argument.
3327 * config/sparc/sparc.c (set_extends): Remove first argument.
3328 Properly handle AND, CONST_INT and CONST_DOUBLE, handle IOR, XOR and
3329 MOV.
3330 (sparc_check_64): Abort if first argument is not REG.
3331 If it is DImode REG, look at the lower register of the register
3332 pair.
3333
3334 * config/sparc/sparc.c (load_pic_register, restore_regs,
3335 output_return, sparc_v8plus_shift, sparc_function_profiler,
3336 sparc_function_block_profiler, sparc_block_profiler): Fix output
3337 formatting.
3338
3339 2000-11-25 Alexandre Oliva <aoliva@redhat.com>
3340
3341 * config/sh/sh.h (TARGET_NONE): New.
3342 (TARGET_SWITCHES): For all variant-selecting switch, use
3343 TARGET_NONE to reset all other variant-selecting switch. Added
3344 empty strings to avoid warnings.
3345 (TARGET_DEFAULT): Set to SH1_BIT.
3346
3347 * Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for
3348 insn-codes.h.
3349
3350 * gcc/config/sh/sh.md (sibcalli, sibcalli_pcrel): New insns.
3351 (sibcall_pcrel): New insn_and_split.
3352 (sibcall, sibcall_value, sibcall_epilogue): New expands.
3353
3354 * config/sh/sh.md (GOTaddr2picreg, symGOT2reg, symGOTOFF2reg,
3355 symPLT_label2reg, call, call_value): Don't set
3356 current_function_uses_pic_offset_table.
3357 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't mark
3358 PIC_OFFSET_TABLE_REGNUM as call_used, so that calc_live_regs
3359 takes it into account.
3360 (FINALIZE_PIC): Delete, useless.
3361 (LEGITIMATE_CONSTANT_P): Delete, unused.
3362 * config/sh/sh.c (sh_expand_prologue): Don't use
3363 current_function_uses_pic_offset_table. Don't special-case
3364 PIC_OFFSET_TABLE_REGNUM. Initialize it if it's ever live and
3365 PIC is enabled.
3366 (sh_expand_epilogue, initial_elimination_offset): Don't
3367 special case PIC_OFFSET_TABLE_REGNUM.
3368
3369 2000-11-25 Alexandre Oliva <aoliva@redhat.com>, NIIBE Yutaka <gniibe@m17n.org>
3370
3371 * config/sh/sh-protos.h (symbol_ref_operand): Declare.
3372 * config/sh/sh.md (UNSPEC_CALLER): New constant.
3373 (calli_pcrel, call_valuei_pcrel): Use PIC_REG.
3374 (call_pcrel, call_value_pcrel): New insn_and_splits.
3375 (call, call_value): Use them.
3376 (call_site): New expand.
3377 (sym_label2reg, symPLT_label2reg): Adjust to hold call_sites.
3378 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA) [UNSPEC_CALLER]:
3379 Output call_site label.
3380 (PREDICATE_CODES): Added symbol_ref_operand.
3381 * config/sh/sh.c (symbol_ref_operand): Define.
3382 * emit-rtl.c (try_split): Propagate CALL_INSN_FUNCTION_USAGE
3383 to CALL_INSNs in the split sequence.
3384
3385 2000-11-24 Nick Clifton <nickc@redhat.com>
3386
3387 * config.gcc (v850-*-*): Define c_target_objs and
3388 cxx_target_objs.
3389
3390 * config/v850/t-v850: Define how to build v850-c.o
3391
3392 * config/v850/v850.h (struct data_area_stack_element): Move
3393 definition here from v850.c.
3394
3395 * config/v850v850.c: Include gcc.h to avoid compile time
3396 warning.
3397 (push_data_area): Move to v850-c.c.
3398 (pop_data_area): Move to v850-c.c.
3399 (mark_current_function_as_interrupt): Move to v850-c.c.
3400 (GHS_default_section_names): Allow to be exported.
3401 (GHS_current_section_names): Allow to be exported.
3402 (data_area_stack_elements): Allow to be exported.
3403 (ghs_pragma_section): Move to v850-c.c.
3404 (ghs_pragma_interrupt): Move to v850-c.c.
3405 (ghs_pragma_starttda): Move to v850-c.c.
3406 (ghs_pragma_startsda): Move to v850-c.c.
3407 (ghs_pragma_startzda): Move to v850-c.c.
3408 (ghs_pragma_endtda): Move to v850-c.c.
3409 (ghs_pragma_endsda): Move to v850-c.c.
3410 (ghs_pragma_endzda): Move to v850-c.c.
3411
3412 * config/v850/v850-c.c: New file: Contains v850 specific
3413 pragma parsing functions.
3414
3415 2000-11-24 Nick Clifton <nickc@redhat.com>
3416
3417 * config.gcc (extra_objs): Remove duplicate description.
3418 (c_target_objs): New variable. Contains target specific
3419 object files for the gcc C compiler only.
3420 (cxx_target_objs): New variable. Contains target specific
3421 object files for the gxx C++ compiler only.
3422
3423 * configure.in (c_target_objs): Substitute in the makefile.
3424 (cxx_target_objs): Substitute in the makefile.
3425 * configure: Regenerate.
3426
3427 * Makefile.in (C_TARGET_OBJS): Define and initialise from
3428 c_target_objs.
3429 (CXX_TARGET_OBJS): Define and initialise from
3430 cxx_target_objs.
3431 (C_AND_OBJC_OBJS): Include C_TARGET_OBJS.
3432
3433 * cp/Make-lang.in (CXX_C_OBJS): Include CXX_TARGET_OBJS).
3434
3435 * tm.texi (REGISTER_TARGET_PRAGMAS): Add paragraph explaining
3436 about how the use of the 'c_lex' function requires the use of
3437 the target specific, language specific object files feature of
3438 the configuration mechanism.
3439
3440 Fri Nov 24 18:50:58 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3441
3442 * gcc.c (process_command): Use F_OK, not R_OK.
3443
3444 2000-11-24 Arno J. Klaassen <arno@heho.snv.jussieu.fr>
3445
3446 * flow.c (print_rtl_and_abort): Remove ANSIism.
3447
3448 Fri Nov 24 19:54:36 2000 Alexandre Oliva <aoliva@redhat.com>
3449
3450 * config/sh/sh.h (GENERAL_REGISTER_P,
3451 GENERAL_OR_AP_REGISTER_P, FP_REGISTER_P, XD_REGISTER_P,
3452 FP_OR_XD_REGISTER_P, FP_ANY_REGISTER_P): New macros. Use them
3453 all over.
3454 (SPECIAL_REG): Renamed to SPECIAL_REGISTER_P.
3455 * config/sh/sh.c: Use new macros.
3456 * config/sh/sh.md: Likewise.
3457
3458 Fri Nov 24 19:46:16 2000 Alexandre Oliva <aoliva@redhat.com>
3459
3460 * config/sh/sh.md: Clobber MACH_REG and MACL_REG in SImode,
3461 instead of just MACH_REG in DImode. Always refer to FPSCR_REG
3462 in PSImode.
3463
3464 Fri Nov 24 22:37:41 2000 Denis Chertykov <denisc@overta.ru>
3465
3466 * config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
3467 fixed.
3468 (machine_dependent_reorg): Wrong optimization based on
3469 NOTICE_UPDATE_CC removed.
3470
3471 Fri Nov 24 19:48:09 2000 J"orn Rennecke <amylaar@redhat.com>
3472
3473 * jump.c (delete_computation): Re-instate deletion of feeding insn.
3474 (delete_insn): Look for REG_LABEL notes.
3475 (redirect_tablejump): Delete feeding insns.
3476
3477 2000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
3478
3479 * config/i386/i386.md (call_pop_0, call_pop_1, call_value_pop_0,
3480 call_value_pop_1): Make sure operand numbers are contiguous.
3481
3482 * fold-const.c (fold_range_test): Avoid crash if LHS or RHS is null.
3483
3484 * reload1.c (conflicts_with_override): New function.
3485 (emit_input_reload_insns): Use it to tighten test for validity
3486 of substituting into output of previous insn.
3487
3488 * haifa-sched.c (struct ready_list): New.
3489 (ready_lastpos, ready_add, ready_remove_first, ready_sort): New static
3490 functions.
3491 (schedule_insn): Replace args READY and N_READY with a pointer to a
3492 ready_list; return void. Use the new functions to access the ready
3493 list. All callers changed.
3494 (queue_to_ready, debug_ready_list): Likewise.
3495 (schedule_block): Initialize a ready_list structure. Use new
3496 functions to access it.
3497 (max_priority): Remove unused variable.
3498 (schedule_insn): Don't set it.
3499
3500 * c-common.c (verify_tree): Don't recurse into CONSTRUCTORs.
3501
3502 * combine.c (cant_combine_insn_p): New function.
3503 (try_combine): Use it.
3504
3505 * Makefile.in (c-common.o): Depend on $(OBSTACK_H).
3506 * c-common.c (c-obstack.c): Include "obstack.h".
3507 (struct reverse_tree): Delete.
3508 (reverse_list, reverse_max_depth): Delete.
3509 (build_reverse_tree, common_ancestor, modify_ok): Delete functions.
3510 (struct tlist, struct tlist_cache): New.
3511 (tlist_obstack, tlist_firstobj, warned_ids, save_expr_cache): New.
3512 (add_tlist, merge_tlist, verify_tree, warning_candidate_p,
3513 warn_for_collisions, warn_for_collisions_1, new_tlist): New
3514 static functions.
3515 (verify_sequence_points): Rewritten.
3516 * fold-const.c (fold): Don't lose possibly important sequence
3517 points when removing one arm of TRUTH_ORIF_EXPRs or TRUTH_ANDIF_EXPRs.
3518
3519 2000-11-24 Richard Sandiford <rsandifo@redhat.com>
3520
3521 * gcc/cse.c (cse_insn): Removed conversion of REG_EQUIV to REG_EQUAL
3522 when reversing a register-to-register copy. Reversal now disabled
3523 when the previous instruction has a REG_EQUIV.
3524
3525 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
3526
3527 * c-parse.in (unary_expr): Move VA_ARG from here ...
3528 (primary): ... to here.
3529
3530 2000-11-23 Graham Stott <grahams@redhat.com>
3531
3532 * expr.c (store_constructor): If a field is non addressable and
3533 the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.
3534
3535 2000-11-23 Bernd Schmidt <bernds@redhat.co.uk>
3536
3537 * flow.c (print_rtl_and_abort): New function.
3538 (verify_wide_reg, verify_local_live_at_start): Try to dump more
3539 information before aborting.
3540
3541 2000-11-23 Alexandre Oliva <aoliva@redhat.com>
3542
3543 * emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
3544 is narrower than requested mode.
3545 (gen_highpart): Abort if register mode is narrower than
3546 requested mode.
3547
3548 2000-11-23 Graham Stott <grahams@redhat.com>
3549
3550 * cse.c (cse_insn): Initialise all regcost variables.
3551 Fix a typo add missing '='.
3552 Only compare costs if there is a replacement insn.
3553
3554 Thu Nov 23 04:33:33 2000 Alexandre Oliva <aoliva@redhat.com>
3555
3556 * final.c (output_addr_const) [LABEL_REF]: Simplify.
3557 [MINUS]: Enclose non-CONST_INTs in parentheses.
3558 [default]: Try OUTPUT_ADDR_CONST_EXTRA.
3559 * tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
3560 * varasm.c (decode_rtx_const) [CONST]: If it's not something
3561 PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
3562 instead of abort()ing.
3563 * sh.c (output_pic_addr_const): Removed. Fixed all callers.
3564 * sh.h (OUTPUT_ADDR_CONST_EXTRA): New. Handle the UNSPECs
3565 formerly handled in output_pic_addr_const.
3566 * sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
3567 operands of MINUS in CONSTs so that decode_rtx_const() will
3568 accept them.
3569
3570 Thu Nov 23 04:10:30 2000 Alexandre Oliva <aoliva@redhat.com>
3571
3572 * config/sh/sh.md (mova_const): New pattern.
3573 (GOTaddr2picreg): Use it.
3574 * config/sh/sh.c (broken_move): Match it.
3575 (mova_p): Don't match it.
3576 (machine_dependent_reorg): Adjust it.
3577
3578 Thu Nov 23 02:09:09 2000 Alexandre Oliva <aoliva@redhat.com>
3579
3580 * config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
3581 Moved most register-number #defines...
3582 * config/sh/sh.md (define_constants): ... here. Use macros to
3583 refer to registers and unspecs.
3584 * config/sh/sh.c: Likewise.
3585
3586 Thu Nov 23 01:01:32 2000 J"orn Rennecke <amylaar@redhat.com>
3587
3588 * Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
3589 (rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
3590 (alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
3591 (splay-tree.o, hash.o): Likewise.
3592 GCONFIG_H: New.
3593 (rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
3594 (bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
3595 (hashtab.o): Likewise.
3596 (gcov.o): Depend on $(CONFIG_H).
3597 * configure.in: #include insn-codes.h in tm.h.
3598
3599 2000-11-22 Nick Clifton <nickc@redhat.com>
3600
3601 * config/arm/arm.c (arm_encode_call_attribute): Make 'newstr' a
3602 const char * to avoid a compile time warning.
3603
3604 * config/arm/arm.md (define_constants): Define symbolic names for
3605 the link register, last integer register and the fake CC register.
3606 Update patterns to use these symbolic names.
3607
3608 2000-11-22 Neil Booth <neilb@earthling.net>
3609
3610 * cpplex.c (trigraph_ok): Ensure we don't warn twice.
3611 * cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.
3612
3613 2000-11-22 Richard Henderson <rth@redhat.com>
3614
3615 * haifa-sched.c (sched_analyze_1): Don't special-case calls
3616 for clobbering registers.
3617 (sched_analyze_2): Likewise.
3618 (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.
3619
3620 2000-11-22 Chris Demetriou <cgd@sibyte.com>
3621 Neil Booth <neilb@earthling.net>
3622
3623 * gcc.c (validate_switches): Validate multiple switches named
3624 in '|' (or) expressions in specs.
3625 (handle_braces): If more than 1 alternative in a '|' spec
3626 matches, call do_spec1 just once.
3627
3628 2000-11-22 Michael Meissner <meissner@redhat.com>
3629
3630 * d30v.h (TARGET_SWITCHES): Add documentation strings.
3631 (TARGET_OPTIONS): Ditto.
3632 (OPTIMIZATION_OPTIONS): Temporarily turn off -frename-registers if
3633 -O3.
3634
3635 Wed Nov 22 06:40:56 2000 Jeffrey A Law (law@cygnus.com)
3636
3637 * pa.c (hppa_encode_label): Account for addition of encoding
3638 character when allocating persistent space for the new label
3639 name.
3640
3641 2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
3642
3643 * Makefile.in, config.gcc, configure.in: Expunge remaining
3644 traces of facility for running MD files through C preprocessor.
3645
3646 2000-11-22 Joseph S. Myers <jsm28@cam.ac.uk>
3647
3648 * gcov.texi: Add magic comments for texi2pod.pl.
3649 * Makefile.in: Add rules to generate and install gcov.1.
3650 * gcov.1: New (generated) file.
3651
3652 2000-11-21 Richard Henderson <rth@redhat.com>
3653
3654 * regrename.c (scan_rtx_reg): Terminate the chain rather than
3655 abort on mark_read with NO_REGS.
3656
3657 2000-11-21 Mike Stump <mrs@wrs.com>
3658
3659 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
3660 compilation with older compilers, such as /bin/cc on SunOS.
3661 * fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
3662
3663 2000-11-21 Richard Henderson <rth@redhat.com>
3664
3665 * varasm.c (record_constant): Pad the constructed
3666 constant_descriptor appropriately.
3667
3668 Wed Nov 22 00:52:55 2000 J"orn Rennecke <amylaar@redhat.com>
3669
3670 * rtl.h (traverse_md_constants): Declare.
3671 (struct md_constant): Define.
3672 * Makefile.in (HOST_RTL): Add hashtab.o .
3673 (OBJS): Add hashtab.o .
3674 (hashtab.o): New rule.
3675 (rtl.o): Depends on HASHTAB_H.
3676 * rtl.c (hashtab.h): #include.
3677 (md_constants): New static variable.
3678 (def_hash, def_name_eq_p, read_constants): New static functions.
3679 (traverse_md_constants): New function.
3680 (read_name): Do constant expansion.
3681 (read_rtx): Recognize define_constants.
3682 * gencodes.c (print_md_constant): New function.
3683 (main): Emit #defines for all constant definitions encountered.
3684 * md.texi (Constant Definitions): New node.
3685 * gensupport.c (xcalloc): New function.
3686
3687 2000-11-21 Richard Henderson <rth@redhat.com>
3688
3689 * config/alpha/alpha.c (alpha_split_tfmode_frobsign): New.
3690 * config/alpha/alpha-protos.h: Declare it.
3691 * config/alpha/alpha.md (abstf_internal): Use it.
3692 (negtf_internal): Likewise.
3693 (andnotdi3): Unstar the name.
3694 (movtf_internal): Add o/G alternative.
3695
3696 2000-11-21 Zack Weinberg <zack@wolery.stanford.edu>
3697
3698 * stringpool.c (stringpool_statistics): Also report number and
3699 percentage of entries which are identifiers.
3700
3701 2000-11-21 Diego Novillo <dnovillo@redhat.com>
3702
3703 * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
3704 visited before visiting it.
3705
3706 2000-11-21 Nick Clifton <nickc@redhat.com>
3707
3708 * config/arm/arm.h: Accept TARGET_CPU_arm9tdmi,
3709 TARGET_CPU_strongarm110 and TARGET_SPU_strongarm1100.
3710
3711 * config.gcc: Accept --with-cpu=arm9 and --with-cpu=arm9tdmi.
3712
3713 2000-11-21 Richard Henderson <rth@redhat.com>
3714
3715 * c-common.c (c_unsafe_for_reeval): New function.
3716 (add_c_tree_codes): Register it.
3717 * c-common.h: Declare it.
3718 * tree.c (lang_unsafe_for_reeval): New hook.
3719 (unsafe_for_reeval): Call it.
3720 * tree.h: Declare it.
3721
3722 2000-11-21 Richard Henderson <rth@redhat.com>
3723
3724 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
3725 references as well.
3726
3727 2000-11-21 Neil Booth <neilb@earthling.net>
3728
3729 * do_includes: Revert to using cpp_read_file.
3730
3731 2000-11-21 Bernd Schmidt <bernds@redhat.co.uk>
3732
3733 * loop.c (consec_sets_giv): If the reg we're examining is anything
3734 but UNKNOWN_INDUCT, do nothing.
3735 Reset the reg's type to UNKNOWN_INDUCT before returning.
3736
3737 Mostly from Vladimir Makarov (vmakarov@redhat.com)
3738 * ia64.md (attr itanium_class): Define insn types as described in
3739 Itanium docs.
3740 (all insn patterns): Use itanium_class, not type attributes.
3741 Occasionally split alternatives as necessary.
3742 (attr type): Compute from new attr itanium_class.
3743
3744 2000-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3745
3746 * tradcpp.c (output_line_command): Mark system headers as such in
3747 `line' commands.
3748
3749 2000-11-21 Jakub Jelinek <jakub@redhat.com>
3750
3751 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
3752 support in as as well.
3753 * configure: Regenerate.
3754
3755 2000-11-20 Richard Henderson <rth@redhat.com>
3756
3757 * c-lex.c (orig_filename): New variable.
3758 (init_c_lex): Set it. Move call to cpp_start_read ...
3759 (yyparse): ... here. New function.
3760 * c-parse.in (yyparse_1): Rename the parser entry point.
3761 * c-tree.h: Declare it.
3762
3763 2000-11-21 Jakub Jelinek <jakub@redhat.com>
3764
3765 * expr.c (do_compare_and_jump): If op0 was replaced by promoted
3766 integer constant, use type of op1 for comparison.
3767
3768 2000-11-20 Stan Shebs <shebs@apple.com>
3769
3770 * config/rs6000/xm-darwin.h: New file, Darwin host definitions.
3771 * config/rs6000/x-darwin: New file, Darwin host fragment.
3772 * config.gcc (powerpc-*-darwin*): New host.
3773 * system.h (HAVE_DESIGNATED_INITIALIZERS): Allow this to be
3774 overridden by a config file.
3775
3776 2000-11-20 Neil Booth <neilb@earthling.net>
3777
3778 * cppmacro.c (paste_tokens): Rename from paste_payloads.
3779 Change token type after pasting spellings.
3780 (paste_all_tokens): Use it.
3781 * gcc.dg/cpp/paste2.c: Update test.
3782 * objc/execute/paste.m: New test.
3783
3784 2000-11-20 Richard Henderson <rth@redhat.com>
3785
3786 * dwarf.h (FMT_CODE): Adjust argument order; fix mapping to
3787 dwarf_subscr_data_formats bits.
3788 * dwarfout.c (simple_type_size_in_bits): Handle a type with
3789 no computed size as size zero.
3790 (field_byte_offset): Likewise.
3791 (subscript_data_attribute): Handle a range with no upper bound.
3792
3793 2000-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3794
3795 * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
3796
3797 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
3798
3799 * c-typeck.c (build_conditional_expr): When merging type
3800 qualifiers for conditional expressions between a pointer and a
3801 pointer to a void type, merge the qualifiers on the target types
3802 rather than the pointer type. Remove obsolete conditioned out
3803 code.
3804
3805 2000-11-20 Neil Booth <neilb@earthling.net>
3806
3807 * c-lang.c (lang_init_options): Update call to
3808 cpp_reader_init.
3809 * cppmain.c (main): Similarly.
3810 * fix-header.c (read_scan_file): Similarly.
3811 * cp/lex.c (lang_init_options): Similarly.
3812 * objc/objc-act.c (lang_init_options): Similarly.
3813 * cppexp.c (parse_number): Only warn for unextended C89.
3814 * cppinit.c (set_lang): New function.
3815 (cpp_reader_init): Take a LANG argument and pass it to set_lang.
3816 (COMMAND_LINE_OPTIONS): New option std=c++98.
3817 (cpp_handle_option): Use set_lang.
3818 * cpplex.c (_cpp_lex_token): Warn pedantically if not C99.
3819 * cppib.h (enum_c_lang): New enumeration. Update comments.
3820
3821 2000-11-20 Will Cohen <wcohen@redhat.com>
3822
3823 * calls.c (expand_call): Clear target only when target is in
3824 hard register and current_function_check_memory_usage is set.
3825
3826 2000-11-20 Bernd Schmidt <bernds@redhat.co.uk>
3827
3828 * toplev.c (rest_of_compilation): Run optimize_mode_switching even
3829 if not optimizing.
3830 * sh.c (emit_sf_insn, emit_df_insn): Just call emit_insn.
3831
3832 2000-11-19 Richard Henderson <rth@redhat.com>
3833
3834 * crtstuff.c (force_to_data): Use array size 1 not 0.
3835
3836 * dwarf2out.c (simple_type_size_in_bits): Handle a type with
3837 no computed size as size zero.
3838 (field_byte_offset): Likewise.
3839
3840 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
3841
3842 * config.gcc: Fix another typo.
3843
3844 2000-11-19 Richard Henderson <rth@redhat.com>
3845
3846 * c-decl.c (grokdeclarator): Support flexible array members.
3847 Use open-ended ranges for these and zero-length arrays.
3848 * c-typeck.c (push_init_level): Validate the context of
3849 initialization of a zero-length array.
3850 * tree.c (int_fits_type_p): Be prepared for missing bounds.
3851 * varasm.c (array_size_for_constructor): New.
3852 (output_constructor): Use it for arrays of unspecified length.
3853 * extend.texi (Zero Length): Mention C99 flexible array members.
3854 Document initialization in a top-level struct as valid.
3855
3856 2000-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
3857
3858 * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
3859
3860 * alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
3861 stdarg and varargs functions.
3862
3863 2000-11-19 Zack Weinberg <zack@wolery.stanford.edu>
3864
3865 * gcc.c (process_command): Define 'j' variable when
3866 MODIFY_TARGET_NAME is defined.
3867
3868 2000-11-19 Richard Henderson <rth@redhat.com>
3869
3870 * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
3871
3872 2000-11-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3873
3874 * rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
3875 calculation and allocation.
3876
3877 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3878
3879 * builtins.c (c_getstr): Constify variable.
3880 * gmon-sol2.c (_mcleanup): Comment out #endif labels.
3881 * conflict.c (const_conflict_graph_arc): New typedef.
3882 (arc_hash, arc_eq): Avoid needlessly casting away const-ness.
3883 * cppmacro.c (builtin_macro): Likewise.
3884 * dwarf2out.c (output_comp_unit): Constify variable.
3885 * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
3886 * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
3887 * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
3888 away const-ness.
3889 * tradcpp.c (rescan, do_line, macroexpand, macarg): Use
3890 ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
3891 * varasm.c (const_str_htab_hash, const_str_htab_eq,
3892 compare_constant_1, record_constant_1): Constify.
3893
3894 2000-11-18 Richard Henderson <rth@redhat.com>
3895
3896 * c-decl.c (grokdeclarator): Special case the creation of an
3897 index for a zero-length array.
3898 * tree.c (build_index_type): Revert Oct 20 change.
3899
3900 2000-11-18 Marek Michalkiewicz <marekm@linux.org.pl>
3901
3902 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
3903 * config/avr/avr.c (jump_tables_size): New variable.
3904 (function_prologue): Initialize it as 0.
3905 (function_epilogue): Add it to function_size.
3906 (avr_output_addr_vec_elt): New function. Count words in jump
3907 tables in jump_tables_size. Move code ...
3908 * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
3909 Call avr_output_addr_vec_elt instead.
3910 * config/avr/avr.md (tablejump): Remove disabled define_expand.
3911
3912 2000-11-18 Mark Mitchell <mark@codesourcery.com>
3913
3914 * configure.in: Make --enable-new-gxx-abi the default.
3915 * configure: Likewise.
3916
3917 2000-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3918
3919 * Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
3920
3921 * tradcif.y: Include tradcpp.h. Constify. Make functions static.
3922 Move extern function declarations to tradcpp.h.
3923
3924 * tradcpp.c: Likewise.
3925
3926 * tradcpp.h: New file.
3927
3928 2000-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
3929
3930 * c-decl.c (check_for_loop_decls): New function.
3931 * c-parse.in (for_init_stmt): New.
3932 (select_or_iter_stmt): Use for_init_stmt.
3933 * c-tree.h (check_for_loop_decls): New declaration.
3934
3935 2000-11-18 Neil Booth <neilb@earthling.net>
3936
3937 * cppinit.c: Update comments.
3938 (cpp_reader_init): Make -imacro and -include use the standard
3939 #include "" search path.
3940 (do_includes): New function.
3941
3942 2000-11-18 Ben Elliston <bje@redhat.com>
3943
3944 * config/sh/crt1.asm (start_l): Move PC-relative move instruction
3945 out of a branch delay slot.
3946
3947 2000-11-17 Richard Henderson <rth@redhat.com>
3948
3949 * config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
3950 (ASM_SPEC): Disable and enable .mdebug based on -gstabs.
3951 (ASM_FILE_START): Only write out ecoff .file directive if
3952 emitting mdebug debugging.
3953
3954 2000-11-17 Richard Henderson <rth@redhat.com>
3955
3956 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New. Detect
3957 whether as accepts .file/.loc and produces dwarf2 line info.
3958 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if
3959 the assembler supports it.
3960 * config.in, configure: Regenerate.
3961
3962 2000-11-17 Richard Henderson <rth@redhat.com>
3963
3964 * fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.
3965
3966 2000-11-17 Jim Wilson <wilson@redhat.com>
3967
3968 * config/ia64/ia64.c (emit_insn_group_barriers, case CALL_INSN):
3969 Don't clear need_barrier is next_insn is a CALL_INSN, or has
3970 instruction type B or UNKNOWN.
3971
3972 2000-11-17 Neil Booth <neilb@earthling.net>
3973
3974 * cpperror.c (print_file_and_line): Don't display line number if 0.
3975
3976 2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
3977
3978 * ggc.h: Delete ggc_add_string_root and ggc_mark_string. Add
3979 digit_vector and digit_string.
3980 * stringpool.c (digit_vector): New.
3981 (ggc_alloc_string): Use digit_string.
3982
3983 * stmt.c (digit_strings): Delete.
3984 (init_stmt): Do not initialize digit_strings.
3985 (expand_asm_operands): Use ggc.h's digit_string macro.
3986 * toplev.c (mark_file_stack): Delete.
3987 (compile_file): Don't call init_tree_codes.
3988 (main): No need to make the file stack a GC root.
3989 * tree.c (init_tree_codes): Delete.
3990 * tree.h (init_tree_codes): Delete.
3991
3992 * c-lex.c: Don't include ggc.h.
3993 (mark_splay_tree_node, mark_splay_tree): Delete.
3994 (init_c_lex): No need to ggc_strdup string constant. Don't add
3995 file_info_tree to GGC roots.
3996 (cb_enter_file, cb_rename_file): No need to ggc_strdup
3997 ip->nominal_fname.
3998
3999 * Makefile.in (c-lex.o): No longer depends on $(GGC_H).
4000
4001 * dbxout.c (dbxout_init),
4002 dwarf2out.c (dwarf2out_line),
4003 ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
4004 varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
4005 xcoffout.c (xcoffout_source_file),
4006 i386.c (load_pic_register):
4007 Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
4008
4009 * except.c (create_rethrow_ref),
4010 profile.c (init_edge_profiler),
4011 toplev.c (compile_file),
4012 varasm.c (named_section, assemble_static_space,
4013 assemble_trampoline_template, output_constant_def, force_const_mem),
4014 i386.c (load_pic_register),
4015 ia64.c (ia64_encode_section_info),
4016 rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
4017 rs6000_emit_prologue, rs6000_emit_epilogue),
4018 rs6000.md (load_toc_aix_si, load_toc_aix_di):
4019 Change ggc_alloc_string (var, -1) to ggc_strdup (var).
4020
4021 * profile.c (output_func_start_profiler),
4022 tree.c (make_node),
4023 i386.c (load_pic_register): No need to ggc_strdup string constant.
4024
4025 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
4026
4027 * Makefile.in (config.status): Depend on config.gcc.
4028 * configure.in <for machine in $build $host $target>: Move
4029 contents of loop into config.gcc, removing autoconf quoting.
4030 Fix changequote bug for alpha*-*-vxworks*.
4031 * configure: Regenerate.
4032 * config.gcc: New.
4033
4034 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
4035
4036 * c-parse.in (if_prefix): Find the filename and line number at
4037 $-2 and $-1 respectively.
4038 * diagnostic.c (error_recursion): Add missing newline, use
4039 fputs, translate string.
4040
4041 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
4042
4043 * stringpool.c: New file.
4044 * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
4045 (ggc_alloc_string): Now in stringpool.o.
4046 * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
4047 * ggc.h: Delete prototype of ggc_add_string_root. #define
4048 ggc_add_string_root and ggc_mark_string to nothing. Prototype
4049 init_stringpool and stringpool_statistics.
4050 (ggc_alloc_string): Returns a const char *.
4051 * tree.c (hash_table, do_identifier_warnings): Delete.
4052 (init_obstacks): Don't initialize the identifier hash table.
4053 (get_identifier, maybe_get_identifier, start_identifier_warnings,
4054 set_identifier_size): Now in stringpool.c.
4055 * tree.h (struct tree_string): Constify pointer field.
4056 (approx_sqrt): Prototype.
4057
4058 * Makefile.in (stringpool.o): Add rule, mention in OBJS.
4059
4060 * toplev.c (approx_sqrt): New function.
4061 (compile_file): Call stringpool_statistics if mem_report is on.
4062 (main): Call init_stringpool.
4063
4064 * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
4065 (process_directive), c-typeck.c (constructor_asmspec, struct
4066 initializer_stack, start_init), except.c (create_rethrow_ref),
4067 stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
4068 (built_in_filename), varasm,c (in_named_name,
4069 assemble_static_space, struct constant_descriptor, struct
4070 deferred_string, struct pool_constant, force_const_mem),
4071 i386.c (pic_label_name, global_offset_table_name), rs6000.c
4072 (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
4073
4074 * c-common.c (combine_strings): Combine strings in scratch
4075 buffer, then pass to build_string.
4076 * optabs.c (init_libfuncs), profile.c (init_edge_profiler,
4077 output_func_start_profiler), stmt.c (init_stmt), alpha.c
4078 (alpha_need_linkage), arm.c (arm_encode_call_attribute),
4079 i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
4080 rs6000.c (rs6000_encode_section_info): Create string in
4081 scratch buffer, then pass to ggc_alloc_string.
4082
4083 * stmt.c (expand_asm_operands): If we must adjust the
4084 constraint strings, do so by creating a new one, not by
4085 modifying the old one in place. Constify some char *s.
4086 * config/pa/pa.c (hppa_encode_label): Drop unnecessary second
4087 argument. Create string in scratch buffer, then pass to
4088 ggc_alloc_string.
4089 * config/pa/pa-protos.h: Update prototype.
4090 * config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
4091 hppa_encode_label takes only one argument.
4092
4093 2000-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4094
4095 * mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not
4096 malloc/realloc.
4097
4098 * cpplib.c (glue_header_name): Likewise.
4099
4100 * fixincl.c (run_compiles, start_fixer): Likewise.
4101
4102 * fixlib.c (load_file_data): Likewise.
4103
4104 * mkdeps.c (munge): Likewise.
4105
4106 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
4107
4108 * defaults.h [EH_FRAME_SECTION_ASM_OP] (EH_FRAME_SECTION): Remove
4109 trailing ';'. Fix formatting.
4110
4111 2000-11-16 Jim Wilson <wilson@redhat.com>
4112
4113 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT, MASK_INLINE_DIV_THR):
4114 Shift masks left by one to avoid conflict.
4115
4116 * config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with
4117 DECL_EXTERNAL set.
4118
4119 2000-11-16 Nick Clifton <nickc@redhat.com>
4120
4121 * config/arm/arm.c (output_arm_prologue): Note nested functions.
4122 (arm_expand_prologue): For nested functions preserve the
4123 static chain register during stack frame creation.
4124
4125 * config/arm/arm.h (STATIC_CHAIN_REGNUM): Change to 12.
4126 (ARM_INITIAL_FRAME_ELIMINATION_OFFSET): For a nested function
4127 with a stack frame there is a 4 byte gap between the arg
4128 pointer and the hard frame pointer (used to preserve the
4129 static chain register during stack frame creation).
4130
4131 2000-11-16 DJ Delorie <dj@redhat.com>
4132
4133 * rtl.c (read_rtx): Provide suitable names for unnamed
4134 define_insn and define_insn_and_split patterns, based on file
4135 and line numbers.
4136
4137 2000-11-15 Neil Booth <neilb@earthling.net>
4138
4139 * cpplib.c (start_directive, end_directive): New functions.
4140 (_cpp_handle_directive, run_directive): Use them.
4141 (_cpp_handle_directive): Don't -Wtraditional on indented
4142 null directives.
4143 (_cpp_push_buffer): Don't re-clear was_skipping.
4144 * cpplib.h (struct cpp_reader): New member la_saved.
4145 * cppmacro.c (cpp_get_token): Don't interpret _Pragma in
4146 directives.
4147
4148 gcc.dg/cpp/_Pragma1.c: Update.
4149 gcc.dg/cpp/_Pragma2.c: New test.
4150
4151 2000-11-15 Mark Mitchell <mark@codesourcery.com>
4152
4153 * toplev.c (wrapup_global_declarations): Don't write out
4154 artificial static variables that aren't needed.
4155
4156 2000-11-15 Bernd Schmidt <bernds@redhat.co.uk>
4157
4158 * ia64.c (struct group): New structure.
4159 (last_group): New static array.
4160 (group_idx): New static variable.
4161 (emit_group_barrier_after, errata_find_address_regs, errata_emit_nops):
4162 New static functions.
4163 (emit_insn_group_barriers): Initialize and keep track of group_idx
4164 and last_group.
4165 Call errata_emit_nops if TARGET_B_STEP or TARGET_A_STEP.
4166 Replace all calls to emit_insn_after that emit a group barrier to use
4167 emit_group_barrier_after.
4168 * ia64.h (MASK_B_STEP): New.
4169 (other MASK_XXX macros): Renumbered.
4170 (TARGET_B_STEP): New.
4171 (TARGET_SWITCHES): Add -mb-step.
4172
4173 2000-11-15 Fred Fish <fnf@be.com>
4174
4175 * fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
4176 machines for which fixincludes is not needed.
4177 * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
4178
4179 2000-11-15 Jason Merrill <jason@redhat.com>
4180
4181 * diagnostic.c (finish_abort): New fn.
4182 (fancy_abort, error_recursion): Use it.
4183 * toplev.c (crash_signal): Likewise.
4184 * diagnostic.h: Declare it.
4185
4186 2000-11-13 Andrew Haley <aph@redhat.com>
4187
4188 * tree.c (build_type_no_quals): New function.
4189 * tree.h (build_type_no_quals): Declare.
4190 * c-common.c (c_get_alias_set): When considering type
4191 compatibility for pointer types, ignore cv-qualifiers anywhere in
4192 a pointer chain.
4193
4194 2000-11-15 Graham Stott <grahams@redhat.com>
4195
4196 * regrename.c (scan_rtx_rtx): Skip to the next chain on
4197 encountering a terminated chain.
4198
4199 2000-11-14 Mark Mitchell <mark@codesourcery.com>
4200
4201 * configure.in: Move check for V3 above check for C++ header-file
4202 directory.
4203 * configure: Regenerated.
4204
4205 2000-11-14 DJ Delorie <dj@redhat.com>
4206
4207 * config/v850/v850.c: Remove obstacks.
4208
4209 Tue Nov 14 21:54:31 2000 Marek Michalkiewicz <marekm@linux.org.pl> & Denis Chertykov <denisc@overta.ru>
4210
4211 * config/avr/avr.c (avr_case_values_threshold): New.
4212 (avr_override_options): Set it depending on options, make it large
4213 when not optimizing to work around "unable to generate reloads".
4214
4215 * config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
4216 (EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
4217 executable if not AVR_MEGA. Make sure jump tables are word-aligned.
4218 (JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
4219 (ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
4220 (avr_case_values_threshold): Declare as extern int.
4221 (CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.
4222
4223 * config/avr/avr.md (tablejump): Removed.
4224 (*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
4225 (*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
4226 index in the table, not multiplied by 2.
4227 (casesi): Change to match the above insns. Always enable.
4228
4229 * config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
4230 Change to expect the word address of the table, multiply it by 2
4231 here and not in the caller. Change "adiw" to faster "inc".
4232
4233 2000-11-14 Neil Booth <neilb@earthling.net>
4234
4235 * cppexp.c (parse_defined): Call cpp_get_token not
4236 _cpp_get_token.
4237 (lex): Similarly.
4238 * cpplex.c (cpp_output_line): Similarly.
4239 * cpplib.c (glue_header_name, do_line, do_ident,
4240 parse_answer, parse_assertion): Similarly.
4241 (_cpp_handle_diretive): Don't save to lookaheads
4242 when processing directives.
4243 * cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
4244 _cpp_get_token.
4245 (funlike_invocation_p): Don't save to lookaheads
4246 when pre-expanding arguments.
4247 (_cpp_get_token): Delete.
4248 (cpp_get_token): Merge contents of _cpp_get_token.
4249
4250 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4251
4252 * builtins.c (expand_builtin_setjmp): Set
4253 current_function_calls_setjmp.
4254 (expand_builtin_longjmp): Set current_function_calls_longjmp.
4255
4256 * config/sparc/sparc.md (builtin_setjmp_setup): New expand.
4257 (do_builtin_setjmp_setup): New insn.
4258
4259 Tue Nov 14 12:34:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4260
4261 * tree.c (get_unwidened): Use host_integerp and tree_low_cst.
4262 (int_fits_type_p): For variable bounds, call force_fit_type.
4263
4264 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4265
4266 * varasm.c (struct deferred_string): New structure.
4267 (const_str_htab): New variable.
4268 (STRHASH): New macro.
4269 (mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
4270 constr_str_htab_eq, const_str_htab_del): New functions.
4271 (output_constant_def): Add DEFER argument, defer string
4272 constants until mark_constant_pool time if requested.
4273 (mark_constant_pool): Walk the insn chain even if const_str_htab is
4274 not empty.
4275 (mark_constants): If a SYMBOL_REF for deferred string is found,
4276 output it and remove from hash table.
4277 (output_addressed_constants): Set DEFER to 0 in call to
4278 output_constant_def.
4279 * rtl.h (STRING_POOL_ADDRESS_P): Define.
4280 (output_constant_def): Adjust prototype.
4281 * expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.
4282
4283 2000-11-14 Chandrakala Chavva <cchavva@redhat.com>
4284
4285 * optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
4286 signed types if flag_trapv.
4287
4288 2000-11-14 Zack Weinberg <zack@wolery.stanford.edu>
4289
4290 * tradcpp.c, tradcif.y: Update FSF mailing address, delete
4291 reference to GPLv1.
4292
4293 2000-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
4294
4295 * c-common.h (CTI_C_SIZE_TYPE): Update comment.
4296
4297 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4298
4299 * varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
4300 to array of pool_constnat pointers.
4301 (struct pool_constant): Add next_sym and label members.
4302 (struct pool_sym): Remove.
4303 (init_varasm_status): Change pool_sym into pool_constant.
4304 (mark_pool_constant): Mark pc->label string as well.
4305 (mark_pool_sym_hash_table): Remove.
4306 (mark_varasm_status): Remove it from caller as well.
4307 (free_varasm_status): Don't free pool_sym structures.
4308 (force_const_mem): Don't allocate pool_sym structure, instead
4309 fill pool->label and chain it into rtx_sym hash table.
4310 (find_pool_constant, mark_constant_pool): Use pool_constant instead
4311 of pool_sym.
4312
4313 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4314
4315 * reload1.c (emit_input_reload_insns): Honour forcing of constants
4316 into memory by PREFERRED_RELOAD_CLASS NO_REGS.
4317
4318 2000-11-14 Michael Matz <matzmich@cs.tu-berlin.de>
4319
4320 * dominance.c: New file.
4321 * Makefile.in (OBJS): Add dominance.o.
4322
4323 * flow.c (compute_flow_dominators): Remove.
4324 (compute_immediate_dominators): Remove.
4325 (compute_immediate_postdominators): Remove.
4326 * basic-block.h: Remove their prototypes.
4327 (calculate_dominance_info): Add prototype.
4328
4329 * dce.c (eliminate_dead_code): Change calls to above functions.
4330 Don't compute dominators but only immediate dominators.
4331 * flow.c (flow_loops_find): Change callers.
4332 * gcse.c (compute_code_hoist_data): Likewise.
4333 * haifa-sched.c (schedule_insns): Likewise.
4334 * ifcvt.c (if_convert): Likewise.
4335 * ssa.c (convert_to_ssa): Likewise, and only compute immediate
4336 dominators.
4337
4338 2000-11-14 Richard Henderson <rth@redhat.com>
4339
4340 * stmt.c (warn_if_unused_value): Don't warn if the expression
4341 has side effects.
4342
4343 * c-typeck.c (c_sizeof): Fold result to c_size_type_node.
4344 (c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.
4345
4346 2000-11-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4347
4348 * loop.c (basic_induction_var): Revert accidental checkin.
4349
4350 2000-11-13 Hans-Peter Nilsson <hp@axis.com>
4351
4352 * c-lex.c (cb_leave_file): Harmonize conditions and order of
4353 statements to those of process_directive for (action == act_pop).
4354
4355 * collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS.
4356
4357 * local-alloc.c (equiv_init_movable_p): References to CC0 are not
4358 movable.
4359
4360 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4361
4362 * c-parse.in (stmts_and_decls): Deprecate use of label at end of
4363 compound statement.
4364
4365 2000-11-13 Neil Booth <neilb@earthling.net>
4366
4367 * cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF
4368 cases return without MI check.
4369 * cpplib.c (do_diagnostic): Take boolean of whether to
4370 print the directive name.
4371 (do_error, do_warning): Update.
4372 (do_pragma_dependency): Use it.
4373 * cpplib.h (VARARGS_FIRST): Delete.
4374 (struct cpp_token): Delete integer.
4375 * cppmacro.c (enter_macro_context): Move disabled check
4376 to _cpp_get_token.
4377 (_cpp_get_token): Simplify into a single loop.
4378
4379 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
4380
4381 * configure.in: Use 'test -f' not '[ -e'.
4382 * configure: Regenerated.
4383
4384 2000-11-13 DJ Delorie <dj@redhat.com>
4385
4386 * config/mn10300/mn10300.md (store_movm): Note which registers are
4387 really used or clobbered.
4388
4389 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4390
4391 * c-parse.in (ends_in_label): Remove from %union and %type.
4392 (decls, stmts, lineno_stmt_or_labels, xstmts,
4393 lineno_stmt_or_label, stmt_or_label): Remove.
4394 (stmts_and_decls, lineno_stmt_decl_or_labels_ending_stmt,
4395 lineno_stmt_decl_or_labels_ending_decl,
4396 lineno_stmt_decl_or_labels_ending_label,
4397 lineno_stmt_decl_or_labels_ending_error,
4398 lineno_stmt_decl_or_labels, compstmt_contents_nonempty,
4399 lineno_stmt, lineno_label): New.
4400 (compstmt_nostart): Use compstmt_contents_nonempty.
4401
4402 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4403
4404 * c-common.c (boolean_increment): New function.
4405 * c-common.h (enum c_tree_index): Add CTI_C_BOOL_TYPE,
4406 CTI_C_BOOL_TRUE and CTI_C_BOOL_FALSE.
4407 (c_bool_type_node, c_bool_true_node, c_bool_false_node): Define.
4408 (boolean_increment): Declare.
4409 * c-convert.c (convert): Allow for BOOLEAN_TYPE.
4410 * c-decl.c (init_decl_processing): Create boolean nodes.
4411 (finish_struct): Allow for _Bool bitfields.
4412 * c-parse.in (reswords): Add _Bool.
4413 (rid_to_yy): Allow for RID_BOOL.
4414 * c-typeck.c (default_conversion): Make booleans promote to int.
4415 (convert_arguments, build_unary_op, build_modify_expr,
4416 convert_for_assignment): Allow for booleans.
4417 * ginclude/stdbool.h: Make conforming to C99.
4418
4419 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4420
4421 * c-parse.in (c99_block_start, c99_block_end,
4422 c99_block_lineno_labeled_stmt): New.
4423 (simple_if, do_stmt_start): Use c99_block_lineno_labeled_stmt.
4424 (stmt): Split off selection and iteration statements into...
4425 (select_or_iter_stmt): New. Use c99_block_lineno_labeled_stmt.
4426
4427 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4428
4429 * invoke.texi (-Wtrigraphs, -fdump-translation-unit, -save-temps,
4430 -time): Update.
4431
4432 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
4433
4434 * arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
4435 Rewrite to avoid use of match_dup. Don't try to tie registers that
4436 are not in the same mode.
4437
4438 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4439
4440 * invoke.texi: Update lists of languages and suffixes supported.
4441
4442 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4443
4444 * configure.in: Take toplevel configure arguments from the
4445 environment to create configargs.h and substitute
4446 gcc_config_arguments, taking account of any existing configargs.h
4447 if reconfiguring.
4448 * configure: Regenerate.
4449 * gccbug.in: Include toplevel configure arguments in gccbug.
4450
4451 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
4452
4453 * varasm.c (struct constant_descriptor): Put CONTENTS inside a
4454 union to make it well-aligned. Update all uses.
4455
4456 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4457
4458 * c-parse.in (initelt): Give appropriate pedantic warnings,
4459 depending on flag_isoc99, for non-ISO syntax and for C99 syntax
4460 outside C99 mode.
4461 (designator): If pedantic, pedwarn for a designator specifying a
4462 range of elements.
4463 * c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
4464 these cases.
4465 * extend.texi: Document the C99 syntax as the preferred syntax,
4466 and the pre-2.5 syntax as obsolete. Mention use of designator
4467 lists for nested subobjects.
4468
4469 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4470
4471 * diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
4472 Add ATTRIBUTE_PRINTF.
4473 * tradcpp.c (v_message, warning, error, fatal, error_with_line):
4474 Add ATTRIBUTE_PRINTF*.
4475
4476 2000-11-12 Mark Mitchell <mark@codesourcery.com>
4477
4478 * function.c (assign_parms): When calling put_var_into_stack, make
4479 sure that there are no hidden pending sequences.
4480
4481 2000-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4482
4483 * builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
4484 BUILT_IN_RINDEX. Add missing checks for BUILT_IN_STRCHR and
4485 BUILT_IN_STRRCHR.
4486
4487 * builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.
4488
4489 * c-common.c (c_common_nodes_and_builtins): Declare index and
4490 rindex when nonansi builtins are allowed.
4491
4492 * extend.texi (index, rindex): Document new builtins.
4493
4494 2000-11-12 Mark Mitchell <mark@codesourcery.com>
4495
4496 * configure.in: Turn on libstdc++ V3 by default.
4497 * configure: Regenerated.
4498
4499 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
4500
4501 2000-11-12 Jakub Jelinek <jakub@redhat.com>
4502
4503 * reload1.c (set_label_offsets): Go inside of PARALLELs.
4504
4505 2000-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
4506
4507 * invoke.texi: Clean up option summary.
4508
4509 2000-11-12 Nick Clifton <nickc@redhat.com>
4510
4511 * config/mcore/mcore.c: Fix comment formating, and adjust sequence
4512 of #include headers.
4513
4514 2000-11-12 Marc Espie <espie@openbsd.org>
4515
4516 * configure.in: Fix filds test.
4517 * configure: Regen.
4518
4519 2000-11-12 Mark Mitchell <mark@codesourcery.com>
4520
4521 * jump.c (delete_computation): Don't assume that just becuase an
4522 instruction sets a register, that register is dead.
4523
4524 2000-11-12 Neil Booth <neilb@earthling.net>
4525
4526 * cppexp.c: Don't worry about pfile->skipping.
4527 * cpplib.c (struct if_stack): Make was_skipping unsigned char.
4528 (cpp_handle_directive): Save pfile->skipping in struct cpp_buffer
4529 for handled directives.
4530 (skip_rest_of_line): Use _cpp_lex_token after popping contexts
4531 and releasing lookaheads.
4532 (do_ifdef, do_ifndef, do_if): Use buffer->was_skipping.
4533 (do_else, do_elif, push_conditional): Update logic.
4534 (do_endif): Set buffer->was_skipping rather than pfile->skipping.
4535 (unwind_if_stack): Inline into cpp_pop_buffer.
4536 (cpp_push_buffer): Clear ifs->was_skipping for cpp_handle_directive.
4537 * cpplex.c (_cpp_lex_token): Clear skipping on EOF. Handle
4538 multiple-include optimisation.
4539 * cpplib.h (struct cpp_buffer): New member was_skipping.
4540 * cppmacro.c (_cpp_get_token): Loop whilst pfile->skipping. This
4541 works because skipping == 0 in directives.
4542 (_cpp_release_lookahead): Renamed from release_lookahead.
4543 (cpp_get_token): No need to check skipping as _cpp_get_token does
4544 this for us. No need to handle MI optimisation.
4545
4546 Sat Nov 11 21:14:02 2000 Mark P Mitchell <mark@codesourcery.com>
4547
4548 * fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
4549 declarations that use `__MATH_EXCEPTION' in their prototypes, too.
4550 * fixinc/fixincl.x: Regenerated.
4551
4552 2000-11-11 Bruce Korb <bkorb@gnu.org>
4553
4554 * fixinc/inclhack.def (avoid_bool_type): avoid commenting out #endif
4555 (avoid_wchar_t_type): ditto
4556 * fixinc/fixinc.irix: obsoleted
4557
4558 2000-11-11 Zack Weinberg <zack@wolery.stanford.edu>
4559
4560 * configure.in: Don't add $outputs to all_lang_makefiles. Add
4561 $srcdir/$s/Makefile.in if it exists.
4562 * configure: Regenerate.
4563
4564 Sat Nov 11 18:41:20 2000 Mark P Mitchell <mark@codesourcery.com>
4565
4566 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
4567
4568 2000-11-11 Jason Merrill <jason@redhat.com>
4569
4570 * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to
4571 give the parm a register and then call put_var_into_stack.
4572 * stmt.c (expand_decl): Likewise.
4573
4574 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
4575
4576 * gcc.texi: Adjust wording.
4577
4578 2000-11-11 Mark Mitchell <mark@codesourcery.com>
4579
4580 * fixinc/inclhack.def (avoid_wchar_t_type): New fix.
4581 * fininc/fixincl.x: Regenerated.
4582
4583 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
4584
4585 * invoke.texi: Correct spelling of -foptimize-register-move.
4586
4587 2000-11-11 Neil Booth <neilb@earthling.net>
4588
4589 Remove CPP_PLACEMARKERs.
4590
4591 * cppexp.c (lex): Don't handle CPP_PLACEMARKER.
4592 * cpplex.c (_cpp_lex_token): Rename skip_newlines to next_bol
4593 * cpplib.c (skip_rest_of_line, check_eol, cpp_push_buffer):
4594 Similarly.
4595 * cpplib.h: Remove CPP_PLACEMARKER.
4596 (struct lexer_state): Rename skip_newlines to next_bol.
4597 * cppmacro.c (stringify_arg): Don't handle CPP_PLACEMARKER.
4598 Simplify prev_white handling as a result.
4599 (paste_all_tokens): Don't worry about CPP_PLACEMARKERs.
4600 (parse_arg): Empty arguments are now empty, not CPP_PLACEMARKERs.
4601 (parse_args): Similarly. Update argument count tests.
4602 (enter_macro_context): Return 2 to indicate an empty macro.
4603 (replace_args): Don't bother pre-expanding an empty argument.
4604 Handle placemarkers and ## extension during pre-expansion.
4605 (cpp_get_token): Handle empty macro expansions. Don't worry
4606 about CPP_PLACEMARKERs.
4607 (_cpp_create_definition): Empty macros are now empty.
4608 (cpp_macro_defintion): Don't special case empty macros.
4609 * scan-decls.c: Don't bother with CPP_PLACEMARKERs.
4610 * c-lex.c: Similarly.
4611
4612 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
4613
4614 * gcc.texi, invoke.texi: Add new section discussing language
4615 standards; link to it where appropriate; refer to ISO C instead of
4616 ANSI C.
4617
4618 2000-11-11 Alexandre Oliva <aoliva@redhat.com>
4619
4620 * builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY
4621 into account.
4622
4623 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP
4624 modes.
4625
4626 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
4627
4628 * gcc.texi, gcov.texi: Update dates and version numbers.
4629
4630 2000-11-10 Zack Weinberg <zack@wolery.stanford.edu>
4631
4632 * configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
4633 flex and bison, specifically, first in a unified build and
4634 then installed on the system.
4635 * Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
4636 LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
4637 match.
4638
4639 (collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
4640 cppdefault.o): Remove pointless sed munging of source file
4641 name.
4642
4643 2000-11-10 Bernd Schmidt <bernds@redhat.co.uk>
4644
4645 * reload.c (find_reloads_address_1, case POST_MODIFY): Use RELOAD_OTHER
4646 for address reloads. Push replacements for REG_INC notes.
4647 (regno_clobbered_p): New arg SETS. Examine SETs if it's nonzero. All
4648 callers changed.
4649 * reload1.c (choose_reload_regs): Registers set in the insn can't be
4650 used for RELOAD_OTHER reloads.
4651
4652 2000-11-10 Mark Mitchell <mark@codesourcery.com>
4653
4654 * c-dump.h: New file.
4655
4656 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4657
4658 * alpha.c (check_float_value): Use memcpy, not bcopy.
4659 * arm.c (output_move_double): Likewise.
4660 * arm.md: Likewise.
4661 * m88k.c (legitimize_operand): Likewise.
4662 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
4663 * m88k.md: Likewise.
4664 * mips.c (override_options): Likewise.
4665 * mips.md: Likewise.
4666 * romp.c (output_fpops): Likewise.
4667 * rs6000.c (rs6000_override_options): Likewise.
4668 * sh.md: Likewise.
4669 * vax.c (check_float_value): Likewise.
4670
4671 * emit-rtl.c (copy_rtx_if_shared, init_emit_once): Likewise.
4672 * expmed.c (synth_mult): Likewise.
4673 * final.c (add_bb_string): Likewise.
4674 * genattr.c (main): Likewise.
4675 * genattrtab.c (attr_string, simplify_cond, copy_rtx_unchanging):
4676 Likewise.
4677 * jump.c (thread_jumps): Likewise.
4678 * prefix.c (save_string): Likewise.
4679 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Likewise.
4680 * regclass.c (init_reg_sets, init_reg_sets_1): Likewise.
4681 * reload1.c (reload, eliminate_regs): Likewise.
4682
4683 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
4684
4685 * gcc.texi (Service): Update to reflect current practice and
4686 location of the GNU service directory.
4687
4688 2000-11-09 Bernd Schmidt <bernds@redhat.co.uk>
4689
4690 * regrename.c (build_def_use): Mark contents of REG_INC notes as
4691 needing replacement.
4692
4693 * config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Emit
4694 a no-op move if regs are equal.
4695 * toplev.c (rest_of_compilation): Do the noop moves elimination pass
4696 when calling jump after post-reload splitting.
4697
4698 2000-11-09 Jan van Male <jan.vanmale@fenk.wau.nl>
4699
4700 * c-tree.texi: Fix typos.
4701 * extend.texi: Likewise
4702 * gcov.texi: Likewise
4703 * rtl.texi: Likewise
4704 * tm.texi: Likewise
4705
4706 2000-11-09 Hans-Peter Nilsson <hp@axis.com>
4707
4708 * c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
4709 in_system_header and flags[1] before dereferencing flags[2].
4710
4711 2000-11-09 Matthew Hiller <hiller@redhat.com>
4712
4713 * reload1.c (reload_combine): Fixed calculation of
4714 first_index_reg, last_index_reg.
4715
4716 2000-11-09 Mark Mitchell <mark@codesourcery.com>
4717
4718 * c-dump.c (dequeue_and_dump): Dump function bodies.
4719
4720 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
4721 (c-dump.o): New target.
4722 * c-common.h (flag_dump_translation_unit): New variable.
4723 (C_TYPE_QUALS): New macro.
4724 (strip_array_types): New function.
4725 (DECL_C_BIT_FIELD): New macro.
4726 (SET_DECL_C_BIT_FIELD): Likewise.
4727 (CLEAR_DECL_C_BIT_FIELD): Likewise.
4728 (dump_info_p): New typedef.
4729 (dump_tree_fn): Likewise.
4730 (lang_dump_tree): New variable.
4731 (dump_node_to_file): New function.
4732 * c-common.c (flag_dump_translation_unit): Define it.
4733 (strip_array_types): New function.
4734 * c-decl.c (c_decode_option): Handle -fdump-translation-unit.
4735 * c-lang.c (finish_file): Call dump_node_to_file if
4736 flag_dump_translation_unit.
4737 * c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
4738 * c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
4739 * c-dump.c: New file.
4740
4741 2000-11-09 Christopher Faylor <cgf@cygnus.com>
4742
4743 * config/i386/cygwin.h: Add mingw startfile prefix.
4744
4745 2000-11-09 Richard Henderson <rth@redhat.com>
4746
4747 * flow.c (invalidate_mems_from_set): Split out from ...
4748 (mark_set_1): ... here.
4749 (try_pre_increment_1): Use it. Use propagate_block_delete_insn
4750 instead of turning insn into a NOTE_INSN_DELETED.
4751
4752 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
4753
4754 * extend.texi, invoke.texi: Move documentation of builtin versions
4755 of C library functions to one place and update.
4756
4757 2000-11-09 Richard Henderson <rth@redhat.com>
4758
4759 * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
4760 the types themselves to discover type equivalence.
4761
4762 2000-11-09 Mike Stump <mrs@wrs.com>
4763
4764 * Makefile.in (distclean): Remove a few extra leftovers.
4765
4766 2000-11-09 Richard Henderson <rth@redhat.com>
4767
4768 * recog.c (validate_replace_rtx_1): Consider subregs when
4769 replacing a register with a constant inside a sign/zero_extend.
4770
4771 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4772
4773 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
4774
4775 * c-decl.c (finish_struct): When a structure is completed,
4776 check all its variant types for completeness.
4777
4778 2000-11-09 Neil Booth <neilb@earthling.net>
4779
4780 * cpphash.c: Move cpp_defined here from cpplib.c.
4781 * cpplib.c: Update comments, move cpp_defined to cpphash.c.
4782 * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
4783 * cppmacro.c (cpp_get_token): Update comments, no need now
4784 to catch the CPP_EOF meaning EOL case.
4785
4786 2000-11-08 Geoffrey Keating <geoffk@redhat.com>
4787
4788 * config/sparc/sparc.c (sparc_va_arg): When the required alignment
4789 is more than that provided, copy to a temporary.
4790
4791 2000-11-09 Alexandre Oliva <aoliva@redhat.com>
4792
4793 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
4794 interpreting $out as a macro assignment.
4795 * Makefile.in (T_TARGET): New auxiliary macro and target.
4796 (all): Add a target right in the beginning, so that we don't build
4797 T_TARGET by default.
4798
4799 2000-11-09 Graham Stott <grahams@redhat.com>
4800
4801 * config/i386/i386.md (mmx_pinsrw): Output operands in correct
4802 order for -mintel-syntax. Remove comment now that the operand
4803 order has been checked.
4804 (mmx_pextrw): Likewise.
4805 (mmx_pshufw): Likewise.
4806
4807 2000-11-09 Jakub Jelinek <jakub@redhat.com>
4808
4809 * builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
4810 (c_getstr): New function.
4811 (expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
4812 If both arguments are constant string, optimize out.
4813 (expand_builtin_strchr, expand_builtin_strrchr): New functions.
4814 (expand_builtin_strpbrk): Use c_getstr, do nothing if
4815 -fcheck-memory-usage.
4816 (expand_builtin_fputs): Likewise.
4817 (expand_builtin_strcmp): Add MODE argument.
4818 Use even if !HAVE_cmpstrsi.
4819 Optimize the case when both arguments are constant strings.
4820 (expand_builtin): Adjust expand_builtin_strcmp caller.
4821 Call expand_builtin_strchr and expand_builtin_strrchr.
4822 * c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
4823 builtins.
4824 * builtins.def (BUILT_IN_STRRCHR): Add.
4825
4826 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4827
4828 * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
4829
4830 2000-11-09 Joseph S. Myers <jsm28@cam.ac.uk>
4831
4832 * calls.c (expand_call, emit_library_call_value_1), collect2.c
4833 (scan_prog_file), config/a29k/a29k.c (print_operand),
4834 config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
4835 instead of bcopy ().
4836 * real.h: Use memcmp () instead of bcmp ().
4837 * config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
4838 (split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
4839 ultrasparc_sched_init, ultrasparc_sched_reorder),
4840 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
4841 instead of bzero ().
4842 * config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
4843 instead of rindex ().
4844 * configure.in: Don't check for bzero, bcmp, index or rindex.
4845 * configure, config.in: Regenerate.
4846 * system.h: Don't include declarations for bzero, bcmp, index or
4847 rindex.
4848 * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
4849 bzero, bcmp, index or rindex.
4850
4851 Wed Nov 8 21:58:20 2000 Christopher Faylor <cgf@cygnus.com>
4852
4853 * config/i386/cygwin.h: Add -no-win32 switch. Separate -mno-cygwin
4854 include and library paths from -mcygwin case. Parameterize some
4855 declarations to avoid warnings. Use standard locations for include and
4856 lib dirs.
4857
4858 2000-11-08 Nick Clifton <nickc@redhat.com>
4859
4860 * config/arm/arm.md (mulsidi3adddi): Change output operand
4861 constraint from "=&" to "+&".
4862 (umulsidi3adddi): Change output operand constraint from "=&" to
4863 "+&".
4864
4865 2000-11-08 Richard Henderson <rth@redhat.com>
4866
4867 * flow.c (init_propagate_block_info): Protect the rtx stored in
4868 mem_set_list from modification by find_auto_inc.
4869 (mark_set_1): Likewise.
4870
4871 2000-11-08 Neil Booth <neilb@earthling.net>
4872
4873 Move directive handling into the lexer itself.
4874
4875 * cpplex.c (_cpp_lex_token): Handle directives directly.
4876 In the case of a directive interrupting a function-like
4877 macro invocation, use extra_char since read_ahead is
4878 used to store the '#'. Return a CPP_EOF in this case.
4879 * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
4880 (cpp_get_token): Don't handle directives here.
4881 * cpplib.h: Remove CPP_DHASH token type.
4882
4883 Wed Nov 8 21:53:41 MET 2000 Jan Hubicka <jh@suse.cz>
4884
4885 * regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
4886 formed using PRE_MODIFY too.
4887
4888 2000-11-08 Mark Mitchell <mark@codesourcery.com>
4889
4890 * c-tree.texi (VAR_DECL): Describe representation of GCC's
4891 extension for placing variables in particular registers.
4892
4893 * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
4894 unprototyped C functions with no parameters.
4895
4896 2000-11-08 Jakub Jelinek <jakub@redhat.com>
4897
4898 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
4899 before passing to fprintf.
4900
4901 2000-11-08 Jakub Jelinek <jakub@redhat.com>
4902
4903 * function.c (expand_function_start): Cast GET_MODE_SIZE to
4904 HOST_WIDE_INT before negating it.
4905
4906 2000-11-08 Jakub Jelinek <jakub@redhat.com>
4907
4908 * expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
4909 passed in multiple non-contiguous locations.
4910
4911 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4912
4913 * README.gnat: Remove file.
4914
4915 2000-11-08 Alexandre Oliva <aoliva@redhat.com>
4916
4917 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
4918 in-place.
4919
4920 2000-11-07 Richard Henderson <rth@redhat.com>
4921
4922 * dwarfout.c (INSN_LABEL_FMT): Remove.
4923 (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
4924 (dwarfout_label): Remove.
4925 * dwarfout.h: Remove it's prototype.
4926 * dwarf2out.c (INSN_LABEL_FMT): Remove.
4927 (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
4928 (dwarf2out_label): Remove.
4929 * dwarf2out.h: Remove it's prototype.
4930 * final.c (final_scan_insn): Don't call dwarf[2]out_label.
4931
4932 2000-11-07 Richard Henderson <rth@redhat.com>
4933
4934 * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
4935 search on the unwind region section.
4936
4937 * config/ia64/ia64.md (movbi): Add r/r alternative.
4938 (cmovdi_internal_astep): Describe all combinations of register
4939 classes for sources & destinations; remove matching constraints.
4940 (cmovdi_internal): Likewise.
4941
4942 * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
4943
4944 2000-11-07 Richard Henderson <rth@redhat.com>
4945
4946 * c-lang.c (start_cdtor, finish_cdtor): New functions.
4947 (finish_file): Use them in building constructor/destructor functions.
4948
4949 * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
4950 LD_FINI_SWITCH): Move ...
4951 * config/alpha/osf.h: ... here.
4952 * config/alpha/alpha-interix.h: Don't undef them.
4953
4954 2000-11-07 Jeffrey Oldham <oldham@oz.codesourcery.com>
4955
4956 * config/mips/t-iris6 (FPBIT): New. Added so that __unorddf2 is
4957 included in libgcc.a.
4958 (DPBIT): Likewise.
4959 (dp-bit.c): Likewise.
4960 (fp-bit.c): Likewise.
4961
4962 2000-11-07 Nick Clifton <nickc@redhat.com>
4963
4964 * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
4965 (INTERNAL_ASM_OP): Add missing tab.
4966
4967 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
4968
4969 * alias.c (init_alias_analysis), calls.c (expand_call,
4970 emit_library_call_value_1), combine.c (init_reg_last_arrays),
4971 cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
4972 (init_output_buffer, set_diagnostic_context), dwarf2out.c
4973 (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
4974 (init_emit_once), fold-const.c (mul_double, div_and_round_double),
4975 function.c (assign_parms), gcse.c (compute_can_copy,
4976 alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
4977 compute_hash_table, compute_set_hash_table,
4978 compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
4979 (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
4980 clear_units, schedule_block), integrate.c (initialize_for_inline,
4981 expand_inline_function), jump.c (thread_jumps), local-alloc.c
4982 (local_alloc), loop.c (combine_movables, count_loop_regs_set,
4983 load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
4984 regclass.c (init_reg_sets, init_reg_sets_1, regclass,
4985 record_reg_classes, allocate_reg_info), reload.c
4986 (get_secondary_mem, remove_address_replacements, find_reloads),
4987 reload1.c (reload, set_initial_label_offsets, finish_spills,
4988 reload_as_needed, choose_reload_regs_init,
4989 reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
4990 (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
4991 (rename_registers), stmt.c (expand_end_case), unroll.c
4992 (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
4993 () instead of bzero ().
4994
4995 2000-11-07 Neil Booth <neilb@earthling.net>
4996
4997 * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
4998
4999 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5000
5001 * c-common.c (combine_strings): Only warn about long strings for C.
5002
5003 Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
5004
5005 * combine.c (distribute_notes): Fix typo in last change.
5006
5007 2000-11-07 Geoff Keating <geoffk@redhat.com>
5008
5009 * config/rs6000/rs6000.md (movdi_internal32+1): Use
5010 operand_subreg_force rather than gen_rtx_SUBREG.
5011 (movdi_internal32+2): Likewise.
5012
5013 2000-11-07 Philip Blundell <philb@gnu.org>
5014
5015 * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
5016 * config/arm/linux-aout.h: Likewise.
5017 * configure: Regenerate.
5018
5019 2000-11-07 Philipp Thomas <pthomas@suse.de>
5020
5021 * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
5022 accepted my the gettext maintainer.
5023
5024 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5025
5026 * builtins.c (expand_builtin_strpbrk): New function.
5027 (expand_builtin): Handle BUILT_IN_STRPBRK.
5028
5029 * builtins.def (BUILT_IN_STRPBRK): New entry.
5030
5031 * c-common.c (c_common_nodes_and_builtins): Declare builtin
5032 strpbrk.
5033
5034 2000-11-07 David O'Brien <obrien@dragon.nuxi.com>
5035
5036 * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
5037 * POTFILES.in: Add config/alpha/freebsd.h
5038 * configure.in: Add alpha*-freebsd support.
5039 * configure: Regenerate.
5040
5041 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
5042
5043 * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
5044 copy of ptr_type_node rather than ptr_type_node itself.
5045
5046 Tue Nov 7 06:29:24 2000 J"orn Rennecke <amylaar@redhat.com>
5047
5048 * combine.c (recog_for_combine): Allocate uninitialized vector with
5049 rtvec_alloc.
5050 * recog.c (apply_change_group): Likewise.
5051
5052 Tue Nov 7 06:24:02 2000 J"orn Rennecke <amylaar@redhat.com>
5053
5054 * flow.c (verify_local_live_at_start): Back out last change.
5055 * combine.c (distribute_notes): When parts of a hard reg are
5056 neither set nor referenced in PLACE, search backwards for a
5057 place to put a REG_UNUSED note; if none found, ask for flow
5058 info refresh.
5059
5060 Mon Nov 6 20:08:13 2000 J"orn Rennecke <amylaar@redhat.com>
5061
5062 * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
5063 with (clobber (match_scratch...)).
5064
5065 2000-11-06 Neil Booth <neilb@earthling.net>
5066
5067 * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
5068 error status.
5069
5070 2000-11-06 Neil Booth <neilb@earthling.net>
5071
5072 * tradcpp.c (special_symbol): Assign an null string rather
5073 than writing to an unallocated buffer.
5074
5075 2000-11-06 Neil Booth <neilb@earthling.net>
5076
5077 * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
5078 CPP_MACRO_ARG case.
5079
5080 2000-11-06 Neil Booth <neilb@earthling.net>
5081
5082 * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
5083 tok.val.arg_no as appropriate.
5084 * cppexp.c (lex): Similarly.
5085 * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
5086 cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
5087 * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
5088 cpp_macro_definition): Similarly.
5089 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
5090
5091 2000-11-06 Jakub Jelinek <jakub@redhat.com>
5092
5093 * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
5094 operands[1] is constant, calculate the sum and generate movdi.
5095 (addsi3): Similarly. Use SImode in call to arith_4096_operand.
5096 (subsi3): Use SImode in call to arith_4096_operand.
5097
5098 2000-11-06 Jakub Jelinek <jakub@redhat.com>
5099
5100 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
5101 adjust %o1, not %o0 if the return type is large structure.
5102
5103 2000-11-06 Jakub Jelinek <jakub@redhat.com>
5104
5105 * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
5106 update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
5107
5108 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
5109
5110 * expmed.c (expand_divmod): For signed divide by 2, prefer
5111 a branch and fewer shifts if branches are very cheap.
5112
5113 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
5114
5115 * Makefile.in: Remove all targets related to building
5116 distributions and diffs, or INSTALL.
5117 * INSTALL, install1.texi: Remove.
5118 * configure.in: Remove mention of distdir.
5119 * configure: Regenerate.
5120 * objc/Make-lang.in: Remove mention of distdir.
5121
5122 2000-11-04 Neil Booth <neilb@earthling.net>
5123
5124 * cpp.texi: Update for _Pragma.
5125
5126 2000-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
5127
5128 * gcc.texi (Contributing): Update URL for projects web page.
5129
5130 2000-11-04 Neil Booth <neilb@earthling.net>
5131
5132 * cpplex.c (parse_string): Don't allow multiline strings in
5133 #include family directives.
5134
5135 2000-11-04 Neil Booth <neilb@earthling.net>
5136
5137 * cpplib.c (do_line): Only warn pedantically if not reading
5138 preprocessed input.
5139
5140 2000-11-04 Alexandre Oliva <aoliva@redhat.com>
5141
5142 * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
5143 RETURN_POPS_ARGS().
5144
5145 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
5146
5147 * builtins.c (expand_builtin_strlen): Remove unused mode
5148 argument.
5149 * gcc.c (process_command): Remove unused variable.
5150 * fold-const.c: Include expr.h.
5151 * recog.c: Include reload.h.
5152 * Makefile.in (recog.o, fold-const.o): Update deps.
5153
5154 2000-11-02 Geoffrey Keating <geoffk@cygnus.com>
5155
5156 * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
5157
5158 Fri Nov 3 13:41:04 2000 Mark P Mitchell <mark@codesourcery.com>
5159
5160 * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
5161 handling.
5162 (STARTFILE_SPEC): Likewise.
5163 (LINK_SPEC): Likewise.
5164
5165 2000-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5166
5167 * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
5168 (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
5169 (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
5170
5171 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
5172
5173 * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
5174 (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
5175 perm_calloc, get_identifier, maybe_get_identifier,
5176 real_value_from_int_cst, simple_cst_equal), varasm.c
5177 (assemble_name, assemble_real, immed_real_const_1,
5178 compare_constant_1, decode_rtx_const, output_constant_pool): Use
5179 strrchr () instead of rindex (). Use memcmp () instead of bcmp
5180 (). Use memcpy () instead of bcopy (). Use memset () instead of
5181 bzero ().
5182
5183 2000-11-03 Nathan Sidwell <nathan@codesourcery.com>
5184
5185 * cppfiles.c (open_file): If already read, then don't reopen.
5186 Immediately close an empty file.
5187
5188 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
5189
5190 * expr.h (fold_builtin): Move declaration...
5191 * tree.h (fold_builtin): ... here.
5192
5193 Fri Nov 3 05:41:07 2000 J"orn Rennecke <amylaar@redhat.com>
5194
5195 * flow.c (verify_local_live_at_start): Allow hard regs to die.
5196
5197 2000-11-02 Neil Booth <neilb@earthling.net>
5198
5199 config:
5200 * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
5201 alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
5202 alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
5203 alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
5204 arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5205 arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
5206 c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
5207 elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
5208 i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
5209 i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
5210 i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
5211 i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
5212 i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
5213 i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
5214 i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
5215 i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
5216 i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
5217 i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
5218 i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
5219 i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
5220 i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
5221 ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
5222 m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
5223 m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
5224 m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
5225 m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
5226 m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
5227 m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
5228 m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
5229 m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
5230 m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
5231 m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
5232 mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
5233 mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
5234 mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
5235 mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
5236 mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
5237 mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
5238 ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
5239 ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
5240 pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
5241 pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
5242 romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
5243 rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
5244 rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
5245 rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
5246 sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
5247 sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
5248 sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
5249 sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
5250 sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
5251 sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
5252 sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
5253 v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
5254 vax/vaxv.h, vax/vms.h, we32k/we32k.h
5255
5256 Replace -A() with -A=, the new assertion syntax.
5257
5258 Thu Nov 2 21:52:35 2000 J"orn Rennecke <amylaar@redhat.com>
5259
5260 * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
5261 elim_i1.
5262 In REG_DEAD handling: When handling parts of multi-hard-reg hard
5263 registers, increment the loop counter by the size of the parts;
5264 use recursion to handle individual parts.
5265
5266 2000-11-02 Neil Booth <neilb@earthling.net>
5267
5268 * configure.in: Make integrated CPP the default.
5269 * configure: Regenerate.
5270
5271 Thu Nov 2 19:20:12 2000 J"orn Rennecke <amylaar@redhat.com>
5272
5273 * reload.c (find_equiv_reg): Test all hard registers for membership
5274 in the requested class.
5275
5276 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
5277
5278 * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
5279 process_command, main), gcov.c (open_files, output_data), tlink.c
5280 (frob_extension, scan_linker_output), toplev.c
5281 (file_name_nondirectory): Use strchr () and strrchr () instead of
5282 index () and rindex ().
5283
5284 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
5285
5286 * c-common.c (get_flag_spec, check_format_info_main,
5287 check_format_types): Use strchr () instead of index (). Compare
5288 against error_mark_node instead of comparing the TREE_CODE against
5289 ERROR_MARK.
5290
5291 2000-11-02 Zack Weinberg <zackw@Stanford.EDU>
5292
5293 Integrated CPP.
5294
5295 * c-lex.c (init_c_lex): Update cpp_start_read call.
5296 (cb_ident): Update for new callback prototype.
5297 (cb_def_pragma): Update for new cpp_get_token prototype.
5298 (c_lex): Similarly. Use cpp_get_line.
5299
5300 * c-parse.in (finish_parse): Update for new cpp_finish
5301 prototype.
5302
5303 * cp/lex.c (finish_parse): Similarly.
5304
5305 2000-11-01 Geoff Keating <geoffk@cygnus.com>
5306
5307 * machmode.def: Add V16QImode.
5308
5309 2000-11-01 Richard Henderson <rth@redhat.com>
5310
5311 * dwarf2out.c (loc_descriptor_from_tree): Check for null result
5312 from rtl_for_decl_location.
5313 (add_location_or_const_value_attribute): Likewise.
5314
5315 2000-11-01 Neil Booth <neilb@earthling.net>
5316
5317 * cpplib.c (run_directive): Use correct line number for output
5318 of _Pragma. Remember any in-progress directive.
5319
5320 * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
5321
5322 2000-11-01 Richard Henderson <rth@redhat.com>
5323
5324 * stmt.c (expand_start_null_loop): Set continue_label.
5325
5326 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
5327
5328 * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
5329 (expand_builtin_constant_p): Move parts of the code into
5330 fold_builtin_constant_p.
5331 (expand_builtin_strlen): Move parts of the code into fold_builtin.
5332 * expr.h (fold_builtin): Declare.
5333 * fold-const.c (fold): Handle builtin calls.
5334
5335 * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
5336
5337 2000-11-01 Richard Henderson <rth@redhat.com>
5338
5339 * stmt.c (expand_start_null_loop): New.
5340 (expand_end_null_loop): New.
5341 * c-semantics.c (genrtl_do_stmt): Use them.
5342 * tree.h: Declare them.
5343
5344 2000-11-01 Richard Henderson <rth@redhat.com>
5345
5346 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
5347
5348 2000-11-01 Neil Booth <neilb@earthling.net>
5349
5350 * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
5351 * cp/spew.c: Similarly.
5352 * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
5353 * cppmacro.c (stringify_arg): Similarly.
5354 * cpplib.h (CPP_BACKSLASH): Delete.
5355
5356 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5357
5358 * builtins.c (expand_builtin_strstr): New function.
5359 (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
5360
5361 * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
5362
5363 * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
5364 and builtin strchr.
5365
5366 2000-10-31 Richard Henderson <rth@redhat.com>
5367
5368 * config/i386/i386.c (fcmov_comparison_operator): Check for
5369 CCFPmode or CCFPUmode instead of CCmode.
5370 (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
5371 unordered operations as well.
5372
5373 2000-10-31 Richard Henderson <rth@redhat.com>
5374
5375 * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
5376 of integer_zero_node.
5377
5378 2000-10-31 Richard Henderson <rth@redhat.com>
5379
5380 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
5381
5382 2000-10-31 Nick Clifton <nickc@redhat.com>
5383
5384 * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
5385 -fdata-sections to override the section attribute of a DECL.
5386
5387 2000-10-31 Chris Demetriou <cgd@sibyte.com>
5388
5389 * libgcc2.c (__shtab): Remove __shtab variable.
5390 * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
5391 * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
5392 members.
5393
5394 2000-10-31 Jim Wilson <wilson@redhat.com>
5395
5396 * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
5397 * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
5398 * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
5399 instead of ASM_OUTPUT_INTERNAL_LABEL.
5400 (dwarf2out_end_block, dwarf2out_label): Likewise.
5401 * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
5402 * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
5403
5404 2000-10-31 Richard Henderson <rth@redhat.com>
5405
5406 * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
5407 (size_of_locs): Set it.
5408 (output_loc_operands): Use it to compute branch displacement.
5409 (int_loc_descriptor): New.
5410 (mem_loc_descriptor): Dereference memory in the proper size.
5411 Use DW_OP_plus_uconst when possible. Use int_loc_descriptor.
5412 (loc_descriptor_from_tree): New.
5413 (rtl_for_decl_location): Break out from ...
5414 (add_location_or_const_value_attribute): ... here.
5415 (add_bound_info): Use loc_descriptor_from_tree.
5416
5417 2000-10-31 Neil Booth <neilb@earthling.net>
5418
5419 * cpp.texi: Update for new command line assertion syntax.
5420 * cpplib.c (cpp_define): Simplify a bit.
5421 (cpp_assert, cpp_unassert): Use handle_assertion.
5422 (handle_assertion): New function; accept new command line
5423 syntax with '='.
5424 * testsuite/gcc.dg/cpp/assert3.c: New tests.
5425
5426 2000-10-31 Neil Booth <neilb@earthling.net>
5427
5428 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
5429 undefined. Remove #ifdef check.
5430 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
5431 Define STDC_0_IN_SYSTEM_HEADERS to 1.
5432
5433 2000-10-31 Jan Hubicka <jh@suse.cz>
5434 Jakub Jelinek <jakub@redhat.com>
5435
5436 * config/i386/i386.h: Clarify CCNOmode description in comment.
5437 (EXTRA_CC_MODES): Remove CCRCmode.
5438 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
5439 (put_condition_code, ix86_match_ccmode): Likewise.
5440 (ix86_cc_mode): Likewise. Fix comment.
5441 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
5442 * config/i386/i386.md: Add unspec 12 description.
5443 (adddi3 split): Use unspec 12 instead of CCRCmode.
5444 (addsi3_carry_rc): Remove.
5445 (addsi3_cc, addqi3_cc): New patterns.
5446 (addsi_3): Swap operands, match CCZmode.
5447 (addsi_4): Rewritten.
5448 (addsi_5): Renamed from addsi_6.
5449 (addsi_6): Removed.
5450 (addhi_3): Swap operands, match CCZmode.
5451 (addhi_4): Rewritten.
5452 (addhi_5): Renamed from addhi_6.
5453 (addhi_6): Removed.
5454 (addqi_3): Swap operands, match CCZmode.
5455 (addqi_4): Rewritten.
5456 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
5457 (subsi3_carry_rc): Removed.
5458 (iorqi_3): Use =q constraint for clobber.
5459 (xorqi_cc_2): Likewise.
5460 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
5461 (x86_movsicc_0_m1_rc): Removed.
5462 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
5463
5464 2000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
5465
5466 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
5467 and decrement of complex types.
5468
5469 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5470
5471 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
5472 builtin fputs, ensure we still evaluate the stream in case it
5473 has side-effects.
5474
5475 2000-10-31 Jakub Jelinek <jakub@redhat.com>
5476
5477 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
5478 to expand_shift.
5479
5480 Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
5481
5482 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
5483 (fp_extended_operand, emit_fpscr_use): Likewise.
5484 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
5485 (fpul_operand): New function.
5486 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
5487 fp_extended_operand. Add fpul_operand.
5488 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
5489 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
5490 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
5491 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
5492 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
5493 (divdf3_i): Likewise.
5494 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
5495 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
5496 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
5497 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
5498 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
5499
5500 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
5501
5502 * config/i386/i386.c (ix86_init_builtins): Correct return type
5503 building v4hi_ftype_v4hi_int_int tree node.
5504 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
5505 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
5506
5507 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
5508 for operand 1.
5509 (mmx__uavgv8qi3): Correct insn mnemonic.
5510 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
5511 (mmx_punpckhwd): Correct insn mnemonic.
5512 (mmx_punpckhdq): Likewise.
5513 (mmx_punpcklwd): Likewise.
5514 (mmx_punpckldq): Likewise.
5515 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
5516 Renumber case labels to match the _mm_prefetch constants defined in
5517 xmmintrin.h.
5518
5519 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
5520 if the splitter didn't emit new insns.
5521 Make sure we call cleanup_subreg_operands even when splitting the last
5522 insn in a basic block.
5523
5524 * invoke.texi (Debugging Options): Describe -do.
5525 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
5526 (dump_file): Likewise.
5527 (rest_of_compilation): Split .greg dump into .greg and .postreload.
5528
5529 2000-10-30 Neil Booth <neilb@earthling.net>
5530
5531 * cppfiles.c (stack_include_file): Check for stacked contexts
5532 here.
5533 * cpphash.h (_cpp_do__Pragma): New prototype.
5534 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
5535
5536 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
5537 escaped newlines if !(buffer->from_stage3).
5538 (_cpp_lex_token): Warn about missing newlines iff
5539 !buffer->from_stage3.
5540
5541 * cpplib.c (get__Pragma_string, destringize,
5542 _cpp_do__Pragma): New functions.
5543 (run_directive): Set output_line for _Pragma to avoid line
5544 markers in output. Set from_stage3 and prevent macro expansion
5545 for _Pragma and command-line options. Check buffer exhaustion.
5546 (cpp_push_buffer): Don't check for stacked macro contexts, as
5547 this is perfectly legitimate for _Pragma. Move the check to
5548 stack_include_file instead. Set from_stage3 iff buffer is
5549 preprocessed input.
5550
5551 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
5552 unsigned. New boolean from_stage3.
5553 (struct spec_nodes): Add n__Pragma.
5554
5555 * cppmacro.c (enter_macro_context): Flip sense of return value.
5556 (_cpp_get_token): Handle _Pragma operator.
5557
5558 2000-10-30 Phil Edwards <pme@sources.redhat.com>
5559
5560 * gcc.texi: The C++ standard isn't "draft" anymore.
5561
5562 2000-10-30 Mark Mitchell <mark@codesourcery.com>
5563
5564 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
5565
5566 2000-10-29 Neil Booth <neilb@earthling.net>
5567
5568 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
5569
5570 2000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
5571
5572 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
5573 fixinc/inclhack.def: Change comments mentioning C9X to refer to
5574 C99 instead.
5575
5576 * invoke.texi: Document that -V will only work for very similar
5577 versions of driver and compiler.
5578
5579 2000-10-29 Neil Booth <neilb@earthling.net>
5580
5581 * cppmacro.c (_cpp_create_definition): Optimize the case of
5582 a macro defined to itself.
5583
5584 2000-10-29 Neil Booth <neilb@earthling.net>
5585
5586 * cpplex.c (save_comment): Don't store new lines in C++ comments.
5587
5588 2000-10-29 Michael Hayes <mhayes@redhat.com>
5589
5590 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
5591
5592 2000-10-28 Geoffrey Keating <geoffk@cygnus.com>
5593
5594 * cpphash.c (cpp_forall_identifiers): Add context variable
5595 for callback routine.
5596 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
5597 change.
5598 (main): Call cpp_forall_identifiers with null context.
5599 * cpplib.h (cpp_forall_identifiers): Update prototype.
5600
5601 * cppmain.c: Make `parse_in' and `print' static.
5602
5603 2000-10-28 Alan Modra <alan@linuxcare.com.au>
5604
5605 * c-decl.c (finish_function): Clear c_function_name_declared_p.
5606
5607 2000-10-28 Richard Henderson <rth@redhat.com>
5608
5609 * regrename.c (scan_rtx_address): Frob action, not class,
5610 when trying to disable optimization.
5611
5612 2000-10-28 Mark Mitchell <mark@codesourcery.com>
5613
5614 * c-semantics.c (make_rtl_for_local_static): Don't clobber
5615 DECL_ASSEMBLER_NAME.
5616
5617 2000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
5618
5619 * configure.in: Determine and substitute gcc_version_full.
5620 * configure: Regenerate.
5621 * gccbug.in: Use it to give full version. Don't allow
5622 confidential PRs.
5623
5624 2000-10-28 Richard Henderson <rth@redhat.com>
5625
5626 * recog.c (split_all_insns): Run cleanup_subreg_operands
5627 after reload.
5628
5629 * regrename.c (regrename_optimize): Verify that all registers of
5630 a multiple register mode are available.
5631 (scan_rtx_address): Accept the mode of the address; all callers
5632 changed.
5633
5634 * cpplib.c (run_directive): Fix prototype.
5635
5636 2000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
5637
5638 * reload.c (find_reloads): Distinguish "wins" so that we know whether
5639 a given operand won because of a matching constraint or not; then use
5640 that information to compute goal_alternative_matched properly.
5641 * reload1.c (choose_reload_regs): Never set reload_override_in for an
5642 optional reload.
5643
5644 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
5645 accurate value for MULT.
5646 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
5647 2% or > 98% before using static branch prediction bits.
5648
5649 2000-10-28 Neil Booth <neilb@earthling.net>
5650
5651 New macro expander.
5652
5653 * cpplib.c (struct answer): New.
5654 (struct if_stack): Use cpp_lexer_pos rather than line and col.
5655 Rename cmacro mi_cmacro.
5656 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
5657 IN_I): New directive and flags.
5658 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
5659 parse_answer, parse_assertion, find_answer): New functions.
5660 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
5661 (lex_macro_node): New function to replace parse_ifdef and
5662 get_define_node.
5663
5664 (_cpp_handle_directive): New function, combines _cpp_check_directive
5665 and _cpp_check_linemarker.
5666
5667 (do_define, do_undef, parse_include, do_include, do_import,
5668 do_include_next, read_line_number, do_line, do_ident, do_pragma,
5669 do_pragma_once, do_pragma_poison, do_pragma_dependency):
5670 Update for new token getting interface.
5671
5672 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
5673 : Update for new multiple-include optimisation technique.
5674 (do_elif): Don't forget to invalidate controlling macros.
5675
5676 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
5677 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
5678 Functions to handle assertions with the new token interface.
5679 (do_assert, do_unassert): Use them.
5680
5681 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
5682 Use run_directive.
5683
5684 (_cpp_init_stacks): Register directive names. Don't register special
5685 nodes.
5686
5687 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
5688 new position recording regime.
5689 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
5690 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
5691 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
5692 (cpp_type2name): Move to cpplex.c.
5693
5694 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
5695 (parse_defined): Update to handle new multiple include optimisation
5696 method. Remove poisoned identifier warning.
5697 (parse_assertion, TYPE_NAME): Delete.
5698 (lex): Update for multiple include optimisation, removal of
5699 CPP_DEFINED, to use _cpp_test_assertion for assertions and
5700 cpp_token_as_text.
5701 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
5702 (op_as_text): New function, to wrap cpp_token_as_text.
5703
5704 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
5705 Update for MI optimisation.
5706 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
5707 segfault on diagnostic.
5708 (_cpp_compare_file_date): Take a token rather than 3 args.
5709 (cpp_read_file): Work correctly for zero-length files.
5710
5711 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
5712 _cpp_init_hashtable and _cpp_cleanup_hashtable.
5713 (cpp_lookup): Place identifiers at front of identifier pool
5714 for _cpp_lookup_with_hash.
5715 (_cpp_lookup_with_hash): Require identifiers to be at the front of
5716 the identifier pool. Commit the memory if not already in the
5717 hash table.
5718
5719 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
5720 Initialise various members of cpp_reader, memory pools, and the
5721 special nodes.
5722 (cpp_printer_init): Delete.
5723 (cpp_cleanup): Update.
5724 (struct builtin, builtin_array, initialize_builtins): Update for new
5725 hashnode definition and builtin handling.
5726 (cpp_start_read, cpp_finish): Don't take or initialise a
5727 printer. Update.
5728
5729 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
5730 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
5731 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
5732 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
5733 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
5734 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
5735 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
5736 struct toklist, struct cpp_context, struct specnodes,
5737 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
5738 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
5739 enum builtin_type, cpp_can_paste): New.
5740 (struct cpp_token): Delete line and col members.
5741 (struct cpp_buffer): New member output_lineno.
5742 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
5743 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
5744 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
5745 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
5746 base_context, context, directive, mi_state, mi_if_not_defined,
5747 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
5748 mlstring_pos, macro_buffer, macro_buffer_len.
5749 Delete members mls_line, mls_column, token_list, potential_control_macro,
5750 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
5751 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
5752 save_parameter_spellings, need_newline, .
5753 Change type of date, time and spec_nodes members.
5754 Change prototypes for include and ident callbacks.
5755 (struct cpp_hashnode): Change type of name. Remove union members
5756 expansion and code. Add members macro, operator and builtin.
5757
5758 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
5759 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
5760 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
5761 cpp_stop_lookahead): New prototypes.
5762 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
5763
5764 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
5765 Move from cpphash.h.
5766
5767 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
5768 ufputs): Move to cpplib.h.
5769 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
5770 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
5771 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
5772 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
5773 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
5774 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
5775 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
5776 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
5777 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
5778 _cpp_parse_assertion, _cpp_find_answer): Delete.
5779 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
5780 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
5781 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
5782 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
5783 _cpp_handle_directive, DSC): New.
5784 (struct include_file): New member defined.
5785
5786 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
5787 _cpp_compare_file_date): Update.
5788 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
5789 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
5790 _cpp_cleanup_hashtable.
5791
5792 * Makefile.in: Remove cppoutput.c.
5793
5794 * cppoutput.c: Delete
5795
5796 * fixheader.c (read_scan_file): Update for new cpp_get_token
5797 prototype.
5798 (recognized_function): New argument LINE.
5799
5800 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
5801 new cpp_get_token prototype.
5802
5803 * scan.h (recognized_function): Update prototype.
5804
5805 * po/POTFILES.in: Remove cppoutput.c.
5806
5807 2000-10-27 Mark Mitchell <mark@codesourcery.com>
5808
5809 * c-typeck.c (check_init_type_bitfields): Remove.
5810 (constructor_incremental): Likewise.
5811 (struct constructor_stack): Remove incremental bit.
5812 (struct initializer_stack): Likewise.
5813 (start_init): Don't play with constructor_incremental.
5814 (finish_init): Likewise.
5815 (really_start_incremental_init): Likewise.
5816 (push_init_level): Likewise.
5817 (pop_init_level): Likewise.
5818 (output_init_level): Likewise.
5819 (output_pending_init_elements): Likewise.
5820
5821 2000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
5822
5823 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
5824 Improve error messages. Correct parsing of
5825 #pragma pack(pop [,id]). Do not check the user-supplied
5826 alignment if we're popping.
5827
5828 * gcc.dg/pack-test-1.c: New test case.
5829 * gcc.dg/pack-test-2.c: New test case.
5830 * gcc.dg/pack-test-1.h: New file.
5831
5832 2000-10-27 Neil Booth <neilb@earthling.net>
5833
5834 * cpp.texi: Update.
5835
5836 2000-10-27 Kelley Cook <kelley.cook@home.com>
5837
5838 * invoke.texi: Document -mintel-syntax
5839
5840 2000-10-27 Richard Henderson <rth@redhat.com>
5841
5842 * invoke.texi: Document -frename-registers. Add it to -O3.
5843 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
5844 (enum dump_file_index, dump_file): Update order.
5845 (main): Set flag_rename_registers at -O3.
5846
5847 2000-10-27 Richard Henderson <rth@redhat.com>
5848
5849 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
5850 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
5851 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
5852 * config/alpha/alpha.md (call_osf_1): Use it.
5853 (call_value_osf_1): Likewise.
5854
5855 * config/ia64/ia64.c: Revert 10-23 patch.
5856 (ia64_hard_regno_rename_ok): New.
5857 * config/ia64/ia64-protos.h: Declare it.
5858 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
5859
5860 2000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
5861 Richard Henderson <rth@redhat.com>
5862
5863 * regrename.c: Rewrite to handle multi-register modes and
5864 cond_exec instructions.
5865 * Makefile.in (regrename.o): Update dependancies.
5866 * recog.h (struct operand_alternative): Add is_address.
5867 * recog.c (preprocess_constraints) [case 'p']: Set it.
5868
5869 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
5870
5871 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
5872 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
5873 top level. Kill oldstyle_subdirs. Do not include
5874 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
5875 $outputs. Do not run configure.lang from config.status.
5876 Rearrange warning-flag logic to correspond to what the
5877 makefile wants. Put special vax stage1 options in
5878 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
5879 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
5880 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
5881 switch is given, nothing otherwise.
5882 * configure.lang: Delete.
5883
5884 * Makefile.in: Expunge all traces of extra_c_objs,
5885 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
5886 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
5887 warning options via a three level scheme so that -pedantic and
5888 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
5889 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
5890 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
5891 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
5892 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
5893 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
5894 generation rules. Wrap all rules that change the current
5895 directory in parentheses; pmake doesn't spawn a new shell for
5896 each command. Expunge all references to $(P). When one
5897 command depends on another and they're run all at once, use &&
5898 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
5899 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
5900 and beyond.
5901
5902 * objc/Make-lang.in: Wrap all rules that change the current
5903 directory in parentheses. Expunge all references to $(P).
5904 When one command depends on another and they're run all at
5905 once, use && to separate them, not ;. Add OUTPUT_OPTION to
5906 all object-file generation rules. Delete obsolete variables.
5907 * objc/Makefile.in: Delete.
5908
5909 2000-10-27 Jakub Jelinek <jakub@redhat.com>
5910
5911 * calls.c (expand_call): If sibcall_failure is set during pass 1,
5912 clear tail_call_insns as well.
5913
5914 2000-10-27 Nick Clifton <nickc@redhat.com>
5915
5916 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
5917 prototype.
5918
5919 2000-10-26 Richard Henderson <rth@redhat.com>
5920
5921 * calls.c (expand_call): Supress sibcall if we have a
5922 BLKmode return in registers.
5923
5924 2000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
5925
5926 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
5927 into memory.
5928
5929 2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
5930
5931 * tree.c (make_node, case 't'): Set alignment to that of
5932 char_type_node.
5933 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
5934
5935 2000-10-25 Mark Mitchell <mark@codesourcery.com>
5936
5937 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
5938 * configure.in (enable-libstdcxx-v3): Arrange to have
5939 HAVE_LIBSTDCXX_V3 substituted into the output files.
5940
5941 2000-10-25 Richard Henderson <rth@redhat.com>
5942
5943 * recog.c (constrain_operands): Initialize which_alternative
5944 before no alternatives early exit.
5945
5946 * cse.c (find_comparison_args): Check that we can reverse a
5947 comparison if needed before accepting the substitution.
5948
5949 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
5950
5951 * simplify-rtx.c (simplify_relational_operation): Sign extend
5952 low words before sign extending to high words.
5953
5954 2000-10-25 Nick Clifton <nickc@redhat.com>
5955
5956 * config/mcore/mcore.c: Include config.h before system.h.
5957
5958 2000-10-25 Ray Essick <essick@ddna.labs.mot.com>
5959
5960 * config/mcore/mcore.md (return): Force function epilogue to
5961 always be generated to work around epilogue suppression bug in
5962 M*Core backend.
5963
5964 2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
5965
5966 * c-decl.c (grokdeclarator): Move warning for qualified void
5967 return types with -pedantic to when the function type is
5968 constructed. At -W, warn in general for qualified function return
5969 types, except for volatile void.
5970 * invoke.texi: Document this new warning at -W.
5971
5972 2000-10-25 Neil Booth <neilb@earthling.net>
5973
5974 * cpp.texi: Update with implementation-defined behavior and
5975 internal limits.
5976
5977 2000-10-25 Jakub Jelinek <jakub@redhat.com>
5978
5979 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
5980 incomplete type force it into alias set 0.
5981
5982 Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
5983
5984 * alias.c: Include basic-block.h.
5985 (loop_p): New function.
5986 (mark_constant_function): Use it.
5987 * Makefile.in (alias.o): Update dependencies.
5988
5989 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
5990
5991 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
5992 like memory.
5993
5994 2000-10-24 Jim Wilson <wilson@cygnus.com>
5995
5996 * expmed.c (store_bit_field): Move integer pun code down after
5997 code that calls emit_move_insn for entire register move.
5998 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
5999 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
6000
6001 2000-10-24 Richard Henderson <rth@cygnus.com>
6002
6003 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
6004 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
6005
6006 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
6007
6008 * gcse.c (cprop_insn): do not propagate constants into jump_insn
6009 for machines with CC0 more than once.
6010
6011 2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
6012
6013 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
6014 pseudos just like memory.
6015
6016 2000-10-24 Alexandre Oliva <aoliva@redhat.com>
6017
6018 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
6019 when deleting libcall sequence collapsed to a single instruction.
6020
6021 2000-10-24 Andrew Haley <aph@cygnus.co.uk>
6022
6023 * expr.c (do_store_flag): Don't crash if either side of a
6024 comparison is error_mark_node.
6025
6026 2000-10-24 Jakub Jelinek <jakub@redhat.com>
6027
6028 * sibcall.c (purge_mem_unchanging_flag): New function.
6029 (optimize_sibling_and_tail_recursive_calls): Call it.
6030
6031 2000-10-24 Philipp Thomas <pthomas@suse.de>
6032
6033 * Makefile.in (check-po): New target for doing checks in the po
6034 subdir if all languages configured.
6035 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
6036 configure if NLS is enabled.
6037 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
6038 otherwise leave empty.
6039 * configure: Regenerate.
6040
6041 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
6042
6043 * i386.c (print_operand): Handle new 'A' formatting code.
6044 387 opcodes need suffixes even with -mintel-syntax.
6045 Check for explicit size override (codes 'b', 'w' and 'k').
6046 (print_operand_address): Check if register prefix is needed when
6047 emitting `ds' segment override.
6048 * i386.h: Add comment about new 'A' formatting code.
6049 * i386.md (jump and call patterns): Emit absolute references using %A.
6050
6051 2000-10-23 Richard Henderson <rth@cygnus.com>
6052
6053 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
6054 output registers as fixed.
6055 (ia64_function_epilogue): Undo output fixation.
6056
6057 2000-10-23 Richard Henderson <rth@cygnus.com>
6058
6059 * config/alpha/alpha.md: Add names for all unnamed insns; use
6060 define_insn_and_split in some obvious places.
6061 (lda): Remove.
6062 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
6063 (zero_extendqisi2, zero_extendqidi2): Likewise.
6064 (zero_extendhisi2, zero_extendhidi2): Likewise.
6065 (abs splitters): Fix match_scratch operand number.
6066 (bcc_reverse): Swap pc & label instead of non-canonical compare.
6067
6068 2000-10-23 Jim Wilson <wilson@cygnus.com>
6069
6070 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
6071 CONST_INT.
6072 * ia64.md (cmpsi_adjusted): Use %r3.
6073 (cmpdi_adjusted): Likewise.
6074
6075 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
6076
6077 * config/i386/att.h (ASM_FILE_START): Define.
6078
6079 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
6080
6081 * config/i386/linux.h (ASM_FILE_START): Define.
6082
6083 Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
6084
6085 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
6086 since this (only) drags in a crt0.o reference that the .ld files
6087 also introduce.
6088
6089 2000-10-23 Geoff Keating <geoffk@cygnus.com>
6090
6091 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
6092 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
6093 reloads just like an RELOAD_FOR_OUTPUT would.
6094
6095 * local-alloc.c (update_equiv_regs): Add an abort(). When
6096 deleting or moving insns, update reg_equiv[regno].init_insns.
6097
6098 2000-10-23 Mark Mitchell <mark@codesourcery.com>
6099
6100 * c-tree.texi: Improve documentation for IF_STMTs and related
6101 conditional statements.
6102
6103 2000-10-22 Mark Mitchell <mark@codesourcery.com>
6104
6105 * expr.c (do_preexpand_calls): Remove.
6106 (same_from_p): Don't use CALL_EXPR_RTL.
6107 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
6108 (preexpand_calls): Remove.
6109 * tree.c (first_rtl_op): Remove CALL_EXPR case.
6110 (unsave_expr_1): Likewise.
6111 * tree.def (CALL_EXPR): Give it only two slots.
6112 * tree.h (CALL_EXPR_RTL): Remove.
6113
6114 2000-10-21 Chandrakala Chavva <cchavva@redhat.com>
6115
6116 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
6117 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
6118 New functions.
6119
6120 2000-10-22 Alexandre Oliva <aoliva@redhat.com>
6121
6122 * calls.c (combine_pending_stack_adjustment_and_call): Don't
6123 adjust stack when unadjusted_alignment ends up as zero.
6124
6125 2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
6126
6127 * fixinc/genfixes: Remove EGCS reference.
6128 * install.texi: Remove EGCS reference.
6129 * INSTALL: Regenerate.
6130
6131 2000-10-22 Mark Mitchell <mark@codesourcery.com>
6132
6133 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
6134
6135 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
6136
6137 * diagnostic.c: Remove EGCS reference in comment.
6138
6139 Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6140
6141 * loop.c (strength_reduce): Fix error in last change.
6142
6143 2000-10-20 David Edelsohn <edelsohn@gnu.org>
6144
6145 * Makefile.in (SHLIB_NM_FLAGS): New.
6146 (libgcc.mk): Pass it.
6147 * mklibgcc.in (libgcc.map): Use it.
6148
6149 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
6150 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
6151
6152 2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6153
6154 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
6155
6156 * sparc.c (load_pic_register): Delete unused varaible.
6157
6158 * libgcc2.c (__addvsi3): Delete unused variable.
6159
6160 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
6161 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
6162 __negvdi2): Prototype.
6163
6164 * ssa.c (apply_delayed_renames): Avoid undefined operation.
6165
6166 * toplev.c (display_target_options): Make static to match
6167 prototype. Delete empty declaration.
6168
6169 2000-10-20 Tom Tromey <tromey@cygnus.com>
6170
6171 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
6172 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
6173
6174 Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6175
6176 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
6177 returned MEM.
6178 (expand_expr_unaligned, case ARRAY_REF): Check that index is
6179 a constant before comparing it; use tree_low_cst.
6180 * tree.c (save_expr): Set TREE_READONLY.
6181 (substitute_expr): Return inside of NON_LVALUE_EXPR.
6182 (build, build1): Set TREE_READONLY if all operands are.
6183 (build_index_type): If upper bound is a negative number, lower
6184 bound is zero and sizetype is unsigned, use upper bound of one and
6185 lower of zero.
6186
6187 2000-10-20 David Edelsohn <edelsohn@gnu.org>
6188
6189 * gcc.c (process_command, main): Use "because" instead of
6190 "since" in error messages.
6191
6192 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6193
6194 * stor-layout.c (compute_record_mode): Use tree_low_cst.
6195 Don't use mode of field for record unless sizes are the same.
6196 (layout_type, case ARRAY_TYPE): Remove special bounds handling
6197 previously added for Ada; also change to using host_integerp
6198 and tree_low_cst.
6199
6200 * loop.c (strength_reduce): Show when new register made for
6201 giv is known to be a pointer and its aligment if so and known.
6202 (loop_dump_aux): Show VERBOSE parameter unused.
6203
6204 * gcse.c (set_hash_table_size): Now unsigned.
6205 * sdbout.c (template_name_p): Add "const" to avoid warnings.
6206 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
6207 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
6208 (sdbout_end_epilogue): Remove variable NAME.
6209 * system.h (getopt): Add default definition.
6210 * config/alpha/alpha.c (print_operand): Don't continue processing
6211 after issuing error.
6212 (summarize_insn): Avoid use of UL in constant.
6213
6214 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
6215
6216 * fold-const.c (force_fit_type): Unsigned values can overflow
6217 if they are sizetype.
6218 (int_const_binop): Don't use cache if overflows.
6219
6220 2000-10-20 Richard Henderson <rth@cygnus.com>
6221
6222 * function.c (locate_and_pad_parm): Zero alignment_pad.
6223
6224 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
6225 perform substitutions, and apply_change_group to see if it worked.
6226
6227 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6228
6229 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
6230
6231 * combine.c (struct undo): Change int to unsigned int.
6232 (do_SUBST_INT): Args are unsigned int.
6233 (make_extraction, force_to_mode): Use proper type when forming mask.
6234 (make_field_assignment): Likewise.
6235
6236 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
6237
6238 * c-common.c (check_format_info_recurse): Extract string constant
6239 initializers from non-volatile constant arrays and check them as
6240 formats.
6241 * c-typeck.c (decl_constant_value): Don't check pedantic or check
6242 for DECL_MODE (decl) != BLKmode.
6243 (decl_constant_value_for_broken_optimization): New function which
6244 includes these checks.
6245 (default_conversion, convert_for_assignment, digest_init): Use
6246 decl_constant_value_for_broken_optimization instead of
6247 decl_constant_value.
6248
6249 2000-10-20 Mark Mitchell <mark@codesourcery.com>
6250
6251 * tree.h (DECL_ALIGN_UNIT): New macro.
6252
6253 2000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
6254
6255 * config/avr/avr-protos.h (avr_output_bld): New.
6256 (out_shift_with_cnt): Add t_len argument.
6257 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
6258 (output_movqi, output_movhi, output_movsisf): Optimize loading
6259 any constant with exactly one bit set to NO_LD_REGS.
6260 (out_shift_with_cnt): Optimize output code for size or speed,
6261 depending on optimize_size. Handle small shift counts as well
6262 (if not hand-optimized in ?sh??i3_out). Shifts can be done
6263 with or without a scratch register, with help of __tmp_reg__
6264 or __zero_reg__ if necessary. Add T_LEN argument to pass the
6265 length of TEMPLATE in words, return total insn length in *LEN.
6266 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
6267 out_shift_with_cnt to work with the above change.
6268 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
6269 lshrsi3_out): Likewise. Optimize more known shift count cases.
6270 Remove cases already well optimized in out_shift_with_cnt.
6271 (avr_output_bld): New function.
6272 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
6273 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
6274 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
6275 Add reload_completed to insn condition - only for peepholes.
6276 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
6277 in a register or memory.
6278 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
6279 Do not require a scratch register.
6280 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
6281 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
6282 Optimize shifts by known count using a scratch register, but only
6283 if one is still available after register allocation.
6284
6285 2000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6286
6287 * t-vax: New file. Don't build modules from libgcc1.c.
6288
6289 Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
6290
6291 * alias.c: (mark_constant_function): Don't check pure functions.
6292 Initialize and end alias analysis.
6293 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
6294 Don't make a special exception for recursion. Handle
6295 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
6296 unless it's volatile.
6297
6298 * local-alloc.c (equivalence): New structure.
6299 (reg_equiv): Define.
6300 (contains_replace_regs): Remove array and use
6301 field in reg_equiv.
6302 (memref_referenced_p): Likewise.
6303 (no_equiv): Likewise.
6304 (update_equiv_regs): Likewise.
6305
6306 (equiv_init_varies_p,
6307 equiv_init_movable_p): New functions.
6308 (update_equiv_regs): Use them. Use rtx_varies_p
6309 instead of function_invariant_p. Process insns
6310 from end to beginning. Allow a REG_EQUIV insn
6311 within the same loop as a use to be moved, also
6312 allow it to be moved out of a loop. Update
6313 REG_DEAD notes when substituting into an insn.
6314
6315 2000-10-19 Jim Wilson <wilson@cygnus.com>
6316
6317 * c-decl.c (start_decl): Check for error_mark_node type before using
6318 COMPLETE_TYPE_P.
6319 (finish_decl): Likewise. Don't give an error if decl type is
6320 already error_mark_node.
6321
6322 * haifa-sched.c (compute_trg_info): Add explanatory comments.
6323 New local update_blocks. Use update_blocks to remove duplicates
6324 when computing update blocks. Check for bblst_table overflow.
6325 (schedule_block): Add explanatory comment. Reduce bblst_size by
6326 factor of 2.
6327 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
6328 notes.
6329
6330 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
6331
6332 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
6333
6334 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
6335
6336 * expmed.c: Minor corrections in comments.
6337 * invoke.texi: Added desciption for the new option -ftrapv.
6338
6339 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
6340
6341 * libgcc2.c: Added the missing #endif.
6342
6343 Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
6344
6345 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
6346
6347 2000-10-18 Chandrakala Chavva <cchavva@redhat.com>
6348
6349 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
6350 Use smulv_optab for -ftrapv.
6351 (expand_mult_highpart): Use unsigned multiply.
6352 (expand_divmod): Special-case division by -1.
6353 For EXACT_DIV_EXPR, do right shift first, then the multiply.
6354 For complex divide, use abs with unsigned result.
6355 * expr.c (force_operand): Use unsigned multiply.
6356 (expand_expr): Use overflow-trapping optabs for signed types if
6357 flag_trapv.
6358 If flag_trapv, don't generate a recursive call with EXPAND_SUM
6359 if the type is signed and the original call wasn't EXPAND_SUM or
6360 EXPAND_INITIALIZER.
6361 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
6362 (negv_optab, absv_optab): Declare.
6363 * flags.h (flag_trapv): Declare.
6364 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
6365 smulv_optab, sdivv_optab, negv_optab and absv_optab.
6366 (gen_insn): Interpret '$P' as requiring an integer mode,
6367 including partial integer modes.
6368 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
6369 (product_cheap_p): Use unsigned expand_mult.
6370 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
6371 (negv_optab, absv_optab): Define.
6372 (expand_binop): Use overflow-trapping optabs for signed types if
6373 flag_trapv.
6374 Handle negv_optab libe neg_optab.
6375 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
6376 Use overflow-trapping optabs for signed result if flag_trapv.
6377 (expand_complex_abs): Use overflow-trapping optabs for signed types if
6378 flag_trapv.
6379 Don't open-code complex absolute-value operation for flag_trapv.
6380 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
6381 sdivv_optab, negv_optab and absv_optab.
6382 * toplev.c (flag_trapv): Define.
6383 (lang_independent_options f_options): Include flag_trapv.
6384 * tree.h (TYPE_TRAP_SIGNED): Define.
6385 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
6386 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
6387 New functions.
6388 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
6389 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
6390
6391 2000-10-18 Geoffrey Keating <geoffk@cygnus.com>
6392 David V. Henkel-Wallace <gumby@cygnus.com>
6393
6394 * config/i386/t-netware: Bring in from the Red Hat tree.
6395 * config/i386/netware.h: Likewise.
6396 * config/netware.h: Likewise.
6397 * config/rs6000/netware.h: Delete.
6398 * configure.in: Add i[34567]86-*-netware.
6399 * configure: Hand-edit to match configure.in change.
6400
6401 2000-10-18 Mark Mitchell <mark@codesourcery.com>
6402
6403 * c-common.h (flag_no_builtin): Declare.
6404 (flag_no_nonansi_builtin): Likewise.
6405 (c_common_nodes_and_builtins): Change prototype.
6406 * c-common.c (flag_no_builtin): New variable.
6407 (flag_no_nonansi_builtin): Likewise.
6408 (c_common_nodes_and_builtins): Remove parameters. Adjust
6409 accordingly.
6410 * c-decl.c (flag_no_builtin): Remove.
6411 (flag_no_nonansi_builtin): Likewise.
6412 (init_decl_processing): Adjust call to
6413 c_common_nodes_and_builtins.
6414
6415 2000-10-18 Marc Espie <espie@openbsd.org>
6416
6417 * tm.texi (LIBGCC_SPEC): Synch with reality.
6418
6419 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
6420
6421 * c-common.c (check_format_types): Check for writing through a
6422 NULL pointer argument.
6423
6424 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
6425
6426 * tm.texi (Exception Region Output): Document
6427 DWARF_CIE_DATA_ALIGNMENT.
6428 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
6429 #ifndef.
6430 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
6431 DWARF_CIE_DATA_ALIGNMENT.
6432
6433 2000-10-18 Michael Hayes <mhayes@cygnus.com>
6434
6435 * basic-block.h (struct loop): Delete fields pre_header_root
6436 and pre_header_trace and replace with pre_header_edges
6437 and num_pre_header_edges.
6438 * flow.c (flow_loop_dump): Dump pre_header_edges.
6439 (flow_loops_free): Free pre_header_edges.
6440 (flow_loop_pre_header_scan): Calculate pre_header_edges.
6441
6442 2000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6443
6444 * contrib.texi: Update references to steering committee members
6445 and Jeff Law's entry.
6446
6447 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
6448
6449 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
6450 (maybe_read_dollar_number, check_format_info_main): Use them for
6451 pedantic warning messages.
6452
6453 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
6454
6455 * c-common.c (check_format_info_main): Minor cleanup: move
6456 variables into inner scopes; initialize declarations where
6457 appropriate; don't hardcode "scanf" name on warning for zero
6458 width.
6459
6460 2000-10-17 Mark Mitchell <mark@codesourcery.com>
6461
6462 * c-common.c (back_end_hook): New variable.
6463 * c-common.h (back_end_hook): Declare it.
6464 * c-lang.c (finish_file): Use it.
6465
6466 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
6467 earlier.
6468
6469 2000-10-18 Jan Hubicka <jh@suse.cz>
6470
6471 * i386.c (ix86_comparison_operator, put_condition_code,
6472 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
6473 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
6474 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
6475 * i386.md (adddi and negdi splitter): Use CCRCmode.
6476 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
6477 (subsi3_carry): add '*'
6478 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
6479 (cmp to add peep2): Use CCRCmode; swap operands.
6480
6481 2000-10-18 Kazu Hirata <kazu@hxi.com>
6482
6483 * h8300.c: Fix a comment typo.
6484 (round_frame_size): New.
6485 (compute_saved_regs): Likewise.
6486 (push): Likewise.
6487 (pop): Likewise.
6488 (push_order): Remove.
6489 (pop_order): Likewise.
6490 (function_prologue): Rearrange code for readability.
6491 (function_epilogue): Likewise.
6492
6493 * config/h8300/h8300.md: Remove an unnecessary sign_extend
6494 expander that is used when not optimizing. Output a tab after
6495 each assembly insns.
6496
6497 * reorg.c: Fix formatting.
6498
6499 2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
6500
6501 * reload1.c (move2add_note_store): Check for simple
6502 auto-inc in destination.
6503
6504 2000-10-17 Michael Chastain <chastain@redhat.com>
6505
6506 * config/i386/i386-aout.h: define INT_ASM_OP.
6507
6508 Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
6509
6510 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
6511
6512 Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
6513
6514 * i370.md: Fix spelling typo.
6515
6516 2000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6517
6518 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
6519 Fixes execute/20001017-1.c on powerpc-linux-gnu.
6520
6521 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
6522 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
6523 LABEL_REF.
6524
6525 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
6526 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
6527 here...
6528 * rs6000/aix.h: ...to here.
6529 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
6530
6531 2000-10-17 Jakub Jelinek <jakub@redhat.com>
6532
6533 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
6534
6535 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
6536 sure linker can relax even the delay slot mov %g1,%o7, fix output
6537 formating.
6538
6539 2000-10-17 Kazu Hirata <kazu@hxi.com>
6540
6541 * config/h8300/h8300.md: Remove an unnecessary zero_extend
6542 expander that is used when not optimizing. Output a tab after
6543 each assembly insns.
6544
6545 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
6546
6547 * gcc.c: New options --target-help.
6548 (process_command): Added code to parse this new option.
6549 * toplev.c (display_target_options): New function to support the
6550 above new option.
6551 * cppinit.c (new_pending_directive) : New option OPT_target__help.
6552 (cpp_handle_option): Support this new option.
6553 * invoke.texi: Added notes about --target-help option.
6554
6555 2000-10-17 Graham Stott <grahams@redhat.com>
6556
6557 * config/i386/i386.md (testqi_1): Add missing operand prefix
6558 for operand 0.
6559 * config/i386/i386-protos.h: Add missing prototype.
6560
6561 2000-10-17 Diego Novillo <dnovillo@cygnus.com>
6562
6563 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
6564 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
6565 using -mintel-syntax.
6566
6567 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
6568
6569 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
6570 (format_types): Use it for printf.
6571 (maybe_read_dollar_number): Add parameter for the kind of format
6572 involved. Warn for multiple use for arguments if this is
6573 inappropriate for the kind of format involved.
6574 (check_format_info_main): Update calls to maybe_read_dollar_number.
6575
6576 2000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6577
6578 * inclhack.def (hpux_maxint): Also apply fix to values.h.
6579 * fixincl.x: Rebuilt.
6580
6581 2000-10-17 Alexandre Oliva <aoliva@redhat.com>
6582
6583 * genrecog.c (write_switch): Return the first condition that needs a
6584 label.
6585
6586 2000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
6587
6588 * c-tree.h (warn_sequence_point): Move declaration to...
6589 * c-common.h (warn_sequence_point): ... here.
6590 * c-decl.c (warn_sequence_point): Move definition to...
6591 * c-common.c (warn_sequence_point): ... here.
6592 (struct reverse_tree): New.
6593 (reverse_list, reverse_max_depth): New static variables.
6594 (build_reverse_tree, common_ancestor, modify_ok
6595 verify_sequence_points): New functions.
6596 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
6597 * c-typeck.c (check_modify_expr): Delete.
6598 (build_modify_expr): Don't call it.
6599
6600 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
6601
6602 * c-common.h (warn_missing_format_attribute): New variable.
6603 * c-decl.c (warn_missing_format_attribute): New variable.
6604 (c_decode_option): Decode -Wmissing-format-attribute and
6605 -Wno-missing-format-attribute.
6606 * c-common.c (check_function_format): If
6607 -Wmissing-format-attribute, give a warning where a vprintf or
6608 vscanf function is called by a function without its own printf or
6609 scanf attribute.
6610 * toplev.c (documented_lang_options): Add
6611 -Wmissing-format-attribute.
6612 * invoke.texi: Document -Wmissing-format-attribute.
6613
6614 2000-10-17 Marc Espie <espie@openbsd.org>
6615
6616 * invoke.texi (-shared): Insist on requiring code generation flags
6617 to be used along with -shared, and document the subtle failure that
6618 may occur otherwise.
6619
6620 2000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6621
6622 * pa.md (return_internal): Move `use' after `return'.
6623
6624 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6625
6626 * machmode.def: Correct comment.
6627
6628 2000-10-16 Rodney Brown <RodneyBrown@mynd.com>
6629
6630 * print-rtl.c (print_rtx_head): Constify.
6631 * rtl.h (print_rtx_head): Similarly.
6632
6633 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
6634 Constify char * return value.
6635 * config/pa/pa/pa.c
6636 (output_64bit_and, output_64bit_ior): Constify char * return value.
6637 (pa_can_combine_p): Make static.
6638 (function_arg): Decorate unused `named' argument. Fix comment typo.
6639 (function_arg_partial_nregs): Decorate unused `named' argument.
6640
6641 2000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
6642
6643 * c-common.c (format_check_results): New structure.
6644 (finish_dollar_format_checking): Adjust to take a
6645 format_check_results * parameter.
6646 (check_format_info, check_format_info_recurse,
6647 check_format_info_main): Split check_format_info into three
6648 functions, the main checking going in check_format_info_main.
6649 Recurse when any reduction of the format string argument towards a
6650 string literal is done; go down both branches of a conditional
6651 expression. Don't warn for extra format arguments or empty format
6652 strings if they only occur in some branches of a conditional
6653 expression.
6654
6655 2000-10-16 Kazu Hirata <kazu@hxi.com>
6656
6657 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
6658
6659 2000-10-16 Jakub Jelinek <jakub@redhat.com>
6660
6661 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
6662
6663 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
6664
6665 * i386.md (*movsi_or): Switch operand order for intel syntax.
6666
6667 2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
6668
6669 * PROBLEMS: Remove.
6670
6671 * gcc.texi (Contributing): Update.
6672
6673 2000-10-13 Diego Novillo <dnovillo@cygnus.com>
6674
6675 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
6676 appropriate assembler dialect.
6677
6678 2000-10-13 Alexandre Oliva <aoliva@redhat.com>
6679
6680 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
6681
6682 2000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
6683
6684 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
6685 constants 1 and 2 to NO_LD_REGS.
6686
6687 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6688
6689 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
6690
6691 * objc/Make-lang.in (objc-parse.c): Likewise.
6692
6693 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
6694
6695 * arm.c: Include obstack.h
6696 (minipool_obstack, minipool_startobj): Define.
6697 (arm_add_gc_roots): Initialize them.
6698 (create_fix_barrier): Use our new obstack.
6699 (push_minipool_barrier, push_minipool_fix): Likewise.
6700 (arm_reorg): Release obstack memory.
6701
6702 2000-10-13 Jakub Jelinek <jakub@redhat.com>
6703
6704 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
6705 (prologue, exception_receiver, builtin_setjmp_receiver): New
6706 patterns.
6707 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
6708 * config/sparc/sparc-protos.h (finalize_pic): Remove.
6709 (load_pic_register): New prototype.
6710 * config/sparc/sparc.c (pic_setup_code): Remove.
6711 (finalize_pic): Rename to...
6712 (load_pic_register): ...this function.
6713 Don't look for nonlocal_goto_receivers and emit pic setup code
6714 directly. Don't check current_function_uses_pic_offset_table.
6715
6716 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
6717
6718 * tree.h (struct obstack): Declare.
6719
6720 2000-10-12 Mark Mitchell <mark@codesourcery.com>
6721
6722 Remove obstacks.
6723 * Makefile.in (ggc-callbacks.o): Remove target.
6724 (flow.o): Depend on GGC_H.
6725 * alias.c (init_alias_analysis):
6726 Remove ggc_p conditionals.
6727 (end_alias_analysis): Likewise.
6728 * basic-block.h (init_flow): New function.
6729 (allocate_reg_life_data): Declare.
6730 * bb-reorder.c (function_obstack): Replace with ...
6731 (flow_obstack): ... new variable.
6732 (fixup_reorder_chain): Use it.
6733 * c-decl.c (ggc_p): Remove.
6734 (caller-save.c): Don't call oballoc/obfree.
6735 * combine.c (struct
6736 undobuf): Remove storage.
6737 (try_combine): Don't call oballoc.
6738 (undo_all): Don't call obfree.
6739 * cse.c (insert): Use xmalloc, not
6740 oballoc.
6741 (cse_main): Adjust accordingly.
6742 * dwarf2out.c (save_rtx): Remove
6743 obstack code.
6744 (dwarf2out_init): Remove ggc_p conditionals.
6745 * emit-rtl.c (rtl_obstack): Remove.
6746 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
6747 (make_insn_raw): Likewise.
6748 (emit_insn_before): Likewise.
6749 (emit_insn_after): Likewise.
6750 (emit_insn): Likewise.
6751 (gen_sequence): Likewise.
6752 (copy_insn_1): Remove handling of `b' RTL components.
6753 (init_emit_once): Remove ggc_p conditionals.
6754 * except.c (create_rethrow_ref): Don't fool with obstacks.
6755 (add_partial_entry): Likewise.
6756 (call_get_eh_context): Likewise.
6757 (begin_protect_partials): Likewise.
6758 (protect_with_terminate): Likewise.
6759 * explow.c
6760 (plus_constant_wide): Likewise.
6761 * expr.c (init_expr_once):
6762 Likewise.
6763 (emit_block_move): Likewise.
6764 (clear_storage): Likewise.
6765 (expand_expr): Likewise.
6766 * flow.c (function_obstack): Remove.
6767 (flow_obstack): New variable.
6768 (flow_firstobj): Likewise.
6769 (create_base_block): Use the flow_obstack.
6770 (split_block): Likewise.
6771 (split_edge): Likewise.
6772 (calculate_global_regs_live): Likewise.
6773 (allocate_bb_life_data): Make it static. Likewiwse.
6774 (init_flow): New function.
6775 (size_int_type_wide): Remove ggc_p conditionals.
6776 * function.c
6777 (push_function_context_to): Don't call save_tree_status.
6778 (pop_function_context_from): Or restore_tree_status.
6779 (assign_stack_local_1): Don't call push_obstacks.
6780 (find_fixup_replacement): Use xmalloc.
6781 (fixup_var_refs_insns): Free the storage.
6782 (insns_for_mem_walk): Don't mess with obstacks.
6783 (instantiate_decls): Likewise.
6784 (trampoline_address): Likewise.
6785 (expand_function_end): Likewise.
6786 * function.h (sturct function):
6787 Remove obstack-related variables.
6788 (save_tree_status): Don't declare.
6789 (restore_tree_status): Likewise.
6790 * gcse.c (compute_can_copy):
6791 Don't call oballoc/obfree.
6792 * genattrtab.c (operate_exp): Remove
6793 ggc_p conditionals.
6794 (simplify_cond): Likewise.
6795 (simplify_test_exp): Don't mess with obstacks.
6796 (optimize_attrs): Likewise.
6797 * gengenrtl.c (gendef): Don't include
6798 ggc_p conditionals.
6799 * ggc-callbacks.c (ggc_p): Remove.
6800 * ggc-none.c (ggc_p): Remove.
6801 * ggc.h (ggc_p): Don't declare.
6802 * integrate.c (save_for_inline): Don't mess with obstacks.
6803 (integrate_decl_tree): Likewise.
6804 (output_inline_function): Likewise.
6805 * lists.c
6806 (init_EXPR_INSN_LIST_cache): Likewise.
6807 * loop.c (temp_obstack):
6808 Remove.
6809 (rtl_obstack): Likewise.
6810 (init_loop): Don't mess with obstacks.
6811 (reg_address_cost): Free BIVs and GIVs.
6812 (check_insns_for_bivs): Use xmalloc, not oballoc.
6813 (find_mem_givs): Likewise.
6814 (record_biv): Likewise.
6815 (general_induction_var): Likewise.
6816 (product_cheap_p): Likewse.
6817 * optabs.c (init_one_libfunc): Remove
6818 ggc_p conditional.
6819 * print-tree.c (debug_tree): Don't use
6820 oballoc/obfree.
6821 (print_node): Likewise.
6822 * profile.c (output_func_start_profiler):
6823 Remove call to temporary_allocation.
6824 * reload1.c
6825 (eliminate_regs_in_insn): Don't mess with obstacks.
6826 * resource.c
6827 (mark_target_live_regs): Use xmalloc.
6828 (free_resource_info): Free the memory.
6829 * rtl.c (rtl_obstack):
6830 Remove.
6831 (rtvec_alloc): Don't mess with obstacks.
6832 (rtx_alloc): Likewise.
6833 (rtx_free): Remove.
6834 (copy_rtx): Don't handle `b' cases.
6835 (read_rtx): Use a local rtl_obstack.
6836 * rtl.h (oballoc): Remove.
6837 (obfree): Likewise.
6838 (pop_obstacks): Likewise.
6839 (push_obstacks): Likewise.
6840 (allocate_bb_life_data): Likewise.
6841 (allocate_reg_life_data): Likewise.
6842 (rtx_free): Likewise.
6843 * sdbout.c (sdbout_queue_anonymous_type):
6844 Use tree_cons, not saveable_tree_cons.
6845 * simplify-rtx.c
6846 (cselib_init): Don't mess with obstacks.
6847 * stmt.c
6848 (mark_block_nesting): Mark the label_chain.
6849 (epxand_label): Use ggc_alloc, not oballoc.
6850 (clear_last_expr): Don't mess with obstacks.
6851 (expand_decl_cleanup): Likewise.
6852 (expand_dcc_cleanup): Likewise.
6853 (expand_dhc_cleanup): Likewise.
6854 (expand_anon_union_decl): Likewise.
6855 (add_case_node): Use xmalloc, not oballoc.
6856 (free_case_nodes): New function.
6857 (expand_end_case): Call it.
6858 * stor-layout.c (layout_type): Don't
6859 mess with obstacks.
6860 (layout_type): Likewise.
6861 * toplev.c (wrapup_global_declarations):
6862 Likewise.
6863 (compile_file): Remove ggc_p conditionals.
6864 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
6865 (decode_f_option): Remove ggc_p conditionals.
6866 * tree.c
6867 (function_maybepermanent_obstack): Remove.
6868 (maybepermanent_obstack): Likewise.
6869 (function_obstack): Likewise.
6870 (tmeporary_obstack): Likewise.
6871 (momentary_obstack): Likewise.
6872 (temp_decl_obstack): Likewise.
6873 (saveable_obstack): Likewise.
6874 (rtl_obstack): Likewise.
6875 (current_obstack): Likewise.
6876 (expression_obstack): Likewise.
6877 (struct obstack_stack): Likewise.
6878 (obstack_stack): Likewise.
6879 (obstack_stack_obstack): Likewise.
6880 (maybepermanent_firstobj): Likewise.
6881 (temporary_firstobj): Likewise.
6882 (momentary_firstobj): Likewise.
6883 (temp_decl_firstobj): Likewise.
6884 (momentary_function_firstobj): Likewise.
6885 (all_types_permanent): Likewise.
6886 (struct momentary_level): Likewise.
6887 (momentary_stack): Likewise.
6888 (init_obstacks): Remove initialization of removed obstacks.
6889 (save_tree_status): Remove.
6890 (restore_tree_status): Likewise.
6891 (temporary_allocation): Liekwise.
6892 (end_temporary_allocation): Liekwise.
6893 (resume_temporary_allocation): Likewise.
6894 (saveable_allocation): Likewise.
6895 (push_obstacks): Likewise.
6896 (push_obstacks_nochange): Likewise.
6897 (pop_obstacks): Likewise.
6898 (allocation_temporary_p): Likewise.
6899 (permanent_allocation): Likewise.
6900 (preserve_data): Likewise.
6901 (preserve_initializer): Likewise.
6902 (rtl_in_current_obstack): Likewise.
6903 (rtl_in_saveable_obstack): Likewise.
6904 (oballoc): Likewise.
6905 (obfree): Likewise.
6906 (savealloc): Likewise.
6907 (expralloc): Likewise.
6908 (print_obstack_name): Likewise.
6909 (debug_obstack): Likewise.
6910 (object_permanent_p): Likewise.
6911 (push_momentary): Likewise.
6912 (perserve_momentary): Likewise.
6913 (clear_momentary): Likewise.
6914 (pop_momentary): Likewise.
6915 (pop_momentary_nofree): Likewise.
6916 (suspend_momentary): Likewise.
6917 (resume_momentary): Likewise.
6918 (make_node): Don't set TREE_PERMANENT.
6919 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
6920 Don't set TREE_PERMANENT.
6921 (get_identifier): Remove ggc_p conditionals.
6922 (build_string): Likewise.
6923 (make_tree_vec): Likewise.
6924 (build_decl_list): Remove.
6925 (build_expr_list): Likewise.
6926 (tree_cons): Remove ggc_p conditionals.
6927 (decl_tree_cons): Remove.
6928 (expr_tree_cons): Likewise.
6929 (perm_tree_cons): Likewise.
6930 (temp_tree_cons): Likewise.
6931 (saveable_tree_cons): Likewise.
6932 (build1): Remove ggc_p conditionals.
6933 (build_parse_node): Likewise.
6934 (build_type_attribute_variant): Don't mess with obstacks.
6935 (build_type_copy): Likewise.
6936 (type_hash_canon): Likewise.
6937 (build_pointer_type): Likewise.
6938 (build_reference_type): Likewise.
6939 (build_index_type): Likewise.
6940 (build_range_type): Likewise.
6941 (dump_tree_statistics): Don't print obstack information.
6942 * tree.h
6943 (struct tree_common): Remove permanent_flag.
6944 (TREE_PERMANENT): Remove.
6945 (TREE_SET_PERMANENT): Likewise.
6946 (TYPE_OBSTACK): Likewise.
6947 (struct tree_type): Remove obstack.
6948 (oballoc): Remove.
6949 (savealloc): Likewise.
6950 (build_decl_list): Likewise.
6951 (build_expr_list): Likewise.
6952 (perm_tree_cons): Likewise.
6953 (temp_tree_cons): Likewise.
6954 (saveable_tree_cons): Likewise.
6955 (decl_tree_cons): Likewise.
6956 (expr_tree_cons): Likewise.
6957 (suspend_momentary): Likewise.
6958 (allocation_temporary_p): Likewise.
6959 (resume_momentary): Likewise.
6960 (push_obstacks_nochange): Likewise.
6961 (permanent_allocation): Likewise.
6962 (push_momentary): Likewise.
6963 (clear_momentary): Likewise.
6964 (pop_momentary): Likewise.
6965 (end_temporary_allocation): Likewise.
6966 (pop_obstacks): Likewise.
6967 (push_obstacks): Likewise.
6968 (pop_momentary_nofree): LIkewise.
6969 (preserve_momentary): Likewise.
6970 (saveable_allocation): Likewise.
6971 (temporary_allocation): Likewise.
6972 (resume_temporary_allocation): Likewise.
6973 (perserve_initializer): Likewise.
6974 (debug_obstack): Likewise.
6975 (rtl_in_current_obstack): Likewise.
6976 (rtl_in_saveable_obstack): Likewise.
6977 (obfree): Likewise.
6978 * varasm.c (current_obstack): Remove.
6979 (saveable_obstack): Remove.
6980 (rtl_obstack): Remove.
6981 (immed_double_const): Don't mess with obstacks.
6982 (immed_real_cons): Likewise.
6983 (output_constant_def): Likewise.
6984 (init_varasm_status): Use xcalloc.
6985 (mark_pool_constant): Mark the pool constant itself.
6986 (free_varasm_status): Free memory.
6987 (decode_rtx_const): Call bzero directly, rather than expanding it
6988 inline.
6989 (record_rtx_const): Don't mess with obstacks.
6990 (force_const_mem): Likewise.
6991 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
6992 conditionals.
6993 (aof_pic_entry): Likewise.
6994 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6995 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
6996 * config/pa/pa.c (saveable_obstack): Remove.
6997 (rtl_obstack): Likewise.
6998 (current_obstack): Likewise.
6999 (output_call): Don't mess with obstacks.
7000 (hppa_encode_label): Remove ggc_p conditionals.
7001 * config/romp/romp.c (get_symref): Don't mess with obstacks.
7002 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
7003 (rs6000_encode_section_info): Likewise.
7004 * config/sh/sh.c (get_fpscr_rtx): Likewise.
7005
7006 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
7007
7008 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
7009 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
7010 (addsi3_carry): Canonicalize.
7011 (addqi_5): Remove '*'.
7012 (sbb pattern): Canonicalize.
7013
7014 * i386.md (cmp to inc/add peep2): New.
7015
7016 2000-10-12 Richard Earnshaw <rearnsha@arm.com>
7017
7018 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
7019 the exit block.
7020
7021 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
7022
7023 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
7024 * README.TRAD, TESTS.FLUNK: Remove.
7025
7026 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
7027
7028 * c-common.c (decl_attributes): Don't allow strftime formats with
7029 first_arg_num nonzero.
7030 (check_format_info): Set wanted_type and wanted_type_name to zero
7031 before they are possibly assigned and used.
7032
7033 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
7034
7035 * c-common.c (scanf_flag_specs): Add flags ' and I.
7036 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
7037 or the ^ and # flags together.
7038 (scan_char_table): Handle the ' and I flags.
7039 (format_types): Add ' and I flags for scanf.
7040
7041 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
7042
7043 * c-common.c (print_char_table): Use the unpromoted type for
7044 lengths "h" and "hh" with conversions dioxXu.
7045 (check_format_types): Apply the default argument promotions where
7046 the wanted type is not a pointer target.
7047
7048 2000-10-11 Michael Meeks <mmeeks@gnu.org>
7049 Joseph S. Myers <jsm28@cam.ac.uk>
7050
7051 * c-typeck.c (check_modify_expr): New function.
7052 (build_modify_expr): Call it if warn_sequence_point.
7053 * c-decl.c (warn_sequence_point): New variable.
7054 (c_decode_option): Handle -Wsequence-point and
7055 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
7056 * c-tree.h (warn_sequence_point): Declare.
7057 * invoke.texi (-Wsequence-point): Document.
7058 * toplev.c (documented_lang_options): Add -Wsequence-point and
7059 -Wno-sequence-point.
7060 Original work by Michael Meeks, 16 Jun 1998.
7061
7062 Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7063
7064 * tree.c (get_narrower): Don't look at precision of field if
7065 not laid out yet.
7066
7067 Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
7068
7069 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
7070 declaration for data with "progmem" attribute.
7071
7072 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
7073
7074 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
7075 Correct insn length if shift count is a memory operand.
7076 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
7077 (*iorhi3_clobber): Change lo8 to hi8.
7078 (zero_extendhisi2): Change %B0 to %A1.
7079 (ashlhi3, ashrhi3): Correct insn length.
7080 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
7081 from "clobber" to "set_n" in some alternatives.
7082
7083 2000-10-10 Jakub Jelinek <jakub@redhat.com>
7084
7085 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
7086 remove its insn_chain structure as well.
7087
7088 2000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7089
7090 * dbxout.c (dbxout_source_line): Remove extra tab.
7091
7092 2000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
7093
7094 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
7095
7096 2000-10-09 Richard Henderson <rth@cygnus.com>
7097
7098 * Makefile.in (LANG_LIB2FUNCS): Remove.
7099 (LIB2FUNCS): Remove _pure.
7100 (LIB2ADD): Remove LANG_LIB2FUNCS.
7101 (stage_a): Don't set LANG_LIB2FUNCS.
7102 * libgcc2.c (__terminate): Mark noreturn.
7103 (__pure_virtual): Remove.
7104 * mklibgcc.in: Remove LIB2ADD .txt processing.
7105
7106 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
7107
7108 * arm.md (push_multi): Revert unintended change.
7109
7110 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
7111
7112 * arm.c: Miscellaneous white space and comment clean-ups. No
7113 functional change.
7114 * arm.md: Likewise.
7115
7116 2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7117
7118 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
7119 STRING_CST by calling combine_strings.
7120
7121 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
7122
7123 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
7124 (thumb_output_move_mem_multiple): Support new insn format.
7125 * arm.md (movmem12b): Use SSA compatible format.
7126 (movmem8b): Likewise.
7127
7128 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
7129
7130 * arm.md (predicable): New attribute, default to "no".
7131 (all patterns): Mark as predicable if appropriate.
7132 (conditional execution splits): Split using predication format.
7133 (define_cond_exec): Define.
7134 * arm.c (arm_print_operand): handle insn predicate.
7135
7136 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7137
7138 * README.NS32K: Remove file.
7139
7140 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7141
7142 * README-bugs: Remove file.
7143
7144 2000-10-08 Philipp Thomas <pthomas@suse.de>
7145 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
7146 for test.
7147 * configure: Rebuilt.
7148
7149 2000-10-08 Philipp Thomas <pthomas@suse.de>
7150 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
7151 disable catalog building if no suitable program was found.
7152 Move warning message from here
7153 (AM_GNU_GETTEXT): To here.
7154 * configure: Rebuilt.
7155
7156 2000-10-08 Philipp Thomas <pthomas@suse.de>
7157 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
7158 different cache variables.
7159 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
7160 uses different cache variables.
7161 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
7162 * configure: Regenerated.
7163
7164 2000-10-08 Richard Henderson <rth@cygnus.com>
7165
7166 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
7167 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
7168 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
7169 Use SHLIB_EXT.
7170
7171 * config/t-linux (SHLIB_EXT): New.
7172 (SHLIB_LINK): Use the entire build command, with substitutions.
7173 (SHLIB_LIBS): Remove.
7174 * config/alpha/t-osf4: Likewise.
7175 * config/mips/t-iris6: Likewise.
7176 * config/sparc/t-sol2: Likewise, but move shlib stuff...
7177 * config/sparc/t-slibgcc-sld: ...here.
7178 * config/sparc/t-slibgcc: New file.
7179
7180 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
7181
7182 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
7183 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
7184 CTI_UINTMAX_TYPE.
7185 (intmax_type_node, uintmax_type_node): Define.
7186 * c-common.c (decl_attributes): If pedantic, warn if `mode'
7187 attributes create a type wider than intmax_t.
7188 (T_IM, T_UIM): Define properly.
7189 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
7190 defined.
7191 (init_decl_processing): Initialize intmax_type_node and
7192 uintmax_type_node.
7193 * c-lex.c (lex_number): When pedantic and warning for integer
7194 constants that are too large, in C99 mode warn for those that have
7195 a type wider than long long.
7196
7197 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
7198
7199 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
7200 FMT_FLAG_FANCY_PERCENT_OK): Define.
7201 (format_char_info): Add flag "4" to comment.
7202 (format_flag_spec, format_flag_pair): New structures.
7203 (format_kind_info): Add additional fields to control format
7204 checking.
7205 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
7206 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
7207 arrays.
7208 (time_char_table): Use "4" flag to handle %Ey.
7209 (format_types): Add entries for new fields.
7210 (get_flag_spec): New function.
7211 (check_format_info): Increase size of flag_chars[] to 256.
7212 Control format checking using the new fields of a format_kind_info
7213 and the new tables; remove all conditionals on printf_format_type,
7214 scanf_format_type or strftime_format_type. Handle all details of
7215 bad combinations of flags (including width, precision and strftime
7216 modifiers) through data rather than ad hoc code. Handle all
7217 details of standard versions in which flags appeared through
7218 data. Use the "4" flag.
7219
7220 2000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
7221
7222 * config/h8300/h8300.md: Remove the memory alternative and correct
7223 the insn lengths in the templates for sign extention and zero
7224 extention.
7225
7226 2000-10-07 Richard Henderson <rth@cygnus.com>
7227
7228 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
7229 * flow.c (make_edges): Revert last change.
7230
7231 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
7232 TREE_THIS_VOLATILE.
7233 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
7234
7235 2000-10-06 David O'Brien <obrien@dragon.nuxi.com>
7236
7237 * config/alpha/elf.h: Standardize the formatting.
7238
7239 2000-10-06 David O'Brien <obrien@FreeBSD.org>
7240
7241 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
7242 #undef.
7243
7244 2000-10-06 Richard Henderson <rth@cygnus.com>
7245
7246 * function.c (diddle_return_value): Examine
7247 current_function_return_rtx instead of the DECL_RESULT.
7248 (expand_function_end): Handle reloading DECL_RESULT from memory
7249 into a hard register. Query promote_mode for sign of mismatched
7250 modes.
7251
7252 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7253
7254 * haifa-sched.c (schedule_insns): Fix typo in freeing
7255 forward_dependency_cache.
7256
7257 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
7258
7259 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
7260 `TARGET_SH2' as a condition.
7261
7262 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7263
7264 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
7265 forward_dependency_cache): New variables.
7266 (add_dependence, remove_dependence): Use anti_dependency_cache and
7267 output_dependency_cache.
7268 (compute_block_forward_dependences): Use forward_dependency_cache.
7269 (schedule_insns): Allocate and free memory for anti/output/forward
7270 dependencies caches.
7271
7272 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
7273
7274 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
7275 `! TARGET_SH1'. Reindent.
7276
7277 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7278
7279 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
7280 Move functions from here ...
7281
7282 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
7283 ... to here.
7284 (c_expand_builtin): New function.
7285 (init_function_format_info): Don't set `check_function_format_ptr'.
7286 (c_common_nodes_and_builtins): Set built_in_class type for
7287 printf/__builtin_printf to BUILT_IN_FRONTEND.
7288 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
7289
7290 * c-common.h (build_function_call): Declare.
7291
7292 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
7293 to `lang_expand_expr' rather than `expand_builtin'.
7294
7295 * tree.c (check_function_format_ptr): Delete.
7296
7297 * tree.h (check_function_format_ptr): Likewise.
7298
7299 2000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
7300
7301 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
7302 DW_OP_bregx when cfa->reg > 31.
7303
7304 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
7305 break.
7306
7307 2000-10-05 Richard Henderson <rth@cygnus.com>
7308
7309 * c-decl.c (warn_missing_noreturn): Remove.
7310 (c_expand_body): Don't set or check can_reach_end.
7311 * c-tree.h (warn_missing_noreturn): Move ...
7312 * flags.h: ... here.
7313 (can_reach_end): Remove.
7314 * flow.c (check_function_return_warnings): New.
7315 (make_edges): No edge to exit for noreturn sibcalls.
7316 * function.c (expand_function_end): Save the return value
7317 clobber instruction.
7318 (mark_function_status): Mark it.
7319 * function.h (struct function): Add x_clobber_return_insn.
7320 * jump.c (can_reach_end): Remove.
7321 (calculate_can_reach_end): Remove.
7322 (jump_optimize_1): Don't call it.
7323 * output.h (check_function_return_warnings): Declare.
7324 * toplev.c (warn_missing_noreturn): Move from c-decl.c
7325 (rest_of_compilation): Call check_function_return_warnings.
7326
7327 2000-10-05 Richard Henderson <rth@cygnus.com>
7328
7329 * Makefile.in (NM_FOR_TARGET): New.
7330 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
7331 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
7332 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
7333 shared library build on that and EXTRA_MULTILIB_PARTS.
7334 * mkmap-flat.awk: New file.
7335 * mkmap-symver.awk: New file.
7336 * libgcc-std.ver: New file.
7337 * config/libgcc-glibc.ver: New file.
7338 * config/ia64/libgcc-ia64.ver: New file.
7339 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
7340 (SHLIB_LINK): Add --version-script.
7341 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
7342 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
7343 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
7344 (SHLIB_LINK): Add -M.
7345
7346 2000-10-05 Richard Henderson <rth@cygnus.com>
7347
7348 * Makefile.in (LIB2FUNCS): Add _clz.
7349 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
7350 (__clz_tab): Put in its own unit, non-static.
7351 * libgcc2.h: Always include longlong.h.
7352
7353 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
7354 a zero instead of -1.
7355 (count_trailing_zeros): Likewise.
7356
7357 2000-10-05 Richard Henderson <rth@cygnus.com>
7358
7359 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
7360 when second op1 is const0_rtx. Validate op0 as a register.
7361 * config/alpha/alpha.md (setcc_internal): Don't allow constants
7362 in the first argument of the compare.
7363 (setcc_swapped_internal): Likewise.
7364 (setne_internal): Likewise.
7365
7366 2000-10-05 Geoff Keating <geoffk@cygnus.com>
7367
7368 * tree.c (tree_size): New function split out of copy_node.
7369 (make_node): Remove obstack handling. Use tree_size.
7370 (copy_node): Use tree_size.
7371 * tree.h: Prototype tree_size.
7372
7373 2000-10-05 Richard Henderson <rth@cygnus.com>
7374
7375 * diagnostic.c (output_format): Add missing break.
7376
7377 2000-10-05 Jim Wilson <wilson@cygnus.com>
7378
7379 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
7380 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
7381 sequence insn to INSN, and delete last sequence insn.
7382
7383 2000-10-05 Phil Edwards <pme@gcc.gnu.org>
7384
7385 * gcc.c (main): Include generated configargs.h header
7386 and use arguments in '-v' output.
7387
7388 Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7389
7390 * gcc.c: Move data on prefixes forward in file and reorganize.
7391 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
7392 Always define, but make null if no value.
7393 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
7394 and "md_startfile_prefix_1".
7395 (main): Check whether md_exec_prefix and the others are the
7396 null string rather than whether the macro is defined.
7397
7398 Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
7399
7400 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
7401 from PSImode to SImode.
7402
7403 2000-10-05 Jakub Jelinek <jakub@redhat.com>
7404
7405 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
7406 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
7407 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
7408 sizeof(long).
7409
7410 Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7411
7412 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
7413 negation in proper type.a
7414
7415 2000-10-04 Richard Henderson <rth@cygnus.com>
7416
7417 * configure.in (enable-shared): New.
7418 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
7419 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
7420 * mklibgcc.in: Use them to link shared a libgcc.
7421 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
7422 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
7423 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
7424 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
7425
7426 * configure.in (alpha-osf*): Use t-osf and x-osf.
7427 * config/alpha/t-osf: New file.
7428 * config/alpha/t-osf4: New file.
7429 * config/alpha/x-osf: New file.
7430 * config/alpha/x-alpha: Remove file.
7431
7432 2000-10-04 Will Cohen <wcohen@redhat.com>
7433
7434 * c-typeck.c (process_init_element): Added warning for zero-length
7435 array.
7436
7437 * extend.texi (Zero Length): State that static initializers for
7438 zero-length arrays are not allowed.
7439
7440 Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
7441
7442 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
7443 to come last.
7444
7445 2000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7446
7447 * config/float-c4x.h: New.
7448 * configure.in (c4x-*): Set float_format to c4x.
7449 * configure: Regenerate.
7450
7451 2000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7452
7453 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
7454 compilation for solaris versions 2.7 and greater.
7455
7456 2000-10-02 Marc Espie <espie@openbsd.org>
7457
7458 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
7459 instead of redefining from scratch.
7460
7461 2000-10-02 David O'Brien <obrien@dragon.nuxi.com>
7462
7463 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
7464
7465 2000-10-01 Mark Mitchell <mark@codesourcery.com>
7466
7467 * config/ns32k/genix.h: Remove.
7468 * config/ns32k/x-genix: Likewise.
7469 * config/ns32k/xm-genix.h: Likewise.
7470 * config/fx80: Remove all filee in directory.
7471 * config/pyr: Likewise.
7472 * config/tahoe: Likewise.
7473 * config/gmicro: Likewise.
7474 * config/spur: Likewise.
7475 * configure.in: Remove configury bits for above targets.
7476 * configure: Regenerated.
7477
7478 * configure.in: Don't configure chill by default.
7479 * configure: Regenerated.
7480
7481 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
7482 (lang_mark_false_label_stack): Remove.
7483 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
7484 <top level> string in GC area.
7485 (mark_splay_tree_node): New function.
7486 (mark_splay_tree): Likewise.
7487 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
7488 if it exists.
7489 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
7490 * ggc-common.c (lang_mark_false_label_stack): Change type.
7491 * ggc.h (ggc_alloc_string): Add comment.
7492 (ggc_strdup): New function.
7493
7494 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
7495
7496 * config/avr/avr.h (BRANCH_COST): Define as 0.
7497
7498 * config/pdp11/pdp11.c: #include "tree.h" added.
7499
7500 2000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
7501
7502 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
7503 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
7504 with known shift count.
7505 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
7506 New alternative for shift count 2 with no scratch register.
7507 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
7508 "set_n" for shift counts 1 and 2.
7509
7510 2000-09-30 Geoff Keating <geoffk@cygnus.com>
7511
7512 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
7513 the mask value from the individual SET operations.
7514 (return_internal_si): Move the USE after the RETURN.
7515 (return_internal_di): Likewise.
7516 (return_and_restore_fpregs_si): Likewise.
7517 (return_and_restore_fpregs_di): Likewise.
7518 (return_eh_si): Likewise.
7519 (return_eh_di): Likewise.
7520 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
7521 or check, the USE.
7522 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
7523 Don't generate a PARALLEL around a single operation movsi_to_cr.
7524 Generate the RETURN first in any PARALLELs.
7525
7526 * rtlanal.c (single_set_1): Use fatal_insn to display the
7527 invalid insn. Check for more cases when a USE or CLOBBER occurs
7528 before a SET.
7529 * Makefile.in: Update dependencies for rtlanal.o.
7530
7531 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
7532
7533 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
7534
7535 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
7536
7537 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
7538 Consistently use @email for formatting email addresses.
7539
7540 2000-09-29 Richard Henderson <rth@cygnus.com>
7541
7542 * cse.c (notreg_cost): New argument outer.
7543 (COST): Pass in SET to notreg_cost
7544 (COST_IN): New.
7545 (fold_rtx): Use COST_IN. Prefer constants when costs
7546 are the same.
7547
7548 2000-09-29 David Edelsohn <edelsohn@gnu.org>
7549
7550 * fixinc/inclhack.def (broken_cabs): Generalize regex.
7551 * fixinc/fixincl.x: Regenerate.
7552
7553 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7554
7555 * loop.c (check_final_value): A GIV is not replaceable if used
7556 before set.
7557
7558 Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
7559
7560 * version.c: Bump to gcc-2.97.
7561
7562 Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
7563
7564 * final.c (final_scan_insn): Remove extra extract_insn call;
7565 Use caching for constrain_operands.
7566 (cleanup_subreg_operands): Use caching for extract_insn.
7567 * recog.c (constrain_operands_cached): New.
7568 * recog.h (constrain_operands_cached): Declare.
7569 * i386.c (ix86_attr_length_immediate_default,
7570 ix86_attr_length_address_default, ix86_agi_dependant): Cache
7571 extract_insn call.
7572
7573 * recog.c (asm_noperands): Tweak.
7574 (extract_insn): Do not call asm_noperads for non-asm instructions.
7575
7576 Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
7577
7578 * recog.c (recog_memoized): Rename to recog_memoized_1.
7579 * recog.h (recog_memoized): Rename to recog_memoized_1.
7580 (recog_memoized): New macro.
7581 * rtl.h (single_set): Rename to single_set_1
7582 (single_set): New macro.
7583 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
7584 to be last.
7585
7586 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
7587 Do not use match_dup of input operands at outputs.
7588 Use register_operand for memory expression.
7589 (rep_movsi): Put use last, canonicalize.
7590 Use register_operand for memory expression.
7591 (rep_movqi): Put use last.
7592 Use register_operand for memory expression.
7593 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
7594 of input operands at outputs. Use register_operand for memory
7595 expression.
7596 (rep_stossi): Put use last; canonicalize; fix match_dup in
7597 the address expression
7598 (rep_stosqi): Likewise.
7599 (memcmp expander): Update calls.
7600 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
7601 the clobbers.
7602
7603 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
7604 VOIDmode.
7605 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
7606
7607 2000-09-28 David O'Brien <obrien@FreeBSD.org>
7608
7609 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
7610 Contains the old contents of config/i386/freebsd.h
7611 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
7612 Contains the old contents of config/i386/freebsd-elf.h
7613 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
7614 config/i386/freebsd.h.
7615 * configure.in: Adjust for above changes.
7616 * po/POTFILES.in: Likewise.
7617 * po/en_GB.po: Likewise.
7618 * po/gcc.pot: Likewise.
7619 * configure: Rebuilt.
7620
7621 2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7622
7623 * doloop.c (doloop_modify): Prevent delete_insn() from
7624 deleting too much. Prefer loop->top over loop->start as
7625 target for the new JUMP insn.
7626 (doloop_valid_p): Ignore loop with exit_count != 0.
7627
7628 2000-09-28 Philipp Thomas <pthomas@suse.de>
7629
7630 * invoke.texi (i386 Options): Add athlon to table of possible
7631 choices for -mcpu=.
7632
7633 2000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
7634
7635 * diagnostic.h (output_clear_message_text): New function.
7636 (output_message_text): New macro.
7637
7638 * diagnostic.c (clear_text_info): Rename to
7639 output_clear_message_text.
7640 (output_clear): Adjust.
7641 (output_finish): Rename to output_finalize_message. Tweek.
7642 (output_to_stream): Adjust.
7643
7644 2000-09-28 Neil Booth <neilb@earthling.net>
7645
7646 * cpperror.c (_cpp_begin_message): Do the test for suppression
7647 of warnings and pedantic warnings before the "is a warning an
7648 error" tests.
7649 * cppinit.c (cpp_handle_option): Remove surplus \n.
7650 * cpplex.c (ON_REST_ARG): Delete.
7651 (skip_block_comment): Initialise prevc.
7652 (parse_args): Improve error messages.
7653 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
7654 than ON_REST_ARG.
7655 * cpplib.c (cpp_push_buffer): Fix grammar in message.
7656 * cppmain.c (main): Set callbacks for #ident and #pragma
7657 only if no_output option is false.
7658 (do_pragma_implementation): Only call the #pragma handler
7659 if it is set in the cpp_reader structure.
7660
7661 Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
7662
7663 * integrate.c (copy_insn_list): if an ignored return value
7664 is being clobbered, skip cloning that into the inline copy.
7665
7666 2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
7667
7668 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
7669 use @uref for formatting URLs.
7670
7671 2000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
7672
7673 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
7674 name and prefix.
7675
7676 Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
7677
7678 * gcc.c (cpp_options): Add spec for -ftabstop=.
7679 (invoke_as): New spec that handles invoking as.
7680 Update specs to handle -save-temps and -traditional.
7681 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
7682 Use invoke_as.
7683 * cp/lang-specs.h, objc/lang-specs.h: Update to use
7684 invoke_as, and handle -save-temps and -traditional (if
7685 appropriate).
7686
7687 2000-09-26 Jakub Jelinek <jakub@redhat.com>
7688
7689 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
7690 op0 is a SUBREG.
7691 (function_arg_slotno): Accept TImode/CTImode.
7692 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
7693 to UNITS_PER_WORD.
7694
7695 2000-09-26 Michael Hayes <mhayes@cygnus.com>
7696
7697 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
7698 from entry block.
7699
7700 2000-09-25 Jim Wilson <wilson@cygnus.com>
7701
7702 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
7703 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
7704 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
7705 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
7706
7707 Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
7708
7709 * cpplex.c (parse_args): Don't set VOID_REST flag.
7710 (CONTEXT_VARARGS): New flag.
7711 (maybe_paste_with_next): Set context earlier in loop. Use
7712 it. Do varargs test with CONTEXT_VARARGS flag.
7713 (push_arg_context): Set CONTEXT_VARARGS flag if we're
7714 pushing an argument context for a varargs argument.
7715 * cpplib.h (VOID_REST): Delete.
7716 * gcc.dg/cpp/vararg1.c: Add test case.
7717
7718 2000-09-25 Branko Cibej <branko.cibej@hermes.si>
7719
7720 * flags.h: Declare warning flag warn_system_headers.
7721 * toplev.c: Define it.
7722 (W_options): Add option -Wsystem-headers.
7723 * diagnostic.c (count_error): Test warn_system_headers.
7724 * invoke.texi: Add description for -Wsystem-headers.
7725 * cpplib.h (cpp_options): New member warn_system_headers.
7726 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
7727 CPP_IN_SYSTEM_HEADER.
7728 * cpplib.c (do_import, do_pragma_once): Likewise.
7729 * cpperror.c (_cpp_begin_message): Test warn_system_headers
7730 and CPP_IN_SYSTEM_HEADER.
7731 * cppinit.c (handle_option): Recognize -Wsystem_headers.
7732 (print_help): Describe -Wsystem_headers.
7733 * cpplex.c (lex_line): Reorganize condition so that warnings
7734 about C++ comments in system headers can be enabled. Remove
7735 label do_line_comment.
7736
7737 Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
7738
7739 * cpplex.c (save_comment): Only store the initial '/'
7740 now.
7741 (lex_token): Combine handling of the two comment types.
7742 Pass everything but the initial '/' to save_comment.
7743
7744 Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
7745
7746 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
7747 _cpp_can_paste): New library-internal prototypes.
7748 * cpplex.c (dump_param_spelling, output_line_command,
7749 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
7750 cpp_printf, cpp_output_list): Move to cppoutput.c.
7751 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
7752 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
7753 cppoutput.c.
7754 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
7755 dump_param_spelling, output_line_command, cpp_scan_buffer,
7756 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
7757 from elsewhere.
7758 * Makefile.in: Add cppoutput.c.
7759 * po/POTFILES.in: Add cppoutput.c.
7760
7761 2000-09-25 Richard Henderson <rth@cygnus.com>
7762
7763 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
7764 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
7765 split until after reload.
7766 (rotlsi3, rotldi3): New.
7767
7768 2000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
7769
7770 * diagnostic.c (output_last_position): Define.
7771 (set_real_maximum_length): Tweek.
7772 * diagnostic.h (output_last_position): Declare.
7773
7774 2000-09-25 Kazu Hirata <kazu@hxi.com>
7775
7776 * config/i386/i386.c: Fix formatting.
7777
7778 2000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
7779
7780 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
7781 UNITS_PER_WORD is small.
7782
7783 2000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
7784
7785 * c-common.c (format_char_info): Add flags2; update comments.
7786 (print_char_table, scan_char_table, time_char_table): Split some
7787 flags out into flags2.
7788 (check_format_info): Use flags2 for those flags, for identifying
7789 the initial character of a scanf scanset, and for identifying
7790 printf formats where the '0' flag is ignored with precision.
7791
7792 2000-09-25 Hans-Peter Nilsson <hp@axis.com>
7793
7794 Changes below marked "here" add TABs on either or both sides,
7795 covering start of line, up to any operand for all noted .*ASM.*_OP
7796 definitions. All callers changed.
7797 * tm.texi: Make documented *_ASM.*_OP:s include spacing
7798 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
7799 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
7800 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
7801 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
7802 Fix typos in description for LONG_LONG_TYPE_SIZE and
7803 FINI_SECTION_ASM_OP.
7804 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
7805 why these defaults don't have leading spacing.
7806 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
7807 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7808 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
7809 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
7810 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
7811 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
7812 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
7813 * varasm.c (ASM_STABS_OP): Here.
7814 * xcoffout.h (ASM_STABS_OP): Here.
7815 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
7816 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
7817 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
7818 STRING_ASM_OP): Here.
7819 * config/freebsd.h (IDENT_ASM_OP): Here.
7820 * config/linux-aout.h (SET_ASM_OP): Here.
7821 * config/linux.h (SET_ASM_OP): Here.
7822 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
7823 INT_ASM_OP): Here.
7824 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
7825 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
7826 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
7827 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
7828 INT_ASM_OP): Here.
7829 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
7830 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
7831 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
7832 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
7833 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
7834 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
7835 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
7836 * config/a29k/udi.h (INT_ASM_OP): Here.
7837 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
7838 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
7839 SET_ASM_OP): Here.
7840 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
7841 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7842 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7843 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
7844 ASM_STABD_OP): Here.
7845 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
7846 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
7847 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
7848 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
7849 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
7850 SIZE_ASM_OP, STRING_ASM_OP): Here.
7851 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
7852 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
7853 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
7854 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
7855 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
7856 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
7857 Here.
7858 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7859 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
7860 * config/arm/coff.h (INT_ASM_OP): Here.
7861 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
7862 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
7863 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
7864 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
7865 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
7866 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7867 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
7868 STRING_ASM_OP): Here. Update documentation copy in comments.
7869 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
7870 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
7871 DATA_SECTION_ASM_OP): Here.
7872 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
7873 Here.
7874 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
7875 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
7876 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7877 BSS_SECTION_ASM_OP): Here.
7878 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7879 BSS_SECTION_ASM_OP): Here.
7880 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
7881 Here.
7882 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
7883 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
7884 * config/h8300/h8300.h (ASM_WORD_OP): Here.
7885 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7886 BSS_SECTION_ASM_OP): Here.
7887 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
7888 * config/i386/bsd.h (ASM_BYTE_OP): Here.
7889 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
7890 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
7891 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
7892 Here.
7893 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
7894 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
7895 Here.
7896 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
7897 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
7898 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
7899 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
7900 SET_ASM_OP): Here.
7901 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
7902 * config/i386/netbsd.h (INT_ASM_OP): Here.
7903 * config/i386/openbsd.h (INT_ASM_OP): Here.
7904 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
7905 IDENT_ASM_OP): Here.
7906 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
7907 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
7908 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
7909 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
7910 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
7911 SHARED_BSS_SECTION_ASM_OP): Here.
7912 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
7913 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
7914 DATA_SECTION_ASM_OP): Here.
7915 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
7916 CONST_SECTION_ASM_OP): Here.
7917 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
7918 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7919 BSS_SECTION_ASM_OP): Here.
7920 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
7921 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
7922 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
7923 BSS_ASM_OP): Here, but use trailing spaces.
7924 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
7925 DATA_SECTION_ASM_OP): Here.
7926 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
7927 Here.
7928 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
7929 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
7930 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
7931 TDESC_SECTION_ASM_OP): Here.
7932 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
7933 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
7934 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
7935 Here.
7936 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7937 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
7938 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7939 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
7940 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
7941 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
7942 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
7943 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
7944 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
7945 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
7946 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
7947 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
7948 SET_ASM_OP): Here.
7949 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
7950 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
7951 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
7952 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
7953 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
7954 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
7955 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
7956 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7957 GLOBAL_ASM_OP): Here.
7958 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
7959 BSS_SECTION_ASM_OP): Here.
7960 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
7961 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7962 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
7963 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
7964 SKIP_ASM_OP): Here.
7965 * config/m68k/newsgas.h (SET_ASM_OP): Here.
7966 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
7967 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
7968 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
7969 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
7970 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
7971 but use trailing spaces.
7972 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
7973 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
7974 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
7975 Here.
7976 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
7977 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
7978 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
7979 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
7980 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
7981 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
7982 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
7983 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
7984 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
7985 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
7986 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7987 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
7988 ASM_BYTE_OP): Here.
7989 * config/m88k/openbsd.h (SET_ASM_OP): Here.
7990 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
7991 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
7992 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
7993 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
7994 DTORS_SECTION_ASM_OP): Here.
7995 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
7996 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
7997 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
7998 BSS_SECTION_ASM_OP): Here.
7999 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
8000 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
8001 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
8002 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
8003 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
8004 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
8005 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
8006 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
8007 Here.
8008 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
8009 Here.
8010 * config/mips/osfrose.h (SET_ASM_OP): Here.
8011 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
8012 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
8013 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
8014 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8015 Here.
8016 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
8017 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
8018 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
8019 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
8020 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
8021 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8022 Here.
8023 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8024 Here.
8025 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
8026 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
8027 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
8028 Here.
8029 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
8030 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
8031 * config/sparc/linux.h (COMMON_ASM_OP): Here.
8032 * config/sparc/linux64.h (COMMON_ASM_OP,
8033 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
8034 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
8035 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8036 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
8037 * config/sparc/pbd.h (ASM_INT_OP): Here.
8038 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
8039 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
8040 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
8041 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
8042 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
8043 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
8044 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
8045 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
8046 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
8047 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8048 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8049 EH_FRAME_SECTION_ASM_OP): Here.
8050 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
8051 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8052 Here.
8053 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8054 Here.
8055 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
8056 TCOMMON_ASM_OP): Here.
8057 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8058 Here.
8059 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8060 ASM_BYTE_OP): Here.
8061
8062 2000-09-25 Richard Henderson <rth@cygnus.com>
8063
8064 * expmed.c (store_bit_field): Adjust last change to not consider
8065 any word-sized field naturally aligned.
8066
8067 2000-09-24 Richard Henderson <rth@cygnus.com>
8068
8069 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
8070 TFmode unordered compares properly. Revalidate integer compare
8071 operands.
8072 (alpha_emit_setcc): New.
8073 (alpha_emit_conditional_move): Revalidate integer compare operands.
8074 * config/alpha/alpha-protos.h: Update.
8075 * config/alpha/alpha.md (cmpdi): Allow general operands.
8076 (sne): Use alpha_emit_setcc.
8077 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
8078 (sunordered, sordered): New.
8079
8080 2000-09-24 Richard Henderson <rth@cygnus.com>
8081
8082 * config/ia64/ia64-protos.h: Update.
8083 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
8084 (ia64_expand_call): New.
8085 (ia64_expand_prologue): Emit an alloc if we need extra input
8086 registers.
8087 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
8088 instruction if true.
8089 (struct reg_flags): Add is_sibcall.
8090 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
8091 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
8092 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
8093 * config/ia64/ia64.h (PREDICATE_CODES): Update.
8094 * config/ia64/ia64.md (call): Use ia64_expand_call.
8095 (call_value): Likewise.
8096 (sibcall, sibcall_value): New.
8097 (call patterns): Remove extra expanders; tidy.
8098 (sibcall_epilogue): New.
8099 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
8100
8101 2000-09-24 Richard Henderson <rth@cygnus.com>
8102
8103 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
8104
8105 * sibcall.c (skip_pic_restore): New.
8106 (identify_call_return_value): Use it.
8107
8108 2000-09-24 Mark Mitchell <mark@codesourcery.com>
8109
8110 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
8111 functions. Generalize to handle both C and C++.
8112 * Makefile.in (c-tree.info): New target.
8113 (info): Add c-tree.info.
8114
8115 Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8116
8117 * expr.c (store_field): If BITSIZE is negative, use size of type.
8118 (expand_expr, case COMPONENT_EXPR): Likewise.
8119
8120 Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
8121
8122 * cpplex.c: Update TODO comment.
8123 * cpplib.c (do_error, do_warning): Merge common code of
8124 do_error and do_warning into do_diagnostic. Use it.
8125 (do_diagnostic): New function.
8126 * cpplib.h: Fix comment typo.
8127
8128 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
8129
8130 * c-common.c (check_format_info): Warn for a wide character string
8131 used as a non-wide format argument.
8132
8133 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
8134
8135 * builtins.def (BUILT_IN_LLABS): Add.
8136 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
8137 * c-common.c (c_common_nodes_builtins): Create builtin functions
8138 __builtin_llabs, and plain llabs unless no_nonansi_builtins
8139 outside of C99 mode.
8140 (expand_tree_builtin): Handle BUILT_IN_LLABS.
8141
8142 Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
8143
8144 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
8145 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
8146 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
8147 _cpp_free_toklist): No need to worry about extra dummy token
8148 at the start of token lists any more.
8149 (trigraph_ok): Only warn outside comments.
8150 (skip_block_comment): Set and clear lexing_comment.
8151 (skip_line_comment): Take a cpp_reader not cpp_buffer.
8152 Set and clear lexing_comment.
8153 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
8154 (check_long_token): Delete.
8155 (lex_percent, lex_dot): New subroutines of lex_token to
8156 handle lexing of '.' and '%' without lookback.
8157 (lex_token): Use lex_dot and lex_percent.
8158 (lex_line): Don't check for LIST_OFFSET.
8159 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
8160 * cpplib.c (_cpp_parse_assertion): Similarly.
8161 (cpp_push_buffer): Initialize extra_char.
8162 * cpplib.h (LIST_OFFSET): Delete.
8163 (struct cpp_buffer): New member extra_char.
8164 (struct lexer_state): New members lexing_comment and seen_dot.
8165
8166 2000-09-23 Jason Merrill <jason@redhat.com>
8167
8168 * config/rs6000/x-aix41 (CLIB): Define here.
8169 * config/rs6000/t-aix43: Not here.
8170 * config/rs6000/t-aix41: Or here. Remove.
8171 * configure.in: Don't use it.
8172
8173 2000-09-22 Jason Merrill <jason@redhat.com>
8174
8175 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
8176 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
8177 * config.in: Regenerate.
8178
8179 * configure.in: Fix checks for assembler features when using a
8180 one-tree assembler that has not yet been built.
8181 Fix --disable-threads.
8182
8183 2000-09-19 Geoff Keating <geoffk@cygnus.com>
8184
8185 * stmt.c (expand_asm_operands): Allow # in constraints.
8186
8187 2000-09-22 Jason Merrill <jason@redhat.com>
8188
8189 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
8190
8191 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
8192 function-local names.
8193
8194 2000-09-22 Brad Lucier <lucier@math.purdue.edu>
8195 Mark Mitchell <mark@codesourcery.com>
8196
8197 * toplev.c (warn_disabled_optimization): Declare new warning flag.
8198 * flags.h (warn_disabled_optimization): Add it here.
8199 * gcse.c (gcse_main): Add warning when disabled.
8200 * invoke.texi: Document -Wdisabled-optimization.
8201
8202 2000-09-21 Jason Merrill <jason@redhat.com>
8203
8204 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
8205
8206 * dwarf2out.c (tree_add_const_value_attribute): New fn.
8207 (gen_variable_die): Call it for non-definitions.
8208
8209 * dwarf2out.c (die_struct): Add die_mark field.
8210 (mark_dies, unmark_dies): New fns.
8211 (clear_die_sizes): Remove.
8212 (print_die): Check die_symbol rather than die_offset.
8213 (build_abbrev_table, output_pubnames, output_aranges): Check
8214 die_mark rather than die_offset.
8215 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
8216 Call mark_dies.
8217
8218 Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
8219
8220 * cppfiles.c (lookup_include_file): Rename to open_file.
8221 Always create a splay tree value, even on syscall failures.
8222 Negative entries indicated by fd == -2.
8223 Re-open files closed in the meantime.
8224 (_cpp_fake_include): Create a negative splay tree entry.
8225 (find_include_file, cpp_read_file): Update for function name
8226 change.
8227 * gcc.gd/cpp/mi4.c: Testcase.
8228
8229 2000-09-21 Nick Clifton <nickc@redhat.com>
8230
8231 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
8232 ARM and THUMB modes.
8233
8234 * config/mcore/mcore.c: Fix compile time warnings.
8235 * config/mcore/mcore-protos.h: Fix compile time warnings.
8236
8237 2000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8238
8239 * configure.in: Correct test of gcc_cv_glibc.
8240 * configure: Rebuilt.
8241 * config.in: Rebuilt.
8242
8243 2000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8244
8245 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
8246 (expand_builtin): Handle BUILT_IN_FWRITE.
8247
8248 * builtins.def (BUILT_IN_FWRITE): New entry.
8249
8250 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
8251
8252 Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8253
8254 * gcc.c (modify_target): New variable and struct.
8255 (process_command): Handle MODIFY_TARGET_NAME.
8256 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
8257 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
8258
8259 * c-decl.c (finish_decl): Add else's to avoid referencing
8260 TYPE_DOMAIN of an ERROR_MARK.
8261
8262 Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
8263
8264 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
8265 `reload_in*' insns.
8266
8267 2000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
8268
8269 * config/avr/avr.md (neghi2): Add alternative for input and output
8270 operands in different registers, as in negsi2.
8271 (*negsi2): Remove '*' from the name. Use "movw" if available.
8272
8273 2000-09-19 Jim Wilson <wilson@cygnus.com>
8274
8275 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
8276 HAVE_GAS_HIDDEN macro.
8277
8278 Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
8279
8280 * cpplex.c (lex_line): Drop the EOF token for unknown
8281 directives in assembler.
8282
8283 2000-09-19 David Edelsohn <edelsohn@gnu.org>
8284
8285 * configure.in: Allow enable_threads_flag value of "aix". Define
8286 thread_file as "aix" for AIX 4.3 and above.
8287 * configure: Regenerated.
8288
8289 * gthr-aix.h: New file.
8290
8291 * rs6000/t-aix43: Replace soft-float multilib with pthread.
8292 Remove 403 processor multilib match. Fix rios2 processor multilib
8293 match.
8294
8295 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
8296 to return to appropriate csect.
8297
8298 2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8299
8300 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
8301 functions.
8302 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
8303 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
8304 BUILT_IN_PRINTF.
8305
8306 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
8307 New entries.
8308
8309 * c-common.c (init_function_format_info): Handle __builtin_printf.
8310 Set `check_function_format_ptr'.
8311 (c_common_nodes_and_builtins): Set `puts_ftype' and
8312 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
8313 __builtin_printf and printf.
8314
8315 * tree.c, tree.h (check_function_format_ptr): Declare.
8316
8317 Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
8318
8319 * cppfiles.c (read_include_file): Take no special action for
8320 zero-length files.
8321
8322 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
8323
8324 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
8325 rather than that of branch.
8326 (shorten_branches): Don't increment insn_current_address twice.
8327
8328 Undo most of the Wed Jan 27 23:39:53 1999 patch:
8329 * loop.h (struct induction): Delete members derived, ix and last_use.
8330 (struct loop_ivs): Delete members first_increment_giv and
8331 last_increment_giv.
8332 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
8333 recombine_givs): Delete functions.
8334 (find_and_verify_loops): Don't initialize cont_dominator.
8335 (strength_reduce): Lose code to try to find bivs that can be
8336 expressed as givs of another biv, and to convert biv increments
8337 into givs.
8338 Lose loop_scan_start variable, always use loop->scan_start.
8339 Don't call recombine_givs. Don't handle derived givs.
8340 (record_giv): Don't initialize derived and last_use fields.
8341 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
8342 givs.
8343 * unroll.c (derived_regs): Delete static variable.
8344 (unroll_loop): Don't initialize it.
8345 (copy_loop_body): Lose code to handle derived givs.
8346 (find_splittable_givs): Don't check for givs made from biv
8347 increments.
8348 Don't set derived_regs.
8349
8350 Fix misapplied earlier patch:
8351 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
8352 to fpul.
8353 (floatsisf2): Generate floatsisf_ie by default.
8354 (floatsisf_i4): Conditional on TARGET_SH4.
8355
8356 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
8357 predicate for the expanders.
8358
8359 2000-09-19 Richard Henderson <rth@cygnus.com>
8360
8361 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
8362 in addition to pentium and pentiumpro symbols.
8363 (CPP_CPU_DEFAULT_SPEC): Likewise.
8364
8365 * c-typeck.c (c_expand_asm_operands): Restore the output tree
8366 after expanding.
8367
8368 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
8369 if the tree has side effects.
8370 (warn_if_unused_value): Do not warn about void constructs.
8371
8372 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
8373
8374 * unroll.c (copy_loop_body): Update LABEL_NUSES before
8375 calling invert_jump.
8376
8377 2000-09-18 Geoff Keating <geoffk@cygnus.com>
8378
8379 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
8380 into anything.
8381
8382 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8383
8384 * Makefile.in (c-common.o): Depend on diagnostic.h.
8385
8386 * c-common.c: Include diagnostic.h.
8387 (tfaff): Delete.
8388 (status_warning): New function.
8389 (check_format_info, maybe_read_dollar_number, check_format_types,
8390 finish_dollar_format_checking, check_function_format): Accept a
8391 `status' parameter. All callers changed.
8392
8393 * c-common.h (check_function_format): Accept a `status' parameter.
8394
8395 * c-typeck.c: Update call to `check_function_format'.
8396
8397 2000-09-18 Richard Henderson <rth@cygnus.com>
8398
8399 * c-decl.c (c_expand_body): Call mark_varargs before
8400 expand_function_start.
8401
8402 2000-09-18 Geoff Keating <geoffk@cygnus.com>
8403
8404 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
8405 * config/rs6000/eabi-ci.asm: Likewise.
8406
8407 2000-09-18 Richard Henderson <rth@cygnus.com>
8408
8409 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
8410 for BImode.
8411
8412 2000-09-18 Jim Wilson <wilson@cygnus.com>
8413
8414 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
8415 before passing it to fold_rtx_mult_add.
8416
8417 * unroll.c (final_giv_value): Pass increment through
8418 extend_value_for_giv before passing it to emit_iv_add_mult.
8419
8420 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
8421 paradoxical subreg, then directly substitute the replacement and
8422 return.
8423
8424 Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
8425
8426 * cpp.texi: Update documentation, including some clarifications,
8427 the treatment of various newline combinations, and space between
8428 backslash and newline.
8429
8430 Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
8431
8432 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
8433 Replace ASM_OUTPUT_LABELREF with assemble_name.
8434
8435 Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
8436
8437 * sh.c (addsubcosts): CONST is not cheap.
8438 (find_barrier): For Sh1, take alignment after jumps into account.
8439
8440 2000-09-15 Andrew Haley <aph@redhat.com>
8441
8442 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
8443 remove all SETs of SUBREGs of hard registers.
8444 * function.c (purge_hard_subreg_sets): New function.
8445 (purge_single_hard_subreg_set): New function.
8446 * rtl.h: (purge_hard_subreg_sets): New function.
8447
8448 2000-09-18 Richard Henderson <rth@cygnus.com>
8449
8450 * config/ia64/ia64-protos.h: Update.
8451 * config/ia64/ia64.c (signed_inequality_operator): New.
8452 (ia64_expand_compare): New.
8453 (ia64_register_move_cost): Handle PR_REGS moves.
8454 (ia64_secondary_reload_class): Require a GR when moving to a PR.
8455 (struct reg_write_state): Add written_by_and/or.
8456 (struct reg_flags): Add is_and/or.
8457 (rws_update): Set them.
8458 (rws_access_regno): Test them to allow parallel comparisons.
8459 (rtx_needs_barrier): Recognize parallel comparisons.
8460 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
8461 Call recog_memoized; ignore pred_rel_mutex.
8462 (emit_predicate_relation_info): Don't call find_basic_blocks here.
8463 (ia64_reorg): Do it here instead.
8464 * config/ia64/ia64.h: s/CCmode/BImode/g
8465 (MODES_TIEABLE_P): Don't tie BImode.
8466 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
8467 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
8468 (RTX_COSTS): Make multiply 4 insns.
8469 (MEMORY_MOVE_COST): New.
8470 (PREDICATE_CODES): Update.
8471 * config/ia64/ia64.md: s/CCmode/BImode/g
8472 (movcci, movbi): New.
8473 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
8474 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
8475 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
8476 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
8477 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
8478 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
8479 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
8480 (mulsi, muldi): Use xmpy not xma.
8481 (cmpbi): New.
8482 (movcc, movcc_internal): Remove.
8483 (branch expanders): Use ia64_expand_compare.
8484 (setcc expanders): Likewise.
8485 (cmov insns): Use move_operand and ia64_move_ok.
8486 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
8487 scheduler from moving it past a use.
8488 * config/ia64/build.hacks: Remove.
8489
8490 Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
8491
8492 * cpphash.h (HASHSTEP): Take character rather than pointer
8493 to character.
8494 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
8495
8496 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
8497
8498 * cpplex.c (auto_expand_name_space, trigraph_replace,
8499 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
8500 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
8501 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
8502 KNOWN_DIRECTIVE): Delete.
8503
8504 (handle_newline, check_long_token, skip_escaped_newlines,
8505 unterminated): New functions.
8506 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
8507
8508 (parse_identifier): Was parse_name, new implementation.
8509 (skip_line_comment, skip_block_comment, skip_whitespace,
8510 parse_number, parse_string, trigraph_ok, save_comment,
8511 adjust_column, _cpp_get_line): New implementations.
8512
8513 (lex_token): New function. Lexes a token at a time, looking
8514 forwards. Contains most of the guts of the old lex_line.
8515 (lex_line): New implementation, using lex_token to obtain
8516 individual tokens.
8517 (cpp_scan_buffer): Use the token's line, not the list's line.
8518
8519 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
8520 New implementations.
8521 (do_assert): Don't bother setting the answer's list's line.
8522 (cpp_push_buffer): Initialise new pfile and read_ahead members
8523 of struct cpp_buffer.
8524
8525 * cpplib.h (cppchar_t): New typedef.
8526 (struct cpp_buffer): read_ahead, pfile and col_adjust are
8527 new members.
8528 (struct lexer_state): New structure that determines the state
8529 and behaviour of the lexer.
8530 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
8531 (struct cpp_reader): New member "state". Rename
8532 multiline_string_line and multiline_string_column. Delete
8533 col_adjust, in_lex_line members.
8534 (CPP_BUF_COLUMN): Update.
8535
8536 2000-09-18 Richard Henderson <rth@cygnus.com>
8537
8538 * combine.c (simplify_comparison): Shift a NOT out of a single
8539 bit test.
8540
8541 * combine.c (if_then_else_cond): Canonicalize BImode true to
8542 STORE_FLAG_VALUE.
8543 * explow.c (trunc_int_for_mode): Likewise.
8544
8545 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
8546 the NOT for De Morgan's rule.
8547 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
8548 of a comparison to the reverse comparison.
8549
8550 * combine.c (try_combine): Allow split to create a single insn.
8551
8552 * machmode.def: Add BImode. Add a column for bitsize.
8553 * machmode.h (DEF_MACHMODE): Adjust for extra column.
8554 (GET_MODE_BITSIZE): Use it.
8555 * rtl.c (DEF_MACHMODE): Adjust for extra column.
8556 (mode_bitsize): New.
8557 (mode_mask_array): Use bitsize.
8558 * combine.c (combine_simplify_rtx): Require inner and outer
8559 modes to match on nonzero_bits optimizations.
8560
8561 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
8562
8563 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
8564 its entry in spill_reg_store.
8565 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
8566 * sh.c (reg_no_subreg_operand): New function.
8567 * sh-protos.h (reg_no_subreg_operand): Declare it.
8568 * sh.h (PREDICATE_CODES): Add it.
8569 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
8570 input operand that needs to be in fpul.
8571 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
8572 * sh.c (find_barrier): Take into account that machine_dependent_reorg
8573 might add new insns.
8574
8575 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
8576
8577 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
8578 MAYBE_DEAD.
8579 (sh_expand_epilogue): Take the PIC register into account when
8580 computing the frame size.
8581
8582 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
8583 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
8584 LABEL_REFs with a PIC-safe unspec.
8585
8586 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
8587
8588 * c-common.c (check_format_info): Properly save the argument
8589 number and parameter for $ operand number formats in case width
8590 and precision arguments are also used. Allow printf width and
8591 precision arguments to have operand numbers even if none was
8592 specified for the main format, since this is OK for %*.*m. Only
8593 object to missing $ operand number if the format used requires an
8594 argument.
8595
8596 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
8597
8598 * c-common.c (format_char_info): Add 'W' flag to comment.
8599 (print_char_table, scan_char_table): Use it.
8600 (check_format_info): Use the 'W' flag to determine whether a
8601 format argument is written into.
8602
8603 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
8604
8605 * c-common.c (check_format_types): Reorganise and clean up,
8606 checking earlier for ERROR_MARKs and making cur_type into its
8607 TYPE_MAIN_VARIANT where convenient.
8608
8609 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
8610
8611 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
8612
8613 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
8614
8615 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
8616
8617 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
8618 * i386.c (struct builtin_description): New.
8619 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
8620 (mmx_reg_operand): Declare MODE arg as unused.
8621 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
8622 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
8623 ix86_expand_binop_builtin, ix86_expand_store_builtin,
8624 ix86_init_builtins, ix86_expand_builtin): New functions.
8625 * i386.h (ix86_builtins): New enumeration.
8626 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
8627 * i386.md (attr length_immediate): 0 for mmx/sse types.
8628 (attr prefix_0f): 1 for mmx/sse types.
8629 (setcc_2): Remove "*" so we get gen_setcc_2.
8630 (emms): Account for changed register numbering. Set "memory" attr
8631 to unknown.
8632 (sfence): Set "memory" attr to unknown.
8633
8634 2000-09-18 Andreas Jaeger <aj@suse.de>
8635
8636 * configure.in: Define _GNU_SOURCE only when using the GNU C
8637 Library.
8638 * configure: Regenerated.
8639 * config.in: Regenerated.
8640
8641 2000-09-17 Mark Mitchell <mark@codesourcery.com>
8642
8643 * cppinit.c (cpp_init): Don't use ANSI prototypes.
8644 * flow.c (flow_dump_loop): Likewise.
8645 (flow_loops_dump): Likewise.
8646
8647 * c-typeck.c (c_start_case): Fix typo.
8648
8649 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
8650
8651 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
8652 to int for plain complex which defaults to complex double. Do
8653 warn about defaulting to complex double if pedantic. Warn about
8654 complex integer types if pedantic. Warn about complex types if
8655 pedantic and not in C99 mode.
8656 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
8657 for complex conjugation.
8658
8659 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
8660
8661 * contrib.texi: Update my entry.
8662
8663 Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
8664
8665 * config/avr/avr.md (mcu_enhanced): New attribute.
8666 (mcu_mega): Likewise.
8667 (extendhisi2): Use mcu_enhanced.
8668 (zero_extendhisi2): Likewise.
8669 (call_insn): Use mcu_enhanced and mcu_mega.
8670 (call_value_insn): Likewise.
8671 (*sbrx_branch): Use mcu_mega.
8672 (*sbrx_and_branchsi): Likewise.
8673 (*sbrx_and_branchhi): Likewise.
8674 (*tablejump_lib): Likewise.
8675
8676 Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8677
8678 * alias.c (true_dependence): Allow non-unchanging read to conflict
8679 with unchanging write.
8680
8681 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
8682 (store_constructor): Pass alias_set to it.
8683
8684 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
8685 TYPE_MAIN_VARIANT of ERROR_MARK.
8686 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
8687
8688 * simplify-rtx.c (simplify_unary_operation): Add cases
8689 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
8690
8691 2000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
8692
8693 * expr.h (emit_library_call, emit_library_call_value): Delete
8694 declarations.
8695 * rtl.h (enum libcall_type): New.
8696 (emit_library_call, emit_library_call_value): Change fn_type arg to
8697 be of type enum libcall_type.
8698 * calls.c: Likewise for the function definitions. Several callers
8699 throughout changed to use the new enumeration appropriately.
8700 (emit_library_call_value_1): Likewise. Put back code to make libcall
8701 blocks of equal form, but only use it for the two new higher
8702 enumeration values.
8703
8704 2000-09-16 Mark Mitchell <mark@codesourcery.com>
8705
8706 Convert the C front-end to use function-at-a-time mode.
8707 * c-common.h: Include splay-tree.h.
8708 (C_DECLARED_LABEL_FLAG): New macro.
8709 (struct language_function): Add x_scope_stmt_stack and
8710 x_function_name_declared_p.
8711 (RECHAIN_STMTS): Move definition.
8712 (lang_statment_code_p): Likewise.
8713 (lang_expand_stmt): Likewise.
8714 (lang_expand_decl_stmt): New variable.
8715 (lang_expand_function_end): Likewise.
8716 (current_scope_stmt_stack): New function.
8717 (add_decl_stmt): Likewise.
8718 (add_scope_stmt): Likewise.
8719 (mark_stmt_tree): Likewise.
8720 (struct c_lang_decl): New structure.
8721 (DECL_SAVED_TREE): Define.
8722 (c_mark_lang_decl): New function.
8723 (c_expand_start_cond): Change prototype.
8724 (c_finish_then): New function.
8725 (c_finish_else): Likewise.
8726 (current_function_name_declared): Remove.
8727 (set_current_function_name_declared): Likewise.
8728 (mark_c_language_function): Declare.
8729 (case_compare): Likewise.
8730 (c_add_case_label): Likewise.
8731 (c_expand_expr): Likewise.
8732 (c_safe_from_p): Likewise.
8733 * c-common.c (lang_expand_function_end): New variable.
8734 (struct if_elt): Add if_stmt.
8735 (c_expand_start_cond): Add the if-statement to the statement-tree,
8736 rather than generating RTL.
8737 (c_finish_then): New function.
8738 (c_expand_start_else): Don't generate RTL.
8739 (c_finish_else): New function.
8740 (c_expand_expr_stmt): Don't generate RTL.
8741 (statement_code_p): Add SCOPE_STMT.
8742 (case_compare): New function.
8743 (c_add_case_label): Likewise.
8744 (mark_stmt_tree): Likewise.
8745 (c_mark_lang_decl): Likewise.
8746 (mark_c_language_function): Likewise.
8747 (c_expand_expr): Likewise.
8748 (c_safe_from_p): Likewise.
8749 * c-decl.c (c_stmt_tree): New variable
8750 (c_scope_stmt_stack): Likewise.
8751 (c_function_name_declared_p): Likewise.
8752 (lang_expand_expr_stmt): Remove.
8753 (poplevel): Don't call output_inline_function for nested
8754 functions.
8755 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
8756 `extern' function.
8757 (redeclaration_error_message): Change means of computing whether
8758 or not a function is nested.
8759 (lookup_label): Don't call label_rtx.
8760 (init_decl_processing): Add more GC roots.
8761 (start_decl): Add DECL_STMTs to the statement-tree, rather than
8762 calling rest_of_decl_compilation.
8763 (finish_decl): Don't call expand_decl.
8764 (store_parm_decls): Begin the statement-tree, but don't generate
8765 RTL.
8766 (finish_function): Tie off the statement-tree. Call c_expand_body
8767 if appropriate.
8768 (c_expand_body): New function.
8769 (push_c_function_context): Save more information.
8770 (pop_c_function_contxt): Likewise.
8771 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
8772 (lang_mark_tree): Mark it.
8773 (current_stmt_tree): Adjust.
8774 (current_scope_stmt_stack): New function.
8775 (do_case): Remove.
8776 (set_current_name_declared): Likewise.
8777 (c_begin_compound_stmt): Define.
8778 (c_expand_decl_stmt): Likewise.
8779 * c-lang.c: Include rtl.h and expr.h.
8780 (lang_init): Set more language-specific hooks.
8781 * c-lex.c: Include expr.h.
8782 * c-parse.in: Changes throughout to add statements to the
8783 statement-tree, rather than generating RTL after every statement.
8784 * c-semantics.c (lang_expand_decl_stmt): Define.
8785 (add_decl_stmt): New function.
8786 (add_scope_stmt): Likewise.
8787 (finish_stmt_tree): Tweak.
8788 (genrtl_expr_stmt): Likewise.
8789 (genrtl_decl_stmt): Handle local labels, and call
8790 lang_expand_decl_stmt if required.
8791 (genrtl_for_stmt): Fix line-number handling.
8792 (genrtl_case_label): Handle cleanups.
8793 (genrtl_asm_stmt): Don't call combine_strings.
8794 (genrtl_compound_stmt): Simplify.
8795 (expand_stmt): Handle SCOPE_STMTs.
8796 * c-tree.h (struct lang_decl): New structure.
8797 (C_DECLARED_LABEL_FLAG): Remove.
8798 (c_begin_compound_stmt): Declare.
8799 (c_expand_decl_stmt): Likewise.
8800 (c_expand_start_case): Rename to c_start_case.
8801 (c_finish_case): New function.
8802 * c-typeck.c (start_init): Tweak setting of
8803 constructor_incremental.
8804 (c_expand_asm_operands): Tweak error-handling. Add to the
8805 statement-tree.
8806 (c_expand_return): Add to the statement-tree.
8807 (c_expand_start_case): Rename to ...
8808 (c_start_case): ... this.
8809 (struct c_switch): New type.
8810 (switch_stack): New variable.
8811 (do_case): Simplify.
8812 (c_finish_case): New function.
8813 * dependence.c: Include expr.h.
8814 (enum dependence_type): Change spelling of enumerals.
8815 (check_node_dependence): Adjust.
8816 * expr.h (lang_safe_from_p): Declare.
8817 (safe_from_p): Likewise.
8818 * expr.c (lang_safe_from_p): New variable.
8819 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
8820 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
8821 * toplev.c (rest_of_decl_compilation): Robustify.
8822 * tree.c (contains_placeholder_p): Likewise.
8823 * Makefile.in: Update dependencies.
8824 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
8825 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
8826 (objc_expand_function_end): New function.
8827 (finish_method_def): Use it.
8828 (init_objc): Initialize more language-specific hooks.
8829 * objc/Make-lang.in: Update dependencies.
8830
8831 2000-09-16 Geoffrey Keating <geoffk@cygnus.com>
8832
8833 * configure.in: Define macros that affect features before
8834 testing for features. Don't define _XOPEN_SOURCE.
8835 * configure: Regenerated.
8836 * config.in: Regenerated.
8837
8838 Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
8839
8840 * rtlanal.c (rtx_varies_p): Volatile asms vary.
8841 (rtx_unstable_p): Restructure code. Volatile asms
8842 are unstable.
8843
8844 Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8845
8846 * function.h (no_debugging_symbols): New field.
8847 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
8848 Initialize no_debugging_symbols.
8849 (output_inline_function): Save and restore write_symbols and set from
8850 no_debugging_symbols.
8851 * toplev.c (rest_of_compilation): Call save_for_inline.
8852 * tree.h: Update comment.
8853
8854 * stor-layout.c (place_field): Don't do anything if field or
8855 its type are ERROR_MARK.
8856
8857 Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
8858
8859 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
8860 (read_include_file): Ensure inc->mmaped is initialized.
8861
8862 2000-09-16 Richard Henderson <rth@cygnus.com>
8863
8864 * cppiles.c (purge_cache): Use PTR not caddr_t.
8865
8866 2000-09-16 Hans-Peter Nilsson <hp@axis.com>
8867
8868 * gcc.c: In description for %{<S}, say the option removed is -S.
8869 * invoke.texi (Spec Files): Ditto.
8870
8871 2000-09-16 Andreas Jaeger <aj@suse.de>
8872
8873 * configure.in: Always define _GNU_SOURCE to make interfaces
8874 visible that were hidden by only defining _GNU_SOURCE.
8875 * configure: Regenerated.
8876
8877 Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
8878
8879 * cpplex.c (push_macro_context): Set an argument's level after
8880 calling parse_args. We could loop infinitely otherwise.
8881
8882 2000-09-15 Tom Tromey <tromey@cygnus.com>
8883
8884 * configure, config.in: Rebuilt.
8885 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
8886
8887 2000-09-15 Greg McGary <greg@mcgary.org>
8888
8889 * cppmacro.c (check_trad_stringification): Check token
8890 text pointers against limit before dereferencing.
8891
8892 2000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
8893
8894 * c-common.c (format_wanted_type): New structure.
8895 (check_format_types): New function.
8896 (check_format_info): Pass all checking of types of format
8897 arguments, including width and precision arguments, to this new
8898 function.
8899
8900 2000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8901
8902 * BUGS: Remove file.
8903
8904 2000-09-15 Jakub Jelinek <jakub@redhat.com>
8905
8906 * config/alpha/alpha.c (override_options): ev6 cache latencies
8907 from Richard Henderson. Don't allow -mmemory-latency=L0.
8908
8909 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
8910 (TARGET_OPTIONS): Add tune=.
8911 (alpha_tune_string): Declare.
8912 * config/alpha/alpha.c (override_options): Add cpu_table.
8913 Use alpha_cpu_string first to set both alpha_cpu and target_flags
8914 and then alpha_tune_string to set alpha_cpu only.
8915 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
8916 * config/alpha/elf.h (ASM_FILE_START): Likewise.
8917 * config/alpha/osf.h (ASM_FILE_START): Likewise.
8918 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
8919
8920 Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
8921
8922 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
8923 Remove.
8924 (ix86_comparison_operator, ix86_cc_mode): Declare
8925 * i386.h (CCGC, CCGCO): New modes.
8926 (SELECT_CC_MODE): Move offline to ....
8927 * i386.c (ix86_cc_mode): .... here; use new modes.
8928 (ix86_comparison_operator): New.
8929 (fcmov_comparison_operator): Ensure proper mode.
8930 (put_condition_mode): More sanity checking.
8931 (ix86_match_ccmode): Handle new modes.
8932 (ix86_expand_fp_compare): GEU requires CCmode.
8933 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
8934 doing it by hand.
8935 * i386.md (cmp?i_ccz_1): Remove
8936 (cmp?i_ccno_1): Use ix86_match_ccmode.
8937 (cmp?i_minus_1): New.
8938 (cmpsi_1): New expander.
8939 (cmpqi_ext_1): Use match_ccmode
8940 (cmpqi_ext_3): New expander.
8941 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
8942 (cmpqi_ext_4): Use match_ccmode.
8943 (add?i_?): Use match_ccmode.
8944 (add?i_6): New.
8945 (test?i_ccz_1): Remove
8946 (test?i_1): New.
8947 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
8948 (testqi_ext_0): Use ix86_match_ccmode.
8949 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
8950 (xorqi_cc_ext_1): New expander.
8951 (shift patterns): Use CCGOCmode for all shifts except for sar.
8952 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
8953 (setcc_3, jcc_3, miv?icc_c): Remove.
8954
8955 2000-09-15 Will Cohen <wcohen@redhat.com>
8956
8957 * dwarf2out.c (add_const_value_attribute): Changed array into a
8958 xmalloced object, so it exists after function exit.
8959 (free_AT): Added case for dw_val_class_float to free allocated
8960 memory.
8961
8962 2000-09-15 Kazu Hirata <kazu@hxi.com>
8963
8964 * config/i386/i386.md: Fix a comment typo.
8965 * gcc.c: Fix formatting.
8966
8967 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
8968
8969 * optabs.c (emit_libcall_block): If target is a user variable,
8970 copy to a temporary first.
8971 * expr.c (convert_move): When generating a libcall, make a libcall
8972 block.
8973 * calls.c (emit_library_call_value_1): Don't create a libcall
8974 sequence here; our caller will in most cases do it.
8975
8976 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
8977 MACH into FPUL.
8978 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
8979 * sh.md (reload_outsf): Generate recognizable patterns for
8980 TARGET_SH3E.
8981 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
8982 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
8983 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
8984 truncdfsf2_i4): Change not to use explicit references to fpul.
8985 (floatsisf2_ie): Remove USE of fpscr.
8986 (floatsisf2): Change default expansion to match this.
8987 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
8988 unused patterns.
8989
8990 2000-09-15 Richard Henderson <rth@cygnus.com>
8991
8992 * expmed.c (store_bit_field): Consider naturally aligned
8993 memory for direct reference.
8994
8995 2000-09-15 Richard Henderson <rth@cygnus.com>
8996
8997 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
8998 AND addresses into alias set 0.
8999 (alpha_expand_unaligned_store): Likewise.
9000 (alpha_expand_unaligned_load_words): Likewise.
9001 (alpha_expand_unaligned_store_words): Likewise.
9002
9003 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
9004
9005 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
9006 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
9007 is defined.
9008 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
9009 rsize of UNITS_PER_WORD.
9010
9011 Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
9012
9013 * cpplex.c (ON_REST_ARG): Correct the test.
9014 (maybe_paste_with_next): Duplicate a token that fail pasting,
9015 and clear its PASTE_LEFT flag, so that nested pasting attempts
9016 do not occur.
9017
9018 2000-09-14 Richard Henderson <rth@cygnus.com>
9019
9020 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
9021 * cse.c (rtx_cost): Likewise.
9022 * optabls.c (expand_binop): Likewise.
9023 (expand_twoval_binop, prepare_cmp_insn): Likewise.
9024 * regclass.c (copy_cost): Likewise.
9025 * reload1.c (reload_cse_move2add): Likewise.
9026
9027 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
9028
9029 * c-parse.in (reswords): Add _Complex.
9030
9031 2000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9032
9033 * gcc.1: Delete documentation for -undef preprocessor option.
9034
9035 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
9036
9037 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
9038 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
9039 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
9040 Remove undefine before config/elfos.h.
9041 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
9042
9043 2000-09-14 Kazu Hirata <kazu@hxi.com>
9044
9045 * invoke.texi (H8/300 Options): Add -ms2600.
9046 * config/h8300.c (h8300_init_once): Output an error when -ms2600
9047 is used without -ms.
9048 * config/h8300.h (TARGET_MAC): New.
9049 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
9050 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
9051 machine other than H8/S2600.
9052 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
9053 of the H8/S2000.
9054
9055 2000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
9056
9057 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
9058 pseudos that refer to the original pseudos, not only to their
9059 equivalent memory locations.
9060
9061 Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9062
9063 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
9064 when making new MEM.
9065
9066 * Makefile.in (LN): Remove duplicate definition.
9067
9068 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
9069
9070 From Joern Rennecke:
9071 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
9072 on an insn and function_invariant_p returns nonzero for the source,
9073 add a REG_EQUAL note.
9074
9075 Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
9076
9077 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
9078 conflict with frame_pointer_rtx.
9079
9080 2000-09-13 Kazu Hirata <kazu@hxi.com>
9081
9082 * loop.c: Fix formatting.
9083 * loop.h: Likewise.
9084
9085 2000-09-13 Richard Henderson <rth@cygnus.com>
9086
9087 * config/ia64/ia64.md (divsf3): New.
9088 (divsf3_internal_lat, divsf3_internal_thr): New.
9089 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
9090 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
9091 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
9092 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
9093 (nmadddf4_alts, nmadddf4_trunc): New.
9094 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
9095 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
9096 (multf3_truncsf_alts, multf3_truncdf_alts): New.
9097 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
9098 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
9099 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
9100 (nmaddtf4_truncdf_alts): New.
9101 (recip_approx): Don't predicate.
9102
9103 2000-09-13 Richard Henderson <rth@cygnus.com>
9104
9105 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
9106
9107 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9108
9109 * flags.h (flag_dump_rtl_in_asm): Declare.
9110 * toplev.c (flag_dump_rtl_in_asm): Define.
9111 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
9112 if -dP is specified.
9113 * rtl.h (print_rtx_head): Declare.
9114 * print-rtl.c (print_rtx_head): Define.
9115 (print_rtx): Print the string pointed to by print_rtx_head
9116 at beginning of each dump line.
9117 (print_rtl): Likewise.
9118 (print_rtl_single): Likewise.
9119 * final.c (final_scan_insn): Dump the insn in the assembly
9120 file for debugging.
9121 * gcc.1: Document -dP option.
9122 * invoke.texi (Debugging Options): Likewise.
9123
9124 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9125
9126 * md.texi (Machine Constraints): Document the 68HC11 constraints.
9127 * install.texi (Configurations): Document the 68HC11&68HC12 port.
9128 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
9129
9130 Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
9131
9132 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
9133 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
9134 (*clrstrqi): Likewise.
9135 (xorhi3,xorsi3,absqi2): Likewise.
9136 (one_cmplhi2,one_cmplsi2): Likewise.
9137 (addsi3): Two stupid constraint alternatives removed.
9138 (extendhisi2): Use `movw' for enhanced avr cores.
9139 (zero_extendhisi2): Likewise.
9140
9141 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
9142
9143 * alias.c (find_base_term): Use frame_pointer_rtx
9144 when handling an ADDRESSOF.
9145
9146 * cse.c (canon_hash): Handle USE of BLKmode memory.
9147 (cse_insn): Outgoing arguments for a libcall don't
9148 affect any recorded expressions.
9149
9150 2000-09-12 Tom Tromey <tromey@cygnus.com>
9151
9152 * configure, config.in: Rebuilt.
9153 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
9154
9155 2000-09-12 Jakub Jelinek <jakub@redhat.com>
9156
9157 * c-lex.c (lex_string): Use charwidth to compute bytemask.
9158 * expr.c (expand_expr): Don't optimize constant array references
9159 initialized with wide string constants.
9160
9161 2000-09-13 Michael Hayes <mhayes@cygnus.com>
9162
9163 * loop.c (note_set_pseudo_multiple_uses): Correct.
9164
9165 2000-09-12 Jim Wilson <wilson@cygnus.com>
9166
9167 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
9168 else block, and X has side-effects, then fail.
9169
9170 2000-09-12 Greg McGary <greg@mcgary.org>
9171
9172 * config/mips/mips-protos.h
9173 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
9174 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
9175 (PREDICATE_CODES): Add "trap_cmp_op".
9176 * config/mips/mips.c
9177 (trap_cmp_op, mips_gen_conditional_trap): New functions.
9178 * config/mips/mips.md (trap, conditional_trap): New patterns.
9179
9180 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
9181
9182 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
9183 pointer.
9184
9185 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9186
9187 * builtins.c (built_in_decls): New array.
9188 (expand_builtin_fputs): New function.
9189 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
9190
9191 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
9192
9193 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
9194
9195 * tree.h (built_in_decls): New array.
9196
9197 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
9198
9199 * convex.md: Use "+" instead of "=" for outputs wrapped in a
9200 STRICT_LOW_PART.
9201 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
9202
9203 2000-09-12 Kazu Hirata <kazu@hxi.com>
9204
9205 * haifa-sched.c: Fix formatting.
9206
9207 * genattrtab.c: Fix formatting.
9208
9209 * unroll.c: Fix formatting.
9210
9211 2000-09-12 Bruce Korb <bkorb@gnu.org>
9212
9213 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
9214 remove obsolete code
9215 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
9216 * fixinc/fixincl.tpl: make non-exported arrays static scope
9217 * fixinc/fixincl.x: regenerate
9218 * fixinc/fixlib.h: Use PARAMS, not _P_
9219 * fixinc/fixtests.c: make a type for the test proc & use it
9220 * fixinc/server.h: Use PARAMS, not _P_
9221
9222 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9223
9224 * c-typeck.c (process_init_element): Avoid union init warnings on
9225 floating point zero. Don't crash on unions containing structs.
9226
9227 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
9228
9229 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
9230 general_movsrc_operand, and remove CONST_INT from
9231 general_movdst_operand.
9232
9233 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
9234
9235 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
9236 if a reference to non-fixed hardreg is seen. Otherwise, count hard
9237 regs with a higher cost.
9238 (preferrable): Deal with cases where either cost or regcost is
9239 MAX_COST.
9240 (cse_insn): Use MAX_COST rather than 10000. Always initialize
9241 regcost values.
9242 (COSTS_N_INSNS): Move definition...
9243 * rtl.h: ...here.
9244 (MAX_COST): New macro.
9245 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
9246 constant.
9247
9248 2000-09-11 Mark Mitchell <mark@codesourcery.com>
9249
9250 * c-common.h (genrtl_clear_out_block): Remove.
9251 * c-semantics.c (genrtl_clear_out_block): Remove.
9252 (genrtl_while_stmt): Don't call it.
9253 (genrtl_for_stmt): Likewise.
9254
9255 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
9256
9257 * cppfiles.c: Move all default-#defines to top of file.
9258 (open_include_file): Replace by lookup_include_file.
9259 (read_with_read, read_file): Merged into read_include_file.
9260 (stack_include_file, purge_cache): New functions.
9261 (close_cached_fd): Delete.
9262 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
9263 Cache the in-memory buffer, not the file descriptor.
9264
9265 * cpphash.h (struct include_file): Add buffer, st, refcnt,
9266 mapped fields.
9267 (xcnew): New utility macro.
9268 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
9269 * cpplib.h (struct cpp_buffer): Remove mapped field.
9270
9271 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
9272
9273 * cpplex.c (parse_string): Accept backslash space newline as a
9274 line continuation.
9275 (lex_line): Likewise.
9276 (_cpp_get_token): Remove hard limit on macro nesting.
9277
9278 2000-09-12 Philipp Thomas <pthomas@suse.de>
9279
9280 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
9281 * configure: Rebuilt.
9282
9283 2000-09-13 Michael Hayes <mhayes@cygnus.com>
9284
9285 * flow.c (split_block): Fix update of registers live at
9286 end of split block.
9287
9288 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
9289
9290 * i386.md (add?i_3, add?i_5): New.
9291 (add?i_4): Rename from add?i_3; Fix compare pattern.
9292 (sub?i_3, xor?i_3, ior?i_3): New.
9293
9294 * genrecog.c (write_tree): Output code to clear insn_extract cache.
9295 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
9296 instead of extract_insn and extract_constrain_insn_cache instead of
9297 extract_insn and constrain_operands.
9298 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
9299 New functions.
9300 (extract_insn): Clear which_alternative.
9301 (constrain_operands): Set which_alternative to -1 when failed.
9302 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
9303 Declare.
9304
9305 2000-09-11 Matthew Hiller <hiller@redhat.com>
9306
9307 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
9308 on operand 0 to '+'.
9309 (movstricthi): Likewise.
9310
9311 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9312
9313 * loop.h (LOOP_IVS): New macro.
9314 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
9315 (struct loop_ivs): New.
9316 (struct loop_info): Add ivs field.
9317 (reg_iv_type, reg_iv_info): Delete prototype.
9318 (reg_biv_class, loop_iv_list): Likewise.
9319 * loop.c (record_biv, find_life_end): Pass loop argument.
9320 (reg_iv_type): Remove global array and use
9321 field in loop_regs structure within loop_ivs structure.
9322 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
9323 (first_increment_giv, last_increment_giv): Use entry in
9324 loop_ivs structure.
9325 (record_initial): Pass ivs pointer.
9326 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
9327
9328 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9329
9330 * loop.h (LOOP_REGS): New macro.
9331 (struct loop_regs): New.
9332 (struct loop_info): Add regs field.
9333 * loop.c (set_in_loop): Remove global array and store
9334 in loop_regs structure as part of loop_info structure.
9335 (n_times_set, may_not_optimize): Likewise.
9336 (reg_single_usage, moved_once): Likewise.
9337 (count_one_set): Add regs argument.
9338 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
9339 (set_pseudo_multiple_uses): Pass regs pointer.
9340
9341 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9342
9343 * unroll.c (iteration_info): Subsume into loop_iterations.
9344 * loop.h (loop_info): New field iv.
9345
9346 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9347
9348 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
9349 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
9350 (flow_loops_update): New prototype.
9351 (flow_loops_find): Add flags to prototype.
9352 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
9353 * flow.c (flow_loop_pre_header_scan): New.
9354 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
9355 (flow_loop_free): Free pre-header root and trace and exit dominators.
9356 (flow_loops_find): New argument flags.
9357 (flow_loops_update): New function.
9358 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
9359
9360 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9361
9362 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
9363 * flow.c (split_block, update_bb_for_insn): New functions.
9364
9365 2000-09-11 Richard Henderson <rth@cygnus.com>
9366
9367 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
9368
9369 2000-09-11 Richard Henderson <rth@cygnus.com>
9370
9371 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
9372 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
9373 (ia64_override_options): Prevent optimizing division for both
9374 latency and throughput.
9375 (rtx_needs_barrier): Handle frcpa.
9376 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
9377 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
9378 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
9379 (TARGET_SWITCHES): Add -minline-divide-min-latency and
9380 -minline-divide-max-throughput.
9381 (PREDICATE_CODES): Update.
9382 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
9383 (zero_extendsidi2): Likewise. Fix typo in f case insn.
9384 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
9385 (extendsftf2): Likewise.
9386 (extenddftf2): Likewise.
9387 (fix_trunctfdi2_alts): New.
9388 (fixuns_trunctfdi2_alts): New.
9389 (madd*4): Rename from madd*3.
9390 (divsi3, modsi3, udivsi3, umodsi3): New.
9391 (divsi3_internal): New.
9392 (divdi3, moddi3, udivdi3, umoddi3): New.
9393 (divdi3_internal_lat, divdi3_internal_thr): New.
9394 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
9395 (recip_approx): New.
9396
9397 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
9398
9399 * print-rtl.c (debug_call_placeholder_verbose): New variable.
9400 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
9401 set.
9402 * integrate.c (copy_rtx_and_substitute): Don't share
9403 LEAF_REG_REMAPpable registers with the inlined function. Don't
9404 share the function value with calling sequences.
9405
9406 2000-09-11 Jakub Jelinek <jakub@redhat.com>
9407
9408 * c-decl.c (do_case): Fix a typo.
9409
9410 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
9411 to a if the comparison is floating mode and not -ffast-math.
9412 * simplify-rtx.c (simplify_ternary_operation): Likewise.
9413
9414 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
9415
9416 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
9417 gen_ic_invalidate_line.
9418
9419 2000-09-11 Philip Blundell <pb@futuretv.com>
9420
9421 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
9422
9423 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
9424
9425 * install.texi (LANGUAGES): Update to include new languages.
9426 * INSTALL: Rebuilt.
9427
9428 2000-09-11 DJ Delorie <dj@redhat.com>
9429
9430 * gcc.c (main): Don't warn about unused -B prefixes
9431 (unused_prefix_warnings): remove
9432
9433 2000-09-11 Kazu Hirata <kazu@hxi.com>
9434
9435 * final.c: Fix formatting.
9436
9437 * integrate.c: Fix formatting.
9438
9439 2000-09-11 Geoff Keating <geoffk@cygnus.com>
9440
9441 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
9442
9443 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
9444
9445 * reload.c (regno_clobbered_p): Fix thinko in previous change.
9446
9447 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9448
9449 * gcc.1: Document 68hc11 specific options.
9450
9451 2000-09-10 Geoff Keating <geoffk@cygnus.com>
9452
9453 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
9454 (TARGET_LONG_DOUBLE_128): Define.
9455 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
9456 (LONG_DOUBLE_TYPE_SIZE): Redefine.
9457 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9458 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
9459 of __LONG_DOUBLE_128__.
9460 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
9461 passed.
9462 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
9463 (CPP_SYSV_DEFAULT_SPEC): Define.
9464 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
9465 (INIT_TARGET_OPTABS): Define.
9466
9467 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
9468 (RS6000_UITRUNC): Likewise.
9469 (INIT_TARGET_OPTABS): New macro.
9470 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
9471 (trunc_defined): Delete.
9472 (output_prolog): Don't output .extern definitions for fp->int
9473 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
9474 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
9475 (trunc_defined): Delete.
9476 (RS6000_ITRUNC): Moved to aix.h.
9477 (RS6000_UITRUNC): Likewise.
9478 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
9479 only emit a libcall.
9480 (fixuns_truncdfsi2): Delete.
9481 (trunc_call): Delete.
9482 (trunc_call_rtl): Delete.
9483
9484 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
9485
9486 * varasm.c (make_decl_rtl): Restore leading star on
9487 DECL_ASSEMBLER_NAME set for decls with an asmspec.
9488
9489 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
9490
9491 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
9492 won't give a spurious error for '#pragma pack()'. Simplify
9493 control flow for readability. 'reset' action is not necessary.
9494
9495 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
9496
9497 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
9498 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
9499 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
9500 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
9501
9502 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
9503 profile.c, sdbout.c, tradcif.y, tree.c:
9504 Include defaults.h if not already included.
9505 Don't define the above macros.
9506
9507 * Makefile.in: Update dependencies.
9508
9509 2000-09-10 Mark Mitchell <mark@codesourcery.com>
9510
9511 * c-common.h (add_stmt): Change prototype.
9512 (RECHAIN_STMTS): New macro.
9513 (CASE_LABEL_DECL): Likewise.
9514 (genrtl_case_label): Change prototype.
9515 (c_expand_start_case): Remove prototype.
9516 (build_case_label): Change prototype.
9517 (decl_constant_value): Declare.
9518 * c-common.c (check_case_value): Handle C++'s extensions to C
9519 semantics.
9520 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
9521 field.
9522 * c-parse.in (stmt): Adjust handling of return statements and case
9523 laels.
9524 * c-semantics.c (add_stmt): Return the new statement.
9525 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
9526 returned expression. Directly generate RTL, rather than calling
9527 c_expand_return.
9528 (genrtl_switch_stmt): Don't call c_expand_start_case.
9529 (build_case_label): Take the LABEL_DECL as input, too.
9530 (genrtl_case_label): Just call add_case_node.
9531 (expand_stmt): Adjust calls to genrtl_return_stmt and
9532 genrtl_case_label.
9533 * c-tree.h (c_expand_start_case): Declare.
9534 * c-typeck.c (decl_constant_value): Give it external linkage.
9535 (c_expand_return): Don't call expand_return or expand_null_return;
9536 use genrtl_return_stmt instead.
9537 * stmt.c (struct nesting): Remove num_ranges field.
9538 (add_case_node): Give it external linkage.
9539 (expand_start_case): Don't set num_ranges.
9540 (expand_start_case_dummy): Don't clear it.
9541 (pushcase): Rely on add_case_node to handle `default' labels.
9542 (add_case_node): Handle `default' labels.
9543 * tree.c (tree_int_cst_compare): New function.
9544 * tree.h (tree_int_cst_compare): Declare.
9545 (add_case_node): Likewise.
9546
9547 2000-09-10 Richard Henderson <rth@cygnus.com>
9548
9549 * c-parse.in: Revert last change.
9550 (init_reswords): Do not enter disabled keywords into the ridpointers
9551 table, modulo objc weirdness.
9552 (_yylex): Return the canonical spelling for a keyword.
9553
9554 2000-09-10 Philip Blundell <philb@gnu.org>
9555
9556 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
9557 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
9558
9559 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
9560
9561 * alias.c (find_base_term): Handle ADDRESSOF.
9562 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
9563
9564 2000-09-10 Denis Chertykov <denisc@overta.ru>
9565
9566 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
9567 outputting templates with many lines.
9568
9569 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9570
9571 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
9572 to decide whether 64-bit support must be generated.
9573
9574 2000-09-10 Richard Henderson <rth@cygnus.com>
9575
9576 * c-parse.in (asm patterns): Fix volatile check.
9577
9578 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9579
9580 * cppmacro.c (check_trad_stringification): New function.
9581 (save_expansion): If -Wtraditional, warn about stringification of
9582 macro arguments.
9583
9584 2000-09-11 Michael Hayes <mhayes@cygnus.com>
9585
9586 * loop.h (struct loop_mem_info): Move from loop.c
9587 (struct loop_info): Add fields store_mems, mems, mems_idx,
9588 mems_allocated, unknown_address_altered,
9589 unknown_constant_address_altered, num_mem_sets, and
9590 first_loop_store_insn.
9591
9592 * loop.c (loop_store_mems): Replace with field in loop_info struct.
9593 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
9594 (unknown_address_altered, unknown_constant_address_altered): Likewise.
9595 (num_mem_sets): Likewise.
9596 (replace_loop_mems, replace_loop_regs): New.
9597 (struct loop_replace_args): New.
9598 (load_mems): Use replace_loop_mems.
9599 (try_copy_prop): Use replace_loop_regs.
9600 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
9601
9602 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9603
9604 * configure.in: Recognize m6811-elf and m6812-elf.
9605 * configure: Regenerate.
9606
9607 2000-09-09 Geoff Keating <geoffk@cygnus.com>
9608
9609 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
9610 to operand_subword.
9611
9612 2000-09-10 Michael Hayes <mhayes@cygnus.com>
9613
9614 * loop.c (struct movables): New.
9615 (num_movables): Move into struct movables.
9616 (the_movables): Change type to struct movables.
9617 (ignore_some_movables): Change struct movable arg to struct movables.
9618 (force_movables, combine_movables, regs_match_p): Likewise.
9619 (rtx_equal_for_loop_p, move_movables): Likewise.
9620 (scan_loop): Change movables to be of type struct movables.
9621 Replace last_movable with field in movables structure.
9622
9623 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
9624
9625 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
9626 (init_pragma): Avoid warning if pfile happens to be unused.
9627 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
9628 define init_pragma to nothing. Always prototype
9629 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
9630
9631 * c-lex.c (process_directive): Always call dispatch_pragma.
9632 Initialize entering_c_header to 0.
9633
9634 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9635
9636 * config/m68hc11/m68hc11.md: New file, machine description for
9637 68HC11 & 68HC12.
9638 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
9639 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
9640 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
9641 * config/m68hc11/m68hc11-protos.h: New file.
9642 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
9643 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
9644 * config/m68hc11/xm-m68hc11.h: New file, target defs.
9645 * config/m68hc11/larith.asm: New file, libgcc routines.
9646
9647 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9648
9649 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
9650 (FPBIT_FUNCS): Add _usi_to_sf.
9651 * config/fp-bit.c (usi_to_float): New function.
9652 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
9653 (usi_to_float): Add appropriate #define.
9654
9655 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
9656
9657 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
9658 new functions.
9659 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
9660 * i386.md (attr "type"): Add sse and mmx types.
9661 (attr "memory"): Handle them without a crash.
9662 (movsi_1, movdi_2): Allow MMX regs.
9663 (movdi splits): Don't split moves involving MMX regs.
9664 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
9665 (movv4sf_internal, movv4si_internal, movv8qi_internal,
9666 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
9667 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
9668 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
9669 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
9670 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
9671 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
9672 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
9673 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
9674 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
9675 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
9676 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
9677 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
9678 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
9679 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
9680 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
9681 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
9682 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
9683 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
9684 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
9685 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
9686 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
9687 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
9688 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
9689 mmx_clrdi): New patterns.
9690
9691 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
9692
9693 * arm.c: Don't include tm.h directly.
9694
9695 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
9696
9697 * recog.c (validate_replace_rtx_1): Fix confusion about equality
9698 testing; simplify subregs of constants and nested subregs.
9699
9700 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
9701
9702 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
9703
9704 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
9705
9706 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
9707 VEC_CONCAT.
9708 * rtl.texi (description of USE): Add note about possible pitfalls
9709 with this rtx.
9710 From Richard Henderson:
9711 * reload1.c (choose_reload_regs): Compute need_mode properly.
9712
9713 2000-09-07 Richard Henderson <rth@cygnus.com>
9714
9715 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
9716 (__modsi3, __umodsi3): Likewise.
9717 (__udivsi3): Likewise. Normalize the TFmode values.
9718
9719 2000-09-07 Geoff Keating <geoffk@cygnus.com>
9720
9721 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
9722 with a prototype.
9723 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
9724 warning.
9725
9726 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
9727
9728 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
9729 (cmpeqdi_t): Add output pattern.
9730 (cmpeqdi_t+1): Don't split when not optimizing.
9731 Restore proper splitting operation.
9732
9733 2000-09-07 Richard Henderson <rth@cygnus.com>
9734
9735 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
9736 do not call dispatch_pragma.
9737
9738 2000-09-07 Jim Wilson <wilson@cygnus.com>
9739
9740 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
9741 to CLASS_CANNOT_CHANGE_MODE.
9742 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
9743 mode classes are different.
9744
9745 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
9746
9747 * cpplib.h (struct cpp_options): Add user_label_prefix member,
9748 left out of commit which removed cppulp.c.
9749
9750 2000-09-07 Richard Henderson <rth@cygnus.com>
9751
9752 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
9753 after switch for CASE_DROPS_THROUGH.
9754
9755 2000-09-07 Richard Henderson <rth@cygnus.com>
9756
9757 * loop.c (strength_reduce): Call check_ext_dependant_givs.
9758 Properly extend the biv initial value for the giv.
9759 (record_biv): Zero ext_dependant.
9760 (record_giv): New argument ext_val. Update all callers.
9761 (general_induction_var): Likewise.
9762 (consec_sets_giv): Likewise.
9763 (simplify_giv_expr): Likewise. Fill in ext_val if we find
9764 a sign-extend, zero-extend, or truncate.
9765 (combine_givs_p): Make sure modes are compatible.
9766 (check_ext_dependant_givs): New.
9767 (extend_value_for_giv): New.
9768 * loop.h (struct induction): Add ext_dependant.
9769 * unroll.c (iteration_info): Extend the biv initial value for the giv.
9770 (find_splittable_givs): Likewise.
9771 (final_giv_value): Likewise.
9772
9773 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
9774
9775 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
9776 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
9777 definitions from cpplib.h.
9778 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
9779 already done it.
9780 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
9781 documentation for REGISTER_TARGET_PRAGMAS.
9782
9783 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
9784 default-pragma callback to implement -Wunknown-pragmas if
9785 USE_CPPLIB.
9786 * c-parse.in: Move all includes to top of file.
9787 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
9788 tm_p.h.
9789 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
9790 warning.
9791 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
9792
9793 * arm.h, arm-protos.h, arm.c,
9794 c4x.h, c4x-protos.h, c4x.c,
9795 h8300.h, h8300-protos.h, h8300.c,
9796 i370.h, i370-protos.h, i370.c,
9797 i960.h, i960-protos.h, i960.c,
9798 sh.h, sh-protos.h, sh.c,
9799 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
9800 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
9801
9802 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
9803 multiple include guard.
9804 * i370.md (untyped_call): Use GEN_CALL.
9805 (umodsi3): Remove unused variable.
9806 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
9807 * v850.c (output_move_single, output_move_double): Constify
9808 return value.
9809 (print_operand): Constify a char *.
9810 * v850.h (struct small_memory_info): Constify name member.
9811
9812 2000-09-07 Kazu Hirata <kazu@hxi.com>
9813
9814 * config/h8300.h: Fix comment typos.
9815 * config/h8300/h8300.md: Likewise.
9816 * config/h8300/lib1funcs.asm: Likewise.
9817
9818 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
9819
9820 * Makefile.in: Remove references to cppulp.{c,o}.
9821 * cppinit.c (initialize_builtins, cpp_start_read,
9822 cpp_handle_option): Update to use cpp_options structure.
9823 * cppulp.c: Remove.
9824
9825 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
9826
9827 * c-common.c (time_char_table): Allow %#b and %#h.
9828
9829 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9830
9831 * reorg.c (find_end_label): If the basic block reorder pass moves the
9832 return insn to some other place try to locate it again and put our
9833 end_of_function_label there.
9834 * reorg.c (relax_delay_slots): Check if find_end_label created a
9835 new label that invalidates the current optimazation.
9836
9837 2000-09-07 Catherine Moore <clm@redhat.com>
9838
9839 * unroll.c (unroll_loop): Check for unconditional jumps
9840 to loop continuation. Delete if n_iterations is 1.
9841 (ujump_to_loop_cont): New routine.
9842
9843 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
9844
9845 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
9846 MODE_VECTOR_FLOAT.
9847 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
9848 to handle multiword modes correctly. All callers and the declaration
9849 changed.
9850
9851 2000-09-06 Mark Mitchell <mark@codesourcery.com>
9852
9853 * c-common.h (prep_stmt): Declare.
9854 (lang_expand_stmt): Likewise.
9855 * c-decl.c (lang_expand_stmt): Remove.
9856 * c-semantics.c (lang_expand_stmt): Define.
9857 (prep_stmt): New function.
9858 (expand_stmt): Handle common statement types here.
9859
9860 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
9861
9862 * configure.in (sh-*-linux*): Added.
9863 * configure: Rebuilt.
9864 * config/sh/t-linux: New file.
9865 * config/sh/sh.h (USERMODE_BIT): Define.
9866 (TARGET_USERMODE): Likewise.
9867 (TARGET_SWITCHES): New switches for the bits above.
9868 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
9869 * config/sh/linux.h: New file.
9870 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
9871 underscore on linux.
9872 (L_sdivsi3, L_udivsi3): Define for linux.
9873 (L_ic_invalidate): Define.
9874 * invoke.texi (SH Options): Document -musermode.
9875
9876 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
9877
9878 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
9879 CSE unless generating PIC.
9880
9881 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
9882 the PIC register.
9883
9884 2000-09-06 H.J. Lu (hjl@gnu.org)
9885
9886 * Makefile.in (clean_s1): Depend on stage_b.
9887 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
9888 stage2. They are used for "make compare".
9889
9890 2000-09-06 Mark Mitchell <mark@codesourcery.com>
9891
9892 Move statement-tree facilities from C++ to C front-end.
9893 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
9894 (void_zero_node): New macro.
9895 (struct stmt_tree_s): New type.
9896 (stmt_tree): New typedef.
9897 (struct language_function): New type.
9898 (last_tree): New macro.
9899 (last_expr_type): Likewise.
9900 (walk_tree_fn): New typedef.
9901 (current_stmt_tree): New function.
9902 (begin_stmt_tree): Likewise.
9903 (add_stmt): Likewise.
9904 (finish_stmt_tree): Likewise.
9905 (statement_code_p): Likewise.
9906 (lang_statement_code_p): New variable.
9907 (walk_stmt_tree): New function.
9908 (STMT_IS_FULL_EXPR_P): New macro.
9909 * c-common.c (lang_statement_code_p): New variable.
9910 (c_common_nodes_and_builtins): Initialize void_zero_node.
9911 (statement_code_p): New function.
9912 (walk_stmt_tree): Likewise.
9913 * c-decl.c (language_function): Rename to ...
9914 (c_language_function): ... this. Include language_function.
9915 (push_c_function_context): Adjust accordingly.
9916 (pop_c_function_context): Likewise.
9917 (mark_c_function_context): Likewise.
9918 (current_stmt_tree): Define.
9919 * c-semantics.c (begin_stmt_tree): New function.
9920 (add_stmt): Likewise.
9921 (prune_unused_decls): Likewise.
9922 (finish_stmt_tree): Likewise.
9923
9924 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9925
9926 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
9927
9928 2000-09-06 Kazu Hirata <kazu@hxi.com>
9929
9930 * calls.c: Fix formatting.
9931
9932 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
9933
9934 * config/i386/i386.h (ADDRESS_COST): Fix typo.
9935
9936 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
9937
9938 Integrated preprocessor.
9939
9940 * Makefile.in: Remove all references to c-parse.gperf,
9941 c-gperf.h, and c-parse.h. Remove -d from yacc command line
9942 generating c-parse.c. Update dependencies.
9943 * c-parse.gperf, c-gperf.h: Delete.
9944
9945 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
9946 yy_lim, or yy_get_token. Don't define get_directive_line if
9947 USE_CPPLIB.
9948 * c-common.h: Add multiple include guard. Define RID values
9949 for every keyword in C, C++, and Objective C. Put all the
9950 modifiers first.
9951 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
9952 * c-decl.c (c_decode_option): Handle -lang-objc here.
9953 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
9954 (grokdeclarator): Adjust for new RID scheme.
9955 (extract_interface_info): New stub.
9956 * c-lang.c: Don't declare yy_cur or parse_options.
9957 (lang_init_options): Call cpp_init. Don't call
9958 cpp_options_init.
9959 (lang_init): Don't call check_newline if USE_CPPLIB.
9960
9961 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
9962 Elide lots of unnecessary code if USE_CPPLIB. Delete code
9963 rendered unnecessary by new architecture. Move routines not
9964 shared with C++ to c-parse.in. Maintain a local idea of the
9965 line number. Handle C++ as well as C.
9966 [USE_CPPLIB]: Declare and register callbacks for #ident and
9967 for entering/leaving files.
9968 (init_c_lex, c_lex): Are now the entry points to this file.
9969 (check_newline): Break out directive handling to
9970 process_directive.
9971 (read_ucs, is_extended_char, utf8_extend_token): Moved here
9972 from C++ front end.
9973 (readescape, parse_float): Overhaul.
9974 (lex_number, lex_string, lex_charconst): Break out of c_lex
9975 (n'ee yylex).
9976 (get_fileinfo, update_header_times, dump_one_header,
9977 dump_time_statistics): New and/or moved here from C++.
9978 Support per-file data needed by C++ and per-header timing
9979 statistics (C++ only, at the moment).
9980 * c-lex.h: Update prototypes. Add multiple include guard.
9981 * c-tree.h (struct lang_identifier): Add rid_code field.
9982 (C_IS_RESERVED_WORD, C_RID_CODE): New.
9983
9984 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
9985 reinit_parse_for_function and/or position_after_white_space.
9986 (save_filename, save_lineno): Look ahead before saving.
9987 (label -> identifier ':'): Save file and line before shifting ':'.
9988 (reservedwords): No need to call get_identifier.
9989 (init_parse, finish_parse, yyerror, yylex, yyprint,
9990 make_pointer_declarator): Are now here for C/ObjC.
9991 (rid_to_yy): Conversion table from RID constants to Yacc codes.
9992
9993 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
9994 #pragma registry. Provide dummy implementation of that
9995 interface if !USE_CPPLIB.
9996 * c-pragma.h: Update to match.
9997
9998 * flags.h: Add multiple include guard.
9999 (flag_detailed_statistics): Moved here from C++.
10000 * toplev.c: Define flag_detailed_statistics.
10001
10002 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
10003 #if USE_CPPLIB.
10004 * timevar.def (TV_CPP, TV_LEX): New.
10005 * timevar.h: Add multiple include guard.
10006
10007 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
10008 #if USE_CPPLIB.
10009 * objc/objc-act.c: Don't mention yy_cur or parse_options.
10010 Initialize cpplib properly. Force lineno to 0 after first
10011 call to check_newline. Don't handle -lang-objc here.
10012 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
10013
10014 2000-09-06 David Edelsohn <edelsohn@gnu.org>
10015
10016 * rs6000.md: Correct function unit definitions for cr_logical and
10017 mtjmpr.
10018 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
10019 and use portable method for >=0 and floating point >=. Remove
10020 associated matchers.
10021
10022 2000-09-06 Mark Mitchell <mark@codesourcery.com>
10023
10024 * extend.texi: Mark named return value extension as deprecated.
10025
10026 2000-09-06 Geoff Keating <geoffk@cygnus.com>
10027
10028 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
10029 the result.
10030
10031 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
10032
10033 * toplev.c (display_help): Fix thinko in documentation.
10034
10035 * diagnostic.h (output_buffer::indent_skip): New fields.
10036 (output_indentation): New macro.
10037
10038 * diagnostic.c (output_indent): New function.
10039 (output_set_prefix, clear_diagnostic_info): Use.
10040 (output_emit_prefix): Predict future indentation.
10041
10042 2000-09-06 DJ Delorie <dj@redhat.com>
10043
10044 * Makefile.in (stage_*): add more dependencies to ensure parallel
10045 builds build correctly
10046
10047 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
10048
10049 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
10050 not bootstrap-lean_f.
10051
10052 2000-09-06 Andreas Schwab <schwab@suse.de>
10053
10054 * mklibgcc.in: Emit rule for libgcc-stage-start.
10055 * Makefile.in (stage1-start, stage2-start, stage3-start,
10056 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
10057
10058 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
10059
10060 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
10061 (update_equiv_regs): Likewise, except for the mn10200 kludge.
10062 (combine_regs): Likewise.
10063
10064 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
10065 * cse.c: Include "basic-block.h".
10066 (struct table_elt): New field REGCOST.
10067 (CHEAP_REG): Delete macro.
10068 (COST): Return 0 for REGs.
10069 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
10070 (notreg_cost): Return 0 for appropriate SUBREGs.
10071 (COSTS_N_INSNS): Return N * 2.
10072 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
10073 SUBREGs.
10074 (CHEAPER): Use new function preferrable.
10075 (insert): Initialize REGCOST member.
10076 (find_best_addr): Use approx_reg_cost for estimation of register
10077 usage.
10078 (cse_insn): Likewise.
10079 * loop.c (iv_add_mult_cost): New function.
10080 (add_cost, shift_cost, mult_cost): Delete variables.
10081 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
10082 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
10083 Make code that detects autoinc opportunities slightly less optimistic.
10084 (simplify_giv_expr): If expression contains other reg that is also a
10085 giv, only increment benefit if this is the only use of that reg.
10086 (consec_sets_giv): Take that change into account.
10087 (combine_givs): Slightly more verbose output.
10088
10089 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
10090 not the cost of an equivalent shift.
10091 * sh-protos.h (addsubcosts): Declare.
10092 * sh.c (addsubcosts): New function.
10093 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
10094 (RTX_COSTS): Tweak. Use addsubcosts.
10095 (ADDRESS_COST): Return higher cost for reg+reg addressing.
10096
10097 2000-09-06 Geoff Keating <geoffk@cygnus.com>
10098
10099 * config/rs6000/rs6000.c (validate_condition_mode): New function.
10100 (branch_comparison_operator): Call validate_condition_mode to
10101 abort rather than returning 0.
10102 (branch_positive_comparison_operator): New function.
10103 (scc_comparison_operator): Call validate_condition_mode to abort
10104 rather than returning 0.
10105 (ccr_bit): Call validate_condition_mode. Update for
10106 new branch scheme.
10107 (print_operand): Delete %C modifier. Update %E case
10108 to use EQ bit not SO bit.
10109 (rs6000_reverse_condition): New function.
10110 (rs6000_generate_compare): New function.
10111 (rs6000_emit_sCOND): New function.
10112 (rs6000_emit_cbranch): New function.
10113 (output_cbranch): The length of a long branch insn is
10114 now only 8 bytes. Add validate_condition_mode. Use
10115 rs6000_reverse_condition. Remove cror generation.
10116
10117 * config/rs6000/rs6000.h: Update comments.
10118 (PREDICATE_CODES): Add new predicate. Update codes used
10119 by branch_comparison_operator and scc_comparison_operator.
10120 * config/rs6000/rs6000-protos.h: Add prototypes for
10121 new external functions.
10122 * config/rs6000/rs6000.md: Add new scheduling parameters
10123 for cr_logical instructions. Change length of branch
10124 instructions.
10125 (bCOND patterns): Call rs6000_emit_cbranch.
10126 (sCOND patterns): Call rs6000_emit_sCOND.
10127 (branch patterns): Change lengths to 4.
10128 (cr logical patterns): New.
10129
10130 2000-09-06 Richard Henderson <rth@cygnus.com>
10131
10132 * config/i386/i386.md (call_pop): Fix test for setting
10133 current_function_uses_pic_offset_table.
10134 (call, call_value_pop, call_value): Likewise.
10135
10136 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
10137
10138 * timevar.c (timevar_add): Delete.
10139 (timevar_get): Also count time since the selected timer was
10140 last updated. Do not examine the timevar stack if the
10141 selected timer is standalone.
10142
10143 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10144
10145 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
10146
10147 2000-09-05 Jason Merrill <jason@redhat.com>
10148
10149 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
10150 for 'extern' arrays.
10151
10152 2000-09-05 Richard Henderson <rth@cygnus.com>
10153
10154 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
10155 Eliminate final copy from non-trapping case.
10156 (__divdf3, __divsf3): Likewise.
10157
10158 2000-09-05 Richard Henderson <rth@cygnus.com>
10159
10160 * config/ia64/ia64.md (mulhi3): Fix typo last change.
10161 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
10162
10163 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
10164
10165 * Makefile.in: Restructure bootstrap stages to allow clean
10166 restart after failure.
10167
10168 2000-09-05 Richard Henderson <rth@cygnus.com>
10169
10170 * config/ia64.md (movsi and movdi patterns): Allow moves from
10171 8-bit constants to AR registers.
10172
10173 2000-09-05 Richard Henderson <rth@cygnus.com>
10174
10175 * config/ia64/ia64.md (mulhi3): New.
10176
10177 2000-09-05 Richard Henderson <rth@cygnus.com>
10178
10179 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
10180 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
10181 Optimization Guide, minimum latency alternative.
10182 (__moddi3, __udivdi3, __umoddi3): Likewise.
10183 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
10184
10185 2000-09-05 Bruce Korb <bkorb@gnu.org>
10186
10187 * fixinc/fixincl.c (load_file): always read header files
10188 with sizes that are a multiple of the page size.
10189 & use libiberty's getpagesize for determining that.
10190
10191 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
10192
10193 * gcse.c (hash_string_1): Add prototype.
10194 * cse.c (canon_hash_string): Likewise.
10195
10196 2000-09-04 Craig Newell <CraigN@ieee.org>
10197
10198 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
10199
10200 2000-09-04 Andreas Schwab <schwab@suse.de>
10201
10202 * Makefile.in (STAGESTUFF): Remove libgcc.
10203 (stage1-start, stage2-start, stage3-start): Copy the contents of
10204 the libgcc directory explicitly.
10205 (mostlyclean): Clean libgcc.
10206
10207 2000-09-04 Andrew Haley <aph@redhat.com>
10208
10209 * dwarf2out.c: (stack_adjust_offset): New prototype.
10210
10211 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
10212
10213 * combine.c (make_extraction): Fix rtx_cost comparison to
10214 match the comment.
10215
10216 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
10217
10218 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
10219 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
10220 Add '*' to insn pattern name.
10221
10222 2000-09-04 Jakub Jelinek <jakub@redhat.com>
10223
10224 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
10225 use posn - 1 to index into tokens array.
10226 (maybe_paste_with_next): Adjust caller.
10227
10228 2000-09-03 Geoff Keating <geoffk@cygnus.com>
10229
10230 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
10231
10232 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
10233 (REGNO_REG_CLASS): Use symbolic register
10234 names.
10235
10236 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
10237
10238 * arm.c (final_prescan_insn): If the form of a jump insn isn't
10239 recognized, don't try to conditionally execute it.
10240
10241 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
10242
10243 * config/avr/avr.md ("*tablejump_lib"): New pattern.
10244 (call_value_insn): Right length claculation.
10245 (call_insn): Likewise.
10246
10247 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
10248
10249 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
10250 gas_output_limited_string, gas_output_ascii, output_movqi,
10251 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
10252 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
10253 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
10254 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
10255 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
10256 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
10257 Add "const" as needed to remove warnings.
10258
10259 * config/avr/avr.c (avr_override_options, avr_init_once,
10260 function_prologue, function_epilogue, frame_pointer_required_p,
10261 class_likely_spilled_p, order_regs_for_local_alloc,
10262 avr_address_cost, avr_ret_register): Use K&R style arguments.
10263 (initial_elimination_offset, gas_output_limited_string):
10264 Remove ATTRIBUTE_UNUSED from the used arguments.
10265 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
10266 Use local variables src, dest, base to access operands[].
10267 Rename reg_dest to reg_src if that's what it is.
10268 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
10269 constants to LD_REGS if reg_was_0.
10270 (output_reload_insisf): Change arg 3 to insn length and set it.
10271 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
10272 access to 16-bit I/O register pairs.
10273 (avr_address_cost): Lower cost for the above case.
10274 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
10275 may be clobbered, also for LD_REGS.
10276 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
10277 with a CONST_INT.
10278
10279 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
10280
10281 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
10282 macro to test_hard_reg_class function.
10283 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
10284 for loading immediate constants to LD_REGS.
10285 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
10286
10287
10288 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
10289
10290 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
10291 * config/avr/libgcc.S: Lost part of the previous patch.
10292
10293 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10294
10295 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
10296 object before calling pthread_mutex_init.
10297
10298 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
10299
10300 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
10301 config/sh/crtn.asm: New files.
10302 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
10303 (crt1.o, crti.o, crtn.o): New targets.
10304 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
10305 sh/t-elf.
10306 * configure: Rebuilt.
10307 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
10308 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
10309 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
10310 Undefine for config/elfos.h to redefine.
10311 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
10312
10313 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
10314
10315 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
10316 legitimize_pic_address, output_pic_addr_const): Declare.
10317 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
10318 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
10319 (TARGET_SWITCHES): New switch -mprefergot.
10320 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
10321 (PIC_OFFSET_TABLE_REGNUM): Define.
10322 (GOT_SYMBOL_TABLE): Likewise.
10323 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
10324 (ENCODE_SECTION_INFO): Define.
10325 (FINALIZE_PIC): New macros.
10326 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
10327 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
10328 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
10329 (prepare_move_operands): Call emit_pic_move or
10330 emit_pic_const_move if appropriate.
10331 (output_far_jump): For PIC, use braf and output long offset.
10332 (machine_dependent_reorg):
10333 (sh_expand_prologue): Save and initialize the PIC register.
10334 (sh_expand_epilogue): Restore it.
10335 (initial_elimination_offset): Account for it.
10336 (nonpic_symbol_mentioned_p): New function.
10337 (legitimize_pic_address): Likewise.
10338 (output_pic_addr_const): Likewise.
10339 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
10340 (call, call_value): Use them.
10341 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
10342 symPLT_label2reg): New expands.
10343 * invoke.texi (SH Options): Document -mprefergot.
10344
10345 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
10346
10347 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
10348 * gcse.c (hash_string_1): New function.
10349 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
10350 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
10351 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
10352 (canon_hash_string): New function.
10353 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
10354 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
10355 (fold_rtx): Use ASM_OPERANDS accessor macros.
10356 * emit-rtl.c (copy_insn_1): Likewise.
10357 * integrate.c (copy_rtx_and_substitute): Likewise.
10358 * stmt.c (expand_asm_operands): Likewise. Give an
10359 ASM_OPERANDS rtx the mode of the output reg being set from it.
10360
10361 2000-09-01 Fred Fish <fnf@be.com>
10362
10363 * fix-header.c (write_rbrac): Add putc and getc to list of
10364 functions to protect against prior definition as a macro.
10365
10366 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
10367
10368 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
10369 (c_size_type_node): Define.
10370 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
10371 * c-common.c (enum format_lengths, enum format_std_version,
10372 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
10373 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
10374 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
10375 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
10376 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
10377 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
10378 format_types): Define.
10379 (format_char_info, print_char_table, scan_char_table,
10380 time_char_table): Rearrange for new organization of information
10381 about format length modifiers and standard versions.
10382 (T_ST): Redefine to use c_size_type_node.
10383 (check_format_info): Obtain information about length modifiers and
10384 standard versions from tables. Adjust warning message wordings.
10385 Use the name from the user's program for `ll' and `hh' length
10386 modifiers in warning messages. Use more informative names for
10387 wanted types where available (for wchar_t, wint_t, size_t, signed
10388 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
10389
10390 2000-09-01 Jim Wilson <wilson@cygnus.com>
10391
10392 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
10393 * combine.c (distribute_notes): Handle REG_NORETURN.
10394 * rtl.c (reg_note_name): Add REG_NORETURN.
10395 * rtl.h (enum reg_note): Likewise.
10396
10397 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
10398 ia64_file_start.
10399 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
10400 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
10401 (emit_predicate_relation_info): Handle conditional calls with
10402 REG_NORETURN.
10403 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
10404 instead of ia64_file_start.
10405 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
10406 * config/ia64/ia64.md (safe_across_calls_all,
10407 save_across_calls_normal): New patterns.
10408
10409 * loop.c (check_final_value): Check for biv use before checking for
10410 giv use. Check for both biv and giv uses. Always set last_giv_use
10411 if there is a giv use.
10412
10413 2000-09-01 Richard Henderson <rth@cygnus.com>
10414
10415 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
10416 (madddi3): Likewise.
10417 (maddsi3): New.
10418
10419 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10420
10421 * expr.c (clear_storage): Don't use emit_move_insn unless
10422 either BLKmode or proper size.
10423 (store_constructor): Don't call clear_storage if REG of wrong size.
10424
10425 * flow.c (init_propagate_block_info): Don't mark frame dead at end
10426 of function if returns wiht stack pointer depressed.
10427
10428 2000-09-01 Andrew Haley <aph@redhat.com>
10429
10430 * dwarf2out.c (stack_adjust_offset): New function.
10431 (dwarf2out_stack_adjust): Break out stack adjust logic into
10432 new stack_adjust_offset function. Look inside parallels and
10433 sequences for stack adjustments.
10434
10435 2000-08-31 Jeff Law <law@cygnus.com>
10436
10437 * arm.md: Use no_new_pseudos to determine when it is safe
10438 to create new pseudo registers.
10439
10440 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
10441 when we can safely allocate new registers.
10442
10443 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
10444
10445 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
10446 so that CONCATs are not generated for ASMs.
10447 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
10448 not generating_concat_p.
10449 * function.c (pop_function_context_from): Reset
10450 generating_concat_p.
10451 (prepare_function_start): Likewise.
10452 * rtl.c (generating_concat_p): Define.
10453 * rtl.h (generating_concat_p): Declare.
10454 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
10455
10456 2000-08-22 Philipp Thomas <pthomas@suse.de>
10457 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
10458
10459 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
10460 for translation.
10461
10462 2000-08-30 Greg McGary <greg@mcgary.org>
10463
10464 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
10465 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
10466 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
10467
10468 2000-08-30 Greg McGary <greg@mcgary.org>
10469
10470 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
10471 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
10472 (TREE_INT_CST): New macro.
10473 * varasm.c (const_hash, compare_constant_1, record_constant_1):
10474 Use new macro TREE_INT_CST.
10475
10476 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
10477
10478 * contrib.texi: Add self.
10479
10480 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
10481
10482 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
10483 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
10484 and labels.
10485
10486 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10487
10488 * fixinc/gnu-regex.c: Don't define `const'.
10489
10490 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10491
10492 * expr.c (store_constructor): Allow variable bounds of array type.
10493 (expand_expr): Don't blow up if type is ERROR_MARK.
10494 * varasm.c (output_constructor): Don't access lower bound of array
10495 type unless need it if index is supplied (so it can be a variable
10496 if no index is supplied).
10497 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
10498 Other minor cleanups.
10499
10500 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10501
10502 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
10503 for compilations in stage 1 and subsequent stages, respectively.
10504 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
10505 * configure: Rebuilt.
10506 * x-vax, x-vax-gcc: Deleted.
10507
10508 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10509
10510 * c-common.c (declare_function_name): Use func_id_node,
10511 function_id_node, and pretty_function_id_node. Do not make
10512 __func__ visible at file scope.
10513 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
10514 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
10515 (function_id_node, pretty_function_id_node, func_id_node): New
10516 macros.
10517 * c-decl.c (init_decl_processing): Initialize function_id_node,
10518 pretty_function_id_node, and func_id_node.
10519 (c_make_fname_decl): Correct comment.
10520
10521 * tree.h (struct tree_identifier): Constify pointer member.
10522
10523 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
10524 * c-pragma.h (struct weak_syms): Constify name and value members.
10525 (add_weak): Constify arguments.
10526
10527 * calls.c (special_function_p): Constify a char *.
10528 (expand_call): Remove variable which is initialized and then
10529 never used.
10530 * dependence.c (struct def_use, struct induction, struct subscript):
10531 Constify 'variable' member.
10532 (get_low_bound, have_induction_variable): Constify char * argument.
10533 (find_induction_variable): Add braces to avoid dangling else.
10534 (classify_dependence): Constify char * arrays.
10535 * profile.c (output_func_start_profiler): Constify a char *.
10536 * stor-layout.c (finalize_record_size): Constify a char *.
10537 * tree.c (is_attribute_p): Constify a char *.
10538 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
10539
10540 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
10541 for comprehensibility. Do not call get_identifier if we did
10542 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
10543 create temporary string constants, not ggc_alloc_string. No
10544 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
10545 char * to hold IDENTIFIER_POINTERs.
10546
10547 2000-08-29 Richard Henderson <rth@cygnus.com>
10548
10549 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
10550 for the inputs.
10551
10552 2000-08-29 Richard Henderson <rth@cygnus.com>
10553
10554 * reload.c (push_secondary_reload): Allow class == reload_class
10555 if we're using a reload_in/out pattern.
10556
10557 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
10558 the half that does not conflict with the reload register.
10559 (reload_outti): Likewise.
10560
10561 2000-08-29 Kazu Hirata <kazu@hxi.com>
10562
10563 * reload.c: Fix formatting.
10564
10565 * stmt.c: Fix formatting.
10566
10567 * gcc.c: Fix formatting.
10568
10569 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10570
10571 * flags.h (time_report, mem_report): New global flags.
10572 * toplev.c: Define time_report and mem_report.
10573 (f_options): Add -ftime-report and -fmem-report.
10574 (compile_file): Turn on time_report if quiet_flag is off.
10575 Call ggc_print_statistics at very end if mem_report is on.
10576 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
10577
10578 * ggc-common.c (ggc_print_statistics): Rename to
10579 ggc_print_common_statistics; all callers changed. Scale
10580 quantities above 10K to kilobytes and above 10M to megabytes.
10581 * ggc-page.c (ggc_page_print_statistics): Rename to
10582 ggc_print_statistics. Report memory consumed by internal data
10583 structures for each allocation bucket. Scale quantities above
10584 10K to kilobytes and above 10M to megabytes.
10585 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
10586 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
10587 Define tally_leaves always.
10588 (ggc_print_statistics): New function.
10589 * ggc.h: Adjust for renamed functions.
10590
10591 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
10592
10593 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
10594 output_movsisf instead of which_alternative.
10595
10596 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
10597
10598 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
10599
10600 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
10601 (avr_progmem_p): New prototype.
10602 (output_movsisf): Prototype declaration changed.
10603 (output_movqi): New prototype.
10604 (output_movhi): New prototype.
10605 (call_insn_operand): Likewise.
10606 (final_prescan_insn): Likewise.
10607 (avr_simplify_comparision_p): Likewise.
10608 (avr_normalize_condition): Likewise.
10609 (compare_eq_p): Likewise.
10610 (out_shift_with_cnt): Likewise.
10611 (const_int_pow2_p): Likewise.
10612 (output_reload_inhi): Prototype declaration changed.
10613
10614 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
10615 (ldi_reg_rtx): New. rtx for r31.
10616 (avr_init_stack): Initialize as "__stack".
10617 (function_prologue): Use it.
10618 Replace all TARGET_ENHANCED with AVR_ENHANCED.
10619 (avr_mcu_name): Initialize as "avr2".
10620 (avr_enhanced_p, avr_mega_p): New variables.
10621 (mcu_types, avr_override_options): Handle all known MCU types.
10622 Also handle avr1 (only preprocess, assemble and link).
10623 (print_operand): Using of `%K' in output template removed.
10624 (out_movqi_r_mr): Optimized.
10625 (out_movhi_r_mr): Likewise.
10626 (output_movqi): New function.
10627 (output_movhi): Likewise.
10628 (out_movsi_r_mr): Optimized.
10629 (output_movsisf): Compute insn length for `adjust_insn_length'
10630 (out_movqi_mr_r): Optimized.
10631 (out_movhi_mr_r): Optimized.
10632 (adjust_insn_length): Use output_movsisf, output_movqi,
10633 output_movhi for insn length adjusting.
10634 (reg_unused_after): Use dead_or_set_p.
10635 (preferred_reload_class): Now havn't any restriction.
10636 (reg_was_0): New function.
10637 (io_address_p): Likewise.
10638 (const_int_pow2_p): Likewise.
10639 (output_reload_inhi): Likewise.
10640 (output_reload_insisf): Likewise.
10641
10642 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
10643 (LIB_SPEC): Use -lc for all supported devices.
10644 (LIBGCC_SPEC): Use -lgcc for all supported devices.
10645 (AVR_MEGA): Define as avr_mega_p.
10646 (AVR_ENHANCED): New, define as avr_enhanced_p.
10647 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
10648 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
10649 (CRT_BINUTILS_SPECS): Handle all known MCU types.
10650 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
10651 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
10652 (ASM_SPEC): Pass -mmcu=... to the assembler.
10653 Change all -DAVR_* to -D__AVR_*__.
10654 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
10655 Rename library functions to start with two underscores.
10656 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
10657 alignment.
10658 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
10659 (SUPPORTS_WEAK): Likewise.
10660 (LDI_REG_REGNO): New. Register r31 will be used as temporary
10661 register for loading constants to r0-r14.
10662
10663 * config/avr/avr.md: Replace all TARGET_ENHANCED with
10664 AVR_ENHANCED.
10665 (*mov_r_sp): Removed. Handled by output_movhi.
10666 (*mov_sp_r): Likewise.
10667 (*mov_sp_r_no_interrupts): Likewise
10668 (*mov_sp_r_tiny): Likewise.
10669 (*movqi): Use output_movqi.
10670 (*reload_inqi): New.
10671 (*movhi): Use output_movhi.
10672 (*reload_inhi): New.
10673 (*negsi2): Optimized.
10674 (*negsf2): Likewise.
10675 Added peepholes (define_peephole2) for loading constants to r0-r14
10676 and for using `cpse' command.
10677
10678 * config/avr/libgcc.S: Rename library functions to start with two
10679 underscores.
10680 Add support for enhanced core.
10681 (_moqhi3): Fix typo, now _modqi3.
10682 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
10683 (__prologue_saves__): Remove test for stack adjust by 0.
10684 (__tablejump__): New.
10685
10686 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
10687 Add multilib support.
10688
10689 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
10690
10691 * loop.c (prescan_loop): Don't check unknown_address_altered
10692 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
10693 to loop_store_mems as necessary.
10694 (loop_invariant_p): Don't check unknown_address_altered
10695 or unknown_constant_address_altered.
10696
10697 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10698
10699 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
10700
10701 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10702
10703 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
10704 print just the filename.
10705 * cpplex.c (_cpp_run_directive): Add additional argument, the
10706 name to give the synthetic buffer. This defaults to
10707 translated "<command line>".
10708 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
10709 Adjust to match.
10710 (_cpp_define_builtin): New function.
10711 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
10712 * cpphash.h: Update prototypes.
10713
10714 * tradcpp.c (main): Process -D and -U simultaneously, in the
10715 order they appeared on the command line.
10716
10717 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10718
10719 * c-decl.c (define_label): Call warning_with_file_and_line and
10720 error_with_file_and_line instead of plain warning or error.
10721
10722 * c-parse.in (label): Use save_filename/save_lineno to ensure
10723 correct values for calls to define_label.
10724
10725 2000-08-29 Mark Mitchell <mark@codesourcery.com>
10726
10727 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
10728 away.
10729 * expr.c (expand_expr, case TARGET_EXPR): Don't call
10730 mark_addressable.
10731 * tree.h (get_file_function_name): Remove two duplicate
10732 declarations.
10733
10734 2000-08-28 Kazu Hirata <kazu@hxi.com>
10735
10736 * tree.c: Fix formatting.
10737
10738 * xcoffout.c: Fix formatting.
10739
10740 2000-08-28 Jason Merrill <jason@redhat.com>
10741
10742 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
10743
10744 2000-08-28 Daniel Berlin <dberlin@redhat.com>
10745
10746 * dwarf2out.c (dwarf2out_finish): Don't bother calling
10747 break_out_includes if it won't do anything.
10748
10749 2000-08-28 Richard Henderson <rth@cygnus.com>
10750
10751 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
10752 (find_reloads): Likewise.
10753 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
10754 (reload_inhi): Likewise.
10755
10756 2000-08-28 Richard Henderson <rth@cygnus.com>
10757
10758 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
10759 (call_insn_operand): Don't expect a surrounding mem.
10760 (constant_call_address_operand): Likewise.
10761 * config/i386/i386.h (PREDICATE_CODES): Update.
10762 * config/i386/i386.md (call patterns): Move the match_operand
10763 for the call destination inside the mem.
10764
10765 2000-08-28 Richard Henderson <rth@cygnus.com>
10766
10767 * local-alloc.c (requires_inout): Don't use reserved range for
10768 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
10769 * recog.c (asm_operand_ok): Likewise.
10770 (preprocess_constraints, constrain_operands): Likewise.
10771 * regclass.c (record_reg_classes): Likewise.
10772 * reload.c (find_reloads): Likewise.
10773 * reload1.c (maybe_fix_stack_asms): Likewise.
10774 (reload_cse_simplify_operands): Likewise.
10775 * stmt.c (expand_asm_operands): Likewise.
10776
10777 * md.texi: Update constraints documentation.
10778 * tm.texi (EXTRA_CONSTRAINT): Update.
10779
10780 2000-08-28 Daniel Berlin <dberlin@redhat.com>
10781
10782 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
10783 (print_die): If we don't know the offset of the
10784 target die, try the symbol. Add a trailing newline.
10785 (reverse_all_dies): New fn.
10786 (dwarf2out_finish): Call it.
10787 (break_out_includes): Reorganize for clarity.
10788 (add_sibling_attributes): Don't call reverse_die_lists.
10789 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
10790 primary CU, too.
10791 * flags.h: Add flag_eliminate_dwarf2_dups.
10792 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
10793
10794 2000-08-28 Jason Merrill <jason@redhat.com>
10795
10796 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
10797 * dwarf2out.c: #include "md5.h".
10798 (DIE_LABEL_PREFIX): New macro.
10799 (dw_val_struct): Add 'external' flag to val_die_ref.
10800 (add_AT_die_ref, AT_ref): Adjust.
10801 (AT_ref_external, set_AT_ref_external): New fns.
10802 (build_abbrev_table): Call set_AT_ref_external.
10803 (value_format): Call AT_ref_external.
10804 (die_struct): Add die_symbol field.
10805 (new_die): Clear it.
10806 (dwarf_tag_name): Handle BINCL/EINCL.
10807 (dwarf2out_start_source_file): Add BINCL DIE.
10808 (dwarf2out_end_source_file): Add EINCL DIE.
10809 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
10810 (loc_checksum, attr_checksum, die_checksum): New fns.
10811 (is_type_die, is_comdat_die, is_symbol_die): New fns.
10812 (compute_section_prefix, assign_symbol_names): New fns.
10813 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
10814 (output_die): Call output_die_symbol and AT_ref_external.
10815 (output_comdat_comp_unit): New fn, split out from...
10816 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
10817 secondary CUs.
10818 (output_pubnames, output_aranges): Abort if we see entries from
10819 secondary CUs.
10820 * toplev.h: Declare file_name_nondirectory.
10821 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
10822 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
10823 (debug_start_source_file): Call dwarf2out_start_source_file
10824 regardless of debug verbosity.
10825 (debug_end_source_file): Similarly.
10826 * tree.h: Declare clean_symbol_name.
10827 * tree.c (clean_symbol_name): Split out from...
10828 (get_file_function_name_long): ...here.
10829
10830 * dwarf2out.c (new_loc_descr): Use calloc.
10831 (splice_child_die): Remove the die from the right parent.
10832 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
10833
10834 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10835
10836 * toplev.c (decode_g_option): Don't give warning for unknown -g
10837 option; return 0 instead.
10838 (main): If -g option is not recognized by front end or
10839 language-independent code, give warning.
10840
10841 2000-08-28 Greg McGary <greg@mcgary.org>
10842
10843 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
10844 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
10845 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
10846
10847 2000-08-27 Greg McGary <greg@mcgary.org>
10848
10849 * cpplex.c (parse_string): Don't look for backslash
10850 before first char in `namebuf'.
10851 * loop.c (strength_reduce): Skip NOTEs.
10852
10853 2000-08-27 Jason Merrill <jason@redhat.com>
10854
10855 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
10856 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
10857 TREE_ASM_WRITTEN, either.
10858 (finish_decl): Adjust.
10859
10860 2000-08-28 Philipp Thomas <pthomas@suse.de>
10861
10862 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
10863 they have been incorporated into the gettext CVS. Change the text to
10864 reflect the current status of NLS. Add instructions for accessing
10865 the gettext CVS and add the patch from Martin v. Loewis.
10866
10867 2000-08-27 Geoff Keating <geoffk@cygnus.com>
10868
10869 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
10870 by using gen_lowpart_common.
10871 (movdi_internal64+6): Likewise.
10872
10873 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
10874
10875 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
10876 Document.
10877
10878 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
10879 numbers to the ranges used by GDB.
10880
10881 2000-08-25 Richard Henderson <rth@cygnus.com>
10882
10883 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
10884 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
10885 (ia64_expand_prologue): Likewise.
10886 (ia64_setup_incoming_varargs): Set it. Properly skip the current
10887 argument for stdargs.
10888
10889 2000-08-25 Jason Merrill <jason@redhat.com>
10890
10891 * integrate.c (expand_inline_function): Pull out the original decl.
10892
10893 2000-08-25 Jim Wilson <wilson@cygnus.com>
10894
10895 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
10896
10897 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
10898
10899 2000-08-25 Greg McGary <greg@mcgary.org>
10900
10901 * flow.c (dump_edge_info): Use ARRAY_SIZE.
10902 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
10903
10904 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
10905
10906 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
10907
10908 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
10909
10910 * i386.c (ix86_find_base_term): New.
10911 * i386-protos.h (ix86_find_base_term): Prototype.
10912 * i386.h (FIND_BASE_TERM): Define.
10913 * alias.c (find_base_term): Use it.
10914 * tm.texi (FIND_BASE_TERM): Document it.
10915
10916 * alias.c (true_dependence, write_dependence_p): Unchanging
10917 memory can't conflict with non-unchanging memory.
10918
10919 * alias.c (memrefs_conflict_p): A BLKmode reference
10920 to a symbol (or CONST_INT address) always conflicts
10921 with a reference to another symbol.
10922
10923 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
10924
10925 * c-common.c (time_char_table): Don't allow width and flags with
10926 "z" format.
10927
10928 2000-08-25 Jakub Jelinek <jakub@redhat.com>
10929
10930 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
10931 way as LT and LTU when the second operand has 0 in low word.
10932
10933 2000-08-26 Michael Hayes <mhayes@cygnus.com>
10934
10935 * basic-block.h (struct loop): Rename `exits' field to
10936 `exit_edges'. Add `entry_edges' and `num_entries' fields.
10937
10938 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
10939 (flow_loop_entry_edges_find): Add.
10940 (flow_edge_list_print): Rename from flow_exits_print.
10941 (flow_loops_find): Call flow_loop_entry_edges_find.
10942 (flow_loop_dump): Dump entry_edges list.
10943 (flow_loops_free): Free entry_edges.
10944
10945 2000-08-26 Michael Hayes <mhayes@cygnus.com>
10946
10947 * loop.c (loop_dump_aux, debug_loop): New functions.
10948 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
10949
10950 * flow.c (flow_loops_dump): Add callback parameter.
10951 (flow_loop_dump): Add callback parameter and call it. Move
10952 loop note debugging code to loop_dump_aux.
10953
10954 * basic-block.h (flow_loop_dump): Add callback parameter
10955 (flow_loops_dump): Likewise.
10956
10957 * toplev.c (rest_of_compilation): Add NULL callback function pointer
10958 to call to flow_loops_dump.
10959
10960 2000-08-26 Michael Hayes <mhayes@cygnus.com>
10961
10962 * loop.c (count_loop_regs_set): Replace start and end arguments
10963 with loop argument. All callers udated.
10964
10965 2000-08-26 Michael Hayes <mhayes@cygnus.com>
10966
10967 * loop.c (constant_high_bytes): Delete.
10968
10969 2000-08-26 Michael Hayes <mhayes@cygnus.com>
10970
10971 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
10972 and NOTE_INSN_LOOP_VTOP to...
10973 (find_and_verify_loops) ...here.
10974
10975 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
10976
10977 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
10978 (fini_dummy, init_dummy): Use it.
10979
10980 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
10981
10982 * cpplex.c (is_macro_disabled): Caller has already checked
10983 that we're not a preprocessed file.
10984
10985 2000-08-24 Mark Mitchell <mark@codesourcery.com>
10986
10987 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
10988 (c-iterate.o): Remove target.
10989 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
10990 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
10991 (finish_decl): Don't handle iterators.
10992 (grokdeclarator): Likewise.
10993 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
10994 * gcc/c-gperf.h: Regenerated.
10995 * gcc/c-iterate.c: Removed.
10996 * gcc/c-lex.c (init_lex): Don't handle iterators.
10997 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
10998 (compstmt_primary_start): Remove push_iterator_stack call.
10999 (stmt): Don't allow iterator statements. Replace iterator_expand
11000 with expand_expr_stmt.
11001 (all_iter_stmt): Remove.
11002 (all_iter_stmt_simple): Likewise.
11003 (all_iter_stmt_with_decl): Likewise.
11004 * gcc/c-tree.h (ITERATOR_P): Remove.
11005 (ITERATOR_BOUND_P): Likewise.
11006 (init_iterators): Remove declaration.
11007 (iterator_expand): Likewise.
11008 (iterator_for_loop_start): Likewise.
11009 (iterator_for_loop_end): Likewise.
11010 (iterator_for_loop_record): Likewise.
11011 (push_iterator_stack): Likewise.
11012 (pop_iterator_stack): Likewise.
11013 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
11014 (readonly_warning): Likewise.
11015 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
11016
11017 2000-08-24 Jim Wilson <wilson@cygnus.com>
11018
11019 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
11020 Copy type in a TYPE_DECL, just like pushdecl does.
11021
11022 2000-08-24 Richard Henderson <rth@cygnus.com>
11023
11024 * toplev.c (main): Enable flag_reorder_blocks at -O2.
11025
11026 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
11027
11028 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
11029 asked for one page, allocate GGC_QUIRE_SIZE of them and put
11030 the extras on the free list.
11031 (release_pages): Clean up.
11032 (ggc_set_mark): Don't adjust G.allocated here...
11033 (sweep_pages): ... do it here.
11034
11035 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
11036
11037 * cppfiles.c (read_include_file): Rearrange initializations.
11038
11039 2000-08-24 Richard Henderson <rth@cygnus.com>
11040
11041 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
11042
11043 * config/ia64/ia64-protos.h: Update.
11044 * config/ia64/ia64.c (gr_register_operand): New.
11045 (fr_register_operand, grfr_register_operand): New.
11046 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
11047 (grfr_reg_or_8bit_operand): New.
11048 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
11049 use gr_register_operand.
11050 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
11051 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
11052 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
11053 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
11054 (fr_reg_or_fp01_operand): Likewise.
11055 (not_postinc_memory_operand): New.
11056 (ia64_split_timode): Remove unused variables.
11057 (rtx_needs_barrier): Check arguments to cmpxchg.
11058 (builtin_description): Remove.
11059 (bdesc_2argsi, bdesc_2argdi): Remove.
11060 (ia64_init_builtins): Declare all builtins directly.
11061 (ia64_expand_fetch_and_op): Rewrite to be called from
11062 ia64_expand_builtin directly. Use expand_binop and co.
11063 (ia64_expand_op_and_fetch): Likewise.
11064 (ia64_expand_compare_and_swap): Likewise.
11065 (ia64_expand_binop_builtin): Remove.
11066 (ia64_expand_lock_test_and_set): New.
11067 (ia64_expand_lock_release): New.
11068 (ia64_expand_builtin): Use them.
11069 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
11070 (EXTRA_CONSTRAINT): Use it.
11071 (PREDICATE_CODES): Update.
11072 * config/ia64/ia64.md (*): Use gr_register_operand and co.
11073 (mf): Indicate that we set memory as well as use it.
11074 (fetchadd_acq_si): Show memory being modified as well.
11075 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
11076 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
11077 (lock_test_and_set_si, lock_test_and_set_di): Remove.
11078 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
11079 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
11080 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
11081 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
11082 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
11083 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
11084 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
11085 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
11086 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
11087 return type. Pretty print definitions.
11088
11089 2000-08-24 Jim Wilson <wilson@cygnus.com>
11090
11091 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
11092 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
11093
11094 2000-08-24 Jason Merrill <jason@redhat.com>
11095
11096 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
11097 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
11098 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
11099 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
11100
11101 2000-08-24 Greg McGary <greg@mcgary.org>
11102
11103 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
11104 and extendtab within their proper array boundaries.
11105 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
11106 for the entire array.
11107
11108 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
11109 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
11110 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
11111 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11112 * config/i386/dgux.c (output_options): Likewise.
11113 * config/i386/dgux.h (ASM_FILE_START): Likewise.
11114 * config/m88k/m88k.c (output_options): Likewise.
11115 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
11116 * config/mcore/mcore.c (mcore_output_inline_const_forced,
11117 layout_mcore_frame, handle_structs_in_regs): Likewise.
11118 * config/mips/mips.c (output_block_move): Likewise.
11119 * config/rs6000/rs6000.c (rs6000_override_options,
11120 rs6000_file_start): Likewise.
11121 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
11122 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
11123 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
11124 * builtins.c (expand_builtin_setjmp): Likewise.
11125 * expr.c (safe_from_p): Likewise.
11126 * flow.c (life_analysis): Likewise.
11127 * fold-const.c (size_int_type_wide): Likewise.
11128 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
11129 * genattrtab.c (make_length_attrs): Likewise.
11130 * genopinit.c (gen_insn): Likewise.
11131 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
11132 * global.c (global_alloc): Likewise.
11133 * local-alloc.c (find_free_reg): Likewise.
11134 * mips-tdump.c (print_symbol): Likewise.
11135 * mips-tfile.c (parse_def, parse_input): Likewise.
11136 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
11137 * stmt.c (expand_nl_goto_receiver): Likewise.
11138 * stor-layout.c (set_sizetype): Likewise.
11139 * varasm.c (decode_reg_name): Likewise.
11140 * toplev.c (decode_f_option, decode_W_option,
11141 set_target_switch, print_switch_values): Likewise.
11142 (NUM_ELEM): Remove macro.
11143 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
11144
11145 2000-08-24 Greg McGary <greg@mcgary.org>
11146
11147 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
11148 (MAIN_NAME_P, main_identifier_node): New macros.
11149 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
11150 * c-decl.c (start_decl, grokdeclarator, start_function,
11151 store_parm_decls, finish_function): Use MAIN_NAME_P.
11152 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
11153 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11154 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11155 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
11156
11157 2000-08-24 Greg McGary <greg@mcgary.org>
11158
11159 * cppfiles.c (actual_directory): Don't write beyond `dir'
11160 when it contains "".
11161 * real.c (asctoeg): Stay within bounds of etens[][].
11162
11163 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11164
11165 * dependence.c (dependence_string, direction_string,
11166 dump_one_node, dump_node_dependence): Hide unused identifiers.
11167 (get_low_bound, normalize_coefficients): Match definition to
11168 static prototype.
11169 (get_one_coefficient): Initialize variables `value0_is_idx' and
11170 `value1_is_idx'.
11171 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
11172 (ziv_test): Delete variable `idx', use parameter `sub' instead.
11173 (direction_merge): Avoid automatic aggregate initialization.
11174 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
11175 Initialize variables `dest_idx' and `src_idx'.
11176 (end_dependence_analysis): Avoid C89 style function definition.
11177
11178 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
11179
11180 * c-common.c (time_char_table): Don't allow width with %F.
11181 (check_format_info): Don't allow "Z" length with scanf.
11182
11183 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
11184
11185 * diagnostic.c (finish_diagnostic): Define.
11186 (output_do_printf): Use wrap_text instead of output_add_string.
11187 (default_print_error_function): Avoid embedded '\n'.
11188
11189 * diagnostic.h (flush_diagnostic_buffer): Declare.
11190
11191 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
11192
11193 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
11194
11195 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
11196
11197 * Makefile.in (GCC_PASSES): Add specs.
11198
11199 2000-08-23 Jim Wilson <wilson@cygnus.com>
11200
11201 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
11202 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
11203 EHANDLER nor UHANDLER bit is set.
11204 (__get_except_table): Likewise.
11205
11206 2000-08-23 Nick Clifton <nickc@redhat.com>
11207
11208 * config/arm/lib1funcs.asm: Replace upper case condition codes
11209 with lower case versions.
11210
11211 * config/arm/arm.h (STRUCT_VALUE): Define.
11212 (STRUCT_VALUE_REGNUM): Delete.
11213
11214 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
11215
11216 * cpphash.h (IN_I): New flag for directive table.
11217 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
11218 #pragma with IN_I.
11219 (_cpp_check_directive): If -fpreprocessed, execute directives
11220 marked with IN_I. Issue no warnings in this case.
11221 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
11222
11223 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
11224
11225 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
11226 %u.
11227 (check_format_info): Support printf 'I' flag; warn about it with
11228 -pedantic.
11229
11230 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
11231
11232 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
11233 barrier can't be ignored by the alias analysis code.
11234
11235 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
11236
11237 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
11238 works inside fixincl.
11239
11240 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
11241
11242 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
11243 simplify_relational_operation() unless both operands are of
11244 VOIDmode.
11245 * cse.c (fold_rtx): Likewise.
11246
11247 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
11248
11249 * rtlanal.c (rtx_unstable_p): The pic register is stable
11250 (within one function) and the actual rtx should be used
11251 when checking the registers.
11252 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
11253
11254 * alias.c (true_dependence, write_dependence_p): Fix
11255 bug in previous patch.
11256
11257 * i386.c (ix86_GOT_alias_set): New.
11258 (legitimize_pic_address): Use it.
11259
11260 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
11261 only stable if its address is stable.
11262 (rtx_varies_p): An unchanging MEM can't vary if
11263 its address doesn't vary.
11264
11265 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11266
11267 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
11268
11269 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
11270
11271 * vax.h (ASM_SPEC): Pass `-J' to assembler.
11272 * x-vax-gcc: New file for bootstrapping with gcc.
11273 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
11274 * configure.in: Use x-vax-gcc with gcc.
11275 * configure: Rebuilt.
11276
11277 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11278
11279 * toplev.c (rest_of_compilation): Rebuild label notes after
11280 post-reload splitting pass if new labels have been created.
11281
11282 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
11283
11284 * diagnostic.h (output_buffer_state): New macro.
11285 * diagnostic.c (diagnostic_for_decl, sorry,
11286 default_print_error_function, output_do_verbatim,
11287 report_diagnostic, report_problematic_module): Use it.
11288 (wrap_text): Tweak.
11289 (output_format): Use wrap_text instead of maybe_wrap_text.
11290
11291 2000-08-22 Nick Clifton <nickc@redhat.com>
11292
11293 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
11294 Common code for ARM divide and modulus functions.
11295 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
11296 ARM_DIV_MOD_BODY.
11297 (FUNC_END): New macro: Common code at the end of the division and
11298 modulo functions.
11299 (THUMB_FUNCTION_START): New macro: Common code at the start of
11300 Thumb functions.
11301 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
11302
11303 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11304
11305 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
11306
11307 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
11308 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
11309 const0_rtx.
11310
11311 2000-08-22 Nick Clifton <nickc@redhat.com>
11312
11313 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
11314 restorative additions, test for bottom bits of IP being set,
11315 rather than relying upon the RORs not matching.
11316 (__modsi3): Ditto.
11317
11318 2000-08-22 David Edelsohn <edelsohn@gnu.org>
11319
11320 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
11321 text_section() as appropriate instead of emitting text csect
11322 pseudo-op directly.
11323 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
11324 (UNIQUE_SECTION): Define macro.
11325 (ASM_OUTPUT_SECTION_NAME): Define macro.
11326 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
11327 on AIX if debugging and -fdata-sections always.
11328
11329 2000-08-22 Steven King <sxking@uswest.net>
11330
11331 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
11332 machinery.
11333 (LDBL_MAX): Same here.
11334
11335 2000-08-22 Richard Henderson <rth@cygnus.com>
11336
11337 * flow.c (tidy_fallthru_edge): Update b->end properly.
11338
11339 2000-08-22 Stan Cox <scox@redhat.com>
11340
11341 * Makefile.in (OBJS): Add dependence.o.
11342 * dependence.c: New file.
11343
11344 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
11345
11346 * calls.c (check_sibcall_argument_overlap_1): Adjust for
11347 ARGS_GROW_DOWNWARD.
11348 (check_sibcall_argument_overlap): Likewise.
11349
11350 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
11351
11352 * invoke.texi (SH Options): Document -m4-nofpu,
11353 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
11354 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
11355
11356 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
11357
11358 * c-common.c (check_format_info): Give the 'some locales' warning
11359 for strftime %Ey rather than the unconditional 'only last 2 digits
11360 of year' one.
11361
11362 2000-08-22 Richard Henderson <rth@cygnus.com>
11363
11364 * alias.c (init_alias_analysis): Do not register
11365 struct_value_incoming_rtx or static_chain_rtx as pointing
11366 to stack memory.
11367
11368 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
11369
11370 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
11371
11372 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
11373
11374 * diagnostic.h (report_problematic_module): Declare.
11375 * diagnostic.c (report_problematic_module): New function.
11376 (report_error_function): Tweak.
11377
11378 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11379
11380 * stmt.c (expand_goto_internal, fixup_gotos): Only check
11381 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
11382
11383 2000-08-21 Richard Henderson <rth@cygnus.com>
11384
11385 * flow.c (calculate_global_regs_live): Mark frame pointer live
11386 everywhere before reload.
11387
11388 2000-08-21 Jim Wilson <wilson@cygnus.com>
11389
11390 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
11391 INTEL_EXTENDED_IEEE_FORMAT.
11392 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
11393 clear last two bytes of output FP value.
11394
11395 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
11396
11397 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
11398
11399 2000-08-21 Jakub Jelinek <jakub@redhat.com>
11400
11401 * unroll.c (loop_find_equiv_value): If ret is modified between
11402 insn and loop_start, ret might not be equivalent to reg.
11403
11404 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
11405
11406 * c-common.c (init_dollar_format_checking,
11407 maybe_read_dollar_number, finish_dollar_format_checking): New
11408 functions.
11409 (dollar_arguments_used, dollar_arguments_count,
11410 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
11411 New variables.
11412 (check_format_info): Support $ formats for scanf and printf width
11413 and precision. Always increment format_chars to advance past the
11414 '*' of precision, not just when the format parameters are
11415 available to check.
11416
11417 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11418
11419 * mips.c (block_move_loop, expand_block_move,
11420 function_arg_partial_nregs, save_restore_insns, function_prologue,
11421 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
11422 constant suffix.
11423 (function_arg_advance, function_arg): Match argument to format
11424 specifier `%p'.
11425
11426 2000-08-21 Nix <nix@esperi.demon.co.uk>
11427
11428 * gcc.c (do_spec_1): Implement %j spec flag.
11429 Remove dead comment.
11430
11431 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
11432 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
11433 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
11434 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
11435
11436 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
11437 writable) instead of hardcoded value.
11438
11439 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
11440
11441 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
11442 MKTEMP_EACH_FILE.
11443
11444 * gcc.c (cc1_options): Do not process -o or run the assembler if
11445 -fsyntax-only.
11446 * objc/lang-spec.h: Likewise.
11447
11448 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
11449
11450 * fixinc/fixincl.c (fix_with_system): Pipe the output of
11451 "external" fixes through `cat', to avoid truncating the input
11452 file by redirection.
11453
11454 2000-08-21 Jakub Jelinek <jakub@redhat.com>
11455
11456 * config/i386/i386.md (lea_general_1): Copy insn condition to split
11457 condition.
11458 (lea_general_2, lea_general_3): Likewise.
11459
11460 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11461
11462 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
11463 warnings to user code.
11464
11465 * c-lex.c (readescape, yylex): Likewise.
11466
11467 * c-typeck.c (store_init_value, process_init_element): Likewise
11468 (c_expand_start_case): Format.
11469
11470 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11471
11472 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
11473
11474 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
11475 and linker_endian_spec to endian_spec.
11476 (ENDIAN_SPEC): Add %{EB} and %{EL}.
11477 (LINK_SPEC): Remove %{EB} and %{EL}.
11478 (ASM_SPEC): Likewise. Use %(endian_spec).
11479
11480 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
11481
11482 * c-tree.h (flag_hosted): Move declaration from here...
11483 * c-common.h (flag_hosted): ... to here.
11484 (flag_noniso_default_format_attributes): New declaration.
11485 * c-decl.c (flag_noniso_default_format_attributes): New variable.
11486 (c_decode_option): Set it appropriately for options choosing
11487 language standard variant.
11488 * c-common.c (init_function_format_info): Only provide default
11489 format attributes if flag_hosted. Only provide the gettext
11490 formats if flag_noniso_default_format_attributes. Update
11491 comments.
11492 (check_format_info): Disable treatment of %a as a scanf flag in
11493 C99 mode.
11494
11495 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
11496
11497 * c-common.c (scan_char_table): Add 'w' to flags for all formats
11498 except 'n'.
11499 (check_format_info): Set 'wide' for scanf format widths. Warn for
11500 a zero scanf width. Make the check for writing into a constant
11501 object at the first level of indirection; at later levels, warn if
11502 any type qualifiers are encountered.
11503
11504 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
11505
11506 * reload.c (reload_inner_reg_of_subreg): New function broken out of
11507 push_reload.
11508 (push_reload): Use reload_inner_reg_of_subreg.
11509 (combine_reloads): Do not combine reloads if the input reload
11510 is a SUBREG in which the inner part will need reloading.
11511
11512 * global.c (global_alloc): Avoid passing dumpfile argument to
11513 reload routines.
11514 * toplev.c (rest_of_compilation): Likewise.
11515 * reload.h (reload): Remove dumpfile argument. Callers changed.
11516 (debug_reload, debug_reload_to_stream): Move prototypes here.
11517 * rtl.h (reload): Remove dumpfile argument.
11518 * reload.c (debug_reload): Remove prototype.
11519 (debug_reload_to_stream): Likewise.
11520 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
11521 instead.
11522
11523 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
11524
11525 * diagnostic.c (context_as_prefix): Export.
11526 (need_error_newline): Remove.
11527 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
11528 (error_module_changed, record_last_error_module,
11529 error_function_changed, record_last_error_function): New functions.
11530 (initialize_diagnostics): Default intialize
11531 lang_diagnostic_starter, lang_diagnostic_finalizer.
11532 (init_output_buffer): Tweak.
11533 (file_name_as_prefix): New function.
11534 (announce_function, default_print_error_function,
11535 report_error_function, set_diagnostic_context): Tweak.
11536
11537 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
11538
11539 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
11540 condition expression.
11541
11542 2000-08-20 Richard Henderson <rth@cygnus.com>
11543
11544 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
11545
11546 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
11547
11548 * cppinit.c (cpp_init): Set global flag when called.
11549 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
11550
11551 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
11552
11553 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
11554 before `process_directive' so that newlines won't be missed
11555 for directives.
11556 (cpp_printf): Increment `print->lineno' when newline is emitted.
11557
11558 * cppmain.c (cb_ident): Likewise.
11559 (cb_define): Likewise.
11560 (cb_undef): Likewise.
11561 (cb_include): Likewise.
11562 (cb_def_pragma): Likewise.
11563 (dump_macros_helper): Likewise.
11564
11565 2000-08-20 Richard Henderson <rth@cygnus.com>
11566
11567 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
11568 assigned before a loop.
11569
11570 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
11571 (ashrsi3, lshrsi3): Likewise.
11572
11573 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
11574
11575 * c-lang.c: #include diagnostic.h
11576 (c_tree_printer): New function.
11577 (lang_init): Initialize lang_printer.
11578
11579 * Makefile.in (c-lang.o): Depends on diagnostic.h
11580
11581 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
11582
11583 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
11584
11585 * diagnostic.c (default_diagnostic_starter,
11586 default_diagnostic_finalizer): New functions.
11587 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
11588 (pedwarn, pedwarn_with_file_and_line, error,
11589 error_with_file_and_line, fatal, warning,
11590 warning_with_file_and_line): Adjust call to report_diagnostic.
11591 (report_diagnostic): Rework.
11592 (set_diagnostic_context): New function.
11593
11594 * diagnostic.h (struct diagnostic_context): New data structure.
11595 (diagnostic_message, diagnostic_argument_list,
11596 diagnostic_file_location, diagnostic_line_location,
11597 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
11598 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
11599 (set_diagnostic_context): Declare.
11600 (report_diagnostic): Change prototype.
11601
11602 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
11603
11604 * fix-header.c (main): Initialize cpplib.
11605
11606 2000-08-19 Michael Meissner <meissner@redhat.com>
11607
11608 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
11609 instructions in it before checking for indirect jumps.
11610
11611 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
11612 in a indirect jump as a potential for conditional execution.
11613
11614 * d30v.h (d30v_init_expanders): Don't declare here.
11615 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
11616 prototype.
11617
11618 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
11619
11620 * cpp.texi: Add @section for assertions.
11621
11622 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
11623
11624 * loop.c (scan_loop): Use CONST_CALL_P instead of
11625 checking for REG_LIBCALL / REG_RETVAL.
11626
11627 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
11628
11629 * reload1.c (reload_as_needed): Accept dumpfile argument,
11630 pass it to emit_reload_insns.
11631 (emit_reload_insns): Add new dumpfile argument. If non-null
11632 then dump the reloads for each insn into the dumpfile.
11633 (reload): Pass dumpfile to reload_as_needed.
11634
11635 * invoke.texi: Clean up linux-gnu vs linux comments.
11636
11637 2000-08-19 Richard Henderson <rth@cygnus.com>
11638
11639 * config/ia64/ia64.c (reg_or_5bit_operand): New.
11640 (ia64_depz_field_mask): New.
11641 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
11642 (PREDICATE_CODES): Update.
11643 * config/ia64/ia64.md: Update commentary.
11644 (depz_internal): New.
11645 (ashlsi3): Implement directly.
11646 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
11647 (ashldi3): Use shladd.
11648 * config/ia64/ia64-protos.h: Update.
11649
11650 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
11651
11652 * toplev.c (independent_decode_option): Always process -g.
11653 Remove third argument, now unused. Adjust caller to match.
11654
11655 2000-08-18 Richard Henderson <rth@cygnus.com>
11656
11657 * combine.c (make_compound_operation): Break after creating
11658 the extraction.
11659
11660 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
11661
11662 * cpplib.c (cpp_register_pragma_space): Just return if the
11663 namespace is already registered.
11664
11665 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
11666
11667 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
11668 constant amount. Do not generate ROTL instruction.
11669
11670 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
11671
11672 * config/sh/elf.h: Do not include sh/sh.h.
11673 * config/sh/rtems.h: Likewise.
11674 * config/sh/rtemself.h: Do not include sh/elf.h.
11675 * configure.in: Get them included with `tm_file's.
11676 * configure: Rebuilt.
11677
11678 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
11679 * config/sh/sh.c (fpscr_set_from_mem): Use them.
11680
11681 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11682
11683 * stor-layout.c (compute_record_type): Don't use mode of single
11684 field as mode of record if not integer mode of same type.
11685
11686 * regmove.c (perhaps_ends_bb_p): New function.
11687 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
11688 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
11689 (fixup_match_1): Likewise.
11690 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
11691 avoid signed/unsigned warnings.
11692
11693 * function.c (fixup_var_refs_1, case MEM): Update CODE after
11694 updating X.
11695
11696 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
11697
11698 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
11699 (_cpp_trigraph_map): Declaration moved from cpplex.c
11700
11701 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
11702 instead of 256. Use consistent test for designated initializers.
11703 (cpp_init): Initialize trigraph_map.
11704 (initialize_standard_includes, parse_option): Use memcmp
11705 instead of strncmp.
11706
11707 * cpplex.c (init_trigraph_map): Remove.
11708 (trigraph_ok, trigraph_replace, lex_line): Refer to
11709 _cpp_trigraph_map.
11710
11711 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
11712 (do_unassert): Remove unused "next" local.
11713
11714 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
11715
11716 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
11717
11718 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
11719 insn.
11720
11721 2000-08-17 Richard Henderson <rth@cygnus.com>
11722
11723 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
11724 the first insn in a sequence.
11725
11726 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
11727
11728 * alias.c (true_dependence, write_dependence_p): A read
11729 involving a label_ref or the constant pool doesn't create
11730 a dependency.
11731
11732 * rtl.h (unchanging): Improve documentation.
11733
11734 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
11735
11736 * cse.c (insert_regs): Remove unused `regno'.
11737
11738 2000-08-17 Neil Booth <NeilB@earthling.net>
11739
11740 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
11741 remove_dup_dirs. If qtail == brack, remove brack not
11742 qtail.
11743 (remove_dup_dir, remove_dup_dirs): New functions.
11744
11745 2000-08-17 Neil Booth <NeilB@earthling.net>
11746
11747 * cppinit.c (cpp_cleanup): Free include dir chains.
11748 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
11749 (do_unassert): Free the assert with _cpp_free_definition.
11750 * cppmacro.c (_cpp_free_definition): Free memory allocated for
11751 assertions. Make the node a T_VOID node.
11752
11753 2000-08-17 Neil Booth <NeilB@earthling.net>
11754
11755 * cppinit.c (path_include, append_include_chain):
11756 Remove 2nd parameter (struct cpp_pending *).
11757 (path_include, initialize_standard_includes, cpp_handle_option):
11758 Update callers appropriately.
11759 (cpp_handle_option): Use pend.
11760
11761 2000-08-17 Neil Booth <NeilB@earthling.net>
11762
11763 * cppinit.c (sort_options): Remove, put functionality in
11764 cpp_init.
11765 (cpp_init): New.
11766 (initialize_builtins): Free memory.
11767 (cpp_start_read): Move init_IStable to cpp_init.
11768
11769 * cpplib.h (cpp_init): New prototype.
11770 * cppmain.c (main): Call cpp_init.
11771
11772 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
11773
11774 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
11775 (rtx_unstable_p, rtx_varies_p): Process vectors.
11776
11777 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
11778
11779 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
11780 references to GLOBAL symbols. Use LOCAL where appropriate.
11781
11782 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11783
11784 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
11785 use t-aix41 when host == target.
11786
11787 2000-08-16 Richard Henderson <rth@cygnus.com>
11788
11789 * reload.c (push_secondary_reload): Revert last change.
11790 If we use a reload_in/out pattern, make the when the same
11791 as the primary reload.
11792 (find_reloads): Likewise.
11793
11794 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
11795
11796 * configure.in (libstdcxx-v3): Fix test.
11797 * configure: Regenerate.
11798
11799 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11800
11801 * calls.c (calls_function_1, expand_call): Only test
11802 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
11803 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11804
11805 2000-08-16 Richard Henderson <rth@cygnus.com>
11806
11807 * combine.c (simplify_shift_const): Revert previous two
11808 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
11809 before the main loop.
11810
11811 2000-08-15 Richard Henderson <rth@cygnus.com>
11812
11813 * combine.c (simplify_shift_const): Bound shift count when
11814 combining shifts.
11815
11816 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11817
11818 * calls.c (ECF_SP_DEPRESSED): New macro.
11819 (calls_function_1): Treat calling sp-depressed function as alloca.
11820 (emit_call_1): Don't adjust SP if calling sp-depressed function.
11821 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
11822 If sp-depressed, ensure block saves and restores SP.
11823 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
11824 for INTEGER_TYPE.
11825 * function.c (keep_stack_depressed): New function.
11826 (thread_prologue_and_epilogue_insns): Call it.
11827 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
11828 to print DECL_OFFSET_ALIGN.
11829 Print no-force-blk and transparent-union flags properly.
11830 * stmt.c (expand_goto_internal): Don't restore stack if last block
11831 and function returns with sp depressed.
11832 (fixup_gotos): Likewise.
11833 (save_stack_pointer): New function, from code in expand_decl.
11834 (expand_decl): Call new function.
11835 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
11836 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
11837 (save_stack_pointer): New declaration.
11838
11839 * diagnostic.c (fatal_function): New variable.
11840 (set_fatal_function): New function.
11841 (fatal): Call it.
11842 * diagnostic.h (set_fatal_function): New declaration.
11843
11844 2000-08-15 William Cohen <wcohen@redhat.com>
11845
11846 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
11847 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
11848 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
11849
11850 2000-08-15 Richard Henderson <rth@cygnus.com>
11851
11852 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
11853
11854 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
11855
11856 * arm.c (arm_function_ok_for_sibcall): New function.
11857 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
11858 * arm.md (call expanders): Don't check here for calls that can't
11859 be sibling calls.
11860
11861 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
11862
11863 * arm.md (splits generating cond_exec): Disable.
11864
11865 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
11866
11867 * arm/linux-elf.h (text_section): Delete declaration.
11868
11869 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
11870
11871 ARM support for unordered FP operations.
11872 * arm-protos.h (arm_comparison_operator): Declare.
11873 * arm.c (arm_comparison_operator): New function.
11874 (arm_select_cc_mode): Add unordered comparison codes.
11875 (get_arm_condition_code): Likewise.
11876 (arm_final_prescan_insn): Can't handle unordered jumps that can't
11877 be done in one insn.
11878 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
11879 * arm.md (all uses of comparison_operator): Replace with
11880 arm_comparison_operator.
11881 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
11882 expands.
11883 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
11884 patterns.
11885
11886 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
11887
11888 * gthr-posix.h: Conditionally include <sched.h>; include
11889 <config.h> from libobjc/.
11890
11891 2000-08-14 Richard Henderson <rth@cygnus.com>
11892
11893 * config/i386/i386.c (legitimize_pic_address): Use Pmode
11894 for all CONSTs.
11895
11896 2000-08-14 Richard Henderson <rth@cygnus.com>
11897
11898 * configure.in (ia64-*): Set float_format for i386 long double.
11899
11900 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
11901 as we would for i386 XFmode.
11902 (PUT_REAL): Likewise.
11903 (endian, ereal_atof, real_value_truncate): Likewise.
11904 (ereal_isneg, toe64, etens, make_nan): Likewise.
11905 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
11906
11907 * config/ia64/ia64-protos.h: Update.
11908 * config/ia64/ia64.c (general_tfmode_operand): New.
11909 (destination_tfmode_operand): New.
11910 (tfreg_or_fp01_operand): New.
11911 (ia64_split_timode): New.
11912 (spill_tfmode_operand): New.
11913 (ia64_expand_prologue): Use TFmode not XFmode.
11914 (ia64_expand_epilogue): Likewise.
11915 (ia64_function_arg): Likewise.
11916 (ia64_function_arg_advance): Likewise.
11917 (ia64_return_in_memory): Likewise.
11918 (ia64_function_value): Likewise.
11919 (ia64_print_operand): Likewise.
11920 (ia64_register_move_cost): Set GR<->FR to 5.
11921 (ia64_secondary_reload_class): Get GR for TImode memory op.
11922 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
11923 (ROUND_TYPE_ALIGN): Remove.
11924 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
11925 (INTEL_EXTENDED_IEEE_FORMAT): Define.
11926 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
11927 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
11928 (MODES_TIEABLE_P): Use TFmode, not XFmode.
11929 (CLASS_MAX_NREGS): Likewise.
11930 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
11931 (PREDICATE_CODES): Update.
11932 * config/ia64/ia64.md (movti): New.
11933 (movti_internal): Use a clobber for memory alternatives.
11934 (reload_inti, reload_outti): New.
11935 (movsfcc_astep): Predicate properly.
11936 (movdfcc_astep): Likewise.
11937 (movxf): Remove.
11938 (movtf): New.
11939 (extendsftf2, extenddftf2): New.
11940 (trunctfsf2, trunctfdf2): New.
11941 (floatditf2, fix_trunctfdi2): New.
11942 (floatunsditf2, fixuns_trunctfdi2): New.
11943 (addtf3, subtf3, multf3, abstf2): New.
11944 (negtf2, nabstf2, mintf3, maxtf3): New.
11945 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
11946 (cmptf): New.
11947 (fr_spill): Use TFmode, not XFmode.
11948 (fr_restore): Likewise.
11949 * config/ia64/lib1funcs.asm (__divtf3): New.
11950 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
11951
11952 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11953
11954 * cse.c (fold_rtx): Avoid empty body in an if-statement.
11955
11956 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
11957 `U' integer constant suffix.
11958
11959 * dwarf2out.c (add_subscript_info): Avoid empty body in an
11960 else-statement.
11961
11962 * sparc/sol2.h (__enable_execute_stack): Prototype.
11963
11964 2000-08-14 David Edelsohn <edelsohn@gnu.org>
11965
11966 * collect2.c: Remove use of AIX import file.
11967
11968 * longlong.h: Test ARCH_PWR not ARCH_POWER.
11969
11970 * rs6000.c (print_operand, case 'E'): Add else.
11971
11972 2000-08-14 Richard Henderson <rth@cygnus.com>
11973
11974 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
11975 (movdi_symbolic): New.
11976
11977 2000-08-14 Jim Wilson <wilson@cygnus.com>
11978
11979 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
11980 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
11981 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
11982 to GNU as.
11983
11984 2000-08-14 Richard Henderson <rth@cygnus.com>
11985
11986 * expr.c (emit_group_load): Don't force constants into registers.
11987 Special case source already in the correct mode.
11988
11989 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
11990
11991 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
11992 * fixinc/inclhack.def: Likewise.
11993 * fixinc/mkfixinc.sh: Likewise.
11994 * configure: Regenerate.
11995 * fixinc/fixincl.x: Regenerate.
11996 * install.texi: Document equivalence of linux and linux-gnu.
11997
11998 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11999
12000 * cse.c (insert_regs): Also in REG case: When finding an invalid
12001 value, and we make a new quantity, make sure that it won't be
12002 mistaken by for a valid one by mention_regs.
12003
12004 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
12005
12006 * h8300.md: Remove obsolete peepholes.
12007
12008 2000-08-13 Kazu Hirata <kazu@hxi.com>
12009
12010 * invoke.texi (H8/300 Options): Fix typos.
12011 * config/h8300.c: Fix formatting.
12012 * config/h8300.h: Fix comment typos.
12013 (OVERRIDE_OPTIONS): Fix formatting.
12014
12015 * function.c: Fix formatting.
12016
12017 * cse.c: Fix formatting.
12018
12019 2000-08-13 Geoff Keating <geoffk@cygnus.com>
12020
12021 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
12022 (attempt_auto_inc): Suppress parentheses warning.
12023 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
12024 * loop.c (load_mems): Remove `u' suffix in two places.
12025 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
12026 hex constants.
12027 * config/rs6000/rs6000.h: Likewise.
12028 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
12029 __eabi dummy routine.
12030 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
12031 variable `buf_ptr'.
12032
12033 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
12034 not put stuff in .sdata unnecessarily.
12035 (rs6000_unique_section): New function.
12036 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
12037 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
12038
12039 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
12040 arrays in C99. Don't try to look at DECL_REGISTER of a
12041 COMPONENT_REF. Don't complain twice about the same error.
12042
12043 * fixinc/inclhack.def (aix_pthread): New fix.
12044 (aix_sysmachine): New fix.
12045 * fixinc/fixincl.x: Regenerate.
12046
12047 * expr.c (expand_expr): Call convert_modes when turning a large
12048 multiply into a small one.
12049
12050 2000-08-12 Geoff Keating <geoffk@cygnus.com>
12051
12052 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
12053 the tree structure an exponent rather than an explicit alignment
12054 so it doesn't overflow.
12055 (SET_DECL_OFFSET_ALIGN): New macro.
12056 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
12057 rather than DECL_OFFSET_ALIGN.
12058 (place_field): Likewise.
12059 * expmed.c (store_bit_field): Abort on align==0 to avoid
12060 antisocial machine behaviour.
12061
12062 2000-08-12 Richard Henderson <rth@cygnus.com>
12063
12064 * sibcall.c (uses_addressof): Accept both addressof and
12065 current_function_internal_arg_pointer inside a mem.
12066 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
12067 if current_function_uses_addressof.
12068 * stmt.c (expand_return): Kill tail recursion and HAVE_return
12069 optimizations.
12070
12071 2000-08-11 Richard Henderson <rth@cygnus.com>
12072
12073 * config/ia64/ia64.md (addsi3): Remove expander.
12074 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
12075 (*addsi3_shladd): New.
12076
12077 2000-08-11 Richard Henderson <rth@cygnus.com>
12078
12079 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
12080 (do_restore): Likewise.
12081 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
12082 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
12083 (rtx_needs_barrier): Track actual bit manipulation for
12084 ar.unat moves, gr_spill, and gr_restore.
12085 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
12086 (process_set): Don't handle varargs spills.
12087 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
12088 .mem.offset here instead of in process_set.
12089 (gr_restore): Likewise.
12090
12091 2000-08-11 Richard Henderson <rth@cygnus.com>
12092
12093 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
12094
12095 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
12096
12097 * gcc.texi (The Configuration File): Document
12098 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
12099 UPDATE_PATH_HOST_CANONICALIZATION.
12100
12101 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12102
12103 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
12104 unprototyped function pointer casts on integer constants.
12105
12106 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
12107
12108 * fixproto: Recognize DOS paths with drive letters as absolute paths.
12109
12110 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
12111
12112 * extend.texi (Volatiles): Fix typos.
12113
12114 2000-08-11 Kazu Hirata <kazu@hxi.com>
12115
12116 * flow.c: Fix formatting.
12117
12118 2000-08-11 Richard Henderson <rth@cygnus.com>
12119
12120 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
12121 pattern, always allocate a tertiary scratch register.
12122
12123 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
12124 (reload_inhi): Likewise.
12125
12126 2000-08-11 Richard Henderson <rth@cygnus.com>
12127
12128 * function.c (put_reg_into_stack): Allow type to be NULL.
12129 (schedule_fixup_var_refs): Likewise.
12130 (gen_mem_addressof): Allow decl to be NULL.
12131 (put_addressof_into_stack): Likewise.
12132
12133 * flow.c (merge_blocks_nomove): Be more careful about
12134 locating the beginning of block A.
12135
12136 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
12137
12138 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12139
12140 * configure.in:
12141 * configure:
12142 * gthr-posix.h:
12143 * config.in: Reverted the check for <sched.h>.
12144
12145 2000-08-10 Chris Demetriou <cgd@sibyte.com>
12146
12147 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
12148 macros define the name of CTOR and DTOR sections.
12149 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
12150 DTOR_LIST_END): Change to use attributes to specify
12151 sections.
12152 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
12153 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
12154 DTOR_LIST_END): Same as in mips/elf.h.
12155
12156 2000-08-10 Drew Moseley <dmoseley@redhat.com>
12157
12158 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
12159 disabling just crt0.o.
12160
12161 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
12162
12163 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
12164 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
12165 (EXTRA_SPECS): Add them.
12166 * arm/lib1funcs.asm: Support builds for interworking.
12167 Use macros to eliminate duplicated pieces of code.
12168
12169 2000-08-10 Kazu Hirata <kazu@hxi.com>
12170
12171 * h8300.c (expand_a_rotate): New.
12172 (emit_a_rotate): Likewise.
12173 (h8300_adjust_insn_length): Add support for the rotate insns.
12174 * h8300.md (rotlqi3): New.
12175 (*rotlqi3_1): Likewise.
12176 (rotlhi3): Likewise.
12177 (*rotlhi3_1): Likewise.
12178 (rotlhi3): Likewise.
12179 (*rotlhi3_1): Likewise.
12180 * h8300-proto.h: Add prototypes for expand_a_rotate and
12181 emit_a_rotate.
12182
12183 * h8300.c: Fix comment typos.
12184 (dosize): Declare the variable amount as unsigned.
12185 (get_shift_alg): Fix a comparison between signed and unsigned.
12186 (emit_a_shift): Likewise.
12187 (h8300_adjust_insn_length): Simplify the code.
12188
12189 * c-decl.c: Fix formatting.
12190
12191 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12192
12193 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
12194 warning about non-traditional numeric constant suffixes.
12195
12196 * cppexp.c (parse_number): Likewise.
12197
12198 * invoke.texi: (-Wtraditional): Document new behavior.
12199
12200 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12201
12202 * gthr-posix.h: Include auto-host.h. Conditionally include
12203 <sched.h>.
12204 * configure.in: Check for the <sched.h> header file.
12205 * config.in: Added define for HAVE_SCHED_H.
12206
12207 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12208
12209 * c-typeck.c (process_init_element): For -Wtraditional, warn about
12210 initialization of unions.
12211
12212 * invoke.texi (-Wtraditional): Document new behavior.
12213
12214 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
12215
12216 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
12217 instead of extra_c_flags.
12218 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
12219 * configure: Regenerate.
12220 * config.in: Regenerate.
12221
12222 * cpperror.c (cpp_type2name): New function.
12223 * cpplex.c (lex_line): If we issued an error for an invalid
12224 preprocessing directive, discard that logical line.
12225 * cpplib.c (do_line): Call a hook function if the current file
12226 is renamed by #line.
12227 (do_ident): Pass the contents of the string, not the entire
12228 token, to the callback function.
12229 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
12230 (cb.rename_file): New hook function.
12231 (cb.ident): Adjust prototype.
12232 (cpp_type2name): Prototype.
12233 * cppmacro.c (dump_macro_args): Correct precedence lossage.
12234
12235 * cppmain.c (cb_ident): Update for changed interface.
12236 (cb_rename_file): New function.
12237 (main): Set rename callback.
12238
12239 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
12240
12241 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
12242 multi-word registers.
12243
12244 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
12245
12246 * c-common.c (combine_strings, check_format_info): Refer to ISO C
12247 or ISO C89 instead of ANSI C.
12248 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
12249 build_enumerator, do_case): Likewise.
12250 * c-lex.c (parse_float, yylex): Likewise.
12251 * c-parse.in: Likewise.
12252 * c-typeck.c (common_type, build_array_ref, build_binary_op,
12253 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
12254 build_c_cast, convert_for_assignment, set_init_index,
12255 set_init_label, c_expand_start_case): Likewise.
12256 * toplev.c (documented_lang_options, display_help): Likewise.
12257
12258 2000-08-08 Kazu Hirata <kazu@hxi.com>
12259
12260 * h8300.c: Fix formatting.
12261 * h8300.h: Likewise.
12262 * h8300.md: Likewise.
12263 (movsi_h8300hs): Fix formatting of the resulting assembly code.
12264
12265 * reload1.c: Fix formatting.
12266
12267 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
12268
12269 * alpha/alpha.c (alpha_emit_xfloating_libcall):
12270 Use GEN_CALL_VALUE define.
12271 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
12272 * clipper/clipper.md (untyped_call): Likewise.
12273 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
12274 * fx80/fx80.md (untyped_call): Likewise.
12275 * mips/mips.md (untyped_call): Likewise.
12276 * ns32k/ns32k.md (untyped_call): Likewise.
12277 * pa/pa.md (untyped_call): Likewise.
12278 * romp/romp.md (untyped_call): Likewise.
12279 * sparc/sparc.md (untyped_call): Likewise.
12280
12281 2000-08-08 Jason Eckhardt <jle@cygnus.com>
12282
12283 * config/i860/i860.c (singlemove_string): Do not generate assembler
12284 pseudo instructions that must be expanded (that is, with signed
12285 constants larger than 16 bits).
12286
12287 2000-08-08 Richard Henderson <rth@cygnus.com>
12288
12289 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
12290 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
12291 (init_propagate_block_info): Don't kill memory stores at -O0.
12292 (mark_set_1, mark_used_regs): Likewise.
12293
12294 2000-08-08 David Edelsohn <edelsohn@gnu.org>
12295
12296 * rs6000.c (optimization_options): Decorate 'level' as
12297 ATTRIBUTE_UNUSED.
12298 (mask64_operand): Remove sign-extend thinko.
12299 (rldic_operand): New function.
12300 (load_multiple_operation): regno's are unsigned ints.
12301 (store_multiple_operation): Likewise.
12302 (lmw_operation): Likewise.
12303 (stmw_operation): Likewise.
12304 (includes_lshift_p): shift_mask is unsigned int.
12305 (includes_lshift64_p): New function.
12306 (addrs_ok_for_quad_peep): unsigned int reg1.
12307 (print_operand): Consistently add "else" after
12308 output_operand_lossage().
12309 (print_operand, case 'b'): Fold in case 'W'.
12310 (print_operand, case 'W'): Print rldic MB value.
12311 (output_epilogue): Update Objective-C language string.
12312 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
12313 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
12314 * rs6000.md (ashldi3): Add rldic instruction.
12315 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
12316 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
12317 modifier.
12318
12319 2000-08-08 Richard Henderson <rth@cygnus.com>
12320
12321 * config/ia64/ia64-protos.h: Remove duplicates. Update
12322 for massive code rearrangements.
12323 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
12324 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
12325 (ia64_local_regs, ia64_need_regstk): Remove.
12326 (ar_ccv_reg_operand): New.
12327 (ia64_gp_save_reg): New.
12328 (struct ia64_frame_info): Combine most of the size elements;
12329 add new gr save elements.
12330 (find_gr_spill): New.
12331 (next_scratch_gr_reg): New.
12332 (mark_reg_gr_used_mask): New.
12333 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
12334 to GR backing store regs when possible.
12335 (ia64_initial_elimination_offset): New.
12336 (ia64_rap_fp_offset): Remove.
12337 (save_restore_insns): Remove.
12338 (setup_spill_pointers): New.
12339 (finish_spill_pointers): New.
12340 (spill_restore_mem): New.
12341 (do_spill, do_restore): New.
12342 (ia64_expand_prologue): Rewrite to use them.
12343 (ia64_expand_epilogue): Likewise.
12344 (ia64_direct_return): Update for current_frame_info changes.
12345 (ia64_function_prologue): Simplify .prologue emission. Emit
12346 .spill when needed.
12347 (ia64_setup_incoming_varargs): Don't ever emit rtl.
12348 (ia64_dbx_register_number): New.
12349 (ia64_initialize_trampoline): New.
12350 (ia64_secondary_reload_class): Request GR_REGS for integer
12351 arithmetic destined for FR_REGS.
12352 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
12353 (ia64_mark_machine_status): Mark ia64_gp_save.
12354 (rws_access_regno): Rename from rws_access_reg; don't treat
12355 predicates specially.
12356 (rws_access_reg): New. Update all callers.
12357 (rtx_needs_barrier): Remove dead unspecs.
12358 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
12359 (ia64_encode_section_info): Silence signed/unsigned warnings.
12360 (spill_offset, sp_offset, spill_offset_emitted): Remove.
12361 (tmp_reg, tmp_saved): Remove.
12362 (process_set): Rewrite to expect complicated bits via
12363 REG_FRAME_RELATED_EXPR.
12364 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
12365 in the use of ar.ccv; never set RTX_UNCHANGING_P.
12366 (ia64_expand_op_and_fetch): Likewise.
12367 (ia64_expand_compare_and_swap): Likewise.
12368 (ia64_expand_builtin): Likewise.
12369 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
12370 (FIRST_PSEUDO_REGISTER): Update.
12371 (AR_M_REGNO_P): Update.
12372 (FIXED_REGS): Don't mark three local registers as used.
12373 (EXTRA_CC_MODES): New.
12374 (SELECT_CC_MODE): New.
12375 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
12376 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
12377 (FRAME_GROWS_DOWNWARD): Unset.
12378 (STARTING_FRAME_OFFSET): Zero.
12379 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
12380 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
12381 (HARD_FRAME_POINTER_REGNUM): New.
12382 (CAN_DEBUG_WITHOUT_FP): Define.
12383 (TRAMPOLINE_TEMPLATE): Remove.
12384 (TRAMPOLINE_SIZE): Lower to 32.
12385 (TRAMPOLINE_ALIGNMENT): Lower to 64.
12386 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
12387 (PREDICATE_CODES): Update.
12388 (struct machine_function): Add ia64_gp_save.
12389 * config/ia64/ia64.md: Purge unused unspecs.
12390 (movsi patterns): Allow moves to/from AR_M_REGS.
12391 (movdi patterns): Allow moves to/from p0.
12392 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
12393 (gr_spill, gr_restore): Indicate ar.unat read/written.
12394 (nonlocal_goto): Don't pass old frame_pointer.
12395 (nonlocal_goto_receiver): Remove.
12396 (exception_receiver): New.
12397 (builtin_setjmp_setup): New.
12398 (builtin_setjmp_receiver): New.
12399 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
12400 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
12401 (__ia64_restore_stack_nonlocal): Likewise.
12402 (__ia64_trampoline): New.
12403 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
12404 function.
12405 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
12406
12407 2000-08-08 Richard Henderson <rth@cygnus.com>
12408
12409 * frame.h (ia64_frame_state): Add my_psp.
12410 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
12411 (__throw): Pass it in. Don't clobber r7.
12412 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
12413 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
12414 and nothing to do with sp.
12415 (normalize_reg_loc): Use frame->my_psp.
12416 (frame_translate): Handle frame-pointer-less functions. Set
12417 spill_base correctly, in absence of being told.
12418 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
12419 (__ia64_backtrace_helper): New sp argument. Use
12420 builtin_return_address instead of label addresses.
12421 (print_record) [mem_stack_v]: No size member.
12422
12423 2000-08-08 Richard Henderson <rth@cygnus.com>
12424
12425 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
12426
12427 2000-08-08 Richard Henderson <rth@cygnus.com>
12428
12429 * tm.texi (LOCAL_REGNO): Document.
12430 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
12431 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
12432 * reload1.c (reload): Likewise when considering nonlocal labels.
12433
12434 * config/ia64/ia64.h (LOCAL_REGNO): New.
12435 * config/sparc/sparc.h (LOCAL_REGNO): New.
12436
12437 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
12438
12439 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
12440
12441 2000-08-07 Nick Clifton <nickc@redhat.com>
12442
12443 * config/mips/mips.c: Fix compile time warning messages.
12444 * config/mips/mips-protos.h: Add prototype for equality_op.
12445
12446 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
12447
12448 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
12449
12450 * mn10300.md: Use nonimmediate_operand instead of general_operand
12451 on output operands.
12452
12453 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
12454
12455 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
12456
12457 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
12458 * sh.c (expand_block_move): Break long lines.
12459 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
12460 * sh.md (mulsi3): Likewise.
12461 (movdi): Adjust spacing.
12462
12463 2000-08-07 Richard Henderson <rth@cygnus.com>
12464
12465 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
12466 * expr.c (emit_group_store): Don't set it.
12467
12468 2000-08-07 Kazu Hirata <kazu@hxi.com>
12469
12470 * invoke.texi (Options for Debugging Your Program or GCC): Remove
12471 duplicate entries for 'w' and 'z'.
12472
12473 * flow.c: Fix a comment typo.
12474
12475 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12476
12477 * c-parse.in: Changed the language string for Objective-C to "GNU
12478 Objective-C".
12479
12480 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12481
12482 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
12483 to improve the Posix thread support for Objective-C.
12484
12485 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
12486
12487 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
12488 CTI_UNSIGNED_PTRDIFF_TYPE.
12489 (signed_size_type_node): Define.
12490 (unsigned_ptrdiff_type_node): Define.
12491 * c-decl.c (init_decl_processing): Create the
12492 signed_size_type_node and unsigned_ptrdiff_type_node types.
12493 * c-common.c (T_SC): Define.
12494 (T_SST): Define.
12495 (T_UPD): Define.
12496 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
12497 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
12498 %s and %p.
12499 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
12500 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
12501 flags for %c, %s and %[.
12502 (check_format_info): Only allow leniency for signedness of targets
12503 of character pointers (when pedantic) for formats flagged with
12504 "c", so for strings but not for %hh formats. When pedantic, don't
12505 allow character pointers to substitute for void pointers if a
12506 second level of indirection is present.
12507
12508 2000-08-06 Kazu Hirata <kazu@hxi.com>
12509
12510 * invoke.texi (Options for Debugging Your Program or GCC): Update
12511 the names of dump files.
12512
12513 * h8300.c (dosize): Rearrange code for conciseness.
12514 (split_adds_subs): Likewise.
12515
12516 * loop.c: Fix formatting.
12517
12518 * dwarf2out.c: Fix formatting.
12519
12520 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
12521
12522 * expr.c: Fix formatting.
12523
12524 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12525
12526 * rs6000.c (rs6000_maybe_dead): Prototype.
12527
12528 2000-08-06 Richard Henderson <rth@cygnus.com>
12529
12530 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
12531 HAVE_nonlocal_goto as well.
12532 * config/i960/i960.md (nonlocal_goto): Don't do it here.
12533 * config/pj/pj.md (nonlocal_goto): Likewise.
12534
12535 2000-08-07 Michael Hayes <mhayes@cygnus.com>
12536
12537 * loop.c (try_swap_copy_prop): New function.
12538 (load_mems): Rename copies to load_copies and add new regset
12539 store_copies. Check for sets of shadow registers and mark
12540 in store_copies. Call try_swap_copy_prop for registers
12541 marked in store_copies.
12542
12543 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12544
12545 * objc/objc-act.c: New command line option -fconstant-string-class
12546 to allow specifying a user defined constant string class,
12547 different from NXConstantString.
12548
12549 * toplev.c: Moved the Objective-C specific options to
12550 objc/lang-options.h.
12551
12552 * objc/lang-options.h: Moved the Objective-C specific options from
12553 toplev.c. Added -fconstant-string-class.
12554
12555 2000-08-05 Chris Demetriou <cgd@sibyte.com>
12556
12557 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
12558 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
12559 __CTOR_LIST__ from func_ptr array to just func_ptr, to
12560 avoid extra alignment imposed on arrays.
12561 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
12562 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
12563
12564 * mips.h: Clean up comments and spacing near MASKs.
12565 (TARGET_UNIX_ASM): Delete.
12566 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
12567 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
12568 values contiguous.
12569
12570 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
12571
12572 * c-common.c (print_char_table): Add entries for the X/Open '
12573 format flag (print decimals with locale's thousands grouping
12574 character). Make %C expect wint_t.
12575 (check_format_info): If pedantic, warn when the %n$ operand
12576 number form is used. Allow for the ' flag; warn about it if
12577 pedantic.
12578
12579 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
12580
12581 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
12582 type is a float mode, cfun->decl's return type is not, and
12583 TARGET_FLOAT_RETURNS_IN_80387.
12584
12585 2000-08-04 Andreas Schwab <schwab@suse.de>
12586
12587 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
12588 token list, which are always `#' and `pragma'.
12589
12590 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
12591
12592 * tree.c (tree_expr_nonnegative_p): Move to...
12593 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
12594 (rtl_expr_nonnegative_p): New.
12595 * tree.h: Add prototype for rtl_expr_nonnegative_p.
12596
12597 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
12598 CONST_DOUBLE_CHAIN: Move to...
12599 * rtl.h: ...here. Use XCINT/XCEXP.
12600
12601 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
12602 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
12603 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
12604 to VOL_FILES.
12605
12606 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
12607
12608 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12609
12610 * config/c4x/c4x.md (return_indirect_internal): New.
12611 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
12612
12613 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
12614
12615 * c-common.c (time_char_table): Mark up formats added in C99 and
12616 make other corrections. %D and %g were added in C99. %Og is an
12617 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
12618 C99. %e was added in C99. %Oj is an extension. %G and %z are in
12619 C99 rather than GNU extensions, but %OG and %Oz are extensions.
12620 %h was added in C99. %C was added in C99. %OY and %OC are
12621 extensions. Add the C99 format %F.
12622 (check_format_info): If pedantic and not in C99 mode, warn for C99
12623 formats, %E and %O.
12624
12625 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12626
12627 * function.c (schedule_fixup_var_refs): New function, broken out
12628 of put_reg_into_stack.
12629 (put_reg_into_stack): Use it.
12630 (put_var_into_stack): In CONCAT case, fixup up references for
12631 components only after fixing up references to the whole concat.
12632
12633 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
12634
12635 * alias.c (mark_constant_function): Use INSN_P.
12636 (init_alias_analysis): Likewise.
12637 * combine.c (combine_instructions): Use INSN_P.
12638 (can_combine_p): Likewise.
12639 (try_combine): Likewise.
12640 (distribute_notes): Likewise.
12641 (distribute_links): Likewise.
12642 * cse.c (cse_around_loop): Use INSN_P.
12643 (invalidate_skipped_block): Likewise.
12644 (cse_set_around_loop): Likewise.
12645 (cse_end_of_basic_block): Likewise.
12646 (delete_trivially_dead_insns): Likewise.
12647 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
12648 (unshare_all_rtl_1): Likewise.
12649 (next_cc0_user): Likewise.
12650 (try_split make_insn_raw): Likewise.
12651 (remove_unnecessary_notes): Likewise.
12652 * final.c (shorten_branches): Use INSN_P.
12653 (leaf_renumber_regs): Likewise.
12654 (leaf_renumber_regs_insn): Likewise.
12655 * flow.c (find_label_refs): Use INSN_P.
12656 (verify_wide_reg): Likewise.
12657 (notice_stack_pointer_modification): Likewise.
12658 (count_or_remove_death_notes): Likewise.
12659 (verify_flow_info): Likewise.
12660 (clear_log_links): Likewise.
12661 * function.c (fixup_var_refs_insns): Use INSN_P.
12662 (compute_insns_for_mem): Likewise.
12663 * gcse.c (alloc_gcse_mem): Use INSN_P.
12664 (compute_sets): Likewise.
12665 (compute_hash_table): Likewise.
12666 (classic_gcse): Likewise.
12667 (cprop): Likewise.
12668 (insert_insn_end_bb): Likewise.
12669 (delete_null_pointer_checks_1): Likewise.
12670 * global.c (expand_preferences): Use INSN_P.
12671 (build_insn_chain): Likewise.
12672 * graph.c (node_data): Use INSN_P.
12673 * haifa-sched.c (priority): Use INSN_P.
12674 (rm_line_notes): Likewise.
12675 (rm_other_notes): Likewise.
12676 (find_insn_reg_weight): Likewise.
12677 (init_target_units): Likewise.
12678 (schedule_block): Likewise.
12679 (compute_block_forward_dependences): Likewise.
12680 (debug_dependencies): Likewise.
12681 (set_priorities): Likewise.
12682 * integrate.c (function_cannot_inline_p): Use INSN_P.
12683 (save_parm_insns): Likewise.
12684 (copy_insn_list): Likewise.
12685 * jump.c (mark_all_labels): Use INSN_P.
12686 (never_reached_warning): Likewise.
12687 * lcm.c (optimize_mode_switching): Use INSN_P.
12688 * local-alloc.c (validate_equiv_mem): Use INSN_P.
12689 (memref_used_between_p): Likewise.
12690 (update_equiv_regs): Likewise.
12691 (block_alloc): Likewise.
12692 (no_conflict_p): Likewise.
12693 * loop.c (scan_loop): Use INSN_P.
12694 (find_and_verify_loops): Likewise.
12695 (count_loop_regs_set): Likewise.
12696 (loop_reg_used_before_p): Likewise.
12697 (strength_reduce): Likewise.
12698 (recombine_givs): Likewise.
12699 (check_dbra_loop): Likewise.
12700 (load_mems): Likewise.
12701 (try_copy_prop): Likewise.
12702 * print-rtl.c (print_rtx): Use INSN_P.
12703 * recog.c (find_single_use): Use INSN_P.
12704 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
12705 (next_flags_user): Likewise.
12706 (swap_rtx_condition): Likewise.
12707 * regmove.c (mark_flags_life_zones): Use INSN_P.
12708 (optimize_reg_copy_1): Likewise.
12709 (optimize_reg_copy_2): Likewise.
12710 (optimize_reg_copy_3): Likewise.
12711 (reg_is_remote_constant_p): Likewise.
12712 (fixup_match_2): Likewise.
12713 (regmove_optimize): Likewise.
12714 (fixup_match_1): Likewise.
12715 * regrename.c (build_def_use): Use INSN_P.
12716 (replace_reg_in_block): Likewise.
12717 (consider_use): Likewise.
12718 * reload.c (find_equiv_reg): Use INSN_P.
12719 * reload1.c (reload): Use INSN_P.
12720 (maybe_fix_stack_asms): Likewise.
12721 (calculate_needs_all_insns): Likewise.
12722 (reload_as_needed): Likewise.
12723 (emit_output_reload_insns): Likewise.
12724 (delete_address_reloads_1): Likewise.
12725 (reload_cse_regs_1): Likewise.
12726 (reload_combine): Likewise.
12727 (reload_cse_move2add): Likewise.
12728 * reorg.c (redundant_insn): Use INSN_P.
12729 (dbr_schedule): Likewise.
12730 * resource.c (find_dead_or_set_registers): Use INSN_P.
12731 (mark_target_live_regs): Likewise.
12732 * rtlanal.c (reg_used_between_p): Use INSN_P.
12733 (reg_referenced_between_p): Likewise.
12734 (reg_set_between_p): Likewise.
12735 (reg_set_p): Likewise.
12736 (single_set): Likewise.
12737 (multiple_sets): Likewise.
12738 (find_last_value): Likewise.
12739 (reg_set_last): Likewise.
12740 (find_reg_note): Likewise.
12741 (find_regno_note): Likewise.
12742 * sibcall.c (sequence_uses_addressof): Use INSN_P.
12743 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
12744 * ssa.c (find_evaluations): Use INSN_P.
12745 (rename_block): Likewise.
12746 (rename_equivalent_regs): Likewise.
12747 * unroll.c (loop_find_equiv_value): Use INSN_P.
12748 (set_dominates_use): Likewise.
12749 * varasm.c (mark_constant_pool): Use INSN_P.
12750 (mark_constants): Likewise.
12751 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
12752 (alphaev4_next_group): Likewise.
12753 (alphaev5_next_group): Likewise.
12754 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
12755 (c4x_rptb_rpts_p): Likewise.
12756 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
12757 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
12758 (rs6000_adjust_priority): Likewise.
12759 * config/sh/sh.c (sh_loop_align): Use INSN_P.
12760 (machine_dependent_reorg): Likewise.
12761 (split_branches): Likewise.
12762 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
12763
12764 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
12765
12766 * combine.c (recog_for_combine): Remove the old notes
12767 prior to attempting to recognize the new pattern.
12768 (distribute_notes): Ignore REG_NONNEG notes.
12769
12770 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
12771
12772 * varasm.c (output_constructor): Add .align 0 for packed vars.
12773
12774 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
12775
12776 * configure.in: Use default thread_file even when enable_threads is
12777 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
12778 * configure: Rebuilt.
12779
12780 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
12781
12782 2000-08-04 Donn Terry (donnte@microsoft.com)
12783
12784 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
12785
12786 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
12787
12788 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
12789 Delete code that conditionally modifies 'version'.
12790 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
12791 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
12792 * gcc.c (main): Use it.
12793 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
12794 * prefix.c (update_path): Use it.
12795 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
12796 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
12797 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
12798 code.
12799 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
12800 (SUBTARGET_SWITCHES): Adjust.
12801 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
12802 defining.
12803 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
12804
12805 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
12806
12807 * c-common.h (flag_isoc94): Declare.
12808 * c-decl.c (flag_isoc94): Define.
12809 (c_decode_option): Set flag_isoc94 as appropriate.
12810 * c-common.c (T_PD, T_IM, T_UIM): Define.
12811 (format_char_info): Add tlen and jlen.
12812 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
12813 %F. Allow %lf.
12814 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
12815 %l[.
12816 (time_char_table): Add NULL entries for %t and %j.
12817 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
12818 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
12819 Warn for printf %lf if pedantic and not C99. Don't warn for empty
12820 precision. Allow precision argument to be unsigned int. If
12821 pedantic, warn for %p passed an argument not a pointer to possibly
12822 qualified void or a possibly qualified character type, and for
12823 pointer targets of the wrong sign, except for character pointers.
12824
12825 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
12826
12827 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
12828 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
12829 (wint_type_node): Define.
12830 * c-decl.c (WINT_TYPE): Define.
12831 (init_decl_processing): Create the wint_type_node type.
12832 * c-common.c (T_WI): Define.
12833 (print_char_table): Use T_WI for %lc format.
12834
12835 2000-08-04 Bruce Korb <bkorb@gnu.org>
12836
12837 * fixinc/: Verified that the MSDOS patch does not break
12838 the UNIX functionality and applied the next three patches
12839 from July:
12840
12841 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
12842
12843 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
12844 output file with the temporary one by appending ".X" to generate
12845 the temporary fuile's name. If the output file already has an
12846 extension, replace it with ".X".
12847
12848 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
12849 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
12850 reallocate the command buffer while copying the command-line
12851 argument. Redirect the output directly to the temporary file,
12852 instead of going through another temporary file.
12853 (process): Close the temporary file before unlinking it.
12854 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
12855 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
12856 (run_compiles): Pass p_fixd argument to machine_matches, as it
12857 expects.
12858
12859 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
12860 environment, assume there are no symlinks in the include
12861 directory. When cleaning up the DONE files, look for them
12862 case-insensitively. Don't try to remove symlinks if they aren't
12863 there.
12864
12865 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
12866 all callers changed. Declare pz "const char *", to avoid compiler
12867 warnings.
12868
12869 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
12870 Change prototype of make_raw_shell_str.
12871
12872 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
12873
12874 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
12875 (initialize) [__MSDOS__]: Use tempnam.
12876 (initialize): Don't use SIGPIPE if it is not defined.
12877
12878 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
12879 return stdout.
12880
12881 2000-07-25 Bruce Korb <bkorb@gnu.org>
12882
12883 * fixinc/fix*.[ch]: substantially reworked to make it possible
12884 to run this program without using fork(2) or pipe(2) (i.e. in
12885 a DOS environment).
12886
12887 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
12888
12889 * cppdefault.h (WINT_TYPE): Define.
12890 * cppinit.c (builtin_array): Define __WINT_TYPE__.
12891 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
12892 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
12893
12894 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
12895
12896 * (mips_legitimate_address_p): Don't allow register+offset
12897 if the offset is large and negative, and we are compiling
12898 for 64 bit registers.
12899
12900 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12901
12902 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
12903 insn_code_number + 1.
12904
12905 2000-08-04 Kazu Hirata <kazu@hxi.com>
12906
12907 * h8300.c (function_prologue): Rearrange code for conciseness.
12908 (function_epilogue): Likewise.
12909 * h8300.h (OK_FOR_U): Fix formatting.
12910
12911 * cse.c: Fix a comment typo. Fix formatting.
12912
12913 2000-08-03 Richard Henderson <rth@cygnus.com>
12914
12915 * config/i386/i386.md (return_indirect_internal): New.
12916 * config/i386/i386.c (ix86_expand_epilogue): Use it.
12917
12918 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
12919
12920 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
12921 before the name.
12922 (lex_line): Glue @ onto the beginning of identifiers and
12923 string constants, in Objective-C mode.
12924 (output_token, spell_token): Handle CPP_OSTRING.
12925 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
12926 beginning of a NAME or a STRING, in objc mode.
12927
12928 * cpplib.c (get_define_node): Do not permit identifiers that
12929 begin with @ to be #defined.
12930 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
12931 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
12932
12933 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
12934 * c-tree.h (build_objc_string): Delete prototype.
12935 * objc/objc-tree.def: Delete OBJC_STRING_CST.
12936 * c-lex.c (yylex): Use build_string for all three kinds of strings.
12937
12938 * c-parse.in, objc/objc-act.c: Update commentary.
12939
12940 2000-08-03 Mark Mitchell <mark@codesourcery.com>
12941
12942 * extend.texi: Fix typo in last change.
12943
12944 * extend.texi: Add commentary on statement-expressions and their
12945 interactions with C++.
12946
12947 2000-08-03 Nick Clifton <nickc@cygnus.com>
12948
12949 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
12950 * dwarf.h (LANG_JAVA): Change value to 0x000b.
12951
12952 2000-08-03 Anthony Green <green@cygnus.com>
12953
12954 * dwarf2out.c (gen_compile_unit_die): Add java language support.
12955 (add_bound_info): Check for java language.
12956 (is_java): New function.
12957 * dwarfout.c (output_compile_unit_die): Ditto.
12958 * dwarf.h (dwarf_source_language): Add java source language type.
12959 * dwarf2.h (dwarf_source_language): Ditto.
12960
12961 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
12962
12963 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
12964 operands.
12965
12966 * i386.c (ix86_expand_branch): Mode of comparison in
12967 IF_THEN_ELSE is VOIDmode.
12968
12969 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
12970
12971 * gengenrtl.c, rtl.c: Avoid #elif.
12972
12973 2000-08-03 Michael Poole <poole@troilus.org>
12974
12975 * tm.texi (Register Classes): Clarify order of sub-initializers
12976 in REG_CLASS_CONTENTS.
12977
12978 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12979
12980 From SAITOH Masanobu:
12981 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
12982
12983 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
12984
12985 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
12986 is not supported by tradcpp and isn't actually needed for cygwin.
12987
12988 2000-08-03 Kazu Hirata <kazu@hxi.com>
12989
12990 * h8300.c: Fix a comment typo.
12991 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
12992
12993 * jump.c: Fix formatting.
12994
12995 * toplev.c: Fix formatting.
12996
12997 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
12998
12999 * flow.c (find_auto_inc): Verify that we've got a REG before
13000 peeking at its regno. Fail, don't abort if we can't find
13001 the increment of the desired register.
13002
13003 * pa.md (shadd height reduction patterns/splitters): Remove.
13004
13005 2000-08-02 Jim Wilson <wilson@cygnus.com>
13006
13007 * config/ia64/ia64-protos.h (flag_ssa): Declare.
13008 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
13009
13010 2000-08-02 Mark Mitchell <mark@codesourcery.com>
13011
13012 * dce.c: Remove all uses of assert.
13013 * dwarf2out.c: Likewise.
13014 * dwarfout.c: Likewise.
13015 * ssa.c: Likewise.
13016
13017 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
13018
13019 * gcc.h (lang_specific_driver): Constify second argument.
13020 * gcc.c (translate_options, process_command, main): Likewise.
13021 Constify variables to match. Cast second argument to
13022 pexecute.
13023
13024 * cppspec.c, gccspec.c: Adjust type of second argument to
13025 lang_specific_driver, and update code as necessary.
13026
13027 2000-08-02 Jakub Jelinek <jakub@redhat.com>
13028
13029 * loop.c (scan_loop): Ensure update_end label does not
13030 go away until reg_scan_update is run.
13031
13032 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
13033
13034 * c-common.h: Prototype min_precision and c_build_qualified_type here...
13035 * c-tree.h: ... not here.
13036 * errors.h: Prototype fancy_abort.
13037
13038 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
13039 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
13040 * regrename.c (regrename_optimize): Make control flow explicit.
13041 (replace_reg_in_block): Initialize reg_use to 0.
13042
13043 * i386.c (legitimate_address_p): Rename error label to
13044 report_error to avoid namespace clash.
13045
13046 2000-08-02 Kazu Hirata <kazu@hxi.com>
13047
13048 * fold-const.c: Fix formatting.
13049
13050 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
13051
13052 * i386.c (legitimate_address_p): Accept other bases than
13053 pic_offset_table_rtx for GOTOFF constructs.
13054
13055 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
13056
13057 * i386.md (shift to lea splitter): Use const_int_operand.
13058
13059 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
13060
13061 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
13062 cppspec.c: Do not use 'legal' or 'illegal' in error messages
13063 and comments.
13064
13065 * cppmain.c (cb_define, cb_undef): Don't generate any output
13066 if not done_initializing.
13067 * cpplex.c (maybe_paste_with_next): When the token after a ##
13068 is an omitted rest argument, only delete the token before it
13069 if that token is a comma. Do not warn about bogus token
13070 pastes for , ## rest_arg.
13071
13072 * cpp.texi: Update.
13073 * cpp.1: Regenerate.
13074
13075 2000-08-02 Fred Fish <fnf@be.com>
13076
13077 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
13078 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
13079 and later.
13080
13081 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
13082 Be directories to search path.
13083
13084 Remove support for __declspec(dllimport) and __declspec(dllexport).
13085 This is leftover cruft from the earlier BeOS gcc port when BeOS
13086 used Microsoft's PE object file format.
13087 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
13088 * config/i386/t-beos (winnt.o): Remove Makefile frag.
13089 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
13090 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
13091 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
13092 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
13093 (REDO_SECTION_INFO_P): Remove.
13094 (ASM_EXPORT_DECL): Remove.
13095 (ASM_DECLARE_FUNCTION_NAME): Remove.
13096 (ASM_DECLARE_OBJECT_NAME): Remove.
13097 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
13098 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
13099 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
13100 (STRIP_NAME_ENCODING): Remove.
13101
13102 Remove support for obsolete version of BeOS that is no longer
13103 supported by Be.
13104 * configure.in (i*86-*-beospe*): Remove.
13105 * config/i386/beos-pe.h: Remove.
13106
13107 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
13108 Mark Mitchell <mark@codesourcery.com>
13109
13110 * Makefile.in (OBJS): Added dce.o.
13111 (ssa.o): Updated target to include ssa.h.
13112 (flow.o): Likewise.
13113 (toplev.o): Likewise.
13114 (dce.o): Created target.
13115 * basic-block.h: Added comments.
13116 (INVALID_BLOCK): Added definition.
13117 (connect_infinite_loops_to_exit): Added declaration.
13118 Moved SSA declarations to ssa.h.
13119 * flow.c: Added inclusion of ssa.h.
13120 (struct depth_first_search_dsS, depth_first_search_ds):
13121 Added definitions.
13122 (compute_immediate_postdominators): Added definition.
13123 (connect_infinite_loops_to_exit): Likewise.
13124 (flow_dfs_compute_reverse_init): Likewise.
13125 (flow_dfs_compute_reverse_add_bb): Likewise.
13126 (flow_dfs_compute_reverse_execute): Likewise.
13127 (flow_dfs_compute_reverse_finish): Likewise.
13128 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
13129 (LABEL_P): Added definition.
13130 (JUMP_P): Likewise.
13131 (NOTE_P): Likewise.
13132 (BARRIER_P): Likewise.
13133 (JUMP_TABLE_DATA_P): Likewise.
13134 (INSN_DEAD_CODE_P): Likewise.
13135 * ssa.c: Replaced inclusions with ssa.h inclusion.
13136 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
13137 (rename_registers): Removed unnecessary variables.
13138 * ssa.h: Created by moving declarations from ssa.c and
13139 basic-block.h.
13140 * timevar.def: Defined TV_DEAD_CODE_ELIM.
13141 * toplev.c: Added ssa.h inclusion.
13142 (dump_file_index): Added DFI_dce.
13143 (dump_file): Added "dce" entry.
13144 Defined flag_ssa.
13145 (f_options): Added dce entry.
13146 * invoke.texi: Document -fdce. Emphasize experimental status of
13147 -fssa.
13148 * dce.c: New file.
13149
13150 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
13151
13152 * cpperror.c (v_message): Split into _cpp_begin_message and
13153 v_message macro. All callers updated.
13154 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
13155 checks here.
13156
13157 * cppfiles.c (cpp_syshdr_flags): New function.
13158 (read_include_file): Don't call cpp_output_tokens. Call
13159 enter_file hook.
13160 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
13161 (cpp_reader_init): Don't initialize token_buffer. Call
13162 _cpp_init_internal_pragmas.
13163 (cpp_cleanup): Don't clear token_buffer.
13164 (cpp_start_read): Don't worry about output from -D processing.
13165 Don't call cpp_output_tokens.
13166 (cpp_finish): Don't dump macros here. Don't call
13167 cpp_output_tokens.
13168 * cppmacro.c (_cpp_dump_definition): Rename
13169 cpp_dump_definition. Write directly to a FILE *.
13170 (dump_funlike_macro): Delete.
13171 (dump_macro_args): New.
13172
13173 * cpplex.c (TOKEN_LEN): Convert to inline function.
13174 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
13175 cpp_scan_line, _cpp_dump_list): Delete.
13176 (cpp_printf, cpp_output_list): New.
13177 (output_line_command): Don't worry about entering or leaving files.
13178 (cpp_scan_buffer): Just output each token as we hit it.
13179 (process_directive): Don't call cpp_output_tokens.
13180 (_cpp_glue_header_name): Don't use token_buffer.
13181 (output_token, dump_param_spelling): Write directly to a FILE *.
13182
13183 * cpplib.c (pass_thru_directive, dump_macro_name,
13184 pragma_dispatch, do_pragma_gcc): Delete.
13185 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
13186 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
13187 functions.
13188 (do_error, do_warning, pragma_dependency): Call
13189 _cpp_begin_message, then cpp_output_list.
13190 (cpp_register_pragma, cpp_register_pragma_space,
13191 _cpp_init_internal_pragmas): New.
13192 (do_pragma): Walk the pragmas table here.
13193 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
13194 do_pragma_dependency): Return void.
13195 (do_pragma_implementation): Moved to cppmain.c.
13196
13197 * cpplib.h: Update prototypes.
13198 (struct cpp_reader): Remove printer, token_buffer,
13199 token_buffer_size, and limit. Add struct cb, and pragmas.
13200 (struct cpp_printer): Remove last_id and written.
13201 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
13202 CPP_ADJUST_WRITTEN): Delete.
13203 * cpphash.h: Update prototypes.
13204 (ufputs): New wrapper.
13205
13206 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
13207 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
13208 (main): Set up callbacks. Register #pragma implementation.
13209 Dump macros from here.
13210
13211 2000-08-01 Geoff Keating <geoffk@cygnus.com>
13212
13213 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
13214 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
13215 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
13216 insns if they have a REG_MAYBE_DEAD note attached.
13217 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
13218 (rs6000_emit_load_toc_table): TOC loads may go dead.
13219
13220 2000-08-01 Jim Wilson <wilson@cygnus.com>
13221
13222 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
13223 type exists before using it. Use number of words as alignment
13224 otherwise.
13225 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
13226 ia64_va_arg): Propagate ia64_function_args changes here.
13227
13228 2000-08-01 Richard Henderson <rth@cygnus.com>
13229
13230 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
13231 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13232
13233 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
13234
13235 From Joern Rennecke:
13236 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
13237 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
13238 unless TARGET_SH3E is set.
13239 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
13240
13241 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
13242 (ashlsi3_std): New pattern.
13243 (ashlsi3 expander): Use it for TARGET_SH3.
13244 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
13245
13246 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
13247
13248 * loop.c (canonicalize_condition): Use destination, not source to
13249 determine SET's mode.
13250
13251 2000-07-31 Mark Mitchell <mark@codesourcery.com>
13252
13253 * flow.c (clear_log_links): Fix typo.
13254
13255 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
13256
13257 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
13258 on targets which need more than one insn for a compare/cbranch
13259 operation.
13260
13261 2000-07-31 Jim Wilson <wilson@cygnus.com>
13262
13263 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
13264 when computing offset.
13265
13266 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
13267
13268 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
13269
13270 2000-07-31 Geoff Keating <geoffk@cygnus.com>
13271
13272 * flow.c (clear_log_links): Nuke global_live_at_start and
13273 global_live_at_end data, since if the log_links stuff is invalid
13274 so is global_live_at_*.
13275
13276 2000-07-31 Richard Henderson <rth@cygnus.com>
13277
13278 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
13279
13280 2000-07-31 Jakub Jelinek <jakub@redhat.com>
13281
13282 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
13283 (_cpp_get_token): Don't macro expand a just pasted token if it
13284 was pasted at no_expand_level.
13285
13286 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
13287
13288 * cppmacro.c (find_param, count_params, save_expansion):
13289 Permit 'defined' as a macro parameter name.
13290
13291 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
13292
13293 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
13294 xcpp to cpp throughout.
13295 (native): Remove unnecessary dependency on cpp.
13296
13297 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
13298 tradcpp to tradcpp0.
13299 (.i spec): Add missing output-file spec to cc1 command line.
13300 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
13301
13302 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
13303
13304 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
13305 (implicit_decl_warning): New function.
13306 (implicitly_declare): Use it.
13307 * c-typeck.c (build_external_ref): Use implicit_decl_warning
13308 to complain about implicit decls of builtins.
13309
13310 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
13311 based on pedantic && flag_isoc99, if not already set.
13312 * c-tree.h: Declare mesg_implicit_function_declaration.
13313 Prototype implicit_decl_warning.
13314
13315 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
13316
13317 * Makefile.in (ssa.o): Updated header files in dependences.
13318 * basic-block.h: Added compute_immediate_postdominators declaration.
13319 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
13320 definition.
13321 * flow.c (compute_immediate_dominators): Updated comment.
13322 (compute_immediate_postdominators): Added definition.
13323 * rtl.h (HARD_REGISTER_P): Added definition.
13324 * ssa.c: Include additional header files.
13325 (assert): Added definition.
13326 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
13327 include select hard registers.
13328 (ssa_rename_to_insert): Likewise.
13329 (ssa_rename_from_initialize): Likewise.
13330 (ssa_rename_from_lookup): Likewise.
13331 (original_register): Likewise.
13332 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
13333 include select hard reigsters.
13334 (ssa_rename_from_traverse): Likewise.
13335 (ssa_rename_from_free): Likewise.
13336 (ssa_rename_from_print): Likewise.
13337 (ssa_rename_from_print_1): Likewise.
13338 (ssa_rename_from_hash_function): Likewise.
13339 (ssa_rename_from_equal): Likewise.
13340 (ssa_rename_from_delete): Likewise.
13341 (simplify_to_immediate_dominators): Removed in favor of
13342 flow.c:compute_immediate_dominators.
13343 (find_evaluations_1): Modified to work with hard registers.
13344 (insert_phi_node): Likewise.
13345 (insert_phi_nodes): Likewise.
13346 (struct rename_set_data): Updated prev_reg comment.
13347 (create_delayed_rename): Modified to work with hard registers.
13348 (RENAME_NO_RTX): Updated comment.
13349 (apply_delayed_renames): Modified to work with hard registers.
13350 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
13351 (rename_block): Updated to use revised ssa_rename_to interface.
13352 (rename_registers): Updated to use revised ssa_rename_to and
13353 ssa_rename_from interface.
13354 (convert_to_ssa): Revised to use compute_immediate_dominators and
13355 deal with hard registers.
13356 (make_regs_equivalent_over_bad_edges): Modified to work with hard
13357 registers. Added check for illegal unification of hard register.
13358 (make_equivalent_phi_alternatives_equivalent): Modified to work
13359 with hard registers.
13360 (compute_conservative_reg_partition): Likewise.
13361 (coalesce_if_unconflicting): Modified to work with hard registers
13362 and check for conflicting hard registers.
13363 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
13364 registers.
13365 (rename_equivalent_regs_in_insn): Modified to work with hard
13366 registers.
13367 (record_canonical_element_1): Added definition.
13368 (check_hard_regs_in_partition): Added definition.
13369 (convert_from_ssa): Added data structure deallocation and check
13370 for illegal hard register unification.
13371 (conflict_hard_regs_p): Added definition.
13372 * toplev.c (rest_of_compilation): Added comment.
13373
13374 2000-07-31 Anthony Green <green@redhat.com>
13375
13376 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
13377
13378 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
13379
13380 * builtins.c (expand_builtin_apply): Don't defer pop during
13381 argument setup.
13382
13383 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13384
13385 * calls.c (combine_pending_stack_adjustment_and_call): Only use
13386 preferred_unit_stack_boundary when it is > 1.
13387
13388 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
13389
13390 * c-common.c (init_function_format_info): Add C99 format functions
13391 in C99 mode.
13392
13393 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
13394 void' or 'register void' as being the special case of 'void' alone
13395 in a parameter list.
13396
13397 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
13398 discarding qualifiers into a plain warning.
13399
13400 2000-07-31 Kazu Hirata <kazu@hxi.com>
13401
13402 * combine.c: Fix formatting.
13403
13404 * h8300.md: Fix formatting.
13405
13406 * local-alloc.c: Fix formatting.
13407
13408 * h8300.c (get_shift_alg): Remove the variable alg.
13409 (emit_a_shift): Rearrange code to improve readability.
13410
13411 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
13412
13413 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
13414 HImode on all architectures and a combination of HImode and SImode
13415 on H8/300H and H8/S.
13416
13417 * h8300.c (split_adds_subs): Rearrange code for conciseness.
13418
13419 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
13420
13421 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
13422 in my last checkin.
13423
13424 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
13425
13426 * recog.c (extract_insn): Set operand_mode according to
13427 operand if match_operand is VOIDmode.
13428
13429 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
13430
13431 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
13432
13433 2000-07-31 Geoff Keating <geoffk@cygnus.com>
13434
13435 * c-parse.in (extdefs): Call ggc_collect between external
13436 definitions.
13437
13438 2000-07-30 Michael Hayes <mhayes@cygnus.com>
13439 Richard Henderson <rth@cygnus.com>
13440
13441 * Makefile.in (OBJS): Add doloop.o.
13442 * doloop.c: New file.
13443
13444 * final.c (insn_current_reference_address): Return 0 before final.
13445 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
13446 * jump.c (any_uncondjump_p): Likewise.
13447 * loop.c (indirect_jump_in_function): Make static.
13448 (strength_reduce): Call doloop_optimize.
13449 (insert_bct, instrument_loop_bct): Remove.
13450 * loop.h (doloop_optimize): Prototype.
13451 * recog.c (split_all_insns): Split all INSN_P.
13452 * toplev.c (flag_branch_on_count_reg): Default on.
13453
13454 * config/c4x/c4x.c (c4x_optimization_options): Don't set
13455 flag_branch_on_count_reg.
13456 * config/i386/i386.c (override_options): Likewise.
13457 * config/rs6000/rs6000.c (optimization_options): Likewise.
13458
13459 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
13460 (doloop_end): New.
13461 (dbra_ge): Remove, as well as all it's splitters.
13462
13463 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
13464 (doloop_end): New.
13465
13466 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
13467 (ia64_register_move_cost): Declare.
13468 * config/ia64/ia64.c (ar_lc_reg_operand): New.
13469 (struct ia64_frame_info): Add ar_size.
13470 (ia64_compute_frame_size): Set it.
13471 (save_restore_insns): Save and restore ar.lc.
13472 (ia64_register_move_cost): New, moved from header file. Handle
13473 application registers.
13474 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
13475 (emit_insn_group_barriers): Special case doloop_end_internal.
13476 (ia64_epilogue_uses): Mark ar.lc live at end.
13477 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
13478 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
13479 (FIRST_PSEUDO_REGISTER): Make room.
13480 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
13481 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
13482 (REG_ALLOC_ORDER): Update.
13483 (HARD_REGNO_MODE_OK): Update.
13484 (REGISTER_NAMES): Update.
13485 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
13486 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
13487 (REGNO_REG_CLASS): Update.
13488 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
13489 (REGISTER_MOVE_COST): Move out of line.
13490 (PREDICATE_CODES): Update.
13491 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
13492 (addsi3_plus1_alt, adddi3_plus1_alt): New.
13493 (shladd_elim splitter): Allow constants in the predicate.
13494 (doloop_end, doloop_end_internal): New.
13495
13496 2000-07-30 Richard Henderson <rth@cygnus.com>
13497
13498 * genattrtab.c (struct insn_def): Add lineno member.
13499 (struct insn_ent): Likewise.
13500 (struct attr_desc): Likewise.
13501 (struct delay_desc): Likewise.
13502 (struct function_unit_op): Likewise.
13503 (struct function_unit): Likewise.
13504 (check_attr_value): Use message_with_line.
13505 (check_defs): Likewise.
13506 (expand_units): Likewise.
13507 (check_attr_test): Take a lineno argument.
13508 (gen_attr): Likewise.
13509 (gen_insn): Likewise.
13510 (gen_delay): Likewise.
13511 (gen_unit): Likewise.
13512 (main): Give it to them.
13513 (convert_set_attr_alternative): Take an insn_def argument
13514 instead of num_alt and insn_index.
13515 (convert_set_attr): Likewise.
13516 (write_test_expr): Protect INSN_ADDRESSES load
13517 with INSN_ADDRESSES_SET_P.
13518
13519 2000-07-30 Richard Henderson <rth@cygnus.com>
13520
13521 * flow.c (init_propagate_block_info): Use pc_set.
13522
13523 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
13524
13525 * i386.md (*lea_general_[123]) New insns and splits.
13526 (addsi3 to lea splitter): Handle other modes too.
13527 (shlsi3 to lea splitter): Likewise.
13528 (addhi_1_lea, shlhi_1_lea): New patterns.
13529 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
13530
13531 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
13532
13533 * recog.c (general_operand, nonimmediate_operand): Accept
13534 any mode for VOIDmode CONSTANT_P operands.
13535
13536 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
13537
13538 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
13539 instead of replace_rtx.
13540 * recog.c (validate_replace_rtx_subexp): New function.
13541 * recog.h (validate_replace_rtx_subexp): Declare.
13542
13543 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
13544
13545 * combine.c (simplify_set, make_extraction, make_compound_operation
13546 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
13547 as force_to_mode argument.
13548
13549 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
13550
13551 * combine.c (if_then_else_cond): Be sure that mode fits in
13552 HOST_WIDE_INT.
13553
13554 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
13555
13556 * combine.c (record_promoted_value): Allow bitsize of mode
13557 to be equivalent to HOST_BITS_PER_WISE_INT.
13558
13559 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
13560
13561 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
13562 Do not call gen_mode_alignment when mode is BLKmode.
13563
13564 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
13565
13566 * loop.c (express_from_1): Fix call of simplify_gen_binary.
13567
13568 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
13569
13570 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
13571 VOIDmode implies both operands to be VOIDmode.
13572 (simplify_ternary_operation): Compute properly the mode of comparison.
13573 * combine.c (combine_simplify_rtx): Likewise.
13574
13575 2000-07-25 Michael Hayes <mph@paradise.net.nz>
13576
13577 * basic-block.h (struct loops): New field rc_order.
13578 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
13579 (flow_loops_free): Free rc_order.
13580 (flow_depth_first_order_compute): New parameter rc_order.
13581 (flow_loops_find): Allocate rc_order and swap usage with
13582 dfs_order.
13583
13584 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13585 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13586
13587 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
13588 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
13589 (nodb_call, return_from_epilogue): Likewise.
13590 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
13591 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
13592 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
13593 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
13594 (c4x_valid_type_attribute_p): Likewise.
13595 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
13596 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
13597
13598 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13599
13600 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
13601 and loadhi_big_constant if applicable.
13602 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
13603 and add new splitter.s
13604
13605 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13606
13607 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
13608
13609 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13610
13611 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
13612
13613 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13614
13615 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
13616
13617 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13618
13619 * config/c4x/libgcc.S (divqf3): Improve accuracy.
13620
13621 2000-07-27 Mark Mitchell <mark@codesourcery.com>
13622
13623 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
13624 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
13625 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
13626 (get_prev_bb_note): Likewise.
13627 (remove_scope_notes): Likewise.
13628 * flow.c (commit_one_edge_insertion): Likewise.
13629 (merge_blocks_nomove): Likewise.
13630 (verify_flow_info): Likewise.
13631 * gcse.c (insert_insn_end_bb): Likewise.
13632 * reg-stack.c (emit_swap_insn): Likewise.
13633 * ssa.c (first_insn_after_basic_block_note): New function.
13634 (insert_phi_node): Use it.
13635 (rename_block): Likewise.
13636 (eliminate_phi): Likewise.
13637 (make_regs_equivalent_over_bad_edges): Likewise.
13638 (make_equivalent_phi_alternatives_equivalent): Likewise.
13639 (for_each_successor_phi): Likewise.
13640 (convert_from_ssa): Modify phi-node deletion algorithm.
13641
13642 2000-07-29 Andreas Jaeger <aj@suse.de>
13643
13644 * configure.in (mips*-*-linux*): Use mips*el to check for little
13645 endian MIPS, add tmake_file.
13646
13647 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
13648 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
13649 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
13650
13651 2000-07-28 Richard Henderson <rth@cygnus.com>
13652
13653 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
13654 Sign extend mode size before negating.
13655
13656 2000-07-28 Richard Henderson <rth@cygnus.com>
13657
13658 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
13659
13660 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
13661
13662 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
13663 (cse_insn): Likewise.
13664 (addr_affects_sp_p): Likewise.
13665 * expr.c (move_by_pieces): Likewise.
13666 (clear_by_pieces): Likewise.
13667 * gcse.c (oprs_unchanged_p): Likewise.
13668 * haifa-sched.c (sched_analyze_2): Likewise.
13669 * recog.c (offsettable_address_p): Likewise.
13670 * regclass.c (record_address_regs): Likewise.
13671 * reload.c (find_reusable_reload): Likewise.
13672 (push_reload): Likewise.
13673 (operands_match_p): Likewise.
13674 (decompose): Likewise.
13675 (find_reloads_address_1): Likewise.
13676 (find_inc_amount): Likewise.
13677 * reload1.c (elimination_effects): Likewise.
13678 * resource.c (mark_set_resources): Likewise.
13679 * flow.c (attempt_auto_inc): New function; mostly broken out
13680 of find_auto_inc.
13681 (find_auto_inc): Split into two functions and enhanced to
13682 generate POST_MODIFY.
13683 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
13684 * rtl.h (count_all_occurrences): Declare.
13685 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
13686 defined.
13687 * rtlanal.c (count_all_occurrences): New function.
13688 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
13689 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
13690
13691 * config/ia64/ia64-protos.h (destination_operand): Declare.
13692 * config/ia64/ia64.c (destination_operand): New function.
13693 (ia64_print_operand): Handle POST_MODIFY.
13694 (rtx_needs_barrier): Likewise.
13695 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
13696 (HAVE_POST_MODIFY_REG): Define to 1.
13697 (MAX_REGS_PER_ADDRESS): Change to 2.
13698 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
13699 (LEGITIMATE_ADDRESS_REG): New helper macro.
13700 (LEGITIMATE_ADDRESS_DISP): Likewise.
13701 (PREDICATE_CODES): Add entry for destination_operand.
13702 * config/ia64/ia64.md (all mov patterns): Use destination_operand
13703 predicate for operand 0.
13704
13705 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13706
13707 * dwarf2out.c: Indent #error directive.
13708
13709 * gbl-ctors.h: Fix typo in comment.
13710 (__do_global_ctors): Prototype.
13711
13712 * gcse.c (record_one_set, pre_delete): Remove unused variables.
13713
13714 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
13715 (print_operand): Initialize variable `t'.
13716
13717 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
13718
13719 * config/arm/arm.md ("call_value"): removed constraints.
13720 Constraints are ignored in expanders.
13721 (*call_value_reg): split =rf into various constraints.
13722 (*call_value_mem): same
13723 (*call_value_symbol): same
13724 (*sibcall_value_insn): same
13725
13726 2000-07-28 Philipp Thomas <pthomas@suse.de>
13727
13728 * install.texi (--enable-nls): Change the description of the NLS
13729 related configure options to match the current state.
13730 (--with-included-gettext): Likewise.
13731 (--enable-maintainer-mode): New description added.
13732 * extend.texi (-fstrict-prototype): Add missing '.'.
13733
13734 2000-07-27 Jim Wilson <wilson@cygnus.com>
13735
13736 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
13737 DECL_INITIAL (decl) == NULL_TREE.
13738
13739 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
13740
13741 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
13742 on insn-attr.h with it.
13743 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
13744 * insn-addr.h: New header.
13745 (insn_addresses_): Renamed from insn_addresses.
13746 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
13747 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
13748 INSN_ADDRESSES_NEW): New macros.
13749 * genattrtab.c (write_test_expr): Use new macros.
13750 * final.c (insn_addresses, init_insn_lengths): Likewise.
13751 (align_fuzz, shorten_branches): Likewise.
13752 (final): Likewise. Do not reject new insns if their addresses
13753 have been added to INSN_ADDRESSES.
13754 * config/arm/arm.c, config/avr/avr.c: Use new macros.
13755 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
13756 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
13757 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
13758 * config/sh/sh.c: Likewise.
13759 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
13760
13761 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
13762
13763 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
13764
13765 * gcc.c (struct prefix_list): Add member priority.
13766 (enum path_prefix_priority): Declare.
13767 (add_prefix): Replace ``first'' with ``priority''. Append new
13768 entry but keep list in priority order.
13769 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
13770 PREFIX_PRIORITY_LAST to add_prefix.
13771 (process_command): Move include kludge - foo/stageN - to before
13772 foo/include.
13773
13774 2000-07-27 Jason Merrill <jason@redhat.com>
13775
13776 * dwarf2out.c (gen_typedef_die): Abort if we get identical
13777 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
13778
13779 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
13780
13781 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
13782 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
13783
13784 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
13785
13786 * c-decl.c (finish_function): Don't treat 'main' specially unless
13787 flag_hosted. In C99 mode, return 0 from 'main' unless
13788 DEFAULT_MAIN_RETURN is otherwise defined.
13789
13790 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
13791 parameters defaulting to int in an old-style function definition.
13792
13793 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13794
13795 * c-parse.in (string): For -Wtraditional, warn about string
13796 concatenation only once per line.
13797
13798 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
13799
13800 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
13801 for HI-UX/WE2 systems.
13802
13803 2000-07-24 Bruce Korb <bkorb@gnu.org>
13804
13805 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
13806 defining the __xxx_TYPE__ macros.
13807 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
13808 * fixincl/fixlib.h: don't need to include "tm.h" anymore
13809 * fixincl/inclhack.def(type_map): now obsolete
13810
13811 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
13812
13813 * cpp.texi: Append a trailing full-stop to xrefs where needed.
13814
13815 2000-07-26 Dave Pitts <dpitts@cozx.com>
13816
13817 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
13818 routine constants.
13819 (mvs_hash_alias): New function.
13820 (mvs_add_alias): Change argument spacing.
13821 (mvs_need_alias): Change aliasing criteria. Added documentation.
13822 (mvs_get_alias): Change to use hashed name. The hashed name prevents
13823 CSECT name collisions.
13824 (mvs_check_alias): Likewise.
13825 (handle_pragma): Change documentation.
13826 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
13827 mode from SImode to DImode.
13828 (iorhi3): Changed LTORG size for insn.
13829
13830 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
13831
13832 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
13833 mem if the address is a mode_dependent_address_p.
13834
13835 2000-07-26 Kazu Hirata <kazu@hxi.com>
13836
13837 * h8300.c (print_operand): Print ":8" when the 'R' operand is
13838 suitable for 8-bit absolute.
13839 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
13840 (OK_FOR_U): Add a case for the 8-bit constant address on the
13841 H8/300H.
13842
13843 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
13844
13845 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
13846 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
13847 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
13848 lack of implemented alignment.
13849
13850 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
13851
13852 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
13853 cross-compiling between 64-bit and 32-bit machines.
13854
13855 2000-07-27 Richard Henderson <rth@cygnus.com>
13856
13857 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
13858 (movhicc_astep, movhi_internal_astep): New.
13859 (movsicc_astep, movsi_internal_astep): New.
13860 (movdicc_astep, movdi_internal_astep): New.
13861 (movsfcc_astep, movsf_internal_astep): New.
13862 (movdfcc_astep, movdf_internal_astep): New.
13863 (movxfcc_astep, movxf_internal_astep): New.
13864 (cmovdi_internal_astep, cmovsi_internal_astep): New.
13865 Unify the cmov[ds]i splitters.
13866
13867 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
13868
13869 * real.c (asctoeg): Rename `error' label to unexpected_char_error
13870
13871 2000-07-26 Nick Clifton <nickc@cygnus.com>
13872
13873 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
13874 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
13875
13876 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
13877 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
13878
13879 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
13880
13881 * c-decl.c (finish_enum): Convert enumerations that fit in an
13882 `int' to `int'.
13883 (build_enumerator): In pedantic mode, cast to `int' those that
13884 don't.
13885
13886 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
13887
13888 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
13889
13890 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13891
13892 * sh.md (cmpgtdi_t): Must be split.
13893 (cmpgtdi_t+1): New splitter.
13894
13895 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
13896
13897 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
13898 warnings for indented directives even if we are skipping.
13899
13900 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
13901
13902 * invoke.texi (strict-prototypes): Remove.
13903 * extend.texi (Deprecated Features): Add strict-prototypes.
13904 (Backwards Compatibility): New node.
13905
13906 2000-07-25 Jakub Jelinek <jakub@redhat.com>
13907
13908 * config/i386/i386.md (andsi_1+1): Allow HImode.
13909 (andsi_1+2): Require q_regs_operand.
13910
13911 2000-07-25 Jakub Jelinek <jakub@redhat.com>
13912
13913 * config/i386/i386.md (call_pop): Check operands[0],
13914 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
13915 (call): Likewise.
13916 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
13917 (call_value): Likewise.
13918
13919 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
13920
13921 * toplev.c (pipe_closed): Delete.
13922 (crash_signal): New. Generate ICE for a fatal signal.
13923 (float_signal): Call crash_signal outside a float-handler
13924 block, not abort.
13925 (main): Install crash_signal as handler for core-dumping signals.
13926
13927 2000-07-25 David Edelsohn <edelsohn@gnu.org>
13928
13929 * rs6000.c (print_operand, case 'T'): New case.
13930
13931 * rs6000.md (call_indirect_aix32): Convert to expander of
13932 scheduled instructions.
13933 (call_indirect_aix64): Likewise.
13934 (call_value_indirect_aix{32,64}): Likewise.
13935 (call, call_value): Invoke expanders for AIX. Fall through to
13936 matchers for SysV.
13937 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
13938 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
13939 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
13940 only "g" constraint.
13941 (call_nonlocal_aix64): Likewise.
13942 (call_value_nonlocal_aix{32,64}): Likewise.
13943 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
13944 operands.
13945 (call_value_nonlocal_sysv): New pattern.
13946 (indirect_jump{si,di}): Use new 'T' modifier.
13947 (tablejump{si,di} matchers): Likewise.
13948 (return_internal_{si,di}): Likewise.
13949 (return_eh_{si,di}): Likewise.
13950
13951 2000-07-24 Richard Henderson <rth@cygnus.com>
13952
13953 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
13954 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
13955 * config/ia64/ia64.md (movdi_internal): Use it.
13956
13957 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
13958
13959 * cppexp.c: Warn about unary + if -Wtraditional.
13960 * cpplex.c (lex_line): Always set BOL on the first token of a line.
13961
13962 2000-07-24 Michael Meissner <meissner@redhat.com>
13963
13964 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
13965 unsupported macro.
13966
13967 2000-07-24 Nick Clifton <nickc@cygnus.com>
13968
13969 * config/arm/arm.c (emit_multi_reg_push): Generate a
13970 REG_FRAME_RELEATED_NOTE that is compatable with the code in
13971 dwarf2out_debug_frame_expr.
13972
13973 2000-07-24 Jason Merrill <jason@redhat.com>
13974
13975 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
13976 UNALIGNED_INT_ASM_OP.
13977 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
13978 a location expression.
13979 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
13980 assume indirect access if we're saving the CFA address exactly.
13981
13982 * Makefile.in (bootstrap): Move -BstageN/ to the end.
13983
13984 2000-07-24 Jakub Jelinek <jakub@redhat.com>
13985
13986 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
13987 as well.
13988
13989 2000-07-24 Michael Meissner <meissner@redhat.com>
13990
13991 * invoke.texi (D30V Options): Add d30v options.
13992
13993 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
13994
13995 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
13996 needed by our gcse pass anymore.
13997 (free_pre_mem): Corresponding changes.
13998 (compute_pre_data): Do not call compute_transpout anymore.
13999
14000 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
14001 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
14002 changes.
14003
14004 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
14005 (compute_pre_data): Do it here instead.
14006
14007 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
14008 'temp_bitmap'.
14009 (pre_delete): Corresponding changes.
14010
14011 2000-07-23 Mark Mitchell <mark@codesourcery.com>
14012
14013 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
14014 to figure out whether or not a variable has already been emitted.
14015
14016 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
14017
14018 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
14019 instead of gen_call.
14020
14021 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
14022
14023 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
14024
14025 2000-07-23 Kazu Hirata <kazu@hxi.com>
14026
14027 * h8300.c: Fix formatting.
14028
14029 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
14030
14031 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
14032 for `long' switch expression into a plain warning.
14033
14034 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
14035 (yylex): Don't pedwarn for "inline" in C99 mode.
14036
14037 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
14038 with %p.
14039 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
14040 ggc_alloc): Likewise.
14041 * bb-reorder.c (dump_scope_forest_1): Likewise.
14042
14043 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
14044
14045 * reload.c (find_reloads_toplev): Add new parameter
14046 "address_reloaded".
14047 (find_reloads): Add new parameter to find_reloads_toplev calls.
14048
14049 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
14050
14051 * collect2.c (main): Typo fixed.
14052 * diagnostic.c: Typo fixed.
14053 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
14054 * eh-common.h: Typo fixed.
14055 * emit-rtl.c (start_sequence): Typo fixed.
14056 * flow.c (find_label_refs): Typo fixed.
14057 (calculate_global_regs_live): Typo fixed.
14058 (mark_regno_cond_dead): Typo fixed.
14059 (create_edge_list): Typos fixed.
14060 (verify_edge_list): Typo fixed.
14061 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
14062 * loop.c (strength_reduce): Typo in function name fixed.
14063 * rtl.h: Added comments. Typo in function name fixed.
14064 * rtlanal.c: Typo in function name fixed.
14065 (insn_dependant_p): Rename to ...
14066 (insn_dependent_p): ... this.
14067 (computed_jumo_p): Typo fixed.
14068
14069 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14070
14071 * system.h (__FUNCTION__): Wrap definition in #ifndef.
14072
14073 2000-07-21 David Edelsohn <edelsohn@gnu.org>
14074
14075 * rs6000.h (SIZE_TYPE): Define.
14076
14077 2000-07-21 Mark Mitchell <mark@codesourcery.com>
14078
14079 * ssa.c (rename_insn_1): Don't rename registers that are
14080 CLOBBERed.
14081
14082 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
14083
14084 * diagnostic.c (trim_filename, fancy_abort): Moved here from
14085 rtl.c.
14086 (fatal_function, set_fatal_function): Removed.
14087 (fatal): Don't prepare for or call the fatal_function.
14088 (diagnostic_lock, error_recursion): New.
14089 (diagnostic_for_decl, report_diagnostic): Guard against
14090 re-entering the error reporting routines.
14091 (fancy_abort): Assume function is not NULL.
14092
14093 * errors.c (fancy_abort): New. Assume function is not NULL.
14094 * tradcpp.c (fancy_abort): Assume function is not NULL.
14095
14096 * system.h: Provide default definition of __FUNCTION__.
14097 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
14098 Always use __FUNCTION__ in definition of abort.
14099 * tree.h: Likewise.
14100 * varray.h: Likewise.
14101 * toplev.h: Likewise. Don't prototype set_fatal_function.
14102
14103 2000-07-20 Geoff Keating <geoffk@cygnus.com>
14104
14105 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
14106 in 64-bit mode.
14107 * glimits.h: Don't do #if defined for ARCH_PPC.
14108
14109 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
14110 constants of size no larger than a pointer should go in the TOC.
14111 Add 'MODE' parameter.
14112 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
14113 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
14114 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
14115 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
14116 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
14117 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
14118 (rs6000_legitimize_address): Likewise.
14119 (rs6000_emit_move): Likewise.
14120 (rs6000_select_rtx_section): Likewise.
14121 (output_toc): Deal properly with outputting small constants like
14122 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
14123 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
14124 MODE parameter. Put small constants in the TOC.
14125
14126 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
14127 easy in SImode.
14128 (rs6000_emit_move): When reload calls us with an illegitimate
14129 address, exit early. Move the change_address calls to one place
14130 at the end of the routine. Merge the SImode and DImode expanders.
14131 When called by reload to put an integer into a FP register, force
14132 it to memory.
14133
14134 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
14135 field.
14136 (rs6000_hash_constant): Hash mode too.
14137 (toc_hash_function): Allow for key_mode.
14138 (toc_hash_eq): Structures are different if key_mode differs.
14139 (output_toc): Add 'mode' parameter. Save key_mode.
14140 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
14141 Pass 'mode' parameter.
14142 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
14143
14144 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
14145 for vtable references.
14146
14147 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
14148 choice, don't put integer values in FP regs.
14149
14150 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
14151
14152 * flow.c (verify_flow_info): Revamp code to verify that the
14153 head and end of each basic block are in the insn chain.
14154
14155 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
14156
14157 * gcse.c (record_one_set): Prepend instead of append onto
14158 reg_set_table, making it O(n) instead O(n^2).
14159 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
14160 Use a queue instead of a stack as worklist.
14161
14162 2000-07-20 Kazu Hirata <kazu@hxi.com>
14163
14164 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
14165 * h8300.h (OK_FOR_T): New.
14166 (EXTRA_CONSTRAINT): Support OK_FOR_T.
14167 * h8300.md: Use inc/dec.[wl] for increment/decrement
14168 by 1 and 2 in HI and SI modes.
14169
14170 2000-07-20 Jim Wilson <wilson@cygnus.com>
14171
14172 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
14173 larger than 14 bits.
14174
14175 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
14176
14177 * cppmacro.c (CAN_PASTE_AFTER): New macro.
14178 (count_params): Don't set GNU_REST_ARGS on anything.
14179 (save_expansion): Set PASTE_LEFT only on tokens for which
14180 CAN_PASTE_AFTER is true, or which are named operators.
14181
14182 * cpplex.c (parse_args): Distinguish between a rest argument
14183 given one empty argument, and a rest argument given zero arguments.
14184 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
14185 deletion of previous token based on that.
14186 (get_raw_token): Flatten some control structure.
14187
14188 * cpplib.h (CPP_LAST_EQ): Correct.
14189 (VOID_REST): New token flag.
14190 (GNU_REST_ARGS): Delete.
14191
14192 * tradcpp.c (main): Don't munge -D options.
14193 (make_definition): Bring -D handling in line with cpplib.
14194 (do_define): Strip all leading whitespace from macro definitions.
14195
14196 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
14197
14198 * Makefile.in (tradcpp): Depend on intl.o and version.o.
14199
14200 2000-07-20 Bruce Korb <bkorb@gnu.org>
14201
14202 * fixincl/check.tpl: strip the platform specific types before testing
14203 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
14204 * fixincl/fixincl.tpl: use platform specific types
14205 * fixincl/fixlib.h: include the platform specific types
14206 * fixincl/inclhack.def(gnu_types): don't supply the types
14207 * fixincl/fixincl.x: regen
14208
14209 2000-07-19 Jim Wilson <wilson@cygnus.com>
14210
14211 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
14212 GR_REGS.
14213
14214 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
14215
14216 * tradcpp.c (rescan): Do not recognize directives when the #
14217 is indented.
14218
14219 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
14220
14221 Implement C++ named operators.
14222
14223 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
14224 of operators allowed in #if and having an _EQ variant. Add
14225 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
14226 (cpp_token flags): Add NAMED_OP.
14227 (enum node_type): Add T_OPERATOR.
14228 (struct cpp_hashnode): Add code slot to value union.
14229 * cpphash.h (spec_nodes): Remove n_defined.
14230
14231 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
14232 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
14233 (is_macro_disabled): Tweak error messages.
14234
14235 * cpplib.c (get_define_node): Disallow all named operators as
14236 macro names. Tweak error messages.
14237 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
14238
14239 * cppinit.c (builtin_array): Add entries for the named operators.
14240 * cppexp.c (lex): Check for CPP_DEFINED token.
14241 (priority table): Add entries for CPP_MIN and CPP_MAX.
14242 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
14243
14244 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
14245
14246 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
14247 larger than the array of cuids.
14248 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
14249 cuids.
14250
14251 2000-07-19 Bruce Korb <bkorb@gnu.org>
14252
14253 * fixinc/fixincl.c: Convert to using a table of environment variables
14254 and activate the auto-edit marker on the fixed output files.
14255 * fixinc/fixlib.h: Define the environment table
14256 * fixinc/fixincl.sh: export the ${INPUT} dir
14257 * fixinc/check.tpl: likewise
14258
14259 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
14260
14261 * gcc.c (.h spec): Fix typo.
14262
14263 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
14264
14265 * Makefile.in: Fix tradcif.c path.
14266
14267 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
14268
14269 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
14270 macros, not five.
14271
14272 * cpphash.h (TOKEN_NAME): New macro.
14273 (_cpp_spell_operator): Deleted.
14274 (token_spellings): Now _cpp_token_spellings.
14275
14276 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
14277 * cpplex.c: Use OP and TK macros when expanding the
14278 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
14279 store the stringification of the enumeration name (CPP_CHAR,
14280 etc.) in the name slot of token_spellings.
14281 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
14282 token_spellings directly.
14283 * cpplib.c: Use TOKEN_SPELL.
14284
14285 * cpplex.c (_cpp_push_token): If the token being pushed back
14286 is the previous token in this context, just subtract one from
14287 context->posn.
14288 * cppmacro.c (save_expansion): Clear aux field when storing a
14289 placemarker.
14290
14291 2000-07-18 Jakub Jelinek <jakub@redhat.com>
14292
14293 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
14294 buffer, provided it is not NULL.
14295
14296 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
14297
14298 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
14299 case of invalid volatile re-declaration.
14300
14301 2000-07-18 Jakub Jelinek <jakub@redhat.com>
14302
14303 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
14304 (expand_call): Adjust caller.
14305
14306 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
14307
14308 * diagnostic.h (report_diagnostic): Change prototype.
14309
14310 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
14311 diagnostic_for_decl): Change prototype.
14312 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
14313 error, warning, error_with_file_and_line,
14314 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
14315 Adjust call to report_diagnostic, diagnostic_for_decl.
14316 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
14317 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
14318
14319 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
14320 varaible argument list.
14321
14322 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
14323
14324 * cpphash.c: Don't include hashtab.h. Most macro-handling code
14325 moved to cppmacro.c.
14326 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
14327 dump_hash_helper): Delete.
14328 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
14329 cpp_forall_identifiers): New. Implement specialized version of
14330 Vlad's expandable hash table.
14331 (cpp_lookup): Use new functions.
14332 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
14333 implementation.
14334 * cppmacro.c: New file.
14335 * cppinit.c (dump_macros_helper): New.
14336 (cpp_finish): Iterate over the identifier table directly.
14337 * cpplex.c (parse_name): Calculate the hash of the identifier
14338 while we scan it. Use _cpp_lookup_with_hash when we can.
14339
14340 * cpphash.h: Update prototypes.
14341 (xcnewvec, HASHSTEP): New helper macros.
14342 * cpplib.h: Update prototypes.
14343 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
14344 (cppmacro.o): New rule.
14345 (cpphash.o): Update deps.
14346
14347 * cppmain.c: Do not set pfile->printer if no_output is on.
14348
14349 2000-07-15 Neil Booth <neilb@earthling.net>
14350
14351 * cpplib.c: Change all directive-handler functions to return
14352 void, not int.
14353 * cpphash.h: Update typedefs.
14354
14355 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
14356
14357 * configure: Regenerate.
14358
14359 * extend.texi (Extended Asm): Mention that a memory clobber
14360 does not count as a side-effect.
14361
14362 * unroll.c (copy_loop_body): Fix one instance of using host
14363 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
14364 cross-compile.
14365
14366 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
14367
14368 2000-07-17 Richard Henderson <rth@cygnus.com>
14369
14370 * config/ia64/ia64.md (movdi): Split out load address code.
14371 New post-reload splitter for symbolic operands.
14372 (movdi_internal): Abort if we didn't split symbolic operands
14373 when we should have.
14374 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
14375 (ia64_reorg): Split insns when not optimizing.
14376 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
14377
14378 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
14379
14380 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
14381 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
14382
14383 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
14384
14385 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
14386
14387 2000-07-17 Jason Merrill <jason@redhat.com>
14388
14389 * Makefile.in (clean): Remove libgcc directory.
14390
14391 * configure.in (-Wno-long-long check): Use higher-level macros.
14392
14393 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
14394
14395 * simplify-rtx.c (simplify_binary_operation): Recognize
14396 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
14397 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
14398 a CONST_INT, it will always be zero.
14399
14400 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
14401
14402 * loop.c (check_dbra_loop) : Return if more than one condition is
14403 present to control the loop.
14404
14405 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
14406
14407 * mips.c (mips_expand_prologue): Don't calculate the last argument
14408 register unless we need it. When we are calculating this, make
14409 sure FUNCTION_ARG is giving us a REG.
14410
14411 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14412
14413 * flow.c (libcall_dead_p): Use single_set to verify the insn
14414 has only one set and get for analysis.
14415 (propagate_one_insn): Don't pass the PATTERN of the insn.
14416
14417 2000-07-17 Mark Klein <mklein@dis.com>
14418
14419 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
14420
14421 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
14422
14423 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
14424 * configure.in (TARGET_GETGROUPS_T): Evaluate.
14425 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
14426 of second argument of getgroups.
14427 * configure, config.in: Rebuilt.
14428
14429 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
14430
14431 * simplify-rtx.c (simplify_relational_operation): Two signed
14432 values with equal high words are less/greater than each other if
14433 their low words are less/greater when considered as unsigned.
14434
14435 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
14436
14437 * configure.in (vax-*-openbsd): Change to new style configuration,
14438 add collect2/float_format information.
14439 * configure: Rebuilt.
14440 * config/vax/openbsd1.h: New.
14441 * config/vax/openbsd.h: New.
14442 * config/vax/t-openbsd: New.
14443
14444 2000-07-17 Chip Salzenberg <chip@valinux.com>
14445
14446 * c-common.c (shorten_compare): Quiet warnings about unsigned
14447 comparisons with zero when they occur in a system header.
14448
14449 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
14450
14451 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
14452 update to describe current practice.
14453
14454 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
14455
14456 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
14457 references to C9X. Change references to -fstd and -flang-isoc9x
14458 to refer to -std.
14459
14460 * c-common.c (scan_char_table): Allow "z" length modifiers on
14461 diouxXn formats.
14462 (check_format_info): Use TYPE_DOMAIN on the type matched against
14463 for "z" formats, to retrieve the language size_t rather than the
14464 internal one.
14465
14466 * c-common.c (check_format_info): Do not make a pedantic objection
14467 to the 'L' length modifier if used with a floating point type
14468 character.
14469
14470 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
14471 constants in C99 mode.
14472
14473 2000-07-17 Kazu Hirata <kazu@hxi.com>
14474
14475 * h8300.md: Fix the format of mac.
14476 (movsi_h8300hs): Output a tab after stmac instead of a space.
14477
14478 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
14479 profitable adds/subs sequences.
14480
14481 * fold-const.c: Fix comment typos.
14482
14483 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
14484
14485 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
14486
14487 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14488
14489 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
14490
14491 2000-07-16 Neil Booth <NeilB@earthling.net>
14492
14493 * cpplex.c: Update comments.
14494 * README.Portability: Small update.
14495
14496 2000-07-16 Neil Booth <NeilB@earthling.net>
14497
14498 * README.Portability: Small update.
14499
14500 2000-07-15 Richard Henderson <rth@cygnus.com>
14501
14502 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
14503 * config/ia64/ia64.c (ia64_move_ok): New function.
14504 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
14505 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
14506
14507 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
14508
14509 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
14510 immediately following a paste operator.
14511 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
14512 (cpp_reader_init): Call it, if HOST_EBCDIC.
14513 (cpp_handle_options): Do not sort option list here.
14514 (handle_option): Rename to cpp_handle_option and export.
14515 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
14516 _cpp_get_token directly.
14517 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
14518 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
14519 * cpplib.h: Prototype cpp_handle_option. Update prototype of
14520 cpp_scan_line.
14521
14522 2000-07-15 Richard Henderson <rth@cygnus.com>
14523
14524 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
14525 cast around an expression. Tidy other unsigned tests.
14526
14527 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
14528
14529 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
14530 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
14531 (v_message_with_decl): Rename to ...
14532 (format_with_decl): ... this. Tweak
14533 (diagnostic_for_decl): New function.
14534 (fatal_io_error): Use verbatim in lieu of notice.
14535 (announce_function): Use verbatim.
14536 (default_print_error_function): Likewise.
14537 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
14538 infratructure.
14539
14540 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14541
14542 * mips.c (function_arg_pass_by_reference): Don't do automatic
14543 aggregate initialization.
14544 (machine_dependent_reorg): Initialize variable `mode'.
14545
14546 * mips.md (absdi2): Change variable `regno1' to unsigned int.
14547 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
14548 conflicts with sys/param.h macro of the same name.
14549 (reload_outdi): Likewise.
14550
14551 2000-07-15 Michael Meissner <meissner@redhat.com>
14552
14553 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
14554 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
14555 create a new node instead.
14556
14557 2000-07-15 Neil Booth <NeilB@earthling.net>
14558
14559 * README.Portability: Correct example about calling a function
14560 through a pointer to function. Format wide paragraphs.
14561
14562 2000-07-15 Michael Meissner <meissner@redhat.com>
14563
14564 * README.Portability: Update integer suffixes and function
14565 prototype sections.
14566
14567 2000-07-15 Neil Booth <NeilB@earthling.net>
14568
14569 * README.Portability: Small update.
14570
14571 2000-07-15 Neil Booth <NeilB@earthling.net>
14572
14573 * README.Portability: New file.
14574
14575 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
14576
14577 * INSTALL: Give special instructions for building GCC on Irix 6.
14578 * config/mips/x-iris6 (CC): Don't set it.
14579 (OLDCC): Likewise.
14580
14581 2000-07-14 Jason Merrill <jason@redhat.com>
14582
14583 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
14584 register in the stack and later in another register, use the new
14585 register.
14586
14587 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
14588
14589 * config/mips/mips.md: (absdi2): Handle sign_extend for
14590 second operand.
14591
14592 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
14593
14594 * cpplib.c (do_pragma_dependency): Tidy warning messages.
14595
14596 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
14597
14598 * .cvsignore: Correct typo.
14599
14600 2000-07-13 Mark Mitchell <mark@codesourcery.com>
14601
14602 * .cvsignore: Add generated YACC files.
14603 * objc/.cvsignore: New file.
14604
14605 2000-07-14 Neil Booth <NeilB@earthling.net>
14606
14607 * cpplex.c (adjust_column): New funcion.
14608 (skip_whitespace): Use it.
14609 (skip_block_comment): Use it, and warn about /*/* with
14610 -Wcomments.
14611
14612 2000-07-14 Neil Booth <NeilB@earthling.net>
14613
14614 * cpphash.c (struct macro_info): Add new members.
14615 (_cpp_free_definition): Delete the macro directly.
14616 (count_params): Return void, with first token of
14617 expansion in struct macro_info on success.
14618 (parse_define): Return int. Hoist syntax checking from
14619 save_macro_expansion. Leave call to save_expansion to
14620 _cpp_create_definition.
14621 (alloc_macro): Needs just 2 arguments.
14622 (free_macro): Delete.
14623 (save_expansion): Don't perform syntax check.
14624 (_cpp_create_definition): Call save_expansion.
14625
14626 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14627
14628 * genrecog.c (write_header): Split long string.
14629
14630 * cpphash.c (macro_info): Don't use the `signed' keyword.
14631
14632 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
14633
14634 2000-07-13 Jakub Jelinek <jakub@redhat.com>
14635
14636 * calls.c (stored_args_map): New variable.
14637 (check_sibcall_argument_overlap_1): New.
14638 (check_sibcall_argument_overlap): New.
14639 (expand_call): Initialize stored_args_map.
14640 Call check_sibcall_argument_overlap.
14641
14642 2000-07-13 Bruce Korb <bkorb@gnu.org>
14643
14644 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
14645 (emit_gnu_type): utility procedure for gnu_type_fix
14646 (gnu_type_fix): implement various pre-processor guards around
14647 standard types so these types can be defined over and over
14648 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
14649 types alluded to above will have GNU-compliant base types
14650 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
14651 * fixinc/inclhack.def: add test_text entries and utilize the new
14652 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
14653 * fixinc/fixincl.x: regenerate
14654
14655 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14656
14657 * diagnostic.c (vline_wrapper_message_with_location,
14658 v_message_with_file_and_line, v_error_with_file_and_file,
14659 v_error_for_asm, v_warning_for_asm, vfatal,
14660 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
14661 vsorry, verror, vwarning, vpedwarn): Remove.
14662 (diagnostic_for_asm): New function.
14663 (pedwarn, error, warning, pedwarn_with_file_and_line,
14664 error_with_file_and_line, warning_with_file_and_line, sorry,
14665 error_for_asm, warning_for_asm, fatal): Reimplement.
14666 (finish_diagnostic): Clear diagnostic info as well.
14667
14668 2000-07-13 Neil Booth <NeilB@earthling.net>
14669
14670 * c-common.h (flag_digraphs): New.
14671 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
14672 * c-lex.c (yylex): Use flag_digraphs to decide whether to
14673 honour digraphs.
14674
14675 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
14676
14677 * gcc.c (do_spec_1): Add new %B operator.
14678 (set_input): Prepare for %B.
14679
14680 (link_command_spec): Move up with the other tm.h-
14681 overrideable specs. Factor out the portion conditional on
14682 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
14683 (struct compiler): Just have a single spec string. All users
14684 updated.
14685 (default_compilers): Remove unnecessary braces.
14686 (static_specs): Update.
14687
14688 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
14689 named specs.
14690 (C and assembly specs): Use the new named specs, as appropriate.
14691
14692 * objc/lang-specs.h: Use the new named specs.
14693 Remove unnecessary braces.
14694
14695 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14696
14697 * gcc.c (execute): If a subprocess gets a fatal signal, report
14698 strsignal() of the signal number, and ask for a bug report.
14699 Do not do this for SIGPIPE if there's already been an error.
14700
14701 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
14702 Delete pipe_closed.
14703
14704 * tradcif.c: Remove.
14705
14706 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14707
14708 * final.c (profile_function): Do not emit profile counters in
14709 the data section, if NO_PROFILE_COUNTERS is defined.
14710 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
14711 FUNCTION_PROFILER.
14712
14713 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
14714 (FUNCTION_PROFILER): Just emit a call to mcount.
14715
14716 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14717
14718 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
14719
14720 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
14721 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
14722 traditional, lang_chill, or lang_fortran.
14723
14724 * cppfiles.c: #undef strcmp to suppress warning about macros
14725 used without arguments.
14726 (_cpp_execute_include): Use f, not fname, in "No include path"
14727 error.
14728 (_cpp_pop_file_buffer): New function.
14729 * cpplib.c: Don't include <sys/mman.h>.
14730 (cpp_push_buffer): Set line_base and lineno in new buffer.
14731 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
14732
14733 * cpplex.c: Move all prototypes and structure declarations to the
14734 top of the file. Properly parenthesise some macro arguments.
14735 (cpp_scan_line): New function.
14736 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
14737 don't need to walk up the stack counting.
14738
14739 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14740
14741 * c-common.c (combine_strings): Emit a pedantic warning when a
14742 string length is greater than the minimum ANSI C is required
14743 to support.
14744
14745 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
14746
14747 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
14748 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
14749
14750 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14751
14752 * c-decl.c (define_label): Warn about identifier conflicts with
14753 labels in traditional C.
14754
14755 * c-parse.in (unop +): Warn about the unary plus operator for
14756 traditional C.
14757
14758 * c-typeck.c (store_init_value): Warn about automatic aggregate
14759 initialization for traditional C.
14760
14761 * invoke.texi (-Wtraditional): Document new warnings.
14762
14763 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
14764
14765 * Makefile.in (c-errors.o): Fix thinko in dependency.
14766
14767 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14768
14769 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
14770 -traditional, -ftraditional, or -traditional-cpp was given.
14771 Do not pass -traditional to the preprocessor.
14772 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
14773 preprocessor does it automatically.
14774 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
14775
14776 * ch/lang-specs.h: Always use tradcpp. Do not pass
14777 -traditional, -trigraphs, or -pedantic to the preprocessor.
14778 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
14779 _LANGUAGE_FORTRAN.
14780
14781 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14782
14783 * cppexp.c (LOGICAL): Delete macro.
14784 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
14785 and && directly.
14786
14787 * cpphash.c (HASHSIZE): Increase to 4096.
14788 (struct hashdummy): Add hash field.
14789 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
14790 the string values using memcmp.
14791 (cpp_lookup): Set dummy.hash.
14792
14793 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
14794
14795 * configure.in (m88k-openbsd): Express configuration using new fragment
14796 style.
14797 * configure: Rebuilt.
14798 * m88k/aout-dbx.h: New.
14799 * m88k/openbsd.h: New.
14800 * m88k/xm-openbsd.h: New.
14801
14802 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14803
14804 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
14805
14806 2000-07-12 Richard Henderson <rth@cygnus.com>
14807
14808 * reload.c (push_secondary_reload): Make sure to add the new
14809 reload at the end, after acquiring secondary memory.
14810
14811 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14812
14813 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
14814
14815 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
14816 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
14817
14818 * c-parse.in (stmt): Delete unused variables.
14819
14820 * convert.c (convert_to_vector): Likewise.
14821
14822 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
14823
14824 * tree.c (finish_vector_type): Prototype.
14825
14826 2000-07-12 Bruce Korb <bkorb@gnu.org>
14827
14828 * fixinc/fixfixes.c: use xmalloc
14829 * fixinc/fixincl.c(initialize): set program name for xmalloc
14830 * fixinc/fixlib.c(must_malloc): obsolete
14831 (is_cxx_header): no longer used - disabled
14832 (skip_quote): inserted and disabled for future use
14833 * fixinc/fixlib.h: reflects above
14834 * fixinc/fixtests.c: removed dinkleberries
14835
14836 2000-07-12 Neil Booth <NeilB@earthling.net>
14837
14838 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
14839 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
14840
14841 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
14842 struct toklist_dummy): New.
14843 (cpp_free_definition): Free macros with free_macro.
14844 (count_params): Don't save paramter spellings. Save macro
14845 information in a struct macro_info.
14846 (parse_define): Don't allocate a token list.
14847 (save_expansion): Allocate the macro's token list, and
14848 save parameter spellings if necessary. Use TOKEN_SPELL.
14849 (cpp_create_definition): Make list const.
14850
14851 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
14852
14853 * c-typeck.c (pedwarn_c99): Move to
14854 * c-errors.c: ... Here.
14855 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
14856 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
14857 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
14858 (c-errors.o): List dependency.
14859
14860 2000-07-12 Mark Mitchell <mark@codesourcery.com>
14861
14862 * c-parse.c: Remove.
14863 * c-parse.h: Likewise.
14864 * c-parse.y: Likewise.
14865 * objc/objc-parse.c: Likewise.
14866 * objc/objc-pasre.y: Likewise.
14867
14868 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
14869
14870 * gcc.texi: Fix minor typos
14871 * extend.texi: Fix minor typos
14872
14873 2000-07-11 Marc Espie <espie@openbsd.org>
14874
14875 * collect2.c (main): Recognize .lo as object files.
14876
14877 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
14878
14879 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
14880 true.
14881
14882 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
14883 with MAP_ANONYMOUS and MAP_ANON.
14884 * configure, config.in: Rebuilt.
14885
14886 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
14887
14888 * diagnostic.c (save_output_state): Remove.
14889 (restore_output_state): Likewise.
14890 (clear_text_info): New function.
14891 (clear_diagnostic_info): Likewise.
14892 (output_text_length, is_starting_newline, output_prefix,
14893 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
14894 prefixing_policy, output_buffer_ptr_to_format_args): New macros
14895 (set_real_maximum_length, output_set_maximum_length,
14896 output_set_prefix, output_get_prefix, output_set_maximum_length,
14897 output_destroy_prefix, init_output_buffer,
14898 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
14899 output_add_newline, output_add_character, output_add_space,
14900 output_append_r, output_append, wrap_text, output_format,
14901 output_do_printf, output_printf, output_do_verbatim,
14902 output_verbatim, verbatim): Use them.
14903 (output_clear): Split into cleat_text_info and
14904 clear_diagnostic_info.
14905 (struct output_state): Move to...
14906
14907 * diagnostic.h: ...Here
14908 (struct output_buffer): Adjust.
14909
14910 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
14911
14912 * cpplex.c (parse_name): No longer inline (premature optimization).
14913 (do_pop_context): Fold into pop_context.
14914 (pop_context): Returns int.
14915 (lex_next): Hoist test for end of directive into pop_context.
14916 (push_macro_context): Returns int; takes just reader and token.
14917 Hoist test for excessive nesting to caller.
14918 (push_arg_context): Returns void; takes just reader and token.
14919 Do not call stringify_arg or get_raw_token.
14920 (get_raw_token): Convert tail recursion through push_arg_context
14921 to a loop at this level. Call stringify_arg here if appropriate.
14922 (maybe_paste_with_next): Convert tail recursion to a while loop.
14923 Hoist test of paste_level to caller.
14924
14925 (stringify_arg): Push arg context at beginning.
14926 (cpp_get_token): Split out core into _cpp_get_token. Call
14927 process_directive here. Throw away CPP_PLACEMARKER tokens.
14928 (_cpp_get_token): Convert tail recursion through
14929 push_macro_context to a loop at this level.
14930 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
14931 _cpp_get_raw_token): Use _cpp_get_token.
14932 (_cpp_skip_rest_of_line): Drop the context stack directly; do
14933 not call pop_context.
14934 (_cpp_run_directive): Call lex_next directly.
14935
14936 * cpphash.h: Prototype _cpp_get_token.
14937 * cppexp.c (lex): Use it.
14938 * cpphash.c (parse_define): Use it.
14939 * cpplib.c (get_define_node, do_undef, parse_include,
14940 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
14941 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
14942 parse_ifdef, validate_else): Use it.
14943 (cpp_push_buffer): Tweak error message; abort if anyone tries
14944 to push a buffer while macro expansions are stacked.
14945
14946 2000-07-11 Donn Terry <donnte@microsoft.com>
14947
14948 * cpplex.c (free_macro_args, save_token): Cast arg of free
14949 and/or xrealloc to PTR.
14950 (_cpp_init_input_buffer): Clear all fields of the base context.
14951
14952 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
14953
14954 * gensupport.c (process_rtx): Make rtl checking stop
14955 complaining about the define_insn while it is being
14956 converted from a define_insn_and_split.
14957
14958 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
14959
14960 * config/mips/mips.c (simple_memory_operand): Access the
14961 INTVAL of the address, not it's containing MEM.
14962
14963 2000-07-11 Bruce Korb <bkorb@gnu.org>
14964
14965 * fixinc/fixtests.c(double_slash): obsolete
14966 (else_endif_label): likewise
14967 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
14968 (libc1_ifdefd_memx): correct initial comment
14969 and omit the #if/#endif pair from the memxxx declarations
14970 * fixinc/fixincl.x: regen
14971
14972 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14973
14974 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
14975
14976 2000-07-11 Neil Booth <NeilB@earthling.net>
14977
14978 * cpp.texi: Update.
14979
14980 2000-07-11 Neil Booth <NeilB@earthling.net>
14981
14982 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
14983 (handle_option): Set digraphs according to standard.
14984 Merge OPT_lang_c89 handler with OPT_std_c89.
14985
14986 * cpplex.c: (lex_line, can_paste): Honour digraphs in
14987 accordance with the digraphs flag.
14988
14989 * cpplib.h: (struct cpp_options): New option digraphs.
14990
14991 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
14992 Bruce Korb <bkorb@gnu.org>
14993
14994 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
14995 * fixinc/fixincl.x: Regenerate.
14996 * fixinc/tests/base/testing.h: Add testcase.
14997
14998 2000-07-10 Richard Henderson <rth@cygnus.com>
14999
15000 * config/ia64/ia64.c (got_symbolic_operand): New.
15001 (symbolic_operand, move_operand): Revert 0701 change.
15002 * config/ia64/ia64.h (PREDICATE_CODES): Update.
15003 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
15004 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
15005 split the offset into a 14-bit low part instead of a 13-bit low part.
15006 (load_fptr): Mark the mem as unchanging.
15007 (load_symptr): Use got_symbolic_operand.
15008
15009 2000-07-10 Nick Clifton <nickc@cygnus.com>
15010
15011 * libgcc2.c (next_stack_level): Cast result of computation to
15012 (void **) so that the assignment does not generate a warning.
15013
15014 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
15015
15016 * flags.h : Add new variable flag_single_precision_constant.
15017 * toplev.c (display_help) : Add -fsingle-precision-constant option.
15018 (flag_single_precision_constant): New.
15019 * c-lex.c (yylex): Convert floating point constant to single
15020 precision constant.
15021 * invoke.texi : Add documentation for this new option.
15022
15023 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
15024
15025 * diagnostic.c (output_octal): Second parameter is unsigned.
15026 (output_long_octal): Likewise.
15027 (output_hexadecimal): Likewise.
15028 (output_long_hexadecimal): Likewise.
15029 (output_format): Adjust arguments extraction. Tweak.
15030 (output_verbatim, verbatim): End variable argument list.
15031 (report_diagnostic): Improve documentation.
15032
15033 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
15034
15035 * c-common.h (build_stmt): Declare.
15036 (build_continue_stmt): Likewise.
15037 (build_break_stmt): Likewise.
15038 (build_return_stmt): Likewise.
15039
15040 * c-decl.c (do_case): Rewrite to do what previously done in
15041 c-parse.in.
15042
15043 * c-semantics.c (build_stmt): Define.
15044 (build_return_stmt): Likewise.
15045 (build_break_stmt): Likewise.
15046 (build_continue_stmt): Likewise.
15047 (build_case_label): Likewise.
15048
15049 * c-parse.in (BREAK): Change to build tree, then generate RTL.
15050 (CONTINUE): Likewise.
15051 (RETURN): Likewise.
15052 (CASE): Likewise.
15053 (DEFAULT): Likewise.
15054
15055 * c-parse.y: Regenerate.
15056 * c-pasre.c: Likewise.
15057
15058 2000-07-09 Jason Merrill <jason@redhat.com>
15059
15060 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
15061
15062 * tree.h (STRIP_NOPS): Check for error_mark_node.
15063 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
15064 (dwarf2out_*): Remove duplicate declarations.
15065
15066 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
15067 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
15068
15069 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
15070
15071 * diagnostic.c (wrap_text): New function.
15072 (maybe_wrap_text): Likewise.
15073 (output_add_string): Use it.
15074 (output_format): Likewise.
15075 (count_error): Use verbatim instead of notice.
15076 (report_error_function): Likewise. Don't use plain fprintf.
15077 (finish_diagnostic): New function.
15078 (output_do_verbatim): Tweak. Commonalize functionalities in
15079 output_verbatim and verbatim.
15080 (output_verbatim): Adjust.
15081 (verbatim): Likewise.
15082 (report_diagnostic): Define.
15083
15084 * diagnostic.h (report_diagnostic): Prototype.
15085
15086 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
15087
15088 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
15089
15090 2000-07-09 Neil Booth <NeilB@earthling.net>
15091
15092 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
15093 IShspace, ISspace: Update.
15094
15095 * cppinit.c: ISTABLE: Update.
15096 V: New.
15097
15098 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
15099 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
15100 (skip_block_comment, skip_line_comment, parse_string,
15101 lex_line): Use is_vspace rather than IS_NEWLINE.
15102 (skip_whitespace, lex_line): Clean up to use is_nvspace.
15103 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
15104 gets a BOL flag.
15105 (lex_next): Unconditionally stop if within a directive.
15106 Treat directives within macro invocations as directives
15107 (after parse_args emits error), not as the argument.
15108
15109 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
15110
15111 * diagnostic.c (diagnostic_args): New macro.
15112 (diagnostic_msg): Likewise.
15113 (output_formatted_integer): Likewise.
15114 (output_state): New data type.
15115 (digit_buffer): Make global.
15116 (output_add_integer): Rename to output_decimal. Squeeze
15117 digit_buffer.
15118 (output_long_decimal, output_unsigned_decimal,
15119 output_long_unsigned_decimal, output_octal, output_long_octal,
15120 output_hexadecimal, output_long_hexadecimal): New functions.
15121 (output_append_r): New function.
15122 (output_append): Tweak.
15123 (output_flush_on): Rename to output_to_stream.
15124 (output_format): Change prototype. Improve documentation. Handle
15125 more format specifiers.
15126 (build_location_prefix): Rename to context_as_prefix.
15127 (output_notice): Rename to output_do_printf.
15128 (output_printf): Tweak.
15129 (line_wrapper_printf): Likewise.
15130 (vline_wrapper_message_with_location): Adjust call to renamed
15131 functions.
15132 (v_message_with_decl): Likewise.
15133 (default_print_error_function): Likewise.
15134 (save_output_state): New function.
15135 (restore_output_state): Likewise.
15136 (output_do_verbatim): Likewise.
15137 (output_verbatim): Define.
15138 (verbatim): Likewise.
15139
15140 * diagnostic.h (printer_fn): Change return type from void to int.
15141 Improve documentation.
15142 (output_add_integer): Rename to output_decimal.
15143 (output_flush_on, output_format): Don't export.
15144 (output_verbatim, verbatim): Declare.
15145
15146 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
15147
15148 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
15149 Check whether c divides op1 exactly if operation is not
15150 multiplication.
15151
15152 2000-07-08 Richard Henderson <rth@cygnus.com>
15153
15154 * final.c (final): Do not abort when reg-stack introduces
15155 a new insn.
15156
15157 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
15158
15159 * cpplib.h (struct cpp_name): Now struct cpp_string.
15160 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
15161 CPP_HEADER_NAME): Change to type S.
15162 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
15163 field, a cpp_hashnode *. All references to val.name updated
15164 to use val.str or val.node as appropriate.
15165 (struct cpp_reader): Add spec_nodes field.
15166 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
15167
15168 * cpphash.h (struct spec_nodes): New.
15169 (enum spell_type): Reorder. Only SPELL_STRING tokens use
15170 val.str. All references to 'spelling > SPELL_NONE' updated to
15171 match.
15172
15173 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
15174 pfile->buffer->inc are not NULL before dereferencing them.
15175
15176 * cpplex.c (parse_name): Take a pointer to the current token,
15177 plus current position and limit as args; return the new
15178 position; don't copy the text of a name into the string
15179 buffer, instead call cpp_lookup and store the node pointer.
15180 If extending a token, copy out the text of the old into a
15181 scratch buffer, append the new, look that up and store the new
15182 node pointer. Inline.
15183 (maybe_paste_with_next): If the result of paste is a NAME,
15184 then look up the pasted text and store its node pointer.
15185 (lex_line): Adjust for new parse_name interface.
15186 Check for L"str", L'str' using spec_nodes->n_L.
15187 (spell_token): SPELL_IDENT tokens have their spelling in
15188 val.node->name. Handle SPELL_STRING tokens that don't have
15189 string delimiters.
15190 (_cpp_expand_name_space,
15191 (can_paste): Check for L ## "str" using spec_nodes->n_L.
15192 (cpp_get_token, special_symbol): No need to call cpp_lookup.
15193 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
15194 return 1=equal 0=not, not a tristate.
15195
15196 * cpphash.c (var_args_str): Delete.
15197 (find_param): Compare node fields directly.
15198 (is__va_args__): Use CPP_PEDANTIC. Just compare
15199 token->val.node with spec_nodes->n__VA_ARGS__.
15200 (dump_funlike_macro): Don't use var_args_str.
15201
15202 * cpplib.c (_cpp_check_directive): Just walk through
15203 spec_nodes->dirs comparing pointers.
15204 (get_define_node, do_pragma_poison, detect_if_not_defined,
15205 parse_ifdef): The identifier has already been looked up.
15206 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
15207 node.
15208 (do_if): Only call detect_if_not_defined at beginning of file.
15209 (_cpp_parse_assertion): Only copy string pointers for
15210 SPELL_STRING tokens.
15211 (pragma_dispatch): Take a node pointer and examine its name
15212 field.
15213 (_cpp_init_stacks): Also initialize the spec_nodes structure.
15214
15215 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
15216 _cpp_init_macros.
15217 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
15218 reverse order from the corresponding _cpp_init_* routines.
15219
15220 * cppexp.c (parse_number, parse_charconst, parse_defined,
15221 lex): Check val.node->type instead of calling cpp_defined.
15222 Use spec_nodes entries where appropriate.
15223
15224 * fix-header.c, scan-decls.c: Update for interface changes.
15225
15226 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
15227
15228 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
15229 emitting aux_truncdfsf2.
15230
15231 2000-07-03 Donn Terry (donnte@microsoft.com)
15232
15233 * cppinit.c (print_help): split overlong line into ISO C89
15234 maximum chunks.
15235
15236 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
15237
15238 * cppexp.c: Update all code for new lexer interface.
15239 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
15240 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
15241 * cpplex.c (token_names): Trim leading CPP_ from names; make
15242 the strings unsigned.
15243 (_cpp_spell_operator): New.
15244 (is_macro_disabled): Disable all macros if rescanning
15245 preprocessed text.
15246 (_cpp_get_directive_token): Remove.
15247
15248 * cppinit.c: Don't set no_macro_expand.
15249 * cpplib.c (read_line_number, do_line): Check only for EOF,
15250 not VSPACE.
15251 * cpphash.h: Update prototypes.
15252 * cpplib.h (CPP_VSPACE): Remove.
15253 (struct cpp_reader): Remove no_macro_expand.
15254
15255 2000-07-08 Neil Booth <NeilB@earthling.net>
15256
15257 * cpphash.c (is__va_args__): New function.
15258 (count_params): Fix line reported in error messages. Use
15259 is__va_args__. Don't return ')' on error. Flag GNU style
15260 rest args macro definitions.
15261 (parse_define): Check macro name is not __VA_ARGS__.
15262 (save_expansion): Check identifier in non-varargs-macro is
15263 not __VA_ARGS__. Don't flag GNU_VARARGS.
15264 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
15265 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
15266 than per-token GNU_VARARGS.
15267 * cpplib.h (GNU_VARARGS): Remove.
15268 (GNU_REST_ARGS): New.
15269
15270 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
15271
15272 * i386.md (call_pop, call, call_value_pop): Do not set
15273 current_function_uses_pic_offset_table for calls to static
15274 functions or indirect calls.
15275
15276 2000-07-07 Jim Wilson <wilson@cygnus.com>
15277
15278 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
15279 is_predicate_reg, then take max write_count of register pair.
15280
15281 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15282
15283 * tradcpp.c (main): Rename label `include' to `add_include' to
15284 avoid conflicts with variable `include' in traditional C.
15285
15286 2000-07-07 Jakub Jelinek <jakub@redhat.com>
15287
15288 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
15289
15290 2000-07-07 Jakub Jelinek <jakub@redhat.com>
15291
15292 * sibcall.c (uses_addressof): Add INMEM argument, check for
15293 current_function_internal_arg_pointer outside of MEM rtxs in addition
15294 to ADDRESSOFs.
15295 (sequence_uses_addressof): Update caller.
15296
15297 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
15298
15299 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
15300 and friends.
15301
15302 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15303
15304 * system.h (UNION_INIT_ZERO): New macro for initializing union
15305 members in structs.
15306
15307 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
15308
15309 2000-07-07 Neil Booth <NeilB@earthling.net>
15310
15311 * cpp.texi: Update.
15312
15313 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
15314
15315 * final.c (final): Detect out of bounds array access to
15316 the insn_lengths array.
15317
15318 2000-07-07 Kazu Hirata <kazu@hxi.com>
15319
15320 * fold-const.c (fold): Fix a comment typo.
15321
15322 2000-07-07 Neil Booth <NeilB@earthling.net>
15323
15324 * cpp.texi: Update to new lexer.
15325
15326 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
15327
15328 * tradcpp.c: New file.
15329 * tradcif.y: New file.
15330 * tradcif.c: New generated file.
15331
15332 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
15333 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
15334 dependencies of C. Install tradcpp from install-common, in
15335 $(libsubdir).
15336
15337 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
15338
15339 * cppinit.c: Include cppdefault.h. Refer to
15340 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
15341 to GCC_INCLUDE_DIR and its length.
15342 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
15343 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
15344 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
15345 cppdefault.h.
15346 (include_defaults_array): Move to cppdefault.c.
15347
15348 * cppdefault.h: New file.
15349 * cppdefault.c: New file.
15350
15351 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
15352 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
15353 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
15354 this file.
15355
15356 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15357
15358 * reload.c (push_reload): When seeing if can reuse a register,
15359 check extra registers against widest of INMODE and OUTMODE.
15360
15361 2000-07-06 Neil Booth <NeilB@earthling.net>
15362
15363 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
15364 based on full length of predicate.
15365
15366 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
15367
15368 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
15369 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
15370
15371 2000-07-05 Kazu Hirata <kazu@hxi.com>
15372
15373 * h8300-proto.h: Fix formatting.
15374 * h8300.c: Likewise.
15375 * h8300.h: Likewise.
15376
15377 2000-07-05 Jim Wilson <wilson@cygnus.com>
15378
15379 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
15380 CCmode.
15381
15382 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
15383
15384 * invoke.texi: Fix minor typos
15385 * md.texi: Fix minor typos
15386
15387 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
15388
15389 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
15390
15391 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
15392
15393 * cpplex.c: Don't include sys/mman.h.
15394 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
15395
15396 * cpplib.c: Include sys/mman.h and obstack.h.
15397 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
15398 obstack.
15399 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
15400 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
15401 bother freeing if stack entries (they will be freed with their buffer).
15402 (do_endif): Free if stack entries from the buffer obstack.
15403 (push_conditional): Allocate if stack entries from the buffer obstack.
15404
15405 (find_answer): Rename to _cpp_find_answer.
15406 (do_assert, do_unassert): Update.
15407
15408 * cpphash.h: Update prototypes.
15409 (xobnew): New convenience macro.
15410 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
15411 Update comments.
15412 (struct cpp_hashnode): Remove disabled field.
15413
15414 * cppinit.c: Don't include hashtab.h or splay-tree.h.
15415 (report_missing_guard): Moved to cppfiles.c.
15416 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
15417 cpp_init_includes.
15418 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
15419 cpp_cleanup_includes. Don't destroy hashtab or
15420 all_include_files here.
15421 (cpp_finish): Use _cpp_report_missing_guards.
15422
15423 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
15424 (_cpp_init_include_table): Rename _cpp_init_includes.
15425 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
15426
15427 * cppexp.c (parse_assertion): Update for new name of
15428 find_answer.
15429
15430 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
15431
15432 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
15433
15434 * cpplib.c (do_ident): s/VSPACE/EOF/
15435
15436 2000-07-05 Neil Booth <NeilB@earthling.net>
15437
15438 * cpplex.c: Fix trigraph replacement within strings.
15439
15440 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15441
15442 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
15443
15444 * xcoffout.c (assign_type_number): Constify.
15445 (xcoffout_source_file): Add static prototype. Don't needlessly
15446 cast away const-ness.
15447
15448 2000-07-04 Jason Merrill <jason@redhat.com>
15449
15450 * frame.h (frame_state): Move base_offset to end.
15451
15452 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
15453
15454 * calls.c (emit_library_call_value_1): Revert previous change.
15455
15456 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
15457
15458 * fix-header.c (struct partial_proto): Remove unnecessary fields.
15459 (recognized_extern, recognized_function, read_scan_file):
15460 Update for new scheme.
15461 (check_protection): It's still a multiple include guard even
15462 if it doesn't always trigger.
15463 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
15464 new scheme.
15465 * scan.h: Declare struct cpp_token. Update prototypes.
15466
15467 2000-07-03 Neil Booth <neilb@earthling.net>
15468 Zack Weinberg <zack@wolery.cumb.org>
15469
15470 Complete overhaul of the lexer and macro expander.
15471
15472 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
15473 arg, arglist, argdata, reflist, collect_objlike_expansion,
15474 collect_funlike_expansion, collect_params,
15475 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
15476 unsafe_chars, macarg, compare_defs, special_symbol,
15477 scan_arguments, stringify, funlike_macroexpand,
15478 _cpp_quote_string, monthnames): Delete.
15479 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
15480 _cpp_create_definition, _cpp_dump_definition,
15481 dump_hash_helper): Adjust.
15482 (find_param, count_params, parse_define, var_args_str,
15483 check_macro_redefinition, save_expansion): New.
15484
15485 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
15486 parse_string, output_line_command, trigraph_replace,
15487 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
15488 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
15489 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
15490 _cpp_skip_rest_of_line): Modify.
15491
15492 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
15493 find_position, null_warning, bump_column, expand_name_space,
15494 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
15495 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
15496 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
15497 _cpp_prescan): Delete.
15498
15499 (dump_param_spelling, process_directive, lex_next,
15500 is_macro_disabled, stringify_arg, expand_context_stack,
15501 output_token, make_string_token, alloc_number_token,
15502 special_symbol, duplicate_token, maybe_paste_with_next,
15503 can_paste, prevent_macro_expansion, restore_macro_expansion,
15504 get_temp_token, release_temp_tokens, quote_string,
15505 token_names, token_spellings, _cpp_expand_name_space,
15506 _cpp_glue_header_name, _cpp_reserve_name_space,
15507 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
15508 placemarker_token, eof_token, cpp_context, macro_args,
15509 get_raw_token, parse_arg, parse_args, save_token,
15510 push_arg_context, push_macro_context, pop_context,
15511 do_pop_context, free_macro_args, _cpp_get_line,
15512 _cpp_run_directive): New.
15513
15514 * cpplib.c (validate_else, parse_include, push_conditional,
15515 pass_thru_directive, read_line_number, parse_ifdef,
15516 detect_if_not_defined, _cpp_check_directive, do_define,
15517 do_undef, do_include, do_import, do_include_next, do_error,
15518 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
15519 top_pragmas, do_pragma_gcc, do_pragma_implementation,
15520 do_pragma_poison, do_pragma_system_header,
15521 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
15522 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
15523 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
15524 cpp_defined): Update for new scheme.
15525 (strtoul_for_line, get_define_node, dump_macro_name,
15526 _cpp_check_linemarker, _cpp_parse_assertion): New.
15527 (_cpp_handle_directive, do_pragma_default): Delete.
15528
15529 * cpphash.h (struct predicate): Now struct answer.
15530 (enum spell_type, struct token_spelling, struct directive,
15531 directive_handler): New.
15532 Update prototypes. Remove unused macros.
15533 * cpplib.h: Update prototypes. Remove unused macros,
15534 structure definitions, and fields.
15535
15536 * cpperror.c (print_containing_files, v_message): Adjust.
15537 * cppexp.c (parse_assertion, lex, parse_escape,
15538 _cpp_parse_expr): Adjust.
15539 * cppfiles.c (open_include_file, _cpp_execute_include,
15540 _cpp_compare_file_date, cpp_read_file, read_include_file):
15541 Adjust.
15542 * cppinit.c (dump_special_to_buffer): Delete.
15543 (append_include_chain, merge_include_chains, cpp_reader_init,
15544 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
15545 cpp_finish, handle_option, print_help): Adjust.
15546 * cppmain.c (main): Adjust.
15547
15548 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
15549
15550 * cppspec.c (lang_specific_driver): Use double quotes in error
15551 message.
15552
15553 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
15554
15555 * calls.c (emit_library_call_value_1): Use valreg instead
15556 of hard_libcall_value.
15557
15558 2000-07-03 Geoff Keating <geoffk@cygnus.com>
15559
15560 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
15561 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
15562 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
15563 (movhi): Likewise.
15564 (movqi): Likewise.
15565 (movdf): Likewise.
15566 (movsf): Likewise.
15567 (movdi): Likewise.
15568 (movti): Likewise.
15569
15570 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
15571 mode instead of wider_mode is being used.
15572
15573 2000-07-03 Jakub Jelinek <jakub@redhat.com>
15574
15575 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
15576 of 'r'. Use q_regs_operand.
15577 (andsi_1+2): Use q_regs_operand.
15578
15579 2000-07-03 Jakub Jelinek <jakub@redhat.com>
15580
15581 * builtins.c (get_memory_rtx): Always put into alias set 0.
15582
15583 2000-07-03 Nick Clifton <nickc@cygnus.com>
15584
15585 * config/arm/arm.md: Fix post increment and pre increment
15586 peepholes so that they do not generate UNPREDICATBLE opcodes.
15587 (ie ones where the increment clobbers the source/destination).
15588
15589 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
15590
15591 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
15592 change too big for -mtiny-stack" a warning, if larger than 63.
15593 (out_set_stack_ptr): Change the logic so -mno-interrupts is
15594 always safe to use on possible future devices.
15595 (function_prologue): Write SPH before SPL, for consistency.
15596 If interrupt_func_p true, we know we have enabled interrupts.
15597 (avr_num_arg_regs): New function. Round up to even number of
15598 bytes if no -mpack-args or if calling a libgcc function.
15599 (function_arg, function_arg_advance): Use it.
15600 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
15601 Output "movw" if available.
15602 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
15603 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
15604 (asm_output_section_name): Add blanks for consistent output.
15605 (encode_section_info): Set TREE_READONLY for progmem data to
15606 avoid gas warnings about changed section attributes.
15607 (avr_hard_regno_mode_ok): Force non-QImode data to start in
15608 even numbered registers on devices with "movw".
15609 * config/avr/avr.h (MASK_*): Define bits for target_flags.
15610 (TARGET_SWITCHES): Mark help strings for translation.
15611 Add new -mpack-args and -menhanced switches.
15612 (TARGET_OPTIONS): Mark help strings for translation.
15613 (progmem_section): Add section attributes.
15614 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
15615 Output "movw" if available.
15616 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
15617 New patterns.
15618 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
15619 call convention (arguments aligned on even registers).
15620 (_cleanup, _exit): Make weak symbols libc can override.
15621
15622 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15623
15624 * fp-bit.h: New file.
15625
15626 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
15627 Comment #endif statements.
15628 (__thenan_sf, __thenan_df): Add missing braces around initializer.
15629
15630 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
15631
15632 * gcse.c (compute_pre_data): Compute ae_kill using other local
15633 properties instead of calling compute_ae_kill.
15634
15635 * alias.c (init_alias_analysis): Do not call
15636 prologue_epilogue_contains until after reload has completed.
15637
15638 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
15639
15640 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
15641 (genrtl_finish_compound_stmt): Likewise.
15642 (genrtl_compound_stmt): Change to return void.
15643
15644 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
15645 move code from here to ...
15646 (genrtl_compound_stmt): ... here.
15647 (genrtl_finish_compound_stmt): Remove.
15648 (expand_stmt): Add comment.
15649
15650 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
15651
15652 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
15653 and VOID_TYPE_P.
15654
15655 2000-07-02 Jakub Jelinek <jakub@redhat.com>
15656
15657 * cpplib.h (struct cpp_reader): New field include_depth.
15658 (struct cpp_printer): Rename last_bsd to last_id.
15659 * cppfiles.c (read_include_file): Bump include_depth.
15660 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
15661 (output_line_command): Output correct #line if a header
15662 is including itself and is not protected against multiple inclusion.
15663 Use include_depth instead of buffer_stack_depth, last_id instead of
15664 last_bsd.
15665 * cppinit.c (cpp_start_read): Initialize last_id instead of
15666 last_bsd.
15667
15668 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
15669
15670 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
15671 (c-semantics.o): New target.
15672
15673 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
15674 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
15675 (genrtl_clear_out_block): Likewise.
15676 (genrtl_goto_stmt): Likewise.
15677 (genrtl_expr_stmt): Likewise.
15678 (genrtl_decl_stmt): Likewise.
15679 (genrtl_if_stmt): Likewise.
15680 (genrtl_while_stmt): Likewise.
15681 (genrtl_do_stmt): Likewise.
15682 (genrtl_return_stmt): Likewise.
15683 (genrtl_for_stmt): Likewise.
15684 (genrtl_break_stmt): Likewise.
15685 (genrtl_continue_stmt): Likewise.
15686 (genrtl_scope_stmt): Likewise.
15687 (genrtl_switch_stmt): Likewise.
15688 (genrtl_case_label): Likewise.
15689 (genrtl_begin_compound_stmt): Likewise.
15690 (gerntl_finish_compound_stmt): Likewise.
15691 (genrtl_compound_stmt): Likewise.
15692 (genrtl_asm_stmt): Likewise.
15693 (genrtl_decl_cleanup): Likewise.
15694 (DECL_ANON_UNION_ELEMS): Likewise.
15695 (emit_local_var): Likewise.
15696 (make_rtl_for_local_static): Likewise.
15697 (expand_cond): Likewise.
15698 (expand_stmt): Likewise.
15699 (c_expand_return): Likewise.
15700 (c_expand_start_case): Likewise.
15701 (do_case): Likewise.
15702 (COMPOUND_STMT_NO_SCOPE): Likewise.
15703 (c_expand_asm_operands): Likewise.
15704 (NEW_FOR_SCOPE_P): New macro.
15705 (expand_expr_stmt_fn): New type.
15706
15707 (set_current_function_name_declared): Likewise.
15708 (current_function_name_declared): Likewise.
15709 (lang_expand_stmt): Likewise.
15710 (stmts_are_full_exprs_p): Likewise.
15711 (anon_aggr_type_p): Likewise.
15712 (lang_expand_expr_stmt): Likewise.
15713 (build_case_label): Likewise.
15714
15715 * c-decl.c (lang_expand_expr_stmt): Initialize.
15716 (stmts_are_full_exprs_p): Define.
15717 (current_function_name_declared): Likewise.
15718 (do_case): Likewise.
15719 (lang_expand_stmt): Likewise.
15720 (set_current_function_name_declared): Likewise.
15721 (anon_aggr_type_p): Likewise.
15722
15723 * c-semantics.c: New file.
15724 (expand_cond): Moved from cp/semantics.c.
15725 (genrtl_do_pushlevel): Likewise.
15726 (genrtl_clear_out_block): Likewise.
15727 (genrtl_goto_stmt): Likewise.
15728 (genrtl_expr_stmt): Likewise.
15729 (genrtl_decl_stmt): Likewise.
15730 (genrtl_if_stmt): Likewise.
15731 (genrtl_while_stmt): Likewise.
15732 (genrtl_do_stmt): Likewise.
15733 (genrtl_return_stmt): Likewise.
15734 (genrtl_for_stmt): Likewise.
15735 (genrtl_break_stmt): Likewise.
15736 (genrtl_continue_stmt): Likewise.
15737 (genrtl_scope_stmt): Likewise.
15738 (genrtl_switch_stmt): Likewise.
15739 (genrtl_case_label): Likewise.
15740 (genrtl_begin_compound_stmt): Likewise.
15741 (genrtl_finish_compound_stmt): Likewise.
15742 (genrtl_compound_stmt): Likewise.
15743 (genrtl_asm_stmt): Likewise.
15744 (genrtl_decl_cleanup): Likewise.
15745 (make_rtl_for_local_static): Moved from cp/decl.c.
15746 (emit_local_var): Likewise.
15747 (expand_stmt): Define.
15748
15749 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
15750 (c_expand_return): Likewise.
15751 (c_expand_start_case): Likewise.
15752
15753 2000-07-01 Richard Henderson <rth@cygnus.com>
15754
15755 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
15756 with the low 13 bits set.
15757 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
15758 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
15759 of the low 13 bits into a CONST plus an adddi3.
15760 (load_symptr): Set RTX_UNCHANGING_P.
15761
15762 See ChangeLog.3 for earlier changes.
This page took 0.775906 seconds and 5 git commands to generate.