1 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3 * builtins.c (built_in_decls): New array.
4 (expand_builtin_fputs): New function.
5 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
7 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
9 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
11 * tree.h (built_in_decls): New array.
13 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
15 * convex.md: Use "+" instead of "=" for outputs wrapped in a
17 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
19 2000-09-12 Kazu Hirata <kazu@hxi.com>
21 * haifa-sched.c: Fix formatting.
23 * genattrtab.c: Fix formatting.
25 * unroll.c: Fix formatting.
27 2000-09-12 Bruce Korb <bkorb@gnu.org>
29 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
31 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
32 * fixinc/fixincl.tpl: make non-exported arrays static scope
33 * fixinc/fixincl.x: regenerate
34 * fixinc/fixlib.h: Use PARAMS, not _P_
35 * fixinc/fixtests.c: make a type for the test proc & use it
36 * fixinc/server.h: Use PARAMS, not _P_
38 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40 * c-typeck.c (process_init_element): Avoid union init warnings on
41 floating point zero. Don't crash on unions containing structs.
43 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
45 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
46 general_movsrc_operand, and remove CONST_INT from
47 general_movdst_operand.
49 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
51 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
52 if a reference to non-fixed hardreg is seen. Otherwise, count hard
53 regs with a higher cost.
54 (preferrable): Deal with cases where either cost or regcost is
56 (cse_insn): Use MAX_COST rather than 10000. Always initialize
58 (COSTS_N_INSNS): Move definition...
60 (MAX_COST): New macro.
61 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
64 2000-09-11 Mark Mitchell <mark@codesourcery.com>
66 * c-common.h (genrtl_clear_out_block): Remove.
67 * c-semantics.c (genrtl_clear_out_block): Remove.
68 (genrtl_while_stmt): Don't call it.
69 (genrtl_for_stmt): Likewise.
71 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
73 * cppfiles.c: Move all default-#defines to top of file.
74 (open_include_file): Replace by lookup_include_file.
75 (read_with_read, read_file): Merged into read_include_file.
76 (stack_include_file, purge_cache): New functions.
77 (close_cached_fd): Delete.
78 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
79 Cache the in-memory buffer, not the file descriptor.
81 * cpphash.h (struct include_file): Add buffer, st, refcnt,
83 (xcnew): New utility macro.
84 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
85 * cpplib.h (struct cpp_buffer): Remove mapped field.
87 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
89 * cpplex.c (parse_string): Accept backslash space newline as a
92 (_cpp_get_token): Remove hard limit on macro nesting.
94 2000-09-12 Philipp Thomas <pthomas@suse.de>
96 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
99 2000-09-13 Michael Hayes <mhayes@cygnus.com>
101 * flow.c (split_block): Fix update of registers live at
104 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
106 * i386.md (add?i_3, add?i_5): New.
107 (add?i_4): Rename from add?i_3; Fix compare pattern.
108 (sub?i_3, xor?i_3, ior?i_3): New.
110 * genrecog.c (write_tree): Output code to clear insn_extract cache.
111 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
112 instead of extract_insn and extract_constrain_insn_cache instead of
113 extract_insn and constrain_operands.
114 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
116 (extract_insn): Clear which_alternative.
117 (constrain_operands): Set which_alternative to -1 when failed.
118 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
121 2000-09-11 Matthew Hiller <hiller@redhat.com>
123 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
125 (movstricthi): Likewise.
127 2000-09-12 Michael Hayes <mhayes@cygnus.com>
129 * loop.h (LOOP_IVS): New macro.
130 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
131 (struct loop_ivs): New.
132 (struct loop_info): Add ivs field.
133 (reg_iv_type, reg_iv_info): Delete prototype.
134 (reg_biv_class, loop_iv_list): Likewise.
135 * loop.c (record_biv, find_life_end): Pass loop argument.
136 (reg_iv_type): Remove global array and use
137 field in loop_regs structure within loop_ivs structure.
138 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
139 (first_increment_giv, last_increment_giv): Use entry in
141 (record_initial): Pass ivs pointer.
142 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
144 2000-09-12 Michael Hayes <mhayes@cygnus.com>
146 * loop.h (LOOP_REGS): New macro.
147 (struct loop_regs): New.
148 (struct loop_info): Add regs field.
149 * loop.c (set_in_loop): Remove global array and store
150 in loop_regs structure as part of loop_info structure.
151 (n_times_set, may_not_optimize): Likewise.
152 (reg_single_usage, moved_once): Likewise.
153 (count_one_set): Add regs argument.
154 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
155 (set_pseudo_multiple_uses): Pass regs pointer.
157 2000-09-12 Michael Hayes <mhayes@cygnus.com>
159 * unroll.c (iteration_info): Subsume into loop_iterations.
160 * loop.h (loop_info): New field iv.
162 2000-09-12 Michael Hayes <mhayes@cygnus.com>
164 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
165 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
166 (flow_loops_update): New prototype.
167 (flow_loops_find): Add flags to prototype.
168 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
169 * flow.c (flow_loop_pre_header_scan): New.
170 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
171 (flow_loop_free): Free pre-header root and trace and exit dominators.
172 (flow_loops_find): New argument flags.
173 (flow_loops_update): New function.
174 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
176 2000-09-12 Michael Hayes <mhayes@cygnus.com>
178 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
179 * flow.c (split_block, update_bb_for_insn): New functions.
181 2000-09-11 Richard Henderson <rth@cygnus.com>
183 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
185 2000-09-11 Richard Henderson <rth@cygnus.com>
187 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
188 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
189 (ia64_override_options): Prevent optimizing division for both
190 latency and throughput.
191 (rtx_needs_barrier): Handle frcpa.
192 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
193 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
194 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
195 (TARGET_SWITCHES): Add -minline-divide-min-latency and
196 -minline-divide-max-throughput.
197 (PREDICATE_CODES): Update.
198 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
199 (zero_extendsidi2): Likewise. Fix typo in f case insn.
200 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
201 (extendsftf2): Likewise.
202 (extenddftf2): Likewise.
203 (fix_trunctfdi2_alts): New.
204 (fixuns_trunctfdi2_alts): New.
205 (madd*4): Rename from madd*3.
206 (divsi3, modsi3, udivsi3, umodsi3): New.
207 (divsi3_internal): New.
208 (divdi3, moddi3, udivdi3, umoddi3): New.
209 (divdi3_internal_lat, divdi3_internal_thr): New.
210 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
213 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
215 * print-rtl.c (debug_call_placeholder_verbose): New variable.
216 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
218 * integrate.c (copy_rtx_and_substitute): Don't share
219 LEAF_REG_REMAPpable registers with the inlined function. Don't
220 share the function value with calling sequences.
222 2000-09-11 Jakub Jelinek <jakub@redhat.com>
224 * c-decl.c (do_case): Fix a typo.
226 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
227 to a if the comparison is floating mode and not -ffast-math.
228 * simplify-rtx.c (simplify_ternary_operation): Likewise.
230 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
232 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
233 gen_ic_invalidate_line.
235 2000-09-11 Philip Blundell <pb@futuretv.com>
237 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
239 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
241 * install.texi (LANGUAGES): Update to include new languages.
244 2000-09-11 DJ Delorie <dj@redhat.com>
246 * gcc.c (main): Don't warn about unused -B prefixes
247 (unused_prefix_warnings): remove
249 2000-09-11 Kazu Hirata <kazu@hxi.com>
251 * final.c: Fix formatting.
253 * integrate.c: Fix formatting.
255 2000-09-11 Geoff Keating <geoffk@cygnus.com>
257 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
259 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
261 * reload.c (regno_clobbered_p): Fix thinko in previous change.
263 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
265 * gcc.1: Document 68hc11 specific options.
267 2000-09-10 Geoff Keating <geoffk@cygnus.com>
269 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
270 (TARGET_LONG_DOUBLE_128): Define.
271 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
272 (LONG_DOUBLE_TYPE_SIZE): Redefine.
273 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
274 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
275 of __LONG_DOUBLE_128__.
276 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
278 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
279 (CPP_SYSV_DEFAULT_SPEC): Define.
280 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
281 (INIT_TARGET_OPTABS): Define.
283 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
284 (RS6000_UITRUNC): Likewise.
285 (INIT_TARGET_OPTABS): New macro.
286 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
287 (trunc_defined): Delete.
288 (output_prolog): Don't output .extern definitions for fp->int
289 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
290 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
291 (trunc_defined): Delete.
292 (RS6000_ITRUNC): Moved to aix.h.
293 (RS6000_UITRUNC): Likewise.
294 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
296 (fixuns_truncdfsi2): Delete.
297 (trunc_call): Delete.
298 (trunc_call_rtl): Delete.
300 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
302 * varasm.c (make_decl_rtl): Restore leading star on
303 DECL_ASSEMBLER_NAME set for decls with an asmspec.
305 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
307 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
308 won't give a spurious error for '#pragma pack()'. Simplify
309 control flow for readability. 'reset' action is not necessary.
311 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
313 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
314 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
315 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
316 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
318 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
319 profile.c, sdbout.c, tradcif.y, tree.c:
320 Include defaults.h if not already included.
321 Don't define the above macros.
323 * Makefile.in: Update dependencies.
325 2000-09-10 Mark Mitchell <mark@codesourcery.com>
327 * c-common.h (add_stmt): Change prototype.
328 (RECHAIN_STMTS): New macro.
329 (CASE_LABEL_DECL): Likewise.
330 (genrtl_case_label): Change prototype.
331 (c_expand_start_case): Remove prototype.
332 (build_case_label): Change prototype.
333 (decl_constant_value): Declare.
334 * c-common.c (check_case_value): Handle C++'s extensions to C
336 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
338 * c-parse.in (stmt): Adjust handling of return statements and case
340 * c-semantics.c (add_stmt): Return the new statement.
341 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
342 returned expression. Directly generate RTL, rather than calling
344 (genrtl_switch_stmt): Don't call c_expand_start_case.
345 (build_case_label): Take the LABEL_DECL as input, too.
346 (genrtl_case_label): Just call add_case_node.
347 (expand_stmt): Adjust calls to genrtl_return_stmt and
349 * c-tree.h (c_expand_start_case): Declare.
350 * c-typeck.c (decl_constant_value): Give it external linkage.
351 (c_expand_return): Don't call expand_return or expand_null_return;
352 use genrtl_return_stmt instead.
353 * stmt.c (struct nesting): Remove num_ranges field.
354 (add_case_node): Give it external linkage.
355 (expand_start_case): Don't set num_ranges.
356 (expand_start_case_dummy): Don't clear it.
357 (pushcase): Rely on add_case_node to handle `default' labels.
358 (add_case_node): Handle `default' labels.
359 * tree.c (tree_int_cst_compare): New function.
360 * tree.h (tree_int_cst_compare): Declare.
361 (add_case_node): Likewise.
363 2000-09-10 Richard Henderson <rth@cygnus.com>
365 * c-parse.in: Revert last change.
366 (init_reswords): Do not enter disabled keywords into the ridpointers
367 table, modulo objc weirdness.
368 (_yylex): Return the canonical spelling for a keyword.
370 2000-09-10 Philip Blundell <philb@gnu.org>
372 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
373 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
375 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
377 * alias.c (find_base_term): Handle ADDRESSOF.
378 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
380 2000-09-10 Denis Chertykov <denisc@overta.ru>
382 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
383 outputting templates with many lines.
385 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
387 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
388 to decide whether 64-bit support must be generated.
390 2000-09-10 Richard Henderson <rth@cygnus.com>
392 * c-parse.in (asm patterns): Fix volatile check.
394 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
396 * cppmacro.c (check_trad_stringification): New function.
397 (save_expansion): If -Wtraditional, warn about stringification of
400 2000-09-11 Michael Hayes <mhayes@cygnus.com>
402 * loop.h (struct loop_mem_info): Move from loop.c
403 (struct loop_info): Add fields store_mems, mems, mems_idx,
404 mems_allocated, unknown_address_altered,
405 unknown_constant_address_altered, num_mem_sets, and
406 first_loop_store_insn.
408 * loop.c (loop_store_mems): Replace with field in loop_info struct.
409 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
410 (unknown_address_altered, unknown_constant_address_altered): Likewise.
411 (num_mem_sets): Likewise.
412 (replace_loop_mems, replace_loop_regs): New.
413 (struct loop_replace_args): New.
414 (load_mems): Use replace_loop_mems.
415 (try_copy_prop): Use replace_loop_regs.
416 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
418 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
420 * configure.in: Recognize m6811-elf and m6812-elf.
421 * configure: Regenerate.
423 2000-09-09 Geoff Keating <geoffk@cygnus.com>
425 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
428 2000-09-10 Michael Hayes <mhayes@cygnus.com>
430 * loop.c (struct movables): New.
431 (num_movables): Move into struct movables.
432 (the_movables): Change type to struct movables.
433 (ignore_some_movables): Change struct movable arg to struct movables.
434 (force_movables, combine_movables, regs_match_p): Likewise.
435 (rtx_equal_for_loop_p, move_movables): Likewise.
436 (scan_loop): Change movables to be of type struct movables.
437 Replace last_movable with field in movables structure.
439 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
441 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
442 (init_pragma): Avoid warning if pfile happens to be unused.
443 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
444 define init_pragma to nothing. Always prototype
445 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
447 * c-lex.c (process_directive): Always call dispatch_pragma.
448 Initialize entering_c_header to 0.
450 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
452 * config/m68hc11/m68hc11.md: New file, machine description for
454 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
455 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
456 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
457 * config/m68hc11/m68hc11-protos.h: New file.
458 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
459 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
460 * config/m68hc11/xm-m68hc11.h: New file, target defs.
461 * config/m68hc11/larith.asm: New file, libgcc routines.
463 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
465 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
466 (FPBIT_FUNCS): Add _usi_to_sf.
467 * config/fp-bit.c (usi_to_float): New function.
468 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
469 (usi_to_float): Add appropriate #define.
471 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
473 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
475 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
476 * i386.md (attr "type"): Add sse and mmx types.
477 (attr "memory"): Handle them without a crash.
478 (movsi_1, movdi_2): Allow MMX regs.
479 (movdi splits): Don't split moves involving MMX regs.
480 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
481 (movv4sf_internal, movv4si_internal, movv8qi_internal,
482 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
483 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
484 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
485 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
486 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
487 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
488 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
489 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
490 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
491 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
492 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
493 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
494 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
495 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
496 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
497 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
498 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
499 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
500 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
501 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
502 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
503 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
504 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
505 mmx_clrdi): New patterns.
507 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
509 * arm.c: Don't include tm.h directly.
511 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
513 * recog.c (validate_replace_rtx_1): Fix confusion about equality
514 testing; simplify subregs of constants and nested subregs.
516 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
518 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
520 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
522 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
524 * rtl.texi (description of USE): Add note about possible pitfalls
526 From Richard Henderson:
527 * reload1.c (choose_reload_regs): Compute need_mode properly.
529 2000-09-07 Richard Henderson <rth@cygnus.com>
531 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
532 (__modsi3, __umodsi3): Likewise.
533 (__udivsi3): Likewise. Normalize the TFmode values.
535 2000-09-07 Geoff Keating <geoffk@cygnus.com>
537 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
539 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
542 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
544 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
545 (cmpeqdi_t): Add output pattern.
546 (cmpeqdi_t+1): Don't split when not optimizing.
547 Restore proper splitting operation.
549 2000-09-07 Richard Henderson <rth@cygnus.com>
551 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
552 do not call dispatch_pragma.
554 2000-09-07 Jim Wilson <wilson@cygnus.com>
556 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
557 to CLASS_CANNOT_CHANGE_MODE.
558 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
559 mode classes are different.
561 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
563 * cpplib.h (struct cpp_options): Add user_label_prefix member,
564 left out of commit which removed cppulp.c.
566 2000-09-07 Richard Henderson <rth@cygnus.com>
568 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
569 after switch for CASE_DROPS_THROUGH.
571 2000-09-07 Richard Henderson <rth@cygnus.com>
573 * loop.c (strength_reduce): Call check_ext_dependant_givs.
574 Properly extend the biv initial value for the giv.
575 (record_biv): Zero ext_dependant.
576 (record_giv): New argument ext_val. Update all callers.
577 (general_induction_var): Likewise.
578 (consec_sets_giv): Likewise.
579 (simplify_giv_expr): Likewise. Fill in ext_val if we find
580 a sign-extend, zero-extend, or truncate.
581 (combine_givs_p): Make sure modes are compatible.
582 (check_ext_dependant_givs): New.
583 (extend_value_for_giv): New.
584 * loop.h (struct induction): Add ext_dependant.
585 * unroll.c (iteration_info): Extend the biv initial value for the giv.
586 (find_splittable_givs): Likewise.
587 (final_giv_value): Likewise.
589 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
591 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
592 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
593 definitions from cpplib.h.
594 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
596 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
597 documentation for REGISTER_TARGET_PRAGMAS.
599 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
600 default-pragma callback to implement -Wunknown-pragmas if
602 * c-parse.in: Move all includes to top of file.
603 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
605 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
607 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
609 * arm.h, arm-protos.h, arm.c,
610 c4x.h, c4x-protos.h, c4x.c,
611 h8300.h, h8300-protos.h, h8300.c,
612 i370.h, i370-protos.h, i370.c,
613 i960.h, i960-protos.h, i960.c,
614 sh.h, sh-protos.h, sh.c,
615 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
616 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
618 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
619 multiple include guard.
620 * i370.md (untyped_call): Use GEN_CALL.
621 (umodsi3): Remove unused variable.
622 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
623 * v850.c (output_move_single, output_move_double): Constify
625 (print_operand): Constify a char *.
626 * v850.h (struct small_memory_info): Constify name member.
628 2000-09-07 Kazu Hirata <kazu@hxi.com>
630 * config/h8300.h: Fix comment typos.
631 * config/h8300/h8300.md: Likewise.
632 * config/h8300/lib1funcs.asm: Likewise.
634 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
636 * Makefile.in: Remove references to cppulp.{c,o}.
637 * cppinit.c (initialize_builtins, cpp_start_read,
638 cpp_handle_option): Update to use cpp_options structure.
641 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
643 * c-common.c (time_char_table): Allow %#b and %#h.
645 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
647 * reorg.c (find_end_label): If the basic block reorder pass moves the
648 return insn to some other place try to locate it again and put our
649 end_of_function_label there.
650 * reorg.c (relax_delay_slots): Check if find_end_label created a
651 new label that invalidates the current optimazation.
653 2000-09-07 Catherine Moore <clm@redhat.com>
655 * unroll.c (unroll_loop): Check for unconditional jumps
656 to loop continuation. Delete if n_iterations is 1.
657 (ujump_to_loop_cont): New routine.
659 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
661 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
663 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
664 to handle multiword modes correctly. All callers and the declaration
667 2000-09-06 Mark Mitchell <mark@codesourcery.com>
669 * c-common.h (prep_stmt): Declare.
670 (lang_expand_stmt): Likewise.
671 * c-decl.c (lang_expand_stmt): Remove.
672 * c-semantics.c (lang_expand_stmt): Define.
673 (prep_stmt): New function.
674 (expand_stmt): Handle common statement types here.
676 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
678 * configure.in (sh-*-linux*): Added.
679 * configure: Rebuilt.
680 * config/sh/t-linux: New file.
681 * config/sh/sh.h (USERMODE_BIT): Define.
682 (TARGET_USERMODE): Likewise.
683 (TARGET_SWITCHES): New switches for the bits above.
684 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
685 * config/sh/linux.h: New file.
686 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
688 (L_sdivsi3, L_udivsi3): Define for linux.
689 (L_ic_invalidate): Define.
690 * invoke.texi (SH Options): Document -musermode.
692 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
694 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
695 CSE unless generating PIC.
697 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
700 2000-09-06 H.J. Lu (hjl@gnu.org)
702 * Makefile.in (clean_s1): Depend on stage_b.
703 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
704 stage2. They are used for "make compare".
706 2000-09-06 Mark Mitchell <mark@codesourcery.com>
708 Move statement-tree facilities from C++ to C front-end.
709 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
710 (void_zero_node): New macro.
711 (struct stmt_tree_s): New type.
712 (stmt_tree): New typedef.
713 (struct language_function): New type.
714 (last_tree): New macro.
715 (last_expr_type): Likewise.
716 (walk_tree_fn): New typedef.
717 (current_stmt_tree): New function.
718 (begin_stmt_tree): Likewise.
719 (add_stmt): Likewise.
720 (finish_stmt_tree): Likewise.
721 (statement_code_p): Likewise.
722 (lang_statement_code_p): New variable.
723 (walk_stmt_tree): New function.
724 (STMT_IS_FULL_EXPR_P): New macro.
725 * c-common.c (lang_statement_code_p): New variable.
726 (c_common_nodes_and_builtins): Initialize void_zero_node.
727 (statement_code_p): New function.
728 (walk_stmt_tree): Likewise.
729 * c-decl.c (language_function): Rename to ...
730 (c_language_function): ... this. Include language_function.
731 (push_c_function_context): Adjust accordingly.
732 (pop_c_function_context): Likewise.
733 (mark_c_function_context): Likewise.
734 (current_stmt_tree): Define.
735 * c-semantics.c (begin_stmt_tree): New function.
736 (add_stmt): Likewise.
737 (prune_unused_decls): Likewise.
738 (finish_stmt_tree): Likewise.
740 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
742 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
744 2000-09-06 Kazu Hirata <kazu@hxi.com>
746 * calls.c: Fix formatting.
748 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
750 * config/i386/i386.h (ADDRESS_COST): Fix typo.
752 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
754 Integrated preprocessor.
756 * Makefile.in: Remove all references to c-parse.gperf,
757 c-gperf.h, and c-parse.h. Remove -d from yacc command line
758 generating c-parse.c. Update dependencies.
759 * c-parse.gperf, c-gperf.h: Delete.
761 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
762 yy_lim, or yy_get_token. Don't define get_directive_line if
764 * c-common.h: Add multiple include guard. Define RID values
765 for every keyword in C, C++, and Objective C. Put all the
767 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
768 * c-decl.c (c_decode_option): Handle -lang-objc here.
769 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
770 (grokdeclarator): Adjust for new RID scheme.
771 (extract_interface_info): New stub.
772 * c-lang.c: Don't declare yy_cur or parse_options.
773 (lang_init_options): Call cpp_init. Don't call
775 (lang_init): Don't call check_newline if USE_CPPLIB.
777 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
778 Elide lots of unnecessary code if USE_CPPLIB. Delete code
779 rendered unnecessary by new architecture. Move routines not
780 shared with C++ to c-parse.in. Maintain a local idea of the
781 line number. Handle C++ as well as C.
782 [USE_CPPLIB]: Declare and register callbacks for #ident and
783 for entering/leaving files.
784 (init_c_lex, c_lex): Are now the entry points to this file.
785 (check_newline): Break out directive handling to
787 (read_ucs, is_extended_char, utf8_extend_token): Moved here
789 (readescape, parse_float): Overhaul.
790 (lex_number, lex_string, lex_charconst): Break out of c_lex
792 (get_fileinfo, update_header_times, dump_one_header,
793 dump_time_statistics): New and/or moved here from C++.
794 Support per-file data needed by C++ and per-header timing
795 statistics (C++ only, at the moment).
796 * c-lex.h: Update prototypes. Add multiple include guard.
797 * c-tree.h (struct lang_identifier): Add rid_code field.
798 (C_IS_RESERVED_WORD, C_RID_CODE): New.
800 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
801 reinit_parse_for_function and/or position_after_white_space.
802 (save_filename, save_lineno): Look ahead before saving.
803 (label -> identifier ':'): Save file and line before shifting ':'.
804 (reservedwords): No need to call get_identifier.
805 (init_parse, finish_parse, yyerror, yylex, yyprint,
806 make_pointer_declarator): Are now here for C/ObjC.
807 (rid_to_yy): Conversion table from RID constants to Yacc codes.
809 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
810 #pragma registry. Provide dummy implementation of that
811 interface if !USE_CPPLIB.
812 * c-pragma.h: Update to match.
814 * flags.h: Add multiple include guard.
815 (flag_detailed_statistics): Moved here from C++.
816 * toplev.c: Define flag_detailed_statistics.
818 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
820 * timevar.def (TV_CPP, TV_LEX): New.
821 * timevar.h: Add multiple include guard.
823 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
825 * objc/objc-act.c: Don't mention yy_cur or parse_options.
826 Initialize cpplib properly. Force lineno to 0 after first
827 call to check_newline. Don't handle -lang-objc here.
828 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
830 2000-09-06 David Edelsohn <edelsohn@gnu.org>
832 * rs6000.md: Correct function unit definitions for cr_logical and
834 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
835 and use portable method for >=0 and floating point >=. Remove
838 2000-09-06 Mark Mitchell <mark@codesourcery.com>
840 * extend.texi: Mark named return value extension as deprecated.
842 2000-09-06 Geoff Keating <geoffk@cygnus.com>
844 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
847 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
849 * toplev.c (display_help): Fix thinko in documentation.
851 * diagnostic.h (output_buffer::indent_skip): New fields.
852 (output_indentation): New macro.
854 * diagnostic.c (output_indent): New function.
855 (output_set_prefix, clear_diagnostic_info): Use.
856 (output_emit_prefix): Predict future indentation.
858 2000-09-06 DJ Delorie <dj@redhat.com>
860 * Makefile.in (stage_*): add more dependencies to ensure parallel
861 builds build correctly
863 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
865 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
866 not bootstrap-lean_f.
868 2000-09-06 Andreas Schwab <schwab@suse.de>
870 * mklibgcc.in: Emit rule for libgcc-stage-start.
871 * Makefile.in (stage1-start, stage2-start, stage3-start,
872 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
874 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
876 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
877 (update_equiv_regs): Likewise, except for the mn10200 kludge.
878 (combine_regs): Likewise.
880 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
881 * cse.c: Include "basic-block.h".
882 (struct table_elt): New field REGCOST.
883 (CHEAP_REG): Delete macro.
884 (COST): Return 0 for REGs.
885 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
886 (notreg_cost): Return 0 for appropriate SUBREGs.
887 (COSTS_N_INSNS): Return N * 2.
888 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
890 (CHEAPER): Use new function preferrable.
891 (insert): Initialize REGCOST member.
892 (find_best_addr): Use approx_reg_cost for estimation of register
894 (cse_insn): Likewise.
895 * loop.c (iv_add_mult_cost): New function.
896 (add_cost, shift_cost, mult_cost): Delete variables.
897 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
898 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
899 Make code that detects autoinc opportunities slightly less optimistic.
900 (simplify_giv_expr): If expression contains other reg that is also a
901 giv, only increment benefit if this is the only use of that reg.
902 (consec_sets_giv): Take that change into account.
903 (combine_givs): Slightly more verbose output.
905 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
906 not the cost of an equivalent shift.
907 * sh-protos.h (addsubcosts): Declare.
908 * sh.c (addsubcosts): New function.
909 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
910 (RTX_COSTS): Tweak. Use addsubcosts.
911 (ADDRESS_COST): Return higher cost for reg+reg addressing.
913 2000-09-06 Geoff Keating <geoffk@cygnus.com>
915 * config/rs6000/rs6000.c (validate_condition_mode): New function.
916 (branch_comparison_operator): Call validate_condition_mode to
917 abort rather than returning 0.
918 (branch_positive_comparison_operator): New function.
919 (scc_comparison_operator): Call validate_condition_mode to abort
920 rather than returning 0.
921 (ccr_bit): Call validate_condition_mode. Update for
923 (print_operand): Delete %C modifier. Update %E case
924 to use EQ bit not SO bit.
925 (rs6000_reverse_condition): New function.
926 (rs6000_generate_compare): New function.
927 (rs6000_emit_sCOND): New function.
928 (rs6000_emit_cbranch): New function.
929 (output_cbranch): The length of a long branch insn is
930 now only 8 bytes. Add validate_condition_mode. Use
931 rs6000_reverse_condition. Remove cror generation.
933 * config/rs6000/rs6000.h: Update comments.
934 (PREDICATE_CODES): Add new predicate. Update codes used
935 by branch_comparison_operator and scc_comparison_operator.
936 * config/rs6000/rs6000-protos.h: Add prototypes for
937 new external functions.
938 * config/rs6000/rs6000.md: Add new scheduling parameters
939 for cr_logical instructions. Change length of branch
941 (bCOND patterns): Call rs6000_emit_cbranch.
942 (sCOND patterns): Call rs6000_emit_sCOND.
943 (branch patterns): Change lengths to 4.
944 (cr logical patterns): New.
946 2000-09-06 Richard Henderson <rth@cygnus.com>
948 * config/i386/i386.md (call_pop): Fix test for setting
949 current_function_uses_pic_offset_table.
950 (call, call_value_pop, call_value): Likewise.
952 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
954 * timevar.c (timevar_add): Delete.
955 (timevar_get): Also count time since the selected timer was
956 last updated. Do not examine the timevar stack if the
957 selected timer is standalone.
959 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
961 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
963 2000-09-05 Jason Merrill <jason@redhat.com>
965 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
968 2000-09-05 Richard Henderson <rth@cygnus.com>
970 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
971 Eliminate final copy from non-trapping case.
972 (__divdf3, __divsf3): Likewise.
974 2000-09-05 Richard Henderson <rth@cygnus.com>
976 * config/ia64/ia64.md (mulhi3): Fix typo last change.
977 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
979 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
981 * Makefile.in: Restructure bootstrap stages to allow clean
982 restart after failure.
984 2000-09-05 Richard Henderson <rth@cygnus.com>
986 * config/ia64.md (movsi and movdi patterns): Allow moves from
987 8-bit constants to AR registers.
989 2000-09-05 Richard Henderson <rth@cygnus.com>
991 * config/ia64/ia64.md (mulhi3): New.
993 2000-09-05 Richard Henderson <rth@cygnus.com>
995 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
996 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
997 Optimization Guide, minimum latency alternative.
998 (__moddi3, __udivdi3, __umoddi3): Likewise.
999 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
1001 2000-09-05 Bruce Korb <bkorb@gnu.org>
1003 * fixinc/fixincl.c (load_file): always read header files
1004 with sizes that are a multiple of the page size.
1005 & use libiberty's getpagesize for determining that.
1007 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
1009 * gcse.c (hash_string_1): Add prototype.
1010 * cse.c (canon_hash_string): Likewise.
1012 2000-09-04 Craig Newell <CraigN@ieee.org>
1014 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
1016 2000-09-04 Andreas Schwab <schwab@suse.de>
1018 * Makefile.in (STAGESTUFF): Remove libgcc.
1019 (stage1-start, stage2-start, stage3-start): Copy the contents of
1020 the libgcc directory explicitly.
1021 (mostlyclean): Clean libgcc.
1023 2000-09-04 Andrew Haley <aph@redhat.com>
1025 * dwarf2out.c: (stack_adjust_offset): New prototype.
1027 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
1029 * combine.c (make_extraction): Fix rtx_cost comparison to
1032 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
1034 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
1035 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
1036 Add '*' to insn pattern name.
1038 2000-09-04 Jakub Jelinek <jakub@redhat.com>
1040 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
1041 use posn - 1 to index into tokens array.
1042 (maybe_paste_with_next): Adjust caller.
1044 2000-09-03 Geoff Keating <geoffk@cygnus.com>
1046 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
1048 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
1049 (REGNO_REG_CLASS): Use symbolic register
1052 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
1054 * arm.c (final_prescan_insn): If the form of a jump insn isn't
1055 recognized, don't try to conditionally execute it.
1057 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
1059 * config/avr/avr.md ("*tablejump_lib"): New pattern.
1060 (call_value_insn): Right length claculation.
1061 (call_insn): Likewise.
1063 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
1065 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
1066 gas_output_limited_string, gas_output_ascii, output_movqi,
1067 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
1068 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
1069 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
1070 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
1071 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
1072 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
1073 Add "const" as needed to remove warnings.
1075 * config/avr/avr.c (avr_override_options, avr_init_once,
1076 function_prologue, function_epilogue, frame_pointer_required_p,
1077 class_likely_spilled_p, order_regs_for_local_alloc,
1078 avr_address_cost, avr_ret_register): Use K&R style arguments.
1079 (initial_elimination_offset, gas_output_limited_string):
1080 Remove ATTRIBUTE_UNUSED from the used arguments.
1081 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
1082 Use local variables src, dest, base to access operands[].
1083 Rename reg_dest to reg_src if that's what it is.
1084 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
1085 constants to LD_REGS if reg_was_0.
1086 (output_reload_insisf): Change arg 3 to insn length and set it.
1087 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
1088 access to 16-bit I/O register pairs.
1089 (avr_address_cost): Lower cost for the above case.
1090 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
1091 may be clobbered, also for LD_REGS.
1092 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
1095 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
1097 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
1098 macro to test_hard_reg_class function.
1099 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
1100 for loading immediate constants to LD_REGS.
1101 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
1104 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
1106 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
1107 * config/avr/libgcc.S: Lost part of the previous patch.
1109 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1111 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
1112 object before calling pthread_mutex_init.
1114 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
1116 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
1117 config/sh/crtn.asm: New files.
1118 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
1119 (crt1.o, crti.o, crtn.o): New targets.
1120 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
1122 * configure: Rebuilt.
1123 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
1124 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
1125 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
1126 Undefine for config/elfos.h to redefine.
1127 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
1129 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
1131 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
1132 legitimize_pic_address, output_pic_addr_const): Declare.
1133 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
1134 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
1135 (TARGET_SWITCHES): New switch -mprefergot.
1136 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
1137 (PIC_OFFSET_TABLE_REGNUM): Define.
1138 (GOT_SYMBOL_TABLE): Likewise.
1139 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
1140 (ENCODE_SECTION_INFO): Define.
1141 (FINALIZE_PIC): New macros.
1142 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
1143 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
1144 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
1145 (prepare_move_operands): Call emit_pic_move or
1146 emit_pic_const_move if appropriate.
1147 (output_far_jump): For PIC, use braf and output long offset.
1148 (machine_dependent_reorg):
1149 (sh_expand_prologue): Save and initialize the PIC register.
1150 (sh_expand_epilogue): Restore it.
1151 (initial_elimination_offset): Account for it.
1152 (nonpic_symbol_mentioned_p): New function.
1153 (legitimize_pic_address): Likewise.
1154 (output_pic_addr_const): Likewise.
1155 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
1156 (call, call_value): Use them.
1157 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
1158 symPLT_label2reg): New expands.
1159 * invoke.texi (SH Options): Document -mprefergot.
1161 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
1163 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
1164 * gcse.c (hash_string_1): New function.
1165 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
1166 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
1167 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
1168 (canon_hash_string): New function.
1169 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
1170 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
1171 (fold_rtx): Use ASM_OPERANDS accessor macros.
1172 * emit-rtl.c (copy_insn_1): Likewise.
1173 * integrate.c (copy_rtx_and_substitute): Likewise.
1174 * stmt.c (expand_asm_operands): Likewise. Give an
1175 ASM_OPERANDS rtx the mode of the output reg being set from it.
1177 2000-09-01 Fred Fish <fnf@be.com>
1179 * fix-header.c (write_rbrac): Add putc and getc to list of
1180 functions to protect against prior definition as a macro.
1182 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
1184 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
1185 (c_size_type_node): Define.
1186 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
1187 * c-common.c (enum format_lengths, enum format_std_version,
1188 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
1189 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
1190 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
1191 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
1192 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
1193 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
1194 format_types): Define.
1195 (format_char_info, print_char_table, scan_char_table,
1196 time_char_table): Rearrange for new organization of information
1197 about format length modifiers and standard versions.
1198 (T_ST): Redefine to use c_size_type_node.
1199 (check_format_info): Obtain information about length modifiers and
1200 standard versions from tables. Adjust warning message wordings.
1201 Use the name from the user's program for `ll' and `hh' length
1202 modifiers in warning messages. Use more informative names for
1203 wanted types where available (for wchar_t, wint_t, size_t, signed
1204 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
1206 2000-09-01 Jim Wilson <wilson@cygnus.com>
1208 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
1209 * combine.c (distribute_notes): Handle REG_NORETURN.
1210 * rtl.c (reg_note_name): Add REG_NORETURN.
1211 * rtl.h (enum reg_note): Likewise.
1213 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
1215 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
1216 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
1217 (emit_predicate_relation_info): Handle conditional calls with
1219 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
1220 instead of ia64_file_start.
1221 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
1222 * config/ia64/ia64.md (safe_across_calls_all,
1223 save_across_calls_normal): New patterns.
1225 * loop.c (check_final_value): Check for biv use before checking for
1226 giv use. Check for both biv and giv uses. Always set last_giv_use
1227 if there is a giv use.
1229 2000-09-01 Richard Henderson <rth@cygnus.com>
1231 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
1232 (madddi3): Likewise.
1235 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1237 * expr.c (clear_storage): Don't use emit_move_insn unless
1238 either BLKmode or proper size.
1239 (store_constructor): Don't call clear_storage if REG of wrong size.
1241 * flow.c (init_propagate_block_info): Don't mark frame dead at end
1242 of function if returns wiht stack pointer depressed.
1244 2000-09-01 Andrew Haley <aph@redhat.com>
1246 * dwarf2out.c (stack_adjust_offset): New function.
1247 (dwarf2out_stack_adjust): Break out stack adjust logic into
1248 new stack_adjust_offset function. Look inside parallels and
1249 sequences for stack adjustments.
1251 2000-08-31 Jeff Law <law@cygnus.com>
1253 * arm.md: Use no_new_pseudos to determine when it is safe
1254 to create new pseudo registers.
1256 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
1257 when we can safely allocate new registers.
1259 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
1261 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
1262 so that CONCATs are not generated for ASMs.
1263 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
1264 not generating_concat_p.
1265 * function.c (pop_function_context_from): Reset
1266 generating_concat_p.
1267 (prepare_function_start): Likewise.
1268 * rtl.c (generating_concat_p): Define.
1269 * rtl.h (generating_concat_p): Declare.
1270 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
1272 2000-08-22 Philipp Thomas <pthomas@suse.de>
1273 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
1275 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
1278 2000-08-30 Greg McGary <greg@mcgary.org>
1280 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
1281 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
1282 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
1284 2000-08-30 Greg McGary <greg@mcgary.org>
1286 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
1287 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
1288 (TREE_INT_CST): New macro.
1289 * varasm.c (const_hash, compare_constant_1, record_constant_1):
1290 Use new macro TREE_INT_CST.
1292 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
1294 * contrib.texi: Add self.
1296 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
1298 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
1299 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
1302 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1304 * fixinc/gnu-regex.c: Don't define `const'.
1306 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1308 * expr.c (store_constructor): Allow variable bounds of array type.
1309 (expand_expr): Don't blow up if type is ERROR_MARK.
1310 * varasm.c (output_constructor): Don't access lower bound of array
1311 type unless need it if index is supplied (so it can be a variable
1312 if no index is supplied).
1313 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
1314 Other minor cleanups.
1316 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1318 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
1319 for compilations in stage 1 and subsequent stages, respectively.
1320 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
1321 * configure: Rebuilt.
1322 * x-vax, x-vax-gcc: Deleted.
1324 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
1326 * c-common.c (declare_function_name): Use func_id_node,
1327 function_id_node, and pretty_function_id_node. Do not make
1328 __func__ visible at file scope.
1329 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
1330 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
1331 (function_id_node, pretty_function_id_node, func_id_node): New
1333 * c-decl.c (init_decl_processing): Initialize function_id_node,
1334 pretty_function_id_node, and func_id_node.
1335 (c_make_fname_decl): Correct comment.
1337 * tree.h (struct tree_identifier): Constify pointer member.
1339 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
1340 * c-pragma.h (struct weak_syms): Constify name and value members.
1341 (add_weak): Constify arguments.
1343 * calls.c (special_function_p): Constify a char *.
1344 (expand_call): Remove variable which is initialized and then
1346 * dependence.c (struct def_use, struct induction, struct subscript):
1347 Constify 'variable' member.
1348 (get_low_bound, have_induction_variable): Constify char * argument.
1349 (find_induction_variable): Add braces to avoid dangling else.
1350 (classify_dependence): Constify char * arrays.
1351 * profile.c (output_func_start_profiler): Constify a char *.
1352 * stor-layout.c (finalize_record_size): Constify a char *.
1353 * tree.c (is_attribute_p): Constify a char *.
1354 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
1356 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
1357 for comprehensibility. Do not call get_identifier if we did
1358 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
1359 create temporary string constants, not ggc_alloc_string. No
1360 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
1361 char * to hold IDENTIFIER_POINTERs.
1363 2000-08-29 Richard Henderson <rth@cygnus.com>
1365 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
1368 2000-08-29 Richard Henderson <rth@cygnus.com>
1370 * reload.c (push_secondary_reload): Allow class == reload_class
1371 if we're using a reload_in/out pattern.
1373 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
1374 the half that does not conflict with the reload register.
1375 (reload_outti): Likewise.
1377 2000-08-29 Kazu Hirata <kazu@hxi.com>
1379 * reload.c: Fix formatting.
1381 * stmt.c: Fix formatting.
1383 * gcc.c: Fix formatting.
1385 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
1387 * flags.h (time_report, mem_report): New global flags.
1388 * toplev.c: Define time_report and mem_report.
1389 (f_options): Add -ftime-report and -fmem-report.
1390 (compile_file): Turn on time_report if quiet_flag is off.
1391 Call ggc_print_statistics at very end if mem_report is on.
1392 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
1394 * ggc-common.c (ggc_print_statistics): Rename to
1395 ggc_print_common_statistics; all callers changed. Scale
1396 quantities above 10K to kilobytes and above 10M to megabytes.
1397 * ggc-page.c (ggc_page_print_statistics): Rename to
1398 ggc_print_statistics. Report memory consumed by internal data
1399 structures for each allocation bucket. Scale quantities above
1400 10K to kilobytes and above 10M to megabytes.
1401 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
1402 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
1403 Define tally_leaves always.
1404 (ggc_print_statistics): New function.
1405 * ggc.h: Adjust for renamed functions.
1407 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
1409 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
1410 output_movsisf instead of which_alternative.
1412 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
1414 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
1416 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
1417 (avr_progmem_p): New prototype.
1418 (output_movsisf): Prototype declaration changed.
1419 (output_movqi): New prototype.
1420 (output_movhi): New prototype.
1421 (call_insn_operand): Likewise.
1422 (final_prescan_insn): Likewise.
1423 (avr_simplify_comparision_p): Likewise.
1424 (avr_normalize_condition): Likewise.
1425 (compare_eq_p): Likewise.
1426 (out_shift_with_cnt): Likewise.
1427 (const_int_pow2_p): Likewise.
1428 (output_reload_inhi): Prototype declaration changed.
1430 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
1431 (ldi_reg_rtx): New. rtx for r31.
1432 (avr_init_stack): Initialize as "__stack".
1433 (function_prologue): Use it.
1434 Replace all TARGET_ENHANCED with AVR_ENHANCED.
1435 (avr_mcu_name): Initialize as "avr2".
1436 (avr_enhanced_p, avr_mega_p): New variables.
1437 (mcu_types, avr_override_options): Handle all known MCU types.
1438 Also handle avr1 (only preprocess, assemble and link).
1439 (print_operand): Using of `%K' in output template removed.
1440 (out_movqi_r_mr): Optimized.
1441 (out_movhi_r_mr): Likewise.
1442 (output_movqi): New function.
1443 (output_movhi): Likewise.
1444 (out_movsi_r_mr): Optimized.
1445 (output_movsisf): Compute insn length for `adjust_insn_length'
1446 (out_movqi_mr_r): Optimized.
1447 (out_movhi_mr_r): Optimized.
1448 (adjust_insn_length): Use output_movsisf, output_movqi,
1449 output_movhi for insn length adjusting.
1450 (reg_unused_after): Use dead_or_set_p.
1451 (preferred_reload_class): Now havn't any restriction.
1452 (reg_was_0): New function.
1453 (io_address_p): Likewise.
1454 (const_int_pow2_p): Likewise.
1455 (output_reload_inhi): Likewise.
1456 (output_reload_insisf): Likewise.
1458 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
1459 (LIB_SPEC): Use -lc for all supported devices.
1460 (LIBGCC_SPEC): Use -lgcc for all supported devices.
1461 (AVR_MEGA): Define as avr_mega_p.
1462 (AVR_ENHANCED): New, define as avr_enhanced_p.
1463 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
1464 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
1465 (CRT_BINUTILS_SPECS): Handle all known MCU types.
1466 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
1467 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
1468 (ASM_SPEC): Pass -mmcu=... to the assembler.
1469 Change all -DAVR_* to -D__AVR_*__.
1470 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
1471 Rename library functions to start with two underscores.
1472 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
1474 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
1475 (SUPPORTS_WEAK): Likewise.
1476 (LDI_REG_REGNO): New. Register r31 will be used as temporary
1477 register for loading constants to r0-r14.
1479 * config/avr/avr.md: Replace all TARGET_ENHANCED with
1481 (*mov_r_sp): Removed. Handled by output_movhi.
1482 (*mov_sp_r): Likewise.
1483 (*mov_sp_r_no_interrupts): Likewise
1484 (*mov_sp_r_tiny): Likewise.
1485 (*movqi): Use output_movqi.
1486 (*reload_inqi): New.
1487 (*movhi): Use output_movhi.
1488 (*reload_inhi): New.
1489 (*negsi2): Optimized.
1490 (*negsf2): Likewise.
1491 Added peepholes (define_peephole2) for loading constants to r0-r14
1492 and for using `cpse' command.
1494 * config/avr/libgcc.S: Rename library functions to start with two
1496 Add support for enhanced core.
1497 (_moqhi3): Fix typo, now _modqi3.
1498 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
1499 (__prologue_saves__): Remove test for stack adjust by 0.
1500 (__tablejump__): New.
1502 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
1503 Add multilib support.
1505 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
1507 * loop.c (prescan_loop): Don't check unknown_address_altered
1508 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
1509 to loop_store_mems as necessary.
1510 (loop_invariant_p): Don't check unknown_address_altered
1511 or unknown_constant_address_altered.
1513 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1515 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
1517 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
1519 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
1520 print just the filename.
1521 * cpplex.c (_cpp_run_directive): Add additional argument, the
1522 name to give the synthetic buffer. This defaults to
1523 translated "<command line>".
1524 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
1526 (_cpp_define_builtin): New function.
1527 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
1528 * cpphash.h: Update prototypes.
1530 * tradcpp.c (main): Process -D and -U simultaneously, in the
1531 order they appeared on the command line.
1533 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1535 * c-decl.c (define_label): Call warning_with_file_and_line and
1536 error_with_file_and_line instead of plain warning or error.
1538 * c-parse.in (label): Use save_filename/save_lineno to ensure
1539 correct values for calls to define_label.
1541 2000-08-29 Mark Mitchell <mark@codesourcery.com>
1543 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
1545 * expr.c (expand_expr, case TARGET_EXPR): Don't call
1547 * tree.h (get_file_function_name): Remove two duplicate
1550 2000-08-28 Kazu Hirata <kazu@hxi.com>
1552 * tree.c: Fix formatting.
1554 * xcoffout.c: Fix formatting.
1556 2000-08-28 Jason Merrill <jason@redhat.com>
1558 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
1560 2000-08-28 Daniel Berlin <dberlin@redhat.com>
1562 * dwarf2out.c (dwarf2out_finish): Don't bother calling
1563 break_out_includes if it won't do anything.
1565 2000-08-28 Richard Henderson <rth@cygnus.com>
1567 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
1568 (find_reloads): Likewise.
1569 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
1570 (reload_inhi): Likewise.
1572 2000-08-28 Richard Henderson <rth@cygnus.com>
1574 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
1575 (call_insn_operand): Don't expect a surrounding mem.
1576 (constant_call_address_operand): Likewise.
1577 * config/i386/i386.h (PREDICATE_CODES): Update.
1578 * config/i386/i386.md (call patterns): Move the match_operand
1579 for the call destination inside the mem.
1581 2000-08-28 Richard Henderson <rth@cygnus.com>
1583 * local-alloc.c (requires_inout): Don't use reserved range for
1584 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
1585 * recog.c (asm_operand_ok): Likewise.
1586 (preprocess_constraints, constrain_operands): Likewise.
1587 * regclass.c (record_reg_classes): Likewise.
1588 * reload.c (find_reloads): Likewise.
1589 * reload1.c (maybe_fix_stack_asms): Likewise.
1590 (reload_cse_simplify_operands): Likewise.
1591 * stmt.c (expand_asm_operands): Likewise.
1593 * md.texi: Update constraints documentation.
1594 * tm.texi (EXTRA_CONSTRAINT): Update.
1596 2000-08-28 Daniel Berlin <dberlin@redhat.com>
1598 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
1599 (print_die): If we don't know the offset of the
1600 target die, try the symbol. Add a trailing newline.
1601 (reverse_all_dies): New fn.
1602 (dwarf2out_finish): Call it.
1603 (break_out_includes): Reorganize for clarity.
1604 (add_sibling_attributes): Don't call reverse_die_lists.
1605 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
1607 * flags.h: Add flag_eliminate_dwarf2_dups.
1608 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
1610 2000-08-28 Jason Merrill <jason@redhat.com>
1612 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
1613 * dwarf2out.c: #include "md5.h".
1614 (DIE_LABEL_PREFIX): New macro.
1615 (dw_val_struct): Add 'external' flag to val_die_ref.
1616 (add_AT_die_ref, AT_ref): Adjust.
1617 (AT_ref_external, set_AT_ref_external): New fns.
1618 (build_abbrev_table): Call set_AT_ref_external.
1619 (value_format): Call AT_ref_external.
1620 (die_struct): Add die_symbol field.
1621 (new_die): Clear it.
1622 (dwarf_tag_name): Handle BINCL/EINCL.
1623 (dwarf2out_start_source_file): Add BINCL DIE.
1624 (dwarf2out_end_source_file): Add EINCL DIE.
1625 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
1626 (loc_checksum, attr_checksum, die_checksum): New fns.
1627 (is_type_die, is_comdat_die, is_symbol_die): New fns.
1628 (compute_section_prefix, assign_symbol_names): New fns.
1629 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
1630 (output_die): Call output_die_symbol and AT_ref_external.
1631 (output_comdat_comp_unit): New fn, split out from...
1632 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
1634 (output_pubnames, output_aranges): Abort if we see entries from
1636 * toplev.h: Declare file_name_nondirectory.
1637 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
1638 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
1639 (debug_start_source_file): Call dwarf2out_start_source_file
1640 regardless of debug verbosity.
1641 (debug_end_source_file): Similarly.
1642 * tree.h: Declare clean_symbol_name.
1643 * tree.c (clean_symbol_name): Split out from...
1644 (get_file_function_name_long): ...here.
1646 * dwarf2out.c (new_loc_descr): Use calloc.
1647 (splice_child_die): Remove the die from the right parent.
1648 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
1650 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1652 * toplev.c (decode_g_option): Don't give warning for unknown -g
1653 option; return 0 instead.
1654 (main): If -g option is not recognized by front end or
1655 language-independent code, give warning.
1657 2000-08-28 Greg McGary <greg@mcgary.org>
1659 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
1660 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
1661 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
1663 2000-08-27 Greg McGary <greg@mcgary.org>
1665 * cpplex.c (parse_string): Don't look for backslash
1666 before first char in `namebuf'.
1667 * loop.c (strength_reduce): Skip NOTEs.
1669 2000-08-27 Jason Merrill <jason@redhat.com>
1671 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
1672 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
1673 TREE_ASM_WRITTEN, either.
1674 (finish_decl): Adjust.
1676 2000-08-28 Philipp Thomas <pthomas@suse.de>
1678 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
1679 they have been incorporated into the gettext CVS. Change the text to
1680 reflect the current status of NLS. Add instructions for accessing
1681 the gettext CVS and add the patch from Martin v. Loewis.
1683 2000-08-27 Geoff Keating <geoffk@cygnus.com>
1685 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
1686 by using gen_lowpart_common.
1687 (movdi_internal64+6): Likewise.
1689 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
1691 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
1694 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
1695 numbers to the ranges used by GDB.
1697 2000-08-25 Richard Henderson <rth@cygnus.com>
1699 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
1700 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
1701 (ia64_expand_prologue): Likewise.
1702 (ia64_setup_incoming_varargs): Set it. Properly skip the current
1703 argument for stdargs.
1705 2000-08-25 Jason Merrill <jason@redhat.com>
1707 * integrate.c (expand_inline_function): Pull out the original decl.
1709 2000-08-25 Jim Wilson <wilson@cygnus.com>
1711 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
1713 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
1715 2000-08-25 Greg McGary <greg@mcgary.org>
1717 * flow.c (dump_edge_info): Use ARRAY_SIZE.
1718 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
1720 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
1722 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
1724 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
1726 * i386.c (ix86_find_base_term): New.
1727 * i386-protos.h (ix86_find_base_term): Prototype.
1728 * i386.h (FIND_BASE_TERM): Define.
1729 * alias.c (find_base_term): Use it.
1730 * tm.texi (FIND_BASE_TERM): Document it.
1732 * alias.c (true_dependence, write_dependence_p): Unchanging
1733 memory can't conflict with non-unchanging memory.
1735 * alias.c (memrefs_conflict_p): A BLKmode reference
1736 to a symbol (or CONST_INT address) always conflicts
1737 with a reference to another symbol.
1739 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
1741 * c-common.c (time_char_table): Don't allow width and flags with
1744 2000-08-25 Jakub Jelinek <jakub@redhat.com>
1746 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
1747 way as LT and LTU when the second operand has 0 in low word.
1749 2000-08-26 Michael Hayes <mhayes@cygnus.com>
1751 * basic-block.h (struct loop): Rename `exits' field to
1752 `exit_edges'. Add `entry_edges' and `num_entries' fields.
1754 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
1755 (flow_loop_entry_edges_find): Add.
1756 (flow_edge_list_print): Rename from flow_exits_print.
1757 (flow_loops_find): Call flow_loop_entry_edges_find.
1758 (flow_loop_dump): Dump entry_edges list.
1759 (flow_loops_free): Free entry_edges.
1761 2000-08-26 Michael Hayes <mhayes@cygnus.com>
1763 * loop.c (loop_dump_aux, debug_loop): New functions.
1764 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
1766 * flow.c (flow_loops_dump): Add callback parameter.
1767 (flow_loop_dump): Add callback parameter and call it. Move
1768 loop note debugging code to loop_dump_aux.
1770 * basic-block.h (flow_loop_dump): Add callback parameter
1771 (flow_loops_dump): Likewise.
1773 * toplev.c (rest_of_compilation): Add NULL callback function pointer
1774 to call to flow_loops_dump.
1776 2000-08-26 Michael Hayes <mhayes@cygnus.com>
1778 * loop.c (count_loop_regs_set): Replace start and end arguments
1779 with loop argument. All callers udated.
1781 2000-08-26 Michael Hayes <mhayes@cygnus.com>
1783 * loop.c (constant_high_bytes): Delete.
1785 2000-08-26 Michael Hayes <mhayes@cygnus.com>
1787 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
1788 and NOTE_INSN_LOOP_VTOP to...
1789 (find_and_verify_loops) ...here.
1791 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
1793 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
1794 (fini_dummy, init_dummy): Use it.
1796 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
1798 * cpplex.c (is_macro_disabled): Caller has already checked
1799 that we're not a preprocessed file.
1801 2000-08-24 Mark Mitchell <mark@codesourcery.com>
1803 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
1804 (c-iterate.o): Remove target.
1805 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
1806 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
1807 (finish_decl): Don't handle iterators.
1808 (grokdeclarator): Likewise.
1809 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
1810 * gcc/c-gperf.h: Regenerated.
1811 * gcc/c-iterate.c: Removed.
1812 * gcc/c-lex.c (init_lex): Don't handle iterators.
1813 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
1814 (compstmt_primary_start): Remove push_iterator_stack call.
1815 (stmt): Don't allow iterator statements. Replace iterator_expand
1816 with expand_expr_stmt.
1817 (all_iter_stmt): Remove.
1818 (all_iter_stmt_simple): Likewise.
1819 (all_iter_stmt_with_decl): Likewise.
1820 * gcc/c-tree.h (ITERATOR_P): Remove.
1821 (ITERATOR_BOUND_P): Likewise.
1822 (init_iterators): Remove declaration.
1823 (iterator_expand): Likewise.
1824 (iterator_for_loop_start): Likewise.
1825 (iterator_for_loop_end): Likewise.
1826 (iterator_for_loop_record): Likewise.
1827 (push_iterator_stack): Likewise.
1828 (pop_iterator_stack): Likewise.
1829 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
1830 (readonly_warning): Likewise.
1831 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
1833 2000-08-24 Jim Wilson <wilson@cygnus.com>
1835 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
1836 Copy type in a TYPE_DECL, just like pushdecl does.
1838 2000-08-24 Richard Henderson <rth@cygnus.com>
1840 * toplev.c (main): Enable flag_reorder_blocks at -O2.
1842 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
1844 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
1845 asked for one page, allocate GGC_QUIRE_SIZE of them and put
1846 the extras on the free list.
1847 (release_pages): Clean up.
1848 (ggc_set_mark): Don't adjust G.allocated here...
1849 (sweep_pages): ... do it here.
1851 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
1853 * cppfiles.c (read_include_file): Rearrange initializations.
1855 2000-08-24 Richard Henderson <rth@cygnus.com>
1857 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
1859 * config/ia64/ia64-protos.h: Update.
1860 * config/ia64/ia64.c (gr_register_operand): New.
1861 (fr_register_operand, grfr_register_operand): New.
1862 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
1863 (grfr_reg_or_8bit_operand): New.
1864 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
1865 use gr_register_operand.
1866 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
1867 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
1868 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
1869 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
1870 (fr_reg_or_fp01_operand): Likewise.
1871 (not_postinc_memory_operand): New.
1872 (ia64_split_timode): Remove unused variables.
1873 (rtx_needs_barrier): Check arguments to cmpxchg.
1874 (builtin_description): Remove.
1875 (bdesc_2argsi, bdesc_2argdi): Remove.
1876 (ia64_init_builtins): Declare all builtins directly.
1877 (ia64_expand_fetch_and_op): Rewrite to be called from
1878 ia64_expand_builtin directly. Use expand_binop and co.
1879 (ia64_expand_op_and_fetch): Likewise.
1880 (ia64_expand_compare_and_swap): Likewise.
1881 (ia64_expand_binop_builtin): Remove.
1882 (ia64_expand_lock_test_and_set): New.
1883 (ia64_expand_lock_release): New.
1884 (ia64_expand_builtin): Use them.
1885 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
1886 (EXTRA_CONSTRAINT): Use it.
1887 (PREDICATE_CODES): Update.
1888 * config/ia64/ia64.md (*): Use gr_register_operand and co.
1889 (mf): Indicate that we set memory as well as use it.
1890 (fetchadd_acq_si): Show memory being modified as well.
1891 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
1892 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
1893 (lock_test_and_set_si, lock_test_and_set_di): Remove.
1894 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
1895 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
1896 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
1897 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
1898 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
1899 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
1900 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
1901 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
1902 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
1903 return type. Pretty print definitions.
1905 2000-08-24 Jim Wilson <wilson@cygnus.com>
1907 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
1908 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
1910 2000-08-24 Jason Merrill <jason@redhat.com>
1912 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
1913 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
1914 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
1915 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
1917 2000-08-24 Greg McGary <greg@mcgary.org>
1919 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
1920 and extendtab within their proper array boundaries.
1921 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
1922 for the entire array.
1924 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
1925 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
1926 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
1927 * config/fr30/fr30.c (fr30_print_operand): Likewise.
1928 * config/i386/dgux.c (output_options): Likewise.
1929 * config/i386/dgux.h (ASM_FILE_START): Likewise.
1930 * config/m88k/m88k.c (output_options): Likewise.
1931 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
1932 * config/mcore/mcore.c (mcore_output_inline_const_forced,
1933 layout_mcore_frame, handle_structs_in_regs): Likewise.
1934 * config/mips/mips.c (output_block_move): Likewise.
1935 * config/rs6000/rs6000.c (rs6000_override_options,
1936 rs6000_file_start): Likewise.
1937 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
1938 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
1939 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
1940 * builtins.c (expand_builtin_setjmp): Likewise.
1941 * expr.c (safe_from_p): Likewise.
1942 * flow.c (life_analysis): Likewise.
1943 * fold-const.c (size_int_type_wide): Likewise.
1944 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
1945 * genattrtab.c (make_length_attrs): Likewise.
1946 * genopinit.c (gen_insn): Likewise.
1947 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
1948 * global.c (global_alloc): Likewise.
1949 * local-alloc.c (find_free_reg): Likewise.
1950 * mips-tdump.c (print_symbol): Likewise.
1951 * mips-tfile.c (parse_def, parse_input): Likewise.
1952 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
1953 * stmt.c (expand_nl_goto_receiver): Likewise.
1954 * stor-layout.c (set_sizetype): Likewise.
1955 * varasm.c (decode_reg_name): Likewise.
1956 * toplev.c (decode_f_option, decode_W_option,
1957 set_target_switch, print_switch_values): Likewise.
1958 (NUM_ELEM): Remove macro.
1959 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
1961 2000-08-24 Greg McGary <greg@mcgary.org>
1963 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
1964 (MAIN_NAME_P, main_identifier_node): New macros.
1965 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
1966 * c-decl.c (start_decl, grokdeclarator, start_function,
1967 store_parm_decls, finish_function): Use MAIN_NAME_P.
1968 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
1969 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
1970 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
1971 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
1973 2000-08-24 Greg McGary <greg@mcgary.org>
1975 * cppfiles.c (actual_directory): Don't write beyond `dir'
1976 when it contains "".
1977 * real.c (asctoeg): Stay within bounds of etens[][].
1979 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1981 * dependence.c (dependence_string, direction_string,
1982 dump_one_node, dump_node_dependence): Hide unused identifiers.
1983 (get_low_bound, normalize_coefficients): Match definition to
1985 (get_one_coefficient): Initialize variables `value0_is_idx' and
1987 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
1988 (ziv_test): Delete variable `idx', use parameter `sub' instead.
1989 (direction_merge): Avoid automatic aggregate initialization.
1990 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
1991 Initialize variables `dest_idx' and `src_idx'.
1992 (end_dependence_analysis): Avoid C89 style function definition.
1994 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
1996 * c-common.c (time_char_table): Don't allow width with %F.
1997 (check_format_info): Don't allow "Z" length with scanf.
1999 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
2001 * diagnostic.c (finish_diagnostic): Define.
2002 (output_do_printf): Use wrap_text instead of output_add_string.
2003 (default_print_error_function): Avoid embedded '\n'.
2005 * diagnostic.h (flush_diagnostic_buffer): Declare.
2007 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
2009 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
2011 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
2013 * Makefile.in (GCC_PASSES): Add specs.
2015 2000-08-23 Jim Wilson <wilson@cygnus.com>
2017 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
2018 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
2019 EHANDLER nor UHANDLER bit is set.
2020 (__get_except_table): Likewise.
2022 2000-08-23 Nick Clifton <nickc@redhat.com>
2024 * config/arm/lib1funcs.asm: Replace upper case condition codes
2025 with lower case versions.
2027 * config/arm/arm.h (STRUCT_VALUE): Define.
2028 (STRUCT_VALUE_REGNUM): Delete.
2030 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
2032 * cpphash.h (IN_I): New flag for directive table.
2033 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
2035 (_cpp_check_directive): If -fpreprocessed, execute directives
2036 marked with IN_I. Issue no warnings in this case.
2037 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
2039 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
2041 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
2043 (check_format_info): Support printf 'I' flag; warn about it with
2046 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
2048 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
2049 barrier can't be ignored by the alias analysis code.
2051 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
2053 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
2054 works inside fixincl.
2056 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
2058 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
2059 simplify_relational_operation() unless both operands are of
2061 * cse.c (fold_rtx): Likewise.
2063 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
2065 * rtlanal.c (rtx_unstable_p): The pic register is stable
2066 (within one function) and the actual rtx should be used
2067 when checking the registers.
2068 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
2070 * alias.c (true_dependence, write_dependence_p): Fix
2071 bug in previous patch.
2073 * i386.c (ix86_GOT_alias_set): New.
2074 (legitimize_pic_address): Use it.
2076 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
2077 only stable if its address is stable.
2078 (rtx_varies_p): An unchanging MEM can't vary if
2079 its address doesn't vary.
2081 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2083 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
2085 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2087 * vax.h (ASM_SPEC): Pass `-J' to assembler.
2088 * x-vax-gcc: New file for bootstrapping with gcc.
2089 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
2090 * configure.in: Use x-vax-gcc with gcc.
2091 * configure: Rebuilt.
2093 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2095 * toplev.c (rest_of_compilation): Rebuild label notes after
2096 post-reload splitting pass if new labels have been created.
2098 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
2100 * diagnostic.h (output_buffer_state): New macro.
2101 * diagnostic.c (diagnostic_for_decl, sorry,
2102 default_print_error_function, output_do_verbatim,
2103 report_diagnostic, report_problematic_module): Use it.
2105 (output_format): Use wrap_text instead of maybe_wrap_text.
2107 2000-08-22 Nick Clifton <nickc@redhat.com>
2109 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
2110 Common code for ARM divide and modulus functions.
2111 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
2113 (FUNC_END): New macro: Common code at the end of the division and
2115 (THUMB_FUNCTION_START): New macro: Common code at the start of
2117 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
2119 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2121 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
2123 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
2124 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
2127 2000-08-22 Nick Clifton <nickc@redhat.com>
2129 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
2130 restorative additions, test for bottom bits of IP being set,
2131 rather than relying upon the RORs not matching.
2134 2000-08-22 David Edelsohn <edelsohn@gnu.org>
2136 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
2137 text_section() as appropriate instead of emitting text csect
2139 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
2140 (UNIQUE_SECTION): Define macro.
2141 (ASM_OUTPUT_SECTION_NAME): Define macro.
2142 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
2143 on AIX if debugging and -fdata-sections always.
2145 2000-08-22 Steven King <sxking@uswest.net>
2147 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
2149 (LDBL_MAX): Same here.
2151 2000-08-22 Richard Henderson <rth@cygnus.com>
2153 * flow.c (tidy_fallthru_edge): Update b->end properly.
2155 2000-08-22 Stan Cox <scox@redhat.com>
2157 * Makefile.in (OBJS): Add dependence.o.
2158 * dependence.c: New file.
2160 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
2162 * calls.c (check_sibcall_argument_overlap_1): Adjust for
2164 (check_sibcall_argument_overlap): Likewise.
2166 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2168 * invoke.texi (SH Options): Document -m4-nofpu,
2169 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
2170 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
2172 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
2174 * c-common.c (check_format_info): Give the 'some locales' warning
2175 for strftime %Ey rather than the unconditional 'only last 2 digits
2178 2000-08-22 Richard Henderson <rth@cygnus.com>
2180 * alias.c (init_alias_analysis): Do not register
2181 struct_value_incoming_rtx or static_chain_rtx as pointing
2184 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
2186 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
2188 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
2190 * diagnostic.h (report_problematic_module): Declare.
2191 * diagnostic.c (report_problematic_module): New function.
2192 (report_error_function): Tweak.
2194 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2196 * stmt.c (expand_goto_internal, fixup_gotos): Only check
2197 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
2199 2000-08-21 Richard Henderson <rth@cygnus.com>
2201 * flow.c (calculate_global_regs_live): Mark frame pointer live
2202 everywhere before reload.
2204 2000-08-21 Jim Wilson <wilson@cygnus.com>
2206 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
2207 INTEL_EXTENDED_IEEE_FORMAT.
2208 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
2209 clear last two bytes of output FP value.
2211 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
2213 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
2215 2000-08-21 Jakub Jelinek <jakub@redhat.com>
2217 * unroll.c (loop_find_equiv_value): If ret is modified between
2218 insn and loop_start, ret might not be equivalent to reg.
2220 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
2222 * c-common.c (init_dollar_format_checking,
2223 maybe_read_dollar_number, finish_dollar_format_checking): New
2225 (dollar_arguments_used, dollar_arguments_count,
2226 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
2228 (check_format_info): Support $ formats for scanf and printf width
2229 and precision. Always increment format_chars to advance past the
2230 '*' of precision, not just when the format parameters are
2233 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2235 * mips.c (block_move_loop, expand_block_move,
2236 function_arg_partial_nregs, save_restore_insns, function_prologue,
2237 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
2239 (function_arg_advance, function_arg): Match argument to format
2242 2000-08-21 Nix <nix@esperi.demon.co.uk>
2244 * gcc.c (do_spec_1): Implement %j spec flag.
2245 Remove dead comment.
2247 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
2248 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
2249 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
2250 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
2252 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
2253 writable) instead of hardcoded value.
2255 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
2257 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
2260 * gcc.c (cc1_options): Do not process -o or run the assembler if
2262 * objc/lang-spec.h: Likewise.
2264 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
2266 * fixinc/fixincl.c (fix_with_system): Pipe the output of
2267 "external" fixes through `cat', to avoid truncating the input
2268 file by redirection.
2270 2000-08-21 Jakub Jelinek <jakub@redhat.com>
2272 * config/i386/i386.md (lea_general_1): Copy insn condition to split
2274 (lea_general_2, lea_general_3): Likewise.
2276 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2278 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
2279 warnings to user code.
2281 * c-lex.c (readescape, yylex): Likewise.
2283 * c-typeck.c (store_init_value, process_init_element): Likewise
2284 (c_expand_start_case): Format.
2286 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2288 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
2290 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
2291 and linker_endian_spec to endian_spec.
2292 (ENDIAN_SPEC): Add %{EB} and %{EL}.
2293 (LINK_SPEC): Remove %{EB} and %{EL}.
2294 (ASM_SPEC): Likewise. Use %(endian_spec).
2296 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
2298 * c-tree.h (flag_hosted): Move declaration from here...
2299 * c-common.h (flag_hosted): ... to here.
2300 (flag_noniso_default_format_attributes): New declaration.
2301 * c-decl.c (flag_noniso_default_format_attributes): New variable.
2302 (c_decode_option): Set it appropriately for options choosing
2303 language standard variant.
2304 * c-common.c (init_function_format_info): Only provide default
2305 format attributes if flag_hosted. Only provide the gettext
2306 formats if flag_noniso_default_format_attributes. Update
2308 (check_format_info): Disable treatment of %a as a scanf flag in
2311 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
2313 * c-common.c (scan_char_table): Add 'w' to flags for all formats
2315 (check_format_info): Set 'wide' for scanf format widths. Warn for
2316 a zero scanf width. Make the check for writing into a constant
2317 object at the first level of indirection; at later levels, warn if
2318 any type qualifiers are encountered.
2320 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
2322 * reload.c (reload_inner_reg_of_subreg): New function broken out of
2324 (push_reload): Use reload_inner_reg_of_subreg.
2325 (combine_reloads): Do not combine reloads if the input reload
2326 is a SUBREG in which the inner part will need reloading.
2328 * global.c (global_alloc): Avoid passing dumpfile argument to
2330 * toplev.c (rest_of_compilation): Likewise.
2331 * reload.h (reload): Remove dumpfile argument. Callers changed.
2332 (debug_reload, debug_reload_to_stream): Move prototypes here.
2333 * rtl.h (reload): Remove dumpfile argument.
2334 * reload.c (debug_reload): Remove prototype.
2335 (debug_reload_to_stream): Likewise.
2336 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
2339 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2341 * diagnostic.c (context_as_prefix): Export.
2342 (need_error_newline): Remove.
2343 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
2344 (error_module_changed, record_last_error_module,
2345 error_function_changed, record_last_error_function): New functions.
2346 (initialize_diagnostics): Default intialize
2347 lang_diagnostic_starter, lang_diagnostic_finalizer.
2348 (init_output_buffer): Tweak.
2349 (file_name_as_prefix): New function.
2350 (announce_function, default_print_error_function,
2351 report_error_function, set_diagnostic_context): Tweak.
2353 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
2355 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
2356 condition expression.
2358 2000-08-20 Richard Henderson <rth@cygnus.com>
2360 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
2362 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
2364 * cppinit.c (cpp_init): Set global flag when called.
2365 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
2367 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
2369 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
2370 before `process_directive' so that newlines won't be missed
2372 (cpp_printf): Increment `print->lineno' when newline is emitted.
2374 * cppmain.c (cb_ident): Likewise.
2375 (cb_define): Likewise.
2376 (cb_undef): Likewise.
2377 (cb_include): Likewise.
2378 (cb_def_pragma): Likewise.
2379 (dump_macros_helper): Likewise.
2381 2000-08-20 Richard Henderson <rth@cygnus.com>
2383 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
2384 assigned before a loop.
2386 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
2387 (ashrsi3, lshrsi3): Likewise.
2389 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
2391 * c-lang.c: #include diagnostic.h
2392 (c_tree_printer): New function.
2393 (lang_init): Initialize lang_printer.
2395 * Makefile.in (c-lang.o): Depends on diagnostic.h
2397 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
2399 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
2401 * diagnostic.c (default_diagnostic_starter,
2402 default_diagnostic_finalizer): New functions.
2403 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
2404 (pedwarn, pedwarn_with_file_and_line, error,
2405 error_with_file_and_line, fatal, warning,
2406 warning_with_file_and_line): Adjust call to report_diagnostic.
2407 (report_diagnostic): Rework.
2408 (set_diagnostic_context): New function.
2410 * diagnostic.h (struct diagnostic_context): New data structure.
2411 (diagnostic_message, diagnostic_argument_list,
2412 diagnostic_file_location, diagnostic_line_location,
2413 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
2414 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
2415 (set_diagnostic_context): Declare.
2416 (report_diagnostic): Change prototype.
2418 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
2420 * fix-header.c (main): Initialize cpplib.
2422 2000-08-19 Michael Meissner <meissner@redhat.com>
2424 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
2425 instructions in it before checking for indirect jumps.
2427 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
2428 in a indirect jump as a potential for conditional execution.
2430 * d30v.h (d30v_init_expanders): Don't declare here.
2431 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
2434 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
2436 * cpp.texi: Add @section for assertions.
2438 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
2440 * loop.c (scan_loop): Use CONST_CALL_P instead of
2441 checking for REG_LIBCALL / REG_RETVAL.
2443 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
2445 * reload1.c (reload_as_needed): Accept dumpfile argument,
2446 pass it to emit_reload_insns.
2447 (emit_reload_insns): Add new dumpfile argument. If non-null
2448 then dump the reloads for each insn into the dumpfile.
2449 (reload): Pass dumpfile to reload_as_needed.
2451 * invoke.texi: Clean up linux-gnu vs linux comments.
2453 2000-08-19 Richard Henderson <rth@cygnus.com>
2455 * config/ia64/ia64.c (reg_or_5bit_operand): New.
2456 (ia64_depz_field_mask): New.
2457 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
2458 (PREDICATE_CODES): Update.
2459 * config/ia64/ia64.md: Update commentary.
2460 (depz_internal): New.
2461 (ashlsi3): Implement directly.
2462 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
2463 (ashldi3): Use shladd.
2464 * config/ia64/ia64-protos.h: Update.
2466 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
2468 * toplev.c (independent_decode_option): Always process -g.
2469 Remove third argument, now unused. Adjust caller to match.
2471 2000-08-18 Richard Henderson <rth@cygnus.com>
2473 * combine.c (make_compound_operation): Break after creating
2476 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
2478 * cpplib.c (cpp_register_pragma_space): Just return if the
2479 namespace is already registered.
2481 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
2483 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
2484 constant amount. Do not generate ROTL instruction.
2486 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
2488 * config/sh/elf.h: Do not include sh/sh.h.
2489 * config/sh/rtems.h: Likewise.
2490 * config/sh/rtemself.h: Do not include sh/elf.h.
2491 * configure.in: Get them included with `tm_file's.
2492 * configure: Rebuilt.
2494 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
2495 * config/sh/sh.c (fpscr_set_from_mem): Use them.
2497 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2499 * stor-layout.c (compute_record_type): Don't use mode of single
2500 field as mode of record if not integer mode of same type.
2502 * regmove.c (perhaps_ends_bb_p): New function.
2503 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
2504 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
2505 (fixup_match_1): Likewise.
2506 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
2507 avoid signed/unsigned warnings.
2509 * function.c (fixup_var_refs_1, case MEM): Update CODE after
2512 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
2514 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
2515 (_cpp_trigraph_map): Declaration moved from cpplex.c
2517 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
2518 instead of 256. Use consistent test for designated initializers.
2519 (cpp_init): Initialize trigraph_map.
2520 (initialize_standard_includes, parse_option): Use memcmp
2523 * cpplex.c (init_trigraph_map): Remove.
2524 (trigraph_ok, trigraph_replace, lex_line): Refer to
2527 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
2528 (do_unassert): Remove unused "next" local.
2530 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
2532 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
2534 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
2537 2000-08-17 Richard Henderson <rth@cygnus.com>
2539 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
2540 the first insn in a sequence.
2542 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
2544 * alias.c (true_dependence, write_dependence_p): A read
2545 involving a label_ref or the constant pool doesn't create
2548 * rtl.h (unchanging): Improve documentation.
2550 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
2552 * cse.c (insert_regs): Remove unused `regno'.
2554 2000-08-17 Neil Booth <NeilB@earthling.net>
2556 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
2557 remove_dup_dirs. If qtail == brack, remove brack not
2559 (remove_dup_dir, remove_dup_dirs): New functions.
2561 2000-08-17 Neil Booth <NeilB@earthling.net>
2563 * cppinit.c (cpp_cleanup): Free include dir chains.
2564 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
2565 (do_unassert): Free the assert with _cpp_free_definition.
2566 * cppmacro.c (_cpp_free_definition): Free memory allocated for
2567 assertions. Make the node a T_VOID node.
2569 2000-08-17 Neil Booth <NeilB@earthling.net>
2571 * cppinit.c (path_include, append_include_chain):
2572 Remove 2nd parameter (struct cpp_pending *).
2573 (path_include, initialize_standard_includes, cpp_handle_option):
2574 Update callers appropriately.
2575 (cpp_handle_option): Use pend.
2577 2000-08-17 Neil Booth <NeilB@earthling.net>
2579 * cppinit.c (sort_options): Remove, put functionality in
2582 (initialize_builtins): Free memory.
2583 (cpp_start_read): Move init_IStable to cpp_init.
2585 * cpplib.h (cpp_init): New prototype.
2586 * cppmain.c (main): Call cpp_init.
2588 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
2590 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
2591 (rtx_unstable_p, rtx_varies_p): Process vectors.
2593 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
2595 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
2596 references to GLOBAL symbols. Use LOCAL where appropriate.
2598 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2600 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
2601 use t-aix41 when host == target.
2603 2000-08-16 Richard Henderson <rth@cygnus.com>
2605 * reload.c (push_secondary_reload): Revert last change.
2606 If we use a reload_in/out pattern, make the when the same
2607 as the primary reload.
2608 (find_reloads): Likewise.
2610 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
2612 * configure.in (libstdcxx-v3): Fix test.
2613 * configure: Regenerate.
2615 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2617 * calls.c (calls_function_1, expand_call): Only test
2618 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
2619 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2621 2000-08-16 Richard Henderson <rth@cygnus.com>
2623 * combine.c (simplify_shift_const): Revert previous two
2624 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
2625 before the main loop.
2627 2000-08-15 Richard Henderson <rth@cygnus.com>
2629 * combine.c (simplify_shift_const): Bound shift count when
2632 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2634 * calls.c (ECF_SP_DEPRESSED): New macro.
2635 (calls_function_1): Treat calling sp-depressed function as alloca.
2636 (emit_call_1): Don't adjust SP if calling sp-depressed function.
2637 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
2638 If sp-depressed, ensure block saves and restores SP.
2639 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
2641 * function.c (keep_stack_depressed): New function.
2642 (thread_prologue_and_epilogue_insns): Call it.
2643 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
2644 to print DECL_OFFSET_ALIGN.
2645 Print no-force-blk and transparent-union flags properly.
2646 * stmt.c (expand_goto_internal): Don't restore stack if last block
2647 and function returns with sp depressed.
2648 (fixup_gotos): Likewise.
2649 (save_stack_pointer): New function, from code in expand_decl.
2650 (expand_decl): Call new function.
2651 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
2652 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
2653 (save_stack_pointer): New declaration.
2655 * diagnostic.c (fatal_function): New variable.
2656 (set_fatal_function): New function.
2658 * diagnostic.h (set_fatal_function): New declaration.
2660 2000-08-15 William Cohen <wcohen@redhat.com>
2662 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
2663 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
2664 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
2666 2000-08-15 Richard Henderson <rth@cygnus.com>
2668 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
2670 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
2672 * arm.c (arm_function_ok_for_sibcall): New function.
2673 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
2674 * arm.md (call expanders): Don't check here for calls that can't
2677 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
2679 * arm.md (splits generating cond_exec): Disable.
2681 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
2683 * arm/linux-elf.h (text_section): Delete declaration.
2685 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
2687 ARM support for unordered FP operations.
2688 * arm-protos.h (arm_comparison_operator): Declare.
2689 * arm.c (arm_comparison_operator): New function.
2690 (arm_select_cc_mode): Add unordered comparison codes.
2691 (get_arm_condition_code): Likewise.
2692 (arm_final_prescan_insn): Can't handle unordered jumps that can't
2693 be done in one insn.
2694 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
2695 * arm.md (all uses of comparison_operator): Replace with
2696 arm_comparison_operator.
2697 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
2699 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
2702 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2704 * gthr-posix.h: Conditionally include <sched.h>; include
2705 <config.h> from libobjc/.
2707 2000-08-14 Richard Henderson <rth@cygnus.com>
2709 * config/i386/i386.c (legitimize_pic_address): Use Pmode
2712 2000-08-14 Richard Henderson <rth@cygnus.com>
2714 * configure.in (ia64-*): Set float_format for i386 long double.
2716 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
2717 as we would for i386 XFmode.
2718 (PUT_REAL): Likewise.
2719 (endian, ereal_atof, real_value_truncate): Likewise.
2720 (ereal_isneg, toe64, etens, make_nan): Likewise.
2721 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
2723 * config/ia64/ia64-protos.h: Update.
2724 * config/ia64/ia64.c (general_tfmode_operand): New.
2725 (destination_tfmode_operand): New.
2726 (tfreg_or_fp01_operand): New.
2727 (ia64_split_timode): New.
2728 (spill_tfmode_operand): New.
2729 (ia64_expand_prologue): Use TFmode not XFmode.
2730 (ia64_expand_epilogue): Likewise.
2731 (ia64_function_arg): Likewise.
2732 (ia64_function_arg_advance): Likewise.
2733 (ia64_return_in_memory): Likewise.
2734 (ia64_function_value): Likewise.
2735 (ia64_print_operand): Likewise.
2736 (ia64_register_move_cost): Set GR<->FR to 5.
2737 (ia64_secondary_reload_class): Get GR for TImode memory op.
2738 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
2739 (ROUND_TYPE_ALIGN): Remove.
2740 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
2741 (INTEL_EXTENDED_IEEE_FORMAT): Define.
2742 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
2743 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
2744 (MODES_TIEABLE_P): Use TFmode, not XFmode.
2745 (CLASS_MAX_NREGS): Likewise.
2746 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
2747 (PREDICATE_CODES): Update.
2748 * config/ia64/ia64.md (movti): New.
2749 (movti_internal): Use a clobber for memory alternatives.
2750 (reload_inti, reload_outti): New.
2751 (movsfcc_astep): Predicate properly.
2752 (movdfcc_astep): Likewise.
2755 (extendsftf2, extenddftf2): New.
2756 (trunctfsf2, trunctfdf2): New.
2757 (floatditf2, fix_trunctfdi2): New.
2758 (floatunsditf2, fixuns_trunctfdi2): New.
2759 (addtf3, subtf3, multf3, abstf2): New.
2760 (negtf2, nabstf2, mintf3, maxtf3): New.
2761 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
2763 (fr_spill): Use TFmode, not XFmode.
2764 (fr_restore): Likewise.
2765 * config/ia64/lib1funcs.asm (__divtf3): New.
2766 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
2768 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2770 * cse.c (fold_rtx): Avoid empty body in an if-statement.
2772 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
2773 `U' integer constant suffix.
2775 * dwarf2out.c (add_subscript_info): Avoid empty body in an
2778 * sparc/sol2.h (__enable_execute_stack): Prototype.
2780 2000-08-14 David Edelsohn <edelsohn@gnu.org>
2782 * collect2.c: Remove use of AIX import file.
2784 * longlong.h: Test ARCH_PWR not ARCH_POWER.
2786 * rs6000.c (print_operand, case 'E'): Add else.
2788 2000-08-14 Richard Henderson <rth@cygnus.com>
2790 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
2791 (movdi_symbolic): New.
2793 2000-08-14 Jim Wilson <wilson@cygnus.com>
2795 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
2796 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
2797 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
2800 2000-08-14 Richard Henderson <rth@cygnus.com>
2802 * expr.c (emit_group_load): Don't force constants into registers.
2803 Special case source already in the correct mode.
2805 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
2807 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
2808 * fixinc/inclhack.def: Likewise.
2809 * fixinc/mkfixinc.sh: Likewise.
2810 * configure: Regenerate.
2811 * fixinc/fixincl.x: Regenerate.
2812 * install.texi: Document equivalence of linux and linux-gnu.
2814 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2816 * cse.c (insert_regs): Also in REG case: When finding an invalid
2817 value, and we make a new quantity, make sure that it won't be
2818 mistaken by for a valid one by mention_regs.
2820 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
2822 * h8300.md: Remove obsolete peepholes.
2824 2000-08-13 Kazu Hirata <kazu@hxi.com>
2826 * invoke.texi (H8/300 Options): Fix typos.
2827 * config/h8300.c: Fix formatting.
2828 * config/h8300.h: Fix comment typos.
2829 (OVERRIDE_OPTIONS): Fix formatting.
2831 * function.c: Fix formatting.
2833 * cse.c: Fix formatting.
2835 2000-08-13 Geoff Keating <geoffk@cygnus.com>
2837 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
2838 (attempt_auto_inc): Suppress parentheses warning.
2839 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
2840 * loop.c (load_mems): Remove `u' suffix in two places.
2841 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
2843 * config/rs6000/rs6000.h: Likewise.
2844 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
2845 __eabi dummy routine.
2846 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
2849 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
2850 not put stuff in .sdata unnecessarily.
2851 (rs6000_unique_section): New function.
2852 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
2853 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
2855 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
2856 arrays in C99. Don't try to look at DECL_REGISTER of a
2857 COMPONENT_REF. Don't complain twice about the same error.
2859 * fixinc/inclhack.def (aix_pthread): New fix.
2860 (aix_sysmachine): New fix.
2861 * fixinc/fixincl.x: Regenerate.
2863 * expr.c (expand_expr): Call convert_modes when turning a large
2864 multiply into a small one.
2866 2000-08-12 Geoff Keating <geoffk@cygnus.com>
2868 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
2869 the tree structure an exponent rather than an explicit alignment
2870 so it doesn't overflow.
2871 (SET_DECL_OFFSET_ALIGN): New macro.
2872 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
2873 rather than DECL_OFFSET_ALIGN.
2874 (place_field): Likewise.
2875 * expmed.c (store_bit_field): Abort on align==0 to avoid
2876 antisocial machine behaviour.
2878 2000-08-12 Richard Henderson <rth@cygnus.com>
2880 * sibcall.c (uses_addressof): Accept both addressof and
2881 current_function_internal_arg_pointer inside a mem.
2882 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
2883 if current_function_uses_addressof.
2884 * stmt.c (expand_return): Kill tail recursion and HAVE_return
2887 2000-08-11 Richard Henderson <rth@cygnus.com>
2889 * config/ia64/ia64.md (addsi3): Remove expander.
2890 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
2891 (*addsi3_shladd): New.
2893 2000-08-11 Richard Henderson <rth@cygnus.com>
2895 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
2896 (do_restore): Likewise.
2897 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
2898 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
2899 (rtx_needs_barrier): Track actual bit manipulation for
2900 ar.unat moves, gr_spill, and gr_restore.
2901 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
2902 (process_set): Don't handle varargs spills.
2903 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
2904 .mem.offset here instead of in process_set.
2905 (gr_restore): Likewise.
2907 2000-08-11 Richard Henderson <rth@cygnus.com>
2909 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
2911 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
2913 * gcc.texi (The Configuration File): Document
2914 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
2915 UPDATE_PATH_HOST_CANONICALIZATION.
2917 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2919 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
2920 unprototyped function pointer casts on integer constants.
2922 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
2924 * fixproto: Recognize DOS paths with drive letters as absolute paths.
2926 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
2928 * extend.texi (Volatiles): Fix typos.
2930 2000-08-11 Kazu Hirata <kazu@hxi.com>
2932 * flow.c: Fix formatting.
2934 2000-08-11 Richard Henderson <rth@cygnus.com>
2936 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
2937 pattern, always allocate a tertiary scratch register.
2939 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
2940 (reload_inhi): Likewise.
2942 2000-08-11 Richard Henderson <rth@cygnus.com>
2944 * function.c (put_reg_into_stack): Allow type to be NULL.
2945 (schedule_fixup_var_refs): Likewise.
2946 (gen_mem_addressof): Allow decl to be NULL.
2947 (put_addressof_into_stack): Likewise.
2949 * flow.c (merge_blocks_nomove): Be more careful about
2950 locating the beginning of block A.
2952 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
2954 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
2959 * config.in: Reverted the check for <sched.h>.
2961 2000-08-10 Chris Demetriou <cgd@sibyte.com>
2963 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
2964 macros define the name of CTOR and DTOR sections.
2965 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
2966 DTOR_LIST_END): Change to use attributes to specify
2968 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
2969 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
2970 DTOR_LIST_END): Same as in mips/elf.h.
2972 2000-08-10 Drew Moseley <dmoseley@redhat.com>
2974 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
2975 disabling just crt0.o.
2977 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
2979 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
2980 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
2981 (EXTRA_SPECS): Add them.
2982 * arm/lib1funcs.asm: Support builds for interworking.
2983 Use macros to eliminate duplicated pieces of code.
2985 2000-08-10 Kazu Hirata <kazu@hxi.com>
2987 * h8300.c (expand_a_rotate): New.
2988 (emit_a_rotate): Likewise.
2989 (h8300_adjust_insn_length): Add support for the rotate insns.
2990 * h8300.md (rotlqi3): New.
2991 (*rotlqi3_1): Likewise.
2992 (rotlhi3): Likewise.
2993 (*rotlhi3_1): Likewise.
2994 (rotlhi3): Likewise.
2995 (*rotlhi3_1): Likewise.
2996 * h8300-proto.h: Add prototypes for expand_a_rotate and
2999 * h8300.c: Fix comment typos.
3000 (dosize): Declare the variable amount as unsigned.
3001 (get_shift_alg): Fix a comparison between signed and unsigned.
3002 (emit_a_shift): Likewise.
3003 (h8300_adjust_insn_length): Simplify the code.
3005 * c-decl.c: Fix formatting.
3007 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3009 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
3010 warning about non-traditional numeric constant suffixes.
3012 * cppexp.c (parse_number): Likewise.
3014 * invoke.texi: (-Wtraditional): Document new behavior.
3016 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3018 * gthr-posix.h: Include auto-host.h. Conditionally include
3020 * configure.in: Check for the <sched.h> header file.
3021 * config.in: Added define for HAVE_SCHED_H.
3023 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3025 * c-typeck.c (process_init_element): For -Wtraditional, warn about
3026 initialization of unions.
3028 * invoke.texi (-Wtraditional): Document new behavior.
3030 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
3032 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
3033 instead of extra_c_flags.
3034 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
3035 * configure: Regenerate.
3036 * config.in: Regenerate.
3038 * cpperror.c (cpp_type2name): New function.
3039 * cpplex.c (lex_line): If we issued an error for an invalid
3040 preprocessing directive, discard that logical line.
3041 * cpplib.c (do_line): Call a hook function if the current file
3042 is renamed by #line.
3043 (do_ident): Pass the contents of the string, not the entire
3044 token, to the callback function.
3045 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
3046 (cb.rename_file): New hook function.
3047 (cb.ident): Adjust prototype.
3048 (cpp_type2name): Prototype.
3049 * cppmacro.c (dump_macro_args): Correct precedence lossage.
3051 * cppmain.c (cb_ident): Update for changed interface.
3052 (cb_rename_file): New function.
3053 (main): Set rename callback.
3055 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
3057 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
3058 multi-word registers.
3060 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
3062 * c-common.c (combine_strings, check_format_info): Refer to ISO C
3063 or ISO C89 instead of ANSI C.
3064 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
3065 build_enumerator, do_case): Likewise.
3066 * c-lex.c (parse_float, yylex): Likewise.
3067 * c-parse.in: Likewise.
3068 * c-typeck.c (common_type, build_array_ref, build_binary_op,
3069 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
3070 build_c_cast, convert_for_assignment, set_init_index,
3071 set_init_label, c_expand_start_case): Likewise.
3072 * toplev.c (documented_lang_options, display_help): Likewise.
3074 2000-08-08 Kazu Hirata <kazu@hxi.com>
3076 * h8300.c: Fix formatting.
3077 * h8300.h: Likewise.
3078 * h8300.md: Likewise.
3079 (movsi_h8300hs): Fix formatting of the resulting assembly code.
3081 * reload1.c: Fix formatting.
3083 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
3085 * alpha/alpha.c (alpha_emit_xfloating_libcall):
3086 Use GEN_CALL_VALUE define.
3087 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
3088 * clipper/clipper.md (untyped_call): Likewise.
3089 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
3090 * fx80/fx80.md (untyped_call): Likewise.
3091 * mips/mips.md (untyped_call): Likewise.
3092 * ns32k/ns32k.md (untyped_call): Likewise.
3093 * pa/pa.md (untyped_call): Likewise.
3094 * romp/romp.md (untyped_call): Likewise.
3095 * sparc/sparc.md (untyped_call): Likewise.
3097 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3099 * config/i860/i860.c (singlemove_string): Do not generate assembler
3100 pseudo instructions that must be expanded (that is, with signed
3101 constants larger than 16 bits).
3103 2000-08-08 Richard Henderson <rth@cygnus.com>
3105 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
3106 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
3107 (init_propagate_block_info): Don't kill memory stores at -O0.
3108 (mark_set_1, mark_used_regs): Likewise.
3110 2000-08-08 David Edelsohn <edelsohn@gnu.org>
3112 * rs6000.c (optimization_options): Decorate 'level' as
3114 (mask64_operand): Remove sign-extend thinko.
3115 (rldic_operand): New function.
3116 (load_multiple_operation): regno's are unsigned ints.
3117 (store_multiple_operation): Likewise.
3118 (lmw_operation): Likewise.
3119 (stmw_operation): Likewise.
3120 (includes_lshift_p): shift_mask is unsigned int.
3121 (includes_lshift64_p): New function.
3122 (addrs_ok_for_quad_peep): unsigned int reg1.
3123 (print_operand): Consistently add "else" after
3124 output_operand_lossage().
3125 (print_operand, case 'b'): Fold in case 'W'.
3126 (print_operand, case 'W'): Print rldic MB value.
3127 (output_epilogue): Update Objective-C language string.
3128 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
3129 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
3130 * rs6000.md (ashldi3): Add rldic instruction.
3131 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
3132 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
3135 2000-08-08 Richard Henderson <rth@cygnus.com>
3137 * config/ia64/ia64-protos.h: Remove duplicates. Update
3138 for massive code rearrangements.
3139 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
3140 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
3141 (ia64_local_regs, ia64_need_regstk): Remove.
3142 (ar_ccv_reg_operand): New.
3143 (ia64_gp_save_reg): New.
3144 (struct ia64_frame_info): Combine most of the size elements;
3145 add new gr save elements.
3146 (find_gr_spill): New.
3147 (next_scratch_gr_reg): New.
3148 (mark_reg_gr_used_mask): New.
3149 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
3150 to GR backing store regs when possible.
3151 (ia64_initial_elimination_offset): New.
3152 (ia64_rap_fp_offset): Remove.
3153 (save_restore_insns): Remove.
3154 (setup_spill_pointers): New.
3155 (finish_spill_pointers): New.
3156 (spill_restore_mem): New.
3157 (do_spill, do_restore): New.
3158 (ia64_expand_prologue): Rewrite to use them.
3159 (ia64_expand_epilogue): Likewise.
3160 (ia64_direct_return): Update for current_frame_info changes.
3161 (ia64_function_prologue): Simplify .prologue emission. Emit
3163 (ia64_setup_incoming_varargs): Don't ever emit rtl.
3164 (ia64_dbx_register_number): New.
3165 (ia64_initialize_trampoline): New.
3166 (ia64_secondary_reload_class): Request GR_REGS for integer
3167 arithmetic destined for FR_REGS.
3168 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
3169 (ia64_mark_machine_status): Mark ia64_gp_save.
3170 (rws_access_regno): Rename from rws_access_reg; don't treat
3171 predicates specially.
3172 (rws_access_reg): New. Update all callers.
3173 (rtx_needs_barrier): Remove dead unspecs.
3174 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
3175 (ia64_encode_section_info): Silence signed/unsigned warnings.
3176 (spill_offset, sp_offset, spill_offset_emitted): Remove.
3177 (tmp_reg, tmp_saved): Remove.
3178 (process_set): Rewrite to expect complicated bits via
3179 REG_FRAME_RELATED_EXPR.
3180 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
3181 in the use of ar.ccv; never set RTX_UNCHANGING_P.
3182 (ia64_expand_op_and_fetch): Likewise.
3183 (ia64_expand_compare_and_swap): Likewise.
3184 (ia64_expand_builtin): Likewise.
3185 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
3186 (FIRST_PSEUDO_REGISTER): Update.
3187 (AR_M_REGNO_P): Update.
3188 (FIXED_REGS): Don't mark three local registers as used.
3189 (EXTRA_CC_MODES): New.
3190 (SELECT_CC_MODE): New.
3191 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
3192 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
3193 (FRAME_GROWS_DOWNWARD): Unset.
3194 (STARTING_FRAME_OFFSET): Zero.
3195 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
3196 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
3197 (HARD_FRAME_POINTER_REGNUM): New.
3198 (CAN_DEBUG_WITHOUT_FP): Define.
3199 (TRAMPOLINE_TEMPLATE): Remove.
3200 (TRAMPOLINE_SIZE): Lower to 32.
3201 (TRAMPOLINE_ALIGNMENT): Lower to 64.
3202 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
3203 (PREDICATE_CODES): Update.
3204 (struct machine_function): Add ia64_gp_save.
3205 * config/ia64/ia64.md: Purge unused unspecs.
3206 (movsi patterns): Allow moves to/from AR_M_REGS.
3207 (movdi patterns): Allow moves to/from p0.
3208 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
3209 (gr_spill, gr_restore): Indicate ar.unat read/written.
3210 (nonlocal_goto): Don't pass old frame_pointer.
3211 (nonlocal_goto_receiver): Remove.
3212 (exception_receiver): New.
3213 (builtin_setjmp_setup): New.
3214 (builtin_setjmp_receiver): New.
3215 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
3216 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
3217 (__ia64_restore_stack_nonlocal): Likewise.
3218 (__ia64_trampoline): New.
3219 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
3221 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
3223 2000-08-08 Richard Henderson <rth@cygnus.com>
3225 * frame.h (ia64_frame_state): Add my_psp.
3226 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
3227 (__throw): Pass it in. Don't clobber r7.
3228 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
3229 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
3230 and nothing to do with sp.
3231 (normalize_reg_loc): Use frame->my_psp.
3232 (frame_translate): Handle frame-pointer-less functions. Set
3233 spill_base correctly, in absence of being told.
3234 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
3235 (__ia64_backtrace_helper): New sp argument. Use
3236 builtin_return_address instead of label addresses.
3237 (print_record) [mem_stack_v]: No size member.
3239 2000-08-08 Richard Henderson <rth@cygnus.com>
3241 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
3243 2000-08-08 Richard Henderson <rth@cygnus.com>
3245 * tm.texi (LOCAL_REGNO): Document.
3246 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
3247 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
3248 * reload1.c (reload): Likewise when considering nonlocal labels.
3250 * config/ia64/ia64.h (LOCAL_REGNO): New.
3251 * config/sparc/sparc.h (LOCAL_REGNO): New.
3253 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
3255 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
3257 2000-08-07 Nick Clifton <nickc@redhat.com>
3259 * config/mips/mips.c: Fix compile time warning messages.
3260 * config/mips/mips-protos.h: Add prototype for equality_op.
3262 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
3264 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
3266 * mn10300.md: Use nonimmediate_operand instead of general_operand
3269 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
3271 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
3273 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
3274 * sh.c (expand_block_move): Break long lines.
3275 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
3276 * sh.md (mulsi3): Likewise.
3277 (movdi): Adjust spacing.
3279 2000-08-07 Richard Henderson <rth@cygnus.com>
3281 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
3282 * expr.c (emit_group_store): Don't set it.
3284 2000-08-07 Kazu Hirata <kazu@hxi.com>
3286 * invoke.texi (Options for Debugging Your Program or GCC): Remove
3287 duplicate entries for 'w' and 'z'.
3289 * flow.c: Fix a comment typo.
3291 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3293 * c-parse.in: Changed the language string for Objective-C to "GNU
3296 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3298 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
3299 to improve the Posix thread support for Objective-C.
3301 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
3303 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
3304 CTI_UNSIGNED_PTRDIFF_TYPE.
3305 (signed_size_type_node): Define.
3306 (unsigned_ptrdiff_type_node): Define.
3307 * c-decl.c (init_decl_processing): Create the
3308 signed_size_type_node and unsigned_ptrdiff_type_node types.
3309 * c-common.c (T_SC): Define.
3312 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
3313 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
3315 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
3316 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
3317 flags for %c, %s and %[.
3318 (check_format_info): Only allow leniency for signedness of targets
3319 of character pointers (when pedantic) for formats flagged with
3320 "c", so for strings but not for %hh formats. When pedantic, don't
3321 allow character pointers to substitute for void pointers if a
3322 second level of indirection is present.
3324 2000-08-06 Kazu Hirata <kazu@hxi.com>
3326 * invoke.texi (Options for Debugging Your Program or GCC): Update
3327 the names of dump files.
3329 * h8300.c (dosize): Rearrange code for conciseness.
3330 (split_adds_subs): Likewise.
3332 * loop.c: Fix formatting.
3334 * dwarf2out.c: Fix formatting.
3336 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
3338 * expr.c: Fix formatting.
3340 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3342 * rs6000.c (rs6000_maybe_dead): Prototype.
3344 2000-08-06 Richard Henderson <rth@cygnus.com>
3346 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
3347 HAVE_nonlocal_goto as well.
3348 * config/i960/i960.md (nonlocal_goto): Don't do it here.
3349 * config/pj/pj.md (nonlocal_goto): Likewise.
3351 2000-08-07 Michael Hayes <mhayes@cygnus.com>
3353 * loop.c (try_swap_copy_prop): New function.
3354 (load_mems): Rename copies to load_copies and add new regset
3355 store_copies. Check for sets of shadow registers and mark
3356 in store_copies. Call try_swap_copy_prop for registers
3357 marked in store_copies.
3359 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
3361 * objc/objc-act.c: New command line option -fconstant-string-class
3362 to allow specifying a user defined constant string class,
3363 different from NXConstantString.
3365 * toplev.c: Moved the Objective-C specific options to
3366 objc/lang-options.h.
3368 * objc/lang-options.h: Moved the Objective-C specific options from
3369 toplev.c. Added -fconstant-string-class.
3371 2000-08-05 Chris Demetriou <cgd@sibyte.com>
3373 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
3374 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
3375 __CTOR_LIST__ from func_ptr array to just func_ptr, to
3376 avoid extra alignment imposed on arrays.
3377 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
3378 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
3380 * mips.h: Clean up comments and spacing near MASKs.
3381 (TARGET_UNIX_ASM): Delete.
3382 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
3383 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
3386 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
3388 * c-common.c (print_char_table): Add entries for the X/Open '
3389 format flag (print decimals with locale's thousands grouping
3390 character). Make %C expect wint_t.
3391 (check_format_info): If pedantic, warn when the %n$ operand
3392 number form is used. Allow for the ' flag; warn about it if
3395 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
3397 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
3398 type is a float mode, cfun->decl's return type is not, and
3399 TARGET_FLOAT_RETURNS_IN_80387.
3401 2000-08-04 Andreas Schwab <schwab@suse.de>
3403 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
3404 token list, which are always `#' and `pragma'.
3406 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
3408 * tree.c (tree_expr_nonnegative_p): Move to...
3409 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
3410 (rtl_expr_nonnegative_p): New.
3411 * tree.h: Add prototype for rtl_expr_nonnegative_p.
3413 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
3414 CONST_DOUBLE_CHAIN: Move to...
3415 * rtl.h: ...here. Use XCINT/XCEXP.
3417 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
3418 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
3419 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
3422 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
3424 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3426 * config/c4x/c4x.md (return_indirect_internal): New.
3427 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
3429 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
3431 * c-common.c (time_char_table): Mark up formats added in C99 and
3432 make other corrections. %D and %g were added in C99. %Og is an
3433 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
3434 C99. %e was added in C99. %Oj is an extension. %G and %z are in
3435 C99 rather than GNU extensions, but %OG and %Oz are extensions.
3436 %h was added in C99. %C was added in C99. %OY and %OC are
3437 extensions. Add the C99 format %F.
3438 (check_format_info): If pedantic and not in C99 mode, warn for C99
3441 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3443 * function.c (schedule_fixup_var_refs): New function, broken out
3444 of put_reg_into_stack.
3445 (put_reg_into_stack): Use it.
3446 (put_var_into_stack): In CONCAT case, fixup up references for
3447 components only after fixing up references to the whole concat.
3449 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
3451 * alias.c (mark_constant_function): Use INSN_P.
3452 (init_alias_analysis): Likewise.
3453 * combine.c (combine_instructions): Use INSN_P.
3454 (can_combine_p): Likewise.
3455 (try_combine): Likewise.
3456 (distribute_notes): Likewise.
3457 (distribute_links): Likewise.
3458 * cse.c (cse_around_loop): Use INSN_P.
3459 (invalidate_skipped_block): Likewise.
3460 (cse_set_around_loop): Likewise.
3461 (cse_end_of_basic_block): Likewise.
3462 (delete_trivially_dead_insns): Likewise.
3463 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
3464 (unshare_all_rtl_1): Likewise.
3465 (next_cc0_user): Likewise.
3466 (try_split make_insn_raw): Likewise.
3467 (remove_unnecessary_notes): Likewise.
3468 * final.c (shorten_branches): Use INSN_P.
3469 (leaf_renumber_regs): Likewise.
3470 (leaf_renumber_regs_insn): Likewise.
3471 * flow.c (find_label_refs): Use INSN_P.
3472 (verify_wide_reg): Likewise.
3473 (notice_stack_pointer_modification): Likewise.
3474 (count_or_remove_death_notes): Likewise.
3475 (verify_flow_info): Likewise.
3476 (clear_log_links): Likewise.
3477 * function.c (fixup_var_refs_insns): Use INSN_P.
3478 (compute_insns_for_mem): Likewise.
3479 * gcse.c (alloc_gcse_mem): Use INSN_P.
3480 (compute_sets): Likewise.
3481 (compute_hash_table): Likewise.
3482 (classic_gcse): Likewise.
3484 (insert_insn_end_bb): Likewise.
3485 (delete_null_pointer_checks_1): Likewise.
3486 * global.c (expand_preferences): Use INSN_P.
3487 (build_insn_chain): Likewise.
3488 * graph.c (node_data): Use INSN_P.
3489 * haifa-sched.c (priority): Use INSN_P.
3490 (rm_line_notes): Likewise.
3491 (rm_other_notes): Likewise.
3492 (find_insn_reg_weight): Likewise.
3493 (init_target_units): Likewise.
3494 (schedule_block): Likewise.
3495 (compute_block_forward_dependences): Likewise.
3496 (debug_dependencies): Likewise.
3497 (set_priorities): Likewise.
3498 * integrate.c (function_cannot_inline_p): Use INSN_P.
3499 (save_parm_insns): Likewise.
3500 (copy_insn_list): Likewise.
3501 * jump.c (mark_all_labels): Use INSN_P.
3502 (never_reached_warning): Likewise.
3503 * lcm.c (optimize_mode_switching): Use INSN_P.
3504 * local-alloc.c (validate_equiv_mem): Use INSN_P.
3505 (memref_used_between_p): Likewise.
3506 (update_equiv_regs): Likewise.
3507 (block_alloc): Likewise.
3508 (no_conflict_p): Likewise.
3509 * loop.c (scan_loop): Use INSN_P.
3510 (find_and_verify_loops): Likewise.
3511 (count_loop_regs_set): Likewise.
3512 (loop_reg_used_before_p): Likewise.
3513 (strength_reduce): Likewise.
3514 (recombine_givs): Likewise.
3515 (check_dbra_loop): Likewise.
3516 (load_mems): Likewise.
3517 (try_copy_prop): Likewise.
3518 * print-rtl.c (print_rtx): Use INSN_P.
3519 * recog.c (find_single_use): Use INSN_P.
3520 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
3521 (next_flags_user): Likewise.
3522 (swap_rtx_condition): Likewise.
3523 * regmove.c (mark_flags_life_zones): Use INSN_P.
3524 (optimize_reg_copy_1): Likewise.
3525 (optimize_reg_copy_2): Likewise.
3526 (optimize_reg_copy_3): Likewise.
3527 (reg_is_remote_constant_p): Likewise.
3528 (fixup_match_2): Likewise.
3529 (regmove_optimize): Likewise.
3530 (fixup_match_1): Likewise.
3531 * regrename.c (build_def_use): Use INSN_P.
3532 (replace_reg_in_block): Likewise.
3533 (consider_use): Likewise.
3534 * reload.c (find_equiv_reg): Use INSN_P.
3535 * reload1.c (reload): Use INSN_P.
3536 (maybe_fix_stack_asms): Likewise.
3537 (calculate_needs_all_insns): Likewise.
3538 (reload_as_needed): Likewise.
3539 (emit_output_reload_insns): Likewise.
3540 (delete_address_reloads_1): Likewise.
3541 (reload_cse_regs_1): Likewise.
3542 (reload_combine): Likewise.
3543 (reload_cse_move2add): Likewise.
3544 * reorg.c (redundant_insn): Use INSN_P.
3545 (dbr_schedule): Likewise.
3546 * resource.c (find_dead_or_set_registers): Use INSN_P.
3547 (mark_target_live_regs): Likewise.
3548 * rtlanal.c (reg_used_between_p): Use INSN_P.
3549 (reg_referenced_between_p): Likewise.
3550 (reg_set_between_p): Likewise.
3551 (reg_set_p): Likewise.
3552 (single_set): Likewise.
3553 (multiple_sets): Likewise.
3554 (find_last_value): Likewise.
3555 (reg_set_last): Likewise.
3556 (find_reg_note): Likewise.
3557 (find_regno_note): Likewise.
3558 * sibcall.c (sequence_uses_addressof): Use INSN_P.
3559 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
3560 * ssa.c (find_evaluations): Use INSN_P.
3561 (rename_block): Likewise.
3562 (rename_equivalent_regs): Likewise.
3563 * unroll.c (loop_find_equiv_value): Use INSN_P.
3564 (set_dominates_use): Likewise.
3565 * varasm.c (mark_constant_pool): Use INSN_P.
3566 (mark_constants): Likewise.
3567 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
3568 (alphaev4_next_group): Likewise.
3569 (alphaev5_next_group): Likewise.
3570 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
3571 (c4x_rptb_rpts_p): Likewise.
3572 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
3573 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
3574 (rs6000_adjust_priority): Likewise.
3575 * config/sh/sh.c (sh_loop_align): Use INSN_P.
3576 (machine_dependent_reorg): Likewise.
3577 (split_branches): Likewise.
3578 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
3580 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
3582 * combine.c (recog_for_combine): Remove the old notes
3583 prior to attempting to recognize the new pattern.
3584 (distribute_notes): Ignore REG_NONNEG notes.
3586 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
3588 * varasm.c (output_constructor): Add .align 0 for packed vars.
3590 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3592 * configure.in: Use default thread_file even when enable_threads is
3593 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
3594 * configure: Rebuilt.
3596 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
3598 2000-08-04 Donn Terry (donnte@microsoft.com)
3600 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
3602 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
3604 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
3605 Delete code that conditionally modifies 'version'.
3606 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
3607 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
3608 * gcc.c (main): Use it.
3609 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
3610 * prefix.c (update_path): Use it.
3611 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
3612 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
3613 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
3615 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
3616 (SUBTARGET_SWITCHES): Adjust.
3617 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
3619 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
3621 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
3623 * c-common.h (flag_isoc94): Declare.
3624 * c-decl.c (flag_isoc94): Define.
3625 (c_decode_option): Set flag_isoc94 as appropriate.
3626 * c-common.c (T_PD, T_IM, T_UIM): Define.
3627 (format_char_info): Add tlen and jlen.
3628 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
3630 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
3632 (time_char_table): Add NULL entries for %t and %j.
3633 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
3634 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
3635 Warn for printf %lf if pedantic and not C99. Don't warn for empty
3636 precision. Allow precision argument to be unsigned int. If
3637 pedantic, warn for %p passed an argument not a pointer to possibly
3638 qualified void or a possibly qualified character type, and for
3639 pointer targets of the wrong sign, except for character pointers.
3641 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
3643 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
3644 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
3645 (wint_type_node): Define.
3646 * c-decl.c (WINT_TYPE): Define.
3647 (init_decl_processing): Create the wint_type_node type.
3648 * c-common.c (T_WI): Define.
3649 (print_char_table): Use T_WI for %lc format.
3651 2000-08-04 Bruce Korb <bkorb@gnu.org>
3653 * fixinc/: Verified that the MSDOS patch does not break
3654 the UNIX functionality and applied the next three patches
3657 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
3659 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
3660 output file with the temporary one by appending ".X" to generate
3661 the temporary fuile's name. If the output file already has an
3662 extension, replace it with ".X".
3664 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
3665 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
3666 reallocate the command buffer while copying the command-line
3667 argument. Redirect the output directly to the temporary file,
3668 instead of going through another temporary file.
3669 (process): Close the temporary file before unlinking it.
3670 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
3671 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
3672 (run_compiles): Pass p_fixd argument to machine_matches, as it
3675 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
3676 environment, assume there are no symlinks in the include
3677 directory. When cleaning up the DONE files, look for them
3678 case-insensitively. Don't try to remove symlinks if they aren't
3681 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
3682 all callers changed. Declare pz "const char *", to avoid compiler
3685 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
3686 Change prototype of make_raw_shell_str.
3688 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
3690 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
3691 (initialize) [__MSDOS__]: Use tempnam.
3692 (initialize): Don't use SIGPIPE if it is not defined.
3694 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
3697 2000-07-25 Bruce Korb <bkorb@gnu.org>
3699 * fixinc/fix*.[ch]: substantially reworked to make it possible
3700 to run this program without using fork(2) or pipe(2) (i.e. in
3703 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
3705 * cppdefault.h (WINT_TYPE): Define.
3706 * cppinit.c (builtin_array): Define __WINT_TYPE__.
3707 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
3708 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
3710 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
3712 * (mips_legitimate_address_p): Don't allow register+offset
3713 if the offset is large and negative, and we are compiling
3714 for 64 bit registers.
3716 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3718 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
3719 insn_code_number + 1.
3721 2000-08-04 Kazu Hirata <kazu@hxi.com>
3723 * h8300.c (function_prologue): Rearrange code for conciseness.
3724 (function_epilogue): Likewise.
3725 * h8300.h (OK_FOR_U): Fix formatting.
3727 * cse.c: Fix a comment typo. Fix formatting.
3729 2000-08-03 Richard Henderson <rth@cygnus.com>
3731 * config/i386/i386.md (return_indirect_internal): New.
3732 * config/i386/i386.c (ix86_expand_epilogue): Use it.
3734 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
3736 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
3738 (lex_line): Glue @ onto the beginning of identifiers and
3739 string constants, in Objective-C mode.
3740 (output_token, spell_token): Handle CPP_OSTRING.
3741 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
3742 beginning of a NAME or a STRING, in objc mode.
3744 * cpplib.c (get_define_node): Do not permit identifiers that
3745 begin with @ to be #defined.
3746 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
3747 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
3749 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
3750 * c-tree.h (build_objc_string): Delete prototype.
3751 * objc/objc-tree.def: Delete OBJC_STRING_CST.
3752 * c-lex.c (yylex): Use build_string for all three kinds of strings.
3754 * c-parse.in, objc/objc-act.c: Update commentary.
3756 2000-08-03 Mark Mitchell <mark@codesourcery.com>
3758 * extend.texi: Fix typo in last change.
3760 * extend.texi: Add commentary on statement-expressions and their
3761 interactions with C++.
3763 2000-08-03 Nick Clifton <nickc@cygnus.com>
3765 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
3766 * dwarf.h (LANG_JAVA): Change value to 0x000b.
3768 2000-08-03 Anthony Green <green@cygnus.com>
3770 * dwarf2out.c (gen_compile_unit_die): Add java language support.
3771 (add_bound_info): Check for java language.
3772 (is_java): New function.
3773 * dwarfout.c (output_compile_unit_die): Ditto.
3774 * dwarf.h (dwarf_source_language): Add java source language type.
3775 * dwarf2.h (dwarf_source_language): Ditto.
3777 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
3779 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
3782 * i386.c (ix86_expand_branch): Mode of comparison in
3783 IF_THEN_ELSE is VOIDmode.
3785 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
3787 * gengenrtl.c, rtl.c: Avoid #elif.
3789 2000-08-03 Michael Poole <poole@troilus.org>
3791 * tm.texi (Register Classes): Clarify order of sub-initializers
3792 in REG_CLASS_CONTENTS.
3794 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3796 From SAITOH Masanobu:
3797 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
3799 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
3801 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
3802 is not supported by tradcpp and isn't actually needed for cygwin.
3804 2000-08-03 Kazu Hirata <kazu@hxi.com>
3806 * h8300.c: Fix a comment typo.
3807 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
3809 * jump.c: Fix formatting.
3811 * toplev.c: Fix formatting.
3813 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
3815 * flow.c (find_auto_inc): Verify that we've got a REG before
3816 peeking at its regno. Fail, don't abort if we can't find
3817 the increment of the desired register.
3819 * pa.md (shadd height reduction patterns/splitters): Remove.
3821 2000-08-02 Jim Wilson <wilson@cygnus.com>
3823 * config/ia64/ia64-protos.h (flag_ssa): Declare.
3824 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
3826 2000-08-02 Mark Mitchell <mark@codesourcery.com>
3828 * dce.c: Remove all uses of assert.
3829 * dwarf2out.c: Likewise.
3830 * dwarfout.c: Likewise.
3833 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
3835 * gcc.h (lang_specific_driver): Constify second argument.
3836 * gcc.c (translate_options, process_command, main): Likewise.
3837 Constify variables to match. Cast second argument to
3840 * cppspec.c, gccspec.c: Adjust type of second argument to
3841 lang_specific_driver, and update code as necessary.
3843 2000-08-02 Jakub Jelinek <jakub@redhat.com>
3845 * loop.c (scan_loop): Ensure update_end label does not
3846 go away until reg_scan_update is run.
3848 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
3850 * c-common.h: Prototype min_precision and c_build_qualified_type here...
3851 * c-tree.h: ... not here.
3852 * errors.h: Prototype fancy_abort.
3854 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
3855 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
3856 * regrename.c (regrename_optimize): Make control flow explicit.
3857 (replace_reg_in_block): Initialize reg_use to 0.
3859 * i386.c (legitimate_address_p): Rename error label to
3860 report_error to avoid namespace clash.
3862 2000-08-02 Kazu Hirata <kazu@hxi.com>
3864 * fold-const.c: Fix formatting.
3866 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
3868 * i386.c (legitimate_address_p): Accept other bases than
3869 pic_offset_table_rtx for GOTOFF constructs.
3871 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
3873 * i386.md (shift to lea splitter): Use const_int_operand.
3875 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
3877 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
3878 cppspec.c: Do not use 'legal' or 'illegal' in error messages
3881 * cppmain.c (cb_define, cb_undef): Don't generate any output
3882 if not done_initializing.
3883 * cpplex.c (maybe_paste_with_next): When the token after a ##
3884 is an omitted rest argument, only delete the token before it
3885 if that token is a comma. Do not warn about bogus token
3886 pastes for , ## rest_arg.
3889 * cpp.1: Regenerate.
3891 2000-08-02 Fred Fish <fnf@be.com>
3893 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
3894 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
3897 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
3898 Be directories to search path.
3900 Remove support for __declspec(dllimport) and __declspec(dllexport).
3901 This is leftover cruft from the earlier BeOS gcc port when BeOS
3902 used Microsoft's PE object file format.
3903 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
3904 * config/i386/t-beos (winnt.o): Remove Makefile frag.
3905 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
3906 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
3907 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
3908 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
3909 (REDO_SECTION_INFO_P): Remove.
3910 (ASM_EXPORT_DECL): Remove.
3911 (ASM_DECLARE_FUNCTION_NAME): Remove.
3912 (ASM_DECLARE_OBJECT_NAME): Remove.
3913 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
3914 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
3915 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
3916 (STRIP_NAME_ENCODING): Remove.
3918 Remove support for obsolete version of BeOS that is no longer
3920 * configure.in (i*86-*-beospe*): Remove.
3921 * config/i386/beos-pe.h: Remove.
3923 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
3924 Mark Mitchell <mark@codesourcery.com>
3926 * Makefile.in (OBJS): Added dce.o.
3927 (ssa.o): Updated target to include ssa.h.
3929 (toplev.o): Likewise.
3930 (dce.o): Created target.
3931 * basic-block.h: Added comments.
3932 (INVALID_BLOCK): Added definition.
3933 (connect_infinite_loops_to_exit): Added declaration.
3934 Moved SSA declarations to ssa.h.
3935 * flow.c: Added inclusion of ssa.h.
3936 (struct depth_first_search_dsS, depth_first_search_ds):
3938 (compute_immediate_postdominators): Added definition.
3939 (connect_infinite_loops_to_exit): Likewise.
3940 (flow_dfs_compute_reverse_init): Likewise.
3941 (flow_dfs_compute_reverse_add_bb): Likewise.
3942 (flow_dfs_compute_reverse_execute): Likewise.
3943 (flow_dfs_compute_reverse_finish): Likewise.
3944 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
3945 (LABEL_P): Added definition.
3948 (BARRIER_P): Likewise.
3949 (JUMP_TABLE_DATA_P): Likewise.
3950 (INSN_DEAD_CODE_P): Likewise.
3951 * ssa.c: Replaced inclusions with ssa.h inclusion.
3952 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
3953 (rename_registers): Removed unnecessary variables.
3954 * ssa.h: Created by moving declarations from ssa.c and
3956 * timevar.def: Defined TV_DEAD_CODE_ELIM.
3957 * toplev.c: Added ssa.h inclusion.
3958 (dump_file_index): Added DFI_dce.
3959 (dump_file): Added "dce" entry.
3961 (f_options): Added dce entry.
3962 * invoke.texi: Document -fdce. Emphasize experimental status of
3966 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
3968 * cpperror.c (v_message): Split into _cpp_begin_message and
3969 v_message macro. All callers updated.
3970 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
3973 * cppfiles.c (cpp_syshdr_flags): New function.
3974 (read_include_file): Don't call cpp_output_tokens. Call
3976 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
3977 (cpp_reader_init): Don't initialize token_buffer. Call
3978 _cpp_init_internal_pragmas.
3979 (cpp_cleanup): Don't clear token_buffer.
3980 (cpp_start_read): Don't worry about output from -D processing.
3981 Don't call cpp_output_tokens.
3982 (cpp_finish): Don't dump macros here. Don't call
3984 * cppmacro.c (_cpp_dump_definition): Rename
3985 cpp_dump_definition. Write directly to a FILE *.
3986 (dump_funlike_macro): Delete.
3987 (dump_macro_args): New.
3989 * cpplex.c (TOKEN_LEN): Convert to inline function.
3990 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
3991 cpp_scan_line, _cpp_dump_list): Delete.
3992 (cpp_printf, cpp_output_list): New.
3993 (output_line_command): Don't worry about entering or leaving files.
3994 (cpp_scan_buffer): Just output each token as we hit it.
3995 (process_directive): Don't call cpp_output_tokens.
3996 (_cpp_glue_header_name): Don't use token_buffer.
3997 (output_token, dump_param_spelling): Write directly to a FILE *.
3999 * cpplib.c (pass_thru_directive, dump_macro_name,
4000 pragma_dispatch, do_pragma_gcc): Delete.
4001 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
4002 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
4004 (do_error, do_warning, pragma_dependency): Call
4005 _cpp_begin_message, then cpp_output_list.
4006 (cpp_register_pragma, cpp_register_pragma_space,
4007 _cpp_init_internal_pragmas): New.
4008 (do_pragma): Walk the pragmas table here.
4009 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
4010 do_pragma_dependency): Return void.
4011 (do_pragma_implementation): Moved to cppmain.c.
4013 * cpplib.h: Update prototypes.
4014 (struct cpp_reader): Remove printer, token_buffer,
4015 token_buffer_size, and limit. Add struct cb, and pragmas.
4016 (struct cpp_printer): Remove last_id and written.
4017 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
4018 CPP_ADJUST_WRITTEN): Delete.
4019 * cpphash.h: Update prototypes.
4020 (ufputs): New wrapper.
4022 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
4023 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
4024 (main): Set up callbacks. Register #pragma implementation.
4025 Dump macros from here.
4027 2000-08-01 Geoff Keating <geoffk@cygnus.com>
4029 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
4030 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
4031 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
4032 insns if they have a REG_MAYBE_DEAD note attached.
4033 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
4034 (rs6000_emit_load_toc_table): TOC loads may go dead.
4036 2000-08-01 Jim Wilson <wilson@cygnus.com>
4038 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
4039 type exists before using it. Use number of words as alignment
4041 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
4042 ia64_va_arg): Propagate ia64_function_args changes here.
4044 2000-08-01 Richard Henderson <rth@cygnus.com>
4046 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
4047 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4049 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
4051 From Joern Rennecke:
4052 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
4053 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
4054 unless TARGET_SH3E is set.
4055 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
4057 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
4058 (ashlsi3_std): New pattern.
4059 (ashlsi3 expander): Use it for TARGET_SH3.
4060 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
4062 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
4064 * loop.c (canonicalize_condition): Use destination, not source to
4065 determine SET's mode.
4067 2000-07-31 Mark Mitchell <mark@codesourcery.com>
4069 * flow.c (clear_log_links): Fix typo.
4071 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
4073 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
4074 on targets which need more than one insn for a compare/cbranch
4077 2000-07-31 Jim Wilson <wilson@cygnus.com>
4079 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
4080 when computing offset.
4082 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
4084 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
4086 2000-07-31 Geoff Keating <geoffk@cygnus.com>
4088 * flow.c (clear_log_links): Nuke global_live_at_start and
4089 global_live_at_end data, since if the log_links stuff is invalid
4090 so is global_live_at_*.
4092 2000-07-31 Richard Henderson <rth@cygnus.com>
4094 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
4096 2000-07-31 Jakub Jelinek <jakub@redhat.com>
4098 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
4099 (_cpp_get_token): Don't macro expand a just pasted token if it
4100 was pasted at no_expand_level.
4102 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
4104 * cppmacro.c (find_param, count_params, save_expansion):
4105 Permit 'defined' as a macro parameter name.
4107 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
4109 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
4110 xcpp to cpp throughout.
4111 (native): Remove unnecessary dependency on cpp.
4113 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
4114 tradcpp to tradcpp0.
4115 (.i spec): Add missing output-file spec to cc1 command line.
4116 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
4118 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
4120 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
4121 (implicit_decl_warning): New function.
4122 (implicitly_declare): Use it.
4123 * c-typeck.c (build_external_ref): Use implicit_decl_warning
4124 to complain about implicit decls of builtins.
4126 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
4127 based on pedantic && flag_isoc99, if not already set.
4128 * c-tree.h: Declare mesg_implicit_function_declaration.
4129 Prototype implicit_decl_warning.
4131 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
4133 * Makefile.in (ssa.o): Updated header files in dependences.
4134 * basic-block.h: Added compute_immediate_postdominators declaration.
4135 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
4137 * flow.c (compute_immediate_dominators): Updated comment.
4138 (compute_immediate_postdominators): Added definition.
4139 * rtl.h (HARD_REGISTER_P): Added definition.
4140 * ssa.c: Include additional header files.
4141 (assert): Added definition.
4142 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
4143 include select hard registers.
4144 (ssa_rename_to_insert): Likewise.
4145 (ssa_rename_from_initialize): Likewise.
4146 (ssa_rename_from_lookup): Likewise.
4147 (original_register): Likewise.
4148 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
4149 include select hard reigsters.
4150 (ssa_rename_from_traverse): Likewise.
4151 (ssa_rename_from_free): Likewise.
4152 (ssa_rename_from_print): Likewise.
4153 (ssa_rename_from_print_1): Likewise.
4154 (ssa_rename_from_hash_function): Likewise.
4155 (ssa_rename_from_equal): Likewise.
4156 (ssa_rename_from_delete): Likewise.
4157 (simplify_to_immediate_dominators): Removed in favor of
4158 flow.c:compute_immediate_dominators.
4159 (find_evaluations_1): Modified to work with hard registers.
4160 (insert_phi_node): Likewise.
4161 (insert_phi_nodes): Likewise.
4162 (struct rename_set_data): Updated prev_reg comment.
4163 (create_delayed_rename): Modified to work with hard registers.
4164 (RENAME_NO_RTX): Updated comment.
4165 (apply_delayed_renames): Modified to work with hard registers.
4166 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
4167 (rename_block): Updated to use revised ssa_rename_to interface.
4168 (rename_registers): Updated to use revised ssa_rename_to and
4169 ssa_rename_from interface.
4170 (convert_to_ssa): Revised to use compute_immediate_dominators and
4171 deal with hard registers.
4172 (make_regs_equivalent_over_bad_edges): Modified to work with hard
4173 registers. Added check for illegal unification of hard register.
4174 (make_equivalent_phi_alternatives_equivalent): Modified to work
4175 with hard registers.
4176 (compute_conservative_reg_partition): Likewise.
4177 (coalesce_if_unconflicting): Modified to work with hard registers
4178 and check for conflicting hard registers.
4179 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
4181 (rename_equivalent_regs_in_insn): Modified to work with hard
4183 (record_canonical_element_1): Added definition.
4184 (check_hard_regs_in_partition): Added definition.
4185 (convert_from_ssa): Added data structure deallocation and check
4186 for illegal hard register unification.
4187 (conflict_hard_regs_p): Added definition.
4188 * toplev.c (rest_of_compilation): Added comment.
4190 2000-07-31 Anthony Green <green@redhat.com>
4192 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
4194 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
4196 * builtins.c (expand_builtin_apply): Don't defer pop during
4199 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4201 * calls.c (combine_pending_stack_adjustment_and_call): Only use
4202 preferred_unit_stack_boundary when it is > 1.
4204 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
4206 * c-common.c (init_function_format_info): Add C99 format functions
4209 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
4210 void' or 'register void' as being the special case of 'void' alone
4211 in a parameter list.
4213 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
4214 discarding qualifiers into a plain warning.
4216 2000-07-31 Kazu Hirata <kazu@hxi.com>
4218 * combine.c: Fix formatting.
4220 * h8300.md: Fix formatting.
4222 * local-alloc.c: Fix formatting.
4224 * h8300.c (get_shift_alg): Remove the variable alg.
4225 (emit_a_shift): Rearrange code to improve readability.
4227 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
4229 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
4230 HImode on all architectures and a combination of HImode and SImode
4231 on H8/300H and H8/S.
4233 * h8300.c (split_adds_subs): Rearrange code for conciseness.
4235 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
4237 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
4240 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
4242 * recog.c (extract_insn): Set operand_mode according to
4243 operand if match_operand is VOIDmode.
4245 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
4247 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
4249 2000-07-31 Geoff Keating <geoffk@cygnus.com>
4251 * c-parse.in (extdefs): Call ggc_collect between external
4254 2000-07-30 Michael Hayes <mhayes@cygnus.com>
4255 Richard Henderson <rth@cygnus.com>
4257 * Makefile.in (OBJS): Add doloop.o.
4258 * doloop.c: New file.
4260 * final.c (insn_current_reference_address): Return 0 before final.
4261 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
4262 * jump.c (any_uncondjump_p): Likewise.
4263 * loop.c (indirect_jump_in_function): Make static.
4264 (strength_reduce): Call doloop_optimize.
4265 (insert_bct, instrument_loop_bct): Remove.
4266 * loop.h (doloop_optimize): Prototype.
4267 * recog.c (split_all_insns): Split all INSN_P.
4268 * toplev.c (flag_branch_on_count_reg): Default on.
4270 * config/c4x/c4x.c (c4x_optimization_options): Don't set
4271 flag_branch_on_count_reg.
4272 * config/i386/i386.c (override_options): Likewise.
4273 * config/rs6000/rs6000.c (optimization_options): Likewise.
4275 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
4277 (dbra_ge): Remove, as well as all it's splitters.
4279 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
4282 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
4283 (ia64_register_move_cost): Declare.
4284 * config/ia64/ia64.c (ar_lc_reg_operand): New.
4285 (struct ia64_frame_info): Add ar_size.
4286 (ia64_compute_frame_size): Set it.
4287 (save_restore_insns): Save and restore ar.lc.
4288 (ia64_register_move_cost): New, moved from header file. Handle
4289 application registers.
4290 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
4291 (emit_insn_group_barriers): Special case doloop_end_internal.
4292 (ia64_epilogue_uses): Mark ar.lc live at end.
4293 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
4294 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
4295 (FIRST_PSEUDO_REGISTER): Make room.
4296 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
4297 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
4298 (REG_ALLOC_ORDER): Update.
4299 (HARD_REGNO_MODE_OK): Update.
4300 (REGISTER_NAMES): Update.
4301 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
4302 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
4303 (REGNO_REG_CLASS): Update.
4304 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
4305 (REGISTER_MOVE_COST): Move out of line.
4306 (PREDICATE_CODES): Update.
4307 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
4308 (addsi3_plus1_alt, adddi3_plus1_alt): New.
4309 (shladd_elim splitter): Allow constants in the predicate.
4310 (doloop_end, doloop_end_internal): New.
4312 2000-07-30 Richard Henderson <rth@cygnus.com>
4314 * genattrtab.c (struct insn_def): Add lineno member.
4315 (struct insn_ent): Likewise.
4316 (struct attr_desc): Likewise.
4317 (struct delay_desc): Likewise.
4318 (struct function_unit_op): Likewise.
4319 (struct function_unit): Likewise.
4320 (check_attr_value): Use message_with_line.
4321 (check_defs): Likewise.
4322 (expand_units): Likewise.
4323 (check_attr_test): Take a lineno argument.
4324 (gen_attr): Likewise.
4325 (gen_insn): Likewise.
4326 (gen_delay): Likewise.
4327 (gen_unit): Likewise.
4328 (main): Give it to them.
4329 (convert_set_attr_alternative): Take an insn_def argument
4330 instead of num_alt and insn_index.
4331 (convert_set_attr): Likewise.
4332 (write_test_expr): Protect INSN_ADDRESSES load
4333 with INSN_ADDRESSES_SET_P.
4335 2000-07-30 Richard Henderson <rth@cygnus.com>
4337 * flow.c (init_propagate_block_info): Use pc_set.
4339 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
4341 * i386.md (*lea_general_[123]) New insns and splits.
4342 (addsi3 to lea splitter): Handle other modes too.
4343 (shlsi3 to lea splitter): Likewise.
4344 (addhi_1_lea, shlhi_1_lea): New patterns.
4345 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
4347 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
4349 * recog.c (general_operand, nonimmediate_operand): Accept
4350 any mode for VOIDmode CONSTANT_P operands.
4352 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
4354 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
4355 instead of replace_rtx.
4356 * recog.c (validate_replace_rtx_subexp): New function.
4357 * recog.h (validate_replace_rtx_subexp): Declare.
4359 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
4361 * combine.c (simplify_set, make_extraction, make_compound_operation
4362 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
4363 as force_to_mode argument.
4365 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
4367 * combine.c (if_then_else_cond): Be sure that mode fits in
4370 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
4372 * combine.c (record_promoted_value): Allow bitsize of mode
4373 to be equivalent to HOST_BITS_PER_WISE_INT.
4375 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
4377 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
4378 Do not call gen_mode_alignment when mode is BLKmode.
4380 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
4382 * loop.c (express_from_1): Fix call of simplify_gen_binary.
4384 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
4386 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
4387 VOIDmode implies both operands to be VOIDmode.
4388 (simplify_ternary_operation): Compute properly the mode of comparison.
4389 * combine.c (combine_simplify_rtx): Likewise.
4391 2000-07-25 Michael Hayes <mph@paradise.net.nz>
4393 * basic-block.h (struct loops): New field rc_order.
4394 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
4395 (flow_loops_free): Free rc_order.
4396 (flow_depth_first_order_compute): New parameter rc_order.
4397 (flow_loops_find): Allocate rc_order and swap usage with
4400 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4401 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4403 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
4404 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
4405 (nodb_call, return_from_epilogue): Likewise.
4406 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
4407 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
4408 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
4409 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
4410 (c4x_valid_type_attribute_p): Likewise.
4411 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
4412 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
4414 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4416 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
4417 and loadhi_big_constant if applicable.
4418 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
4419 and add new splitter.s
4421 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4423 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
4425 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4427 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
4429 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4431 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
4433 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4435 * config/c4x/libgcc.S (divqf3): Improve accuracy.
4437 2000-07-27 Mark Mitchell <mark@codesourcery.com>
4439 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
4440 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
4441 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
4442 (get_prev_bb_note): Likewise.
4443 (remove_scope_notes): Likewise.
4444 * flow.c (commit_one_edge_insertion): Likewise.
4445 (merge_blocks_nomove): Likewise.
4446 (verify_flow_info): Likewise.
4447 * gcse.c (insert_insn_end_bb): Likewise.
4448 * reg-stack.c (emit_swap_insn): Likewise.
4449 * ssa.c (first_insn_after_basic_block_note): New function.
4450 (insert_phi_node): Use it.
4451 (rename_block): Likewise.
4452 (eliminate_phi): Likewise.
4453 (make_regs_equivalent_over_bad_edges): Likewise.
4454 (make_equivalent_phi_alternatives_equivalent): Likewise.
4455 (for_each_successor_phi): Likewise.
4456 (convert_from_ssa): Modify phi-node deletion algorithm.
4458 2000-07-29 Andreas Jaeger <aj@suse.de>
4460 * configure.in (mips*-*-linux*): Use mips*el to check for little
4461 endian MIPS, add tmake_file.
4463 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
4464 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
4465 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
4467 2000-07-28 Richard Henderson <rth@cygnus.com>
4469 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
4470 Sign extend mode size before negating.
4472 2000-07-28 Richard Henderson <rth@cygnus.com>
4474 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
4476 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
4478 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
4479 (cse_insn): Likewise.
4480 (addr_affects_sp_p): Likewise.
4481 * expr.c (move_by_pieces): Likewise.
4482 (clear_by_pieces): Likewise.
4483 * gcse.c (oprs_unchanged_p): Likewise.
4484 * haifa-sched.c (sched_analyze_2): Likewise.
4485 * recog.c (offsettable_address_p): Likewise.
4486 * regclass.c (record_address_regs): Likewise.
4487 * reload.c (find_reusable_reload): Likewise.
4488 (push_reload): Likewise.
4489 (operands_match_p): Likewise.
4490 (decompose): Likewise.
4491 (find_reloads_address_1): Likewise.
4492 (find_inc_amount): Likewise.
4493 * reload1.c (elimination_effects): Likewise.
4494 * resource.c (mark_set_resources): Likewise.
4495 * flow.c (attempt_auto_inc): New function; mostly broken out
4497 (find_auto_inc): Split into two functions and enhanced to
4498 generate POST_MODIFY.
4499 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
4500 * rtl.h (count_all_occurrences): Declare.
4501 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
4503 * rtlanal.c (count_all_occurrences): New function.
4504 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
4505 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
4507 * config/ia64/ia64-protos.h (destination_operand): Declare.
4508 * config/ia64/ia64.c (destination_operand): New function.
4509 (ia64_print_operand): Handle POST_MODIFY.
4510 (rtx_needs_barrier): Likewise.
4511 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
4512 (HAVE_POST_MODIFY_REG): Define to 1.
4513 (MAX_REGS_PER_ADDRESS): Change to 2.
4514 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
4515 (LEGITIMATE_ADDRESS_REG): New helper macro.
4516 (LEGITIMATE_ADDRESS_DISP): Likewise.
4517 (PREDICATE_CODES): Add entry for destination_operand.
4518 * config/ia64/ia64.md (all mov patterns): Use destination_operand
4519 predicate for operand 0.
4521 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4523 * dwarf2out.c: Indent #error directive.
4525 * gbl-ctors.h: Fix typo in comment.
4526 (__do_global_ctors): Prototype.
4528 * gcse.c (record_one_set, pre_delete): Remove unused variables.
4530 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
4531 (print_operand): Initialize variable `t'.
4533 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
4535 * config/arm/arm.md ("call_value"): removed constraints.
4536 Constraints are ignored in expanders.
4537 (*call_value_reg): split =rf into various constraints.
4538 (*call_value_mem): same
4539 (*call_value_symbol): same
4540 (*sibcall_value_insn): same
4542 2000-07-28 Philipp Thomas <pthomas@suse.de>
4544 * install.texi (--enable-nls): Change the description of the NLS
4545 related configure options to match the current state.
4546 (--with-included-gettext): Likewise.
4547 (--enable-maintainer-mode): New description added.
4548 * extend.texi (-fstrict-prototype): Add missing '.'.
4550 2000-07-27 Jim Wilson <wilson@cygnus.com>
4552 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
4553 DECL_INITIAL (decl) == NULL_TREE.
4555 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
4557 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
4558 on insn-attr.h with it.
4559 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
4560 * insn-addr.h: New header.
4561 (insn_addresses_): Renamed from insn_addresses.
4562 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
4563 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
4564 INSN_ADDRESSES_NEW): New macros.
4565 * genattrtab.c (write_test_expr): Use new macros.
4566 * final.c (insn_addresses, init_insn_lengths): Likewise.
4567 (align_fuzz, shorten_branches): Likewise.
4568 (final): Likewise. Do not reject new insns if their addresses
4569 have been added to INSN_ADDRESSES.
4570 * config/arm/arm.c, config/avr/avr.c: Use new macros.
4571 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
4572 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
4573 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
4574 * config/sh/sh.c: Likewise.
4575 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
4577 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
4579 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
4581 * gcc.c (struct prefix_list): Add member priority.
4582 (enum path_prefix_priority): Declare.
4583 (add_prefix): Replace ``first'' with ``priority''. Append new
4584 entry but keep list in priority order.
4585 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
4586 PREFIX_PRIORITY_LAST to add_prefix.
4587 (process_command): Move include kludge - foo/stageN - to before
4590 2000-07-27 Jason Merrill <jason@redhat.com>
4592 * dwarf2out.c (gen_typedef_die): Abort if we get identical
4593 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
4595 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
4597 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
4598 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
4600 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
4602 * c-decl.c (finish_function): Don't treat 'main' specially unless
4603 flag_hosted. In C99 mode, return 0 from 'main' unless
4604 DEFAULT_MAIN_RETURN is otherwise defined.
4606 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
4607 parameters defaulting to int in an old-style function definition.
4609 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4611 * c-parse.in (string): For -Wtraditional, warn about string
4612 concatenation only once per line.
4614 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
4616 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
4617 for HI-UX/WE2 systems.
4619 2000-07-24 Bruce Korb <bkorb@gnu.org>
4621 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
4622 defining the __xxx_TYPE__ macros.
4623 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
4624 * fixincl/fixlib.h: don't need to include "tm.h" anymore
4625 * fixincl/inclhack.def(type_map): now obsolete
4627 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
4629 * cpp.texi: Append a trailing full-stop to xrefs where needed.
4631 2000-07-26 Dave Pitts <dpitts@cozx.com>
4633 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
4635 (mvs_hash_alias): New function.
4636 (mvs_add_alias): Change argument spacing.
4637 (mvs_need_alias): Change aliasing criteria. Added documentation.
4638 (mvs_get_alias): Change to use hashed name. The hashed name prevents
4639 CSECT name collisions.
4640 (mvs_check_alias): Likewise.
4641 (handle_pragma): Change documentation.
4642 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
4643 mode from SImode to DImode.
4644 (iorhi3): Changed LTORG size for insn.
4646 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
4648 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
4649 mem if the address is a mode_dependent_address_p.
4651 2000-07-26 Kazu Hirata <kazu@hxi.com>
4653 * h8300.c (print_operand): Print ":8" when the 'R' operand is
4654 suitable for 8-bit absolute.
4655 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
4656 (OK_FOR_U): Add a case for the 8-bit constant address on the
4659 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
4661 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
4662 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
4663 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
4664 lack of implemented alignment.
4666 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
4668 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
4669 cross-compiling between 64-bit and 32-bit machines.
4671 2000-07-27 Richard Henderson <rth@cygnus.com>
4673 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
4674 (movhicc_astep, movhi_internal_astep): New.
4675 (movsicc_astep, movsi_internal_astep): New.
4676 (movdicc_astep, movdi_internal_astep): New.
4677 (movsfcc_astep, movsf_internal_astep): New.
4678 (movdfcc_astep, movdf_internal_astep): New.
4679 (movxfcc_astep, movxf_internal_astep): New.
4680 (cmovdi_internal_astep, cmovsi_internal_astep): New.
4681 Unify the cmov[ds]i splitters.
4683 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
4685 * real.c (asctoeg): Rename `error' label to unexpected_char_error
4687 2000-07-26 Nick Clifton <nickc@cygnus.com>
4689 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
4690 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
4692 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
4693 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
4695 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
4697 * c-decl.c (finish_enum): Convert enumerations that fit in an
4699 (build_enumerator): In pedantic mode, cast to `int' those that
4702 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
4704 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
4706 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4708 * sh.md (cmpgtdi_t): Must be split.
4709 (cmpgtdi_t+1): New splitter.
4711 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
4713 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
4714 warnings for indented directives even if we are skipping.
4716 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
4718 * invoke.texi (strict-prototypes): Remove.
4719 * extend.texi (Deprecated Features): Add strict-prototypes.
4720 (Backwards Compatibility): New node.
4722 2000-07-25 Jakub Jelinek <jakub@redhat.com>
4724 * config/i386/i386.md (andsi_1+1): Allow HImode.
4725 (andsi_1+2): Require q_regs_operand.
4727 2000-07-25 Jakub Jelinek <jakub@redhat.com>
4729 * config/i386/i386.md (call_pop): Check operands[0],
4730 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
4732 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
4733 (call_value): Likewise.
4735 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
4737 * toplev.c (pipe_closed): Delete.
4738 (crash_signal): New. Generate ICE for a fatal signal.
4739 (float_signal): Call crash_signal outside a float-handler
4741 (main): Install crash_signal as handler for core-dumping signals.
4743 2000-07-25 David Edelsohn <edelsohn@gnu.org>
4745 * rs6000.c (print_operand, case 'T'): New case.
4747 * rs6000.md (call_indirect_aix32): Convert to expander of
4748 scheduled instructions.
4749 (call_indirect_aix64): Likewise.
4750 (call_value_indirect_aix{32,64}): Likewise.
4751 (call, call_value): Invoke expanders for AIX. Fall through to
4753 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
4754 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
4755 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
4756 only "g" constraint.
4757 (call_nonlocal_aix64): Likewise.
4758 (call_value_nonlocal_aix{32,64}): Likewise.
4759 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
4761 (call_value_nonlocal_sysv): New pattern.
4762 (indirect_jump{si,di}): Use new 'T' modifier.
4763 (tablejump{si,di} matchers): Likewise.
4764 (return_internal_{si,di}): Likewise.
4765 (return_eh_{si,di}): Likewise.
4767 2000-07-24 Richard Henderson <rth@cygnus.com>
4769 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
4770 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4771 * config/ia64/ia64.md (movdi_internal): Use it.
4773 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
4775 * cppexp.c: Warn about unary + if -Wtraditional.
4776 * cpplex.c (lex_line): Always set BOL on the first token of a line.
4778 2000-07-24 Michael Meissner <meissner@redhat.com>
4780 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
4783 2000-07-24 Nick Clifton <nickc@cygnus.com>
4785 * config/arm/arm.c (emit_multi_reg_push): Generate a
4786 REG_FRAME_RELEATED_NOTE that is compatable with the code in
4787 dwarf2out_debug_frame_expr.
4789 2000-07-24 Jason Merrill <jason@redhat.com>
4791 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
4792 UNALIGNED_INT_ASM_OP.
4793 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
4794 a location expression.
4795 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
4796 assume indirect access if we're saving the CFA address exactly.
4798 * Makefile.in (bootstrap): Move -BstageN/ to the end.
4800 2000-07-24 Jakub Jelinek <jakub@redhat.com>
4802 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
4805 2000-07-24 Michael Meissner <meissner@redhat.com>
4807 * invoke.texi (D30V Options): Add d30v options.
4809 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
4811 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
4812 needed by our gcse pass anymore.
4813 (free_pre_mem): Corresponding changes.
4814 (compute_pre_data): Do not call compute_transpout anymore.
4816 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
4817 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
4820 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
4821 (compute_pre_data): Do it here instead.
4823 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
4825 (pre_delete): Corresponding changes.
4827 2000-07-23 Mark Mitchell <mark@codesourcery.com>
4829 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
4830 to figure out whether or not a variable has already been emitted.
4832 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
4834 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
4835 instead of gen_call.
4837 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
4839 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
4841 2000-07-23 Kazu Hirata <kazu@hxi.com>
4843 * h8300.c: Fix formatting.
4845 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
4847 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
4848 for `long' switch expression into a plain warning.
4850 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
4851 (yylex): Don't pedwarn for "inline" in C99 mode.
4853 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
4855 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
4856 ggc_alloc): Likewise.
4857 * bb-reorder.c (dump_scope_forest_1): Likewise.
4859 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
4861 * reload.c (find_reloads_toplev): Add new parameter
4863 (find_reloads): Add new parameter to find_reloads_toplev calls.
4865 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
4867 * collect2.c (main): Typo fixed.
4868 * diagnostic.c: Typo fixed.
4869 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
4870 * eh-common.h: Typo fixed.
4871 * emit-rtl.c (start_sequence): Typo fixed.
4872 * flow.c (find_label_refs): Typo fixed.
4873 (calculate_global_regs_live): Typo fixed.
4874 (mark_regno_cond_dead): Typo fixed.
4875 (create_edge_list): Typos fixed.
4876 (verify_edge_list): Typo fixed.
4877 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
4878 * loop.c (strength_reduce): Typo in function name fixed.
4879 * rtl.h: Added comments. Typo in function name fixed.
4880 * rtlanal.c: Typo in function name fixed.
4881 (insn_dependant_p): Rename to ...
4882 (insn_dependent_p): ... this.
4883 (computed_jumo_p): Typo fixed.
4885 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4887 * system.h (__FUNCTION__): Wrap definition in #ifndef.
4889 2000-07-21 David Edelsohn <edelsohn@gnu.org>
4891 * rs6000.h (SIZE_TYPE): Define.
4893 2000-07-21 Mark Mitchell <mark@codesourcery.com>
4895 * ssa.c (rename_insn_1): Don't rename registers that are
4898 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
4900 * diagnostic.c (trim_filename, fancy_abort): Moved here from
4902 (fatal_function, set_fatal_function): Removed.
4903 (fatal): Don't prepare for or call the fatal_function.
4904 (diagnostic_lock, error_recursion): New.
4905 (diagnostic_for_decl, report_diagnostic): Guard against
4906 re-entering the error reporting routines.
4907 (fancy_abort): Assume function is not NULL.
4909 * errors.c (fancy_abort): New. Assume function is not NULL.
4910 * tradcpp.c (fancy_abort): Assume function is not NULL.
4912 * system.h: Provide default definition of __FUNCTION__.
4913 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
4914 Always use __FUNCTION__ in definition of abort.
4916 * varray.h: Likewise.
4917 * toplev.h: Likewise. Don't prototype set_fatal_function.
4919 2000-07-20 Geoff Keating <geoffk@cygnus.com>
4921 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
4923 * glimits.h: Don't do #if defined for ARCH_PPC.
4925 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
4926 constants of size no larger than a pointer should go in the TOC.
4927 Add 'MODE' parameter.
4928 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
4929 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
4930 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
4931 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
4932 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
4933 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
4934 (rs6000_legitimize_address): Likewise.
4935 (rs6000_emit_move): Likewise.
4936 (rs6000_select_rtx_section): Likewise.
4937 (output_toc): Deal properly with outputting small constants like
4938 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
4939 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
4940 MODE parameter. Put small constants in the TOC.
4942 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
4944 (rs6000_emit_move): When reload calls us with an illegitimate
4945 address, exit early. Move the change_address calls to one place
4946 at the end of the routine. Merge the SImode and DImode expanders.
4947 When called by reload to put an integer into a FP register, force
4950 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
4952 (rs6000_hash_constant): Hash mode too.
4953 (toc_hash_function): Allow for key_mode.
4954 (toc_hash_eq): Structures are different if key_mode differs.
4955 (output_toc): Add 'mode' parameter. Save key_mode.
4956 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
4957 Pass 'mode' parameter.
4958 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
4960 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
4961 for vtable references.
4963 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
4964 choice, don't put integer values in FP regs.
4966 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
4968 * flow.c (verify_flow_info): Revamp code to verify that the
4969 head and end of each basic block are in the insn chain.
4971 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
4973 * gcse.c (record_one_set): Prepend instead of append onto
4974 reg_set_table, making it O(n) instead O(n^2).
4975 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
4976 Use a queue instead of a stack as worklist.
4978 2000-07-20 Kazu Hirata <kazu@hxi.com>
4980 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
4981 * h8300.h (OK_FOR_T): New.
4982 (EXTRA_CONSTRAINT): Support OK_FOR_T.
4983 * h8300.md: Use inc/dec.[wl] for increment/decrement
4984 by 1 and 2 in HI and SI modes.
4986 2000-07-20 Jim Wilson <wilson@cygnus.com>
4988 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
4989 larger than 14 bits.
4991 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
4993 * cppmacro.c (CAN_PASTE_AFTER): New macro.
4994 (count_params): Don't set GNU_REST_ARGS on anything.
4995 (save_expansion): Set PASTE_LEFT only on tokens for which
4996 CAN_PASTE_AFTER is true, or which are named operators.
4998 * cpplex.c (parse_args): Distinguish between a rest argument
4999 given one empty argument, and a rest argument given zero arguments.
5000 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
5001 deletion of previous token based on that.
5002 (get_raw_token): Flatten some control structure.
5004 * cpplib.h (CPP_LAST_EQ): Correct.
5005 (VOID_REST): New token flag.
5006 (GNU_REST_ARGS): Delete.
5008 * tradcpp.c (main): Don't munge -D options.
5009 (make_definition): Bring -D handling in line with cpplib.
5010 (do_define): Strip all leading whitespace from macro definitions.
5012 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
5014 * Makefile.in (tradcpp): Depend on intl.o and version.o.
5016 2000-07-20 Bruce Korb <bkorb@gnu.org>
5018 * fixincl/check.tpl: strip the platform specific types before testing
5019 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
5020 * fixincl/fixincl.tpl: use platform specific types
5021 * fixincl/fixlib.h: include the platform specific types
5022 * fixincl/inclhack.def(gnu_types): don't supply the types
5023 * fixincl/fixincl.x: regen
5025 2000-07-19 Jim Wilson <wilson@cygnus.com>
5027 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
5030 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
5032 * tradcpp.c (rescan): Do not recognize directives when the #
5035 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
5037 Implement C++ named operators.
5039 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
5040 of operators allowed in #if and having an _EQ variant. Add
5041 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
5042 (cpp_token flags): Add NAMED_OP.
5043 (enum node_type): Add T_OPERATOR.
5044 (struct cpp_hashnode): Add code slot to value union.
5045 * cpphash.h (spec_nodes): Remove n_defined.
5047 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
5048 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
5049 (is_macro_disabled): Tweak error messages.
5051 * cpplib.c (get_define_node): Disallow all named operators as
5052 macro names. Tweak error messages.
5053 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
5055 * cppinit.c (builtin_array): Add entries for the named operators.
5056 * cppexp.c (lex): Check for CPP_DEFINED token.
5057 (priority table): Add entries for CPP_MIN and CPP_MAX.
5058 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
5060 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
5062 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
5063 larger than the array of cuids.
5064 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
5067 2000-07-19 Bruce Korb <bkorb@gnu.org>
5069 * fixinc/fixincl.c: Convert to using a table of environment variables
5070 and activate the auto-edit marker on the fixed output files.
5071 * fixinc/fixlib.h: Define the environment table
5072 * fixinc/fixincl.sh: export the ${INPUT} dir
5073 * fixinc/check.tpl: likewise
5075 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
5077 * gcc.c (.h spec): Fix typo.
5079 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
5081 * Makefile.in: Fix tradcif.c path.
5083 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
5085 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
5088 * cpphash.h (TOKEN_NAME): New macro.
5089 (_cpp_spell_operator): Deleted.
5090 (token_spellings): Now _cpp_token_spellings.
5092 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
5093 * cpplex.c: Use OP and TK macros when expanding the
5094 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
5095 store the stringification of the enumeration name (CPP_CHAR,
5096 etc.) in the name slot of token_spellings.
5097 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
5098 token_spellings directly.
5099 * cpplib.c: Use TOKEN_SPELL.
5101 * cpplex.c (_cpp_push_token): If the token being pushed back
5102 is the previous token in this context, just subtract one from
5104 * cppmacro.c (save_expansion): Clear aux field when storing a
5107 2000-07-18 Jakub Jelinek <jakub@redhat.com>
5109 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
5110 buffer, provided it is not NULL.
5112 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
5114 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
5115 case of invalid volatile re-declaration.
5117 2000-07-18 Jakub Jelinek <jakub@redhat.com>
5119 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
5120 (expand_call): Adjust caller.
5122 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
5124 * diagnostic.h (report_diagnostic): Change prototype.
5126 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
5127 diagnostic_for_decl): Change prototype.
5128 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
5129 error, warning, error_with_file_and_line,
5130 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
5131 Adjust call to report_diagnostic, diagnostic_for_decl.
5132 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
5133 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
5135 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
5136 varaible argument list.
5138 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
5140 * cpphash.c: Don't include hashtab.h. Most macro-handling code
5141 moved to cppmacro.c.
5142 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
5143 dump_hash_helper): Delete.
5144 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
5145 cpp_forall_identifiers): New. Implement specialized version of
5146 Vlad's expandable hash table.
5147 (cpp_lookup): Use new functions.
5148 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
5150 * cppmacro.c: New file.
5151 * cppinit.c (dump_macros_helper): New.
5152 (cpp_finish): Iterate over the identifier table directly.
5153 * cpplex.c (parse_name): Calculate the hash of the identifier
5154 while we scan it. Use _cpp_lookup_with_hash when we can.
5156 * cpphash.h: Update prototypes.
5157 (xcnewvec, HASHSTEP): New helper macros.
5158 * cpplib.h: Update prototypes.
5159 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
5160 (cppmacro.o): New rule.
5161 (cpphash.o): Update deps.
5163 * cppmain.c: Do not set pfile->printer if no_output is on.
5165 2000-07-15 Neil Booth <neilb@earthling.net>
5167 * cpplib.c: Change all directive-handler functions to return
5169 * cpphash.h: Update typedefs.
5171 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
5173 * configure: Regenerate.
5175 * extend.texi (Extended Asm): Mention that a memory clobber
5176 does not count as a side-effect.
5178 * unroll.c (copy_loop_body): Fix one instance of using host
5179 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
5182 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
5184 2000-07-17 Richard Henderson <rth@cygnus.com>
5186 * config/ia64/ia64.md (movdi): Split out load address code.
5187 New post-reload splitter for symbolic operands.
5188 (movdi_internal): Abort if we didn't split symbolic operands
5189 when we should have.
5190 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
5191 (ia64_reorg): Split insns when not optimizing.
5192 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
5194 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
5196 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
5197 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
5199 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
5201 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
5203 2000-07-17 Jason Merrill <jason@redhat.com>
5205 * Makefile.in (clean): Remove libgcc directory.
5207 * configure.in (-Wno-long-long check): Use higher-level macros.
5209 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
5211 * simplify-rtx.c (simplify_binary_operation): Recognize
5212 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
5213 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
5214 a CONST_INT, it will always be zero.
5216 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
5218 * loop.c (check_dbra_loop) : Return if more than one condition is
5219 present to control the loop.
5221 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
5223 * mips.c (mips_expand_prologue): Don't calculate the last argument
5224 register unless we need it. When we are calculating this, make
5225 sure FUNCTION_ARG is giving us a REG.
5227 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5229 * flow.c (libcall_dead_p): Use single_set to verify the insn
5230 has only one set and get for analysis.
5231 (propagate_one_insn): Don't pass the PATTERN of the insn.
5233 2000-07-17 Mark Klein <mklein@dis.com>
5235 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
5237 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5239 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
5240 * configure.in (TARGET_GETGROUPS_T): Evaluate.
5241 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
5242 of second argument of getgroups.
5243 * configure, config.in: Rebuilt.
5245 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
5247 * simplify-rtx.c (simplify_relational_operation): Two signed
5248 values with equal high words are less/greater than each other if
5249 their low words are less/greater when considered as unsigned.
5251 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
5253 * configure.in (vax-*-openbsd): Change to new style configuration,
5254 add collect2/float_format information.
5255 * configure: Rebuilt.
5256 * config/vax/openbsd1.h: New.
5257 * config/vax/openbsd.h: New.
5258 * config/vax/t-openbsd: New.
5260 2000-07-17 Chip Salzenberg <chip@valinux.com>
5262 * c-common.c (shorten_compare): Quiet warnings about unsigned
5263 comparisons with zero when they occur in a system header.
5265 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
5267 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
5268 update to describe current practice.
5270 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
5272 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
5273 references to C9X. Change references to -fstd and -flang-isoc9x
5276 * c-common.c (scan_char_table): Allow "z" length modifiers on
5278 (check_format_info): Use TYPE_DOMAIN on the type matched against
5279 for "z" formats, to retrieve the language size_t rather than the
5282 * c-common.c (check_format_info): Do not make a pedantic objection
5283 to the 'L' length modifier if used with a floating point type
5286 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
5287 constants in C99 mode.
5289 2000-07-17 Kazu Hirata <kazu@hxi.com>
5291 * h8300.md: Fix the format of mac.
5292 (movsi_h8300hs): Output a tab after stmac instead of a space.
5294 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
5295 profitable adds/subs sequences.
5297 * fold-const.c: Fix comment typos.
5299 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
5301 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
5303 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5305 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
5307 2000-07-16 Neil Booth <NeilB@earthling.net>
5309 * cpplex.c: Update comments.
5310 * README.Portability: Small update.
5312 2000-07-16 Neil Booth <NeilB@earthling.net>
5314 * README.Portability: Small update.
5316 2000-07-15 Richard Henderson <rth@cygnus.com>
5318 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
5319 * config/ia64/ia64.c (ia64_move_ok): New function.
5320 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
5321 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
5323 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
5325 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
5326 immediately following a paste operator.
5327 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
5328 (cpp_reader_init): Call it, if HOST_EBCDIC.
5329 (cpp_handle_options): Do not sort option list here.
5330 (handle_option): Rename to cpp_handle_option and export.
5331 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
5332 _cpp_get_token directly.
5333 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
5334 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
5335 * cpplib.h: Prototype cpp_handle_option. Update prototype of
5338 2000-07-15 Richard Henderson <rth@cygnus.com>
5340 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
5341 cast around an expression. Tidy other unsigned tests.
5343 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
5345 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
5346 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
5347 (v_message_with_decl): Rename to ...
5348 (format_with_decl): ... this. Tweak
5349 (diagnostic_for_decl): New function.
5350 (fatal_io_error): Use verbatim in lieu of notice.
5351 (announce_function): Use verbatim.
5352 (default_print_error_function): Likewise.
5353 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
5356 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5358 * mips.c (function_arg_pass_by_reference): Don't do automatic
5359 aggregate initialization.
5360 (machine_dependent_reorg): Initialize variable `mode'.
5362 * mips.md (absdi2): Change variable `regno1' to unsigned int.
5363 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
5364 conflicts with sys/param.h macro of the same name.
5365 (reload_outdi): Likewise.
5367 2000-07-15 Michael Meissner <meissner@redhat.com>
5369 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
5370 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
5371 create a new node instead.
5373 2000-07-15 Neil Booth <NeilB@earthling.net>
5375 * README.Portability: Correct example about calling a function
5376 through a pointer to function. Format wide paragraphs.
5378 2000-07-15 Michael Meissner <meissner@redhat.com>
5380 * README.Portability: Update integer suffixes and function
5383 2000-07-15 Neil Booth <NeilB@earthling.net>
5385 * README.Portability: Small update.
5387 2000-07-15 Neil Booth <NeilB@earthling.net>
5389 * README.Portability: New file.
5391 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
5393 * INSTALL: Give special instructions for building GCC on Irix 6.
5394 * config/mips/x-iris6 (CC): Don't set it.
5397 2000-07-14 Jason Merrill <jason@redhat.com>
5399 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
5400 register in the stack and later in another register, use the new
5403 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
5405 * config/mips/mips.md: (absdi2): Handle sign_extend for
5408 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
5410 * cpplib.c (do_pragma_dependency): Tidy warning messages.
5412 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
5414 * .cvsignore: Correct typo.
5416 2000-07-13 Mark Mitchell <mark@codesourcery.com>
5418 * .cvsignore: Add generated YACC files.
5419 * objc/.cvsignore: New file.
5421 2000-07-14 Neil Booth <NeilB@earthling.net>
5423 * cpplex.c (adjust_column): New funcion.
5424 (skip_whitespace): Use it.
5425 (skip_block_comment): Use it, and warn about /*/* with
5428 2000-07-14 Neil Booth <NeilB@earthling.net>
5430 * cpphash.c (struct macro_info): Add new members.
5431 (_cpp_free_definition): Delete the macro directly.
5432 (count_params): Return void, with first token of
5433 expansion in struct macro_info on success.
5434 (parse_define): Return int. Hoist syntax checking from
5435 save_macro_expansion. Leave call to save_expansion to
5436 _cpp_create_definition.
5437 (alloc_macro): Needs just 2 arguments.
5438 (free_macro): Delete.
5439 (save_expansion): Don't perform syntax check.
5440 (_cpp_create_definition): Call save_expansion.
5442 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5444 * genrecog.c (write_header): Split long string.
5446 * cpphash.c (macro_info): Don't use the `signed' keyword.
5448 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
5450 2000-07-13 Jakub Jelinek <jakub@redhat.com>
5452 * calls.c (stored_args_map): New variable.
5453 (check_sibcall_argument_overlap_1): New.
5454 (check_sibcall_argument_overlap): New.
5455 (expand_call): Initialize stored_args_map.
5456 Call check_sibcall_argument_overlap.
5458 2000-07-13 Bruce Korb <bkorb@gnu.org>
5460 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
5461 (emit_gnu_type): utility procedure for gnu_type_fix
5462 (gnu_type_fix): implement various pre-processor guards around
5463 standard types so these types can be defined over and over
5464 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
5465 types alluded to above will have GNU-compliant base types
5466 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
5467 * fixinc/inclhack.def: add test_text entries and utilize the new
5468 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
5469 * fixinc/fixincl.x: regenerate
5471 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
5473 * diagnostic.c (vline_wrapper_message_with_location,
5474 v_message_with_file_and_line, v_error_with_file_and_file,
5475 v_error_for_asm, v_warning_for_asm, vfatal,
5476 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
5477 vsorry, verror, vwarning, vpedwarn): Remove.
5478 (diagnostic_for_asm): New function.
5479 (pedwarn, error, warning, pedwarn_with_file_and_line,
5480 error_with_file_and_line, warning_with_file_and_line, sorry,
5481 error_for_asm, warning_for_asm, fatal): Reimplement.
5482 (finish_diagnostic): Clear diagnostic info as well.
5484 2000-07-13 Neil Booth <NeilB@earthling.net>
5486 * c-common.h (flag_digraphs): New.
5487 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
5488 * c-lex.c (yylex): Use flag_digraphs to decide whether to
5491 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
5493 * gcc.c (do_spec_1): Add new %B operator.
5494 (set_input): Prepare for %B.
5496 (link_command_spec): Move up with the other tm.h-
5497 overrideable specs. Factor out the portion conditional on
5498 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
5499 (struct compiler): Just have a single spec string. All users
5501 (default_compilers): Remove unnecessary braces.
5502 (static_specs): Update.
5504 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
5506 (C and assembly specs): Use the new named specs, as appropriate.
5508 * objc/lang-specs.h: Use the new named specs.
5509 Remove unnecessary braces.
5511 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
5513 * gcc.c (execute): If a subprocess gets a fatal signal, report
5514 strsignal() of the signal number, and ask for a bug report.
5515 Do not do this for SIGPIPE if there's already been an error.
5517 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
5520 * tradcif.c: Remove.
5522 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
5524 * final.c (profile_function): Do not emit profile counters in
5525 the data section, if NO_PROFILE_COUNTERS is defined.
5526 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
5529 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
5530 (FUNCTION_PROFILER): Just emit a call to mcount.
5532 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
5534 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
5536 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
5537 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
5538 traditional, lang_chill, or lang_fortran.
5540 * cppfiles.c: #undef strcmp to suppress warning about macros
5541 used without arguments.
5542 (_cpp_execute_include): Use f, not fname, in "No include path"
5544 (_cpp_pop_file_buffer): New function.
5545 * cpplib.c: Don't include <sys/mman.h>.
5546 (cpp_push_buffer): Set line_base and lineno in new buffer.
5547 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
5549 * cpplex.c: Move all prototypes and structure declarations to the
5550 top of the file. Properly parenthesise some macro arguments.
5551 (cpp_scan_line): New function.
5552 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
5553 don't need to walk up the stack counting.
5555 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5557 * c-common.c (combine_strings): Emit a pedantic warning when a
5558 string length is greater than the minimum ANSI C is required
5561 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
5563 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
5564 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
5566 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5568 * c-decl.c (define_label): Warn about identifier conflicts with
5569 labels in traditional C.
5571 * c-parse.in (unop +): Warn about the unary plus operator for
5574 * c-typeck.c (store_init_value): Warn about automatic aggregate
5575 initialization for traditional C.
5577 * invoke.texi (-Wtraditional): Document new warnings.
5579 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
5581 * Makefile.in (c-errors.o): Fix thinko in dependency.
5583 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
5585 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
5586 -traditional, -ftraditional, or -traditional-cpp was given.
5587 Do not pass -traditional to the preprocessor.
5588 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
5589 preprocessor does it automatically.
5590 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
5592 * ch/lang-specs.h: Always use tradcpp. Do not pass
5593 -traditional, -trigraphs, or -pedantic to the preprocessor.
5594 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
5597 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
5599 * cppexp.c (LOGICAL): Delete macro.
5600 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
5603 * cpphash.c (HASHSIZE): Increase to 4096.
5604 (struct hashdummy): Add hash field.
5605 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
5606 the string values using memcmp.
5607 (cpp_lookup): Set dummy.hash.
5609 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
5611 * configure.in (m88k-openbsd): Express configuration using new fragment
5613 * configure: Rebuilt.
5614 * m88k/aout-dbx.h: New.
5615 * m88k/openbsd.h: New.
5616 * m88k/xm-openbsd.h: New.
5618 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5620 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
5622 2000-07-12 Richard Henderson <rth@cygnus.com>
5624 * reload.c (push_secondary_reload): Make sure to add the new
5625 reload at the end, after acquiring secondary memory.
5627 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5629 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
5631 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
5632 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
5634 * c-parse.in (stmt): Delete unused variables.
5636 * convert.c (convert_to_vector): Likewise.
5638 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
5640 * tree.c (finish_vector_type): Prototype.
5642 2000-07-12 Bruce Korb <bkorb@gnu.org>
5644 * fixinc/fixfixes.c: use xmalloc
5645 * fixinc/fixincl.c(initialize): set program name for xmalloc
5646 * fixinc/fixlib.c(must_malloc): obsolete
5647 (is_cxx_header): no longer used - disabled
5648 (skip_quote): inserted and disabled for future use
5649 * fixinc/fixlib.h: reflects above
5650 * fixinc/fixtests.c: removed dinkleberries
5652 2000-07-12 Neil Booth <NeilB@earthling.net>
5654 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
5655 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
5657 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
5658 struct toklist_dummy): New.
5659 (cpp_free_definition): Free macros with free_macro.
5660 (count_params): Don't save paramter spellings. Save macro
5661 information in a struct macro_info.
5662 (parse_define): Don't allocate a token list.
5663 (save_expansion): Allocate the macro's token list, and
5664 save parameter spellings if necessary. Use TOKEN_SPELL.
5665 (cpp_create_definition): Make list const.
5667 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
5669 * c-typeck.c (pedwarn_c99): Move to
5670 * c-errors.c: ... Here.
5671 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
5672 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
5673 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
5674 (c-errors.o): List dependency.
5676 2000-07-12 Mark Mitchell <mark@codesourcery.com>
5678 * c-parse.c: Remove.
5679 * c-parse.h: Likewise.
5680 * c-parse.y: Likewise.
5681 * objc/objc-parse.c: Likewise.
5682 * objc/objc-pasre.y: Likewise.
5684 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
5686 * gcc.texi: Fix minor typos
5687 * extend.texi: Fix minor typos
5689 2000-07-11 Marc Espie <espie@openbsd.org>
5691 * collect2.c (main): Recognize .lo as object files.
5693 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5695 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
5698 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
5699 with MAP_ANONYMOUS and MAP_ANON.
5700 * configure, config.in: Rebuilt.
5702 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
5704 * diagnostic.c (save_output_state): Remove.
5705 (restore_output_state): Likewise.
5706 (clear_text_info): New function.
5707 (clear_diagnostic_info): Likewise.
5708 (output_text_length, is_starting_newline, output_prefix,
5709 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
5710 prefixing_policy, output_buffer_ptr_to_format_args): New macros
5711 (set_real_maximum_length, output_set_maximum_length,
5712 output_set_prefix, output_get_prefix, output_set_maximum_length,
5713 output_destroy_prefix, init_output_buffer,
5714 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
5715 output_add_newline, output_add_character, output_add_space,
5716 output_append_r, output_append, wrap_text, output_format,
5717 output_do_printf, output_printf, output_do_verbatim,
5718 output_verbatim, verbatim): Use them.
5719 (output_clear): Split into cleat_text_info and
5720 clear_diagnostic_info.
5721 (struct output_state): Move to...
5723 * diagnostic.h: ...Here
5724 (struct output_buffer): Adjust.
5726 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
5728 * cpplex.c (parse_name): No longer inline (premature optimization).
5729 (do_pop_context): Fold into pop_context.
5730 (pop_context): Returns int.
5731 (lex_next): Hoist test for end of directive into pop_context.
5732 (push_macro_context): Returns int; takes just reader and token.
5733 Hoist test for excessive nesting to caller.
5734 (push_arg_context): Returns void; takes just reader and token.
5735 Do not call stringify_arg or get_raw_token.
5736 (get_raw_token): Convert tail recursion through push_arg_context
5737 to a loop at this level. Call stringify_arg here if appropriate.
5738 (maybe_paste_with_next): Convert tail recursion to a while loop.
5739 Hoist test of paste_level to caller.
5741 (stringify_arg): Push arg context at beginning.
5742 (cpp_get_token): Split out core into _cpp_get_token. Call
5743 process_directive here. Throw away CPP_PLACEMARKER tokens.
5744 (_cpp_get_token): Convert tail recursion through
5745 push_macro_context to a loop at this level.
5746 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
5747 _cpp_get_raw_token): Use _cpp_get_token.
5748 (_cpp_skip_rest_of_line): Drop the context stack directly; do
5749 not call pop_context.
5750 (_cpp_run_directive): Call lex_next directly.
5752 * cpphash.h: Prototype _cpp_get_token.
5753 * cppexp.c (lex): Use it.
5754 * cpphash.c (parse_define): Use it.
5755 * cpplib.c (get_define_node, do_undef, parse_include,
5756 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
5757 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
5758 parse_ifdef, validate_else): Use it.
5759 (cpp_push_buffer): Tweak error message; abort if anyone tries
5760 to push a buffer while macro expansions are stacked.
5762 2000-07-11 Donn Terry <donnte@microsoft.com>
5764 * cpplex.c (free_macro_args, save_token): Cast arg of free
5765 and/or xrealloc to PTR.
5766 (_cpp_init_input_buffer): Clear all fields of the base context.
5768 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
5770 * gensupport.c (process_rtx): Make rtl checking stop
5771 complaining about the define_insn while it is being
5772 converted from a define_insn_and_split.
5774 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
5776 * config/mips/mips.c (simple_memory_operand): Access the
5777 INTVAL of the address, not it's containing MEM.
5779 2000-07-11 Bruce Korb <bkorb@gnu.org>
5781 * fixinc/fixtests.c(double_slash): obsolete
5782 (else_endif_label): likewise
5783 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
5784 (libc1_ifdefd_memx): correct initial comment
5785 and omit the #if/#endif pair from the memxxx declarations
5786 * fixinc/fixincl.x: regen
5788 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5790 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
5792 2000-07-11 Neil Booth <NeilB@earthling.net>
5796 2000-07-11 Neil Booth <NeilB@earthling.net>
5798 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
5799 (handle_option): Set digraphs according to standard.
5800 Merge OPT_lang_c89 handler with OPT_std_c89.
5802 * cpplex.c: (lex_line, can_paste): Honour digraphs in
5803 accordance with the digraphs flag.
5805 * cpplib.h: (struct cpp_options): New option digraphs.
5807 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
5808 Bruce Korb <bkorb@gnu.org>
5810 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
5811 * fixinc/fixincl.x: Regenerate.
5812 * fixinc/tests/base/testing.h: Add testcase.
5814 2000-07-10 Richard Henderson <rth@cygnus.com>
5816 * config/ia64/ia64.c (got_symbolic_operand): New.
5817 (symbolic_operand, move_operand): Revert 0701 change.
5818 * config/ia64/ia64.h (PREDICATE_CODES): Update.
5819 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
5820 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
5821 split the offset into a 14-bit low part instead of a 13-bit low part.
5822 (load_fptr): Mark the mem as unchanging.
5823 (load_symptr): Use got_symbolic_operand.
5825 2000-07-10 Nick Clifton <nickc@cygnus.com>
5827 * libgcc2.c (next_stack_level): Cast result of computation to
5828 (void **) so that the assignment does not generate a warning.
5830 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
5832 * flags.h : Add new variable flag_single_precision_constant.
5833 * toplev.c (display_help) : Add -fsingle-precision-constant option.
5834 (flag_single_precision_constant): New.
5835 * c-lex.c (yylex): Convert floating point constant to single
5837 * invoke.texi : Add documentation for this new option.
5839 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
5841 * diagnostic.c (output_octal): Second parameter is unsigned.
5842 (output_long_octal): Likewise.
5843 (output_hexadecimal): Likewise.
5844 (output_long_hexadecimal): Likewise.
5845 (output_format): Adjust arguments extraction. Tweak.
5846 (output_verbatim, verbatim): End variable argument list.
5847 (report_diagnostic): Improve documentation.
5849 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
5851 * c-common.h (build_stmt): Declare.
5852 (build_continue_stmt): Likewise.
5853 (build_break_stmt): Likewise.
5854 (build_return_stmt): Likewise.
5856 * c-decl.c (do_case): Rewrite to do what previously done in
5859 * c-semantics.c (build_stmt): Define.
5860 (build_return_stmt): Likewise.
5861 (build_break_stmt): Likewise.
5862 (build_continue_stmt): Likewise.
5863 (build_case_label): Likewise.
5865 * c-parse.in (BREAK): Change to build tree, then generate RTL.
5866 (CONTINUE): Likewise.
5869 (DEFAULT): Likewise.
5871 * c-parse.y: Regenerate.
5872 * c-pasre.c: Likewise.
5874 2000-07-09 Jason Merrill <jason@redhat.com>
5876 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
5878 * tree.h (STRIP_NOPS): Check for error_mark_node.
5879 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
5880 (dwarf2out_*): Remove duplicate declarations.
5882 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
5883 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
5885 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
5887 * diagnostic.c (wrap_text): New function.
5888 (maybe_wrap_text): Likewise.
5889 (output_add_string): Use it.
5890 (output_format): Likewise.
5891 (count_error): Use verbatim instead of notice.
5892 (report_error_function): Likewise. Don't use plain fprintf.
5893 (finish_diagnostic): New function.
5894 (output_do_verbatim): Tweak. Commonalize functionalities in
5895 output_verbatim and verbatim.
5896 (output_verbatim): Adjust.
5897 (verbatim): Likewise.
5898 (report_diagnostic): Define.
5900 * diagnostic.h (report_diagnostic): Prototype.
5902 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
5904 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
5906 2000-07-09 Neil Booth <NeilB@earthling.net>
5908 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
5909 IShspace, ISspace: Update.
5911 * cppinit.c: ISTABLE: Update.
5914 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
5915 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
5916 (skip_block_comment, skip_line_comment, parse_string,
5917 lex_line): Use is_vspace rather than IS_NEWLINE.
5918 (skip_whitespace, lex_line): Clean up to use is_nvspace.
5919 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
5921 (lex_next): Unconditionally stop if within a directive.
5922 Treat directives within macro invocations as directives
5923 (after parse_args emits error), not as the argument.
5925 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
5927 * diagnostic.c (diagnostic_args): New macro.
5928 (diagnostic_msg): Likewise.
5929 (output_formatted_integer): Likewise.
5930 (output_state): New data type.
5931 (digit_buffer): Make global.
5932 (output_add_integer): Rename to output_decimal. Squeeze
5934 (output_long_decimal, output_unsigned_decimal,
5935 output_long_unsigned_decimal, output_octal, output_long_octal,
5936 output_hexadecimal, output_long_hexadecimal): New functions.
5937 (output_append_r): New function.
5938 (output_append): Tweak.
5939 (output_flush_on): Rename to output_to_stream.
5940 (output_format): Change prototype. Improve documentation. Handle
5941 more format specifiers.
5942 (build_location_prefix): Rename to context_as_prefix.
5943 (output_notice): Rename to output_do_printf.
5944 (output_printf): Tweak.
5945 (line_wrapper_printf): Likewise.
5946 (vline_wrapper_message_with_location): Adjust call to renamed
5948 (v_message_with_decl): Likewise.
5949 (default_print_error_function): Likewise.
5950 (save_output_state): New function.
5951 (restore_output_state): Likewise.
5952 (output_do_verbatim): Likewise.
5953 (output_verbatim): Define.
5954 (verbatim): Likewise.
5956 * diagnostic.h (printer_fn): Change return type from void to int.
5957 Improve documentation.
5958 (output_add_integer): Rename to output_decimal.
5959 (output_flush_on, output_format): Don't export.
5960 (output_verbatim, verbatim): Declare.
5962 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
5964 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
5965 Check whether c divides op1 exactly if operation is not
5968 2000-07-08 Richard Henderson <rth@cygnus.com>
5970 * final.c (final): Do not abort when reg-stack introduces
5973 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
5975 * cpplib.h (struct cpp_name): Now struct cpp_string.
5976 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
5977 CPP_HEADER_NAME): Change to type S.
5978 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
5979 field, a cpp_hashnode *. All references to val.name updated
5980 to use val.str or val.node as appropriate.
5981 (struct cpp_reader): Add spec_nodes field.
5982 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
5984 * cpphash.h (struct spec_nodes): New.
5985 (enum spell_type): Reorder. Only SPELL_STRING tokens use
5986 val.str. All references to 'spelling > SPELL_NONE' updated to
5989 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
5990 pfile->buffer->inc are not NULL before dereferencing them.
5992 * cpplex.c (parse_name): Take a pointer to the current token,
5993 plus current position and limit as args; return the new
5994 position; don't copy the text of a name into the string
5995 buffer, instead call cpp_lookup and store the node pointer.
5996 If extending a token, copy out the text of the old into a
5997 scratch buffer, append the new, look that up and store the new
5998 node pointer. Inline.
5999 (maybe_paste_with_next): If the result of paste is a NAME,
6000 then look up the pasted text and store its node pointer.
6001 (lex_line): Adjust for new parse_name interface.
6002 Check for L"str", L'str' using spec_nodes->n_L.
6003 (spell_token): SPELL_IDENT tokens have their spelling in
6004 val.node->name. Handle SPELL_STRING tokens that don't have
6006 (_cpp_expand_name_space,
6007 (can_paste): Check for L ## "str" using spec_nodes->n_L.
6008 (cpp_get_token, special_symbol): No need to call cpp_lookup.
6009 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
6010 return 1=equal 0=not, not a tristate.
6012 * cpphash.c (var_args_str): Delete.
6013 (find_param): Compare node fields directly.
6014 (is__va_args__): Use CPP_PEDANTIC. Just compare
6015 token->val.node with spec_nodes->n__VA_ARGS__.
6016 (dump_funlike_macro): Don't use var_args_str.
6018 * cpplib.c (_cpp_check_directive): Just walk through
6019 spec_nodes->dirs comparing pointers.
6020 (get_define_node, do_pragma_poison, detect_if_not_defined,
6021 parse_ifdef): The identifier has already been looked up.
6022 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
6024 (do_if): Only call detect_if_not_defined at beginning of file.
6025 (_cpp_parse_assertion): Only copy string pointers for
6026 SPELL_STRING tokens.
6027 (pragma_dispatch): Take a node pointer and examine its name
6029 (_cpp_init_stacks): Also initialize the spec_nodes structure.
6031 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
6033 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
6034 reverse order from the corresponding _cpp_init_* routines.
6036 * cppexp.c (parse_number, parse_charconst, parse_defined,
6037 lex): Check val.node->type instead of calling cpp_defined.
6038 Use spec_nodes entries where appropriate.
6040 * fix-header.c, scan-decls.c: Update for interface changes.
6042 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
6044 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
6045 emitting aux_truncdfsf2.
6047 2000-07-03 Donn Terry (donnte@microsoft.com)
6049 * cppinit.c (print_help): split overlong line into ISO C89
6052 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
6054 * cppexp.c: Update all code for new lexer interface.
6055 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
6056 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
6057 * cpplex.c (token_names): Trim leading CPP_ from names; make
6058 the strings unsigned.
6059 (_cpp_spell_operator): New.
6060 (is_macro_disabled): Disable all macros if rescanning
6062 (_cpp_get_directive_token): Remove.
6064 * cppinit.c: Don't set no_macro_expand.
6065 * cpplib.c (read_line_number, do_line): Check only for EOF,
6067 * cpphash.h: Update prototypes.
6068 * cpplib.h (CPP_VSPACE): Remove.
6069 (struct cpp_reader): Remove no_macro_expand.
6071 2000-07-08 Neil Booth <NeilB@earthling.net>
6073 * cpphash.c (is__va_args__): New function.
6074 (count_params): Fix line reported in error messages. Use
6075 is__va_args__. Don't return ')' on error. Flag GNU style
6076 rest args macro definitions.
6077 (parse_define): Check macro name is not __VA_ARGS__.
6078 (save_expansion): Check identifier in non-varargs-macro is
6079 not __VA_ARGS__. Don't flag GNU_VARARGS.
6080 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
6081 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
6082 than per-token GNU_VARARGS.
6083 * cpplib.h (GNU_VARARGS): Remove.
6084 (GNU_REST_ARGS): New.
6086 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
6088 * i386.md (call_pop, call, call_value_pop): Do not set
6089 current_function_uses_pic_offset_table for calls to static
6090 functions or indirect calls.
6092 2000-07-07 Jim Wilson <wilson@cygnus.com>
6094 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
6095 is_predicate_reg, then take max write_count of register pair.
6097 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6099 * tradcpp.c (main): Rename label `include' to `add_include' to
6100 avoid conflicts with variable `include' in traditional C.
6102 2000-07-07 Jakub Jelinek <jakub@redhat.com>
6104 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
6106 2000-07-07 Jakub Jelinek <jakub@redhat.com>
6108 * sibcall.c (uses_addressof): Add INMEM argument, check for
6109 current_function_internal_arg_pointer outside of MEM rtxs in addition
6111 (sequence_uses_addressof): Update caller.
6113 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
6115 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
6118 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6120 * system.h (UNION_INIT_ZERO): New macro for initializing union
6123 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
6125 2000-07-07 Neil Booth <NeilB@earthling.net>
6129 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
6131 * final.c (final): Detect out of bounds array access to
6132 the insn_lengths array.
6134 2000-07-07 Kazu Hirata <kazu@hxi.com>
6136 * fold-const.c (fold): Fix a comment typo.
6138 2000-07-07 Neil Booth <NeilB@earthling.net>
6140 * cpp.texi: Update to new lexer.
6142 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
6144 * tradcpp.c: New file.
6145 * tradcif.y: New file.
6146 * tradcif.c: New generated file.
6148 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
6149 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
6150 dependencies of C. Install tradcpp from install-common, in
6153 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
6155 * cppinit.c: Include cppdefault.h. Refer to
6156 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
6157 to GCC_INCLUDE_DIR and its length.
6158 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
6159 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
6160 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
6162 (include_defaults_array): Move to cppdefault.c.
6164 * cppdefault.h: New file.
6165 * cppdefault.c: New file.
6167 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
6168 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
6169 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
6172 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6174 * reload.c (push_reload): When seeing if can reuse a register,
6175 check extra registers against widest of INMODE and OUTMODE.
6177 2000-07-06 Neil Booth <NeilB@earthling.net>
6179 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
6180 based on full length of predicate.
6182 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
6184 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
6185 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
6187 2000-07-05 Kazu Hirata <kazu@hxi.com>
6189 * h8300-proto.h: Fix formatting.
6190 * h8300.c: Likewise.
6191 * h8300.h: Likewise.
6193 2000-07-05 Jim Wilson <wilson@cygnus.com>
6195 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
6198 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
6200 * invoke.texi: Fix minor typos
6201 * md.texi: Fix minor typos
6203 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
6205 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
6207 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
6209 * cpplex.c: Don't include sys/mman.h.
6210 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
6212 * cpplib.c: Include sys/mman.h and obstack.h.
6213 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
6215 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
6216 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
6217 bother freeing if stack entries (they will be freed with their buffer).
6218 (do_endif): Free if stack entries from the buffer obstack.
6219 (push_conditional): Allocate if stack entries from the buffer obstack.
6221 (find_answer): Rename to _cpp_find_answer.
6222 (do_assert, do_unassert): Update.
6224 * cpphash.h: Update prototypes.
6225 (xobnew): New convenience macro.
6226 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
6228 (struct cpp_hashnode): Remove disabled field.
6230 * cppinit.c: Don't include hashtab.h or splay-tree.h.
6231 (report_missing_guard): Moved to cppfiles.c.
6232 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
6234 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
6235 cpp_cleanup_includes. Don't destroy hashtab or
6236 all_include_files here.
6237 (cpp_finish): Use _cpp_report_missing_guards.
6239 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
6240 (_cpp_init_include_table): Rename _cpp_init_includes.
6241 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
6243 * cppexp.c (parse_assertion): Update for new name of
6246 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
6248 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
6250 * cpplib.c (do_ident): s/VSPACE/EOF/
6252 2000-07-05 Neil Booth <NeilB@earthling.net>
6254 * cpplex.c: Fix trigraph replacement within strings.
6256 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6258 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
6260 * xcoffout.c (assign_type_number): Constify.
6261 (xcoffout_source_file): Add static prototype. Don't needlessly
6262 cast away const-ness.
6264 2000-07-04 Jason Merrill <jason@redhat.com>
6266 * frame.h (frame_state): Move base_offset to end.
6268 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
6270 * calls.c (emit_library_call_value_1): Revert previous change.
6272 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
6274 * fix-header.c (struct partial_proto): Remove unnecessary fields.
6275 (recognized_extern, recognized_function, read_scan_file):
6276 Update for new scheme.
6277 (check_protection): It's still a multiple include guard even
6278 if it doesn't always trigger.
6279 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
6281 * scan.h: Declare struct cpp_token. Update prototypes.
6283 2000-07-03 Neil Booth <neilb@earthling.net>
6284 Zack Weinberg <zack@wolery.cumb.org>
6286 Complete overhaul of the lexer and macro expander.
6288 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
6289 arg, arglist, argdata, reflist, collect_objlike_expansion,
6290 collect_funlike_expansion, collect_params,
6291 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
6292 unsafe_chars, macarg, compare_defs, special_symbol,
6293 scan_arguments, stringify, funlike_macroexpand,
6294 _cpp_quote_string, monthnames): Delete.
6295 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
6296 _cpp_create_definition, _cpp_dump_definition,
6297 dump_hash_helper): Adjust.
6298 (find_param, count_params, parse_define, var_args_str,
6299 check_macro_redefinition, save_expansion): New.
6301 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
6302 parse_string, output_line_command, trigraph_replace,
6303 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
6304 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
6305 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
6306 _cpp_skip_rest_of_line): Modify.
6308 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
6309 find_position, null_warning, bump_column, expand_name_space,
6310 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
6311 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
6312 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
6313 _cpp_prescan): Delete.
6315 (dump_param_spelling, process_directive, lex_next,
6316 is_macro_disabled, stringify_arg, expand_context_stack,
6317 output_token, make_string_token, alloc_number_token,
6318 special_symbol, duplicate_token, maybe_paste_with_next,
6319 can_paste, prevent_macro_expansion, restore_macro_expansion,
6320 get_temp_token, release_temp_tokens, quote_string,
6321 token_names, token_spellings, _cpp_expand_name_space,
6322 _cpp_glue_header_name, _cpp_reserve_name_space,
6323 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
6324 placemarker_token, eof_token, cpp_context, macro_args,
6325 get_raw_token, parse_arg, parse_args, save_token,
6326 push_arg_context, push_macro_context, pop_context,
6327 do_pop_context, free_macro_args, _cpp_get_line,
6328 _cpp_run_directive): New.
6330 * cpplib.c (validate_else, parse_include, push_conditional,
6331 pass_thru_directive, read_line_number, parse_ifdef,
6332 detect_if_not_defined, _cpp_check_directive, do_define,
6333 do_undef, do_include, do_import, do_include_next, do_error,
6334 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
6335 top_pragmas, do_pragma_gcc, do_pragma_implementation,
6336 do_pragma_poison, do_pragma_system_header,
6337 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
6338 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
6339 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
6340 cpp_defined): Update for new scheme.
6341 (strtoul_for_line, get_define_node, dump_macro_name,
6342 _cpp_check_linemarker, _cpp_parse_assertion): New.
6343 (_cpp_handle_directive, do_pragma_default): Delete.
6345 * cpphash.h (struct predicate): Now struct answer.
6346 (enum spell_type, struct token_spelling, struct directive,
6347 directive_handler): New.
6348 Update prototypes. Remove unused macros.
6349 * cpplib.h: Update prototypes. Remove unused macros,
6350 structure definitions, and fields.
6352 * cpperror.c (print_containing_files, v_message): Adjust.
6353 * cppexp.c (parse_assertion, lex, parse_escape,
6354 _cpp_parse_expr): Adjust.
6355 * cppfiles.c (open_include_file, _cpp_execute_include,
6356 _cpp_compare_file_date, cpp_read_file, read_include_file):
6358 * cppinit.c (dump_special_to_buffer): Delete.
6359 (append_include_chain, merge_include_chains, cpp_reader_init,
6360 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
6361 cpp_finish, handle_option, print_help): Adjust.
6362 * cppmain.c (main): Adjust.
6364 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
6366 * cppspec.c (lang_specific_driver): Use double quotes in error
6369 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
6371 * calls.c (emit_library_call_value_1): Use valreg instead
6372 of hard_libcall_value.
6374 2000-07-03 Geoff Keating <geoffk@cygnus.com>
6376 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
6377 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
6378 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
6386 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
6387 mode instead of wider_mode is being used.
6389 2000-07-03 Jakub Jelinek <jakub@redhat.com>
6391 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
6392 of 'r'. Use q_regs_operand.
6393 (andsi_1+2): Use q_regs_operand.
6395 2000-07-03 Jakub Jelinek <jakub@redhat.com>
6397 * builtins.c (get_memory_rtx): Always put into alias set 0.
6399 2000-07-03 Nick Clifton <nickc@cygnus.com>
6401 * config/arm/arm.md: Fix post increment and pre increment
6402 peepholes so that they do not generate UNPREDICATBLE opcodes.
6403 (ie ones where the increment clobbers the source/destination).
6405 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
6407 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
6408 change too big for -mtiny-stack" a warning, if larger than 63.
6409 (out_set_stack_ptr): Change the logic so -mno-interrupts is
6410 always safe to use on possible future devices.
6411 (function_prologue): Write SPH before SPL, for consistency.
6412 If interrupt_func_p true, we know we have enabled interrupts.
6413 (avr_num_arg_regs): New function. Round up to even number of
6414 bytes if no -mpack-args or if calling a libgcc function.
6415 (function_arg, function_arg_advance): Use it.
6416 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
6417 Output "movw" if available.
6418 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
6419 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
6420 (asm_output_section_name): Add blanks for consistent output.
6421 (encode_section_info): Set TREE_READONLY for progmem data to
6422 avoid gas warnings about changed section attributes.
6423 (avr_hard_regno_mode_ok): Force non-QImode data to start in
6424 even numbered registers on devices with "movw".
6425 * config/avr/avr.h (MASK_*): Define bits for target_flags.
6426 (TARGET_SWITCHES): Mark help strings for translation.
6427 Add new -mpack-args and -menhanced switches.
6428 (TARGET_OPTIONS): Mark help strings for translation.
6429 (progmem_section): Add section attributes.
6430 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
6431 Output "movw" if available.
6432 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
6434 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
6435 call convention (arguments aligned on even registers).
6436 (_cleanup, _exit): Make weak symbols libc can override.
6438 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6440 * fp-bit.h: New file.
6442 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
6443 Comment #endif statements.
6444 (__thenan_sf, __thenan_df): Add missing braces around initializer.
6446 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
6448 * gcse.c (compute_pre_data): Compute ae_kill using other local
6449 properties instead of calling compute_ae_kill.
6451 * alias.c (init_alias_analysis): Do not call
6452 prologue_epilogue_contains until after reload has completed.
6454 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
6456 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
6457 (genrtl_finish_compound_stmt): Likewise.
6458 (genrtl_compound_stmt): Change to return void.
6460 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
6461 move code from here to ...
6462 (genrtl_compound_stmt): ... here.
6463 (genrtl_finish_compound_stmt): Remove.
6464 (expand_stmt): Add comment.
6466 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
6468 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
6471 2000-07-02 Jakub Jelinek <jakub@redhat.com>
6473 * cpplib.h (struct cpp_reader): New field include_depth.
6474 (struct cpp_printer): Rename last_bsd to last_id.
6475 * cppfiles.c (read_include_file): Bump include_depth.
6476 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
6477 (output_line_command): Output correct #line if a header
6478 is including itself and is not protected against multiple inclusion.
6479 Use include_depth instead of buffer_stack_depth, last_id instead of
6481 * cppinit.c (cpp_start_read): Initialize last_id instead of
6484 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
6486 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
6487 (c-semantics.o): New target.
6489 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
6490 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
6491 (genrtl_clear_out_block): Likewise.
6492 (genrtl_goto_stmt): Likewise.
6493 (genrtl_expr_stmt): Likewise.
6494 (genrtl_decl_stmt): Likewise.
6495 (genrtl_if_stmt): Likewise.
6496 (genrtl_while_stmt): Likewise.
6497 (genrtl_do_stmt): Likewise.
6498 (genrtl_return_stmt): Likewise.
6499 (genrtl_for_stmt): Likewise.
6500 (genrtl_break_stmt): Likewise.
6501 (genrtl_continue_stmt): Likewise.
6502 (genrtl_scope_stmt): Likewise.
6503 (genrtl_switch_stmt): Likewise.
6504 (genrtl_case_label): Likewise.
6505 (genrtl_begin_compound_stmt): Likewise.
6506 (gerntl_finish_compound_stmt): Likewise.
6507 (genrtl_compound_stmt): Likewise.
6508 (genrtl_asm_stmt): Likewise.
6509 (genrtl_decl_cleanup): Likewise.
6510 (DECL_ANON_UNION_ELEMS): Likewise.
6511 (emit_local_var): Likewise.
6512 (make_rtl_for_local_static): Likewise.
6513 (expand_cond): Likewise.
6514 (expand_stmt): Likewise.
6515 (c_expand_return): Likewise.
6516 (c_expand_start_case): Likewise.
6517 (do_case): Likewise.
6518 (COMPOUND_STMT_NO_SCOPE): Likewise.
6519 (c_expand_asm_operands): Likewise.
6520 (NEW_FOR_SCOPE_P): New macro.
6521 (expand_expr_stmt_fn): New type.
6523 (set_current_function_name_declared): Likewise.
6524 (current_function_name_declared): Likewise.
6525 (lang_expand_stmt): Likewise.
6526 (stmts_are_full_exprs_p): Likewise.
6527 (anon_aggr_type_p): Likewise.
6528 (lang_expand_expr_stmt): Likewise.
6529 (build_case_label): Likewise.
6531 * c-decl.c (lang_expand_expr_stmt): Initialize.
6532 (stmts_are_full_exprs_p): Define.
6533 (current_function_name_declared): Likewise.
6534 (do_case): Likewise.
6535 (lang_expand_stmt): Likewise.
6536 (set_current_function_name_declared): Likewise.
6537 (anon_aggr_type_p): Likewise.
6539 * c-semantics.c: New file.
6540 (expand_cond): Moved from cp/semantics.c.
6541 (genrtl_do_pushlevel): Likewise.
6542 (genrtl_clear_out_block): Likewise.
6543 (genrtl_goto_stmt): Likewise.
6544 (genrtl_expr_stmt): Likewise.
6545 (genrtl_decl_stmt): Likewise.
6546 (genrtl_if_stmt): Likewise.
6547 (genrtl_while_stmt): Likewise.
6548 (genrtl_do_stmt): Likewise.
6549 (genrtl_return_stmt): Likewise.
6550 (genrtl_for_stmt): Likewise.
6551 (genrtl_break_stmt): Likewise.
6552 (genrtl_continue_stmt): Likewise.
6553 (genrtl_scope_stmt): Likewise.
6554 (genrtl_switch_stmt): Likewise.
6555 (genrtl_case_label): Likewise.
6556 (genrtl_begin_compound_stmt): Likewise.
6557 (genrtl_finish_compound_stmt): Likewise.
6558 (genrtl_compound_stmt): Likewise.
6559 (genrtl_asm_stmt): Likewise.
6560 (genrtl_decl_cleanup): Likewise.
6561 (make_rtl_for_local_static): Moved from cp/decl.c.
6562 (emit_local_var): Likewise.
6563 (expand_stmt): Define.
6565 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
6566 (c_expand_return): Likewise.
6567 (c_expand_start_case): Likewise.
6569 2000-07-01 Richard Henderson <rth@cygnus.com>
6571 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
6572 with the low 13 bits set.
6573 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
6574 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
6575 of the low 13 bits into a CONST plus an adddi3.
6576 (load_symptr): Set RTX_UNCHANGING_P.
6578 See ChangeLog.3 for earlier changes.