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