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