flow.c (life_analysis): Only turn off PROP_LOG_LINKS and PROP_AUTOINC at -O0.
[gcc.git] / gcc / ChangeLog
1 2000-08-08 Richard Henderson <rth@cygnus.com>
2
3 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
4 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
5 (init_propagate_block_info): Don't kill memory stores at -O0.
6 (mark_set_1, mark_used_regs): Likewise.
7
8 2000-08-08 David Edelsohn <edelsohn@gnu.org>
9
10 * rs6000.c (optimization_options): Decorate 'level' as
11 ATTRIBUTE_UNUSED.
12 (mask64_operand): Remove sign-extend thinko.
13 (rldic_operand): New function.
14 (load_multiple_operation): regno's are unsigned ints.
15 (store_multiple_operation): Likewise.
16 (lmw_operation): Likewise.
17 (stmw_operation): Likewise.
18 (includes_lshift_p): shift_mask is unsigned int.
19 (includes_lshift64_p): New function.
20 (addrs_ok_for_quad_peep): unsigned int reg1.
21 (print_operand): Consistently add "else" after
22 output_operand_lossage().
23 (print_operand, case 'b'): Fold in case 'W'.
24 (print_operand, case 'W'): Print rldic MB value.
25 (output_epilogue): Update Objective-C language string.
26 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
27 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
28 * rs6000.md (ashldi3): Add rldic instruction.
29 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
30 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
31 modifier.
32
33 2000-08-08 Richard Henderson <rth@cygnus.com>
34
35 * config/ia64/ia64-protos.h: Remove duplicates. Update
36 for massive code rearrangements.
37 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
38 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
39 (ia64_local_regs, ia64_need_regstk): Remove.
40 (ar_ccv_reg_operand): New.
41 (ia64_gp_save_reg): New.
42 (struct ia64_frame_info): Combine most of the size elements;
43 add new gr save elements.
44 (find_gr_spill): New.
45 (next_scratch_gr_reg): New.
46 (mark_reg_gr_used_mask): New.
47 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
48 to GR backing store regs when possible.
49 (ia64_initial_elimination_offset): New.
50 (ia64_rap_fp_offset): Remove.
51 (save_restore_insns): Remove.
52 (setup_spill_pointers): New.
53 (finish_spill_pointers): New.
54 (spill_restore_mem): New.
55 (do_spill, do_restore): New.
56 (ia64_expand_prologue): Rewrite to use them.
57 (ia64_expand_epilogue): Likewise.
58 (ia64_direct_return): Update for current_frame_info changes.
59 (ia64_function_prologue): Simplify .prologue emission. Emit
60 .spill when needed.
61 (ia64_setup_incoming_varargs): Don't ever emit rtl.
62 (ia64_dbx_register_number): New.
63 (ia64_initialize_trampoline): New.
64 (ia64_secondary_reload_class): Request GR_REGS for integer
65 arithmetic destined for FR_REGS.
66 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
67 (ia64_mark_machine_status): Mark ia64_gp_save.
68 (rws_access_regno): Rename from rws_access_reg; don't treat
69 predicates specially.
70 (rws_access_reg): New. Update all callers.
71 (rtx_needs_barrier): Remove dead unspecs.
72 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
73 (ia64_encode_section_info): Silence signed/unsigned warnings.
74 (spill_offset, sp_offset, spill_offset_emitted): Remove.
75 (tmp_reg, tmp_saved): Remove.
76 (process_set): Rewrite to expect complicated bits via
77 REG_FRAME_RELATED_EXPR.
78 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
79 in the use of ar.ccv; never set RTX_UNCHANGING_P.
80 (ia64_expand_op_and_fetch): Likewise.
81 (ia64_expand_compare_and_swap): Likewise.
82 (ia64_expand_builtin): Likewise.
83 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
84 (FIRST_PSEUDO_REGISTER): Update.
85 (AR_M_REGNO_P): Update.
86 (FIXED_REGS): Don't mark three local registers as used.
87 (EXTRA_CC_MODES): New.
88 (SELECT_CC_MODE): New.
89 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
90 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
91 (FRAME_GROWS_DOWNWARD): Unset.
92 (STARTING_FRAME_OFFSET): Zero.
93 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
94 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
95 (HARD_FRAME_POINTER_REGNUM): New.
96 (CAN_DEBUG_WITHOUT_FP): Define.
97 (TRAMPOLINE_TEMPLATE): Remove.
98 (TRAMPOLINE_SIZE): Lower to 32.
99 (TRAMPOLINE_ALIGNMENT): Lower to 64.
100 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
101 (PREDICATE_CODES): Update.
102 (struct machine_function): Add ia64_gp_save.
103 * config/ia64/ia64.md: Purge unused unspecs.
104 (movsi patterns): Allow moves to/from AR_M_REGS.
105 (movdi patterns): Allow moves to/from p0.
106 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
107 (gr_spill, gr_restore): Indicate ar.unat read/written.
108 (nonlocal_goto): Don't pass old frame_pointer.
109 (nonlocal_goto_receiver): Remove.
110 (exception_receiver): New.
111 (builtin_setjmp_setup): New.
112 (builtin_setjmp_receiver): New.
113 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
114 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
115 (__ia64_restore_stack_nonlocal): Likewise.
116 (__ia64_trampoline): New.
117 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
118 function.
119 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
120
121 2000-08-08 Richard Henderson <rth@cygnus.com>
122
123 * frame.h (ia64_frame_state): Add my_psp.
124 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
125 (__throw): Pass it in. Don't clobber r7.
126 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
127 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
128 and nothing to do with sp.
129 (normalize_reg_loc): Use frame->my_psp.
130 (frame_translate): Handle frame-pointer-less functions. Set
131 spill_base correctly, in absence of being told.
132 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
133 (__ia64_backtrace_helper): New sp argument. Use
134 builtin_return_address instead of label addresses.
135 (print_record) [mem_stack_v]: No size member.
136
137 2000-08-08 Richard Henderson <rth@cygnus.com>
138
139 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
140
141 2000-08-08 Richard Henderson <rth@cygnus.com>
142
143 * tm.texi (LOCAL_REGNO): Document.
144 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
145 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
146 * reload1.c (reload): Likewise when considering nonlocal labels.
147
148 * config/ia64/ia64.h (LOCAL_REGNO): New.
149 * config/sparc/sparc.h (LOCAL_REGNO): New.
150
151 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
152
153 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
154
155 2000-08-07 Nick Clifton <nickc@redhat.com>
156
157 * config/mips/mips.c: Fix compile time warning messages.
158 * config/mips/mips-protos.h: Add prototype for equality_op.
159
160 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
161
162 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
163
164 * mn10300.md: Use nonimmediate_operand instead of general_operand
165 on output operands.
166
167 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
168
169 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
170
171 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
172 * sh.c (expand_block_move): Break long lines.
173 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
174 * sh.md (mulsi3): Likewise.
175 (movdi): Adjust spacing.
176
177 2000-08-07 Richard Henderson <rth@cygnus.com>
178
179 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
180 * expr.c (emit_group_store): Don't set it.
181
182 2000-08-07 Kazu Hirata <kazu@hxi.com>
183
184 * invoke.texi (Options for Debugging Your Program or GCC): Remove
185 duplicate entries for 'w' and 'z'.
186
187 * flow.c: Fix a comment typo.
188
189 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
190
191 * c-parse.in: Changed the language string for Objective-C to "GNU
192 Objective-C".
193
194 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
195
196 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
197 to improve the Posix thread support for Objective-C.
198
199 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
200
201 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
202 CTI_UNSIGNED_PTRDIFF_TYPE.
203 (signed_size_type_node): Define.
204 (unsigned_ptrdiff_type_node): Define.
205 * c-decl.c (init_decl_processing): Create the
206 signed_size_type_node and unsigned_ptrdiff_type_node types.
207 * c-common.c (T_SC): Define.
208 (T_SST): Define.
209 (T_UPD): Define.
210 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
211 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
212 %s and %p.
213 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
214 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
215 flags for %c, %s and %[.
216 (check_format_info): Only allow leniency for signedness of targets
217 of character pointers (when pedantic) for formats flagged with
218 "c", so for strings but not for %hh formats. When pedantic, don't
219 allow character pointers to substitute for void pointers if a
220 second level of indirection is present.
221
222 2000-08-06 Kazu Hirata <kazu@hxi.com>
223
224 * invoke.texi (Options for Debugging Your Program or GCC): Update
225 the names of dump files.
226
227 * h8300.c (dosize): Rearrange code for conciseness.
228 (split_adds_subs): Likewise.
229
230 * loop.c: Fix formatting.
231
232 * dwarf2out.c: Fix formatting.
233
234 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
235
236 * expr.c: Fix formatting.
237
238 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
239
240 * rs6000.c (rs6000_maybe_dead): Prototype.
241
242 2000-08-06 Richard Henderson <rth@cygnus.com>
243
244 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
245 HAVE_nonlocal_goto as well.
246 * config/i960/i960.md (nonlocal_goto): Don't do it here.
247 * config/pj/pj.md (nonlocal_goto): Likewise.
248
249 2000-08-07 Michael Hayes <mhayes@cygnus.com>
250
251 * loop.c (try_swap_copy_prop): New function.
252 (load_mems): Rename copies to load_copies and add new regset
253 store_copies. Check for sets of shadow registers and mark
254 in store_copies. Call try_swap_copy_prop for registers
255 marked in store_copies.
256
257 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
258
259 * objc/objc-act.c: New command line option -fconstant-string-class
260 to allow specifying a user defined constant string class,
261 different from NXConstantString.
262
263 * toplev.c: Moved the Objective-C specific options to
264 objc/lang-options.h.
265
266 * objc/lang-options.h: Moved the Objective-C specific options from
267 toplev.c. Added -fconstant-string-class.
268
269 2000-08-05 Chris Demetriou <cgd@sibyte.com>
270
271 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
272 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
273 __CTOR_LIST__ from func_ptr array to just func_ptr, to
274 avoid extra alignment imposed on arrays.
275 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
276 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
277
278 * mips.h: Clean up comments and spacing near MASKs.
279 (TARGET_UNIX_ASM): Delete.
280 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
281 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
282 values contiguous.
283
284 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
285
286 * c-common.c (print_char_table): Add entries for the X/Open '
287 format flag (print decimals with locale's thousands grouping
288 character). Make %C expect wint_t.
289 (check_format_info): If pedantic, warn when the %n$ operand
290 number form is used. Allow for the ' flag; warn about it if
291 pedantic.
292
293 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
294
295 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
296 type is a float mode, cfun->decl's return type is not, and
297 TARGET_FLOAT_RETURNS_IN_80387.
298
299 2000-08-04 Andreas Schwab <schwab@suse.de>
300
301 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
302 token list, which are always `#' and `pragma'.
303
304 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
305
306 * tree.c (tree_expr_nonnegative_p): Move to...
307 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
308 (rtl_expr_nonnegative_p): New.
309 * tree.h: Add prototype for rtl_expr_nonnegative_p.
310
311 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
312 CONST_DOUBLE_CHAIN: Move to...
313 * rtl.h: ...here. Use XCINT/XCEXP.
314
315 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
316 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
317 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
318 to VOL_FILES.
319
320 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
321
322 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
323
324 * config/c4x/c4x.md (return_indirect_internal): New.
325 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
326
327 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
328
329 * c-common.c (time_char_table): Mark up formats added in C99 and
330 make other corrections. %D and %g were added in C99. %Og is an
331 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
332 C99. %e was added in C99. %Oj is an extension. %G and %z are in
333 C99 rather than GNU extensions, but %OG and %Oz are extensions.
334 %h was added in C99. %C was added in C99. %OY and %OC are
335 extensions. Add the C99 format %F.
336 (check_format_info): If pedantic and not in C99 mode, warn for C99
337 formats, %E and %O.
338
339 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
340
341 * function.c (schedule_fixup_var_refs): New function, broken out
342 of put_reg_into_stack.
343 (put_reg_into_stack): Use it.
344 (put_var_into_stack): In CONCAT case, fixup up references for
345 components only after fixing up references to the whole concat.
346
347 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
348
349 * alias.c (mark_constant_function): Use INSN_P.
350 (init_alias_analysis): Likewise.
351 * combine.c (combine_instructions): Use INSN_P.
352 (can_combine_p): Likewise.
353 (try_combine): Likewise.
354 (distribute_notes): Likewise.
355 (distribute_links): Likewise.
356 * cse.c (cse_around_loop): Use INSN_P.
357 (invalidate_skipped_block): Likewise.
358 (cse_set_around_loop): Likewise.
359 (cse_end_of_basic_block): Likewise.
360 (delete_trivially_dead_insns): Likewise.
361 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
362 (unshare_all_rtl_1): Likewise.
363 (next_cc0_user): Likewise.
364 (try_split make_insn_raw): Likewise.
365 (remove_unnecessary_notes): Likewise.
366 * final.c (shorten_branches): Use INSN_P.
367 (leaf_renumber_regs): Likewise.
368 (leaf_renumber_regs_insn): Likewise.
369 * flow.c (find_label_refs): Use INSN_P.
370 (verify_wide_reg): Likewise.
371 (notice_stack_pointer_modification): Likewise.
372 (count_or_remove_death_notes): Likewise.
373 (verify_flow_info): Likewise.
374 (clear_log_links): Likewise.
375 * function.c (fixup_var_refs_insns): Use INSN_P.
376 (compute_insns_for_mem): Likewise.
377 * gcse.c (alloc_gcse_mem): Use INSN_P.
378 (compute_sets): Likewise.
379 (compute_hash_table): Likewise.
380 (classic_gcse): Likewise.
381 (cprop): Likewise.
382 (insert_insn_end_bb): Likewise.
383 (delete_null_pointer_checks_1): Likewise.
384 * global.c (expand_preferences): Use INSN_P.
385 (build_insn_chain): Likewise.
386 * graph.c (node_data): Use INSN_P.
387 * haifa-sched.c (priority): Use INSN_P.
388 (rm_line_notes): Likewise.
389 (rm_other_notes): Likewise.
390 (find_insn_reg_weight): Likewise.
391 (init_target_units): Likewise.
392 (schedule_block): Likewise.
393 (compute_block_forward_dependences): Likewise.
394 (debug_dependencies): Likewise.
395 (set_priorities): Likewise.
396 * integrate.c (function_cannot_inline_p): Use INSN_P.
397 (save_parm_insns): Likewise.
398 (copy_insn_list): Likewise.
399 * jump.c (mark_all_labels): Use INSN_P.
400 (never_reached_warning): Likewise.
401 * lcm.c (optimize_mode_switching): Use INSN_P.
402 * local-alloc.c (validate_equiv_mem): Use INSN_P.
403 (memref_used_between_p): Likewise.
404 (update_equiv_regs): Likewise.
405 (block_alloc): Likewise.
406 (no_conflict_p): Likewise.
407 * loop.c (scan_loop): Use INSN_P.
408 (find_and_verify_loops): Likewise.
409 (count_loop_regs_set): Likewise.
410 (loop_reg_used_before_p): Likewise.
411 (strength_reduce): Likewise.
412 (recombine_givs): Likewise.
413 (check_dbra_loop): Likewise.
414 (load_mems): Likewise.
415 (try_copy_prop): Likewise.
416 * print-rtl.c (print_rtx): Use INSN_P.
417 * recog.c (find_single_use): Use INSN_P.
418 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
419 (next_flags_user): Likewise.
420 (swap_rtx_condition): Likewise.
421 * regmove.c (mark_flags_life_zones): Use INSN_P.
422 (optimize_reg_copy_1): Likewise.
423 (optimize_reg_copy_2): Likewise.
424 (optimize_reg_copy_3): Likewise.
425 (reg_is_remote_constant_p): Likewise.
426 (fixup_match_2): Likewise.
427 (regmove_optimize): Likewise.
428 (fixup_match_1): Likewise.
429 * regrename.c (build_def_use): Use INSN_P.
430 (replace_reg_in_block): Likewise.
431 (consider_use): Likewise.
432 * reload.c (find_equiv_reg): Use INSN_P.
433 * reload1.c (reload): Use INSN_P.
434 (maybe_fix_stack_asms): Likewise.
435 (calculate_needs_all_insns): Likewise.
436 (reload_as_needed): Likewise.
437 (emit_output_reload_insns): Likewise.
438 (delete_address_reloads_1): Likewise.
439 (reload_cse_regs_1): Likewise.
440 (reload_combine): Likewise.
441 (reload_cse_move2add): Likewise.
442 * reorg.c (redundant_insn): Use INSN_P.
443 (dbr_schedule): Likewise.
444 * resource.c (find_dead_or_set_registers): Use INSN_P.
445 (mark_target_live_regs): Likewise.
446 * rtlanal.c (reg_used_between_p): Use INSN_P.
447 (reg_referenced_between_p): Likewise.
448 (reg_set_between_p): Likewise.
449 (reg_set_p): Likewise.
450 (single_set): Likewise.
451 (multiple_sets): Likewise.
452 (find_last_value): Likewise.
453 (reg_set_last): Likewise.
454 (find_reg_note): Likewise.
455 (find_regno_note): Likewise.
456 * sibcall.c (sequence_uses_addressof): Use INSN_P.
457 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
458 * ssa.c (find_evaluations): Use INSN_P.
459 (rename_block): Likewise.
460 (rename_equivalent_regs): Likewise.
461 * unroll.c (loop_find_equiv_value): Use INSN_P.
462 (set_dominates_use): Likewise.
463 * varasm.c (mark_constant_pool): Use INSN_P.
464 (mark_constants): Likewise.
465 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
466 (alphaev4_next_group): Likewise.
467 (alphaev5_next_group): Likewise.
468 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
469 (c4x_rptb_rpts_p): Likewise.
470 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
471 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
472 (rs6000_adjust_priority): Likewise.
473 * config/sh/sh.c (sh_loop_align): Use INSN_P.
474 (machine_dependent_reorg): Likewise.
475 (split_branches): Likewise.
476 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
477
478 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
479
480 * combine.c (recog_for_combine): Remove the old notes
481 prior to attempting to recognize the new pattern.
482 (distribute_notes): Ignore REG_NONNEG notes.
483
484 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
485
486 * varasm.c (output_constructor): Add .align 0 for packed vars.
487
488 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
489
490 * configure.in: Use default thread_file even when enable_threads is
491 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
492 * configure: Rebuilt.
493
494 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
495
496 2000-08-04 Donn Terry (donnte@microsoft.com)
497
498 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
499
500 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
501
502 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
503 Delete code that conditionally modifies 'version'.
504 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
505 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
506 * gcc.c (main): Use it.
507 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
508 * prefix.c (update_path): Use it.
509 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
510 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
511 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
512 code.
513 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
514 (SUBTARGET_SWITCHES): Adjust.
515 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
516 defining.
517 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
518
519 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
520
521 * c-common.h (flag_isoc94): Declare.
522 * c-decl.c (flag_isoc94): Define.
523 (c_decode_option): Set flag_isoc94 as appropriate.
524 * c-common.c (T_PD, T_IM, T_UIM): Define.
525 (format_char_info): Add tlen and jlen.
526 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
527 %F. Allow %lf.
528 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
529 %l[.
530 (time_char_table): Add NULL entries for %t and %j.
531 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
532 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
533 Warn for printf %lf if pedantic and not C99. Don't warn for empty
534 precision. Allow precision argument to be unsigned int. If
535 pedantic, warn for %p passed an argument not a pointer to possibly
536 qualified void or a possibly qualified character type, and for
537 pointer targets of the wrong sign, except for character pointers.
538
539 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
540
541 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
542 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
543 (wint_type_node): Define.
544 * c-decl.c (WINT_TYPE): Define.
545 (init_decl_processing): Create the wint_type_node type.
546 * c-common.c (T_WI): Define.
547 (print_char_table): Use T_WI for %lc format.
548
549 2000-08-04 Bruce Korb <bkorb@gnu.org>
550
551 * fixinc/: Verified that the MSDOS patch does not break
552 the UNIX functionality and applied the next three patches
553 from July:
554
555 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
556
557 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
558 output file with the temporary one by appending ".X" to generate
559 the temporary fuile's name. If the output file already has an
560 extension, replace it with ".X".
561
562 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
563 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
564 reallocate the command buffer while copying the command-line
565 argument. Redirect the output directly to the temporary file,
566 instead of going through another temporary file.
567 (process): Close the temporary file before unlinking it.
568 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
569 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
570 (run_compiles): Pass p_fixd argument to machine_matches, as it
571 expects.
572
573 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
574 environment, assume there are no symlinks in the include
575 directory. When cleaning up the DONE files, look for them
576 case-insensitively. Don't try to remove symlinks if they aren't
577 there.
578
579 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
580 all callers changed. Declare pz "const char *", to avoid compiler
581 warnings.
582
583 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
584 Change prototype of make_raw_shell_str.
585
586 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
587
588 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
589 (initialize) [__MSDOS__]: Use tempnam.
590 (initialize): Don't use SIGPIPE if it is not defined.
591
592 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
593 return stdout.
594
595 2000-07-25 Bruce Korb <bkorb@gnu.org>
596
597 * fixinc/fix*.[ch]: substantially reworked to make it possible
598 to run this program without using fork(2) or pipe(2) (i.e. in
599 a DOS environment).
600
601 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
602
603 * cppdefault.h (WINT_TYPE): Define.
604 * cppinit.c (builtin_array): Define __WINT_TYPE__.
605 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
606 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
607
608 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
609
610 * (mips_legitimate_address_p): Don't allow register+offset
611 if the offset is large and negative, and we are compiling
612 for 64 bit registers.
613
614 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
615
616 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
617 insn_code_number + 1.
618
619 2000-08-04 Kazu Hirata <kazu@hxi.com>
620
621 * h8300.c (function_prologue): Rearrange code for conciseness.
622 (function_epilogue): Likewise.
623 * h8300.h (OK_FOR_U): Fix formatting.
624
625 * cse.c: Fix a comment typo. Fix formatting.
626
627 2000-08-03 Richard Henderson <rth@cygnus.com>
628
629 * config/i386/i386.md (return_indirect_internal): New.
630 * config/i386/i386.c (ix86_expand_epilogue): Use it.
631
632 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
633
634 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
635 before the name.
636 (lex_line): Glue @ onto the beginning of identifiers and
637 string constants, in Objective-C mode.
638 (output_token, spell_token): Handle CPP_OSTRING.
639 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
640 beginning of a NAME or a STRING, in objc mode.
641
642 * cpplib.c (get_define_node): Do not permit identifiers that
643 begin with @ to be #defined.
644 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
645 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
646
647 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
648 * c-tree.h (build_objc_string): Delete prototype.
649 * objc/objc-tree.def: Delete OBJC_STRING_CST.
650 * c-lex.c (yylex): Use build_string for all three kinds of strings.
651
652 * c-parse.in, objc/objc-act.c: Update commentary.
653
654 2000-08-03 Mark Mitchell <mark@codesourcery.com>
655
656 * extend.texi: Fix typo in last change.
657
658 * extend.texi: Add commentary on statement-expressions and their
659 interactions with C++.
660
661 2000-08-03 Nick Clifton <nickc@cygnus.com>
662
663 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
664 * dwarf.h (LANG_JAVA): Change value to 0x000b.
665
666 2000-08-03 Anthony Green <green@cygnus.com>
667
668 * dwarf2out.c (gen_compile_unit_die): Add java language support.
669 (add_bound_info): Check for java language.
670 (is_java): New function.
671 * dwarfout.c (output_compile_unit_die): Ditto.
672 * dwarf.h (dwarf_source_language): Add java source language type.
673 * dwarf2.h (dwarf_source_language): Ditto.
674
675 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
676
677 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
678 operands.
679
680 * i386.c (ix86_expand_branch): Mode of comparison in
681 IF_THEN_ELSE is VOIDmode.
682
683 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
684
685 * gengenrtl.c, rtl.c: Avoid #elif.
686
687 2000-08-03 Michael Poole <poole@troilus.org>
688
689 * tm.texi (Register Classes): Clarify order of sub-initializers
690 in REG_CLASS_CONTENTS.
691
692 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
693
694 From SAITOH Masanobu:
695 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
696
697 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
698
699 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
700 is not supported by tradcpp and isn't actually needed for cygwin.
701
702 2000-08-03 Kazu Hirata <kazu@hxi.com>
703
704 * h8300.c: Fix a comment typo.
705 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
706
707 * jump.c: Fix formatting.
708
709 * toplev.c: Fix formatting.
710
711 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
712
713 * flow.c (find_auto_inc): Verify that we've got a REG before
714 peeking at its regno. Fail, don't abort if we can't find
715 the increment of the desired register.
716
717 * pa.md (shadd height reduction patterns/splitters): Remove.
718
719 2000-08-02 Jim Wilson <wilson@cygnus.com>
720
721 * config/ia64/ia64-protos.h (flag_ssa): Declare.
722 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
723
724 2000-08-02 Mark Mitchell <mark@codesourcery.com>
725
726 * dce.c: Remove all uses of assert.
727 * dwarf2out.c: Likewise.
728 * dwarfout.c: Likewise.
729 * ssa.c: Likewise.
730
731 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
732
733 * gcc.h (lang_specific_driver): Constify second argument.
734 * gcc.c (translate_options, process_command, main): Likewise.
735 Constify variables to match. Cast second argument to
736 pexecute.
737
738 * cppspec.c, gccspec.c: Adjust type of second argument to
739 lang_specific_driver, and update code as necessary.
740
741 2000-08-02 Jakub Jelinek <jakub@redhat.com>
742
743 * loop.c (scan_loop): Ensure update_end label does not
744 go away until reg_scan_update is run.
745
746 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
747
748 * c-common.h: Prototype min_precision and c_build_qualified_type here...
749 * c-tree.h: ... not here.
750 * errors.h: Prototype fancy_abort.
751
752 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
753 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
754 * regrename.c (regrename_optimize): Make control flow explicit.
755 (replace_reg_in_block): Initialize reg_use to 0.
756
757 * i386.c (legitimate_address_p): Rename error label to
758 report_error to avoid namespace clash.
759
760 2000-08-02 Kazu Hirata <kazu@hxi.com>
761
762 * fold-const.c: Fix formatting.
763
764 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
765
766 * i386.c (legitimate_address_p): Accept other bases than
767 pic_offset_table_rtx for GOTOFF constructs.
768
769 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
770
771 * i386.md (shift to lea splitter): Use const_int_operand.
772
773 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
774
775 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
776 cppspec.c: Do not use 'legal' or 'illegal' in error messages
777 and comments.
778
779 * cppmain.c (cb_define, cb_undef): Don't generate any output
780 if not done_initializing.
781 * cpplex.c (maybe_paste_with_next): When the token after a ##
782 is an omitted rest argument, only delete the token before it
783 if that token is a comma. Do not warn about bogus token
784 pastes for , ## rest_arg.
785
786 * cpp.texi: Update.
787 * cpp.1: Regenerate.
788
789 2000-08-02 Fred Fish <fnf@be.com>
790
791 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
792 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
793 and later.
794
795 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
796 Be directories to search path.
797
798 Remove support for __declspec(dllimport) and __declspec(dllexport).
799 This is leftover cruft from the earlier BeOS gcc port when BeOS
800 used Microsoft's PE object file format.
801 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
802 * config/i386/t-beos (winnt.o): Remove Makefile frag.
803 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
804 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
805 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
806 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
807 (REDO_SECTION_INFO_P): Remove.
808 (ASM_EXPORT_DECL): Remove.
809 (ASM_DECLARE_FUNCTION_NAME): Remove.
810 (ASM_DECLARE_OBJECT_NAME): Remove.
811 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
812 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
813 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
814 (STRIP_NAME_ENCODING): Remove.
815
816 Remove support for obsolete version of BeOS that is no longer
817 supported by Be.
818 * configure.in (i*86-*-beospe*): Remove.
819 * config/i386/beos-pe.h: Remove.
820
821 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
822 Mark Mitchell <mark@codesourcery.com>
823
824 * Makefile.in (OBJS): Added dce.o.
825 (ssa.o): Updated target to include ssa.h.
826 (flow.o): Likewise.
827 (toplev.o): Likewise.
828 (dce.o): Created target.
829 * basic-block.h: Added comments.
830 (INVALID_BLOCK): Added definition.
831 (connect_infinite_loops_to_exit): Added declaration.
832 Moved SSA declarations to ssa.h.
833 * flow.c: Added inclusion of ssa.h.
834 (struct depth_first_search_dsS, depth_first_search_ds):
835 Added definitions.
836 (compute_immediate_postdominators): Added definition.
837 (connect_infinite_loops_to_exit): Likewise.
838 (flow_dfs_compute_reverse_init): Likewise.
839 (flow_dfs_compute_reverse_add_bb): Likewise.
840 (flow_dfs_compute_reverse_execute): Likewise.
841 (flow_dfs_compute_reverse_finish): Likewise.
842 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
843 (LABEL_P): Added definition.
844 (JUMP_P): Likewise.
845 (NOTE_P): Likewise.
846 (BARRIER_P): Likewise.
847 (JUMP_TABLE_DATA_P): Likewise.
848 (INSN_DEAD_CODE_P): Likewise.
849 * ssa.c: Replaced inclusions with ssa.h inclusion.
850 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
851 (rename_registers): Removed unnecessary variables.
852 * ssa.h: Created by moving declarations from ssa.c and
853 basic-block.h.
854 * timevar.def: Defined TV_DEAD_CODE_ELIM.
855 * toplev.c: Added ssa.h inclusion.
856 (dump_file_index): Added DFI_dce.
857 (dump_file): Added "dce" entry.
858 Defined flag_ssa.
859 (f_options): Added dce entry.
860 * invoke.texi: Document -fdce. Emphasize experimental status of
861 -fssa.
862 * dce.c: New file.
863
864 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
865
866 * cpperror.c (v_message): Split into _cpp_begin_message and
867 v_message macro. All callers updated.
868 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
869 checks here.
870
871 * cppfiles.c (cpp_syshdr_flags): New function.
872 (read_include_file): Don't call cpp_output_tokens. Call
873 enter_file hook.
874 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
875 (cpp_reader_init): Don't initialize token_buffer. Call
876 _cpp_init_internal_pragmas.
877 (cpp_cleanup): Don't clear token_buffer.
878 (cpp_start_read): Don't worry about output from -D processing.
879 Don't call cpp_output_tokens.
880 (cpp_finish): Don't dump macros here. Don't call
881 cpp_output_tokens.
882 * cppmacro.c (_cpp_dump_definition): Rename
883 cpp_dump_definition. Write directly to a FILE *.
884 (dump_funlike_macro): Delete.
885 (dump_macro_args): New.
886
887 * cpplex.c (TOKEN_LEN): Convert to inline function.
888 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
889 cpp_scan_line, _cpp_dump_list): Delete.
890 (cpp_printf, cpp_output_list): New.
891 (output_line_command): Don't worry about entering or leaving files.
892 (cpp_scan_buffer): Just output each token as we hit it.
893 (process_directive): Don't call cpp_output_tokens.
894 (_cpp_glue_header_name): Don't use token_buffer.
895 (output_token, dump_param_spelling): Write directly to a FILE *.
896
897 * cpplib.c (pass_thru_directive, dump_macro_name,
898 pragma_dispatch, do_pragma_gcc): Delete.
899 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
900 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
901 functions.
902 (do_error, do_warning, pragma_dependency): Call
903 _cpp_begin_message, then cpp_output_list.
904 (cpp_register_pragma, cpp_register_pragma_space,
905 _cpp_init_internal_pragmas): New.
906 (do_pragma): Walk the pragmas table here.
907 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
908 do_pragma_dependency): Return void.
909 (do_pragma_implementation): Moved to cppmain.c.
910
911 * cpplib.h: Update prototypes.
912 (struct cpp_reader): Remove printer, token_buffer,
913 token_buffer_size, and limit. Add struct cb, and pragmas.
914 (struct cpp_printer): Remove last_id and written.
915 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
916 CPP_ADJUST_WRITTEN): Delete.
917 * cpphash.h: Update prototypes.
918 (ufputs): New wrapper.
919
920 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
921 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
922 (main): Set up callbacks. Register #pragma implementation.
923 Dump macros from here.
924
925 2000-08-01 Geoff Keating <geoffk@cygnus.com>
926
927 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
928 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
929 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
930 insns if they have a REG_MAYBE_DEAD note attached.
931 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
932 (rs6000_emit_load_toc_table): TOC loads may go dead.
933
934 2000-08-01 Jim Wilson <wilson@cygnus.com>
935
936 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
937 type exists before using it. Use number of words as alignment
938 otherwise.
939 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
940 ia64_va_arg): Propagate ia64_function_args changes here.
941
942 2000-08-01 Richard Henderson <rth@cygnus.com>
943
944 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
945 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
946
947 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
948
949 From Joern Rennecke:
950 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
951 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
952 unless TARGET_SH3E is set.
953 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
954
955 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
956 (ashlsi3_std): New pattern.
957 (ashlsi3 expander): Use it for TARGET_SH3.
958 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
959
960 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
961
962 * loop.c (canonicalize_condition): Use destination, not source to
963 determine SET's mode.
964
965 2000-07-31 Mark Mitchell <mark@codesourcery.com>
966
967 * flow.c (clear_log_links): Fix typo.
968
969 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
970
971 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
972 on targets which need more than one insn for a compare/cbranch
973 operation.
974
975 2000-07-31 Jim Wilson <wilson@cygnus.com>
976
977 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
978 when computing offset.
979
980 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
981
982 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
983
984 2000-07-31 Geoff Keating <geoffk@cygnus.com>
985
986 * flow.c (clear_log_links): Nuke global_live_at_start and
987 global_live_at_end data, since if the log_links stuff is invalid
988 so is global_live_at_*.
989
990 2000-07-31 Richard Henderson <rth@cygnus.com>
991
992 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
993
994 2000-07-31 Jakub Jelinek <jakub@redhat.com>
995
996 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
997 (_cpp_get_token): Don't macro expand a just pasted token if it
998 was pasted at no_expand_level.
999
1000 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
1001
1002 * cppmacro.c (find_param, count_params, save_expansion):
1003 Permit 'defined' as a macro parameter name.
1004
1005 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
1006
1007 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
1008 xcpp to cpp throughout.
1009 (native): Remove unnecessary dependency on cpp.
1010
1011 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
1012 tradcpp to tradcpp0.
1013 (.i spec): Add missing output-file spec to cc1 command line.
1014 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
1015
1016 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
1017
1018 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
1019 (implicit_decl_warning): New function.
1020 (implicitly_declare): Use it.
1021 * c-typeck.c (build_external_ref): Use implicit_decl_warning
1022 to complain about implicit decls of builtins.
1023
1024 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
1025 based on pedantic && flag_isoc99, if not already set.
1026 * c-tree.h: Declare mesg_implicit_function_declaration.
1027 Prototype implicit_decl_warning.
1028
1029 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
1030
1031 * Makefile.in (ssa.o): Updated header files in dependences.
1032 * basic-block.h: Added compute_immediate_postdominators declaration.
1033 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
1034 definition.
1035 * flow.c (compute_immediate_dominators): Updated comment.
1036 (compute_immediate_postdominators): Added definition.
1037 * rtl.h (HARD_REGISTER_P): Added definition.
1038 * ssa.c: Include additional header files.
1039 (assert): Added definition.
1040 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
1041 include select hard registers.
1042 (ssa_rename_to_insert): Likewise.
1043 (ssa_rename_from_initialize): Likewise.
1044 (ssa_rename_from_lookup): Likewise.
1045 (original_register): Likewise.
1046 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
1047 include select hard reigsters.
1048 (ssa_rename_from_traverse): Likewise.
1049 (ssa_rename_from_free): Likewise.
1050 (ssa_rename_from_print): Likewise.
1051 (ssa_rename_from_print_1): Likewise.
1052 (ssa_rename_from_hash_function): Likewise.
1053 (ssa_rename_from_equal): Likewise.
1054 (ssa_rename_from_delete): Likewise.
1055 (simplify_to_immediate_dominators): Removed in favor of
1056 flow.c:compute_immediate_dominators.
1057 (find_evaluations_1): Modified to work with hard registers.
1058 (insert_phi_node): Likewise.
1059 (insert_phi_nodes): Likewise.
1060 (struct rename_set_data): Updated prev_reg comment.
1061 (create_delayed_rename): Modified to work with hard registers.
1062 (RENAME_NO_RTX): Updated comment.
1063 (apply_delayed_renames): Modified to work with hard registers.
1064 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
1065 (rename_block): Updated to use revised ssa_rename_to interface.
1066 (rename_registers): Updated to use revised ssa_rename_to and
1067 ssa_rename_from interface.
1068 (convert_to_ssa): Revised to use compute_immediate_dominators and
1069 deal with hard registers.
1070 (make_regs_equivalent_over_bad_edges): Modified to work with hard
1071 registers. Added check for illegal unification of hard register.
1072 (make_equivalent_phi_alternatives_equivalent): Modified to work
1073 with hard registers.
1074 (compute_conservative_reg_partition): Likewise.
1075 (coalesce_if_unconflicting): Modified to work with hard registers
1076 and check for conflicting hard registers.
1077 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
1078 registers.
1079 (rename_equivalent_regs_in_insn): Modified to work with hard
1080 registers.
1081 (record_canonical_element_1): Added definition.
1082 (check_hard_regs_in_partition): Added definition.
1083 (convert_from_ssa): Added data structure deallocation and check
1084 for illegal hard register unification.
1085 (conflict_hard_regs_p): Added definition.
1086 * toplev.c (rest_of_compilation): Added comment.
1087
1088 2000-07-31 Anthony Green <green@redhat.com>
1089
1090 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
1091
1092 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
1093
1094 * builtins.c (expand_builtin_apply): Don't defer pop during
1095 argument setup.
1096
1097 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1098
1099 * calls.c (combine_pending_stack_adjustment_and_call): Only use
1100 preferred_unit_stack_boundary when it is > 1.
1101
1102 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
1103
1104 * c-common.c (init_function_format_info): Add C99 format functions
1105 in C99 mode.
1106
1107 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
1108 void' or 'register void' as being the special case of 'void' alone
1109 in a parameter list.
1110
1111 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
1112 discarding qualifiers into a plain warning.
1113
1114 2000-07-31 Kazu Hirata <kazu@hxi.com>
1115
1116 * combine.c: Fix formatting.
1117
1118 * h8300.md: Fix formatting.
1119
1120 * local-alloc.c: Fix formatting.
1121
1122 * h8300.c (get_shift_alg): Remove the variable alg.
1123 (emit_a_shift): Rearrange code to improve readability.
1124
1125 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
1126
1127 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
1128 HImode on all architectures and a combination of HImode and SImode
1129 on H8/300H and H8/S.
1130
1131 * h8300.c (split_adds_subs): Rearrange code for conciseness.
1132
1133 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
1134
1135 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
1136 in my last checkin.
1137
1138 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
1139
1140 * recog.c (extract_insn): Set operand_mode according to
1141 operand if match_operand is VOIDmode.
1142
1143 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
1144
1145 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
1146
1147 2000-07-31 Geoff Keating <geoffk@cygnus.com>
1148
1149 * c-parse.in (extdefs): Call ggc_collect between external
1150 definitions.
1151
1152 2000-07-30 Michael Hayes <mhayes@cygnus.com>
1153 Richard Henderson <rth@cygnus.com>
1154
1155 * Makefile.in (OBJS): Add doloop.o.
1156 * doloop.c: New file.
1157
1158 * final.c (insn_current_reference_address): Return 0 before final.
1159 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
1160 * jump.c (any_uncondjump_p): Likewise.
1161 * loop.c (indirect_jump_in_function): Make static.
1162 (strength_reduce): Call doloop_optimize.
1163 (insert_bct, instrument_loop_bct): Remove.
1164 * loop.h (doloop_optimize): Prototype.
1165 * recog.c (split_all_insns): Split all INSN_P.
1166 * toplev.c (flag_branch_on_count_reg): Default on.
1167
1168 * config/c4x/c4x.c (c4x_optimization_options): Don't set
1169 flag_branch_on_count_reg.
1170 * config/i386/i386.c (override_options): Likewise.
1171 * config/rs6000/rs6000.c (optimization_options): Likewise.
1172
1173 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
1174 (doloop_end): New.
1175 (dbra_ge): Remove, as well as all it's splitters.
1176
1177 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
1178 (doloop_end): New.
1179
1180 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
1181 (ia64_register_move_cost): Declare.
1182 * config/ia64/ia64.c (ar_lc_reg_operand): New.
1183 (struct ia64_frame_info): Add ar_size.
1184 (ia64_compute_frame_size): Set it.
1185 (save_restore_insns): Save and restore ar.lc.
1186 (ia64_register_move_cost): New, moved from header file. Handle
1187 application registers.
1188 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
1189 (emit_insn_group_barriers): Special case doloop_end_internal.
1190 (ia64_epilogue_uses): Mark ar.lc live at end.
1191 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
1192 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
1193 (FIRST_PSEUDO_REGISTER): Make room.
1194 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
1195 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
1196 (REG_ALLOC_ORDER): Update.
1197 (HARD_REGNO_MODE_OK): Update.
1198 (REGISTER_NAMES): Update.
1199 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
1200 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
1201 (REGNO_REG_CLASS): Update.
1202 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
1203 (REGISTER_MOVE_COST): Move out of line.
1204 (PREDICATE_CODES): Update.
1205 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
1206 (addsi3_plus1_alt, adddi3_plus1_alt): New.
1207 (shladd_elim splitter): Allow constants in the predicate.
1208 (doloop_end, doloop_end_internal): New.
1209
1210 2000-07-30 Richard Henderson <rth@cygnus.com>
1211
1212 * genattrtab.c (struct insn_def): Add lineno member.
1213 (struct insn_ent): Likewise.
1214 (struct attr_desc): Likewise.
1215 (struct delay_desc): Likewise.
1216 (struct function_unit_op): Likewise.
1217 (struct function_unit): Likewise.
1218 (check_attr_value): Use message_with_line.
1219 (check_defs): Likewise.
1220 (expand_units): Likewise.
1221 (check_attr_test): Take a lineno argument.
1222 (gen_attr): Likewise.
1223 (gen_insn): Likewise.
1224 (gen_delay): Likewise.
1225 (gen_unit): Likewise.
1226 (main): Give it to them.
1227 (convert_set_attr_alternative): Take an insn_def argument
1228 instead of num_alt and insn_index.
1229 (convert_set_attr): Likewise.
1230 (write_test_expr): Protect INSN_ADDRESSES load
1231 with INSN_ADDRESSES_SET_P.
1232
1233 2000-07-30 Richard Henderson <rth@cygnus.com>
1234
1235 * flow.c (init_propagate_block_info): Use pc_set.
1236
1237 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
1238
1239 * i386.md (*lea_general_[123]) New insns and splits.
1240 (addsi3 to lea splitter): Handle other modes too.
1241 (shlsi3 to lea splitter): Likewise.
1242 (addhi_1_lea, shlhi_1_lea): New patterns.
1243 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
1244
1245 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
1246
1247 * recog.c (general_operand, nonimmediate_operand): Accept
1248 any mode for VOIDmode CONSTANT_P operands.
1249
1250 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
1251
1252 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
1253 instead of replace_rtx.
1254 * recog.c (validate_replace_rtx_subexp): New function.
1255 * recog.h (validate_replace_rtx_subexp): Declare.
1256
1257 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
1258
1259 * combine.c (simplify_set, make_extraction, make_compound_operation
1260 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
1261 as force_to_mode argument.
1262
1263 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
1264
1265 * combine.c (if_then_else_cond): Be sure that mode fits in
1266 HOST_WIDE_INT.
1267
1268 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
1269
1270 * combine.c (record_promoted_value): Allow bitsize of mode
1271 to be equivalent to HOST_BITS_PER_WISE_INT.
1272
1273 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
1274
1275 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
1276 Do not call gen_mode_alignment when mode is BLKmode.
1277
1278 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
1279
1280 * loop.c (express_from_1): Fix call of simplify_gen_binary.
1281
1282 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
1283
1284 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
1285 VOIDmode implies both operands to be VOIDmode.
1286 (simplify_ternary_operation): Compute properly the mode of comparison.
1287 * combine.c (combine_simplify_rtx): Likewise.
1288
1289 2000-07-25 Michael Hayes <mph@paradise.net.nz>
1290
1291 * basic-block.h (struct loops): New field rc_order.
1292 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
1293 (flow_loops_free): Free rc_order.
1294 (flow_depth_first_order_compute): New parameter rc_order.
1295 (flow_loops_find): Allocate rc_order and swap usage with
1296 dfs_order.
1297
1298 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1299 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1300
1301 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
1302 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
1303 (nodb_call, return_from_epilogue): Likewise.
1304 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
1305 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
1306 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
1307 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
1308 (c4x_valid_type_attribute_p): Likewise.
1309 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
1310 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
1311
1312 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1313
1314 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
1315 and loadhi_big_constant if applicable.
1316 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
1317 and add new splitter.s
1318
1319 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1320
1321 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
1322
1323 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1324
1325 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
1326
1327 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1328
1329 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
1330
1331 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1332
1333 * config/c4x/libgcc.S (divqf3): Improve accuracy.
1334
1335 2000-07-27 Mark Mitchell <mark@codesourcery.com>
1336
1337 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
1338 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
1339 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
1340 (get_prev_bb_note): Likewise.
1341 (remove_scope_notes): Likewise.
1342 * flow.c (commit_one_edge_insertion): Likewise.
1343 (merge_blocks_nomove): Likewise.
1344 (verify_flow_info): Likewise.
1345 * gcse.c (insert_insn_end_bb): Likewise.
1346 * reg-stack.c (emit_swap_insn): Likewise.
1347 * ssa.c (first_insn_after_basic_block_note): New function.
1348 (insert_phi_node): Use it.
1349 (rename_block): Likewise.
1350 (eliminate_phi): Likewise.
1351 (make_regs_equivalent_over_bad_edges): Likewise.
1352 (make_equivalent_phi_alternatives_equivalent): Likewise.
1353 (for_each_successor_phi): Likewise.
1354 (convert_from_ssa): Modify phi-node deletion algorithm.
1355
1356 2000-07-29 Andreas Jaeger <aj@suse.de>
1357
1358 * configure.in (mips*-*-linux*): Use mips*el to check for little
1359 endian MIPS, add tmake_file.
1360
1361 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
1362 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
1363 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1364
1365 2000-07-28 Richard Henderson <rth@cygnus.com>
1366
1367 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
1368 Sign extend mode size before negating.
1369
1370 2000-07-28 Richard Henderson <rth@cygnus.com>
1371
1372 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
1373
1374 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
1375
1376 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
1377 (cse_insn): Likewise.
1378 (addr_affects_sp_p): Likewise.
1379 * expr.c (move_by_pieces): Likewise.
1380 (clear_by_pieces): Likewise.
1381 * gcse.c (oprs_unchanged_p): Likewise.
1382 * haifa-sched.c (sched_analyze_2): Likewise.
1383 * recog.c (offsettable_address_p): Likewise.
1384 * regclass.c (record_address_regs): Likewise.
1385 * reload.c (find_reusable_reload): Likewise.
1386 (push_reload): Likewise.
1387 (operands_match_p): Likewise.
1388 (decompose): Likewise.
1389 (find_reloads_address_1): Likewise.
1390 (find_inc_amount): Likewise.
1391 * reload1.c (elimination_effects): Likewise.
1392 * resource.c (mark_set_resources): Likewise.
1393 * flow.c (attempt_auto_inc): New function; mostly broken out
1394 of find_auto_inc.
1395 (find_auto_inc): Split into two functions and enhanced to
1396 generate POST_MODIFY.
1397 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
1398 * rtl.h (count_all_occurrences): Declare.
1399 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
1400 defined.
1401 * rtlanal.c (count_all_occurrences): New function.
1402 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
1403 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
1404
1405 * config/ia64/ia64-protos.h (destination_operand): Declare.
1406 * config/ia64/ia64.c (destination_operand): New function.
1407 (ia64_print_operand): Handle POST_MODIFY.
1408 (rtx_needs_barrier): Likewise.
1409 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
1410 (HAVE_POST_MODIFY_REG): Define to 1.
1411 (MAX_REGS_PER_ADDRESS): Change to 2.
1412 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
1413 (LEGITIMATE_ADDRESS_REG): New helper macro.
1414 (LEGITIMATE_ADDRESS_DISP): Likewise.
1415 (PREDICATE_CODES): Add entry for destination_operand.
1416 * config/ia64/ia64.md (all mov patterns): Use destination_operand
1417 predicate for operand 0.
1418
1419 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1420
1421 * dwarf2out.c: Indent #error directive.
1422
1423 * gbl-ctors.h: Fix typo in comment.
1424 (__do_global_ctors): Prototype.
1425
1426 * gcse.c (record_one_set, pre_delete): Remove unused variables.
1427
1428 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
1429 (print_operand): Initialize variable `t'.
1430
1431 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
1432
1433 * config/arm/arm.md ("call_value"): removed constraints.
1434 Constraints are ignored in expanders.
1435 (*call_value_reg): split =rf into various constraints.
1436 (*call_value_mem): same
1437 (*call_value_symbol): same
1438 (*sibcall_value_insn): same
1439
1440 2000-07-28 Philipp Thomas <pthomas@suse.de>
1441
1442 * install.texi (--enable-nls): Change the description of the NLS
1443 related configure options to match the current state.
1444 (--with-included-gettext): Likewise.
1445 (--enable-maintainer-mode): New description added.
1446 * extend.texi (-fstrict-prototype): Add missing '.'.
1447
1448 2000-07-27 Jim Wilson <wilson@cygnus.com>
1449
1450 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
1451 DECL_INITIAL (decl) == NULL_TREE.
1452
1453 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
1454
1455 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
1456 on insn-attr.h with it.
1457 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
1458 * insn-addr.h: New header.
1459 (insn_addresses_): Renamed from insn_addresses.
1460 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
1461 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
1462 INSN_ADDRESSES_NEW): New macros.
1463 * genattrtab.c (write_test_expr): Use new macros.
1464 * final.c (insn_addresses, init_insn_lengths): Likewise.
1465 (align_fuzz, shorten_branches): Likewise.
1466 (final): Likewise. Do not reject new insns if their addresses
1467 have been added to INSN_ADDRESSES.
1468 * config/arm/arm.c, config/avr/avr.c: Use new macros.
1469 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
1470 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
1471 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
1472 * config/sh/sh.c: Likewise.
1473 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
1474
1475 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
1476
1477 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
1478
1479 * gcc.c (struct prefix_list): Add member priority.
1480 (enum path_prefix_priority): Declare.
1481 (add_prefix): Replace ``first'' with ``priority''. Append new
1482 entry but keep list in priority order.
1483 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
1484 PREFIX_PRIORITY_LAST to add_prefix.
1485 (process_command): Move include kludge - foo/stageN - to before
1486 foo/include.
1487
1488 2000-07-27 Jason Merrill <jason@redhat.com>
1489
1490 * dwarf2out.c (gen_typedef_die): Abort if we get identical
1491 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
1492
1493 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
1494
1495 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
1496 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
1497
1498 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
1499
1500 * c-decl.c (finish_function): Don't treat 'main' specially unless
1501 flag_hosted. In C99 mode, return 0 from 'main' unless
1502 DEFAULT_MAIN_RETURN is otherwise defined.
1503
1504 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
1505 parameters defaulting to int in an old-style function definition.
1506
1507 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1508
1509 * c-parse.in (string): For -Wtraditional, warn about string
1510 concatenation only once per line.
1511
1512 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
1513
1514 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
1515 for HI-UX/WE2 systems.
1516
1517 2000-07-24 Bruce Korb <bkorb@gnu.org>
1518
1519 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
1520 defining the __xxx_TYPE__ macros.
1521 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
1522 * fixincl/fixlib.h: don't need to include "tm.h" anymore
1523 * fixincl/inclhack.def(type_map): now obsolete
1524
1525 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
1526
1527 * cpp.texi: Append a trailing full-stop to xrefs where needed.
1528
1529 2000-07-26 Dave Pitts <dpitts@cozx.com>
1530
1531 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
1532 routine constants.
1533 (mvs_hash_alias): New function.
1534 (mvs_add_alias): Change argument spacing.
1535 (mvs_need_alias): Change aliasing criteria. Added documentation.
1536 (mvs_get_alias): Change to use hashed name. The hashed name prevents
1537 CSECT name collisions.
1538 (mvs_check_alias): Likewise.
1539 (handle_pragma): Change documentation.
1540 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
1541 mode from SImode to DImode.
1542 (iorhi3): Changed LTORG size for insn.
1543
1544 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
1545
1546 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
1547 mem if the address is a mode_dependent_address_p.
1548
1549 2000-07-26 Kazu Hirata <kazu@hxi.com>
1550
1551 * h8300.c (print_operand): Print ":8" when the 'R' operand is
1552 suitable for 8-bit absolute.
1553 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
1554 (OK_FOR_U): Add a case for the 8-bit constant address on the
1555 H8/300H.
1556
1557 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
1558
1559 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
1560 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
1561 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
1562 lack of implemented alignment.
1563
1564 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
1565
1566 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
1567 cross-compiling between 64-bit and 32-bit machines.
1568
1569 2000-07-27 Richard Henderson <rth@cygnus.com>
1570
1571 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
1572 (movhicc_astep, movhi_internal_astep): New.
1573 (movsicc_astep, movsi_internal_astep): New.
1574 (movdicc_astep, movdi_internal_astep): New.
1575 (movsfcc_astep, movsf_internal_astep): New.
1576 (movdfcc_astep, movdf_internal_astep): New.
1577 (movxfcc_astep, movxf_internal_astep): New.
1578 (cmovdi_internal_astep, cmovsi_internal_astep): New.
1579 Unify the cmov[ds]i splitters.
1580
1581 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
1582
1583 * real.c (asctoeg): Rename `error' label to unexpected_char_error
1584
1585 2000-07-26 Nick Clifton <nickc@cygnus.com>
1586
1587 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
1588 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
1589
1590 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
1591 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
1592
1593 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
1594
1595 * c-decl.c (finish_enum): Convert enumerations that fit in an
1596 `int' to `int'.
1597 (build_enumerator): In pedantic mode, cast to `int' those that
1598 don't.
1599
1600 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
1601
1602 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
1603
1604 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1605
1606 * sh.md (cmpgtdi_t): Must be split.
1607 (cmpgtdi_t+1): New splitter.
1608
1609 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
1610
1611 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
1612 warnings for indented directives even if we are skipping.
1613
1614 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
1615
1616 * invoke.texi (strict-prototypes): Remove.
1617 * extend.texi (Deprecated Features): Add strict-prototypes.
1618 (Backwards Compatibility): New node.
1619
1620 2000-07-25 Jakub Jelinek <jakub@redhat.com>
1621
1622 * config/i386/i386.md (andsi_1+1): Allow HImode.
1623 (andsi_1+2): Require q_regs_operand.
1624
1625 2000-07-25 Jakub Jelinek <jakub@redhat.com>
1626
1627 * config/i386/i386.md (call_pop): Check operands[0],
1628 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
1629 (call): Likewise.
1630 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
1631 (call_value): Likewise.
1632
1633 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
1634
1635 * toplev.c (pipe_closed): Delete.
1636 (crash_signal): New. Generate ICE for a fatal signal.
1637 (float_signal): Call crash_signal outside a float-handler
1638 block, not abort.
1639 (main): Install crash_signal as handler for core-dumping signals.
1640
1641 2000-07-25 David Edelsohn <edelsohn@gnu.org>
1642
1643 * rs6000.c (print_operand, case 'T'): New case.
1644
1645 * rs6000.md (call_indirect_aix32): Convert to expander of
1646 scheduled instructions.
1647 (call_indirect_aix64): Likewise.
1648 (call_value_indirect_aix{32,64}): Likewise.
1649 (call, call_value): Invoke expanders for AIX. Fall through to
1650 matchers for SysV.
1651 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
1652 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
1653 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
1654 only "g" constraint.
1655 (call_nonlocal_aix64): Likewise.
1656 (call_value_nonlocal_aix{32,64}): Likewise.
1657 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
1658 operands.
1659 (call_value_nonlocal_sysv): New pattern.
1660 (indirect_jump{si,di}): Use new 'T' modifier.
1661 (tablejump{si,di} matchers): Likewise.
1662 (return_internal_{si,di}): Likewise.
1663 (return_eh_{si,di}): Likewise.
1664
1665 2000-07-24 Richard Henderson <rth@cygnus.com>
1666
1667 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
1668 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1669 * config/ia64/ia64.md (movdi_internal): Use it.
1670
1671 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
1672
1673 * cppexp.c: Warn about unary + if -Wtraditional.
1674 * cpplex.c (lex_line): Always set BOL on the first token of a line.
1675
1676 2000-07-24 Michael Meissner <meissner@redhat.com>
1677
1678 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
1679 unsupported macro.
1680
1681 2000-07-24 Nick Clifton <nickc@cygnus.com>
1682
1683 * config/arm/arm.c (emit_multi_reg_push): Generate a
1684 REG_FRAME_RELEATED_NOTE that is compatable with the code in
1685 dwarf2out_debug_frame_expr.
1686
1687 2000-07-24 Jason Merrill <jason@redhat.com>
1688
1689 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
1690 UNALIGNED_INT_ASM_OP.
1691 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
1692 a location expression.
1693 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
1694 assume indirect access if we're saving the CFA address exactly.
1695
1696 * Makefile.in (bootstrap): Move -BstageN/ to the end.
1697
1698 2000-07-24 Jakub Jelinek <jakub@redhat.com>
1699
1700 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
1701 as well.
1702
1703 2000-07-24 Michael Meissner <meissner@redhat.com>
1704
1705 * invoke.texi (D30V Options): Add d30v options.
1706
1707 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
1708
1709 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
1710 needed by our gcse pass anymore.
1711 (free_pre_mem): Corresponding changes.
1712 (compute_pre_data): Do not call compute_transpout anymore.
1713
1714 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
1715 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
1716 changes.
1717
1718 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
1719 (compute_pre_data): Do it here instead.
1720
1721 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
1722 'temp_bitmap'.
1723 (pre_delete): Corresponding changes.
1724
1725 2000-07-23 Mark Mitchell <mark@codesourcery.com>
1726
1727 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
1728 to figure out whether or not a variable has already been emitted.
1729
1730 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
1731
1732 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
1733 instead of gen_call.
1734
1735 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
1736
1737 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
1738
1739 2000-07-23 Kazu Hirata <kazu@hxi.com>
1740
1741 * h8300.c: Fix formatting.
1742
1743 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
1744
1745 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
1746 for `long' switch expression into a plain warning.
1747
1748 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
1749 (yylex): Don't pedwarn for "inline" in C99 mode.
1750
1751 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
1752 with %p.
1753 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
1754 ggc_alloc): Likewise.
1755 * bb-reorder.c (dump_scope_forest_1): Likewise.
1756
1757 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
1758
1759 * reload.c (find_reloads_toplev): Add new parameter
1760 "address_reloaded".
1761 (find_reloads): Add new parameter to find_reloads_toplev calls.
1762
1763 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
1764
1765 * collect2.c (main): Typo fixed.
1766 * diagnostic.c: Typo fixed.
1767 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
1768 * eh-common.h: Typo fixed.
1769 * emit-rtl.c (start_sequence): Typo fixed.
1770 * flow.c (find_label_refs): Typo fixed.
1771 (calculate_global_regs_live): Typo fixed.
1772 (mark_regno_cond_dead): Typo fixed.
1773 (create_edge_list): Typos fixed.
1774 (verify_edge_list): Typo fixed.
1775 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
1776 * loop.c (strength_reduce): Typo in function name fixed.
1777 * rtl.h: Added comments. Typo in function name fixed.
1778 * rtlanal.c: Typo in function name fixed.
1779 (insn_dependant_p): Rename to ...
1780 (insn_dependent_p): ... this.
1781 (computed_jumo_p): Typo fixed.
1782
1783 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1784
1785 * system.h (__FUNCTION__): Wrap definition in #ifndef.
1786
1787 2000-07-21 David Edelsohn <edelsohn@gnu.org>
1788
1789 * rs6000.h (SIZE_TYPE): Define.
1790
1791 2000-07-21 Mark Mitchell <mark@codesourcery.com>
1792
1793 * ssa.c (rename_insn_1): Don't rename registers that are
1794 CLOBBERed.
1795
1796 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
1797
1798 * diagnostic.c (trim_filename, fancy_abort): Moved here from
1799 rtl.c.
1800 (fatal_function, set_fatal_function): Removed.
1801 (fatal): Don't prepare for or call the fatal_function.
1802 (diagnostic_lock, error_recursion): New.
1803 (diagnostic_for_decl, report_diagnostic): Guard against
1804 re-entering the error reporting routines.
1805 (fancy_abort): Assume function is not NULL.
1806
1807 * errors.c (fancy_abort): New. Assume function is not NULL.
1808 * tradcpp.c (fancy_abort): Assume function is not NULL.
1809
1810 * system.h: Provide default definition of __FUNCTION__.
1811 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
1812 Always use __FUNCTION__ in definition of abort.
1813 * tree.h: Likewise.
1814 * varray.h: Likewise.
1815 * toplev.h: Likewise. Don't prototype set_fatal_function.
1816
1817 2000-07-20 Geoff Keating <geoffk@cygnus.com>
1818
1819 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
1820 in 64-bit mode.
1821 * glimits.h: Don't do #if defined for ARCH_PPC.
1822
1823 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
1824 constants of size no larger than a pointer should go in the TOC.
1825 Add 'MODE' parameter.
1826 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
1827 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
1828 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1829 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
1830 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
1831 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
1832 (rs6000_legitimize_address): Likewise.
1833 (rs6000_emit_move): Likewise.
1834 (rs6000_select_rtx_section): Likewise.
1835 (output_toc): Deal properly with outputting small constants like
1836 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
1837 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
1838 MODE parameter. Put small constants in the TOC.
1839
1840 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
1841 easy in SImode.
1842 (rs6000_emit_move): When reload calls us with an illegitimate
1843 address, exit early. Move the change_address calls to one place
1844 at the end of the routine. Merge the SImode and DImode expanders.
1845 When called by reload to put an integer into a FP register, force
1846 it to memory.
1847
1848 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
1849 field.
1850 (rs6000_hash_constant): Hash mode too.
1851 (toc_hash_function): Allow for key_mode.
1852 (toc_hash_eq): Structures are different if key_mode differs.
1853 (output_toc): Add 'mode' parameter. Save key_mode.
1854 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
1855 Pass 'mode' parameter.
1856 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
1857
1858 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
1859 for vtable references.
1860
1861 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
1862 choice, don't put integer values in FP regs.
1863
1864 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
1865
1866 * flow.c (verify_flow_info): Revamp code to verify that the
1867 head and end of each basic block are in the insn chain.
1868
1869 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
1870
1871 * gcse.c (record_one_set): Prepend instead of append onto
1872 reg_set_table, making it O(n) instead O(n^2).
1873 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
1874 Use a queue instead of a stack as worklist.
1875
1876 2000-07-20 Kazu Hirata <kazu@hxi.com>
1877
1878 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
1879 * h8300.h (OK_FOR_T): New.
1880 (EXTRA_CONSTRAINT): Support OK_FOR_T.
1881 * h8300.md: Use inc/dec.[wl] for increment/decrement
1882 by 1 and 2 in HI and SI modes.
1883
1884 2000-07-20 Jim Wilson <wilson@cygnus.com>
1885
1886 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
1887 larger than 14 bits.
1888
1889 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
1890
1891 * cppmacro.c (CAN_PASTE_AFTER): New macro.
1892 (count_params): Don't set GNU_REST_ARGS on anything.
1893 (save_expansion): Set PASTE_LEFT only on tokens for which
1894 CAN_PASTE_AFTER is true, or which are named operators.
1895
1896 * cpplex.c (parse_args): Distinguish between a rest argument
1897 given one empty argument, and a rest argument given zero arguments.
1898 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
1899 deletion of previous token based on that.
1900 (get_raw_token): Flatten some control structure.
1901
1902 * cpplib.h (CPP_LAST_EQ): Correct.
1903 (VOID_REST): New token flag.
1904 (GNU_REST_ARGS): Delete.
1905
1906 * tradcpp.c (main): Don't munge -D options.
1907 (make_definition): Bring -D handling in line with cpplib.
1908 (do_define): Strip all leading whitespace from macro definitions.
1909
1910 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
1911
1912 * Makefile.in (tradcpp): Depend on intl.o and version.o.
1913
1914 2000-07-20 Bruce Korb <bkorb@gnu.org>
1915
1916 * fixincl/check.tpl: strip the platform specific types before testing
1917 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
1918 * fixincl/fixincl.tpl: use platform specific types
1919 * fixincl/fixlib.h: include the platform specific types
1920 * fixincl/inclhack.def(gnu_types): don't supply the types
1921 * fixincl/fixincl.x: regen
1922
1923 2000-07-19 Jim Wilson <wilson@cygnus.com>
1924
1925 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
1926 GR_REGS.
1927
1928 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
1929
1930 * tradcpp.c (rescan): Do not recognize directives when the #
1931 is indented.
1932
1933 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
1934
1935 Implement C++ named operators.
1936
1937 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
1938 of operators allowed in #if and having an _EQ variant. Add
1939 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
1940 (cpp_token flags): Add NAMED_OP.
1941 (enum node_type): Add T_OPERATOR.
1942 (struct cpp_hashnode): Add code slot to value union.
1943 * cpphash.h (spec_nodes): Remove n_defined.
1944
1945 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
1946 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
1947 (is_macro_disabled): Tweak error messages.
1948
1949 * cpplib.c (get_define_node): Disallow all named operators as
1950 macro names. Tweak error messages.
1951 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
1952
1953 * cppinit.c (builtin_array): Add entries for the named operators.
1954 * cppexp.c (lex): Check for CPP_DEFINED token.
1955 (priority table): Add entries for CPP_MIN and CPP_MAX.
1956 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
1957
1958 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
1959
1960 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
1961 larger than the array of cuids.
1962 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
1963 cuids.
1964
1965 2000-07-19 Bruce Korb <bkorb@gnu.org>
1966
1967 * fixinc/fixincl.c: Convert to using a table of environment variables
1968 and activate the auto-edit marker on the fixed output files.
1969 * fixinc/fixlib.h: Define the environment table
1970 * fixinc/fixincl.sh: export the ${INPUT} dir
1971 * fixinc/check.tpl: likewise
1972
1973 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
1974
1975 * gcc.c (.h spec): Fix typo.
1976
1977 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
1978
1979 * Makefile.in: Fix tradcif.c path.
1980
1981 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
1982
1983 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
1984 macros, not five.
1985
1986 * cpphash.h (TOKEN_NAME): New macro.
1987 (_cpp_spell_operator): Deleted.
1988 (token_spellings): Now _cpp_token_spellings.
1989
1990 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
1991 * cpplex.c: Use OP and TK macros when expanding the
1992 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
1993 store the stringification of the enumeration name (CPP_CHAR,
1994 etc.) in the name slot of token_spellings.
1995 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
1996 token_spellings directly.
1997 * cpplib.c: Use TOKEN_SPELL.
1998
1999 * cpplex.c (_cpp_push_token): If the token being pushed back
2000 is the previous token in this context, just subtract one from
2001 context->posn.
2002 * cppmacro.c (save_expansion): Clear aux field when storing a
2003 placemarker.
2004
2005 2000-07-18 Jakub Jelinek <jakub@redhat.com>
2006
2007 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
2008 buffer, provided it is not NULL.
2009
2010 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
2011
2012 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
2013 case of invalid volatile re-declaration.
2014
2015 2000-07-18 Jakub Jelinek <jakub@redhat.com>
2016
2017 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
2018 (expand_call): Adjust caller.
2019
2020 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
2021
2022 * diagnostic.h (report_diagnostic): Change prototype.
2023
2024 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
2025 diagnostic_for_decl): Change prototype.
2026 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
2027 error, warning, error_with_file_and_line,
2028 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
2029 Adjust call to report_diagnostic, diagnostic_for_decl.
2030 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
2031 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
2032
2033 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
2034 varaible argument list.
2035
2036 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
2037
2038 * cpphash.c: Don't include hashtab.h. Most macro-handling code
2039 moved to cppmacro.c.
2040 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
2041 dump_hash_helper): Delete.
2042 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
2043 cpp_forall_identifiers): New. Implement specialized version of
2044 Vlad's expandable hash table.
2045 (cpp_lookup): Use new functions.
2046 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
2047 implementation.
2048 * cppmacro.c: New file.
2049 * cppinit.c (dump_macros_helper): New.
2050 (cpp_finish): Iterate over the identifier table directly.
2051 * cpplex.c (parse_name): Calculate the hash of the identifier
2052 while we scan it. Use _cpp_lookup_with_hash when we can.
2053
2054 * cpphash.h: Update prototypes.
2055 (xcnewvec, HASHSTEP): New helper macros.
2056 * cpplib.h: Update prototypes.
2057 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
2058 (cppmacro.o): New rule.
2059 (cpphash.o): Update deps.
2060
2061 * cppmain.c: Do not set pfile->printer if no_output is on.
2062
2063 2000-07-15 Neil Booth <neilb@earthling.net>
2064
2065 * cpplib.c: Change all directive-handler functions to return
2066 void, not int.
2067 * cpphash.h: Update typedefs.
2068
2069 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
2070
2071 * configure: Regenerate.
2072
2073 * extend.texi (Extended Asm): Mention that a memory clobber
2074 does not count as a side-effect.
2075
2076 * unroll.c (copy_loop_body): Fix one instance of using host
2077 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
2078 cross-compile.
2079
2080 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
2081
2082 2000-07-17 Richard Henderson <rth@cygnus.com>
2083
2084 * config/ia64/ia64.md (movdi): Split out load address code.
2085 New post-reload splitter for symbolic operands.
2086 (movdi_internal): Abort if we didn't split symbolic operands
2087 when we should have.
2088 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
2089 (ia64_reorg): Split insns when not optimizing.
2090 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
2091
2092 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
2093
2094 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
2095 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
2096
2097 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
2098
2099 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
2100
2101 2000-07-17 Jason Merrill <jason@redhat.com>
2102
2103 * Makefile.in (clean): Remove libgcc directory.
2104
2105 * configure.in (-Wno-long-long check): Use higher-level macros.
2106
2107 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
2108
2109 * simplify-rtx.c (simplify_binary_operation): Recognize
2110 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
2111 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
2112 a CONST_INT, it will always be zero.
2113
2114 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
2115
2116 * loop.c (check_dbra_loop) : Return if more than one condition is
2117 present to control the loop.
2118
2119 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
2120
2121 * mips.c (mips_expand_prologue): Don't calculate the last argument
2122 register unless we need it. When we are calculating this, make
2123 sure FUNCTION_ARG is giving us a REG.
2124
2125 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2126
2127 * flow.c (libcall_dead_p): Use single_set to verify the insn
2128 has only one set and get for analysis.
2129 (propagate_one_insn): Don't pass the PATTERN of the insn.
2130
2131 2000-07-17 Mark Klein <mklein@dis.com>
2132
2133 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
2134
2135 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2136
2137 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
2138 * configure.in (TARGET_GETGROUPS_T): Evaluate.
2139 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
2140 of second argument of getgroups.
2141 * configure, config.in: Rebuilt.
2142
2143 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
2144
2145 * simplify-rtx.c (simplify_relational_operation): Two signed
2146 values with equal high words are less/greater than each other if
2147 their low words are less/greater when considered as unsigned.
2148
2149 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
2150
2151 * configure.in (vax-*-openbsd): Change to new style configuration,
2152 add collect2/float_format information.
2153 * configure: Rebuilt.
2154 * config/vax/openbsd1.h: New.
2155 * config/vax/openbsd.h: New.
2156 * config/vax/t-openbsd: New.
2157
2158 2000-07-17 Chip Salzenberg <chip@valinux.com>
2159
2160 * c-common.c (shorten_compare): Quiet warnings about unsigned
2161 comparisons with zero when they occur in a system header.
2162
2163 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
2164
2165 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
2166 update to describe current practice.
2167
2168 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
2169
2170 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
2171 references to C9X. Change references to -fstd and -flang-isoc9x
2172 to refer to -std.
2173
2174 * c-common.c (scan_char_table): Allow "z" length modifiers on
2175 diouxXn formats.
2176 (check_format_info): Use TYPE_DOMAIN on the type matched against
2177 for "z" formats, to retrieve the language size_t rather than the
2178 internal one.
2179
2180 * c-common.c (check_format_info): Do not make a pedantic objection
2181 to the 'L' length modifier if used with a floating point type
2182 character.
2183
2184 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
2185 constants in C99 mode.
2186
2187 2000-07-17 Kazu Hirata <kazu@hxi.com>
2188
2189 * h8300.md: Fix the format of mac.
2190 (movsi_h8300hs): Output a tab after stmac instead of a space.
2191
2192 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
2193 profitable adds/subs sequences.
2194
2195 * fold-const.c: Fix comment typos.
2196
2197 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
2198
2199 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
2200
2201 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2202
2203 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
2204
2205 2000-07-16 Neil Booth <NeilB@earthling.net>
2206
2207 * cpplex.c: Update comments.
2208 * README.Portability: Small update.
2209
2210 2000-07-16 Neil Booth <NeilB@earthling.net>
2211
2212 * README.Portability: Small update.
2213
2214 2000-07-15 Richard Henderson <rth@cygnus.com>
2215
2216 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
2217 * config/ia64/ia64.c (ia64_move_ok): New function.
2218 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
2219 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
2220
2221 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
2222
2223 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
2224 immediately following a paste operator.
2225 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
2226 (cpp_reader_init): Call it, if HOST_EBCDIC.
2227 (cpp_handle_options): Do not sort option list here.
2228 (handle_option): Rename to cpp_handle_option and export.
2229 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
2230 _cpp_get_token directly.
2231 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
2232 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
2233 * cpplib.h: Prototype cpp_handle_option. Update prototype of
2234 cpp_scan_line.
2235
2236 2000-07-15 Richard Henderson <rth@cygnus.com>
2237
2238 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
2239 cast around an expression. Tidy other unsigned tests.
2240
2241 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
2242
2243 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
2244 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
2245 (v_message_with_decl): Rename to ...
2246 (format_with_decl): ... this. Tweak
2247 (diagnostic_for_decl): New function.
2248 (fatal_io_error): Use verbatim in lieu of notice.
2249 (announce_function): Use verbatim.
2250 (default_print_error_function): Likewise.
2251 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
2252 infratructure.
2253
2254 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2255
2256 * mips.c (function_arg_pass_by_reference): Don't do automatic
2257 aggregate initialization.
2258 (machine_dependent_reorg): Initialize variable `mode'.
2259
2260 * mips.md (absdi2): Change variable `regno1' to unsigned int.
2261 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
2262 conflicts with sys/param.h macro of the same name.
2263 (reload_outdi): Likewise.
2264
2265 2000-07-15 Michael Meissner <meissner@redhat.com>
2266
2267 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
2268 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
2269 create a new node instead.
2270
2271 2000-07-15 Neil Booth <NeilB@earthling.net>
2272
2273 * README.Portability: Correct example about calling a function
2274 through a pointer to function. Format wide paragraphs.
2275
2276 2000-07-15 Michael Meissner <meissner@redhat.com>
2277
2278 * README.Portability: Update integer suffixes and function
2279 prototype sections.
2280
2281 2000-07-15 Neil Booth <NeilB@earthling.net>
2282
2283 * README.Portability: Small update.
2284
2285 2000-07-15 Neil Booth <NeilB@earthling.net>
2286
2287 * README.Portability: New file.
2288
2289 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
2290
2291 * INSTALL: Give special instructions for building GCC on Irix 6.
2292 * config/mips/x-iris6 (CC): Don't set it.
2293 (OLDCC): Likewise.
2294
2295 2000-07-14 Jason Merrill <jason@redhat.com>
2296
2297 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
2298 register in the stack and later in another register, use the new
2299 register.
2300
2301 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
2302
2303 * config/mips/mips.md: (absdi2): Handle sign_extend for
2304 second operand.
2305
2306 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
2307
2308 * cpplib.c (do_pragma_dependency): Tidy warning messages.
2309
2310 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
2311
2312 * .cvsignore: Correct typo.
2313
2314 2000-07-13 Mark Mitchell <mark@codesourcery.com>
2315
2316 * .cvsignore: Add generated YACC files.
2317 * objc/.cvsignore: New file.
2318
2319 2000-07-14 Neil Booth <NeilB@earthling.net>
2320
2321 * cpplex.c (adjust_column): New funcion.
2322 (skip_whitespace): Use it.
2323 (skip_block_comment): Use it, and warn about /*/* with
2324 -Wcomments.
2325
2326 2000-07-14 Neil Booth <NeilB@earthling.net>
2327
2328 * cpphash.c (struct macro_info): Add new members.
2329 (_cpp_free_definition): Delete the macro directly.
2330 (count_params): Return void, with first token of
2331 expansion in struct macro_info on success.
2332 (parse_define): Return int. Hoist syntax checking from
2333 save_macro_expansion. Leave call to save_expansion to
2334 _cpp_create_definition.
2335 (alloc_macro): Needs just 2 arguments.
2336 (free_macro): Delete.
2337 (save_expansion): Don't perform syntax check.
2338 (_cpp_create_definition): Call save_expansion.
2339
2340 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2341
2342 * genrecog.c (write_header): Split long string.
2343
2344 * cpphash.c (macro_info): Don't use the `signed' keyword.
2345
2346 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
2347
2348 2000-07-13 Jakub Jelinek <jakub@redhat.com>
2349
2350 * calls.c (stored_args_map): New variable.
2351 (check_sibcall_argument_overlap_1): New.
2352 (check_sibcall_argument_overlap): New.
2353 (expand_call): Initialize stored_args_map.
2354 Call check_sibcall_argument_overlap.
2355
2356 2000-07-13 Bruce Korb <bkorb@gnu.org>
2357
2358 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
2359 (emit_gnu_type): utility procedure for gnu_type_fix
2360 (gnu_type_fix): implement various pre-processor guards around
2361 standard types so these types can be defined over and over
2362 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
2363 types alluded to above will have GNU-compliant base types
2364 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
2365 * fixinc/inclhack.def: add test_text entries and utilize the new
2366 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
2367 * fixinc/fixincl.x: regenerate
2368
2369 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2370
2371 * diagnostic.c (vline_wrapper_message_with_location,
2372 v_message_with_file_and_line, v_error_with_file_and_file,
2373 v_error_for_asm, v_warning_for_asm, vfatal,
2374 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
2375 vsorry, verror, vwarning, vpedwarn): Remove.
2376 (diagnostic_for_asm): New function.
2377 (pedwarn, error, warning, pedwarn_with_file_and_line,
2378 error_with_file_and_line, warning_with_file_and_line, sorry,
2379 error_for_asm, warning_for_asm, fatal): Reimplement.
2380 (finish_diagnostic): Clear diagnostic info as well.
2381
2382 2000-07-13 Neil Booth <NeilB@earthling.net>
2383
2384 * c-common.h (flag_digraphs): New.
2385 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
2386 * c-lex.c (yylex): Use flag_digraphs to decide whether to
2387 honour digraphs.
2388
2389 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
2390
2391 * gcc.c (do_spec_1): Add new %B operator.
2392 (set_input): Prepare for %B.
2393
2394 (link_command_spec): Move up with the other tm.h-
2395 overrideable specs. Factor out the portion conditional on
2396 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
2397 (struct compiler): Just have a single spec string. All users
2398 updated.
2399 (default_compilers): Remove unnecessary braces.
2400 (static_specs): Update.
2401
2402 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
2403 named specs.
2404 (C and assembly specs): Use the new named specs, as appropriate.
2405
2406 * objc/lang-specs.h: Use the new named specs.
2407 Remove unnecessary braces.
2408
2409 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
2410
2411 * gcc.c (execute): If a subprocess gets a fatal signal, report
2412 strsignal() of the signal number, and ask for a bug report.
2413 Do not do this for SIGPIPE if there's already been an error.
2414
2415 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
2416 Delete pipe_closed.
2417
2418 * tradcif.c: Remove.
2419
2420 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
2421
2422 * final.c (profile_function): Do not emit profile counters in
2423 the data section, if NO_PROFILE_COUNTERS is defined.
2424 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
2425 FUNCTION_PROFILER.
2426
2427 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
2428 (FUNCTION_PROFILER): Just emit a call to mcount.
2429
2430 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
2431
2432 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
2433
2434 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
2435 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
2436 traditional, lang_chill, or lang_fortran.
2437
2438 * cppfiles.c: #undef strcmp to suppress warning about macros
2439 used without arguments.
2440 (_cpp_execute_include): Use f, not fname, in "No include path"
2441 error.
2442 (_cpp_pop_file_buffer): New function.
2443 * cpplib.c: Don't include <sys/mman.h>.
2444 (cpp_push_buffer): Set line_base and lineno in new buffer.
2445 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
2446
2447 * cpplex.c: Move all prototypes and structure declarations to the
2448 top of the file. Properly parenthesise some macro arguments.
2449 (cpp_scan_line): New function.
2450 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
2451 don't need to walk up the stack counting.
2452
2453 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2454
2455 * c-common.c (combine_strings): Emit a pedantic warning when a
2456 string length is greater than the minimum ANSI C is required
2457 to support.
2458
2459 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
2460
2461 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
2462 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
2463
2464 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2465
2466 * c-decl.c (define_label): Warn about identifier conflicts with
2467 labels in traditional C.
2468
2469 * c-parse.in (unop +): Warn about the unary plus operator for
2470 traditional C.
2471
2472 * c-typeck.c (store_init_value): Warn about automatic aggregate
2473 initialization for traditional C.
2474
2475 * invoke.texi (-Wtraditional): Document new warnings.
2476
2477 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
2478
2479 * Makefile.in (c-errors.o): Fix thinko in dependency.
2480
2481 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
2482
2483 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
2484 -traditional, -ftraditional, or -traditional-cpp was given.
2485 Do not pass -traditional to the preprocessor.
2486 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
2487 preprocessor does it automatically.
2488 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
2489
2490 * ch/lang-specs.h: Always use tradcpp. Do not pass
2491 -traditional, -trigraphs, or -pedantic to the preprocessor.
2492 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
2493 _LANGUAGE_FORTRAN.
2494
2495 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
2496
2497 * cppexp.c (LOGICAL): Delete macro.
2498 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
2499 and && directly.
2500
2501 * cpphash.c (HASHSIZE): Increase to 4096.
2502 (struct hashdummy): Add hash field.
2503 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
2504 the string values using memcmp.
2505 (cpp_lookup): Set dummy.hash.
2506
2507 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
2508
2509 * configure.in (m88k-openbsd): Express configuration using new fragment
2510 style.
2511 * configure: Rebuilt.
2512 * m88k/aout-dbx.h: New.
2513 * m88k/openbsd.h: New.
2514 * m88k/xm-openbsd.h: New.
2515
2516 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2517
2518 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
2519
2520 2000-07-12 Richard Henderson <rth@cygnus.com>
2521
2522 * reload.c (push_secondary_reload): Make sure to add the new
2523 reload at the end, after acquiring secondary memory.
2524
2525 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2526
2527 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
2528
2529 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
2530 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
2531
2532 * c-parse.in (stmt): Delete unused variables.
2533
2534 * convert.c (convert_to_vector): Likewise.
2535
2536 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
2537
2538 * tree.c (finish_vector_type): Prototype.
2539
2540 2000-07-12 Bruce Korb <bkorb@gnu.org>
2541
2542 * fixinc/fixfixes.c: use xmalloc
2543 * fixinc/fixincl.c(initialize): set program name for xmalloc
2544 * fixinc/fixlib.c(must_malloc): obsolete
2545 (is_cxx_header): no longer used - disabled
2546 (skip_quote): inserted and disabled for future use
2547 * fixinc/fixlib.h: reflects above
2548 * fixinc/fixtests.c: removed dinkleberries
2549
2550 2000-07-12 Neil Booth <NeilB@earthling.net>
2551
2552 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
2553 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
2554
2555 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
2556 struct toklist_dummy): New.
2557 (cpp_free_definition): Free macros with free_macro.
2558 (count_params): Don't save paramter spellings. Save macro
2559 information in a struct macro_info.
2560 (parse_define): Don't allocate a token list.
2561 (save_expansion): Allocate the macro's token list, and
2562 save parameter spellings if necessary. Use TOKEN_SPELL.
2563 (cpp_create_definition): Make list const.
2564
2565 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
2566
2567 * c-typeck.c (pedwarn_c99): Move to
2568 * c-errors.c: ... Here.
2569 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
2570 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
2571 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
2572 (c-errors.o): List dependency.
2573
2574 2000-07-12 Mark Mitchell <mark@codesourcery.com>
2575
2576 * c-parse.c: Remove.
2577 * c-parse.h: Likewise.
2578 * c-parse.y: Likewise.
2579 * objc/objc-parse.c: Likewise.
2580 * objc/objc-pasre.y: Likewise.
2581
2582 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
2583
2584 * gcc.texi: Fix minor typos
2585 * extend.texi: Fix minor typos
2586
2587 2000-07-11 Marc Espie <espie@openbsd.org>
2588
2589 * collect2.c (main): Recognize .lo as object files.
2590
2591 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2592
2593 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
2594 true.
2595
2596 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
2597 with MAP_ANONYMOUS and MAP_ANON.
2598 * configure, config.in: Rebuilt.
2599
2600 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
2601
2602 * diagnostic.c (save_output_state): Remove.
2603 (restore_output_state): Likewise.
2604 (clear_text_info): New function.
2605 (clear_diagnostic_info): Likewise.
2606 (output_text_length, is_starting_newline, output_prefix,
2607 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
2608 prefixing_policy, output_buffer_ptr_to_format_args): New macros
2609 (set_real_maximum_length, output_set_maximum_length,
2610 output_set_prefix, output_get_prefix, output_set_maximum_length,
2611 output_destroy_prefix, init_output_buffer,
2612 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
2613 output_add_newline, output_add_character, output_add_space,
2614 output_append_r, output_append, wrap_text, output_format,
2615 output_do_printf, output_printf, output_do_verbatim,
2616 output_verbatim, verbatim): Use them.
2617 (output_clear): Split into cleat_text_info and
2618 clear_diagnostic_info.
2619 (struct output_state): Move to...
2620
2621 * diagnostic.h: ...Here
2622 (struct output_buffer): Adjust.
2623
2624 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
2625
2626 * cpplex.c (parse_name): No longer inline (premature optimization).
2627 (do_pop_context): Fold into pop_context.
2628 (pop_context): Returns int.
2629 (lex_next): Hoist test for end of directive into pop_context.
2630 (push_macro_context): Returns int; takes just reader and token.
2631 Hoist test for excessive nesting to caller.
2632 (push_arg_context): Returns void; takes just reader and token.
2633 Do not call stringify_arg or get_raw_token.
2634 (get_raw_token): Convert tail recursion through push_arg_context
2635 to a loop at this level. Call stringify_arg here if appropriate.
2636 (maybe_paste_with_next): Convert tail recursion to a while loop.
2637 Hoist test of paste_level to caller.
2638
2639 (stringify_arg): Push arg context at beginning.
2640 (cpp_get_token): Split out core into _cpp_get_token. Call
2641 process_directive here. Throw away CPP_PLACEMARKER tokens.
2642 (_cpp_get_token): Convert tail recursion through
2643 push_macro_context to a loop at this level.
2644 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
2645 _cpp_get_raw_token): Use _cpp_get_token.
2646 (_cpp_skip_rest_of_line): Drop the context stack directly; do
2647 not call pop_context.
2648 (_cpp_run_directive): Call lex_next directly.
2649
2650 * cpphash.h: Prototype _cpp_get_token.
2651 * cppexp.c (lex): Use it.
2652 * cpphash.c (parse_define): Use it.
2653 * cpplib.c (get_define_node, do_undef, parse_include,
2654 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
2655 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
2656 parse_ifdef, validate_else): Use it.
2657 (cpp_push_buffer): Tweak error message; abort if anyone tries
2658 to push a buffer while macro expansions are stacked.
2659
2660 2000-07-11 Donn Terry <donnte@microsoft.com>
2661
2662 * cpplex.c (free_macro_args, save_token): Cast arg of free
2663 and/or xrealloc to PTR.
2664 (_cpp_init_input_buffer): Clear all fields of the base context.
2665
2666 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
2667
2668 * gensupport.c (process_rtx): Make rtl checking stop
2669 complaining about the define_insn while it is being
2670 converted from a define_insn_and_split.
2671
2672 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
2673
2674 * config/mips/mips.c (simple_memory_operand): Access the
2675 INTVAL of the address, not it's containing MEM.
2676
2677 2000-07-11 Bruce Korb <bkorb@gnu.org>
2678
2679 * fixinc/fixtests.c(double_slash): obsolete
2680 (else_endif_label): likewise
2681 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
2682 (libc1_ifdefd_memx): correct initial comment
2683 and omit the #if/#endif pair from the memxxx declarations
2684 * fixinc/fixincl.x: regen
2685
2686 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2687
2688 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
2689
2690 2000-07-11 Neil Booth <NeilB@earthling.net>
2691
2692 * cpp.texi: Update.
2693
2694 2000-07-11 Neil Booth <NeilB@earthling.net>
2695
2696 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
2697 (handle_option): Set digraphs according to standard.
2698 Merge OPT_lang_c89 handler with OPT_std_c89.
2699
2700 * cpplex.c: (lex_line, can_paste): Honour digraphs in
2701 accordance with the digraphs flag.
2702
2703 * cpplib.h: (struct cpp_options): New option digraphs.
2704
2705 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
2706 Bruce Korb <bkorb@gnu.org>
2707
2708 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
2709 * fixinc/fixincl.x: Regenerate.
2710 * fixinc/tests/base/testing.h: Add testcase.
2711
2712 2000-07-10 Richard Henderson <rth@cygnus.com>
2713
2714 * config/ia64/ia64.c (got_symbolic_operand): New.
2715 (symbolic_operand, move_operand): Revert 0701 change.
2716 * config/ia64/ia64.h (PREDICATE_CODES): Update.
2717 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
2718 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
2719 split the offset into a 14-bit low part instead of a 13-bit low part.
2720 (load_fptr): Mark the mem as unchanging.
2721 (load_symptr): Use got_symbolic_operand.
2722
2723 2000-07-10 Nick Clifton <nickc@cygnus.com>
2724
2725 * libgcc2.c (next_stack_level): Cast result of computation to
2726 (void **) so that the assignment does not generate a warning.
2727
2728 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
2729
2730 * flags.h : Add new variable flag_single_precision_constant.
2731 * toplev.c (display_help) : Add -fsingle-precision-constant option.
2732 (flag_single_precision_constant): New.
2733 * c-lex.c (yylex): Convert floating point constant to single
2734 precision constant.
2735 * invoke.texi : Add documentation for this new option.
2736
2737 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
2738
2739 * diagnostic.c (output_octal): Second parameter is unsigned.
2740 (output_long_octal): Likewise.
2741 (output_hexadecimal): Likewise.
2742 (output_long_hexadecimal): Likewise.
2743 (output_format): Adjust arguments extraction. Tweak.
2744 (output_verbatim, verbatim): End variable argument list.
2745 (report_diagnostic): Improve documentation.
2746
2747 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
2748
2749 * c-common.h (build_stmt): Declare.
2750 (build_continue_stmt): Likewise.
2751 (build_break_stmt): Likewise.
2752 (build_return_stmt): Likewise.
2753
2754 * c-decl.c (do_case): Rewrite to do what previously done in
2755 c-parse.in.
2756
2757 * c-semantics.c (build_stmt): Define.
2758 (build_return_stmt): Likewise.
2759 (build_break_stmt): Likewise.
2760 (build_continue_stmt): Likewise.
2761 (build_case_label): Likewise.
2762
2763 * c-parse.in (BREAK): Change to build tree, then generate RTL.
2764 (CONTINUE): Likewise.
2765 (RETURN): Likewise.
2766 (CASE): Likewise.
2767 (DEFAULT): Likewise.
2768
2769 * c-parse.y: Regenerate.
2770 * c-pasre.c: Likewise.
2771
2772 2000-07-09 Jason Merrill <jason@redhat.com>
2773
2774 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
2775
2776 * tree.h (STRIP_NOPS): Check for error_mark_node.
2777 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
2778 (dwarf2out_*): Remove duplicate declarations.
2779
2780 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
2781 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
2782
2783 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
2784
2785 * diagnostic.c (wrap_text): New function.
2786 (maybe_wrap_text): Likewise.
2787 (output_add_string): Use it.
2788 (output_format): Likewise.
2789 (count_error): Use verbatim instead of notice.
2790 (report_error_function): Likewise. Don't use plain fprintf.
2791 (finish_diagnostic): New function.
2792 (output_do_verbatim): Tweak. Commonalize functionalities in
2793 output_verbatim and verbatim.
2794 (output_verbatim): Adjust.
2795 (verbatim): Likewise.
2796 (report_diagnostic): Define.
2797
2798 * diagnostic.h (report_diagnostic): Prototype.
2799
2800 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
2801
2802 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
2803
2804 2000-07-09 Neil Booth <NeilB@earthling.net>
2805
2806 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
2807 IShspace, ISspace: Update.
2808
2809 * cppinit.c: ISTABLE: Update.
2810 V: New.
2811
2812 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
2813 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
2814 (skip_block_comment, skip_line_comment, parse_string,
2815 lex_line): Use is_vspace rather than IS_NEWLINE.
2816 (skip_whitespace, lex_line): Clean up to use is_nvspace.
2817 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
2818 gets a BOL flag.
2819 (lex_next): Unconditionally stop if within a directive.
2820 Treat directives within macro invocations as directives
2821 (after parse_args emits error), not as the argument.
2822
2823 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
2824
2825 * diagnostic.c (diagnostic_args): New macro.
2826 (diagnostic_msg): Likewise.
2827 (output_formatted_integer): Likewise.
2828 (output_state): New data type.
2829 (digit_buffer): Make global.
2830 (output_add_integer): Rename to output_decimal. Squeeze
2831 digit_buffer.
2832 (output_long_decimal, output_unsigned_decimal,
2833 output_long_unsigned_decimal, output_octal, output_long_octal,
2834 output_hexadecimal, output_long_hexadecimal): New functions.
2835 (output_append_r): New function.
2836 (output_append): Tweak.
2837 (output_flush_on): Rename to output_to_stream.
2838 (output_format): Change prototype. Improve documentation. Handle
2839 more format specifiers.
2840 (build_location_prefix): Rename to context_as_prefix.
2841 (output_notice): Rename to output_do_printf.
2842 (output_printf): Tweak.
2843 (line_wrapper_printf): Likewise.
2844 (vline_wrapper_message_with_location): Adjust call to renamed
2845 functions.
2846 (v_message_with_decl): Likewise.
2847 (default_print_error_function): Likewise.
2848 (save_output_state): New function.
2849 (restore_output_state): Likewise.
2850 (output_do_verbatim): Likewise.
2851 (output_verbatim): Define.
2852 (verbatim): Likewise.
2853
2854 * diagnostic.h (printer_fn): Change return type from void to int.
2855 Improve documentation.
2856 (output_add_integer): Rename to output_decimal.
2857 (output_flush_on, output_format): Don't export.
2858 (output_verbatim, verbatim): Declare.
2859
2860 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
2861
2862 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
2863 Check whether c divides op1 exactly if operation is not
2864 multiplication.
2865
2866 2000-07-08 Richard Henderson <rth@cygnus.com>
2867
2868 * final.c (final): Do not abort when reg-stack introduces
2869 a new insn.
2870
2871 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
2872
2873 * cpplib.h (struct cpp_name): Now struct cpp_string.
2874 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
2875 CPP_HEADER_NAME): Change to type S.
2876 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
2877 field, a cpp_hashnode *. All references to val.name updated
2878 to use val.str or val.node as appropriate.
2879 (struct cpp_reader): Add spec_nodes field.
2880 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
2881
2882 * cpphash.h (struct spec_nodes): New.
2883 (enum spell_type): Reorder. Only SPELL_STRING tokens use
2884 val.str. All references to 'spelling > SPELL_NONE' updated to
2885 match.
2886
2887 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
2888 pfile->buffer->inc are not NULL before dereferencing them.
2889
2890 * cpplex.c (parse_name): Take a pointer to the current token,
2891 plus current position and limit as args; return the new
2892 position; don't copy the text of a name into the string
2893 buffer, instead call cpp_lookup and store the node pointer.
2894 If extending a token, copy out the text of the old into a
2895 scratch buffer, append the new, look that up and store the new
2896 node pointer. Inline.
2897 (maybe_paste_with_next): If the result of paste is a NAME,
2898 then look up the pasted text and store its node pointer.
2899 (lex_line): Adjust for new parse_name interface.
2900 Check for L"str", L'str' using spec_nodes->n_L.
2901 (spell_token): SPELL_IDENT tokens have their spelling in
2902 val.node->name. Handle SPELL_STRING tokens that don't have
2903 string delimiters.
2904 (_cpp_expand_name_space,
2905 (can_paste): Check for L ## "str" using spec_nodes->n_L.
2906 (cpp_get_token, special_symbol): No need to call cpp_lookup.
2907 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
2908 return 1=equal 0=not, not a tristate.
2909
2910 * cpphash.c (var_args_str): Delete.
2911 (find_param): Compare node fields directly.
2912 (is__va_args__): Use CPP_PEDANTIC. Just compare
2913 token->val.node with spec_nodes->n__VA_ARGS__.
2914 (dump_funlike_macro): Don't use var_args_str.
2915
2916 * cpplib.c (_cpp_check_directive): Just walk through
2917 spec_nodes->dirs comparing pointers.
2918 (get_define_node, do_pragma_poison, detect_if_not_defined,
2919 parse_ifdef): The identifier has already been looked up.
2920 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
2921 node.
2922 (do_if): Only call detect_if_not_defined at beginning of file.
2923 (_cpp_parse_assertion): Only copy string pointers for
2924 SPELL_STRING tokens.
2925 (pragma_dispatch): Take a node pointer and examine its name
2926 field.
2927 (_cpp_init_stacks): Also initialize the spec_nodes structure.
2928
2929 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
2930 _cpp_init_macros.
2931 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
2932 reverse order from the corresponding _cpp_init_* routines.
2933
2934 * cppexp.c (parse_number, parse_charconst, parse_defined,
2935 lex): Check val.node->type instead of calling cpp_defined.
2936 Use spec_nodes entries where appropriate.
2937
2938 * fix-header.c, scan-decls.c: Update for interface changes.
2939
2940 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
2941
2942 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
2943 emitting aux_truncdfsf2.
2944
2945 2000-07-03 Donn Terry (donnte@microsoft.com)
2946
2947 * cppinit.c (print_help): split overlong line into ISO C89
2948 maximum chunks.
2949
2950 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
2951
2952 * cppexp.c: Update all code for new lexer interface.
2953 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
2954 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
2955 * cpplex.c (token_names): Trim leading CPP_ from names; make
2956 the strings unsigned.
2957 (_cpp_spell_operator): New.
2958 (is_macro_disabled): Disable all macros if rescanning
2959 preprocessed text.
2960 (_cpp_get_directive_token): Remove.
2961
2962 * cppinit.c: Don't set no_macro_expand.
2963 * cpplib.c (read_line_number, do_line): Check only for EOF,
2964 not VSPACE.
2965 * cpphash.h: Update prototypes.
2966 * cpplib.h (CPP_VSPACE): Remove.
2967 (struct cpp_reader): Remove no_macro_expand.
2968
2969 2000-07-08 Neil Booth <NeilB@earthling.net>
2970
2971 * cpphash.c (is__va_args__): New function.
2972 (count_params): Fix line reported in error messages. Use
2973 is__va_args__. Don't return ')' on error. Flag GNU style
2974 rest args macro definitions.
2975 (parse_define): Check macro name is not __VA_ARGS__.
2976 (save_expansion): Check identifier in non-varargs-macro is
2977 not __VA_ARGS__. Don't flag GNU_VARARGS.
2978 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
2979 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
2980 than per-token GNU_VARARGS.
2981 * cpplib.h (GNU_VARARGS): Remove.
2982 (GNU_REST_ARGS): New.
2983
2984 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
2985
2986 * i386.md (call_pop, call, call_value_pop): Do not set
2987 current_function_uses_pic_offset_table for calls to static
2988 functions or indirect calls.
2989
2990 2000-07-07 Jim Wilson <wilson@cygnus.com>
2991
2992 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
2993 is_predicate_reg, then take max write_count of register pair.
2994
2995 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2996
2997 * tradcpp.c (main): Rename label `include' to `add_include' to
2998 avoid conflicts with variable `include' in traditional C.
2999
3000 2000-07-07 Jakub Jelinek <jakub@redhat.com>
3001
3002 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
3003
3004 2000-07-07 Jakub Jelinek <jakub@redhat.com>
3005
3006 * sibcall.c (uses_addressof): Add INMEM argument, check for
3007 current_function_internal_arg_pointer outside of MEM rtxs in addition
3008 to ADDRESSOFs.
3009 (sequence_uses_addressof): Update caller.
3010
3011 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
3012
3013 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
3014 and friends.
3015
3016 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3017
3018 * system.h (UNION_INIT_ZERO): New macro for initializing union
3019 members in structs.
3020
3021 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
3022
3023 2000-07-07 Neil Booth <NeilB@earthling.net>
3024
3025 * cpp.texi: Update.
3026
3027 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
3028
3029 * final.c (final): Detect out of bounds array access to
3030 the insn_lengths array.
3031
3032 2000-07-07 Kazu Hirata <kazu@hxi.com>
3033
3034 * fold-const.c (fold): Fix a comment typo.
3035
3036 2000-07-07 Neil Booth <NeilB@earthling.net>
3037
3038 * cpp.texi: Update to new lexer.
3039
3040 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
3041
3042 * tradcpp.c: New file.
3043 * tradcif.y: New file.
3044 * tradcif.c: New generated file.
3045
3046 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
3047 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
3048 dependencies of C. Install tradcpp from install-common, in
3049 $(libsubdir).
3050
3051 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
3052
3053 * cppinit.c: Include cppdefault.h. Refer to
3054 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
3055 to GCC_INCLUDE_DIR and its length.
3056 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
3057 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
3058 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
3059 cppdefault.h.
3060 (include_defaults_array): Move to cppdefault.c.
3061
3062 * cppdefault.h: New file.
3063 * cppdefault.c: New file.
3064
3065 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
3066 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
3067 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
3068 this file.
3069
3070 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3071
3072 * reload.c (push_reload): When seeing if can reuse a register,
3073 check extra registers against widest of INMODE and OUTMODE.
3074
3075 2000-07-06 Neil Booth <NeilB@earthling.net>
3076
3077 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
3078 based on full length of predicate.
3079
3080 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
3081
3082 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
3083 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
3084
3085 2000-07-05 Kazu Hirata <kazu@hxi.com>
3086
3087 * h8300-proto.h: Fix formatting.
3088 * h8300.c: Likewise.
3089 * h8300.h: Likewise.
3090
3091 2000-07-05 Jim Wilson <wilson@cygnus.com>
3092
3093 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
3094 CCmode.
3095
3096 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
3097
3098 * invoke.texi: Fix minor typos
3099 * md.texi: Fix minor typos
3100
3101 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
3102
3103 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
3104
3105 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
3106
3107 * cpplex.c: Don't include sys/mman.h.
3108 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
3109
3110 * cpplib.c: Include sys/mman.h and obstack.h.
3111 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
3112 obstack.
3113 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
3114 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
3115 bother freeing if stack entries (they will be freed with their buffer).
3116 (do_endif): Free if stack entries from the buffer obstack.
3117 (push_conditional): Allocate if stack entries from the buffer obstack.
3118
3119 (find_answer): Rename to _cpp_find_answer.
3120 (do_assert, do_unassert): Update.
3121
3122 * cpphash.h: Update prototypes.
3123 (xobnew): New convenience macro.
3124 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
3125 Update comments.
3126 (struct cpp_hashnode): Remove disabled field.
3127
3128 * cppinit.c: Don't include hashtab.h or splay-tree.h.
3129 (report_missing_guard): Moved to cppfiles.c.
3130 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
3131 cpp_init_includes.
3132 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
3133 cpp_cleanup_includes. Don't destroy hashtab or
3134 all_include_files here.
3135 (cpp_finish): Use _cpp_report_missing_guards.
3136
3137 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
3138 (_cpp_init_include_table): Rename _cpp_init_includes.
3139 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
3140
3141 * cppexp.c (parse_assertion): Update for new name of
3142 find_answer.
3143
3144 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
3145
3146 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
3147
3148 * cpplib.c (do_ident): s/VSPACE/EOF/
3149
3150 2000-07-05 Neil Booth <NeilB@earthling.net>
3151
3152 * cpplex.c: Fix trigraph replacement within strings.
3153
3154 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3155
3156 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
3157
3158 * xcoffout.c (assign_type_number): Constify.
3159 (xcoffout_source_file): Add static prototype. Don't needlessly
3160 cast away const-ness.
3161
3162 2000-07-04 Jason Merrill <jason@redhat.com>
3163
3164 * frame.h (frame_state): Move base_offset to end.
3165
3166 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
3167
3168 * calls.c (emit_library_call_value_1): Revert previous change.
3169
3170 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
3171
3172 * fix-header.c (struct partial_proto): Remove unnecessary fields.
3173 (recognized_extern, recognized_function, read_scan_file):
3174 Update for new scheme.
3175 (check_protection): It's still a multiple include guard even
3176 if it doesn't always trigger.
3177 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
3178 new scheme.
3179 * scan.h: Declare struct cpp_token. Update prototypes.
3180
3181 2000-07-03 Neil Booth <neilb@earthling.net>
3182 Zack Weinberg <zack@wolery.cumb.org>
3183
3184 Complete overhaul of the lexer and macro expander.
3185
3186 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
3187 arg, arglist, argdata, reflist, collect_objlike_expansion,
3188 collect_funlike_expansion, collect_params,
3189 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
3190 unsafe_chars, macarg, compare_defs, special_symbol,
3191 scan_arguments, stringify, funlike_macroexpand,
3192 _cpp_quote_string, monthnames): Delete.
3193 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
3194 _cpp_create_definition, _cpp_dump_definition,
3195 dump_hash_helper): Adjust.
3196 (find_param, count_params, parse_define, var_args_str,
3197 check_macro_redefinition, save_expansion): New.
3198
3199 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
3200 parse_string, output_line_command, trigraph_replace,
3201 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
3202 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
3203 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
3204 _cpp_skip_rest_of_line): Modify.
3205
3206 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
3207 find_position, null_warning, bump_column, expand_name_space,
3208 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
3209 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
3210 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
3211 _cpp_prescan): Delete.
3212
3213 (dump_param_spelling, process_directive, lex_next,
3214 is_macro_disabled, stringify_arg, expand_context_stack,
3215 output_token, make_string_token, alloc_number_token,
3216 special_symbol, duplicate_token, maybe_paste_with_next,
3217 can_paste, prevent_macro_expansion, restore_macro_expansion,
3218 get_temp_token, release_temp_tokens, quote_string,
3219 token_names, token_spellings, _cpp_expand_name_space,
3220 _cpp_glue_header_name, _cpp_reserve_name_space,
3221 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
3222 placemarker_token, eof_token, cpp_context, macro_args,
3223 get_raw_token, parse_arg, parse_args, save_token,
3224 push_arg_context, push_macro_context, pop_context,
3225 do_pop_context, free_macro_args, _cpp_get_line,
3226 _cpp_run_directive): New.
3227
3228 * cpplib.c (validate_else, parse_include, push_conditional,
3229 pass_thru_directive, read_line_number, parse_ifdef,
3230 detect_if_not_defined, _cpp_check_directive, do_define,
3231 do_undef, do_include, do_import, do_include_next, do_error,
3232 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
3233 top_pragmas, do_pragma_gcc, do_pragma_implementation,
3234 do_pragma_poison, do_pragma_system_header,
3235 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
3236 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
3237 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
3238 cpp_defined): Update for new scheme.
3239 (strtoul_for_line, get_define_node, dump_macro_name,
3240 _cpp_check_linemarker, _cpp_parse_assertion): New.
3241 (_cpp_handle_directive, do_pragma_default): Delete.
3242
3243 * cpphash.h (struct predicate): Now struct answer.
3244 (enum spell_type, struct token_spelling, struct directive,
3245 directive_handler): New.
3246 Update prototypes. Remove unused macros.
3247 * cpplib.h: Update prototypes. Remove unused macros,
3248 structure definitions, and fields.
3249
3250 * cpperror.c (print_containing_files, v_message): Adjust.
3251 * cppexp.c (parse_assertion, lex, parse_escape,
3252 _cpp_parse_expr): Adjust.
3253 * cppfiles.c (open_include_file, _cpp_execute_include,
3254 _cpp_compare_file_date, cpp_read_file, read_include_file):
3255 Adjust.
3256 * cppinit.c (dump_special_to_buffer): Delete.
3257 (append_include_chain, merge_include_chains, cpp_reader_init,
3258 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
3259 cpp_finish, handle_option, print_help): Adjust.
3260 * cppmain.c (main): Adjust.
3261
3262 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
3263
3264 * cppspec.c (lang_specific_driver): Use double quotes in error
3265 message.
3266
3267 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
3268
3269 * calls.c (emit_library_call_value_1): Use valreg instead
3270 of hard_libcall_value.
3271
3272 2000-07-03 Geoff Keating <geoffk@cygnus.com>
3273
3274 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
3275 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
3276 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
3277 (movhi): Likewise.
3278 (movqi): Likewise.
3279 (movdf): Likewise.
3280 (movsf): Likewise.
3281 (movdi): Likewise.
3282 (movti): Likewise.
3283
3284 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
3285 mode instead of wider_mode is being used.
3286
3287 2000-07-03 Jakub Jelinek <jakub@redhat.com>
3288
3289 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
3290 of 'r'. Use q_regs_operand.
3291 (andsi_1+2): Use q_regs_operand.
3292
3293 2000-07-03 Jakub Jelinek <jakub@redhat.com>
3294
3295 * builtins.c (get_memory_rtx): Always put into alias set 0.
3296
3297 2000-07-03 Nick Clifton <nickc@cygnus.com>
3298
3299 * config/arm/arm.md: Fix post increment and pre increment
3300 peepholes so that they do not generate UNPREDICATBLE opcodes.
3301 (ie ones where the increment clobbers the source/destination).
3302
3303 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
3304
3305 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
3306 change too big for -mtiny-stack" a warning, if larger than 63.
3307 (out_set_stack_ptr): Change the logic so -mno-interrupts is
3308 always safe to use on possible future devices.
3309 (function_prologue): Write SPH before SPL, for consistency.
3310 If interrupt_func_p true, we know we have enabled interrupts.
3311 (avr_num_arg_regs): New function. Round up to even number of
3312 bytes if no -mpack-args or if calling a libgcc function.
3313 (function_arg, function_arg_advance): Use it.
3314 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
3315 Output "movw" if available.
3316 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
3317 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
3318 (asm_output_section_name): Add blanks for consistent output.
3319 (encode_section_info): Set TREE_READONLY for progmem data to
3320 avoid gas warnings about changed section attributes.
3321 (avr_hard_regno_mode_ok): Force non-QImode data to start in
3322 even numbered registers on devices with "movw".
3323 * config/avr/avr.h (MASK_*): Define bits for target_flags.
3324 (TARGET_SWITCHES): Mark help strings for translation.
3325 Add new -mpack-args and -menhanced switches.
3326 (TARGET_OPTIONS): Mark help strings for translation.
3327 (progmem_section): Add section attributes.
3328 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
3329 Output "movw" if available.
3330 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
3331 New patterns.
3332 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
3333 call convention (arguments aligned on even registers).
3334 (_cleanup, _exit): Make weak symbols libc can override.
3335
3336 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3337
3338 * fp-bit.h: New file.
3339
3340 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
3341 Comment #endif statements.
3342 (__thenan_sf, __thenan_df): Add missing braces around initializer.
3343
3344 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
3345
3346 * gcse.c (compute_pre_data): Compute ae_kill using other local
3347 properties instead of calling compute_ae_kill.
3348
3349 * alias.c (init_alias_analysis): Do not call
3350 prologue_epilogue_contains until after reload has completed.
3351
3352 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
3353
3354 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
3355 (genrtl_finish_compound_stmt): Likewise.
3356 (genrtl_compound_stmt): Change to return void.
3357
3358 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
3359 move code from here to ...
3360 (genrtl_compound_stmt): ... here.
3361 (genrtl_finish_compound_stmt): Remove.
3362 (expand_stmt): Add comment.
3363
3364 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
3365
3366 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
3367 and VOID_TYPE_P.
3368
3369 2000-07-02 Jakub Jelinek <jakub@redhat.com>
3370
3371 * cpplib.h (struct cpp_reader): New field include_depth.
3372 (struct cpp_printer): Rename last_bsd to last_id.
3373 * cppfiles.c (read_include_file): Bump include_depth.
3374 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
3375 (output_line_command): Output correct #line if a header
3376 is including itself and is not protected against multiple inclusion.
3377 Use include_depth instead of buffer_stack_depth, last_id instead of
3378 last_bsd.
3379 * cppinit.c (cpp_start_read): Initialize last_id instead of
3380 last_bsd.
3381
3382 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
3383
3384 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
3385 (c-semantics.o): New target.
3386
3387 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
3388 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
3389 (genrtl_clear_out_block): Likewise.
3390 (genrtl_goto_stmt): Likewise.
3391 (genrtl_expr_stmt): Likewise.
3392 (genrtl_decl_stmt): Likewise.
3393 (genrtl_if_stmt): Likewise.
3394 (genrtl_while_stmt): Likewise.
3395 (genrtl_do_stmt): Likewise.
3396 (genrtl_return_stmt): Likewise.
3397 (genrtl_for_stmt): Likewise.
3398 (genrtl_break_stmt): Likewise.
3399 (genrtl_continue_stmt): Likewise.
3400 (genrtl_scope_stmt): Likewise.
3401 (genrtl_switch_stmt): Likewise.
3402 (genrtl_case_label): Likewise.
3403 (genrtl_begin_compound_stmt): Likewise.
3404 (gerntl_finish_compound_stmt): Likewise.
3405 (genrtl_compound_stmt): Likewise.
3406 (genrtl_asm_stmt): Likewise.
3407 (genrtl_decl_cleanup): Likewise.
3408 (DECL_ANON_UNION_ELEMS): Likewise.
3409 (emit_local_var): Likewise.
3410 (make_rtl_for_local_static): Likewise.
3411 (expand_cond): Likewise.
3412 (expand_stmt): Likewise.
3413 (c_expand_return): Likewise.
3414 (c_expand_start_case): Likewise.
3415 (do_case): Likewise.
3416 (COMPOUND_STMT_NO_SCOPE): Likewise.
3417 (c_expand_asm_operands): Likewise.
3418 (NEW_FOR_SCOPE_P): New macro.
3419 (expand_expr_stmt_fn): New type.
3420
3421 (set_current_function_name_declared): Likewise.
3422 (current_function_name_declared): Likewise.
3423 (lang_expand_stmt): Likewise.
3424 (stmts_are_full_exprs_p): Likewise.
3425 (anon_aggr_type_p): Likewise.
3426 (lang_expand_expr_stmt): Likewise.
3427 (build_case_label): Likewise.
3428
3429 * c-decl.c (lang_expand_expr_stmt): Initialize.
3430 (stmts_are_full_exprs_p): Define.
3431 (current_function_name_declared): Likewise.
3432 (do_case): Likewise.
3433 (lang_expand_stmt): Likewise.
3434 (set_current_function_name_declared): Likewise.
3435 (anon_aggr_type_p): Likewise.
3436
3437 * c-semantics.c: New file.
3438 (expand_cond): Moved from cp/semantics.c.
3439 (genrtl_do_pushlevel): Likewise.
3440 (genrtl_clear_out_block): Likewise.
3441 (genrtl_goto_stmt): Likewise.
3442 (genrtl_expr_stmt): Likewise.
3443 (genrtl_decl_stmt): Likewise.
3444 (genrtl_if_stmt): Likewise.
3445 (genrtl_while_stmt): Likewise.
3446 (genrtl_do_stmt): Likewise.
3447 (genrtl_return_stmt): Likewise.
3448 (genrtl_for_stmt): Likewise.
3449 (genrtl_break_stmt): Likewise.
3450 (genrtl_continue_stmt): Likewise.
3451 (genrtl_scope_stmt): Likewise.
3452 (genrtl_switch_stmt): Likewise.
3453 (genrtl_case_label): Likewise.
3454 (genrtl_begin_compound_stmt): Likewise.
3455 (genrtl_finish_compound_stmt): Likewise.
3456 (genrtl_compound_stmt): Likewise.
3457 (genrtl_asm_stmt): Likewise.
3458 (genrtl_decl_cleanup): Likewise.
3459 (make_rtl_for_local_static): Moved from cp/decl.c.
3460 (emit_local_var): Likewise.
3461 (expand_stmt): Define.
3462
3463 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
3464 (c_expand_return): Likewise.
3465 (c_expand_start_case): Likewise.
3466
3467 2000-07-01 Richard Henderson <rth@cygnus.com>
3468
3469 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
3470 with the low 13 bits set.
3471 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
3472 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
3473 of the low 13 bits into a CONST plus an adddi3.
3474 (load_symptr): Set RTX_UNCHANGING_P.
3475
3476 See ChangeLog.3 for earlier changes.
3477