OSDN Git Service

2000-10-06 David O'Brien <obrien@FreeBSD.org>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2000-10-06  David O'Brien  <obrien@FreeBSD.org>
2
3         * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
4         #undef.
5
6 2000-10-06  Richard Henderson  <rth@cygnus.com>
7
8         * function.c (diddle_return_value): Examine
9         current_function_return_rtx instead of the DECL_RESULT.
10         (expand_function_end): Handle reloading DECL_RESULT from memory
11         into a hard register.  Query promote_mode for sign of mismatched
12         modes.
13
14 2000-10-06  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
15
16         * haifa-sched.c (schedule_insns): Fix typo in freeing
17         forward_dependency_cache.
18
19 2000-10-06  Alexandre Oliva  <aoliva@redhat.com>
20
21         * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
22         `TARGET_SH2' as a condition.
23
24 2000-10-06  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
25
26         * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
27         forward_dependency_cache): New variables.
28         (add_dependence, remove_dependence): Use anti_dependency_cache and
29         output_dependency_cache.
30         (compute_block_forward_dependences): Use forward_dependency_cache.
31         (schedule_insns): Allocate and free memory for anti/output/forward
32         dependencies caches.
33         
34 2000-10-06  Alexandre Oliva  <aoliva@redhat.com>
35
36         * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
37         `! TARGET_SH1'.  Reindent.
38
39 2000-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
40
41         * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
42         Move functions from here ...
43
44         * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
45         ... to here.
46         (c_expand_builtin): New function.
47         (init_function_format_info): Don't set `check_function_format_ptr'.
48         (c_common_nodes_and_builtins): Set built_in_class type for
49         printf/__builtin_printf to BUILT_IN_FRONTEND.
50         (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
51
52         * c-common.h (build_function_call): Declare.
53
54         * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
55         to `lang_expand_expr' rather than `expand_builtin'.
56
57         * tree.c (check_function_format_ptr): Delete.
58
59         * tree.h (check_function_format_ptr): Likewise.
60
61 2000-10-06  Hans-Peter Nilsson  <hp@bitrange.com>
62
63         * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
64         DW_OP_bregx when cfa->reg > 31.
65
66         * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
67         break.
68
69 2000-10-05  Richard Henderson  <rth@cygnus.com>
70
71         * c-decl.c (warn_missing_noreturn): Remove.
72         (c_expand_body): Don't set or check can_reach_end.
73         * c-tree.h (warn_missing_noreturn): Move ...
74         * flags.h: ... here.
75         (can_reach_end): Remove.
76         * flow.c (check_function_return_warnings): New.
77         (make_edges): No edge to exit for noreturn sibcalls.
78         * function.c (expand_function_end): Save the return value
79         clobber instruction.
80         (mark_function_status): Mark it.
81         * function.h (struct function): Add x_clobber_return_insn.
82         * jump.c (can_reach_end): Remove.
83         (calculate_can_reach_end): Remove.
84         (jump_optimize_1): Don't call it.
85         * output.h (check_function_return_warnings): Declare.
86         * toplev.c (warn_missing_noreturn): Move from c-decl.c
87         (rest_of_compilation): Call check_function_return_warnings.
88
89 2000-10-05  Richard Henderson  <rth@cygnus.com>
90
91         * Makefile.in (NM_FOR_TARGET): New.
92         (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
93         (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
94         * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map.  Depend the
95         shared library build on that and EXTRA_MULTILIB_PARTS.
96         * mkmap-flat.awk: New file.
97         * mkmap-symver.awk: New file.
98         * libgcc-std.ver: New file.
99         * config/libgcc-glibc.ver: New file.
100         * config/ia64/libgcc-ia64.ver: New file.
101         * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
102         (SHLIB_LINK): Add --version-script.
103         * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
104         * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
105         * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
106         (SHLIB_LINK): Add -M.
107
108 2000-10-05  Richard Henderson  <rth@cygnus.com>
109
110         * Makefile.in (LIB2FUNCS): Add _clz.
111         * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
112         (__clz_tab): Put in its own unit, non-static.
113         * libgcc2.h: Always include longlong.h.
114
115         * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
116         a zero instead of -1.
117         (count_trailing_zeros): Likewise.
118
119 2000-10-05  Richard Henderson  <rth@cygnus.com>
120
121         * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
122         when second op1 is const0_rtx.  Validate op0 as a register.
123         * config/alpha/alpha.md (setcc_internal): Don't allow constants
124         in the first argument of the compare.
125         (setcc_swapped_internal): Likewise.
126         (setne_internal): Likewise.
127
128 2000-10-05  Geoff Keating  <geoffk@cygnus.com>
129
130         * tree.c (tree_size): New function split out of copy_node.
131         (make_node): Remove obstack handling.  Use tree_size.
132         (copy_node): Use tree_size.
133         * tree.h: Prototype tree_size.
134
135 2000-10-05  Richard Henderson  <rth@cygnus.com>
136
137         * diagnostic.c (output_format): Add missing break.
138
139 2000-10-05  Jim Wilson  <wilson@cygnus.com>
140
141         * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
142         SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
143         sequence insn to INSN, and delete last sequence insn.
144
145 2000-10-05  Phil Edwards  <pme@gcc.gnu.org>
146
147         * gcc.c (main): Include generated configargs.h header
148         and use arguments in '-v' output.
149
150 Thu Oct  5 16:16:57 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
151
152         * gcc.c: Move data on prefixes forward in file and reorganize.
153         (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
154         Always define, but make null if no value.
155         (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
156         and "md_startfile_prefix_1".
157         (main): Check whether md_exec_prefix and the others are the
158         null string rather than whether the macro is defined.
159
160 Thu Oct  5 19:04:18 2000  J"orn Rennecke <amylaar@redhat.co.uk>
161
162         * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
163         from PSImode to SImode.
164
165 2000-10-05  Jakub Jelinek  <jakub@redhat.com>
166
167         * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
168         from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
169         * dwarf2out.c (add_const_value_attribute): Divide by 4, not
170         sizeof(long).
171
172 Thu Oct  5 09:31:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
173
174         * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
175         negation in proper type.a
176
177 2000-10-04  Richard Henderson  <rth@cygnus.com>
178
179         * configure.in (enable-shared): New.
180         * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
181         (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
182         * mklibgcc.in: Use them to link shared a libgcc.
183         * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
184         * config/alpha/t-ieee (SHLIB_MULTILIB): New.
185         * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
186         * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
187
188         * configure.in (alpha-osf*): Use t-osf and x-osf.
189         * config/alpha/t-osf: New file.
190         * config/alpha/t-osf4: New file.
191         * config/alpha/x-osf: New file.
192         * config/alpha/x-alpha: Remove file.
193
194 2000-10-04  Will Cohen  <wcohen@redhat.com>
195
196         * c-typeck.c (process_init_element): Added warning for zero-length
197         array.
198
199         * extend.texi (Zero Length): State that static initializers for
200         zero-length arrays are not allowed.
201
202 Mon Oct  2 14:50:14 MET DST 2000  Jan Hubicka  <jh@suse.cz>
203
204         * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
205         to come last.
206
207 2000-10-03  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
208
209         * config/float-c4x.h: New.
210         * configure.in (c4x-*): Set float_format to c4x.
211         * configure: Regenerate.        
212
213 2000-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
214
215         * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
216         compilation for solaris versions 2.7 and greater.
217
218 2000-10-02  David O'Brien  <obrien@dragon.nuxi.com>
219
220         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
221
222 2000-10-01  Mark Mitchell  <mark@codesourcery.com>
223
224         * config/ns32k/genix.h: Remove.
225         * config/ns32k/x-genix: Likewise.
226         * config/ns32k/xm-genix.h: Likewise.
227         * config/fx80: Remove all filee in directory.
228         * config/pyr: Likewise.
229         * config/tahoe: Likewise.
230         * config/gmicro: Likewise.
231         * config/spur: Likewise.
232         * configure.in: Remove configury bits for above targets.
233         * configure: Regenerated.
234         
235         * configure.in: Don't configure chill by default.
236         * configure: Regenerated.
237         
238         * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
239         (lang_mark_false_label_stack): Remove.
240         * c-lex.c (init_c_lex): Add file_info_tree as GC root.  Allocate
241         <top level> string in GC area.
242         (mark_splay_tree_node): New function.
243         (mark_splay_tree): Likewise.
244         * except.c (mark_eh_status): Only call lang_mark_false_label_stack
245         if it exists.
246         * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
247         * ggc-common.c (lang_mark_false_label_stack): Change type.
248         * ggc.h (ggc_alloc_string): Add comment.
249         (ggc_strdup): New function.
250         
251 Sat Sep 23 19:10:20 2000  Denis Chertykov  <denisc@overta.ru>
252
253         * config/avr/avr.h (BRANCH_COST): Define as 0.
254
255         * config/pdp11/pdp11.c: #include "tree.h" added.
256
257 2000-09-30  Marek Michalkiewicz  <marekm@linux.org.pl>
258
259         * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
260         ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
261         with known shift count.
262         * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
263         New alternative for shift count 2 with no scratch register.
264         (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
265         "set_n" for shift counts 1 and 2.
266
267 2000-09-30  Geoff Keating  <geoffk@cygnus.com>
268
269         * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE.  Calculate
270         the mask value from the individual SET operations.
271         (return_internal_si): Move the USE after the RETURN.
272         (return_internal_di): Likewise.
273         (return_and_restore_fpregs_si): Likewise.
274         (return_and_restore_fpregs_di): Likewise.
275         (return_eh_si): Likewise.
276         (return_eh_di): Likewise.
277         * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
278         or check, the USE.
279         (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
280         Don't generate a PARALLEL around a single operation movsi_to_cr.
281         Generate the RETURN first in any PARALLELs.
282
283         * rtlanal.c (single_set_1): Use fatal_insn to display the
284         invalid insn.  Check for more cases when a USE or CLOBBER occurs
285         before a SET.
286         * Makefile.in: Update dependencies for rtlanal.o.
287
288 2000-09-30  Joseph S. Myers  <jsm28@cam.ac.uk>
289
290         * i386.c: Move include of "config.h" to before that of <setjmp.h>.
291
292 2000-09-30  Joseph S. Myers  <jsm28@cam.ac.uk>
293
294         * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
295         Consistently use @email for formatting email addresses.
296
297 2000-09-29  Richard Henderson  <rth@cygnus.com>
298
299         * cse.c (notreg_cost): New argument outer.
300         (COST): Pass in SET to notreg_cost
301         (COST_IN): New.
302         (fold_rtx): Use COST_IN.  Prefer constants when costs
303         are the same.
304
305 2000-09-29  David Edelsohn  <edelsohn@gnu.org>
306
307         * fixinc/inclhack.def (broken_cabs): Generalize regex.
308         * fixinc/fixincl.x: Regenerate.
309
310 2000-09-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
311
312         * loop.c (check_final_value): A GIV is not replaceable if used
313         before set.
314
315 Fri Sep 29 10:04:12 2000  Jeffrey A Law  (law@cygnus.com)
316
317         * version.c: Bump to gcc-2.97.
318
319 Frs Sep 29 13:37:59 MET DST 2000  Jan Hubicka  <jh@suse.cz>
320
321         * final.c (final_scan_insn): Remove extra extract_insn call;
322         Use caching for constrain_operands.
323         (cleanup_subreg_operands): Use caching for extract_insn.
324         * recog.c (constrain_operands_cached): New.
325         * recog.h (constrain_operands_cached): Declare.
326         * i386.c (ix86_attr_length_immediate_default,
327         ix86_attr_length_address_default, ix86_agi_dependant): Cache
328         extract_insn call.
329
330         * recog.c (asm_noperands): Tweak.
331         (extract_insn): Do not call asm_noperads for non-asm instructions.
332
333 Fri Sep 29 13:20:42 MET DST 2000  Jan Hubicka  <jh@suse.cz>
334
335         * recog.c (recog_memoized): Rename to recog_memoized_1.
336         * recog.h (recog_memoized): Rename to recog_memoized_1.
337         (recog_memoized): New macro.
338         * rtl.h (single_set): Rename to single_set_1
339         (single_set): New macro.
340         * rtlanal.c (single_set): Rename to single_set_1;  expect clobbers
341         to be last.
342
343         * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
344         Do not use match_dup of input operands at outputs.
345         Use register_operand for memory expression.
346         (rep_movsi): Put use last, canonicalize.
347         Use register_operand for memory expression.
348         (rep_movqi): Put use last.
349         Use register_operand for memory expression.
350         (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
351         of input operands at outputs.  Use register_operand for memory
352         expression.
353         (rep_stossi): Put use last; canonicalize; fix match_dup in
354         the address expression
355         (rep_stosqi): Likewise.
356         (memcmp expander): Update calls.
357         (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
358         the clobbers.
359
360         * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
361         VOIDmode.
362         (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
363
364 2000-09-28  David O'Brien  <obrien@FreeBSD.org>
365
366         * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
367         Contains the old contents of config/i386/freebsd.h
368         * config/i386/freebsd.h: Now the ELF rather than a.out config file.
369         Contains the old contents of config/i386/freebsd-elf.h
370         * config/i386/freebsd-elf.h: Retire this file -- contents moved to
371         config/i386/freebsd.h.
372         * configure.in: Adjust for above changes.
373         * po/POTFILES.in: Likewise.
374         * po/en_GB.po: Likewise.
375         * po/gcc.pot: Likewise.
376         * configure: Rebuilt.
377
378 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
379
380         * doloop.c (doloop_modify): Prevent delete_insn() from
381         deleting too much.  Prefer loop->top over loop->start as
382         target for the new JUMP insn.
383         (doloop_valid_p): Ignore loop with exit_count != 0.
384
385 2000-09-28  Philipp Thomas  <pthomas@suse.de>
386
387         * invoke.texi (i386 Options): Add athlon to table of possible
388         choices for -mcpu=.
389
390 2000-09-28  Gabriel Dos Reis  <gdr@codesourcery.com>
391
392         * diagnostic.h (output_clear_message_text): New function.
393         (output_message_text): New macro.
394
395         * diagnostic.c (clear_text_info): Rename to
396         output_clear_message_text. 
397         (output_clear): Adjust.
398         (output_finish): Rename to output_finalize_message.  Tweek.
399         (output_to_stream): Adjust. 
400
401 2000-09-28  Neil Booth  <neilb@earthling.net>
402
403         * cpperror.c (_cpp_begin_message):  Do the test for suppression
404         of warnings and pedantic warnings before the "is a warning an
405         error" tests.
406         * cppinit.c (cpp_handle_option): Remove surplus \n.
407         * cpplex.c (ON_REST_ARG): Delete.
408         (skip_block_comment): Initialise prevc.
409         (parse_args): Improve error messages.
410         (maybe_paste_with_next): Use CONTEXT_VARARGS rather
411         than ON_REST_ARG.
412         * cpplib.c (cpp_push_buffer): Fix grammar in message.
413         * cppmain.c (main): Set callbacks for #ident and #pragma
414         only if no_output option is false.
415         (do_pragma_implementation): Only call the #pragma handler
416         if it is set in the cpp_reader structure.
417
418 Wed Sep 27 14:00:07 2000  Donald Lindsay  <dlindsay@cygnus.com>
419
420         * integrate.c (copy_insn_list): if an ignored return value
421         is being clobbered, skip cloning that into the inline copy.
422
423 2000-09-27  Joseph S. Myers  <jsm28@cam.ac.uk>
424
425         * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
426         use @uref for formatting URLs.
427
428 2000-09-27  Mark Elbrecht  <snowball3@bigfoot.com>
429
430         * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
431         name and prefix.
432
433 Tue 26-Sep-2000 18:25:38 BST  Neil Booth  <neilb@earthling.net>
434
435         * gcc.c (cpp_options): Add spec for -ftabstop=.
436         (invoke_as): New spec that handles invoking as.
437         Update specs to handle -save-temps and -traditional.
438         * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
439         Use invoke_as.
440         * cp/lang-specs.h, objc/lang-specs.h: Update to use
441         invoke_as, and handle -save-temps and -traditional (if
442         appropriate).
443
444 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
445
446         * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
447         op0 is a SUBREG.
448         (function_arg_slotno): Accept TImode/CTImode.
449         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
450         to UNITS_PER_WORD.
451
452 2000-09-26  Michael Hayes  <mhayes@cygnus.com>
453
454         * flow.c (flow_loop_pre_header_scan): Punt if loop enters
455         from entry block.
456
457 2000-09-25  Jim Wilson  <wilson@cygnus.com>
458
459         * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
460         (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
461         (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
462         (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
463
464 Tue 26-Sep-2000 00:16:22 BST  Neil Booth  <neilb@earthling.net>
465
466         * cpplex.c (parse_args): Don't set VOID_REST flag.
467         (CONTEXT_VARARGS): New flag.
468         (maybe_paste_with_next): Set context earlier in loop.  Use
469         it.  Do varargs test with CONTEXT_VARARGS flag.
470         (push_arg_context): Set CONTEXT_VARARGS flag if we're
471         pushing an argument context for a varargs argument.
472         * cpplib.h (VOID_REST): Delete.
473         * gcc.dg/cpp/vararg1.c: Add test case.   
474
475 2000-09-25  Branko Cibej  <branko.cibej@hermes.si>
476
477         * flags.h:  Declare warning flag warn_system_headers.
478         * toplev.c:  Define it.
479         (W_options): Add option -Wsystem-headers.
480         * diagnostic.c (count_error): Test warn_system_headers.
481         * invoke.texi:  Add description for -Wsystem-headers.
482         * cpplib.h (cpp_options): New member warn_system_headers.
483         * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
484         CPP_IN_SYSTEM_HEADER.
485         * cpplib.c (do_import, do_pragma_once): Likewise.
486         * cpperror.c (_cpp_begin_message): Test warn_system_headers
487         and CPP_IN_SYSTEM_HEADER.
488         * cppinit.c (handle_option): Recognize -Wsystem_headers.
489         (print_help): Describe -Wsystem_headers.
490         * cpplex.c (lex_line): Reorganize condition so that warnings
491         about C++ comments in system headers can be enabled. Remove
492         label do_line_comment.
493
494 Mon 25-Sep-2000 23:38:27 BST  Neil Booth  <neilb@earthling.net>
495
496         * cpplex.c (save_comment): Only store the initial '/'
497         now.
498         (lex_token): Combine handling of the two comment types.
499         Pass everything but the initial '/' to save_comment.    
500
501 Mon 25-Sep-2000 23:31:45 BST  Neil Booth  <neilb@earthling.net>
502
503         * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
504         _cpp_can_paste): New library-internal prototypes.
505         * cpplex.c (dump_param_spelling, output_line_command,
506         output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
507         cpp_printf, cpp_output_list): Move to cppoutput.c.
508         (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
509         * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
510         cppoutput.c.
511         * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
512         dump_param_spelling, output_line_command, cpp_scan_buffer,
513         cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
514         from elsewhere.
515         * Makefile.in: Add cppoutput.c.
516         * po/POTFILES.in: Add cppoutput.c.
517
518 2000-09-25  Richard Henderson  <rth@cygnus.com>
519
520         * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
521         * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
522         split until after reload.
523         (rotlsi3, rotldi3): New.
524
525 2000-09-25  Gabriel Dos Reis  <gdr@codesourcery.com>
526
527         * diagnostic.c (output_last_position): Define.
528         (set_real_maximum_length): Tweek.
529         * diagnostic.h (output_last_position): Declare.
530
531 2000-09-25  Kazu Hirata  <kazu@hxi.com>
532
533         * config/i386/i386.c: Fix formatting.
534
535 2000-09-24  Alan Lehotsky  <alehotsky@cygnus.com>
536
537         * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
538         UNITS_PER_WORD is small.
539
540 2000-09-25  Joseph S. Myers  <jsm28@cam.ac.uk>
541
542         * c-common.c (format_char_info): Add flags2; update comments.
543         (print_char_table, scan_char_table, time_char_table): Split some
544         flags out into flags2.
545         (check_format_info): Use flags2 for those flags, for identifying
546         the initial character of a scanf scanset, and for identifying
547         printf formats where the '0' flag is ignored with precision.
548
549 2000-09-25  Hans-Peter Nilsson  <hp@axis.com>
550
551         Changes below marked "here" add TABs on either or both sides,
552         covering start of line, up to any operand for all noted .*ASM.*_OP
553         definitions.  All callers changed.
554         * tm.texi: Make documented *_ASM.*_OP:s include spacing
555         (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
556         BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
557         ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
558         ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
559         Fix typos in description for LONG_LONG_TYPE_SIZE and
560         FINI_SECTION_ASM_OP.
561         * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
562         why these defaults don't have leading spacing.
563         * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
564         * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
565         UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
566         * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
567         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
568         PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
569         * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
570         * varasm.c (ASM_STABS_OP): Here.
571         * xcoffout.h (ASM_STABS_OP): Here.
572         * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
573         SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
574         INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
575         STRING_ASM_OP): Here.
576         * config/freebsd.h (IDENT_ASM_OP): Here.
577         * config/linux-aout.h (SET_ASM_OP): Here.
578         * config/linux.h (SET_ASM_OP): Here.
579         * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
580         INT_ASM_OP): Here.
581         * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
582         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
583         * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
584         * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
585         INT_ASM_OP): Here.
586         * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
587         SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
588         INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
589         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
590         FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
591         * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
592         CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
593         * config/a29k/udi.h (INT_ASM_OP): Here.
594         * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
595         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
596         SET_ASM_OP): Here.
597         * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
598         READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
599         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
600         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
601         ASM_STABD_OP): Here.
602         * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
603         COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
604         CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
605         BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
606         INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
607         SIZE_ASM_OP, STRING_ASM_OP): Here.
608         * config/alpha/vms.h (LINK_SECTION_ASM_OP,
609         READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
610         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
611         * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
612         (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
613         * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
614         Here.
615         * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
616         BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
617         * config/arm/coff.h (INT_ASM_OP): Here.
618         * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
619         * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
620         * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
621         INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
622         * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
623         * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
624         ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
625         STRING_ASM_OP): Here.  Update documentation copy in comments.
626         * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
627         * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
628         DATA_SECTION_ASM_OP): Here.
629         * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
630         Here.
631         * config/convex/convex.h (TEXT_SECTION_ASM_OP,
632         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
633         * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
634         BSS_SECTION_ASM_OP): Here.
635         * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
636         BSS_SECTION_ASM_OP): Here.
637         * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
638         Here.
639         * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
640         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
641         * config/h8300/h8300.h (ASM_WORD_OP): Here.
642         * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
643         BSS_SECTION_ASM_OP): Here.
644         * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
645         * config/i386/bsd.h (ASM_BYTE_OP): Here.
646         * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
647         * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
648         * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
649         Here.
650         * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
651         * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
652         Here.
653         * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
654         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
655         * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
656         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
657         SET_ASM_OP): Here.
658         * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
659         * config/i386/netbsd.h (INT_ASM_OP): Here.
660         * config/i386/openbsd.h (INT_ASM_OP): Here.
661         * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
662         IDENT_ASM_OP): Here.
663         * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
664         ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
665         LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
666         SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
667         * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
668         SHARED_BSS_SECTION_ASM_OP): Here.
669         * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
670         * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
671         DATA_SECTION_ASM_OP): Here.
672         * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
673         CONST_SECTION_ASM_OP): Here.
674         * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
675         * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
676         BSS_SECTION_ASM_OP): Here.
677         * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
678         * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
679         * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
680         BSS_ASM_OP): Here, but use trailing spaces.
681         * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
682         DATA_SECTION_ASM_OP): Here.
683         * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
684         Here.
685         * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
686         DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
687         * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
688         TDESC_SECTION_ASM_OP): Here.
689         * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
690         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
691         * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
692         Here.
693         * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
694         BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
695         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
696         UNALIGNED_DOUBLE_INT_ASM_OP): Here.
697         * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
698         COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
699         FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
700         SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
701         * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
702         * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
703         * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
704         SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
705         SET_ASM_OP): Here.
706         * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
707         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
708         * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
709         * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
710         * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
711         * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
712         * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
713         * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
714         GLOBAL_ASM_OP): Here.
715         * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
716         BSS_SECTION_ASM_OP): Here.
717         * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
718         * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
719         ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
720         DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
721         SKIP_ASM_OP): Here.
722         * config/m68k/newsgas.h (SET_ASM_OP): Here.
723         * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
724         FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
725         * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
726         SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
727         SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
728         but use trailing spaces.
729         * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
730         DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
731         FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
732         Here.
733         * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
734         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
735         * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
736         CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
737         DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
738         IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
739         GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
740         BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
741         CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
742         SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
743         VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
744         PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
745         ASM_BYTE_OP): Here.
746         * config/m88k/openbsd.h (SET_ASM_OP): Here.
747         * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
748         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
749         * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
750         UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
751         DTORS_SECTION_ASM_OP): Here.
752         * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
753         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
754         * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
755         BSS_SECTION_ASM_OP): Here.
756         * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
757         * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
758         * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
759         POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
760         CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
761         DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
762         * config/mips/mips.c (ABICALLS_ASM_OP): Here.
763         * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
764         Here.
765         * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
766         Here.
767         * config/mips/osfrose.h (SET_ASM_OP): Here.
768         * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
769         * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
770         * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
771         * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
772         Here.
773         * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
774         * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
775         * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
776         * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
777         * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
778         * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
779         Here.
780         * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
781         Here.
782         * config/rs6000/rs6000.h (SET_ASM_OP): Here.
783         * config/rs6000/sol2.h (ASM_STABN_OP): Here.
784         * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
785         Here.
786         * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
787         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
788         * config/sparc/linux.h (COMMON_ASM_OP): Here.
789         * config/sparc/linux64.h (COMMON_ASM_OP,
790         UNALIGNED_DOUBLE_INT_ASM_OP): Here.
791         * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
792         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
793         * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
794         * config/sparc/pbd.h (ASM_INT_OP): Here.
795         * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
796         * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
797         DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
798         * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
799         UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
800         * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
801         UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
802         UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
803         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
804         CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
805         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
806         EH_FRAME_SECTION_ASM_OP): Here.
807         * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
808         * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
809         Here.
810         * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
811         Here.
812         * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
813         TCOMMON_ASM_OP): Here.
814         * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
815         Here.
816         * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
817         ASM_BYTE_OP): Here.
818
819 2000-09-25  Richard Henderson  <rth@cygnus.com>
820
821         * expmed.c (store_bit_field): Adjust last change to not consider
822         any word-sized field naturally aligned.
823
824 2000-09-24  Richard Henderson  <rth@cygnus.com>
825
826         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
827         TFmode unordered compares properly.  Revalidate integer compare
828         operands.
829         (alpha_emit_setcc): New.
830         (alpha_emit_conditional_move): Revalidate integer compare operands.
831         * config/alpha/alpha-protos.h: Update.
832         * config/alpha/alpha.md (cmpdi): Allow general operands.
833         (sne): Use alpha_emit_setcc.
834         (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
835         (sunordered, sordered): New.
836
837 2000-09-24  Richard Henderson  <rth@cygnus.com>
838
839         * config/ia64/ia64-protos.h: Update.
840         * config/ia64/ia64.c (call_multiple_values_operation): Remove.
841         (ia64_expand_call): New.
842         (ia64_expand_prologue): Emit an alloc if we need extra input
843         registers.
844         (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
845         instruction if true.
846         (struct reg_flags): Add is_sibcall.
847         (rtx_needs_barrier): A sibcall does not use CFM et al.  Ignore USEs.
848         (emit_insn_group_barriers): Set flags.is_sibcall.  Remove hacks
849         for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
850         * config/ia64/ia64.h (PREDICATE_CODES): Update.
851         * config/ia64/ia64.md (call): Use ia64_expand_call.
852         (call_value): Likewise.
853         (sibcall, sibcall_value): New.
854         (call patterns): Remove extra expanders; tidy.
855         (sibcall_epilogue): New.
856         (set_bsp): Remove the extra USE.  Put the operand inside the UNSPEC.
857
858 2000-09-24  Richard Henderson  <rth@cygnus.com>
859
860         * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
861
862         * sibcall.c (skip_pic_restore): New.
863         (identify_call_return_value): Use it.
864
865 2000-09-24  Mark Mitchell  <mark@codesourcery.com>
866
867         * c-tree.texi: Moved here from cp/ir.texi.  Documented nested
868         functions.  Generalize to handle both C and C++.
869         * Makefile.in (c-tree.info): New target.
870         (info): Add c-tree.info.
871         
872 Sun Sep 24 09:15:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
873
874         * expr.c (store_field): If BITSIZE is negative, use size of type.
875         (expand_expr, case COMPONENT_EXPR): Likewise.
876
877 Sun 24-Sep-2000 11:40:23 BST  Neil Booth  <NeilB@earthling.net>
878
879         * cpplex.c: Update TODO comment.
880         * cpplib.c (do_error, do_warning): Merge common code of
881         do_error and do_warning into do_diagnostic.  Use it.
882         (do_diagnostic): New function.
883         * cpplib.h: Fix comment typo.
884
885 2000-09-24  Joseph S. Myers  <jsm28@cam.ac.uk>
886
887         * c-common.c (check_format_info): Warn for a wide character string
888         used as a non-wide format argument.
889
890 2000-09-24  Joseph S. Myers  <jsm28@cam.ac.uk>
891
892         * builtins.def (BUILT_IN_LLABS): Add.
893         * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
894         * c-common.c (c_common_nodes_builtins): Create builtin functions
895         __builtin_llabs, and plain llabs unless no_nonansi_builtins
896         outside of C99 mode.
897         (expand_tree_builtin): Handle BUILT_IN_LLABS.
898
899 Sat 23-Sep-2000 22:39:18 BST  Neil Booth  <NeilB@earthling.net>
900
901         * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
902         CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
903         * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
904         _cpp_free_toklist): No need to worry about extra dummy token
905         at the start of token lists any more.
906         (trigraph_ok): Only warn outside comments.
907         (skip_block_comment): Set and clear lexing_comment.
908         (skip_line_comment): Take a cpp_reader not cpp_buffer.
909         Set and clear lexing_comment.
910         (parse_number): Handle leading '.' indicated by pfile->seen_dot.
911         (check_long_token): Delete.
912         (lex_percent, lex_dot): New subroutines of lex_token to
913         handle lexing of '.' and '%' without lookback.
914         (lex_token): Use lex_dot and lex_percent.
915         (lex_line): Don't check for LIST_OFFSET.
916         (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
917         * cpplib.c (_cpp_parse_assertion): Similarly.
918         (cpp_push_buffer): Initialize extra_char.
919         * cpplib.h (LIST_OFFSET): Delete.
920         (struct cpp_buffer): New member extra_char.
921         (struct lexer_state): New members lexing_comment and seen_dot.
922
923 2000-09-23  Jason Merrill  <jason@redhat.com>
924
925         * config/rs6000/x-aix41 (CLIB): Define here.
926         * config/rs6000/t-aix43: Not here.
927         * config/rs6000/t-aix41: Or here.  Remove.
928         * configure.in: Don't use it.
929
930 2000-09-22  Jason Merrill  <jason@redhat.com>
931
932         * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
933         * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
934         * config.in: Regenerate.
935
936         * configure.in: Fix checks for assembler features when using a
937         one-tree assembler that has not yet been built.
938         Fix --disable-threads.
939
940 2000-09-19  Geoff Keating  <geoffk@cygnus.com>
941
942         * stmt.c (expand_asm_operands): Allow # in constraints.
943
944 2000-09-22  Jason Merrill  <jason@redhat.com>
945
946         * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
947
948         * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
949         function-local names.
950
951 2000-09-22  Brad Lucier <lucier@math.purdue.edu>
952             Mark Mitchell  <mark@codesourcery.com>
953
954         * toplev.c (warn_disabled_optimization): Declare new warning flag.
955         * flags.h (warn_disabled_optimization): Add it here.
956         * gcse.c (gcse_main): Add warning when disabled.
957         * invoke.texi: Document -Wdisabled-optimization.
958
959 2000-09-21  Jason Merrill  <jason@redhat.com>
960
961         * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
962
963         * dwarf2out.c (tree_add_const_value_attribute): New fn.
964         (gen_variable_die): Call it for non-definitions.
965
966         * dwarf2out.c (die_struct): Add die_mark field.
967         (mark_dies, unmark_dies): New fns.
968         (clear_die_sizes): Remove.
969         (print_die): Check die_symbol rather than die_offset.
970         (build_abbrev_table, output_pubnames, output_aranges): Check
971         die_mark rather than die_offset.
972         (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
973         Call mark_dies.
974
975 Thu 21-Sep-2000 18:19:05 BST  Neil Booth  <NeilB@earthling.net>
976
977         * cppfiles.c (lookup_include_file): Rename to open_file.
978         Always create a splay tree value, even on syscall failures.
979         Negative entries indicated by fd == -2.
980         Re-open files closed in the meantime.
981         (_cpp_fake_include): Create a negative splay tree entry.
982         (find_include_file, cpp_read_file): Update for function name
983         change.
984         * gcc.gd/cpp/mi4.c: Testcase.
985
986 2000-09-21  Nick Clifton  <nickc@redhat.com>
987
988         * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
989         ARM and THUMB modes.
990
991         * config/mcore/mcore.c: Fix compile time warnings.
992         * config/mcore/mcore-protos.h: Fix compile time warnings. 
993
994 2000-09-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
995
996         * configure.in: Correct test of gcc_cv_glibc.
997         * configure: Rebuilt.
998         * config.in: Rebuilt.
999
1000 2000-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1001
1002         * builtins.c (expand_builtin_fputs): Also expand when length!=1.
1003         (expand_builtin): Handle BUILT_IN_FWRITE.
1004
1005         * builtins.def (BUILT_IN_FWRITE): New entry.
1006
1007         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
1008
1009 Wed Sep 20 15:39:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1010
1011         * gcc.c (modify_target): New variable and struct.
1012         (process_command): Handle MODIFY_TARGET_NAME.
1013         * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
1014         * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
1015
1016         * c-decl.c (finish_decl): Add else's to avoid referencing
1017         TYPE_DOMAIN of an ERROR_MARK.
1018
1019 Wed Sep 20 21:44:31 2000  Denis Chertykov  <denisc@overta.ru>
1020
1021         * config/avr/avr.c (adjust_insn_length): Adjust lengths of
1022         `reload_in*' insns.
1023
1024 2000-09-19  Marek Michalkiewicz  <marekm@linux.org.pl>
1025
1026         * config/avr/avr.md (neghi2): Add alternative for input and output
1027         operands in different registers, as in negsi2.
1028         (*negsi2): Remove '*' from the name.  Use "movw" if available.
1029
1030 2000-09-19  Jim Wilson  <wilson@cygnus.com>
1031
1032         * config/ia64/crtbegin.asm (__dso_handle): Delete use of
1033         HAVE_GAS_HIDDEN macro.
1034
1035 Tue 19-Sep-2000 22:38:57 BST  Neil Booth  <NeilB@earthling.net>
1036
1037         * cpplex.c (lex_line): Drop the EOF token for unknown
1038         directives in assembler.
1039
1040 2000-09-19  David Edelsohn  <edelsohn@gnu.org>
1041
1042         * configure.in: Allow enable_threads_flag value of "aix".  Define
1043         thread_file as "aix" for AIX 4.3 and above.
1044         * configure: Regenerated.
1045
1046         * gthr-aix.h: New file.
1047
1048         * rs6000/t-aix43: Replace soft-float multilib with pthread.
1049         Remove 403 processor multilib match.  Fix rios2 processor multilib
1050         match.
1051
1052         * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
1053         to return to appropriate csect.
1054
1055 2000-09-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1056
1057         * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
1058         functions.
1059         (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
1060         (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
1061         BUILT_IN_PRINTF.
1062
1063         * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
1064         New entries.
1065
1066         * c-common.c (init_function_format_info): Handle __builtin_printf.
1067         Set `check_function_format_ptr'.
1068         (c_common_nodes_and_builtins): Set `puts_ftype' and
1069         `printf_ftype'.  Declare __builtin_putchar, __builtin_puts,
1070         __builtin_printf and printf.
1071
1072         * tree.c, tree.h (check_function_format_ptr): Declare.
1073
1074 Tue 19-Sep-2000 18:26:57 BST  Neil Booth  <NeilB@earthling.net>
1075
1076         * cppfiles.c (read_include_file): Take no special action for
1077         zero-length files.
1078
1079 2000-09-19  Bernd Schmidt  <bernds@redhat.co.uk>
1080
1081         * final.c (insn_current_reference_address): Use INSN_SHUID of seq
1082         rather than that of branch.
1083         (shorten_branches): Don't increment insn_current_address twice.
1084
1085         Undo most of the Wed Jan 27 23:39:53 1999 patch:
1086         * loop.h (struct induction): Delete members derived, ix and last_use.
1087         (struct loop_ivs): Delete members first_increment_giv and
1088         last_increment_giv.
1089         * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
1090         recombine_givs): Delete functions.
1091         (find_and_verify_loops): Don't initialize cont_dominator.
1092         (strength_reduce): Lose code to try to find bivs that can be
1093         expressed as givs of another biv, and to convert biv increments
1094         into givs.
1095         Lose loop_scan_start variable, always use loop->scan_start.
1096         Don't call recombine_givs.  Don't handle derived givs.
1097         (record_giv): Don't initialize derived and last_use fields.
1098         (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
1099         givs.
1100         * unroll.c (derived_regs): Delete static variable.
1101         (unroll_loop): Don't initialize it.
1102         (copy_loop_body): Lose code to handle derived givs.
1103         (find_splittable_givs): Don't check for givs made from biv
1104         increments.
1105         Don't set derived_regs.
1106
1107         Fix misapplied earlier patch:
1108         * config/sh/sh.md (floatsisf_ie): Reenable.  Remove explicit reference
1109         to fpul.
1110         (floatsisf2): Generate floatsisf_ie by default.
1111         (floatsisf_i4): Conditional on TARGET_SH4.
1112
1113         (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
1114         predicate for the expanders.
1115
1116 2000-09-19  Richard Henderson  <rth@cygnus.com>
1117
1118         * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
1119         in addition to pentium and pentiumpro symbols.
1120         (CPP_CPU_DEFAULT_SPEC): Likewise.
1121
1122         * c-typeck.c (c_expand_asm_operands): Restore the output tree
1123         after expanding.
1124
1125         * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
1126         if the tree has side effects.
1127         (warn_if_unused_value): Do not warn about void constructs.
1128
1129         * c-decl.c (poplevel): Invoke warn_about_unused_variables.
1130
1131         * unroll.c (copy_loop_body): Update LABEL_NUSES before
1132         calling invert_jump.
1133
1134 2000-09-18  Geoff Keating  <geoffk@cygnus.com>
1135
1136         * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
1137         into anything.
1138
1139 2000-09-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1140
1141         * Makefile.in (c-common.o): Depend on diagnostic.h.
1142
1143         * c-common.c: Include diagnostic.h.
1144         (tfaff): Delete.
1145         (status_warning): New function.
1146         (check_format_info, maybe_read_dollar_number, check_format_types,
1147         finish_dollar_format_checking, check_function_format): Accept a
1148         `status' parameter.  All callers changed.
1149
1150         * c-common.h (check_function_format): Accept a `status' parameter.
1151
1152         * c-typeck.c: Update call to `check_function_format'.
1153
1154 2000-09-18  Richard Henderson  <rth@cygnus.com>
1155
1156         * c-decl.c (c_expand_body): Call mark_varargs before
1157         expand_function_start.
1158
1159 2000-09-18  Geoff Keating  <geoffk@cygnus.com>
1160
1161         * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
1162         * config/rs6000/eabi-ci.asm: Likewise.
1163
1164 2000-09-18  Richard Henderson  <rth@cygnus.com>
1165
1166         * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
1167         for BImode.
1168
1169 2000-09-18  Jim Wilson  <wilson@cygnus.com>
1170
1171         * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
1172         before passing it to fold_rtx_mult_add.
1173
1174         * unroll.c (final_giv_value): Pass increment through
1175         extend_value_for_giv before passing it to emit_iv_add_mult.
1176
1177         * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
1178         paradoxical subreg, then directly substitute the replacement and
1179         return.
1180
1181 Mon 18-Sep-2000 22:12:44 BST  Neil Booth  <NeilB@earthling.net>
1182
1183         * cpp.texi: Update documentation, including some clarifications,
1184         the treatment of various newline combinations, and space between
1185         backslash and newline.
1186
1187 Mon Sep 18 21:00:47 2000  J"orn Rennecke <amylaar@redhat.co.uk>
1188
1189         * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
1190         Replace ASM_OUTPUT_LABELREF with assemble_name.
1191
1192 Mon Sep 18 20:26:50 2000  J"orn Rennecke <amylaar@redhat.co.uk>
1193
1194         * sh.c (addsubcosts): CONST is not cheap.
1195         (find_barrier): For Sh1, take alignment after jumps into account.
1196
1197 2000-09-15  Andrew Haley  <aph@redhat.com>
1198
1199         * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
1200         remove all SETs of SUBREGs of hard registers.
1201         * function.c (purge_hard_subreg_sets): New function.
1202         (purge_single_hard_subreg_set): New function.
1203         * rtl.h: (purge_hard_subreg_sets): New function.
1204
1205 2000-09-18  Richard Henderson  <rth@cygnus.com>
1206
1207         * config/ia64/ia64-protos.h: Update.
1208         * config/ia64/ia64.c (signed_inequality_operator): New.
1209         (ia64_expand_compare): New.
1210         (ia64_register_move_cost): Handle PR_REGS moves.
1211         (ia64_secondary_reload_class): Require a GR when moving to a PR.
1212         (struct reg_write_state): Add written_by_and/or.
1213         (struct reg_flags): Add is_and/or.
1214         (rws_update): Set them.
1215         (rws_access_regno): Test them to allow parallel comparisons.
1216         (rtx_needs_barrier): Recognize parallel comparisons.
1217         (emit_insn_group_barriers): Set prev_insn after a call stop bit.
1218         Call recog_memoized; ignore pred_rel_mutex.
1219         (emit_predicate_relation_info): Don't call find_basic_blocks here.
1220         (ia64_reorg): Do it here instead.
1221         * config/ia64/ia64.h: s/CCmode/BImode/g
1222         (MODES_TIEABLE_P): Don't tie BImode.
1223         (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
1224         (CONST_COSTS): Pick sensible values for CONST_INT based on context.
1225         (RTX_COSTS): Make multiply 4 insns.
1226         (MEMORY_MOVE_COST): New.
1227         (PREDICATE_CODES): Update.
1228         * config/ia64/ia64.md: s/CCmode/BImode/g
1229         (movcci, movbi): New.
1230         (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
1231         (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
1232         (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
1233         (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
1234         (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
1235         (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
1236         (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
1237         (mulsi, muldi): Use xmpy not xma.
1238         (cmpbi): New.
1239         (movcc, movcc_internal): Remove.
1240         (branch expanders): Use ia64_expand_compare.
1241         (setcc expanders): Likewise.
1242         (cmov insns): Use move_operand and ia64_move_ok.
1243         (pred_rel_mutex): Use unspec not unspec_volatile.  Prevent the
1244         scheduler from moving it past a use.
1245         * config/ia64/build.hacks: Remove.
1246
1247 Mon 18-Sep-2000 19:21:35 BST  Neil Booth  <NeilB@earthling.net>
1248
1249         * cpphash.h (HASHSTEP): Take character rather than pointer
1250         to character.
1251         (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
1252
1253         * cpphash.c (cpp_loookup): Update for new HASHSTEP.
1254
1255         * cpplex.c (auto_expand_name_space, trigraph_replace,
1256         backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
1257         IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
1258         BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
1259         KNOWN_DIRECTIVE): Delete.
1260
1261         (handle_newline, check_long_token, skip_escaped_newlines,
1262         unterminated): New functions.
1263         (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
1264
1265         (parse_identifier): Was parse_name, new implementation.
1266         (skip_line_comment, skip_block_comment, skip_whitespace,
1267         parse_number, parse_string, trigraph_ok, save_comment,
1268         adjust_column, _cpp_get_line): New implementations.
1269
1270         (lex_token): New function.  Lexes a token at a time, looking
1271         forwards.  Contains most of the guts of the old lex_line.
1272         (lex_line): New implementation, using lex_token to obtain
1273         individual tokens.
1274         (cpp_scan_buffer): Use the token's line, not the list's line.
1275
1276         * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
1277          New implementations.
1278         (do_assert): Don't bother setting the answer's list's line.
1279         (cpp_push_buffer): Initialise new pfile and read_ahead members
1280         of struct cpp_buffer.
1281
1282         * cpplib.h (cppchar_t): New typedef.
1283         (struct cpp_buffer): read_ahead, pfile and col_adjust are
1284         new members.
1285         (struct lexer_state): New structure that determines the state
1286         and behaviour of the lexer.
1287         (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
1288         (struct cpp_reader): New member "state". Rename
1289         multiline_string_line and multiline_string_column. Delete
1290         col_adjust, in_lex_line members.
1291         (CPP_BUF_COLUMN): Update.
1292
1293 2000-09-18  Richard Henderson  <rth@cygnus.com>
1294
1295         * combine.c (simplify_comparison): Shift a NOT out of a single
1296         bit test.
1297
1298         * combine.c (if_then_else_cond): Canonicalize BImode true to
1299         STORE_FLAG_VALUE.
1300         * explow.c (trunc_int_for_mode): Likewise.
1301
1302         * combine.c (combine_simplify_rtx): Use gen_unary to distribute
1303         the NOT for De Morgan's rule.
1304         * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
1305         of a comparison to the reverse comparison.
1306
1307         * combine.c (try_combine): Allow split to create a single insn.
1308
1309         * machmode.def: Add BImode.  Add a column for bitsize.
1310         * machmode.h (DEF_MACHMODE): Adjust for extra column.
1311         (GET_MODE_BITSIZE): Use it.
1312         * rtl.c (DEF_MACHMODE): Adjust for extra column.
1313         (mode_bitsize): New.
1314         (mode_mask_array): Use bitsize.
1315         * combine.c (combine_simplify_rtx): Require inner and outer
1316         modes to match on nonzero_bits optimizations.
1317
1318 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
1319
1320         * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
1321         its entry in spill_reg_store.
1322         * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
1323         * sh.c (reg_no_subreg_operand): New function.
1324         * sh-protos.h (reg_no_subreg_operand): Declare it.
1325         * sh.h (PREDICATE_CODES): Add it.
1326         * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
1327         input operand that needs to be in fpul.
1328         (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
1329         * sh.c (find_barrier): Take into account that machine_dependent_reorg
1330         might add new insns.
1331
1332 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
1333
1334         * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
1335         MAYBE_DEAD.
1336         (sh_expand_epilogue): Take the PIC register into account when
1337         computing the frame size.
1338
1339         * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
1340         * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
1341         LABEL_REFs with a PIC-safe unspec.
1342
1343 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1344
1345         * c-common.c (check_format_info): Properly save the argument
1346         number and parameter for $ operand number formats in case width
1347         and precision arguments are also used.  Allow printf width and
1348         precision arguments to have operand numbers even if none was
1349         specified for the main format, since this is OK for %*.*m.  Only
1350         object to missing $ operand number if the format used requires an
1351         argument.
1352
1353 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1354
1355         * c-common.c (format_char_info): Add 'W' flag to comment.
1356         (print_char_table, scan_char_table): Use it.
1357         (check_format_info): Use the 'W' flag to determine whether a
1358         format argument is written into.
1359
1360 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1361
1362         * c-common.c (check_format_types): Reorganise and clean up,
1363         checking earlier for ERROR_MARKs and making cur_type into its
1364         TYPE_MAIN_VARIANT where convenient.
1365
1366 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1367
1368         * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
1369
1370 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
1371
1372         * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
1373
1374         * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
1375         * i386.c (struct builtin_description): New.
1376         (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
1377         (mmx_reg_operand): Declare MODE arg as unused.
1378         (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
1379         ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
1380         ix86_expand_binop_builtin, ix86_expand_store_builtin,
1381         ix86_init_builtins, ix86_expand_builtin): New functions.
1382         * i386.h (ix86_builtins): New enumeration.
1383         (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
1384         * i386.md (attr length_immediate): 0 for mmx/sse types.
1385         (attr prefix_0f): 1 for mmx/sse types.
1386         (setcc_2): Remove "*" so we get gen_setcc_2.
1387         (emms): Account for changed register numbering.  Set "memory" attr
1388         to unknown.
1389         (sfence): Set "memory" attr to unknown.
1390
1391 2000-09-18  Andreas Jaeger  <aj@suse.de>
1392
1393         * configure.in: Define _GNU_SOURCE only when using the GNU C
1394         Library.
1395         * configure: Regenerated.
1396         * config.in: Regenerated.
1397
1398 2000-09-17  Mark Mitchell  <mark@codesourcery.com>
1399
1400         * cppinit.c (cpp_init): Don't use ANSI prototypes.
1401         * flow.c (flow_dump_loop): Likewise.
1402         (flow_loops_dump): Likewise.
1403
1404         * c-typeck.c (c_start_case): Fix typo.
1405
1406 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
1407
1408         * c-decl.c (grokdeclarator): Don't give a warning about defaulting
1409         to int for plain complex which defaults to complex double.  Do
1410         warn about defaulting to complex double if pedantic.  Warn about
1411         complex integer types if pedantic.  Warn about complex types if
1412         pedantic and not in C99 mode.
1413         * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
1414         for complex conjugation.
1415
1416 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
1417
1418         * contrib.texi: Update my entry.
1419
1420 Sun Sep 17 18:48:32 2000  Denis Chertykov  <denisc@overta.ru>
1421
1422         * config/avr/avr.md (mcu_enhanced): New attribute.
1423         (mcu_mega): Likewise.
1424         (extendhisi2): Use mcu_enhanced.
1425         (zero_extendhisi2): Likewise.
1426         (call_insn): Use mcu_enhanced and mcu_mega.
1427         (call_value_insn): Likewise.
1428         (*sbrx_branch): Use mcu_mega.
1429         (*sbrx_and_branchsi): Likewise.
1430         (*sbrx_and_branchhi): Likewise.
1431         (*tablejump_lib): Likewise.
1432
1433 Sun Sep 17 10:46:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1434
1435         * alias.c (true_dependence): Allow non-unchanging read to conflict
1436         with unchanging write.
1437
1438         * expr.c (store_constructor_field): Accept ALIAS_SET arg.
1439         (store_constructor): Pass alias_set to it.
1440
1441         * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
1442         TYPE_MAIN_VARIANT of ERROR_MARK.
1443         * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
1444
1445         * simplify-rtx.c (simplify_unary_operation): Add cases
1446         FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
1447
1448 2000-09-17  Bernd Schmidt  <bernds@redhat.co.uk>
1449
1450         * expr.h (emit_library_call, emit_library_call_value): Delete
1451         declarations.
1452         * rtl.h (enum libcall_type): New.
1453         (emit_library_call, emit_library_call_value): Change fn_type arg to
1454         be of type enum libcall_type.
1455         * calls.c: Likewise for the function definitions.  Several callers
1456         throughout changed to use the new enumeration appropriately.
1457         (emit_library_call_value_1): Likewise.  Put back code to make libcall
1458         blocks of equal form, but only use it for the two new higher
1459         enumeration values.
1460
1461 2000-09-16  Mark Mitchell  <mark@codesourcery.com>
1462
1463         Convert the C front-end to use function-at-a-time mode.
1464         * c-common.h: Include splay-tree.h.
1465         (C_DECLARED_LABEL_FLAG): New macro.
1466         (struct language_function): Add x_scope_stmt_stack and
1467         x_function_name_declared_p.
1468         (RECHAIN_STMTS): Move definition.
1469         (lang_statment_code_p): Likewise.
1470         (lang_expand_stmt): Likewise.
1471         (lang_expand_decl_stmt): New variable.
1472         (lang_expand_function_end): Likewise.
1473         (current_scope_stmt_stack): New function.
1474         (add_decl_stmt): Likewise.
1475         (add_scope_stmt): Likewise.
1476         (mark_stmt_tree): Likewise.
1477         (struct c_lang_decl): New structure.
1478         (DECL_SAVED_TREE): Define.
1479         (c_mark_lang_decl): New function.
1480         (c_expand_start_cond): Change prototype.
1481         (c_finish_then): New function.
1482         (c_finish_else): Likewise.
1483         (current_function_name_declared): Remove.
1484         (set_current_function_name_declared): Likewise.
1485         (mark_c_language_function): Declare.
1486         (case_compare): Likewise.
1487         (c_add_case_label): Likewise.
1488         (c_expand_expr): Likewise.
1489         (c_safe_from_p): Likewise.
1490         * c-common.c (lang_expand_function_end): New variable.
1491         (struct if_elt): Add if_stmt.
1492         (c_expand_start_cond): Add the if-statement to the statement-tree,
1493         rather than generating RTL.
1494         (c_finish_then): New function.
1495         (c_expand_start_else): Don't generate RTL.
1496         (c_finish_else): New function.
1497         (c_expand_expr_stmt): Don't generate RTL.
1498         (statement_code_p): Add SCOPE_STMT.
1499         (case_compare): New function.
1500         (c_add_case_label): Likewise.
1501         (mark_stmt_tree): Likewise.
1502         (c_mark_lang_decl): Likewise.
1503         (mark_c_language_function): Likewise.
1504         (c_expand_expr): Likewise.
1505         (c_safe_from_p): Likewise.
1506         * c-decl.c (c_stmt_tree): New variable
1507         (c_scope_stmt_stack): Likewise.
1508         (c_function_name_declared_p): Likewise.
1509         (lang_expand_expr_stmt): Remove.
1510         (poplevel): Don't call output_inline_function for nested
1511         functions.
1512         (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
1513         `extern' function.
1514         (redeclaration_error_message): Change means of computing whether
1515         or not a function is nested.
1516         (lookup_label): Don't call label_rtx.
1517         (init_decl_processing): Add more GC roots.
1518         (start_decl): Add DECL_STMTs to the statement-tree, rather than
1519         calling rest_of_decl_compilation.
1520         (finish_decl): Don't call expand_decl.
1521         (store_parm_decls): Begin the statement-tree, but don't generate
1522         RTL.
1523         (finish_function): Tie off the statement-tree.  Call c_expand_body
1524         if appropriate.
1525         (c_expand_body): New function.
1526         (push_c_function_context): Save more information.
1527         (pop_c_function_contxt): Likewise.
1528         (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
1529         (lang_mark_tree): Mark it.
1530         (current_stmt_tree): Adjust.
1531         (current_scope_stmt_stack): New function.
1532         (do_case): Remove.
1533         (set_current_name_declared): Likewise.
1534         (c_begin_compound_stmt): Define.
1535         (c_expand_decl_stmt): Likewise.
1536         * c-lang.c: Include rtl.h and expr.h.
1537         (lang_init): Set more language-specific hooks.
1538         * c-lex.c: Include expr.h.
1539         * c-parse.in: Changes throughout to add statements to the
1540         statement-tree, rather than generating RTL after every statement.
1541         * c-semantics.c (lang_expand_decl_stmt): Define.
1542         (add_decl_stmt): New function.
1543         (add_scope_stmt): Likewise.
1544         (finish_stmt_tree): Tweak.
1545         (genrtl_expr_stmt): Likewise.
1546         (genrtl_decl_stmt): Handle local labels, and call
1547         lang_expand_decl_stmt if required.
1548         (genrtl_for_stmt): Fix line-number handling.
1549         (genrtl_case_label): Handle cleanups.
1550         (genrtl_asm_stmt): Don't call combine_strings.
1551         (genrtl_compound_stmt): Simplify.
1552         (expand_stmt): Handle SCOPE_STMTs.
1553         * c-tree.h (struct lang_decl): New structure.
1554         (C_DECLARED_LABEL_FLAG): Remove.
1555         (c_begin_compound_stmt): Declare.
1556         (c_expand_decl_stmt): Likewise.
1557         (c_expand_start_case): Rename to c_start_case.
1558         (c_finish_case): New function.
1559         * c-typeck.c (start_init): Tweak setting of
1560         constructor_incremental.
1561         (c_expand_asm_operands): Tweak error-handling.  Add to the
1562         statement-tree.
1563         (c_expand_return): Add to the statement-tree.
1564         (c_expand_start_case): Rename to ...
1565         (c_start_case): ... this.
1566         (struct c_switch): New type.
1567         (switch_stack): New variable.
1568         (do_case): Simplify.
1569         (c_finish_case): New function.
1570         * dependence.c: Include expr.h.
1571         (enum dependence_type): Change spelling of enumerals.
1572         (check_node_dependence): Adjust.
1573         * expr.h (lang_safe_from_p): Declare.
1574         (safe_from_p): Likewise.
1575         * expr.c (lang_safe_from_p): New variable.
1576         (safe_from_p): Give it external linkage.  Use lang_safe_from_p.
1577         * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
1578         * toplev.c (rest_of_decl_compilation): Robustify.
1579         * tree.c (contains_placeholder_p): Likewise.
1580         * Makefile.in: Update dependencies.
1581         * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
1582         * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
1583         (objc_expand_function_end): New function.
1584         (finish_method_def): Use it.
1585         (init_objc): Initialize more language-specific hooks.
1586         * objc/Make-lang.in: Update dependencies.
1587
1588 2000-09-16  Geoffrey Keating  <geoffk@cygnus.com>
1589
1590         * configure.in: Define macros that affect features before
1591         testing for features.  Don't define _XOPEN_SOURCE.
1592         * configure: Regenerated.
1593         * config.in: Regenerated.
1594
1595 Sat Sep 16 19:42:50 EDT 2000  John Wehle  (john@feith.com)
1596
1597         * rtlanal.c (rtx_varies_p): Volatile asms vary.
1598         (rtx_unstable_p): Restructure code.  Volatile asms
1599         are unstable.
1600
1601 Sat Sep 16 14:35:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1602
1603         * function.h (no_debugging_symbols): New field.
1604         * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
1605         Initialize no_debugging_symbols.
1606         (output_inline_function): Save and restore write_symbols and set from
1607         no_debugging_symbols.
1608         * toplev.c (rest_of_compilation): Call save_for_inline.
1609         * tree.h: Update comment.
1610
1611         * stor-layout.c (place_field): Don't do anything if field or
1612         its type are ERROR_MARK.
1613
1614 Sat Sep 16 19:14:00 2000  Laurynas Biveinis <lauras@softhome.net>
1615
1616         * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
1617         (read_include_file): Ensure inc->mmaped is initialized.
1618
1619 2000-09-16  Richard Henderson  <rth@cygnus.com>
1620
1621         * cppiles.c (purge_cache): Use PTR not caddr_t.
1622
1623 2000-09-16  Hans-Peter Nilsson  <hp@axis.com>
1624
1625         * gcc.c: In description for %{<S}, say the option removed is -S.
1626         * invoke.texi (Spec Files): Ditto.
1627
1628 2000-09-16  Andreas Jaeger  <aj@suse.de>
1629
1630         * configure.in: Always define _GNU_SOURCE to make interfaces
1631         visible that were hidden by only defining _GNU_SOURCE.
1632         * configure: Regenerated.
1633
1634 Sat 16-Sep-2000 08:13:45 BST  Neil Booth  <NeilB@earthling.net>
1635
1636         * cpplex.c (push_macro_context): Set an argument's level after
1637         calling parse_args.  We could loop infinitely otherwise.
1638
1639 2000-09-15  Tom Tromey  <tromey@cygnus.com>
1640
1641         * configure, config.in: Rebuilt.
1642         * configure.in: Check for iconv.h.  Define _XOPEN_SOURCE.
1643
1644 2000-09-15  Greg McGary  <greg@mcgary.org>
1645
1646         * cppmacro.c (check_trad_stringification): Check token
1647         text pointers against limit before dereferencing.
1648
1649 2000-09-15  Joseph S. Myers  <jsm28@cam.ac.uk>
1650
1651         * c-common.c (format_wanted_type): New structure.
1652         (check_format_types): New function.
1653         (check_format_info): Pass all checking of types of format
1654         arguments, including width and precision arguments, to this new
1655         function.
1656
1657 2000-09-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1658
1659         * BUGS: Remove file.
1660
1661 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
1662
1663         * config/alpha/alpha.c (override_options): ev6 cache latencies
1664         from Richard Henderson.  Don't allow -mmemory-latency=L0.
1665
1666         * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
1667         (TARGET_OPTIONS): Add tune=.
1668         (alpha_tune_string): Declare.
1669         * config/alpha/alpha.c (override_options): Add cpu_table.
1670         Use alpha_cpu_string first to set both alpha_cpu and target_flags
1671         and then alpha_tune_string to set alpha_cpu only.
1672         Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
1673         * config/alpha/elf.h (ASM_FILE_START): Likewise.
1674         * config/alpha/osf.h (ASM_FILE_START): Likewise.
1675         * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
1676
1677 Fri Sep 15 19:45:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
1678
1679         * i386-protos.h (no_comparison_operator, uno_comparison_operator):
1680         Remove.
1681         (ix86_comparison_operator, ix86_cc_mode): Declare
1682         * i386.h (CCGC, CCGCO): New modes.
1683         (SELECT_CC_MODE): Move offline to ....
1684         * i386.c (ix86_cc_mode): .... here; use new modes.
1685         (ix86_comparison_operator): New.
1686         (fcmov_comparison_operator): Ensure proper mode.
1687         (put_condition_mode): More sanity checking.
1688         (ix86_match_ccmode): Handle new modes.
1689         (ix86_expand_fp_compare): GEU requires CCmode.
1690         (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
1691         doing it by hand.
1692         * i386.md (cmp?i_ccz_1): Remove
1693         (cmp?i_ccno_1): Use ix86_match_ccmode.
1694         (cmp?i_minus_1): New.
1695         (cmpsi_1): New expander.
1696         (cmpqi_ext_1): Use match_ccmode
1697         (cmpqi_ext_3): New expander.
1698         (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
1699         (cmpqi_ext_4): Use match_ccmode.
1700         (add?i_?): Use match_ccmode.
1701         (add?i_6): New.
1702         (test?i_ccz_1): Remove
1703         (test?i_1): New.
1704         (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
1705         (testqi_ext_0): Use ix86_match_ccmode.
1706         (*xorqi_cc_ext_1): Use ix86_match_ccmode.
1707         (xorqi_cc_ext_1): New expander.
1708         (shift patterns): Use CCGOCmode for all shifts except for sar.
1709         (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
1710         (setcc_3, jcc_3, miv?icc_c): Remove.
1711
1712 2000-09-15  Will Cohen  <wcohen@redhat.com>
1713
1714         * dwarf2out.c (add_const_value_attribute): Changed array into a
1715         xmalloced object, so it exists after function exit.
1716         (free_AT): Added case for dw_val_class_float to free allocated
1717         memory.
1718
1719 2000-09-15  Kazu Hirata  <kazu@hxi.com>
1720
1721         * config/i386/i386.md: Fix a comment typo.
1722         * gcc.c: Fix formatting.
1723
1724 2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
1725
1726         * optabs.c (emit_libcall_block): If target is a user variable,
1727         copy to a temporary first.
1728         * expr.c (convert_move): When generating a libcall, make a libcall
1729         block.
1730         * calls.c (emit_library_call_value_1): Don't create a libcall
1731         sequence here; our caller will in most cases do it.
1732
1733         * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
1734         MACH into FPUL.
1735         (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
1736         * sh.md (reload_outsf): Generate recognizable patterns for
1737         TARGET_SH3E.
1738         (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
1739         fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
1740         fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
1741         truncdfsf2_i4): Change not to use explicit references to fpul.
1742         (floatsisf2_ie): Remove USE of fpscr.
1743         (floatsisf2): Change default expansion to match this.
1744         (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
1745         unused patterns.
1746
1747 2000-09-15  Richard Henderson  <rth@cygnus.com>
1748
1749         * expmed.c (store_bit_field): Consider naturally aligned
1750         memory for direct reference.
1751
1752 2000-09-15  Richard Henderson  <rth@cygnus.com>
1753
1754         * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
1755         AND addresses into alias set 0.
1756         (alpha_expand_unaligned_store): Likewise.
1757         (alpha_expand_unaligned_load_words): Likewise.
1758         (alpha_expand_unaligned_store_words): Likewise.
1759
1760 2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
1761
1762         * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
1763         * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
1764         is defined.
1765         * config/mips/mips.c (mips_va_arg): Args passed by reference have a
1766         rsize of UNITS_PER_WORD.
1767
1768 Fri 15-Sep-2000 06:49:07 BST  Neil Booth  <NeilB@earthling.net>
1769
1770         * cpplex.c (ON_REST_ARG): Correct the test.
1771         (maybe_paste_with_next): Duplicate a token that fail pasting,
1772         and clear its PASTE_LEFT flag, so that nested pasting attempts
1773         do not occur.
1774
1775 2000-09-14  Richard Henderson  <rth@cygnus.com>
1776
1777         * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
1778         * cse.c (rtx_cost): Likewise.
1779         * optabls.c (expand_binop): Likewise.
1780         (expand_twoval_binop, prepare_cmp_insn): Likewise.
1781         * regclass.c (copy_cost): Likewise.
1782         * reload1.c (reload_cse_move2add): Likewise.
1783
1784 2000-09-14  Joseph S. Myers  <jsm28@cam.ac.uk>
1785
1786         * c-parse.in (reswords): Add _Complex.
1787
1788 2000-09-14  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
1789
1790         * gcc.1: Delete documentation for -undef preprocessor option.
1791
1792 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
1793
1794         * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
1795         STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
1796         * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
1797         Remove undefine before config/elfos.h.
1798         * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
1799
1800 2000-09-14  Kazu Hirata  <kazu@hxi.com>
1801
1802         * invoke.texi (H8/300 Options): Add -ms2600.
1803         * config/h8300.c (h8300_init_once): Output an error when -ms2600
1804         is used without -ms.
1805         * config/h8300.h (TARGET_MAC): New.
1806         (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
1807         (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
1808         machine other than H8/S2600.
1809         * config/h8300.md: Accept mac instructions on the H8/S2600 instead
1810         of the H8/S2000.
1811
1812 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>, Bernd Schmidt  <bernds@redhat.co.uk>
1813
1814         * reload.c (find_reloads_address_1): Generate reloads for auto_inc
1815         pseudos that refer to the original pseudos, not only to their
1816         equivalent memory locations.
1817
1818 Thu Sep 14 12:10:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1819
1820         * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
1821         when making new MEM.
1822
1823         * Makefile.in (LN): Remove duplicate definition.
1824
1825 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
1826
1827         From Joern Rennecke:
1828         * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
1829         on an insn and function_invariant_p returns nonzero for the source,
1830         add a REG_EQUAL note.
1831
1832 Thu Sep 14 00:51:57 EDT 2000  John Wehle  (john@feith.com)
1833
1834         * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
1835         conflict with frame_pointer_rtx.
1836
1837 2000-09-13  Kazu Hirata  <kazu@hxi.com>
1838
1839         * loop.c: Fix formatting.
1840         * loop.h: Likewise.
1841
1842 2000-09-13  Richard Henderson  <rth@cygnus.com>
1843
1844         * config/ia64/ia64.md (divsf3): New.
1845         (divsf3_internal_lat, divsf3_internal_thr): New.
1846         (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
1847         (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
1848         (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
1849         (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
1850         (nmadddf4_alts, nmadddf4_trunc): New.
1851         (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
1852         (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
1853         (multf3_truncsf_alts, multf3_truncdf_alts): New.
1854         (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
1855         (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
1856         (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
1857         (nmaddtf4_truncdf_alts): New.
1858         (recip_approx): Don't predicate.
1859
1860 2000-09-13  Richard Henderson  <rth@cygnus.com>
1861
1862         * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
1863
1864 2000-09-13  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1865
1866         * flags.h (flag_dump_rtl_in_asm): Declare.
1867         * toplev.c (flag_dump_rtl_in_asm): Define.
1868         (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
1869         if -dP is specified.
1870         * rtl.h (print_rtx_head): Declare.
1871         * print-rtl.c (print_rtx_head): Define.
1872         (print_rtx): Print the string pointed to by print_rtx_head
1873         at beginning of each dump line.
1874         (print_rtl): Likewise.
1875         (print_rtl_single): Likewise.
1876         * final.c (final_scan_insn): Dump the insn in the assembly
1877         file for debugging.
1878         * gcc.1: Document -dP option.
1879         * invoke.texi (Debugging Options): Likewise.
1880
1881 2000-09-13  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1882
1883         * md.texi (Machine Constraints): Document the 68HC11 constraints.
1884         * install.texi (Configurations): Document the 68HC11&68HC12 port.
1885         * invoke.texi (Option Summary, M68hc1x Options): Document the options.
1886
1887 Tue Sep 12 13:51:13 2000  Denis Chertykov  <denisc@overta.ru>
1888
1889         * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
1890         * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
1891         (*clrstrqi): Likewise.
1892         (xorhi3,xorsi3,absqi2): Likewise.
1893         (one_cmplhi2,one_cmplsi2): Likewise.
1894         (addsi3): Two stupid constraint alternatives removed.
1895         (extendhisi2): Use `movw' for enhanced avr cores.
1896         (zero_extendhisi2): Likewise.
1897
1898 Wed Sep 13 02:31:23 EDT 2000  John Wehle  (john@feith.com)
1899
1900         * alias.c (find_base_term): Use frame_pointer_rtx
1901         when handling an ADDRESSOF.
1902
1903         * cse.c (canon_hash): Handle USE of BLKmode memory.
1904         (cse_insn): Outgoing arguments for a libcall don't
1905         affect any recorded expressions.
1906
1907 2000-09-12  Tom Tromey  <tromey@cygnus.com>
1908
1909         * configure, config.in: Rebuilt.
1910         * configure.in: Check for iconv, nl_langinfo, langinfo.h.
1911
1912 2000-09-12  Jakub Jelinek  <jakub@redhat.com>
1913
1914         * c-lex.c (lex_string): Use charwidth to compute bytemask.
1915         * expr.c (expand_expr): Don't optimize constant array references
1916         initialized with wide string constants.
1917
1918 2000-09-13  Michael Hayes  <mhayes@cygnus.com>
1919
1920         * loop.c (note_set_pseudo_multiple_uses): Correct.
1921
1922 2000-09-12  Jim Wilson  <wilson@cygnus.com>
1923
1924         * ifcvt.c (noce_process_if_block): If A and B are the same, and no
1925         else block, and X has side-effects, then fail.
1926
1927 2000-09-12  Greg McGary  <greg@mcgary.org>
1928
1929         * config/mips/mips-protos.h
1930         (trap_cmp_op, mips_gen_conditional_trap): New func decls.
1931         * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
1932         (PREDICATE_CODES): Add "trap_cmp_op".
1933         * config/mips/mips.c
1934         (trap_cmp_op, mips_gen_conditional_trap): New functions.
1935         * config/mips/mips.md (trap, conditional_trap): New patterns.
1936
1937 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
1938
1939         * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
1940         pointer.
1941
1942 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1943
1944         * builtins.c (built_in_decls): New array.
1945         (expand_builtin_fputs): New function.
1946         (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
1947
1948         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
1949
1950         * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
1951
1952         * tree.h (built_in_decls): New array.
1953
1954 Tue Sep 12 08:53:57 2000  Jeffrey A Law  (law@cygnus.com)
1955
1956         * convex.md: Use "+" instead of "=" for outputs wrapped in a
1957         STRICT_LOW_PART.
1958         * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
1959
1960 2000-09-12  Kazu Hirata  <kazu@hxi.com>
1961
1962         * haifa-sched.c: Fix formatting.
1963
1964         * genattrtab.c: Fix formatting.
1965
1966         * unroll.c: Fix formatting.
1967
1968 2000-09-12  Bruce Korb  <bkorb@gnu.org>
1969
1970         * fixinc/fixfixes.c: make a type for the fix procedure & use it,
1971         remove obsolete code
1972         * fixinc/fixincl.c: Use PARAMS, not _P_.  Add no-op default to switch.
1973         * fixinc/fixincl.tpl: make non-exported arrays static scope
1974         * fixinc/fixincl.x: regenerate
1975         * fixinc/fixlib.h: Use PARAMS, not _P_
1976         * fixinc/fixtests.c: make a type for the test proc & use it
1977         * fixinc/server.h: Use PARAMS, not _P_
1978
1979 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1980
1981         * c-typeck.c (process_init_element): Avoid union init warnings on
1982         floating point zero.  Don't crash on unions containing structs.
1983
1984 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
1985
1986         * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
1987         general_movsrc_operand, and remove CONST_INT from
1988         general_movdst_operand.
1989
1990 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
1991
1992         * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
1993         if a reference to non-fixed hardreg is seen.  Otherwise, count hard
1994         regs with a higher cost.
1995         (preferrable): Deal with cases where either cost or regcost is
1996         MAX_COST.
1997         (cse_insn): Use MAX_COST rather than 10000.  Always initialize
1998         regcost values.
1999         (COSTS_N_INSNS): Move definition...
2000         * rtl.h: ...here.
2001         (MAX_COST): New macro.
2002         * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
2003         constant.
2004
2005 2000-09-11  Mark Mitchell  <mark@codesourcery.com>
2006
2007         * c-common.h (genrtl_clear_out_block): Remove.
2008         * c-semantics.c (genrtl_clear_out_block): Remove.
2009         (genrtl_while_stmt): Don't call it.
2010         (genrtl_for_stmt): Likewise.
2011
2012 2000-09-11  Zack Weinberg  <zack@wolery.cumb.org>
2013
2014         * cppfiles.c: Move all default-#defines to top of file.
2015         (open_include_file): Replace by lookup_include_file.
2016         (read_with_read, read_file): Merged into read_include_file.
2017         (stack_include_file, purge_cache): New functions.
2018         (close_cached_fd): Delete.
2019         (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
2020         Cache the in-memory buffer, not the file descriptor.
2021
2022         * cpphash.h (struct include_file): Add buffer, st, refcnt,
2023         mapped fields.
2024         (xcnew): New utility macro.
2025         (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
2026         * cpplib.h (struct cpp_buffer): Remove mapped field.
2027
2028 2000-09-11  Zack Weinberg  <zack@wolery.cumb.org>
2029
2030         * cpplex.c (parse_string): Accept backslash space newline as a
2031         line continuation.
2032         (lex_line): Likewise.
2033         (_cpp_get_token): Remove hard limit on macro nesting.
2034
2035 2000-09-12  Philipp Thomas  <pthomas@suse.de>
2036
2037         * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
2038         * configure: Rebuilt.
2039
2040 2000-09-13  Michael Hayes  <mhayes@cygnus.com>
2041
2042         * flow.c (split_block): Fix update of registers live at
2043         end of split block.
2044
2045 Tue Sep 12 01:51:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2046
2047         * i386.md (add?i_3, add?i_5): New.
2048         (add?i_4): Rename from add?i_3;  Fix compare pattern.
2049         (sub?i_3, xor?i_3, ior?i_3): New.
2050
2051         * genrecog.c (write_tree): Output code to clear insn_extract cache.
2052         * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
2053         instead of extract_insn and extract_constrain_insn_cache instead of
2054         extract_insn and constrain_operands.
2055         * recog.c (extract_insn_cached, extract_constrain_insn_cached):
2056         New functions.
2057         (extract_insn): Clear which_alternative.
2058         (constrain_operands): Set which_alternative to -1 when failed.
2059         * recog.h (extract_constrain_insn_cached, extract_insn_cached):
2060         Declare.
2061
2062 2000-09-11  Matthew Hiller  <hiller@redhat.com>
2063
2064         * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
2065         on operand 0 to '+'.
2066         (movstricthi): Likewise.
2067
2068 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
2069
2070         * loop.h (LOOP_IVS): New macro.
2071         (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
2072         (struct loop_ivs): New.
2073         (struct loop_info): Add ivs field.
2074         (reg_iv_type, reg_iv_info): Delete prototype.
2075         (reg_biv_class, loop_iv_list): Likewise.
2076         * loop.c (record_biv, find_life_end): Pass loop argument.
2077         (reg_iv_type): Remove global array and use
2078         field in loop_regs structure within loop_ivs structure.
2079         (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
2080         (first_increment_giv, last_increment_giv): Use entry in
2081         loop_ivs structure.
2082         (record_initial): Pass ivs pointer.
2083         * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
2084
2085 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
2086
2087         * loop.h (LOOP_REGS): New macro.
2088         (struct loop_regs): New.
2089         (struct loop_info): Add regs field.
2090         * loop.c (set_in_loop): Remove global array and store
2091         in loop_regs structure as part of loop_info structure.
2092         (n_times_set, may_not_optimize): Likewise.
2093         (reg_single_usage, moved_once): Likewise.
2094         (count_one_set): Add regs argument.
2095         (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
2096         (set_pseudo_multiple_uses): Pass regs pointer.
2097
2098 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
2099
2100         * unroll.c (iteration_info): Subsume into loop_iterations.
2101         * loop.h (loop_info): New field iv.
2102
2103 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
2104
2105         * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
2106         (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
2107         (flow_loops_update): New prototype.
2108         (flow_loops_find): Add flags to prototype.
2109         (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
2110         * flow.c (flow_loop_pre_header_scan): New.
2111         (flow_loop_dump): Dump pre-header root and trace and exit dominators.
2112         (flow_loop_free): Free pre-header root and trace and exit dominators.
2113         (flow_loops_find): New argument flags.
2114         (flow_loops_update): New function.
2115         * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
2116
2117 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
2118
2119         * basic-block.h (split_block, update_bb_for_insn): New prototypes.
2120         * flow.c (split_block, update_bb_for_insn): New functions.
2121
2122 2000-09-11  Richard Henderson  <rth@cygnus.com>
2123
2124         * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
2125
2126 2000-09-11  Richard Henderson  <rth@cygnus.com>
2127
2128         * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
2129         * config/ia64/ia64.c (fr_nonimmediate_operand): New.
2130         (ia64_override_options): Prevent optimizing division for both
2131         latency and throughput.
2132         (rtx_needs_barrier): Handle frcpa.
2133         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
2134         (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
2135         (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
2136         (TARGET_SWITCHES): Add -minline-divide-min-latency and
2137         -minline-divide-max-throughput.
2138         (PREDICATE_CODES): Update.
2139         * config/ia64/ia64.md (extendsidi2): Remove * from f case.
2140         (zero_extendsidi2): Likewise.  Fix typo in f case insn.
2141         (extendsfdf2): Add cases for gr<->fr and fr<->mem.
2142         (extendsftf2): Likewise.
2143         (extenddftf2): Likewise.
2144         (fix_trunctfdi2_alts): New.
2145         (fixuns_trunctfdi2_alts): New.
2146         (madd*4): Rename from madd*3.
2147         (divsi3, modsi3, udivsi3, umodsi3): New.
2148         (divsi3_internal): New.
2149         (divdi3, moddi3, udivdi3, umoddi3): New.
2150         (divdi3_internal_lat, divdi3_internal_thr): New.
2151         (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
2152         (recip_approx): New.
2153
2154 2000-09-11  Alexandre Oliva  <aoliva@redhat.com>
2155
2156         * print-rtl.c (debug_call_placeholder_verbose): New variable.
2157         (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
2158         set.
2159         * integrate.c (copy_rtx_and_substitute): Don't share
2160         LEAF_REG_REMAPpable registers with the inlined function.  Don't
2161         share the function value with calling sequences.
2162
2163 2000-09-11  Jakub Jelinek  <jakub@redhat.com>
2164
2165         * c-decl.c (do_case): Fix a typo.
2166
2167         * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
2168         to a if the comparison is floating mode and not -ffast-math.
2169         * simplify-rtx.c (simplify_ternary_operation): Likewise.
2170
2171 Mon Sep 11 20:07:48 2000  J"orn Rennecke <amylaar@redhat.co.uk>
2172
2173         * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
2174         gen_ic_invalidate_line.
2175
2176 2000-09-11  Philip Blundell  <pb@futuretv.com>
2177
2178         * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
2179
2180 Mon Sep 11 10:48:41 2000  Ulrich Drepper <drepper@redhat.com>
2181
2182         * install.texi (LANGUAGES): Update to include new languages.
2183         * INSTALL: Rebuilt.
2184
2185 2000-09-11  DJ Delorie  <dj@redhat.com>
2186
2187         * gcc.c (main): Don't warn about unused -B prefixes
2188         (unused_prefix_warnings): remove
2189
2190 2000-09-11  Kazu Hirata  <kazu@hxi.com>
2191
2192         * final.c: Fix formatting.
2193
2194         * integrate.c: Fix formatting.
2195
2196 2000-09-11  Geoff Keating  <geoffk@cygnus.com>
2197
2198         * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
2199
2200 2000-09-11  Bernd Schmidt  <bernds@redhat.co.uk>
2201
2202         * reload.c (regno_clobbered_p): Fix thinko in previous change.
2203
2204 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2205
2206         * gcc.1: Document 68hc11 specific options.
2207
2208 2000-09-10  Geoff Keating  <geoffk@cygnus.com>
2209
2210         * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
2211         (TARGET_LONG_DOUBLE_128): Define.
2212         (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
2213         (LONG_DOUBLE_TYPE_SIZE): Redefine.
2214         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
2215         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
2216         of __LONG_DOUBLE_128__.
2217         (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
2218         passed.
2219         (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
2220         (CPP_SYSV_DEFAULT_SPEC): Define.
2221         (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
2222         (INIT_TARGET_OPTABS): Define.
2223
2224         * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
2225         (RS6000_UITRUNC): Likewise.
2226         (INIT_TARGET_OPTABS): New macro.
2227         * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
2228         (trunc_defined): Delete.
2229         (output_prolog): Don't output .extern definitions for fp->int
2230         conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
2231         * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
2232         (trunc_defined): Delete.
2233         (RS6000_ITRUNC): Moved to aix.h.
2234         (RS6000_UITRUNC): Likewise.
2235         * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
2236         only emit a libcall.
2237         (fixuns_truncdfsi2): Delete.
2238         (trunc_call): Delete.
2239         (trunc_call_rtl): Delete.
2240
2241 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
2242
2243         * varasm.c (make_decl_rtl): Restore leading star on
2244         DECL_ASSEMBLER_NAME set for decls with an asmspec.
2245
2246 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
2247
2248         * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
2249         won't give a spurious error for '#pragma pack()'.  Simplify
2250         control flow for readability.  'reset' action is not necessary.
2251
2252 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
2253
2254         * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
2255         SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
2256         LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
2257         DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
2258
2259         * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
2260         profile.c, sdbout.c, tradcif.y, tree.c:
2261         Include defaults.h if not already included.
2262         Don't define the above macros.
2263
2264         * Makefile.in: Update dependencies.
2265
2266 2000-09-10  Mark Mitchell  <mark@codesourcery.com>
2267
2268         * c-common.h (add_stmt): Change prototype.
2269         (RECHAIN_STMTS): New macro.
2270         (CASE_LABEL_DECL): Likewise.
2271         (genrtl_case_label): Change prototype.
2272         (c_expand_start_case): Remove prototype.
2273         (build_case_label): Change prototype.
2274         (decl_constant_value): Declare.
2275         * c-common.c (check_case_value): Handle C++'s extensions to C
2276         semantics.
2277         * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
2278         field.
2279         * c-parse.in (stmt): Adjust handling of return statements and case
2280         laels.
2281         * c-semantics.c (add_stmt): Return the new statement.
2282         (genrtl_return_stmt): Take the RETURN_STMT as input, not the
2283         returned expression.  Directly generate RTL, rather than calling
2284         c_expand_return.
2285         (genrtl_switch_stmt): Don't call c_expand_start_case.
2286         (build_case_label): Take the LABEL_DECL as input, too.
2287         (genrtl_case_label): Just call add_case_node.
2288         (expand_stmt): Adjust calls to genrtl_return_stmt and
2289         genrtl_case_label.
2290         * c-tree.h (c_expand_start_case): Declare.
2291         * c-typeck.c (decl_constant_value): Give it external linkage.
2292         (c_expand_return): Don't call expand_return or expand_null_return;
2293         use genrtl_return_stmt instead.
2294         * stmt.c (struct nesting): Remove num_ranges field.
2295         (add_case_node): Give it external linkage.
2296         (expand_start_case): Don't set num_ranges.
2297         (expand_start_case_dummy): Don't clear it.
2298         (pushcase): Rely on add_case_node to handle `default' labels.
2299         (add_case_node): Handle `default' labels.
2300         * tree.c (tree_int_cst_compare): New function.
2301         * tree.h (tree_int_cst_compare): Declare.
2302         (add_case_node): Likewise.
2303
2304 2000-09-10  Richard Henderson  <rth@cygnus.com>
2305
2306         * c-parse.in: Revert last change.
2307         (init_reswords): Do not enter disabled keywords into the ridpointers
2308         table, modulo objc weirdness.
2309         (_yylex): Return the canonical spelling for a keyword.
2310
2311 2000-09-10  Philip Blundell  <philb@gnu.org>
2312
2313         * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
2314         * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
2315
2316 Sun Sep 10 14:30:28 EDT 2000  John Wehle  (john@feith.com)
2317
2318         * alias.c (find_base_term): Handle ADDRESSOF.
2319         (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
2320
2321 2000-09-10  Denis Chertykov  <denisc@overta.ru>
2322
2323         * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
2324         outputting templates with many lines.
2325
2326 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2327
2328         * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
2329         to decide whether 64-bit support must be generated.
2330
2331 2000-09-10  Richard Henderson  <rth@cygnus.com>
2332
2333         * c-parse.in (asm patterns): Fix volatile check.
2334
2335 2000-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2336
2337         * cppmacro.c (check_trad_stringification): New function.
2338         (save_expansion): If -Wtraditional, warn about stringification of
2339         macro arguments.
2340
2341 2000-09-11  Michael Hayes  <mhayes@cygnus.com>
2342
2343         * loop.h (struct loop_mem_info): Move from loop.c
2344         (struct loop_info): Add fields store_mems, mems, mems_idx,
2345         mems_allocated, unknown_address_altered,
2346         unknown_constant_address_altered, num_mem_sets, and
2347         first_loop_store_insn.
2348
2349         * loop.c (loop_store_mems): Replace with field in loop_info struct.
2350         (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
2351         (unknown_address_altered, unknown_constant_address_altered): Likewise.
2352         (num_mem_sets): Likewise.
2353         (replace_loop_mems, replace_loop_regs): New.
2354         (struct loop_replace_args): New.
2355         (load_mems): Use replace_loop_mems.
2356         (try_copy_prop): Use replace_loop_regs.
2357         (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
2358
2359 2000-09-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2360
2361         * configure.in: Recognize m6811-elf and m6812-elf.
2362         * configure: Regenerate.
2363
2364 2000-09-09  Geoff Keating  <geoffk@cygnus.com>
2365
2366         * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
2367         to operand_subword.
2368
2369 2000-09-10  Michael Hayes  <mhayes@cygnus.com>
2370
2371         * loop.c (struct movables): New.
2372         (num_movables): Move into struct movables.
2373         (the_movables): Change type to struct movables.
2374         (ignore_some_movables): Change struct movable arg to struct movables.
2375         (force_movables, combine_movables, regs_match_p): Likewise.
2376         (rtx_equal_for_loop_p, move_movables): Likewise.
2377         (scan_loop): Change movables to be of type struct movables.
2378         Replace last_movable with field in movables structure.
2379
2380 2000-09-08  Zack Weinberg  <zack@wolery.cumb.org>
2381
2382         * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
2383         (init_pragma): Avoid warning if pfile happens to be unused.
2384         * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS.  Never
2385         define init_pragma to nothing.  Always prototype
2386         init_pragma.  Prototype dispatch_pragma if !USE_CPPLIB.
2387
2388         * c-lex.c (process_directive): Always call dispatch_pragma.
2389         Initialize entering_c_header to 0.
2390
2391 2000-09-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2392
2393         * config/m68hc11/m68hc11.md: New file, machine description for
2394         68HC11 & 68HC12.
2395         * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
2396         * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
2397         * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
2398         * config/m68hc11/m68hc11-protos.h: New file.
2399         * config/m68hc11/m68hc11-crt0.S: New file, startup code.
2400         * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
2401         * config/m68hc11/xm-m68hc11.h: New file, target defs.
2402         * config/m68hc11/larith.asm: New file, libgcc routines.
2403
2404 2000-09-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2405
2406         * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
2407         (FPBIT_FUNCS): Add _usi_to_sf.
2408         * config/fp-bit.c (usi_to_float): New function.
2409         * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
2410         (usi_to_float): Add appropriate #define.
2411
2412 2000-09-08  Bernd Schmidt  <bernds@redhat.co.uk>
2413
2414         * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
2415         new functions.
2416         * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
2417         * i386.md (attr "type"): Add sse and mmx types.
2418         (attr "memory"): Handle them without a crash.
2419         (movsi_1, movdi_2): Allow MMX regs.
2420         (movdi splits): Don't split moves involving MMX regs.
2421         (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
2422         (movv4sf_internal, movv4si_internal, movv8qi_internal,
2423         movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
2424         movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
2425         sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
2426         sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
2427         sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
2428         addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
2429         divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
2430         sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
2431         sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
2432         vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
2433         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
2434         cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
2435         addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
2436         subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
2437         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
2438         mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
2439         mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
2440         eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
2441         smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
2442         lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
2443         mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
2444         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
2445         mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
2446         mmx_clrdi): New patterns.
2447
2448 2000-09-08  Richard Earnshaw  <rearnsha@arm.com>
2449
2450         * arm.c: Don't include tm.h directly.
2451
2452 Fri Sep  8 14:34:56 MET DST 2000  Jan Hubicka  <jh@suse.cz>
2453
2454         * recog.c (validate_replace_rtx_1): Fix confusion about equality
2455         testing; simplify subregs of constants and nested subregs.
2456
2457 2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
2458
2459         * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
2460
2461 2000-09-08  Bernd Schmidt  <bernds@redhat.co.uk>
2462
2463         * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
2464         VEC_CONCAT.
2465         * rtl.texi (description of USE): Add note about possible pitfalls
2466         with this rtx.
2467         From Richard Henderson:
2468         * reload1.c (choose_reload_regs): Compute need_mode properly.
2469
2470 2000-09-07  Richard Henderson  <rth@cygnus.com>
2471
2472         * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
2473         (__modsi3, __umodsi3): Likewise.
2474         (__udivsi3): Likewise.  Normalize the TFmode values.
2475
2476 2000-09-07  Geoff Keating  <geoffk@cygnus.com>
2477
2478         * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
2479         with a prototype.
2480         * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
2481         warning.
2482
2483 Fri Sep  8 03:26:38 2000  J"orn Rennecke <amylaar@redhat.co.uk>
2484
2485         * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
2486         (cmpeqdi_t): Add output pattern.
2487         (cmpeqdi_t+1): Don't split when not optimizing.
2488         Restore proper splitting operation.
2489
2490 2000-09-07  Richard Henderson  <rth@cygnus.com>
2491
2492         * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
2493         do not call dispatch_pragma.
2494
2495 2000-09-07  Jim Wilson  <wilson@cygnus.com>
2496
2497         * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
2498         to CLASS_CANNOT_CHANGE_MODE.
2499         * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
2500         mode classes are different.
2501
2502 2000-09-07  Zack Weinberg  <zack@wolery.cumb.org>
2503
2504         * cpplib.h (struct cpp_options): Add user_label_prefix member,
2505         left out of commit which removed cppulp.c.
2506
2507 2000-09-07  Richard Henderson  <rth@cygnus.com>
2508
2509         * bb-reorder.c (fixup_reorder_chain): Add jump in new block
2510         after switch for CASE_DROPS_THROUGH.
2511
2512 2000-09-07  Richard Henderson  <rth@cygnus.com>
2513
2514         * loop.c (strength_reduce): Call check_ext_dependant_givs.
2515         Properly extend the biv initial value for the giv.
2516         (record_biv): Zero ext_dependant.
2517         (record_giv): New argument ext_val.  Update all callers.
2518         (general_induction_var): Likewise.
2519         (consec_sets_giv): Likewise.
2520         (simplify_giv_expr): Likewise.  Fill in ext_val if we find
2521         a sign-extend, zero-extend, or truncate.
2522         (combine_givs_p): Make sure modes are compatible.
2523         (check_ext_dependant_givs): New.
2524         (extend_value_for_giv): New.
2525         * loop.h (struct induction): Add ext_dependant.
2526         * unroll.c (iteration_info): Extend the biv initial value for the giv.
2527         (find_splittable_givs): Likewise.
2528         (final_giv_value): Likewise.
2529
2530 2000-09-07  Zack Weinberg  <zack@wolery.cumb.org>
2531
2532         * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
2533         REGISTER_TARGET_PRAGMAS is defined.  Duplicate some
2534         definitions from cpplib.h.
2535         * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
2536         already done it.
2537         * tm.texi: Document HANDLE_PRAGMA as no longer supported.  Add
2538         documentation for REGISTER_TARGET_PRAGMAS.
2539
2540         * c-lex.c: Include cpplib.h before c-pragma.h.  Define a
2541         default-pragma callback to implement -Wunknown-pragmas if
2542         USE_CPPLIB.
2543         * c-parse.in: Move all includes to top of file.
2544         * c-pragma.c: Include cpplib.h before c-pragma.h.  Include
2545         tm_p.h.
2546         (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
2547         warning.
2548         (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
2549
2550         * arm.h, arm-protos.h, arm.c,
2551           c4x.h, c4x-protos.h, c4x.c,
2552           h8300.h, h8300-protos.h, h8300.c,
2553           i370.h, i370-protos.h, i370.c,
2554           i960.h, i960-protos.h, i960.c,
2555           sh.h, sh-protos.h, sh.c,
2556           v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
2557         pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
2558
2559         * d30v.h: Don't mention HANDLE_PRAGMA in comment.  Add
2560         multiple include guard.
2561         * i370.md (untyped_call): Use GEN_CALL.
2562         (umodsi3): Remove unused variable.
2563         * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
2564         * v850.c (output_move_single, output_move_double): Constify
2565         return value.
2566         (print_operand): Constify a char *.
2567         * v850.h (struct small_memory_info): Constify name member.
2568
2569 2000-09-07  Kazu Hirata  <kazu@hxi.com>
2570
2571         * config/h8300.h: Fix comment typos.
2572         * config/h8300/h8300.md: Likewise.
2573         * config/h8300/lib1funcs.asm: Likewise.
2574
2575 Thu 07-Sep-2000 21:29:00 BST  Neil Booth  <NeilB@earthling.net>
2576
2577         * Makefile.in: Remove references to cppulp.{c,o}.
2578         * cppinit.c (initialize_builtins, cpp_start_read,
2579         cpp_handle_option): Update to use cpp_options structure.
2580         * cppulp.c: Remove.
2581
2582 2000-09-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2583
2584         * c-common.c (time_char_table): Allow %#b and %#h.
2585
2586 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2587
2588         * reorg.c (find_end_label): If the basic block reorder pass moves the
2589         return insn to some other place try to locate it again and put our
2590         end_of_function_label there.
2591         * reorg.c (relax_delay_slots): Check if find_end_label created a
2592         new label that invalidates the current optimazation.
2593
2594 2000-09-07  Catherine Moore  <clm@redhat.com>
2595
2596         * unroll.c (unroll_loop): Check for unconditional jumps
2597         to loop continuation.  Delete if n_iterations is 1.
2598         (ujump_to_loop_cont): New routine.
2599
2600 2000-09-07  Bernd Schmidt  <bernds@redhat.co.uk>
2601
2602         * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
2603         MODE_VECTOR_FLOAT.
2604         * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
2605         to handle multiword modes correctly.  All callers and the declaration
2606         changed.
2607
2608 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
2609
2610         * c-common.h (prep_stmt): Declare.
2611         (lang_expand_stmt): Likewise.
2612         * c-decl.c (lang_expand_stmt): Remove.
2613         * c-semantics.c (lang_expand_stmt): Define.
2614         (prep_stmt): New function.
2615         (expand_stmt): Handle common statement types here.
2616
2617 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
2618
2619         * configure.in (sh-*-linux*): Added.
2620         * configure: Rebuilt.
2621         * config/sh/t-linux: New file.
2622         * config/sh/sh.h (USERMODE_BIT): Define.
2623         (TARGET_USERMODE): Likewise.
2624         (TARGET_SWITCHES): New switches for the bits above.
2625         (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
2626         * config/sh/linux.h: New file.
2627         * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
2628         underscore on linux.
2629         (L_sdivsi3, L_udivsi3): Define for linux.
2630         (L_ic_invalidate): Define.
2631         * invoke.texi (SH Options): Document -musermode.
2632
2633 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
2634
2635         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
2636         CSE unless generating PIC.
2637
2638         * config/sh/sh.md (symPLT_label2reg): Force the initialization of
2639         the PIC register.
2640
2641 2000-09-06  H.J. Lu  (hjl@gnu.org)
2642
2643         * Makefile.in (clean_s1): Depend on stage_b.
2644         (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
2645         stage2. They are used for "make compare".
2646
2647 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
2648
2649         Move statement-tree facilities from C++ to C front-end.
2650         * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
2651         (void_zero_node): New macro.
2652         (struct stmt_tree_s): New type.
2653         (stmt_tree): New typedef.
2654         (struct language_function): New type.
2655         (last_tree): New macro.
2656         (last_expr_type): Likewise.
2657         (walk_tree_fn): New typedef.
2658         (current_stmt_tree): New function.
2659         (begin_stmt_tree): Likewise.
2660         (add_stmt): Likewise.
2661         (finish_stmt_tree): Likewise.
2662         (statement_code_p): Likewise.
2663         (lang_statement_code_p): New variable.
2664         (walk_stmt_tree): New function.
2665         (STMT_IS_FULL_EXPR_P): New macro.
2666         * c-common.c (lang_statement_code_p): New variable.
2667         (c_common_nodes_and_builtins): Initialize void_zero_node.
2668         (statement_code_p): New function.
2669         (walk_stmt_tree): Likewise.
2670         * c-decl.c (language_function): Rename to ...
2671         (c_language_function): ... this.  Include language_function.
2672         (push_c_function_context): Adjust accordingly.
2673         (pop_c_function_context): Likewise.
2674         (mark_c_function_context): Likewise.
2675         (current_stmt_tree): Define.
2676         * c-semantics.c (begin_stmt_tree): New function.
2677         (add_stmt): Likewise.
2678         (prune_unused_decls): Likewise.
2679         (finish_stmt_tree): Likewise.
2680
2681 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2682
2683         * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
2684
2685 2000-09-06  Kazu Hirata  <kazu@hxi.com>
2686
2687         * calls.c: Fix formatting.
2688
2689 2000-09-06  Graham Stott  <grahams@cygnus.co.uk>
2690
2691         * config/i386/i386.h (ADDRESS_COST): Fix typo.
2692
2693 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
2694
2695         Integrated preprocessor.
2696
2697         * Makefile.in: Remove all references to c-parse.gperf,
2698         c-gperf.h, and c-parse.h.  Remove -d from yacc command line
2699         generating c-parse.c.  Update dependencies.
2700         * c-parse.gperf, c-gperf.h: Delete.
2701
2702         * c-common.c: Don't define parse_options, cpp_token, yy_cur,
2703         yy_lim, or yy_get_token.  Don't define get_directive_line if
2704         USE_CPPLIB.
2705         * c-common.h: Add multiple include guard.  Define RID values
2706         for every keyword in C, C++, and Objective C.  Put all the
2707         modifiers first.
2708         (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
2709         * c-decl.c (c_decode_option): Handle -lang-objc here.
2710         (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
2711         (grokdeclarator): Adjust for new RID scheme.
2712         (extract_interface_info): New stub.
2713         * c-lang.c: Don't declare yy_cur or parse_options.
2714         (lang_init_options): Call cpp_init.  Don't call
2715         cpp_options_init.
2716         (lang_init): Don't call check_newline if USE_CPPLIB.
2717
2718         * c-lex.c: Don't include c-parse.h.  Do include timevar.h.
2719         Elide lots of unnecessary code if USE_CPPLIB.  Delete code
2720         rendered unnecessary by new architecture.  Move routines not
2721         shared with C++ to c-parse.in.  Maintain a local idea of the
2722         line number.    Handle C++ as well as C.
2723         [USE_CPPLIB]: Declare and register callbacks for #ident and
2724         for entering/leaving files.
2725         (init_c_lex, c_lex): Are now the entry points to this file.
2726         (check_newline): Break out directive handling to
2727         process_directive.
2728         (read_ucs, is_extended_char, utf8_extend_token): Moved here
2729         from C++ front end.
2730         (readescape, parse_float): Overhaul.
2731         (lex_number, lex_string, lex_charconst): Break out of c_lex
2732         (n'ee yylex).
2733         (get_fileinfo, update_header_times, dump_one_header,
2734         dump_time_statistics): New and/or moved here from C++.
2735         Support per-file data needed by C++ and per-header timing
2736         statistics (C++ only, at the moment).
2737         * c-lex.h: Update prototypes.  Add multiple include guard.
2738         * c-tree.h (struct lang_identifier): Add rid_code field.
2739         (C_IS_RESERVED_WORD, C_RID_CODE): New.
2740
2741         * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
2742         reinit_parse_for_function and/or position_after_white_space.
2743         (save_filename, save_lineno): Look ahead before saving.
2744         (label -> identifier ':'): Save file and line before shifting ':'.
2745         (reservedwords): No need to call get_identifier.
2746         (init_parse, finish_parse, yyerror, yylex, yyprint,
2747         make_pointer_declarator): Are now here for C/ObjC.
2748         (rid_to_yy): Conversion table from RID constants to Yacc codes.
2749
2750         * c-pragma.c: Rewrite parsing logic to fit with cpplib's
2751         #pragma registry.  Provide dummy implementation of that
2752         interface if !USE_CPPLIB.
2753         * c-pragma.h: Update to match.
2754
2755         * flags.h: Add multiple include guard.
2756         (flag_detailed_statistics): Moved here from C++.
2757         * toplev.c: Define flag_detailed_statistics.
2758
2759         * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
2760         #if USE_CPPLIB.
2761         * timevar.def (TV_CPP, TV_LEX): New.
2762         * timevar.h: Add multiple include guard.
2763
2764         * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
2765         #if USE_CPPLIB.
2766         * objc/objc-act.c: Don't mention yy_cur or parse_options.
2767         Initialize cpplib properly.  Force lineno to 0 after first
2768         call to check_newline.  Don't handle -lang-objc here.
2769         Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
2770
2771 2000-09-06  David Edelsohn  <edelsohn@gnu.org>
2772
2773         * rs6000.md: Correct function unit definitions for cr_logical and
2774         mtjmpr.
2775         (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
2776         and use portable method for >=0 and floating point >=.  Remove
2777         associated matchers.
2778
2779 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
2780
2781         * extend.texi: Mark named return value extension as deprecated.
2782
2783 2000-09-06  Geoff Keating  <geoffk@cygnus.com>
2784
2785         * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
2786         the result.
2787
2788 2000-09-06  Gabriel Dos Reis  <gdr@codesourcery.com>
2789
2790         * toplev.c (display_help): Fix thinko in documentation.
2791
2792         * diagnostic.h (output_buffer::indent_skip): New fields.
2793         (output_indentation): New macro.
2794
2795         * diagnostic.c (output_indent): New function.
2796         (output_set_prefix, clear_diagnostic_info): Use.
2797         (output_emit_prefix): Predict future indentation.
2798
2799 2000-09-06  DJ Delorie  <dj@redhat.com>
2800
2801         * Makefile.in (stage_*): add more dependencies to ensure parallel
2802         builds build correctly
2803
2804 2000-09-06  Manfred Hollstein  <manfredh@redhat.com>
2805
2806         * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
2807         not bootstrap-lean_f.
2808
2809 2000-09-06  Andreas Schwab  <schwab@suse.de>
2810
2811         * mklibgcc.in: Emit rule for libgcc-stage-start.
2812         * Makefile.in (stage1-start, stage2-start, stage3-start,
2813         stage4-start): Don't handle libgcc here, use libgcc.mk instead.
2814
2815 2000-09-06  Bernd Schmidt  <bernds@redhat.co.uk>
2816
2817         * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
2818         (update_equiv_regs): Likewise, except for the mn10200 kludge.
2819         (combine_regs): Likewise.
2820
2821         * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
2822         * cse.c: Include "basic-block.h".
2823         (struct table_elt): New field REGCOST.
2824         (CHEAP_REG): Delete macro.
2825         (COST): Return 0 for REGs.
2826         (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
2827         (notreg_cost): Return 0 for appropriate SUBREGs.
2828         (COSTS_N_INSNS): Return N * 2.
2829         (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
2830         SUBREGs.
2831         (CHEAPER): Use new function preferrable.
2832         (insert): Initialize REGCOST member.
2833         (find_best_addr): Use approx_reg_cost for estimation of register
2834         usage.
2835         (cse_insn): Likewise.
2836         * loop.c (iv_add_mult_cost): New function.
2837         (add_cost, shift_cost, mult_cost): Delete variables.
2838         (init_loop): Don't initialize add_cost; reduce copy_cost by half.
2839         (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
2840         Make code that detects autoinc opportunities slightly less optimistic.
2841         (simplify_giv_expr): If expression contains other reg that is also a
2842         giv, only increment benefit if this is the only use of that reg.
2843         (consec_sets_giv): Take that change into account.
2844         (combine_givs): Slightly more verbose output.
2845
2846         * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
2847         not the cost of an equivalent shift.
2848         * sh-protos.h (addsubcosts): Declare.
2849         * sh.c (addsubcosts): New function.
2850         * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
2851         (RTX_COSTS): Tweak.  Use addsubcosts.
2852         (ADDRESS_COST): Return higher cost for reg+reg addressing.
2853
2854 2000-09-06  Geoff Keating  <geoffk@cygnus.com>
2855
2856         * config/rs6000/rs6000.c (validate_condition_mode): New function.
2857         (branch_comparison_operator): Call validate_condition_mode to
2858         abort rather than returning 0.
2859         (branch_positive_comparison_operator): New function.
2860         (scc_comparison_operator): Call validate_condition_mode to abort
2861         rather than returning 0.
2862         (ccr_bit): Call validate_condition_mode.  Update for
2863         new branch scheme.
2864         (print_operand): Delete %C modifier.  Update %E case
2865         to use EQ bit not SO bit.
2866         (rs6000_reverse_condition): New function.
2867         (rs6000_generate_compare): New function.
2868         (rs6000_emit_sCOND): New function.
2869         (rs6000_emit_cbranch): New function.
2870         (output_cbranch): The length of a long branch insn is
2871         now only 8 bytes.  Add validate_condition_mode.  Use
2872         rs6000_reverse_condition.  Remove cror generation.
2873
2874         * config/rs6000/rs6000.h: Update comments.
2875         (PREDICATE_CODES): Add new predicate.  Update codes used
2876         by branch_comparison_operator and scc_comparison_operator.
2877         * config/rs6000/rs6000-protos.h: Add prototypes for
2878         new external functions.
2879         * config/rs6000/rs6000.md: Add new scheduling parameters
2880         for cr_logical instructions.  Change length of branch
2881         instructions.
2882         (bCOND patterns): Call rs6000_emit_cbranch.
2883         (sCOND patterns): Call rs6000_emit_sCOND.
2884         (branch patterns): Change lengths to 4.
2885         (cr logical patterns): New.
2886
2887 2000-09-06  Richard Henderson  <rth@cygnus.com>
2888
2889         * config/i386/i386.md (call_pop): Fix test for setting
2890         current_function_uses_pic_offset_table.
2891         (call, call_value_pop, call_value): Likewise.
2892
2893 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
2894
2895         * timevar.c (timevar_add): Delete.
2896         (timevar_get): Also count time since the selected timer was
2897         last updated.  Do not examine the timevar stack if the
2898         selected timer is standalone.
2899
2900 2000-09-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
2901
2902         * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
2903
2904 2000-09-05  Jason Merrill  <jason@redhat.com>
2905
2906         * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
2907         for 'extern' arrays.
2908
2909 2000-09-05  Richard Henderson  <rth@cygnus.com>
2910
2911         * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
2912         Eliminate final copy from non-trapping case.
2913         (__divdf3, __divsf3): Likewise.
2914
2915 2000-09-05  Richard Henderson  <rth@cygnus.com>
2916
2917         * config/ia64/ia64.md (mulhi3): Fix typo last change.
2918         * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
2919
2920 2000-09-03  Donn Terry  <donn@interix.com>,  Laurynas Biveinis  <lauras@softhome.net>
2921
2922         * Makefile.in: Restructure bootstrap stages to allow clean
2923         restart after failure.
2924
2925 2000-09-05  Richard Henderson  <rth@cygnus.com>
2926
2927         * config/ia64.md (movsi and movdi patterns): Allow moves from
2928         8-bit constants to AR registers.
2929
2930 2000-09-05  Richard Henderson  <rth@cygnus.com>
2931
2932         * config/ia64/ia64.md (mulhi3): New.
2933
2934 2000-09-05  Richard Henderson  <rth@cygnus.com>
2935
2936         * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
2937         * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
2938         Optimization Guide, minimum latency alternative.
2939         (__moddi3, __udivdi3, __umoddi3): Likewise.
2940         (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
2941
2942 2000-09-05  Bruce Korb  <bkorb@gnu.org>
2943
2944         * fixinc/fixincl.c (load_file): always read header files
2945         with sizes that are a multiple of the page size.
2946         & use libiberty's getpagesize for determining that.
2947
2948 2000-09-05  Alexandre Oliva  <aoliva@redhat.com>
2949
2950         * gcse.c (hash_string_1): Add prototype.
2951         * cse.c (canon_hash_string): Likewise.
2952
2953 2000-09-04  Craig Newell  <CraigN@ieee.org>
2954
2955         * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
2956
2957 2000-09-04  Andreas Schwab  <schwab@suse.de>
2958
2959         * Makefile.in (STAGESTUFF): Remove libgcc.
2960         (stage1-start, stage2-start, stage3-start): Copy the contents of
2961         the libgcc directory explicitly.
2962         (mostlyclean): Clean libgcc.
2963
2964 2000-09-04  Andrew Haley  <aph@redhat.com>
2965
2966         * dwarf2out.c: (stack_adjust_offset): New prototype.
2967
2968 Wed Jan  1 00:23:59 MET 1997  Jan Hubicka  <jh@suse.cz>
2969
2970         * combine.c (make_extraction): Fix rtx_cost comparison to
2971         match the comment.
2972
2973 Wed Jan  1 00:17:32 MET 1997  Jan Hubicka  <jh@suse.cz>
2974
2975         * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
2976         umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
2977         Add '*' to insn pattern name.
2978
2979 2000-09-04  Jakub Jelinek  <jakub@redhat.com>
2980
2981         * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
2982         use posn - 1 to index into tokens array.
2983         (maybe_paste_with_next): Adjust caller.
2984
2985 2000-09-03  Geoff Keating  <geoffk@cygnus.com>
2986
2987         * invoke.texi: Document the -mvxworks option for rs6000 ELF.
2988
2989         * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
2990         (REGNO_REG_CLASS): Use symbolic register
2991         names.
2992
2993 2000-09-03  Richard Earnshaw  <rearnsha@arm.com>
2994
2995         * arm.c (final_prescan_insn): If the form of a jump insn isn't
2996         recognized, don't try to conditionally execute it.
2997
2998 Sun Sep  3 13:10:56 2000  Denis Chertykov  <denisc@overta.ru>
2999
3000         * config/avr/avr.md ("*tablejump_lib"): New pattern.
3001         (call_value_insn): Right length claculation.
3002         (call_insn): Likewise.
3003
3004 2000-09-02  Marek Michalkiewicz  <marekm@linux.org.pl>
3005
3006         * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
3007         gas_output_limited_string, gas_output_ascii, output_movqi,
3008         output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
3009         out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
3010         out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
3011         ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
3012         lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
3013         out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
3014         Add "const" as needed to remove warnings.
3015
3016         * config/avr/avr.c (avr_override_options, avr_init_once,
3017         function_prologue, function_epilogue, frame_pointer_required_p,
3018         class_likely_spilled_p, order_regs_for_local_alloc,
3019         avr_address_cost, avr_ret_register): Use K&R style arguments.
3020         (initial_elimination_offset, gas_output_limited_string):
3021         Remove ATTRIBUTE_UNUSED from the used arguments.
3022         (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
3023         Use local variables src, dest, base to access operands[].
3024         Rename reg_dest to reg_src if that's what it is.
3025         (output_movhi, output_movsisf): Optimize loading 8-bit immediate
3026         constants to LD_REGS if reg_was_0.
3027         (output_reload_insisf): Change arg 3 to insn length and set it.
3028         (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
3029         access to 16-bit I/O register pairs.
3030         (avr_address_cost): Lower cost for the above case.
3031         (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
3032         may be clobbered, also for LD_REGS.
3033         (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
3034         with a CONST_INT.
3035
3036         * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
3037
3038         * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
3039         macro to test_hard_reg_class function.
3040         (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
3041         for loading immediate constants to LD_REGS.
3042         (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
3043
3044
3045 Sat Sep  2 13:58:23 2000  Marek Michalkiewicz <marekm@linux.org.pl>
3046
3047         * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
3048         * config/avr/libgcc.S: Lost part of the previous patch.
3049
3050 2000-08-31  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3051
3052         * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
3053         object before calling pthread_mutex_init.
3054
3055 2000-09-02  Alexandre Oliva  <aoliva@redhat.com>
3056
3057         * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
3058         config/sh/crtn.asm: New files.
3059         * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
3060         (crt1.o, crti.o, crtn.o): New targets.
3061         * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
3062         sh/t-elf.
3063         * configure: Rebuilt.
3064         * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
3065         STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
3066         * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
3067         Undefine for config/elfos.h to redefine.
3068         (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
3069
3070 2000-09-02  Alexandre Oliva  <aoliva@redhat.com>, Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3071
3072         * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
3073         legitimize_pic_address, output_pic_addr_const): Declare.
3074         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
3075         (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
3076         (TARGET_SWITCHES): New switch -mprefergot.
3077         (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
3078         (PIC_OFFSET_TABLE_REGNUM): Define.
3079         (GOT_SYMBOL_TABLE): Likewise.
3080         (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
3081         (ENCODE_SECTION_INFO): Define.
3082         (FINALIZE_PIC): New macros.
3083         (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
3084         (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
3085         * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
3086         (prepare_move_operands): Call emit_pic_move or
3087         emit_pic_const_move if appropriate.
3088         (output_far_jump): For PIC, use braf and output long offset.
3089         (machine_dependent_reorg):
3090         (sh_expand_prologue): Save and initialize the PIC register.
3091         (sh_expand_epilogue): Restore it.
3092         (initial_elimination_offset): Account for it.
3093         (nonpic_symbol_mentioned_p): New function.
3094         (legitimize_pic_address): Likewise.
3095         (output_pic_addr_const): Likewise.
3096         * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
3097         (call, call_value): Use them.
3098         (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
3099         symPLT_label2reg): New expands.
3100         * invoke.texi (SH Options): Document -mprefergot.
3101
3102 2000-09-01  Alexandre Oliva  <aoliva@redhat.com>
3103
3104         * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
3105         * gcse.c (hash_string_1): New function.
3106         (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
3107         (expr_equiv_p) <ASM_OPERANDS>: Likewise.
3108         * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
3109         (canon_hash_string): New function.
3110         (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
3111         (exp_equiv_p) <ASM_OPERANDS>: Likewise.
3112         (fold_rtx): Use ASM_OPERANDS accessor macros.
3113         * emit-rtl.c (copy_insn_1): Likewise.
3114         * integrate.c (copy_rtx_and_substitute): Likewise.
3115         * stmt.c (expand_asm_operands): Likewise.  Give an
3116         ASM_OPERANDS rtx the mode of the output reg being set from it.
3117
3118 2000-09-01  Fred Fish  <fnf@be.com>
3119
3120         * fix-header.c (write_rbrac): Add putc and getc to list of
3121         functions to protect against prior definition as a macro.
3122
3123 2000-09-01  Joseph S. Myers  <jsm28@cam.ac.uk>
3124
3125         * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
3126         (c_size_type_node): Define.
3127         * c-decl.c (init_decl_processing): Initialize c_size_type_node.
3128         * c-common.c (enum format_lengths, enum format_std_version,
3129         format_length_info, format_type_detail, BADLEN, NOLENGTHS,
3130         format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
3131         T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
3132         T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
3133         T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
3134         TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
3135         format_types): Define.
3136         (format_char_info, print_char_table, scan_char_table,
3137         time_char_table): Rearrange for new organization of information
3138         about format length modifiers and standard versions.
3139         (T_ST): Redefine to use c_size_type_node.
3140         (check_format_info): Obtain information about length modifiers and
3141         standard versions from tables.  Adjust warning message wordings.
3142         Use the name from the user's program for `ll' and `hh' length
3143         modifiers in warning messages.  Use more informative names for
3144         wanted types where available (for wchar_t, wint_t, size_t, signed
3145         size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
3146
3147 2000-09-01  Jim Wilson  <wilson@cygnus.com>
3148
3149         * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
3150         * combine.c (distribute_notes): Handle REG_NORETURN.
3151         * rtl.c (reg_note_name): Add REG_NORETURN.
3152         * rtl.h (enum reg_note): Likewise.
3153
3154         * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
3155         ia64_file_start.
3156         * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
3157         (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
3158         (emit_predicate_relation_info): Handle conditional calls with
3159         REG_NORETURN.
3160         * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
3161         instead of ia64_file_start.
3162         * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
3163         * config/ia64/ia64.md (safe_across_calls_all,
3164         save_across_calls_normal): New patterns.
3165
3166         * loop.c (check_final_value): Check for biv use before checking for
3167         giv use.  Check for both biv and giv uses.  Always set last_giv_use
3168         if there is a giv use.
3169
3170 2000-09-01  Richard Henderson  <rth@cygnus.com>
3171
3172         * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
3173         (madddi3): Likewise.
3174         (maddsi3): New.
3175
3176 Fri Sep  1 10:59:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3177
3178         * expr.c (clear_storage): Don't use emit_move_insn unless
3179         either BLKmode or proper size.
3180         (store_constructor): Don't call clear_storage if REG of wrong size.
3181
3182         * flow.c (init_propagate_block_info): Don't mark frame dead at end
3183         of function if returns wiht stack pointer depressed.
3184
3185 2000-09-01  Andrew Haley  <aph@redhat.com>
3186
3187         * dwarf2out.c (stack_adjust_offset): New function.
3188         (dwarf2out_stack_adjust): Break out stack adjust logic into
3189         new stack_adjust_offset function.  Look inside parallels and
3190         sequences for stack adjustments.
3191
3192 2000-08-31  Jeff Law <law@cygnus.com>
3193
3194         * arm.md: Use no_new_pseudos to determine when it is safe
3195         to create new pseudo registers.
3196
3197         * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
3198         when we can safely allocate new registers.
3199
3200 2000-08-31  Geoffrey Keating  <geoffk@cygnus.com>
3201
3202         * stmt.c (expand_asm_operands): Twiddle generating_concat_p
3203         so that CONCATs are not generated for ASMs.
3204         * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
3205         not generating_concat_p.
3206         * function.c (pop_function_context_from): Reset
3207         generating_concat_p.
3208         (prepare_function_start): Likewise.
3209         * rtl.c (generating_concat_p): Define.
3210         * rtl.h (generating_concat_p): Declare.
3211         * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
3212
3213 2000-08-22  Philipp Thomas  <pthomas@suse.de>
3214             Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
3215
3216         * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
3217         for translation.
3218
3219 2000-08-30  Greg McGary  <greg@mcgary.org>
3220
3221         * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
3222         * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
3223         * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
3224
3225 2000-08-30  Greg McGary  <greg@mcgary.org>
3226
3227         * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
3228         (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
3229         (TREE_INT_CST): New macro.
3230         * varasm.c (const_hash, compare_constant_1, record_constant_1):
3231         Use new macro TREE_INT_CST.
3232
3233 Wed 30-Aug-2000 23:18:59 BST  Neil Booth  <NeilB@earthling.net>
3234
3235         * contrib.texi: Add self.
3236
3237 2000-08-30  Alexandre Oliva  <aoliva@redhat.com>
3238
3239         * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
3240         (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
3241         and labels.
3242
3243 2000-08-30  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3244
3245         * fixinc/gnu-regex.c: Don't define `const'.
3246
3247 Tue Aug 29 22:09:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3248
3249         * expr.c (store_constructor): Allow variable bounds of array type.
3250         (expand_expr): Don't blow up if type is ERROR_MARK.
3251         * varasm.c (output_constructor): Don't access lower bound of array
3252         type unless need it if index is supplied (so it can be a variable
3253         if no index is supplied).
3254         Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
3255         Other minor cleanups.
3256
3257 2000-08-29  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3258
3259         * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
3260         for compilations in stage 1 and subsequent stages, respectively.
3261         * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
3262         * configure: Rebuilt.
3263         * x-vax, x-vax-gcc: Deleted.
3264
3265 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
3266
3267         * c-common.c (declare_function_name): Use func_id_node,
3268         function_id_node, and pretty_function_id_node.  Do not make
3269         __func__ visible at file scope.
3270         * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
3271         CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
3272         (function_id_node, pretty_function_id_node, func_id_node): New
3273         macros.
3274         * c-decl.c (init_decl_processing): Initialize function_id_node,
3275         pretty_function_id_node, and func_id_node.
3276         (c_make_fname_decl): Correct comment.
3277
3278         * tree.h (struct tree_identifier): Constify pointer member.
3279
3280         * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
3281         * c-pragma.h (struct weak_syms): Constify name and value members.
3282         (add_weak): Constify arguments.
3283
3284         * calls.c (special_function_p): Constify a char *.
3285         (expand_call): Remove variable which is initialized and then
3286         never used.
3287         * dependence.c (struct def_use, struct induction, struct subscript):
3288         Constify 'variable' member.
3289         (get_low_bound, have_induction_variable): Constify char * argument.
3290         (find_induction_variable): Add braces to avoid dangling else.
3291         (classify_dependence): Constify char * arrays.
3292         * profile.c (output_func_start_profiler): Constify a char *.
3293         * stor-layout.c (finalize_record_size): Constify a char *.
3294         * tree.c (is_attribute_p): Constify a char *.
3295         * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
3296
3297         * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
3298         for comprehensibility.  Do not call get_identifier if we did
3299         not change the DECL_ASSEMBLER_NAME of the decl.  Use alloca to
3300         create temporary string constants, not ggc_alloc_string.  No
3301         need to copy result of ASM_FORMAT_PRIVATE_NAME.  Use const
3302         char * to hold IDENTIFIER_POINTERs.
3303
3304 2000-08-29  Richard Henderson  <rth@cygnus.com>
3305
3306         * config/ia64/ia64.md (muldi3): Use grfr_register_operand
3307         for the inputs.
3308
3309 2000-08-29  Richard Henderson  <rth@cygnus.com>
3310
3311         * reload.c (push_secondary_reload): Allow class == reload_class
3312         if we're using a reload_in/out pattern.
3313
3314         * config/ia64/ia64.md (reload_inti): Use a TImode scratch.  Use
3315         the half that does not conflict with the reload register.
3316         (reload_outti): Likewise.
3317
3318 2000-08-29  Kazu Hirata  <kazu@hxi.com>
3319
3320         * reload.c: Fix formatting.
3321
3322         * stmt.c: Fix formatting.
3323
3324         * gcc.c: Fix formatting.
3325
3326 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
3327
3328         * flags.h (time_report, mem_report): New global flags.
3329         * toplev.c: Define time_report and mem_report.
3330         (f_options): Add -ftime-report and -fmem-report.
3331         (compile_file): Turn on time_report if quiet_flag is off.
3332         Call ggc_print_statistics at very end if mem_report is on.
3333         * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
3334
3335         * ggc-common.c (ggc_print_statistics): Rename to
3336         ggc_print_common_statistics; all callers changed.  Scale
3337         quantities above 10K to kilobytes and above 10M to megabytes.
3338         * ggc-page.c (ggc_page_print_statistics): Rename to
3339         ggc_print_statistics.  Report memory consumed by internal data
3340         structures for each allocation bucket.  Scale quantities above
3341         10K to kilobytes and above 10M to megabytes.
3342         * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
3343         Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
3344         Define tally_leaves always.
3345         (ggc_print_statistics): New function.
3346         * ggc.h: Adjust for renamed functions.
3347
3348 Wed Aug 30 00:11:42 2000  Denis Chertykov  <denisc@overta.ru>
3349
3350         * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
3351         output_movsisf instead of which_alternative.
3352
3353         * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
3354
3355 Tue Aug 29 22:29:58 2000  Denis Chertykov  <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
3356
3357         * config/avr/avr-protos.h: (avr_output_ascii) Removed.
3358         (avr_progmem_p): New prototype.
3359         (output_movsisf): Prototype declaration changed.
3360         (output_movqi): New prototype.
3361         (output_movhi): New prototype.
3362         (call_insn_operand): Likewise.
3363         (final_prescan_insn): Likewise.
3364         (avr_simplify_comparision_p): Likewise.
3365         (avr_normalize_condition): Likewise.
3366         (compare_eq_p): Likewise.
3367         (out_shift_with_cnt): Likewise.
3368         (const_int_pow2_p): Likewise.
3369         (output_reload_inhi): Prototype declaration changed.
3370
3371         * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
3372         (ldi_reg_rtx): New. rtx for r31.
3373         (avr_init_stack): Initialize as "__stack".
3374         (function_prologue): Use it.
3375         Replace all TARGET_ENHANCED with AVR_ENHANCED.
3376         (avr_mcu_name): Initialize as "avr2".
3377         (avr_enhanced_p, avr_mega_p): New variables.
3378         (mcu_types, avr_override_options): Handle all known MCU types.
3379         Also handle avr1 (only preprocess, assemble and link).
3380         (print_operand): Using of `%K' in output template removed.
3381         (out_movqi_r_mr): Optimized.
3382         (out_movhi_r_mr): Likewise.
3383         (output_movqi): New function.
3384         (output_movhi): Likewise.
3385         (out_movsi_r_mr): Optimized.
3386         (output_movsisf): Compute insn length for `adjust_insn_length'
3387         (out_movqi_mr_r): Optimized.
3388         (out_movhi_mr_r): Optimized.
3389         (adjust_insn_length): Use output_movsisf, output_movqi,
3390         output_movhi for insn length adjusting.
3391         (reg_unused_after): Use dead_or_set_p.
3392         (preferred_reload_class): Now havn't any restriction.
3393         (reg_was_0): New function.
3394         (io_address_p): Likewise.
3395         (const_int_pow2_p): Likewise.
3396         (output_reload_inhi): Likewise.
3397         (output_reload_insisf): Likewise.
3398
3399         * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
3400         (LIB_SPEC): Use -lc for all supported devices.
3401         (LIBGCC_SPEC): Use -lgcc for all supported devices.
3402         (AVR_MEGA): Define as avr_mega_p.
3403         (AVR_ENHANCED): New, define as avr_enhanced_p.
3404         (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
3405         (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
3406         (CRT_BINUTILS_SPECS): Handle all known MCU types.
3407         Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
3408         (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
3409         (ASM_SPEC): Pass -mmcu=... to the assembler.
3410         Change all -DAVR_* to -D__AVR_*__.
3411         (INIT_TARGET_OPTABS), config/avr/libgcc.S:
3412         Rename library functions to start with two underscores.
3413         (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
3414         alignment.
3415         (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
3416         (SUPPORTS_WEAK): Likewise.
3417         (LDI_REG_REGNO): New. Register r31 will be used as temporary
3418         register for loading constants to r0-r14.
3419
3420         * config/avr/avr.md: Replace all TARGET_ENHANCED with
3421         AVR_ENHANCED.
3422         (*mov_r_sp): Removed. Handled by output_movhi.
3423         (*mov_sp_r): Likewise.
3424         (*mov_sp_r_no_interrupts): Likewise
3425         (*mov_sp_r_tiny): Likewise.
3426         (*movqi): Use output_movqi.
3427         (*reload_inqi): New.
3428         (*movhi): Use output_movhi.
3429         (*reload_inhi): New.
3430         (*negsi2): Optimized.
3431         (*negsf2): Likewise.
3432         Added peepholes (define_peephole2) for loading constants to r0-r14
3433         and for using `cpse' command.
3434
3435         * config/avr/libgcc.S: Rename library functions to start with two
3436         underscores.
3437         Add support for enhanced core.
3438         (_moqhi3): Fix typo, now _modqi3.
3439         (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
3440         (__prologue_saves__): Remove test for stack adjust by 0.
3441         (__tablejump__): New.
3442
3443         * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
3444         Add multilib support.
3445
3446 Tue Aug 29 15:17:54 EDT 2000  John Wehle  (john@feith.com)
3447
3448         * loop.c (prescan_loop): Don't check unknown_address_altered
3449         when deciding if insert_loop_mem is safe.  Add BLKmode MEMs
3450         to loop_store_mems as necessary.
3451         (loop_invariant_p): Don't check unknown_address_altered
3452         or unknown_constant_address_altered.
3453
3454 2000-08-29  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3455
3456         * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
3457
3458 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
3459
3460         * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
3461         print just the filename.
3462         * cpplex.c (_cpp_run_directive): Add additional argument, the
3463         name to give the synthetic buffer.  This defaults to
3464         translated "<command line>".
3465         * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
3466         Adjust to match.
3467         (_cpp_define_builtin): New function.
3468         * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
3469         * cpphash.h: Update prototypes.
3470
3471         * tradcpp.c (main): Process -D and -U simultaneously, in the
3472         order they appeared on the command line.
3473
3474 2000-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3475
3476         * c-decl.c (define_label): Call warning_with_file_and_line and
3477         error_with_file_and_line instead of plain warning or error.
3478
3479         * c-parse.in (label): Use save_filename/save_lineno to ensure
3480         correct values for calls to define_label.
3481
3482 2000-08-29  Mark Mitchell  <mark@codesourcery.com>
3483
3484         * calls.c (expand_call): Don't create a VAR_DECL just to throw it
3485         away.
3486         * expr.c (expand_expr, case TARGET_EXPR): Don't call
3487         mark_addressable.
3488         * tree.h (get_file_function_name): Remove two duplicate
3489         declarations.
3490
3491 2000-08-28  Kazu Hirata  <kazu@hxi.com>
3492
3493         * tree.c: Fix formatting.
3494
3495         * xcoffout.c: Fix formatting.
3496
3497 2000-08-28  Jason Merrill  <jason@redhat.com>
3498
3499         * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
3500
3501 2000-08-28  Daniel Berlin  <dberlin@redhat.com>
3502
3503         * dwarf2out.c (dwarf2out_finish): Don't bother calling
3504         break_out_includes if it won't do anything.
3505
3506 2000-08-28  Richard Henderson  <rth@cygnus.com>
3507
3508         * reload.c (push_secondary_reload): Revert 2000-08-16 change.
3509         (find_reloads): Likewise.
3510         * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
3511         (reload_inhi): Likewise.
3512
3513 2000-08-28  Richard Henderson  <rth@cygnus.com>
3514
3515         * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
3516         (call_insn_operand): Don't expect a surrounding mem.
3517         (constant_call_address_operand): Likewise.
3518         * config/i386/i386.h (PREDICATE_CODES): Update.
3519         * config/i386/i386.md (call patterns): Move the match_operand
3520         for the call destination inside the mem.
3521
3522 2000-08-28  Richard Henderson  <rth@cygnus.com>
3523
3524         * local-alloc.c (requires_inout): Don't use reserved range for
3525         EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
3526         * recog.c (asm_operand_ok): Likewise.
3527         (preprocess_constraints, constrain_operands): Likewise.
3528         * regclass.c (record_reg_classes): Likewise.
3529         * reload.c (find_reloads): Likewise.
3530         * reload1.c (maybe_fix_stack_asms): Likewise.
3531         (reload_cse_simplify_operands): Likewise.
3532         * stmt.c (expand_asm_operands): Likewise.
3533
3534         * md.texi: Update constraints documentation.
3535         * tm.texi (EXTRA_CONSTRAINT): Update.
3536
3537 2000-08-28  Daniel Berlin  <dberlin@redhat.com>
3538
3539         * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
3540         (print_die): If we don't know the offset of the
3541         target die, try the symbol.  Add a trailing newline.
3542         (reverse_all_dies): New fn.
3543         (dwarf2out_finish): Call it.
3544         (break_out_includes): Reorganize for clarity.
3545         (add_sibling_attributes): Don't call reverse_die_lists.
3546         (output_comp_unit): Rename from output_comdat_comp_unit.  Use for
3547         primary CU, too.
3548         * flags.h: Add flag_eliminate_dwarf2_dups.
3549         * toplev.c (f_options): Support -feliminate-dwarf2-dups.
3550
3551 2000-08-28  Jason Merrill  <jason@redhat.com>
3552
3553         * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
3554         * dwarf2out.c: #include "md5.h".
3555         (DIE_LABEL_PREFIX): New macro.
3556         (dw_val_struct): Add 'external' flag to val_die_ref.
3557         (add_AT_die_ref, AT_ref): Adjust.
3558         (AT_ref_external, set_AT_ref_external): New fns.
3559         (build_abbrev_table): Call set_AT_ref_external.
3560         (value_format): Call AT_ref_external.
3561         (die_struct): Add die_symbol field.
3562         (new_die): Clear it.
3563         (dwarf_tag_name): Handle BINCL/EINCL.
3564         (dwarf2out_start_source_file): Add BINCL DIE.
3565         (dwarf2out_end_source_file): Add EINCL DIE.
3566         (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
3567         (loc_checksum, attr_checksum, die_checksum): New fns.
3568         (is_type_die, is_comdat_die, is_symbol_die): New fns.
3569         (compute_section_prefix, assign_symbol_names): New fns.
3570         (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
3571         (output_die): Call output_die_symbol and AT_ref_external.
3572         (output_comdat_comp_unit): New fn, split out from...
3573         (dwarf2out_finish): ...here.  Also call add_sibling_attributes for
3574         secondary CUs.
3575         (output_pubnames, output_aranges): Abort if we see entries from
3576         secondary CUs.
3577         * toplev.h: Declare file_name_nondirectory.
3578         * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
3579         (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
3580         (debug_start_source_file): Call dwarf2out_start_source_file
3581         regardless of debug verbosity.
3582         (debug_end_source_file): Similarly.
3583         * tree.h: Declare clean_symbol_name.
3584         * tree.c (clean_symbol_name): Split out from...
3585         (get_file_function_name_long): ...here.
3586
3587         * dwarf2out.c (new_loc_descr): Use calloc.
3588         (splice_child_die): Remove the die from the right parent.
3589         (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
3590
3591 Mon Aug 28 19:02:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3592
3593         * toplev.c (decode_g_option): Don't give warning for unknown -g
3594         option; return 0 instead.
3595         (main): If -g option is not recognized by front end or
3596         language-independent code, give warning.
3597
3598 2000-08-28  Greg McGary  <greg@mcgary.org>
3599
3600         * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
3601         * config/i386/i386.c (ix86_expand_compare): Remove `static'.
3602         * config/i386/i386.md (trap, conditional_trap): New insn & expand.
3603
3604 2000-08-27  Greg McGary  <greg@mcgary.org>
3605
3606         * cpplex.c (parse_string): Don't look for backslash
3607         before first char in `namebuf'.
3608         * loop.c (strength_reduce): Skip NOTEs.
3609
3610 2000-08-27  Jason Merrill  <jason@redhat.com>
3611
3612         * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
3613         DECL_EXTERNAL on a local extern.  Don't set DECL_IGNORED_P or
3614         TREE_ASM_WRITTEN, either.
3615         (finish_decl): Adjust.
3616
3617 2000-08-28  Philipp Thomas  <pthomas@suse.de>
3618
3619         * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
3620         they have been incorporated into the gettext CVS. Change the text to
3621         reflect the current status of NLS. Add instructions for accessing
3622         the gettext CVS and add the patch from Martin v. Loewis.
3623
3624 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
3625
3626         * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
3627         by using gen_lowpart_common.
3628         (movdi_internal64+6): Likewise.
3629
3630 2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
3631
3632         * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
3633         Document.
3634
3635         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
3636         numbers to the ranges used by GDB.
3637
3638 2000-08-25  Richard Henderson  <rth@cygnus.com>
3639
3640         * config/ia64/ia64.h (struct machine_function): Add n_varargs.
3641         * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
3642         (ia64_expand_prologue): Likewise.
3643         (ia64_setup_incoming_varargs): Set it.  Properly skip the current
3644         argument for stdargs.
3645
3646 2000-08-25  Jason Merrill  <jason@redhat.com>
3647
3648         * integrate.c (expand_inline_function): Pull out the original decl.
3649
3650 2000-08-25  Jim Wilson  <wilson@cygnus.com>
3651
3652         * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
3653
3654         * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
3655
3656 2000-08-25  Greg McGary  <greg@mcgary.org>
3657
3658         * flow.c (dump_edge_info): Use ARRAY_SIZE.
3659         * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
3660
3661 2000-08-25  Richard Earnshaw  <rearnsha@arm.com>
3662
3663         * arm.h (STRUCT_VALUE): Define to 0, not NULL.
3664
3665 Fri Aug 25 12:52:49 EDT 2000  John Wehle  (john@feith.com)
3666
3667         * i386.c (ix86_find_base_term): New.
3668         * i386-protos.h (ix86_find_base_term): Prototype.
3669         * i386.h (FIND_BASE_TERM): Define.
3670         * alias.c (find_base_term): Use it.
3671         * tm.texi (FIND_BASE_TERM): Document it.
3672
3673         * alias.c (true_dependence, write_dependence_p): Unchanging
3674         memory can't conflict with non-unchanging memory.
3675
3676         * alias.c (memrefs_conflict_p): A BLKmode reference
3677         to a symbol (or CONST_INT address) always conflicts
3678         with a reference to another symbol.
3679
3680 2000-08-25  Joseph S. Myers  <jsm28@cam.ac.uk>
3681
3682         * c-common.c (time_char_table): Don't allow width and flags with
3683         "z" format.
3684
3685 2000-08-25  Jakub Jelinek  <jakub@redhat.com>
3686
3687         * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
3688         way as LT and LTU when the second operand has 0 in low word.
3689
3690 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
3691
3692         * basic-block.h (struct loop): Rename `exits' field to
3693         `exit_edges'.  Add `entry_edges' and `num_entries' fields.
3694
3695         * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
3696         (flow_loop_entry_edges_find): Add.
3697         (flow_edge_list_print): Rename from flow_exits_print.
3698         (flow_loops_find): Call flow_loop_entry_edges_find.
3699         (flow_loop_dump): Dump entry_edges list.
3700         (flow_loops_free): Free entry_edges.
3701
3702 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
3703
3704         * loop.c (loop_dump_aux, debug_loop): New functions.
3705         (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
3706
3707         * flow.c (flow_loops_dump): Add callback parameter.
3708         (flow_loop_dump): Add callback parameter and call it.  Move
3709         loop note debugging code to loop_dump_aux.
3710
3711         * basic-block.h (flow_loop_dump): Add callback parameter
3712         (flow_loops_dump): Likewise.
3713
3714         * toplev.c (rest_of_compilation): Add NULL callback function pointer
3715         to call to flow_loops_dump.
3716
3717 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
3718
3719         * loop.c (count_loop_regs_set): Replace start and end arguments
3720         with loop argument.  All callers udated.
3721
3722 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
3723
3724         * loop.c (constant_high_bytes): Delete.
3725
3726 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
3727
3728         * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
3729         and NOTE_INSN_LOOP_VTOP to...
3730         (find_and_verify_loops) ...here.
3731
3732 Fri Aug 25 04:21:13 2000  Alexandre Oliva  <aoliva@redhat.com>
3733
3734         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
3735         (fini_dummy, init_dummy): Use it.
3736
3737 Fri 25-Aug-2000 08:03:27 BST  Neil Booth  <NeilB@earthling.net>
3738
3739         * cpplex.c (is_macro_disabled): Caller has already checked
3740         that we're not a preprocessed file.
3741
3742 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
3743
3744         * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
3745         (c-iterate.o): Remove target.
3746         * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
3747         * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
3748         (finish_decl): Don't handle iterators.
3749         (grokdeclarator): Likewise.
3750         * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
3751         * gcc/c-gperf.h: Regenerated.
3752         * gcc/c-iterate.c: Removed.
3753         * gcc/c-lex.c (init_lex): Don't handle iterators.
3754         * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
3755         (compstmt_primary_start): Remove push_iterator_stack call.
3756         (stmt): Don't allow iterator statements.  Replace iterator_expand
3757         with expand_expr_stmt.
3758         (all_iter_stmt): Remove.
3759         (all_iter_stmt_simple): Likewise.
3760         (all_iter_stmt_with_decl): Likewise.
3761         * gcc/c-tree.h (ITERATOR_P): Remove.
3762         (ITERATOR_BOUND_P): Likewise.
3763         (init_iterators): Remove declaration.
3764         (iterator_expand): Likewise.
3765         (iterator_for_loop_start): Likewise.
3766         (iterator_for_loop_end): Likewise.
3767         (iterator_for_loop_record): Likewise.
3768         (push_iterator_stack): Likewise.
3769         (pop_iterator_stack): Likewise.
3770         * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
3771         (readonly_warning): Likewise.
3772         * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
3773
3774 2000-08-24  Jim Wilson  <wilson@cygnus.com>
3775
3776         * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
3777         Copy type in a TYPE_DECL, just like pushdecl does.
3778
3779 2000-08-24  Richard Henderson  <rth@cygnus.com>
3780
3781         * toplev.c (main): Enable flag_reorder_blocks at -O2.
3782
3783 2000-08-24  Zack Weinberg  <zack@wolery.cumb.org>
3784
3785         * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
3786         asked for one page, allocate GGC_QUIRE_SIZE of them and put
3787         the extras on the free list.
3788         (release_pages): Clean up.
3789         (ggc_set_mark): Don't adjust G.allocated here...
3790         (sweep_pages): ... do it here.
3791
3792 2000-08-24  Zack Weinberg  <zack@wolery.cumb.org>
3793
3794         * cppfiles.c (read_include_file): Rearrange initializations.
3795
3796 2000-08-24  Richard Henderson  <rth@cygnus.com>
3797
3798         * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
3799
3800         * config/ia64/ia64-protos.h: Update.
3801         * config/ia64/ia64.c (gr_register_operand): New.
3802         (fr_register_operand, grfr_register_operand): New.
3803         (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
3804         (grfr_reg_or_8bit_operand): New.
3805         (gr_reg_or_0_operand): Rename from reg_or_0_operand and
3806         use gr_register_operand.
3807         (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
3808         (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
3809         (gr_reg_or_8bit_and_adjusted_operand): Likewise.
3810         (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
3811         (fr_reg_or_fp01_operand): Likewise.
3812         (not_postinc_memory_operand): New.
3813         (ia64_split_timode): Remove unused variables.
3814         (rtx_needs_barrier): Check arguments to cmpxchg.
3815         (builtin_description): Remove.
3816         (bdesc_2argsi, bdesc_2argdi): Remove.
3817         (ia64_init_builtins): Declare all builtins directly.
3818         (ia64_expand_fetch_and_op): Rewrite to be called from
3819         ia64_expand_builtin directly.  Use expand_binop and co.
3820         (ia64_expand_op_and_fetch): Likewise.
3821         (ia64_expand_compare_and_swap): Likewise.
3822         (ia64_expand_binop_builtin): Remove.
3823         (ia64_expand_lock_test_and_set): New.
3824         (ia64_expand_lock_release): New.
3825         (ia64_expand_builtin): Use them.
3826         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
3827         (EXTRA_CONSTRAINT): Use it.
3828         (PREDICATE_CODES): Update.
3829         * config/ia64/ia64.md (*): Use gr_register_operand and co.
3830         (mf): Indicate that we set memory as well as use it.
3831         (fetchadd_acq_si): Show memory being modified as well.
3832         (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
3833         (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
3834         (lock_test_and_set_si, lock_test_and_set_di): Remove.
3835         (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
3836         (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
3837         (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
3838         (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
3839         (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
3840         (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
3841         (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
3842         (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
3843         * config/ia64/ia64intrin.h (*): Cast result to the appropriate
3844         return type.  Pretty print definitions.
3845
3846 2000-08-24  Jim Wilson  <wilson@cygnus.com>
3847
3848         * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
3849         we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
3850
3851 2000-08-24  Jason Merrill  <jason@redhat.com>
3852
3853         * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
3854         AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
3855         (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
3856         get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
3857
3858 2000-08-24  Greg McGary  <greg@mcgary.org>
3859
3860         * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
3861         and extendtab within their proper array boundaries.
3862         * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
3863         for the entire array.
3864
3865         * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
3866         * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
3867         * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
3868         * config/fr30/fr30.c (fr30_print_operand): Likewise.
3869         * config/i386/dgux.c (output_options): Likewise.
3870         * config/i386/dgux.h (ASM_FILE_START): Likewise.
3871         * config/m88k/m88k.c (output_options): Likewise.
3872         * config/m88k/m88k.h (ASM_FILE_START): Likewise.
3873         * config/mcore/mcore.c (mcore_output_inline_const_forced,
3874         layout_mcore_frame, handle_structs_in_regs): Likewise.
3875         * config/mips/mips.c (output_block_move): Likewise.
3876         * config/rs6000/rs6000.c (rs6000_override_options,
3877         rs6000_file_start): Likewise.
3878         * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
3879         * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
3880         * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
3881         * builtins.c (expand_builtin_setjmp): Likewise.
3882         * expr.c (safe_from_p): Likewise.
3883         * flow.c (life_analysis): Likewise.
3884         * fold-const.c (size_int_type_wide): Likewise.
3885         * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
3886         * genattrtab.c (make_length_attrs): Likewise.
3887         * genopinit.c (gen_insn): Likewise.
3888         * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
3889         * global.c (global_alloc): Likewise.
3890         * local-alloc.c (find_free_reg): Likewise.
3891         * mips-tdump.c (print_symbol): Likewise.
3892         * mips-tfile.c (parse_def, parse_input): Likewise.
3893         * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
3894         * stmt.c (expand_nl_goto_receiver): Likewise.
3895         * stor-layout.c (set_sizetype): Likewise.
3896         * varasm.c (decode_reg_name): Likewise.
3897         * toplev.c (decode_f_option, decode_W_option,
3898         set_target_switch, print_switch_values): Likewise.
3899         (NUM_ELEM): Remove macro.
3900         (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
3901
3902 2000-08-24  Greg McGary  <greg@mcgary.org>
3903
3904         * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
3905         (MAIN_NAME_P, main_identifier_node): New macros.
3906         * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
3907         * c-decl.c (start_decl, grokdeclarator, start_function,
3908         store_parm_decls, finish_function): Use MAIN_NAME_P.
3909         * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
3910         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
3911         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
3912         * config/pdp11/pdp11.c (output_function_prologue): Likewise.
3913
3914 2000-08-24  Greg McGary  <greg@mcgary.org>
3915
3916         * cppfiles.c (actual_directory): Don't write beyond `dir'
3917         when it contains "".
3918         * real.c (asctoeg): Stay within bounds of etens[][].
3919
3920 2000-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3921
3922         * dependence.c (dependence_string, direction_string,
3923         dump_one_node, dump_node_dependence): Hide unused identifiers.
3924         (get_low_bound, normalize_coefficients): Match definition to
3925         static prototype.
3926         (get_one_coefficient): Initialize variables `value0_is_idx' and
3927         `value1_is_idx'.
3928         (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
3929         (ziv_test): Delete variable `idx', use parameter `sub' instead.
3930         (direction_merge): Avoid automatic aggregate initialization.
3931         (have_dependence_p): Use `src' not `dest' to set `src_idx'.
3932         Initialize variables `dest_idx' and `src_idx'.
3933         (end_dependence_analysis): Avoid C89 style function definition.
3934
3935 2000-08-24  Joseph S. Myers  <jsm28@cam.ac.uk>
3936
3937         * c-common.c (time_char_table): Don't allow width with %F.
3938         (check_format_info): Don't allow "Z" length with scanf.
3939
3940 2000-08-24  Gabriel Dos Reis  <gdr@codesourcery.com>
3941
3942         * diagnostic.c (finish_diagnostic): Define.
3943         (output_do_printf): Use wrap_text instead of output_add_string.
3944         (default_print_error_function): Avoid embedded '\n'.
3945
3946         * diagnostic.h (flush_diagnostic_buffer): Declare.
3947
3948 2000-08-23  Alexandre Oliva  <aoliva@redhat.com>
3949
3950         * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
3951
3952 2000-08-23  Hans-Peter Nilsson  <hp@axis.com>
3953
3954         * Makefile.in (GCC_PASSES): Add specs.
3955
3956 2000-08-23  Jim Wilson  <wilson@cygnus.com>
3957
3958         * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
3959         * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
3960         EHANDLER nor UHANDLER bit is set.
3961         (__get_except_table): Likewise.
3962
3963 2000-08-23  Nick Clifton  <nickc@redhat.com>
3964
3965         * config/arm/lib1funcs.asm: Replace upper case condition codes
3966         with lower case versions.
3967
3968         * config/arm/arm.h (STRUCT_VALUE): Define.
3969         (STRUCT_VALUE_REGNUM): Delete.
3970
3971 2000-08-23  Zack Weinberg  <zack@wolery.cumb.org>
3972
3973         * cpphash.h (IN_I): New flag for directive table.
3974         * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
3975         #pragma with IN_I.
3976         (_cpp_check_directive): If -fpreprocessed, execute directives
3977         marked with IN_I.  Issue no warnings in this case.
3978         * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
3979
3980 2000-08-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3981
3982         * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
3983         %u.
3984         (check_format_info): Support printf 'I' flag; warn about it with
3985         -pedantic.
3986
3987 2000-08-23  Richard Earnshaw  (rearnsha@arm.com)
3988
3989         * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
3990         barrier can't be ignored by the alias analysis code.
3991
3992 2000-08-12  Eli Zaretskii  <eliz@is.elta.co.il>
3993
3994         * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
3995         works inside fixincl.
3996
3997 Wed Aug 23 04:55:48 2000  Alexandre Oliva  <aoliva@redhat.com>
3998
3999         * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
4000         simplify_relational_operation() unless both operands are of
4001         VOIDmode.
4002         * cse.c (fold_rtx): Likewise.
4003
4004 Tue Aug 22 23:53:27 EDT 2000  John Wehle  (john@feith.com)
4005
4006         * rtlanal.c (rtx_unstable_p): The pic register is stable
4007         (within one function) and the actual rtx should be used
4008         when checking the registers.
4009         (rtx_addr_can_trap_p): Pic memory addresses can't trap.
4010
4011         * alias.c (true_dependence, write_dependence_p): Fix
4012         bug in previous patch.
4013
4014         * i386.c (ix86_GOT_alias_set): New.
4015         (legitimize_pic_address): Use it.
4016
4017         * rtlanal.c (rtx_unstable_p): An unchanging MEM is
4018         only stable if its address is stable.
4019         (rtx_varies_p): An unchanging MEM can't vary if
4020         its address doesn't vary.
4021
4022 2000-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4023
4024         * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
4025
4026 2000-08-22  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
4027
4028         * vax.h (ASM_SPEC): Pass `-J' to assembler.
4029         * x-vax-gcc: New file for bootstrapping with gcc.
4030         * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
4031         * configure.in: Use x-vax-gcc with gcc.
4032         * configure: Rebuilt.
4033
4034 Tue Aug 22 21:21:05 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4035
4036         * toplev.c (rest_of_compilation): Rebuild label notes after
4037         post-reload splitting pass if new labels have been created.
4038
4039 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
4040
4041         * diagnostic.h (output_buffer_state): New macro.
4042         * diagnostic.c (diagnostic_for_decl, sorry,
4043         default_print_error_function, output_do_verbatim,
4044         report_diagnostic, report_problematic_module): Use it.
4045         (wrap_text): Tweak.
4046         (output_format): Use wrap_text instead of maybe_wrap_text.
4047
4048 2000-08-22  Nick Clifton  <nickc@redhat.com>
4049
4050         * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
4051         Common code for ARM divide and modulus functions.
4052         (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
4053         ARM_DIV_MOD_BODY.
4054         (FUNC_END): New macro: Common code at the end of the division and
4055         modulo functions.
4056         (THUMB_FUNCTION_START): New macro:  Common code at the start of
4057         Thumb functions.
4058         (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
4059
4060 Tue Aug 22 20:34:52 2000  Kaz Kojima <kkojima@rr.iij4u.or.jp>
4061
4062         * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
4063
4064         * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
4065         sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
4066         const0_rtx.
4067
4068 2000-08-22  Nick Clifton  <nickc@redhat.com>
4069
4070         * config/arm/lib1funcs.asm (__umodsi3): Before performing any
4071         restorative additions, test for bottom bits of IP being set,
4072         rather than relying upon the RORs not matching.
4073         (__modsi3): Ditto.
4074
4075 2000-08-22  David Edelsohn  <edelsohn@gnu.org>
4076
4077         * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
4078         text_section() as appropriate instead of emitting text csect
4079         pseudo-op directly.
4080         (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
4081         (UNIQUE_SECTION): Define macro.
4082         (ASM_OUTPUT_SECTION_NAME): Define macro.
4083         * rs6000.c (rs6000_override_options): Disable -ffunction-sections
4084         on AIX if debugging and -fdata-sections always.
4085
4086 2000-08-22  Steven King  <sxking@uswest.net>
4087
4088         * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
4089         machinery.
4090         (LDBL_MAX): Same here.
4091
4092 2000-08-22  Richard Henderson  <rth@cygnus.com>
4093
4094         * flow.c (tidy_fallthru_edge): Update b->end properly.
4095
4096 2000-08-22  Stan Cox  <scox@redhat.com>
4097
4098         * Makefile.in (OBJS): Add dependence.o.
4099         * dependence.c: New file.
4100
4101 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>, John David Anglin  <dave.anglin@nrc.ca>
4102
4103         * calls.c (check_sibcall_argument_overlap_1): Adjust for
4104         ARGS_GROW_DOWNWARD.
4105         (check_sibcall_argument_overlap): Likewise.
4106
4107 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
4108
4109         * invoke.texi (SH Options): Document -m4-nofpu,
4110         -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
4111         -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
4112
4113 2000-08-22  Joseph S. Myers  <jsm28@cam.ac.uk>
4114
4115         * c-common.c (check_format_info): Give the 'some locales' warning
4116         for strftime %Ey rather than the unconditional 'only last 2 digits
4117         of year' one.
4118
4119 2000-08-22  Richard Henderson  <rth@cygnus.com>
4120
4121         * alias.c (init_alias_analysis): Do not register
4122         struct_value_incoming_rtx or static_chain_rtx as pointing
4123         to stack memory.
4124
4125 Tue Aug 22 01:44:43 2000  Jeffrey A Law  (law@cygnus.com)
4126
4127         * protoize.c (munge_compile_params): Fix typo and formatting buglets.
4128
4129 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
4130
4131         * diagnostic.h (report_problematic_module): Declare.
4132         * diagnostic.c (report_problematic_module): New function.
4133         (report_error_function): Tweak.
4134
4135 Tue Aug 22 02:31:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4136
4137         * stmt.c (expand_goto_internal, fixup_gotos): Only check
4138         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
4139
4140 2000-08-21  Richard Henderson  <rth@cygnus.com>
4141
4142         * flow.c (calculate_global_regs_live): Mark frame pointer live
4143         everywhere before reload.
4144
4145 2000-08-21  Jim Wilson  <wilson@cygnus.com>
4146
4147         * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
4148         INTEL_EXTENDED_IEEE_FORMAT.
4149         (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support.  Unconditionally
4150         clear last two bytes of output FP value.
4151
4152 2000-08-21  Graham Stott  <grahams@cygnus.co.uk>
4153
4154         * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
4155
4156 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
4157
4158         * unroll.c (loop_find_equiv_value): If ret is modified between
4159         insn and loop_start, ret might not be equivalent to reg.
4160
4161 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4162
4163         * c-common.c (init_dollar_format_checking,
4164         maybe_read_dollar_number, finish_dollar_format_checking): New
4165         functions.
4166         (dollar_arguments_used, dollar_arguments_count,
4167         dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
4168         New variables.
4169         (check_format_info): Support $ formats for scanf and printf width
4170         and precision.  Always increment format_chars to advance past the
4171         '*' of precision, not just when the format parameters are
4172         available to check.
4173
4174 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4175
4176         * mips.c (block_move_loop, expand_block_move,
4177         function_arg_partial_nregs, save_restore_insns, function_prologue,
4178         mips_expand_prologue, RA_MASK): Avoid using the `U' integer
4179         constant suffix.
4180         (function_arg_advance, function_arg): Match argument to format
4181         specifier `%p'.
4182
4183 2000-08-21  Nix  <nix@esperi.demon.co.uk>
4184
4185         * gcc.c (do_spec_1): Implement %j spec flag.
4186         Remove dead comment.
4187
4188         * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
4189         * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
4190         * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
4191         * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
4192
4193         * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
4194         writable) instead of hardcoded value.
4195
4196         * toplev.c (compile_file): Output to a file even if -fsyntax-only.
4197
4198         * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
4199         MKTEMP_EACH_FILE.
4200
4201         * gcc.c (cc1_options): Do not process -o or run the assembler if
4202         -fsyntax-only.
4203         * objc/lang-spec.h: Likewise.
4204
4205 2000-08-21  Eli Zaretskii  <eliz@is.elta.co.il>
4206
4207         * fixinc/fixincl.c (fix_with_system): Pipe the output of
4208         "external" fixes through `cat', to avoid truncating the input
4209         file by redirection.
4210
4211 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
4212
4213         * config/i386/i386.md (lea_general_1): Copy insn condition to split
4214         condition.
4215         (lea_general_2, lea_general_3): Likewise.
4216
4217 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4218
4219         * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
4220         warnings to user code.
4221
4222         * c-lex.c (readescape, yylex): Likewise.
4223
4224         * c-typeck.c (store_init_value, process_init_element): Likewise
4225         (c_expand_start_case): Format.
4226
4227 2000-08-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4228
4229         * mips/linux.h (LINK_SPEC): Use %(endian_spec).
4230
4231         * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
4232         and linker_endian_spec to endian_spec.
4233         (ENDIAN_SPEC): Add %{EB} and %{EL}.
4234         (LINK_SPEC): Remove %{EB} and %{EL}.
4235         (ASM_SPEC): Likewise.  Use %(endian_spec).
4236
4237 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4238
4239         * c-tree.h (flag_hosted): Move declaration from here...
4240         * c-common.h (flag_hosted): ... to here.
4241         (flag_noniso_default_format_attributes): New declaration.
4242         * c-decl.c (flag_noniso_default_format_attributes): New variable.
4243         (c_decode_option): Set it appropriately for options choosing
4244         language standard variant.
4245         * c-common.c (init_function_format_info): Only provide default
4246         format attributes if flag_hosted.  Only provide the gettext
4247         formats if flag_noniso_default_format_attributes.  Update
4248         comments.
4249         (check_format_info): Disable treatment of %a as a scanf flag in
4250         C99 mode.
4251
4252 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4253
4254         * c-common.c (scan_char_table): Add 'w' to flags for all formats
4255         except 'n'.
4256         (check_format_info): Set 'wide' for scanf format widths.  Warn for
4257         a zero scanf width.  Make the check for writing into a constant
4258         object at the first level of indirection; at later levels, warn if
4259         any type qualifiers are encountered.
4260
4261 Mon Aug 21 07:41:12 2000  Jeffrey A Law  (law@cygnus.com)
4262
4263         * reload.c (reload_inner_reg_of_subreg): New function broken out of
4264         push_reload.
4265         (push_reload): Use reload_inner_reg_of_subreg.
4266         (combine_reloads): Do not combine reloads if the input reload
4267         is a SUBREG in which the inner part will need reloading.
4268
4269         * global.c (global_alloc): Avoid passing dumpfile argument to
4270         reload routines.
4271         * toplev.c (rest_of_compilation): Likewise.
4272         * reload.h (reload): Remove dumpfile argument.  Callers changed.
4273         (debug_reload, debug_reload_to_stream): Move prototypes here.
4274         * rtl.h  (reload): Remove dumpfile argument.
4275         * reload.c (debug_reload): Remove prototype.
4276         (debug_reload_to_stream): Likewise.
4277         * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
4278         instead.
4279
4280 2000-08-21  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4281
4282         * diagnostic.c (context_as_prefix): Export.
4283         (need_error_newline): Remove.
4284         (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
4285         (error_module_changed, record_last_error_module,
4286         error_function_changed, record_last_error_function): New functions.
4287         (initialize_diagnostics): Default intialize
4288         lang_diagnostic_starter, lang_diagnostic_finalizer.
4289         (init_output_buffer): Tweak.
4290         (file_name_as_prefix): New function.
4291         (announce_function, default_print_error_function,
4292         report_error_function, set_diagnostic_context): Tweak.
4293
4294 2000-08-21  Richard Earnshaw  <rearnsha@arm.com>
4295
4296         * flow.c (init_propagate_block_info): Handle SUBREG in a jump
4297         condition expression.
4298
4299 2000-08-20  Richard Henderson  <rth@cygnus.com>
4300
4301         * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
4302
4303 2000-08-20  Zack Weinberg  <zack@wolery.cumb.org>
4304
4305         * cppinit.c (cpp_init): Set global flag when called.
4306         (cpp_reader_init): Bomb out if cpp_init hasn't been called.
4307
4308 Sun Aug 20 01:41:35 2000  Dennis Chernoivanov  <cdi@sparc.spb.su>
4309
4310         * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
4311         before `process_directive' so that newlines won't be missed
4312         for directives.
4313         (cpp_printf): Increment `print->lineno' when newline is emitted.
4314
4315         * cppmain.c (cb_ident): Likewise.
4316         (cb_define): Likewise.
4317         (cb_undef): Likewise.
4318         (cb_include): Likewise.
4319         (cb_def_pragma): Likewise.
4320         (dump_macros_helper): Likewise.
4321
4322 2000-08-20  Richard Henderson  <rth@cygnus.com>
4323
4324         * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
4325         assigned before a loop.
4326
4327         * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
4328         (ashrsi3, lshrsi3): Likewise.
4329
4330 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
4331
4332         * c-lang.c: #include diagnostic.h
4333         (c_tree_printer): New function.
4334         (lang_init): Initialize lang_printer.
4335
4336         * Makefile.in (c-lang.o): Depends on diagnostic.h
4337
4338 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
4339
4340         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
4341
4342         * diagnostic.c (default_diagnostic_starter,
4343         default_diagnostic_finalizer): New functions.
4344         (diagnostic_for_asm, diagnostic_for_decl): Tweak.
4345         (pedwarn, pedwarn_with_file_and_line, error,
4346         error_with_file_and_line, fatal, warning,
4347         warning_with_file_and_line): Adjust call to report_diagnostic.
4348         (report_diagnostic): Rework.
4349         (set_diagnostic_context): New function.
4350
4351         * diagnostic.h (struct diagnostic_context): New data structure.
4352         (diagnostic_message, diagnostic_argument_list,
4353         diagnostic_file_location, diagnostic_line_location,
4354         diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
4355         diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
4356         (set_diagnostic_context): Declare.
4357         (report_diagnostic): Change prototype.
4358
4359 Sun 20-Aug-2000 09:25:45 BST  Neil Booth  <NeilB@earthling.net>
4360
4361         * fix-header.c (main): Initialize cpplib.
4362
4363 2000-08-19  Michael Meissner  <meissner@redhat.com>
4364
4365         * ifcvt.c (find_if_block): Do not assume that a THEN block has any
4366         instructions in it before checking for indirect jumps.
4367
4368         * ifcvt.c (find_if_block): Do not consider a THEN block that ends
4369         in a indirect jump as a potential for conditional execution.
4370
4371         * d30v.h (d30v_init_expanders): Don't declare here.
4372         * d30v-protos.h (d30v_init_expanders): Declare here with a valid
4373         prototype.
4374
4375 Sat 19-Aug-2000 21:11:45 BST  Neil Booth  <NeilB@earthling.net>
4376
4377         * cpp.texi: Add @section for assertions.
4378
4379 Sat Aug 19 12:37:08 EDT 2000  John Wehle  (john@feith.com)
4380
4381         * loop.c (scan_loop): Use CONST_CALL_P instead of
4382         checking for REG_LIBCALL / REG_RETVAL.
4383
4384 Sat Aug 19 09:18:47 2000  Jeffrey A Law  (law@cygnus.com)
4385
4386         * reload1.c (reload_as_needed): Accept dumpfile argument,
4387         pass it to emit_reload_insns.
4388         (emit_reload_insns): Add new dumpfile argument.  If non-null
4389         then dump the reloads for each insn into the dumpfile.
4390         (reload): Pass dumpfile to reload_as_needed.
4391
4392         * invoke.texi: Clean up linux-gnu vs linux comments.
4393
4394 2000-08-19  Richard Henderson  <rth@cygnus.com>
4395
4396         * config/ia64/ia64.c (reg_or_5bit_operand): New.
4397         (ia64_depz_field_mask): New.
4398         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
4399         (PREDICATE_CODES): Update.
4400         * config/ia64/ia64.md: Update commentary.
4401         (depz_internal): New.
4402         (ashlsi3): Implement directly.
4403         (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
4404         (ashldi3): Use shladd.
4405         * config/ia64/ia64-protos.h: Update.
4406
4407 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
4408
4409         * toplev.c (independent_decode_option): Always process -g.
4410         Remove third argument, now unused.  Adjust caller to match.
4411
4412 2000-08-18  Richard Henderson  <rth@cygnus.com>
4413
4414         * combine.c (make_compound_operation): Break after creating
4415         the extraction.
4416
4417 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
4418
4419         * cpplib.c (cpp_register_pragma_space): Just return if the
4420         namespace is already registered.
4421
4422 2000-08-18  Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton  <nickc@redhat.com>
4423
4424         * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
4425         constant amount.  Do not generate ROTL instruction.
4426
4427 Fri Aug 18 16:22:20 2000  Alexandre Oliva  <aoliva@redhat.com>
4428
4429         * config/sh/elf.h: Do not include sh/sh.h.
4430         * config/sh/rtems.h: Likewise.
4431         * config/sh/rtemself.h: Do not include sh/elf.h.
4432         * configure.in: Get them included with `tm_file's.
4433         * configure: Rebuilt.
4434
4435         * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
4436         * config/sh/sh.c (fpscr_set_from_mem): Use them.
4437
4438 Fri Aug 18 14:23:18 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4439
4440         * stor-layout.c (compute_record_type): Don't use mode of single
4441         field as mode of record if not integer mode of same type.
4442
4443         * regmove.c (perhaps_ends_bb_p): New function.
4444         (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
4445         (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
4446         (fixup_match_1): Likewise.
4447         (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
4448         avoid signed/unsigned warnings.
4449
4450         * function.c (fixup_var_refs_1, case MEM): Update CODE after
4451         updating X.
4452
4453 Fri 18-Aug-2000 18:33:45 BST  Neil Booth  <NeilB@earthling.net>
4454
4455         * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
4456         (_cpp_trigraph_map): Declaration moved from cpplex.c
4457
4458         * cppinit.c: Define _cpp_trigraph_map.  Use UCHAR_MAX + 1
4459         instead of 256.  Use consistent test for designated initializers.
4460         (cpp_init): Initialize trigraph_map.
4461         (initialize_standard_includes, parse_option):  Use memcmp
4462         instead of strncmp.
4463
4464         * cpplex.c (init_trigraph_map): Remove.
4465         (trigraph_ok, trigraph_replace, lex_line): Refer to
4466         _cpp_trigraph_map.
4467
4468         * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
4469         (do_unassert): Remove unused "next" local.
4470
4471         * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
4472
4473 2000-08-18  Emmanuel Marty  <emarty@suntech.fr>
4474
4475         * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
4476         insn.
4477
4478 2000-08-17  Richard Henderson  <rth@cygnus.com>
4479
4480         * config/ia64/ia64.c (spill_restore_mem): Handle emitting
4481         the first insn in a sequence.
4482
4483 Thu Aug 17 22:40:05 EDT 2000  John Wehle  (john@feith.com)
4484
4485         * alias.c (true_dependence, write_dependence_p): A read
4486         involving a label_ref or the constant pool doesn't create
4487         a dependency.
4488
4489         * rtl.h (unchanging): Improve documentation.
4490
4491 2000-08-17  Rodney Brown  <RodneyBrown@mynd.com>
4492
4493         * cse.c (insert_regs): Remove unused `regno'.
4494
4495 2000-08-17  Neil Booth  <NeilB@earthling.net>
4496
4497         * (cppinit.c) merge_include_chains: Use remove_dup_dir,
4498         remove_dup_dirs.  If qtail == brack, remove brack not
4499         qtail.
4500         (remove_dup_dir, remove_dup_dirs): New functions.
4501
4502 2000-08-17  Neil Booth  <NeilB@earthling.net>
4503
4504         * cppinit.c (cpp_cleanup): Free include dir chains.
4505         * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
4506         (do_unassert): Free the assert with _cpp_free_definition.
4507         * cppmacro.c (_cpp_free_definition): Free memory allocated for
4508         assertions.  Make the node a T_VOID node.
4509
4510 2000-08-17  Neil Booth  <NeilB@earthling.net>
4511
4512         * cppinit.c (path_include, append_include_chain):
4513         Remove 2nd parameter (struct cpp_pending *).
4514         (path_include, initialize_standard_includes, cpp_handle_option):
4515         Update callers appropriately.
4516         (cpp_handle_option): Use pend.
4517
4518 2000-08-17  Neil Booth  <NeilB@earthling.net>
4519
4520         * cppinit.c (sort_options): Remove, put functionality in
4521         cpp_init.
4522         (cpp_init): New.
4523         (initialize_builtins): Free memory.
4524         (cpp_start_read): Move init_IStable to cpp_init.
4525
4526         * cpplib.h (cpp_init): New prototype.
4527         * cppmain.c (main): Call cpp_init.
4528
4529 Thu Aug 17 13:20:32 EDT 2000  John Wehle  (john@feith.com)
4530
4531         * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
4532         (rtx_unstable_p, rtx_varies_p): Process vectors.
4533
4534 2000-08-16  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4535
4536         * config/sh/lib1funcs.asm (GLOBAL): Define.  Use for all
4537         references to GLOBAL symbols.  Use LOCAL where appropriate.
4538
4539 2000-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4540
4541         * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.  Always
4542         use t-aix41 when host == target.
4543
4544 2000-08-16  Richard Henderson  <rth@cygnus.com>
4545
4546         * reload.c (push_secondary_reload): Revert last change.
4547         If we use a reload_in/out pattern, make the when the same
4548         as the primary reload.
4549         (find_reloads): Likewise.
4550
4551 2000-08-16  Manfred Hollstein  <manfredh@redhat.com>
4552
4553         * configure.in (libstdcxx-v3): Fix test.
4554         * configure: Regenerate.
4555
4556 Wed Aug 16 08:10:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4557
4558         * calls.c (calls_function_1, expand_call): Only test
4559         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
4560         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4561
4562 2000-08-16  Richard Henderson  <rth@cygnus.com>
4563
4564         * combine.c (simplify_shift_const): Revert previous two
4565         changes.  If SHIFT_COUNT_TRUNCATED, crop the shift count
4566         before the main loop.
4567
4568 2000-08-15  Richard Henderson  <rth@cygnus.com>
4569
4570         * combine.c (simplify_shift_const): Bound shift count when
4571         combining shifts.
4572
4573 Tue Aug 15 17:33:05 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4574
4575         * calls.c (ECF_SP_DEPRESSED): New macro.
4576         (calls_function_1): Treat calling sp-depressed function as alloca.
4577         (emit_call_1): Don't adjust SP if calling sp-depressed function.
4578         (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
4579         If sp-depressed, ensure block saves and restores SP.
4580         * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
4581         for INTEGER_TYPE.
4582         * function.c (keep_stack_depressed): New function.
4583         (thread_prologue_and_epilogue_insns): Call it.
4584         * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
4585         to print DECL_OFFSET_ALIGN.
4586         Print no-force-blk and transparent-union flags properly.
4587         * stmt.c (expand_goto_internal): Don't restore stack if last block
4588         and function returns with sp depressed.
4589         (fixup_gotos): Likewise.
4590         (save_stack_pointer): New function, from code in expand_decl.
4591         (expand_decl): Call new function.
4592         * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
4593         (TYPE_RETURNS_STACK_DEPRESSED): New macro.
4594         (save_stack_pointer): New declaration.
4595
4596         * diagnostic.c (fatal_function): New variable.
4597         (set_fatal_function): New function.
4598         (fatal): Call it.
4599         * diagnostic.h (set_fatal_function): New declaration.
4600
4601 2000-08-15  William Cohen  <wcohen@redhat.com>
4602
4603         * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
4604         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
4605         (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
4606
4607 2000-08-15  Richard Henderson  <rth@cygnus.com>
4608
4609         * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
4610
4611 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
4612
4613         * arm.c (arm_function_ok_for_sibcall): New function.
4614         * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
4615         * arm.md (call expanders): Don't check here for calls that can't
4616         be sibling calls.
4617
4618 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
4619
4620         * arm.md (splits generating cond_exec): Disable.
4621
4622 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
4623
4624         * arm/linux-elf.h (text_section): Delete declaration.
4625
4626 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
4627
4628         ARM support for unordered FP operations.
4629         * arm-protos.h (arm_comparison_operator): Declare.
4630         * arm.c (arm_comparison_operator): New function.
4631         (arm_select_cc_mode): Add unordered comparison codes.
4632         (get_arm_condition_code): Likewise.
4633         (arm_final_prescan_insn): Can't handle unordered jumps that can't
4634         be done in one insn.
4635         * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
4636         * arm.md (all uses of comparison_operator): Replace with
4637         arm_comparison_operator.
4638         (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
4639         expands.
4640         (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
4641         patterns.
4642
4643 Tue Aug 15 00:36:36 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
4644
4645         * gthr-posix.h: Conditionally include <sched.h>; include
4646         <config.h> from libobjc/.
4647
4648 2000-08-14  Richard Henderson  <rth@cygnus.com>
4649
4650         * config/i386/i386.c (legitimize_pic_address): Use Pmode
4651         for all CONSTs.
4652
4653 2000-08-14  Richard Henderson  <rth@cygnus.com>
4654
4655         * configure.in (ia64-*): Set float_format for i386 long double.
4656
4657         * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
4658         as we would for i386 XFmode.
4659         (PUT_REAL): Likewise.
4660         (endian, ereal_atof, real_value_truncate): Likewise.
4661         (ereal_isneg, toe64, etens, make_nan): Likewise.
4662         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
4663
4664         * config/ia64/ia64-protos.h: Update.
4665         * config/ia64/ia64.c (general_tfmode_operand): New.
4666         (destination_tfmode_operand): New.
4667         (tfreg_or_fp01_operand): New.
4668         (ia64_split_timode): New.
4669         (spill_tfmode_operand): New.
4670         (ia64_expand_prologue): Use TFmode not XFmode.
4671         (ia64_expand_epilogue): Likewise.
4672         (ia64_function_arg): Likewise.
4673         (ia64_function_arg_advance): Likewise.
4674         (ia64_return_in_memory): Likewise.
4675         (ia64_function_value): Likewise.
4676         (ia64_print_operand): Likewise.
4677         (ia64_register_move_cost): Set GR<->FR to 5.
4678         (ia64_secondary_reload_class): Get GR for TImode memory op.
4679         * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
4680         (ROUND_TYPE_ALIGN): Remove.
4681         (LONG_DOUBLE_TYPE_SIZE): Set to 128.
4682         (INTEL_EXTENDED_IEEE_FORMAT): Define.
4683         (HARD_REGNO_NREGS): Use TFmode, not XFmode.
4684         (HARD_REGNO_MODE_OK): Likewise.  Disallow TImode in FRs.
4685         (MODES_TIEABLE_P): Use TFmode, not XFmode.
4686         (CLASS_MAX_NREGS): Likewise.
4687         (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
4688         (PREDICATE_CODES): Update.
4689         * config/ia64/ia64.md (movti): New.
4690         (movti_internal): Use a clobber for memory alternatives.
4691         (reload_inti, reload_outti): New.
4692         (movsfcc_astep): Predicate properly.
4693         (movdfcc_astep): Likewise.
4694         (movxf): Remove.
4695         (movtf): New.
4696         (extendsftf2, extenddftf2): New.
4697         (trunctfsf2, trunctfdf2): New.
4698         (floatditf2, fix_trunctfdi2): New.
4699         (floatunsditf2, fixuns_trunctfdi2): New.
4700         (addtf3, subtf3, multf3, abstf2): New.
4701         (negtf2, nabstf2, mintf3, maxtf3): New.
4702         (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
4703         (cmptf): New.
4704         (fr_spill): Use TFmode, not XFmode.
4705         (fr_restore): Likewise.
4706         * config/ia64/lib1funcs.asm (__divtf3): New.
4707         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
4708
4709 2000-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4710
4711         * cse.c (fold_rtx): Avoid empty body in an if-statement.
4712
4713         * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
4714         `U' integer constant suffix.
4715
4716         * dwarf2out.c (add_subscript_info): Avoid empty body in an
4717         else-statement.
4718
4719         * sparc/sol2.h (__enable_execute_stack): Prototype.
4720
4721 2000-08-14  David Edelsohn  <edelsohn@gnu.org>
4722
4723         * collect2.c: Remove use of AIX import file.
4724
4725         * longlong.h: Test ARCH_PWR not ARCH_POWER.
4726
4727         * rs6000.c (print_operand, case 'E'): Add else.
4728
4729 2000-08-14  Richard Henderson  <rth@cygnus.com>
4730
4731         * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
4732         (movdi_symbolic): New.
4733
4734 2000-08-14  Jim Wilson  <wilson@cygnus.com>
4735
4736         * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
4737         to GNU as.  For Intel as, pass -M const_gp and -M no_plabel.
4738         * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
4739         to GNU as.
4740
4741 2000-08-14  Richard Henderson  <rth@cygnus.com>
4742
4743         * expr.c (emit_group_load): Don't force constants into registers.
4744         Special case source already in the correct mode.
4745
4746 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
4747
4748         * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
4749         * fixinc/inclhack.def: Likewise.
4750         * fixinc/mkfixinc.sh: Likewise.
4751         * configure: Regenerate.
4752         * fixinc/fixincl.x: Regenerate.
4753         * install.texi: Document equivalence of linux and linux-gnu.
4754
4755 Mon Aug 14 18:51:44 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4756
4757         * cse.c (insert_regs): Also in REG case: When finding an invalid
4758         value, and we make a new quantity, make sure that it won't be
4759         mistaken by for a valid one by mention_regs.
4760
4761 2000-08-13  Ralf Gütlein <ralf.guetlein@aranea.de>
4762
4763         * h8300.md: Remove obsolete peepholes.
4764
4765 2000-08-13  Kazu Hirata  <kazu@hxi.com>
4766
4767         * invoke.texi (H8/300 Options): Fix typos.
4768         * config/h8300.c: Fix formatting.
4769         * config/h8300.h: Fix comment typos.
4770         (OVERRIDE_OPTIONS): Fix formatting.
4771
4772         * function.c: Fix formatting.
4773
4774         * cse.c: Fix formatting.
4775
4776 2000-08-13  Geoff Keating  <geoffk@cygnus.com>
4777
4778         * flow.c (attempt_auto_inc): Remove unused variable `bb'.
4779         (attempt_auto_inc): Suppress parentheses warning.
4780         * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
4781         * loop.c (load_mems): Remove `u' suffix in two places.
4782         * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
4783         hex constants.
4784         * config/rs6000/rs6000.h: Likewise.
4785         * config/rs6000/sol-c0.c: Prototype some functions.  Remove the
4786         __eabi dummy routine.
4787         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
4788         variable `buf_ptr'.
4789
4790         * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
4791         not put stuff in .sdata unnecessarily.
4792         (rs6000_unique_section): New function.
4793         * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
4794         * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
4795
4796         * c-typeck.c (build_array_ref): Don't complain about non-lvalue
4797         arrays in C99.  Don't try to look at DECL_REGISTER of a
4798         COMPONENT_REF.  Don't complain twice about the same error.
4799
4800         * fixinc/inclhack.def (aix_pthread): New fix.
4801         (aix_sysmachine): New fix.
4802         * fixinc/fixincl.x: Regenerate.
4803
4804         * expr.c (expand_expr): Call convert_modes when turning a large
4805         multiply into a small one.
4806
4807 2000-08-12  Geoff Keating  <geoffk@cygnus.com>
4808
4809         * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
4810         the tree structure an exponent rather than an explicit alignment
4811         so it doesn't overflow.
4812         (SET_DECL_OFFSET_ALIGN): New macro.
4813         * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
4814         rather than DECL_OFFSET_ALIGN.
4815         (place_field): Likewise.
4816         * expmed.c (store_bit_field): Abort on align==0 to avoid
4817         antisocial machine behaviour.
4818
4819 2000-08-12  Richard Henderson  <rth@cygnus.com>
4820
4821         * sibcall.c (uses_addressof): Accept both addressof and
4822         current_function_internal_arg_pointer inside a mem.
4823         (optimize_sibling_and_tail_recursive_call): Fail tail recursion
4824         if current_function_uses_addressof.
4825         * stmt.c (expand_return): Kill tail recursion and HAVE_return
4826         optimizations.
4827
4828 2000-08-11  Richard Henderson  <rth@cygnus.com>
4829
4830         * config/ia64/ia64.md (addsi3): Remove expander.
4831         (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
4832         (*addsi3_shladd): New.
4833
4834 2000-08-11  Richard Henderson  <rth@cygnus.com>
4835
4836         * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
4837         (do_restore): Likewise.
4838         (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
4839         (ia64_expand_prologue, ia64_expand_epilogue): Use them.
4840         (rtx_needs_barrier): Track actual bit manipulation for
4841         ar.unat moves, gr_spill, and gr_restore.
4842         (emit_insn_group_barriers): Special case gr_spill/gr_restore.
4843         (process_set): Don't handle varargs spills.
4844         * config/ia64/ia64.md (gr_spill): Accept cfa offset.  Emit
4845         .mem.offset here instead of in process_set.
4846         (gr_restore): Likewise.
4847
4848 2000-08-11  Richard Henderson  <rth@cygnus.com>
4849
4850         * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
4851
4852 2000-08-11  Mark Elbrecht  <snowball3@bigfoot.com>
4853
4854         * gcc.texi (The Configuration File): Document
4855         COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
4856         UPDATE_PATH_HOST_CANONICALIZATION.
4857
4858 2000-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4859
4860         * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
4861         unprototyped function pointer casts on integer constants.
4862
4863 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
4864
4865         * fixproto: Recognize DOS paths with drive letters as absolute paths.
4866
4867 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
4868
4869         * extend.texi (Volatiles): Fix typos.
4870
4871 2000-08-11  Kazu Hirata  <kazu@hxi.com>
4872
4873         * flow.c: Fix formatting.
4874
4875 2000-08-11  Richard Henderson  <rth@cygnus.com>
4876
4877         * reload.c (push_secondary_reload): When invoking a reload_{in,out}
4878         pattern, always allocate a tertiary scratch register.
4879
4880         * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
4881         (reload_inhi): Likewise.
4882
4883 2000-08-11  Richard Henderson  <rth@cygnus.com>
4884
4885         * function.c (put_reg_into_stack): Allow type to be NULL.
4886         (schedule_fixup_var_refs): Likewise.
4887         (gen_mem_addressof): Allow decl to be NULL.
4888         (put_addressof_into_stack): Likewise.
4889
4890         * flow.c (merge_blocks_nomove): Be more careful about
4891         locating the beginning of block A.
4892
4893         * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
4894
4895 Thu Aug 10 22:47:09 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
4896
4897         * configure.in:
4898         * configure:
4899         * gthr-posix.h:
4900         * config.in: Reverted the check for <sched.h>.
4901
4902 2000-08-10  Chris Demetriou  <cgd@sibyte.com>
4903
4904         * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
4905         macros define the name of CTOR and DTOR sections.
4906         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
4907         DTOR_LIST_END): Change to use attributes to specify
4908         sections.
4909         * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
4910         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
4911         DTOR_LIST_END): Same as in mips/elf.h.
4912
4913 2000-08-10  Drew Moseley  <dmoseley@redhat.com>
4914
4915         * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
4916         disabling just crt0.o.
4917
4918 2000-08-10  Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton  <nickc@cygnus.com>
4919
4920         * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
4921         (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
4922         (EXTRA_SPECS): Add them.
4923         * arm/lib1funcs.asm: Support builds for interworking.
4924         Use macros to eliminate duplicated pieces of code.
4925
4926 2000-08-10  Kazu Hirata  <kazu@hxi.com>
4927
4928         * h8300.c (expand_a_rotate): New.
4929         (emit_a_rotate): Likewise.
4930         (h8300_adjust_insn_length): Add support for the rotate insns.
4931         * h8300.md (rotlqi3): New.
4932         (*rotlqi3_1): Likewise.
4933         (rotlhi3): Likewise.
4934         (*rotlhi3_1): Likewise.
4935         (rotlhi3): Likewise.
4936         (*rotlhi3_1): Likewise.
4937         * h8300-proto.h: Add prototypes for expand_a_rotate and
4938         emit_a_rotate.
4939
4940         * h8300.c: Fix comment typos.
4941         (dosize): Declare the variable amount as unsigned.
4942         (get_shift_alg): Fix a comparison between signed and unsigned.
4943         (emit_a_shift): Likewise.
4944         (h8300_adjust_insn_length): Simplify the code.
4945
4946         * c-decl.c: Fix formatting.
4947
4948 2000-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4949
4950         * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
4951         warning about non-traditional numeric constant suffixes.
4952
4953         * cppexp.c (parse_number): Likewise.
4954
4955         * invoke.texi: (-Wtraditional): Document new behavior.
4956
4957 Thu Aug 10 00:11:04 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
4958
4959         * gthr-posix.h: Include auto-host.h. Conditionally include
4960         <sched.h>.
4961         * configure.in: Check for the <sched.h> header file.
4962         * config.in: Added define for HAVE_SCHED_H.
4963
4964 2000-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4965
4966         * c-typeck.c (process_init_element): For -Wtraditional, warn about
4967         initialization of unions.
4968
4969         * invoke.texi (-Wtraditional): Document new behavior.
4970
4971 2000-08-09  Zack Weinberg  <zack@wolery.cumb.org>
4972
4973         * configure.in (--enable-c-cpplib): Uncomment.  Use AC_DEFINE
4974         instead of extra_c_flags.
4975         (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
4976         * configure: Regenerate.
4977         * config.in: Regenerate.
4978
4979         * cpperror.c (cpp_type2name): New function.
4980         * cpplex.c (lex_line): If we issued an error for an invalid
4981         preprocessing directive, discard that logical line.
4982         * cpplib.c (do_line): Call a hook function if the current file
4983         is renamed by #line.
4984         (do_ident): Pass the contents of the string, not the entire
4985         token, to the callback function.
4986         * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
4987         (cb.rename_file): New hook function.
4988         (cb.ident): Adjust prototype.
4989         (cpp_type2name): Prototype.
4990         * cppmacro.c (dump_macro_args): Correct precedence lossage.
4991
4992         * cppmain.c (cb_ident): Update for changed interface.
4993         (cb_rename_file): New function.
4994         (main): Set rename callback.
4995
4996 2000-08-09  Alexandre Oliva  <aoliva@redhat.com>
4997
4998         * caller-save.c (mark_referenced_regs): Mark partially-overwritten
4999         multi-word registers.
5000
5001 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5002
5003         * c-common.c (combine_strings, check_format_info): Refer to ISO C
5004         or ISO C89 instead of ANSI C.
5005         * c-decl.c (grokdeclarator, xref_tag, finish_struct,
5006         build_enumerator, do_case): Likewise.
5007         * c-lex.c (parse_float, yylex): Likewise.
5008         * c-parse.in: Likewise.
5009         * c-typeck.c (common_type, build_array_ref, build_binary_op,
5010         build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
5011         build_c_cast, convert_for_assignment, set_init_index,
5012         set_init_label, c_expand_start_case): Likewise.
5013         * toplev.c (documented_lang_options, display_help): Likewise.
5014
5015 2000-08-08  Kazu Hirata  <kazu@hxi.com>
5016
5017         * h8300.c: Fix formatting.
5018         * h8300.h: Likewise.
5019         * h8300.md: Likewise.
5020         (movsi_h8300hs): Fix formatting of the resulting assembly code.
5021
5022         * reload1.c: Fix formatting.
5023
5024 2000-08-08  Rodney Brown  <RodneyBrown@mynd.com>
5025
5026         * alpha/alpha.c (alpha_emit_xfloating_libcall):
5027         Use GEN_CALL_VALUE define.
5028         * alpha/alpha.md (untyped_call): Use GEN_CALL define.
5029         * clipper/clipper.md (untyped_call): Likewise.
5030         * dsp16xx/dsp16xx.md (untyped_call): Likewise.
5031         * fx80/fx80.md (untyped_call): Likewise.
5032         * mips/mips.md (untyped_call): Likewise.
5033         * ns32k/ns32k.md (untyped_call): Likewise.
5034         * pa/pa.md (untyped_call): Likewise.
5035         * romp/romp.md (untyped_call): Likewise.
5036         * sparc/sparc.md (untyped_call): Likewise.
5037
5038 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
5039
5040         * config/i860/i860.c (singlemove_string): Do not generate assembler
5041         pseudo instructions that must be expanded (that is, with signed
5042         constants larger than 16 bits).
5043
5044 2000-08-08  Richard Henderson  <rth@cygnus.com>
5045
5046         * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
5047         PROP_AUTOINC at -O0.  Don't collect alias info at -O0.
5048         (init_propagate_block_info): Don't kill memory stores at -O0.
5049         (mark_set_1, mark_used_regs): Likewise.
5050
5051 2000-08-08  David Edelsohn  <edelsohn@gnu.org>
5052
5053         * rs6000.c (optimization_options): Decorate 'level' as
5054         ATTRIBUTE_UNUSED.
5055         (mask64_operand): Remove sign-extend thinko.
5056         (rldic_operand): New function.
5057         (load_multiple_operation): regno's are unsigned ints.
5058         (store_multiple_operation): Likewise.
5059         (lmw_operation): Likewise.
5060         (stmw_operation): Likewise.
5061         (includes_lshift_p): shift_mask is unsigned int.
5062         (includes_lshift64_p): New function.
5063         (addrs_ok_for_quad_peep): unsigned int reg1.
5064         (print_operand): Consistently add "else" after
5065         output_operand_lossage().
5066         (print_operand, case 'b'): Fold in case 'W'.
5067         (print_operand, case 'W'): Print rldic MB value.
5068         (output_epilogue): Update Objective-C language string.
5069         (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
5070         * rs6000.h (PREDICATE_CODES): Add rldic_operand.
5071         * rs6000.md (ashldi3): Add rldic instruction.
5072         (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
5073         (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
5074         modifier.
5075
5076 2000-08-08  Richard Henderson  <rth@cygnus.com>
5077
5078         * config/ia64/ia64-protos.h: Remove duplicates.  Update
5079         for massive code rearrangements.
5080         * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
5081         (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
5082         (ia64_local_regs, ia64_need_regstk): Remove.
5083         (ar_ccv_reg_operand): New.
5084         (ia64_gp_save_reg): New.
5085         (struct ia64_frame_info): Combine most of the size elements;
5086         add new gr save elements.
5087         (find_gr_spill): New.
5088         (next_scratch_gr_reg): New.
5089         (mark_reg_gr_used_mask): New.
5090         (ia64_compute_frame_size): Rewrite.  Allocate special AR regs
5091         to GR backing store regs when possible.
5092         (ia64_initial_elimination_offset): New.
5093         (ia64_rap_fp_offset): Remove.
5094         (save_restore_insns): Remove.
5095         (setup_spill_pointers): New.
5096         (finish_spill_pointers): New.
5097         (spill_restore_mem): New.
5098         (do_spill, do_restore): New.
5099         (ia64_expand_prologue): Rewrite to use them.
5100         (ia64_expand_epilogue): Likewise.
5101         (ia64_direct_return): Update for current_frame_info changes.
5102         (ia64_function_prologue): Simplify .prologue emission.  Emit
5103         .spill when needed.
5104         (ia64_setup_incoming_varargs): Don't ever emit rtl.
5105         (ia64_dbx_register_number): New.
5106         (ia64_initialize_trampoline): New.
5107         (ia64_secondary_reload_class): Request GR_REGS for integer
5108         arithmetic destined for FR_REGS.
5109         (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
5110         (ia64_mark_machine_status): Mark ia64_gp_save.
5111         (rws_access_regno): Rename from rws_access_reg; don't treat
5112         predicates specially.
5113         (rws_access_reg): New.  Update all callers.
5114         (rtx_needs_barrier): Remove dead unspecs.
5115         (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
5116         (ia64_encode_section_info): Silence signed/unsigned warnings.
5117         (spill_offset, sp_offset, spill_offset_emitted): Remove.
5118         (tmp_reg, tmp_saved): Remove.
5119         (process_set): Rewrite to expect complicated bits via
5120         REG_FRAME_RELATED_EXPR.
5121         (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
5122         in the use of ar.ccv; never set RTX_UNCHANGING_P.
5123         (ia64_expand_op_and_fetch): Likewise.
5124         (ia64_expand_compare_and_swap): Likewise.
5125         (ia64_expand_builtin): Likewise.
5126         * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
5127         (FIRST_PSEUDO_REGISTER): Update.
5128         (AR_M_REGNO_P): Update.
5129         (FIXED_REGS): Don't mark three local registers as used.
5130         (EXTRA_CC_MODES): New.
5131         (SELECT_CC_MODE): New.
5132         (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
5133         (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
5134         (FRAME_GROWS_DOWNWARD): Unset.
5135         (STARTING_FRAME_OFFSET): Zero.
5136         (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
5137         (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
5138         (HARD_FRAME_POINTER_REGNUM): New.
5139         (CAN_DEBUG_WITHOUT_FP): Define.
5140         (TRAMPOLINE_TEMPLATE): Remove.
5141         (TRAMPOLINE_SIZE): Lower to 32.
5142         (TRAMPOLINE_ALIGNMENT): Lower to 64.
5143         (INITIALIZE_TRAMPOLINE): Defer to out of line function.
5144         (PREDICATE_CODES): Update.
5145         (struct machine_function): Add ia64_gp_save.
5146         * config/ia64/ia64.md: Purge unused unspecs.
5147         (movsi patterns): Allow moves to/from AR_M_REGS.
5148         (movdi patterns): Allow moves to/from p0.
5149         (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
5150         (gr_spill, gr_restore): Indicate ar.unat read/written.
5151         (nonlocal_goto): Don't pass old frame_pointer.
5152         (nonlocal_goto_receiver): Remove.
5153         (exception_receiver): New.
5154         (builtin_setjmp_setup): New.
5155         (builtin_setjmp_receiver): New.
5156         * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
5157         (__ia64_nonlocal_goto): Bundle.  Don't kill r7.
5158         (__ia64_restore_stack_nonlocal): Likewise.
5159         (__ia64_trampoline): New.
5160         * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
5161         function.
5162         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
5163
5164 2000-08-08  Richard Henderson  <rth@cygnus.com>
5165
5166         * frame.h (ia64_frame_state): Add my_psp.
5167         * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
5168         (__throw): Pass it in.  Don't clobber r7.
5169         * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
5170         (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
5171         and nothing to do with sp.
5172         (normalize_reg_loc): Use frame->my_psp.
5173         (frame_translate): Handle frame-pointer-less functions.  Set
5174         spill_base correctly, in absence of being told.
5175         (__build_ia64_frame_state): New sp argument.  Fill in frame->my_sp.
5176         (__ia64_backtrace_helper): New sp argument.  Use
5177         builtin_return_address instead of label addresses.
5178         (print_record) [mem_stack_v]: No size member.
5179
5180 2000-08-08  Richard Henderson  <rth@cygnus.com>
5181
5182         * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
5183
5184 2000-08-08  Richard Henderson  <rth@cygnus.com>
5185
5186         * tm.texi (LOCAL_REGNO): Document.
5187         * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
5188         (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
5189         * reload1.c (reload): Likewise when considering nonlocal labels.
5190
5191         * config/ia64/ia64.h (LOCAL_REGNO): New.
5192         * config/sparc/sparc.h (LOCAL_REGNO): New.
5193
5194 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5195
5196         * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
5197
5198 2000-08-07  Nick Clifton  <nickc@redhat.com>
5199
5200         * config/mips/mips.c: Fix compile time warning messages.
5201         * config/mips/mips-protos.h: Add prototype for equality_op.
5202
5203         * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
5204
5205 2000-08-07  Graham Stott  <grahams@cygnus.co.uk>
5206
5207         * mn10300.md: Use nonimmediate_operand instead of general_operand
5208         on output operands.
5209
5210         * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
5211
5212 2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
5213
5214         * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
5215         * sh.c (expand_block_move): Break long lines.
5216         (expand_ashiftrt, fpscr_set_from_mem): Likewise.
5217         * sh.md (mulsi3): Likewise.
5218         (movdi): Adjust spacing.
5219
5220 2000-08-07  Richard Henderson  <rth@cygnus.com>
5221
5222         * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
5223         * expr.c (emit_group_store): Don't set it.
5224
5225 2000-08-07  Kazu Hirata  <kazu@hxi.com>
5226
5227         * invoke.texi (Options for Debugging Your Program or GCC): Remove
5228         duplicate entries for 'w' and 'z'.
5229
5230         * flow.c: Fix a comment typo.
5231
5232 Sun Aug  6 23:47:35 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
5233
5234         * c-parse.in: Changed the language string for Objective-C to "GNU
5235         Objective-C".
5236
5237 Sun Aug  6 11:54:03 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
5238
5239         * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
5240         to improve the Posix thread support for Objective-C.
5241
5242 2000-08-06  Joseph S. Myers  <jsm28@cam.ac.uk>
5243
5244         * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
5245         CTI_UNSIGNED_PTRDIFF_TYPE.
5246         (signed_size_type_node): Define.
5247         (unsigned_ptrdiff_type_node): Define.
5248         * c-decl.c (init_decl_processing): Create the
5249         signed_size_type_node and unsigned_ptrdiff_type_node types.
5250         * c-common.c (T_SC): Define.
5251         (T_SST): Define.
5252         (T_UPD): Define.
5253         (print_char_table): Use T_SST for %zd, %zi, %zn.  Use T_UPD for
5254         %to, %tu, %tx, %tX.  Allow %hhn (T_SC).  Add "c" to the flags for
5255         %s and %p.
5256         (scan_char_table): Use T_SC for %hhd, %hhi, %hhn.  Use T_SST for
5257         %zd, %zi, %zn.  Use T_UPD for %to, %tu, %tx, %tX.  Add "c" to the
5258         flags for %c, %s and %[.
5259         (check_format_info): Only allow leniency for signedness of targets
5260         of character pointers (when pedantic) for formats flagged with
5261         "c", so for strings but not for %hh formats.  When pedantic, don't
5262         allow character pointers to substitute for void pointers if a
5263         second level of indirection is present.
5264
5265 2000-08-06  Kazu Hirata  <kazu@hxi.com>
5266
5267         * invoke.texi (Options for Debugging Your Program or GCC): Update
5268         the names of dump files.
5269
5270         * h8300.c (dosize): Rearrange code for conciseness.
5271         (split_adds_subs): Likewise.
5272
5273         * loop.c: Fix formatting.
5274
5275         * dwarf2out.c: Fix formatting.
5276
5277         * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
5278
5279         * expr.c: Fix formatting.
5280
5281 2000-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5282
5283         * rs6000.c (rs6000_maybe_dead): Prototype.
5284
5285 2000-08-06  Richard Henderson  <rth@cygnus.com>
5286
5287         * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
5288         HAVE_nonlocal_goto as well.
5289         * config/i960/i960.md (nonlocal_goto): Don't do it here.
5290         * config/pj/pj.md (nonlocal_goto): Likewise.
5291
5292 2000-08-07  Michael Hayes  <mhayes@cygnus.com>
5293
5294         * loop.c (try_swap_copy_prop): New function.
5295         (load_mems): Rename copies to load_copies and add new regset
5296         store_copies.  Check for sets of shadow registers and mark
5297         in store_copies.   Call try_swap_copy_prop for registers
5298         marked in store_copies.
5299
5300 Sun Aug  6 00:54:42 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
5301
5302         * objc/objc-act.c: New command line option -fconstant-string-class
5303         to allow specifying a user defined constant string class,
5304         different from NXConstantString.
5305
5306         * toplev.c: Moved the Objective-C specific options to
5307         objc/lang-options.h.
5308
5309         * objc/lang-options.h: Moved the Objective-C specific options from
5310         toplev.c. Added -fconstant-string-class.
5311
5312 2000-08-05  Chris Demetriou  <cgd@sibyte.com>
5313
5314         * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
5315         DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
5316         __CTOR_LIST__ from func_ptr array to just func_ptr, to
5317         avoid extra alignment imposed on arrays.
5318         * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
5319         DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
5320
5321         * mips.h: Clean up comments and spacing near MASKs.
5322         (TARGET_UNIX_ASM): Delete.
5323         (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
5324         MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
5325         values contiguous.
5326
5327 2000-08-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5328
5329         * c-common.c (print_char_table): Add entries for the X/Open '
5330         format flag (print decimals with locale's thousands grouping
5331         character).  Make %C expect wint_t.
5332         (check_format_info): If pedantic, warn when the %n$ operand
5333         number form is used.  Allow for the ' flag; warn about it if
5334         pedantic.
5335
5336 2000-08-05  Zack Weinberg  <zack@wolery.cumb.org>
5337
5338         * i386.h (FUNCTION_OK_FOR_SIBCALL):  Not OK if DECL's return
5339         type is a float mode, cfun->decl's return type is not, and
5340         TARGET_FLOAT_RETURNS_IN_80387.
5341
5342 2000-08-04  Andreas Schwab  <schwab@suse.de>
5343
5344         * cppmain.c (cb_def_pragma): Skip the first two tokens from the
5345         token list, which are always `#' and `pragma'.
5346
5347 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
5348
5349         * tree.c (tree_expr_nonnegative_p): Move to...
5350         * fold-const.c: ... here.  Also handle BIND_EXPR and RTL_EXPR.
5351         (rtl_expr_nonnegative_p): New.
5352         * tree.h: Add prototype for rtl_expr_nonnegative_p.
5353
5354         * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
5355         CONST_DOUBLE_CHAIN: Move to...
5356         * rtl.h: ...here.  Use XCINT/XCEXP.
5357
5358         * Makefile.in: Remove toplev.o from OBJS.  Add rule to make
5359         libbackend.a; add libbackend.a to STAGESTUFF.  Add BACKEND
5360         variable.  Use BACKEND when linking cc1, not OBJS.  Add BACKEND
5361         to VOL_FILES.
5362
5363         * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
5364
5365 2000-08-05  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5366
5367         * config/c4x/c4x.md (return_indirect_internal): New.
5368         * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
5369
5370 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5371
5372         * c-common.c (time_char_table): Mark up formats added in C99 and
5373         make other corrections.  %D and %g were added in C99.  %Og is an
5374         extension.  %EX is permitted.  %R, %T, %n, %r, %t were added in
5375         C99.  %e was added in C99.  %Oj is an extension.  %G and %z are in
5376         C99 rather than GNU extensions, but %OG and %Oz are extensions.
5377         %h was added in C99.  %C was added in C99.  %OY and %OC are
5378         extensions.  Add the C99 format %F.
5379         (check_format_info): If pedantic and not in C99 mode, warn for C99
5380         formats, %E and %O.
5381
5382 Fri Aug  4 23:01:58 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5383
5384         * function.c (schedule_fixup_var_refs): New function, broken out
5385         of put_reg_into_stack.
5386         (put_reg_into_stack): Use it.
5387         (put_var_into_stack): In CONCAT case, fixup up references for
5388         components only after fixing up references to the whole concat.
5389
5390 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
5391
5392         * alias.c (mark_constant_function): Use INSN_P.
5393         (init_alias_analysis): Likewise.
5394         * combine.c (combine_instructions): Use INSN_P.
5395         (can_combine_p): Likewise.
5396         (try_combine): Likewise.
5397         (distribute_notes): Likewise.
5398         (distribute_links): Likewise.
5399         * cse.c (cse_around_loop): Use INSN_P.
5400         (invalidate_skipped_block): Likewise.
5401         (cse_set_around_loop): Likewise.
5402         (cse_end_of_basic_block): Likewise.
5403         (delete_trivially_dead_insns): Likewise.
5404         * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
5405         (unshare_all_rtl_1): Likewise.
5406         (next_cc0_user): Likewise.
5407         (try_split make_insn_raw): Likewise.
5408         (remove_unnecessary_notes): Likewise.
5409         * final.c (shorten_branches): Use INSN_P.
5410         (leaf_renumber_regs): Likewise.
5411         (leaf_renumber_regs_insn): Likewise.
5412         * flow.c (find_label_refs): Use INSN_P.
5413         (verify_wide_reg): Likewise.
5414         (notice_stack_pointer_modification): Likewise.
5415         (count_or_remove_death_notes): Likewise.
5416         (verify_flow_info): Likewise.
5417         (clear_log_links): Likewise.
5418         * function.c (fixup_var_refs_insns): Use INSN_P.
5419         (compute_insns_for_mem): Likewise.
5420         * gcse.c (alloc_gcse_mem): Use INSN_P.
5421         (compute_sets): Likewise.
5422         (compute_hash_table): Likewise.
5423         (classic_gcse): Likewise.
5424         (cprop): Likewise.
5425         (insert_insn_end_bb): Likewise.
5426         (delete_null_pointer_checks_1): Likewise.
5427         * global.c (expand_preferences): Use INSN_P.
5428         (build_insn_chain): Likewise.
5429         * graph.c (node_data): Use INSN_P.
5430         * haifa-sched.c (priority): Use INSN_P.
5431         (rm_line_notes): Likewise.
5432         (rm_other_notes): Likewise.
5433         (find_insn_reg_weight): Likewise.
5434         (init_target_units): Likewise.
5435         (schedule_block): Likewise.
5436         (compute_block_forward_dependences): Likewise.
5437         (debug_dependencies): Likewise.
5438         (set_priorities): Likewise.
5439         * integrate.c (function_cannot_inline_p): Use INSN_P.
5440         (save_parm_insns): Likewise.
5441         (copy_insn_list): Likewise.
5442         * jump.c (mark_all_labels): Use INSN_P.
5443         (never_reached_warning): Likewise.
5444         * lcm.c (optimize_mode_switching): Use INSN_P.
5445         * local-alloc.c (validate_equiv_mem): Use INSN_P.
5446         (memref_used_between_p): Likewise.
5447         (update_equiv_regs): Likewise.
5448         (block_alloc): Likewise.
5449         (no_conflict_p): Likewise.
5450         * loop.c (scan_loop): Use INSN_P.
5451         (find_and_verify_loops): Likewise.
5452         (count_loop_regs_set): Likewise.
5453         (loop_reg_used_before_p): Likewise.
5454         (strength_reduce): Likewise.
5455         (recombine_givs): Likewise.
5456         (check_dbra_loop): Likewise.
5457         (load_mems): Likewise.
5458         (try_copy_prop): Likewise.
5459         * print-rtl.c (print_rtx): Use INSN_P.
5460         * recog.c (find_single_use): Use INSN_P.
5461         * reg-stack.c (stack_regs_mentioned): Use INSN_P.
5462         (next_flags_user): Likewise.
5463         (swap_rtx_condition): Likewise.
5464         * regmove.c (mark_flags_life_zones): Use INSN_P.
5465         (optimize_reg_copy_1): Likewise.
5466         (optimize_reg_copy_2): Likewise.
5467         (optimize_reg_copy_3): Likewise.
5468         (reg_is_remote_constant_p): Likewise.
5469         (fixup_match_2): Likewise.
5470         (regmove_optimize): Likewise.
5471         (fixup_match_1): Likewise.
5472         * regrename.c (build_def_use): Use INSN_P.
5473         (replace_reg_in_block): Likewise.
5474         (consider_use): Likewise.
5475         * reload.c (find_equiv_reg): Use INSN_P.
5476         * reload1.c (reload): Use INSN_P.
5477         (maybe_fix_stack_asms): Likewise.
5478         (calculate_needs_all_insns): Likewise.
5479         (reload_as_needed): Likewise.
5480         (emit_output_reload_insns): Likewise.
5481         (delete_address_reloads_1): Likewise.
5482         (reload_cse_regs_1): Likewise.
5483         (reload_combine): Likewise.
5484         (reload_cse_move2add): Likewise.
5485         * reorg.c (redundant_insn): Use INSN_P.
5486         (dbr_schedule): Likewise.
5487         * resource.c (find_dead_or_set_registers): Use INSN_P.
5488         (mark_target_live_regs): Likewise.
5489         * rtlanal.c (reg_used_between_p): Use INSN_P.
5490         (reg_referenced_between_p): Likewise.
5491         (reg_set_between_p): Likewise.
5492         (reg_set_p): Likewise.
5493         (single_set): Likewise.
5494         (multiple_sets): Likewise.
5495         (find_last_value): Likewise.
5496         (reg_set_last): Likewise.
5497         (find_reg_note): Likewise.
5498         (find_regno_note): Likewise.
5499         * sibcall.c (sequence_uses_addressof): Use INSN_P.
5500         * simplify-rtx.c (cselib_process_insn): Use INSN_P.
5501         * ssa.c (find_evaluations): Use INSN_P.
5502         (rename_block): Likewise.
5503         (rename_equivalent_regs): Likewise.
5504         * unroll.c (loop_find_equiv_value): Use INSN_P.
5505         (set_dominates_use): Likewise.
5506         * varasm.c (mark_constant_pool): Use INSN_P.
5507         (mark_constants): Likewise.
5508         * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
5509         (alphaev4_next_group): Likewise.
5510         (alphaev5_next_group): Likewise.
5511         * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
5512         (c4x_rptb_rpts_p): Likewise.
5513         * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
5514         * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
5515         (rs6000_adjust_priority): Likewise.
5516         * config/sh/sh.c (sh_loop_align): Use INSN_P.
5517         (machine_dependent_reorg): Likewise.
5518         (split_branches): Likewise.
5519         * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
5520
5521 Fri Aug  4 11:43:49 2000  John Wehle  (john@feith.com)
5522
5523         * combine.c (recog_for_combine): Remove the old notes
5524         prior to attempting to recognize the new pattern.
5525         (distribute_notes): Ignore REG_NONNEG notes.
5526
5527 2000-08-04  Chandrakala Chavva  <cchavva@redhat.com>
5528
5529         * varasm.c (output_constructor): Add .align 0 for packed vars.
5530
5531 2000-08-04  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
5532
5533         * configure.in: Use default thread_file even when enable_threads is
5534         yes or dce because hpux10.20 pa port uses MULTILIB implementation.
5535         * configure: Rebuilt.
5536
5537         * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
5538
5539 2000-08-04  Donn Terry (donnte@microsoft.com)
5540
5541         * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
5542
5543 2000-08-04  Mark Elbrecht  <snowball3@bigfoot.com>
5544
5545         * i386/x-djgpp: Delete code that conditionally modifies target_alias.
5546         Delete code that conditionally modifies 'version'.
5547         Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
5548         * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
5549         * gcc.c (main): Use it.
5550         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
5551         * prefix.c (update_path): Use it.
5552         * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
5553         (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
5554         (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
5555         code.
5556         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
5557         (SUBTARGET_SWITCHES): Adjust.
5558         (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
5559         defining.
5560         (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
5561
5562 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5563
5564         * c-common.h (flag_isoc94): Declare.
5565         * c-decl.c (flag_isoc94): Define.
5566         (c_decode_option): Set flag_isoc94 as appropriate.
5567         * c-common.c (T_PD, T_IM, T_UIM): Define.
5568         (format_char_info): Add tlen and jlen.
5569         (print_char_table): Add entries for %t and %j.  Allow %zn.  Allow
5570         %F.  Allow %lf.
5571         (scan_char_table): Add entries for %t and %j.  Allow %F.  Allow
5572         %l[.
5573         (time_char_table): Add NULL entries for %t and %j.
5574         (check_format_info): Allow for %t and %j.  Warn for %F if pedantic
5575         and not C99.  Warn for %lc, %ls and %l[ if pedantic and not C94.
5576         Warn for printf %lf if pedantic and not C99.  Don't warn for empty
5577         precision.  Allow precision argument to be unsigned int.  If
5578         pedantic, warn for %p passed an argument not a pointer to possibly
5579         qualified void or a possibly qualified character type, and for
5580         pointer targets of the wrong sign, except for character pointers.
5581
5582 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5583
5584         * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
5585         * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
5586         (wint_type_node): Define.
5587         * c-decl.c (WINT_TYPE): Define.
5588         (init_decl_processing): Create the wint_type_node type.
5589         * c-common.c (T_WI): Define.
5590         (print_char_table): Use T_WI for %lc format.
5591
5592 2000-08-04  Bruce Korb  <bkorb@gnu.org>
5593
5594         * fixinc/:  Verified that the MSDOS patch does not break
5595         the UNIX functionality and applied the next three patches
5596         from July:
5597
5598 2000-07-28  Eli Zaretskii  <eliz@is.elta.co.il>
5599
5600         * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
5601         output file with the temporary one by appending ".X" to generate
5602         the temporary fuile's name.  If the output file already has an
5603         extension, replace it with ".X".
5604
5605         * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
5606         not $DESTDIR, to find applyfix.  Use sprintf instead of snprintf;
5607         reallocate the command buffer while copying the command-line
5608         argument.  Redirect the output directly to the temporary file,
5609         instead of going through another temporary file.
5610         (process): Close the temporary file before unlinking it.
5611         (machine_matches) [__MSDOS__]: If the machine doesn't match, set
5612         the FD_SKIP_TEST flag.  Pay attention to the FD_MACH_IFNOT flag.
5613         (run_compiles): Pass p_fixd argument to machine_matches, as it
5614         expects.
5615
5616         * fixinc/fixincl.sh: Export ORIGDIR.  If $DJDIR is set in the
5617         environment, assume there are no symlinks in the include
5618         directory.  When cleaning up the DONE files, look for them
5619         case-insensitively.  Don't try to remove symlinks if they aren't
5620         there.
5621
5622         * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
5623         all callers changed.  Declare pz "const char *", to avoid compiler
5624         warnings.
5625
5626         * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
5627         Change prototype of make_raw_shell_str.
5628
5629 2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>
5630
5631         * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
5632         (initialize) [__MSDOS__]: Use tempnam.
5633         (initialize): Don't use SIGPIPE if it is not defined.
5634
5635         * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
5636         return stdout.
5637
5638 2000-07-25  Bruce Korb  <bkorb@gnu.org>
5639
5640         * fixinc/fix*.[ch]: substantially reworked to make it possible
5641         to run this program without using fork(2) or pipe(2) (i.e. in
5642         a DOS environment).
5643
5644 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5645
5646         * cppdefault.h (WINT_TYPE): Define.
5647         * cppinit.c (builtin_array): Define __WINT_TYPE__.
5648         * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
5649         * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
5650
5651 Fri Aug  4 06:53:46 2000  Clinton Popetz  <cpopetz@cygnus.com>
5652
5653         * (mips_legitimate_address_p): Don't allow register+offset
5654         if the offset is large and negative, and we are compiling
5655         for 64 bit registers.
5656
5657 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5658
5659         * gencodes.c (main): Define CODE_FOR_nothing as the last possible
5660         insn_code_number + 1.
5661
5662 2000-08-04  Kazu Hirata  <kazu@hxi.com>
5663
5664         * h8300.c (function_prologue): Rearrange code for conciseness.
5665         (function_epilogue): Likewise.
5666         * h8300.h (OK_FOR_U): Fix formatting.
5667
5668         * cse.c: Fix a comment typo. Fix formatting.
5669
5670 2000-08-03  Richard Henderson  <rth@cygnus.com>
5671
5672         * config/i386/i386.md (return_indirect_internal): New.
5673         * config/i386/i386.c (ix86_expand_epilogue): Use it.
5674
5675 2000-08-03  Zack Weinberg  <zack@wolery.cumb.org>
5676
5677         * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
5678         before the name.
5679         (lex_line): Glue @ onto the beginning of identifiers and
5680         string constants, in Objective-C mode.
5681         (output_token, spell_token): Handle CPP_OSTRING.
5682         (can_paste, maybe_paste_with_next): Handle pasting @ onto the
5683         beginning of a NAME or a STRING, in objc mode.
5684
5685         * cpplib.c (get_define_node): Do not permit identifiers that
5686         begin with @ to be #defined.
5687         * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
5688         * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
5689
5690         * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
5691         * c-tree.h (build_objc_string): Delete prototype.
5692         * objc/objc-tree.def: Delete OBJC_STRING_CST.
5693         * c-lex.c (yylex): Use build_string for all three kinds of strings.
5694
5695         * c-parse.in, objc/objc-act.c: Update commentary.
5696
5697 2000-08-03  Mark Mitchell  <mark@codesourcery.com>
5698
5699         * extend.texi: Fix typo in last change.
5700
5701         * extend.texi: Add commentary on statement-expressions and their
5702         interactions with C++.
5703
5704 2000-08-03  Nick Clifton  <nickc@cygnus.com>
5705
5706         * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
5707         * dwarf.h (LANG_JAVA): Change value to 0x000b.
5708
5709 2000-08-03  Anthony Green  <green@cygnus.com>
5710
5711         * dwarf2out.c (gen_compile_unit_die): Add java language support.
5712         (add_bound_info): Check for java language.
5713         (is_java): New function.
5714         * dwarfout.c (output_compile_unit_die): Ditto.
5715         * dwarf.h (dwarf_source_language): Add java source language type.
5716         * dwarf2.h (dwarf_source_language): Ditto.
5717
5718 Thu Aug  3 20:32:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5719
5720         * reg-stack.c (subst_stack_regs_pat):  Use replace_reg to swap
5721         operands.
5722
5723         * i386.c (ix86_expand_branch): Mode of comparison in
5724         IF_THEN_ELSE is VOIDmode.
5725
5726 Thu Aug  3 10:05:53 2000  Akiko Matsushita <matusita@sra.co.jp>
5727
5728         * gengenrtl.c, rtl.c: Avoid #elif.
5729
5730 2000-08-03  Michael Poole  <poole@troilus.org>
5731
5732         * tm.texi (Register Classes): Clarify order of sub-initializers
5733         in REG_CLASS_CONTENTS.
5734
5735 Thu Aug  3 15:53:03 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5736
5737         From SAITOH Masanobu:
5738         * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
5739
5740 2000-08-03  David Billinghurst  <David.Billinghurst@riotinto.com.au>
5741
5742         * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
5743         is not supported by tradcpp and isn't actually needed for cygwin.
5744
5745 2000-08-03  Kazu Hirata  <kazu@hxi.com>
5746
5747         * h8300.c: Fix a comment typo.
5748         * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
5749
5750         * jump.c: Fix formatting.
5751
5752         * toplev.c: Fix formatting.
5753
5754 Thu Aug  3 01:05:32 2000  Jeffrey A Law  (law@cygnus.com)
5755
5756         * flow.c (find_auto_inc): Verify that we've got a REG before
5757         peeking at its regno.  Fail, don't abort if we can't find
5758         the increment of the desired register.
5759
5760         * pa.md (shadd height reduction patterns/splitters): Remove.
5761
5762 2000-08-02  Jim Wilson  <wilson@cygnus.com>
5763
5764         * config/ia64/ia64-protos.h (flag_ssa): Declare.
5765         * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
5766
5767 2000-08-02  Mark Mitchell  <mark@codesourcery.com>
5768
5769         * dce.c: Remove all uses of assert.
5770         * dwarf2out.c: Likewise.
5771         * dwarfout.c: Likewise.
5772         * ssa.c: Likewise.
5773
5774 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
5775
5776         * gcc.h (lang_specific_driver): Constify second argument.
5777         * gcc.c (translate_options, process_command, main): Likewise.
5778         Constify variables to match.  Cast second argument to
5779         pexecute.
5780
5781         * cppspec.c, gccspec.c: Adjust type of second argument to
5782         lang_specific_driver, and update code as necessary.
5783
5784 2000-08-02  Jakub Jelinek  <jakub@redhat.com>
5785
5786         * loop.c (scan_loop): Ensure update_end label does not
5787         go away until reg_scan_update is run.
5788
5789 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
5790
5791         * c-common.h: Prototype min_precision and c_build_qualified_type here...
5792         * c-tree.h: ... not here.
5793         * errors.h: Prototype fancy_abort.
5794
5795         * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
5796         HOST_BITS_PER_WIDE_INT == 64 ifdef block.
5797         * regrename.c (regrename_optimize): Make control flow explicit.
5798         (replace_reg_in_block): Initialize reg_use to 0.
5799
5800         * i386.c (legitimate_address_p): Rename error label to
5801         report_error to avoid namespace clash.
5802
5803 2000-08-02  Kazu Hirata  <kazu@hxi.com>
5804
5805         * fold-const.c: Fix formatting.
5806
5807 Wed Aug  2 16:26:15 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5808
5809         * i386.c (legitimate_address_p): Accept other bases than
5810         pic_offset_table_rtx for GOTOFF constructs.
5811
5812 Wed Aug  2 15:59:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5813
5814         * i386.md (shift to lea splitter): Use const_int_operand.
5815
5816 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
5817
5818         * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
5819         cppspec.c: Do not use 'legal' or 'illegal' in error messages
5820         and comments.
5821
5822         * cppmain.c (cb_define, cb_undef): Don't generate any output
5823         if not done_initializing.
5824         * cpplex.c (maybe_paste_with_next): When the token after a ##
5825         is an omitted rest argument, only delete the token before it
5826         if that token is a comma.  Do not warn about bogus token
5827         pastes for , ## rest_arg.
5828
5829         * cpp.texi: Update.
5830         * cpp.1: Regenerate.
5831
5832 2000-08-02  Fred Fish  <fnf@be.com>
5833
5834         * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
5835         when user gives -p option.  Add init_term_dyn.o for BeOS 5.0
5836         and later.
5837
5838         * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
5839         Be directories to search path.
5840
5841         Remove support for __declspec(dllimport) and __declspec(dllexport).
5842         This is leftover cruft from the earlier BeOS gcc port when BeOS
5843         used Microsoft's PE object file format.
5844         * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
5845         * config/i386/t-beos (winnt.o): Remove Makefile frag.
5846         * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
5847         (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
5848         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
5849         (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
5850         (REDO_SECTION_INFO_P): Remove.
5851         (ASM_EXPORT_DECL): Remove.
5852         (ASM_DECLARE_FUNCTION_NAME): Remove.
5853         (ASM_DECLARE_OBJECT_NAME): Remove.
5854         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
5855         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
5856         (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
5857         (STRIP_NAME_ENCODING): Remove.
5858
5859         Remove support for obsolete version of BeOS that is no longer
5860         supported by Be.
5861         * configure.in (i*86-*-beospe*): Remove.
5862         * config/i386/beos-pe.h: Remove.
5863
5864 2000-08-01  Jeffrey Oldham  <oldham@codesourcery.com>
5865             Mark Mitchell <mark@codesourcery.com>
5866
5867         * Makefile.in (OBJS): Added dce.o.
5868         (ssa.o): Updated target to include ssa.h.
5869         (flow.o): Likewise.
5870         (toplev.o): Likewise.
5871         (dce.o): Created target.
5872         * basic-block.h: Added comments.
5873         (INVALID_BLOCK): Added definition.
5874         (connect_infinite_loops_to_exit): Added declaration.
5875         Moved SSA declarations to ssa.h.
5876         * flow.c: Added inclusion of ssa.h.
5877         (struct depth_first_search_dsS, depth_first_search_ds):
5878         Added definitions.
5879         (compute_immediate_postdominators): Added definition.
5880         (connect_infinite_loops_to_exit): Likewise.
5881         (flow_dfs_compute_reverse_init): Likewise.
5882         (flow_dfs_compute_reverse_add_bb): Likewise.
5883         (flow_dfs_compute_reverse_execute): Likewise.
5884         (flow_dfs_compute_reverse_finish): Likewise.
5885         * rtl.h (rtx/in_struct): Added use to determine insn necessity.
5886         (LABEL_P): Added definition.
5887         (JUMP_P): Likewise.
5888         (NOTE_P): Likewise.
5889         (BARRIER_P): Likewise.
5890         (JUMP_TABLE_DATA_P): Likewise.
5891         (INSN_DEAD_CODE_P): Likewise.
5892         * ssa.c: Replaced inclusions with ssa.h inclusion.
5893         (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
5894         (rename_registers): Removed unnecessary variables.
5895         * ssa.h: Created by moving declarations from ssa.c and
5896         basic-block.h.
5897         * timevar.def: Defined TV_DEAD_CODE_ELIM.
5898         * toplev.c: Added ssa.h inclusion.
5899         (dump_file_index): Added DFI_dce.
5900         (dump_file): Added "dce" entry.
5901         Defined flag_ssa.
5902         (f_options): Added dce entry.
5903         * invoke.texi: Document -fdce.  Emphasize experimental status of
5904         -fssa.
5905         * dce.c: New file.
5906
5907 2000-08-01  Zack Weinberg  <zack@wolery.cumb.org>
5908
5909         * cpperror.c (v_message): Split into _cpp_begin_message and
5910         v_message macro.  All callers updated.
5911         (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
5912         checks here.
5913
5914         * cppfiles.c (cpp_syshdr_flags): New function.
5915         (read_include_file): Don't call cpp_output_tokens.  Call
5916         enter_file hook.
5917         * cppinit.c (dump_macros_helper): Moved to cppmain.c.
5918         (cpp_reader_init): Don't initialize token_buffer.  Call
5919         _cpp_init_internal_pragmas.
5920         (cpp_cleanup): Don't clear token_buffer.
5921         (cpp_start_read): Don't worry about output from -D processing.
5922         Don't call cpp_output_tokens.
5923         (cpp_finish): Don't dump macros here.  Don't call
5924         cpp_output_tokens.
5925         * cppmacro.c (_cpp_dump_definition): Rename
5926         cpp_dump_definition.  Write directly to a FILE *.
5927         (dump_funlike_macro): Delete.
5928         (dump_macro_args): New.
5929
5930         * cpplex.c (TOKEN_LEN): Convert to inline function.
5931         (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
5932         cpp_scan_line, _cpp_dump_list): Delete.
5933         (cpp_printf, cpp_output_list): New.
5934         (output_line_command): Don't worry about entering or leaving files.
5935         (cpp_scan_buffer): Just output each token as we hit it.
5936         (process_directive): Don't call cpp_output_tokens.
5937         (_cpp_glue_header_name): Don't use token_buffer.
5938         (output_token, dump_param_spelling): Write directly to a FILE *.
5939
5940         * cpplib.c (pass_thru_directive, dump_macro_name,
5941         pragma_dispatch, do_pragma_gcc): Delete.
5942         (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
5943         do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
5944         functions.
5945         (do_error, do_warning, pragma_dependency): Call
5946         _cpp_begin_message, then cpp_output_list.
5947         (cpp_register_pragma, cpp_register_pragma_space,
5948         _cpp_init_internal_pragmas): New.
5949         (do_pragma): Walk the pragmas table here.
5950         (do_pragma_once, do_pragma_poison, do_pragma_system_header,
5951         do_pragma_dependency): Return void.
5952         (do_pragma_implementation): Moved to cppmain.c.
5953
5954         * cpplib.h: Update prototypes.
5955          (struct cpp_reader): Remove printer, token_buffer,
5956         token_buffer_size, and limit.  Add struct cb, and pragmas.
5957         (struct cpp_printer): Remove last_id and written.
5958         (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
5959         CPP_ADJUST_WRITTEN): Delete.
5960         * cpphash.h: Update prototypes.
5961         (ufputs): New wrapper.
5962
5963         * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
5964         cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
5965         (main): Set up callbacks.  Register #pragma implementation.
5966         Dump macros from here.
5967
5968 2000-08-01  Geoff Keating  <geoffk@cygnus.com>
5969
5970         * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
5971         * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
5972         * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
5973         insns if they have a REG_MAYBE_DEAD note attached.
5974         * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
5975         (rs6000_emit_load_toc_table): TOC loads may go dead.
5976
5977 2000-08-01  Jim Wilson  <wilson@cygnus.com>
5978
5979         * config/ia64/ia64.c (ia64_function_arg): Fix last change.  Verify
5980         type exists before using it.  Use number of words as alignment
5981         otherwise.
5982         (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
5983         ia64_va_arg): Propagate ia64_function_args changes here.
5984
5985 2000-08-01  Richard Henderson  <rth@cygnus.com>
5986
5987         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
5988         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5989
5990 2000-08-01  Bernd Schmidt  <bernds@cygnus.co.uk>
5991
5992         From Joern Rennecke:
5993         * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
5994         * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
5995         unless TARGET_SH3E is set.
5996         * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
5997
5998         * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
5999         (ashlsi3_std): New pattern.
6000         (ashlsi3 expander): Use it for TARGET_SH3.
6001         * sh.c (gen_ashift): Use it instead of ashlsi3_k.
6002
6003 Tue Aug  1 12:34:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6004
6005         * loop.c (canonicalize_condition):  Use destination, not source to
6006         determine SET's mode.
6007
6008 2000-07-31  Mark Mitchell  <mark@codesourcery.com>
6009
6010         * flow.c (clear_log_links): Fix typo.
6011
6012 Mon Jul 31 22:19:24 2000  Jeffrey A Law  (law@cygnus.com)
6013
6014         * loop.c (check_dbra_loop): Make change from July 17, 2000 work
6015         on targets which need more than one insn for a compare/cbranch
6016         operation.
6017
6018 2000-07-31  Jim Wilson  <wilson@cygnus.com>
6019
6020         * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
6021         when computing offset.
6022
6023 Mon Jul 31 20:35:50 2000  Denis Chertykov  <denisc@overta.ru>
6024
6025         * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
6026
6027 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
6028
6029         * flow.c (clear_log_links): Nuke global_live_at_start and
6030         global_live_at_end data, since if the log_links stuff is invalid
6031         so is global_live_at_*.
6032
6033 2000-07-31  Richard Henderson  <rth@cygnus.com>
6034
6035         * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
6036
6037 2000-07-31  Jakub Jelinek  <jakub@redhat.com>
6038
6039         * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
6040         (_cpp_get_token): Don't macro expand a just pasted token if it
6041         was pasted at no_expand_level.
6042
6043 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
6044
6045         * cppmacro.c (find_param, count_params, save_expansion):
6046         Permit 'defined' as a macro parameter name.
6047
6048 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
6049
6050         * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
6051         xcpp to cpp throughout.
6052         (native): Remove unnecessary dependency on cpp.
6053
6054         * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
6055         tradcpp to tradcpp0.
6056         (.i spec): Add missing output-file spec to cc1 command line.
6057         * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
6058
6059 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
6060
6061         * c-decl.c (mesg_implicit_function_declaration): Init to -1.
6062         (implicit_decl_warning): New function.
6063         (implicitly_declare): Use it.
6064         * c-typeck.c (build_external_ref): Use implicit_decl_warning
6065         to complain about implicit decls of builtins.
6066
6067         * c-lang.c (lang_init): Set mesg_implicit_function_declaration
6068         based on pedantic && flag_isoc99, if not already set.
6069         * c-tree.h: Declare mesg_implicit_function_declaration.
6070         Prototype implicit_decl_warning.
6071
6072 2000-07-30  Jeffrey D. Oldham  <oldham@codesourcery.com>
6073
6074         * Makefile.in (ssa.o): Updated header files in dependences.
6075         * basic-block.h: Added compute_immediate_postdominators declaration.
6076         * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
6077         definition.
6078         * flow.c (compute_immediate_dominators): Updated comment.
6079         (compute_immediate_postdominators): Added definition.
6080         * rtl.h (HARD_REGISTER_P): Added definition.
6081         * ssa.c: Include additional header files.
6082         (assert): Added definition.
6083         (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
6084         include select hard registers.
6085         (ssa_rename_to_insert): Likewise.
6086         (ssa_rename_from_initialize): Likewise.
6087         (ssa_rename_from_lookup): Likewise.
6088         (original_register): Likewise.
6089         (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
6090         include select hard reigsters.
6091         (ssa_rename_from_traverse): Likewise.
6092         (ssa_rename_from_free): Likewise.
6093         (ssa_rename_from_print): Likewise.
6094         (ssa_rename_from_print_1): Likewise.
6095         (ssa_rename_from_hash_function): Likewise.
6096         (ssa_rename_from_equal): Likewise.
6097         (ssa_rename_from_delete): Likewise.
6098         (simplify_to_immediate_dominators): Removed in favor of
6099         flow.c:compute_immediate_dominators.
6100         (find_evaluations_1): Modified to work with hard registers.
6101         (insert_phi_node): Likewise.
6102         (insert_phi_nodes): Likewise.
6103         (struct rename_set_data): Updated prev_reg comment.
6104         (create_delayed_rename): Modified to work with hard registers.
6105         (RENAME_NO_RTX): Updated comment.
6106         (apply_delayed_renames): Modified to work with hard registers.
6107         (rename_insn_1): Likewise and added handling of CLOBBER rtls.
6108         (rename_block): Updated to use revised ssa_rename_to interface.
6109         (rename_registers): Updated to use revised ssa_rename_to and
6110         ssa_rename_from interface.
6111         (convert_to_ssa): Revised to use compute_immediate_dominators and
6112         deal with hard registers.
6113         (make_regs_equivalent_over_bad_edges): Modified to work with hard
6114         registers.  Added check for illegal unification of hard register.
6115         (make_equivalent_phi_alternatives_equivalent): Modified to work
6116         with hard registers.
6117         (compute_conservative_reg_partition): Likewise.
6118         (coalesce_if_unconflicting): Modified to work with hard registers
6119         and check for conflicting hard registers.
6120         (mark_phi_and_copy_regs): Revised loop to work only on pseudo
6121         registers.
6122         (rename_equivalent_regs_in_insn): Modified to work with hard
6123         registers.
6124         (record_canonical_element_1): Added definition.
6125         (check_hard_regs_in_partition): Added definition.
6126         (convert_from_ssa): Added data structure deallocation and check
6127         for illegal hard register unification.
6128         (conflict_hard_regs_p): Added definition.
6129         * toplev.c (rest_of_compilation): Added comment.
6130
6131 2000-07-31  Anthony Green  <green@redhat.com>
6132
6133         * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
6134
6135 2000-07-31  Jason McMullan  <jmcmullan@linuxcare.com>
6136
6137         * builtins.c (expand_builtin_apply): Don't defer pop during
6138         argument setup.
6139
6140 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6141
6142         * calls.c (combine_pending_stack_adjustment_and_call): Only use
6143         preferred_unit_stack_boundary when it is > 1.
6144
6145 2000-07-31  Joseph S. Myers  <jsm28@cam.ac.uk>
6146
6147         * c-common.c (init_function_format_info): Add C99 format functions
6148         in C99 mode.
6149
6150         * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
6151         void' or 'register void' as being the special case of 'void' alone
6152         in a parameter list.
6153
6154         * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
6155         discarding qualifiers into a plain warning.
6156
6157 2000-07-31  Kazu Hirata  <kazu@hxi.com>
6158
6159         * combine.c: Fix formatting.
6160
6161         * h8300.md: Fix formatting.
6162
6163         * local-alloc.c: Fix formatting.
6164
6165         * h8300.c (get_shift_alg): Remove the variable alg.
6166         (emit_a_shift): Rearrange code to improve readability.
6167
6168         * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
6169
6170         * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
6171         HImode on all architectures and a combination of HImode and SImode
6172         on H8/300H and H8/S.
6173
6174         * h8300.c (split_adds_subs): Rearrange code for conciseness.
6175
6176 Mon Jul 31 12:27:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6177
6178         * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
6179         in my last checkin.
6180
6181 Mon Jul 31 10:41:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6182
6183         * recog.c (extract_insn): Set operand_mode according to
6184         operand if match_operand is VOIDmode.
6185
6186 Mon Jul 31 10:36:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6187
6188         * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
6189
6190 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
6191
6192         * c-parse.in (extdefs): Call ggc_collect between external
6193         definitions.
6194
6195 2000-07-30  Michael Hayes  <mhayes@cygnus.com>
6196             Richard Henderson  <rth@cygnus.com>
6197
6198         * Makefile.in (OBJS): Add doloop.o.
6199         * doloop.c: New file.
6200
6201         * final.c (insn_current_reference_address): Return 0 before final.
6202         * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
6203         * jump.c (any_uncondjump_p): Likewise.
6204         * loop.c (indirect_jump_in_function): Make static.
6205         (strength_reduce): Call doloop_optimize.
6206         (insert_bct, instrument_loop_bct): Remove.
6207         * loop.h (doloop_optimize): Prototype.
6208         * recog.c (split_all_insns): Split all INSN_P.
6209         * toplev.c (flag_branch_on_count_reg): Default on.
6210
6211         * config/c4x/c4x.c (c4x_optimization_options): Don't set
6212         flag_branch_on_count_reg.
6213         * config/i386/i386.c (override_options): Likewise.
6214         * config/rs6000/rs6000.c (optimization_options): Likewise.
6215
6216         * config/i386/i386.md (decrement_and_branch_on_count): Remove.
6217         (doloop_end): New.
6218         (dbra_ge): Remove, as well as all it's splitters.
6219
6220         * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
6221         (doloop_end): New.
6222
6223         * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
6224         (ia64_register_move_cost): Declare.
6225         * config/ia64/ia64.c (ar_lc_reg_operand): New.
6226         (struct ia64_frame_info): Add ar_size.
6227         (ia64_compute_frame_size): Set it.
6228         (save_restore_insns): Save and restore ar.lc.
6229         (ia64_register_move_cost): New, moved from header file.  Handle
6230         application registers.
6231         (REG_AR_PFS, REG_AR_EC): Remove.  Replace with AR_*_REGNUM numbers.
6232         (emit_insn_group_barriers): Special case doloop_end_internal.
6233         (ia64_epilogue_uses): Mark ar.lc live at end.
6234         * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
6235         (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
6236         (FIRST_PSEUDO_REGISTER): Make room.
6237         (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
6238         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
6239         (REG_ALLOC_ORDER): Update.
6240         (HARD_REGNO_MODE_OK): Update.
6241         (REGISTER_NAMES): Update.
6242         (enum reg_class): Add AR_M_REGS and AR_I_REGS.
6243         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
6244         (REGNO_REG_CLASS): Update.
6245         (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
6246         (REGISTER_MOVE_COST): Move out of line.
6247         (PREDICATE_CODES): Update.
6248         * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
6249         (addsi3_plus1_alt, adddi3_plus1_alt): New.
6250         (shladd_elim splitter): Allow constants in the predicate.
6251         (doloop_end, doloop_end_internal): New.
6252
6253 2000-07-30  Richard Henderson  <rth@cygnus.com>
6254
6255         * genattrtab.c (struct insn_def): Add lineno member.
6256         (struct insn_ent): Likewise.
6257         (struct attr_desc): Likewise.
6258         (struct delay_desc): Likewise.
6259         (struct function_unit_op): Likewise.
6260         (struct function_unit): Likewise.
6261         (check_attr_value): Use message_with_line.
6262         (check_defs): Likewise.
6263         (expand_units): Likewise.
6264         (check_attr_test): Take a lineno argument.
6265         (gen_attr): Likewise.
6266         (gen_insn): Likewise.
6267         (gen_delay): Likewise.
6268         (gen_unit): Likewise.
6269         (main): Give it to them.
6270         (convert_set_attr_alternative): Take an insn_def argument
6271         instead of num_alt and insn_index.
6272         (convert_set_attr): Likewise.
6273         (write_test_expr): Protect INSN_ADDRESSES load
6274         with INSN_ADDRESSES_SET_P.
6275
6276 2000-07-30  Richard Henderson  <rth@cygnus.com>
6277
6278         * flow.c (init_propagate_block_info): Use pc_set.
6279
6280 Sun Jul 30 20:58:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6281
6282         * i386.md (*lea_general_[123]) New insns and splits.
6283         (addsi3 to lea splitter): Handle other modes too.
6284         (shlsi3 to lea splitter): Likewise.
6285         (addhi_1_lea, shlhi_1_lea): New patterns.
6286         (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
6287
6288 Sun Jul 30 20:51:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6289
6290         * recog.c (general_operand, nonimmediate_operand): Accept
6291         any mode for VOIDmode CONSTANT_P operands.
6292
6293 Sun Jul 30 20:42:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6294
6295         * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
6296         instead of replace_rtx.
6297         * recog.c (validate_replace_rtx_subexp): New function.
6298         * recog.h (validate_replace_rtx_subexp): Declare.
6299
6300 Sun Jul 30 20:38:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6301
6302         * combine.c (simplify_set, make_extraction, make_compound_operation
6303         make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
6304         as force_to_mode argument.
6305
6306 Sun Jul 30 20:30:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6307
6308         * combine.c (if_then_else_cond): Be sure that mode fits in
6309         HOST_WIDE_INT.
6310
6311 Sun Jul 30 20:27:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6312
6313         * combine.c (record_promoted_value):  Allow bitsize of mode
6314         to be equivalent to HOST_BITS_PER_WISE_INT.
6315
6316 Sun Jul 30 20:25:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6317
6318         * function.c (assign_stack_local_1, assign_stack_temp_for_type):
6319         Do not call gen_mode_alignment when mode is BLKmode.
6320
6321 Sun Jul 30 20:21:54 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6322
6323         * loop.c (express_from_1): Fix call of simplify_gen_binary.
6324
6325 Sun Jul 30 20:08:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
6326
6327         * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
6328         VOIDmode implies both operands to be VOIDmode.
6329         (simplify_ternary_operation): Compute properly the mode of comparison.
6330         * combine.c (combine_simplify_rtx): Likewise.
6331
6332 2000-07-25  Michael Hayes  <mph@paradise.net.nz>
6333
6334         * basic-block.h (struct loops): New field rc_order.
6335         * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
6336         (flow_loops_free): Free rc_order.
6337         (flow_depth_first_order_compute): New parameter rc_order.
6338         (flow_loops_find): Allocate rc_order and swap usage with
6339         dfs_order.
6340
6341 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6342            Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6343
6344         * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
6345         (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
6346         (nodb_call, return_from_epilogue): Likewise.
6347         (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
6348         * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
6349         * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
6350         (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
6351         (c4x_valid_type_attribute_p): Likewise.
6352         * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
6353         (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
6354
6355 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6356
6357         * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
6358         and loadhi_big_constant if applicable.
6359         * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
6360         and add new splitter.s
6361
6362 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6363
6364         * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
6365
6366 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6367
6368         * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
6369
6370 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6371
6372         * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
6373
6374 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6375
6376         * config/c4x/libgcc.S (divqf3): Improve accuracy.
6377
6378 2000-07-27  Mark Mitchell  <mark@codesourcery.com>
6379
6380         Put phi nodes after NOTE_INSN_BASIC_BLOCK.
6381         * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
6382         * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
6383         (get_prev_bb_note): Likewise.
6384         (remove_scope_notes): Likewise.
6385         * flow.c (commit_one_edge_insertion): Likewise.
6386         (merge_blocks_nomove): Likewise.
6387         (verify_flow_info): Likewise.
6388         * gcse.c (insert_insn_end_bb): Likewise.
6389         * reg-stack.c (emit_swap_insn): Likewise.
6390         * ssa.c (first_insn_after_basic_block_note): New function.
6391         (insert_phi_node): Use it.
6392         (rename_block): Likewise.
6393         (eliminate_phi): Likewise.
6394         (make_regs_equivalent_over_bad_edges): Likewise.
6395         (make_equivalent_phi_alternatives_equivalent): Likewise.
6396         (for_each_successor_phi): Likewise.
6397         (convert_from_ssa): Modify phi-node deletion algorithm.
6398
6399 2000-07-29  Andreas Jaeger  <aj@suse.de>
6400
6401         * configure.in (mips*-*-linux*): Use mips*el to check for little
6402         endian MIPS, add tmake_file.
6403
6404         * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
6405         (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
6406         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6407
6408 2000-07-28  Richard Henderson  <rth@cygnus.com>
6409
6410         * config/ia64/ia64.c (ia64_print_operand): Fix typos.
6411         Sign extend mode size before negating.
6412
6413 2000-07-28  Richard Henderson  <rth@cygnus.com>
6414
6415         * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
6416
6417 2000-07-28  Bernd Schmidt  <bernds@cygnus.co.uk>
6418
6419         * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
6420         (cse_insn): Likewise.
6421         (addr_affects_sp_p): Likewise.
6422         * expr.c (move_by_pieces): Likewise.
6423         (clear_by_pieces): Likewise.
6424         * gcse.c (oprs_unchanged_p): Likewise.
6425         * haifa-sched.c (sched_analyze_2): Likewise.
6426         * recog.c (offsettable_address_p): Likewise.
6427         * regclass.c (record_address_regs): Likewise.
6428         * reload.c (find_reusable_reload): Likewise.
6429         (push_reload): Likewise.
6430         (operands_match_p): Likewise.
6431         (decompose): Likewise.
6432         (find_reloads_address_1): Likewise.
6433         (find_inc_amount): Likewise.
6434         * reload1.c (elimination_effects): Likewise.
6435         * resource.c (mark_set_resources): Likewise.
6436         * flow.c (attempt_auto_inc): New function; mostly broken out
6437         of find_auto_inc.
6438         (find_auto_inc): Split into two functions and enhanced to
6439         generate POST_MODIFY.
6440         * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
6441         * rtl.h (count_all_occurrences):  Declare.
6442         (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
6443         defined.
6444         * rtlanal.c (count_all_occurrences): New function.
6445         * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
6446         HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
6447
6448         * config/ia64/ia64-protos.h (destination_operand): Declare.
6449         * config/ia64/ia64.c (destination_operand): New function.
6450         (ia64_print_operand): Handle POST_MODIFY.
6451         (rtx_needs_barrier): Likewise.
6452         * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
6453         (HAVE_POST_MODIFY_REG): Define to 1.
6454         (MAX_REGS_PER_ADDRESS): Change to 2.
6455         (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
6456         (LEGITIMATE_ADDRESS_REG): New helper macro.
6457         (LEGITIMATE_ADDRESS_DISP): Likewise.
6458         (PREDICATE_CODES): Add entry for destination_operand.
6459         * config/ia64/ia64.md (all mov patterns): Use destination_operand
6460         predicate for operand 0.
6461
6462 2000-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6463
6464         * dwarf2out.c: Indent #error directive.
6465
6466         * gbl-ctors.h: Fix typo in comment.
6467         (__do_global_ctors): Prototype.
6468
6469         * gcse.c (record_one_set, pre_delete): Remove unused variables.
6470
6471         * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
6472         (print_operand): Initialize variable `t'.
6473
6474 2000-07-27  Aldy Hernandez  <aldyh@redhat.com>
6475
6476         * config/arm/arm.md ("call_value"): removed constraints.
6477         Constraints are ignored in expanders.
6478         (*call_value_reg): split =rf into various constraints.
6479         (*call_value_mem): same
6480         (*call_value_symbol): same
6481         (*sibcall_value_insn): same
6482
6483 2000-07-28  Philipp Thomas  <pthomas@suse.de>
6484
6485         * install.texi (--enable-nls): Change the description of the NLS
6486         related configure options to match the current state.
6487         (--with-included-gettext): Likewise.
6488         (--enable-maintainer-mode): New description added.
6489         * extend.texi (-fstrict-prototype): Add missing '.'.
6490
6491 2000-07-27  Jim Wilson  <wilson@cygnus.com>
6492
6493         * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
6494         DECL_INITIAL (decl) == NULL_TREE.
6495
6496 2000-07-27  Alexandre Oliva  <aoliva@redhat.com>
6497
6498         * Makefile.in (INSN_ATTR_H): New macro.  Replace all dependencies
6499         on insn-attr.h with it.
6500         * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
6501         * insn-addr.h: New header.
6502         (insn_addresses_): Renamed from insn_addresses.
6503         (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
6504         INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
6505         INSN_ADDRESSES_NEW): New macros.
6506         * genattrtab.c (write_test_expr): Use new macros.
6507         * final.c (insn_addresses, init_insn_lengths): Likewise.
6508         (align_fuzz, shorten_branches): Likewise.
6509         (final): Likewise.  Do not reject new insns if their addresses
6510         have been added to INSN_ADDRESSES.
6511         * config/arm/arm.c, config/avr/avr.c: Use new macros.
6512         * config/h8300/h8300.c, config/i370/i370.c: Likewise.
6513         * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
6514         * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
6515         * config/sh/sh.c: Likewise.
6516         (output_branchy_insn): Use INSN_ADDRESSES_NEW.
6517
6518         * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
6519
6520 2000-07-27  Andrew Cagney  <cagney@b1.cygnus.com>
6521
6522         * gcc.c (struct prefix_list): Add member priority.
6523         (enum path_prefix_priority): Declare.
6524         (add_prefix): Replace ``first'' with ``priority''.  Append new
6525         entry but keep list in priority order.
6526         (process_command): Update.  Pass PREFIX_PRIORITY_B_OPT or
6527         PREFIX_PRIORITY_LAST to add_prefix.
6528         (process_command): Move include kludge - foo/stageN - to before
6529         foo/include.
6530
6531 2000-07-27  Jason Merrill  <jason@redhat.com>
6532
6533         * dwarf2out.c (gen_typedef_die): Abort if we get identical
6534         TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
6535
6536 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
6537
6538         * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
6539         * tree.h (get_alias_set, lang_get_alias_set): Prototype.
6540
6541 2000-07-27  Joseph S. Myers  <jsm28@cam.ac.uk>
6542
6543         * c-decl.c (finish_function): Don't treat 'main' specially unless
6544         flag_hosted.  In C99 mode, return 0 from 'main' unless
6545         DEFAULT_MAIN_RETURN is otherwise defined.
6546
6547         * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
6548         parameters defaulting to int in an old-style function definition.
6549
6550 2000-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6551
6552         * c-parse.in (string): For -Wtraditional, warn about string
6553         concatenation only once per line.
6554
6555 Thu Jul 27 09:25:17 2000  Akiko Matsushita  <matusita@sra.co.jp>
6556
6557         * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
6558         for HI-UX/WE2 systems.
6559
6560 2000-07-24  Bruce Korb  <bkorb@gnu.org>
6561
6562         * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
6563         defining the __xxx_TYPE__ macros.
6564         * fixincl/fixincl.tpl(gnu_type_map): now obsolete
6565         * fixincl/fixlib.h: don't need to include "tm.h" anymore
6566         * fixincl/inclhack.def(type_map): now obsolete
6567
6568 Thu Jul 27 11:54:17 2000  Andrew Cagney  <cagney@b1.cygnus.com>
6569
6570         * cpp.texi: Append a trailing full-stop to xrefs where needed.
6571
6572 2000-07-26  Dave Pitts  <dpitts@cozx.com>
6573
6574         * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
6575         routine constants.
6576         (mvs_hash_alias): New function.
6577         (mvs_add_alias): Change argument spacing.
6578         (mvs_need_alias): Change aliasing criteria. Added documentation.
6579         (mvs_get_alias): Change to use hashed name. The hashed name prevents
6580         CSECT name collisions.
6581         (mvs_check_alias): Likewise.
6582         (handle_pragma): Change documentation.
6583         * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
6584         mode from SImode to DImode.
6585         (iorhi3): Changed LTORG size for insn.
6586
6587 Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
6588
6589         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
6590         mem if the address is a mode_dependent_address_p.
6591
6592 2000-07-26  Kazu Hirata  <kazu@hxi.com>
6593
6594         * h8300.c (print_operand): Print ":8" when the 'R' operand is
6595         suitable for 8-bit absolute.
6596         * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
6597         (OK_FOR_U): Add a case for the 8-bit constant address on the
6598         H8/300H.
6599
6600 Wed Jul 26 19:26:21 2000  Hans-Peter Nilsson  <hp@axis.com>
6601
6602         * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
6603         && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
6604         ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
6605         lack of implemented alignment.
6606
6607 2000-07-26  Geoffrey Keating  <geoffk@cygnus.com>
6608
6609         * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
6610         cross-compiling between 64-bit and 32-bit machines.
6611
6612 2000-07-27  Richard Henderson  <rth@cygnus.com>
6613
6614         * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
6615         (movhicc_astep, movhi_internal_astep): New.
6616         (movsicc_astep, movsi_internal_astep): New.
6617         (movdicc_astep, movdi_internal_astep): New.
6618         (movsfcc_astep, movsf_internal_astep): New.
6619         (movdfcc_astep, movdf_internal_astep): New.
6620         (movxfcc_astep, movxf_internal_astep): New.
6621         (cmovdi_internal_astep, cmovsi_internal_astep): New.
6622         Unify the cmov[ds]i splitters.
6623
6624 2000-07-27  Rodney Brown  <RodneyBrown@pmsc.com>
6625
6626         * real.c (asctoeg): Rename `error' label to unexpected_char_error
6627
6628 2000-07-26  Nick Clifton  <nickc@cygnus.com>
6629
6630         * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
6631         __arm__.  Allow it to be defined by CPP_ISA_SPEC in arm.h
6632
6633         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
6634         well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
6635
6636 2000-07-26  Alexandre Oliva  <aoliva@redhat.com>
6637
6638         * c-decl.c (finish_enum): Convert enumerations that fit in an
6639         `int' to `int'.
6640         (build_enumerator): In pedantic mode, cast to `int' those that
6641         don't.
6642
6643 2000-07-25  Rodney Brown  <RodneyBrown@pmsc.com>
6644
6645         * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
6646
6647 Tue Jul 25 23:08:33 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6648
6649         * sh.md (cmpgtdi_t): Must be split.
6650         (cmpgtdi_t+1): New splitter.
6651
6652 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
6653
6654         * cpplib.c (_cpp_check_directive): Issue -Wtraditional
6655         warnings for indented directives even if we are skipping.
6656
6657 2000-07-25  Nathan Sidwell  <nathan@codesourcery.com>
6658
6659         * invoke.texi (strict-prototypes): Remove.
6660         * extend.texi (Deprecated Features): Add strict-prototypes.
6661         (Backwards Compatibility): New node.
6662
6663 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
6664
6665         * config/i386/i386.md (andsi_1+1): Allow HImode.
6666         (andsi_1+2): Require q_regs_operand.
6667
6668 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
6669
6670         * config/i386/i386.md (call_pop): Check operands[0],
6671         not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
6672         (call): Likewise.
6673         (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
6674         (call_value): Likewise.
6675
6676 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
6677
6678         * toplev.c (pipe_closed): Delete.
6679         (crash_signal): New.  Generate ICE for a fatal signal.
6680         (float_signal): Call crash_signal outside a float-handler
6681         block, not abort.
6682         (main): Install crash_signal as handler for core-dumping signals.
6683
6684 2000-07-25  David Edelsohn  <edelsohn@gnu.org>
6685
6686         * rs6000.c (print_operand, case 'T'): New case.
6687
6688         * rs6000.md (call_indirect_aix32): Convert to expander of
6689         scheduled instructions.
6690         (call_indirect_aix64): Likewise.
6691         (call_value_indirect_aix{32,64}): Likewise.
6692         (call, call_value): Invoke expanders for AIX.  Fall through to
6693         matchers for SysV.
6694         (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
6695         (call_value_indirect_nonlocal_aix{32,64}): New patterns.
6696         (call_nonlocal_aix32): Remove CALL_LONG alternative.  Operand 1
6697         only "g" constraint.
6698         (call_nonlocal_aix64): Likewise.
6699         (call_value_nonlocal_aix{32,64}): Likewise.
6700         (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
6701         operands.
6702         (call_value_nonlocal_sysv): New pattern.
6703         (indirect_jump{si,di}): Use new 'T' modifier.
6704         (tablejump{si,di} matchers): Likewise.
6705         (return_internal_{si,di}): Likewise.
6706         (return_eh_{si,di}): Likewise.
6707
6708 2000-07-24  Richard Henderson  <rth@cygnus.com>
6709
6710         * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
6711         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6712         * config/ia64/ia64.md (movdi_internal): Use it.
6713
6714 2000-07-24  Zack Weinberg  <zack@wolery.cumb.org>
6715
6716         * cppexp.c: Warn about unary + if -Wtraditional.
6717         * cpplex.c (lex_line): Always set BOL on the first token of a line.
6718
6719 2000-07-24  Michael Meissner  <meissner@redhat.com>
6720
6721         * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
6722         unsupported macro.
6723
6724 2000-07-24  Nick Clifton  <nickc@cygnus.com>
6725
6726         * config/arm/arm.c (emit_multi_reg_push): Generate a
6727         REG_FRAME_RELEATED_NOTE that is compatable with the code in
6728         dwarf2out_debug_frame_expr.
6729
6730 2000-07-24  Jason Merrill  <jason@redhat.com>
6731
6732         * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
6733         UNALIGNED_INT_ASM_OP.
6734         (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
6735         a location expression.
6736         (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff.  Don't
6737         assume indirect access if we're saving the CFA address exactly.
6738
6739         * Makefile.in (bootstrap): Move -BstageN/ to the end.
6740
6741 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
6742
6743         * tradcpp.c (main): Update max_include_len for cpp_include_defaults
6744         as well.
6745
6746 2000-07-24  Michael Meissner  <meissner@redhat.com>
6747
6748         * invoke.texi (D30V Options): Add d30v options.
6749
6750 Mon Jul 24 02:04:52 2000  Jeffrey A Law  (law@cygnus.com)
6751
6752         * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
6753         needed by our gcse pass anymore.
6754         (free_pre_mem): Corresponding changes.
6755         (compute_pre_data): Do not call compute_transpout anymore.
6756
6757         * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
6758         (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
6759         changes.
6760
6761         * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
6762         (compute_pre_data): Do it here instead.
6763
6764         * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
6765         'temp_bitmap'.
6766         (pre_delete): Corresponding changes.
6767
6768 2000-07-23  Mark Mitchell  <mark@codesourcery.com>
6769
6770         * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
6771         to figure out whether or not a variable has already been emitted.
6772
6773 Sun Jul 23 14:49:12 2000  Jason Eckhardt  <jle@cygnus.com>
6774
6775         * config/i860/i860.md (untyped_call expander): Use GEN_CALL
6776         instead of gen_call.
6777
6778 Sun Jul 23 11:52:03 2000  George Helffrich (george@gly.bris.ac.uk)
6779
6780         * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
6781
6782 2000-07-23  Kazu Hirata  <kazu@hxi.com>
6783
6784         * h8300.c: Fix formatting.
6785
6786 2000-07-23  Joseph S. Myers  <jsm28@cam.ac.uk>
6787
6788         * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
6789         for `long' switch expression into a plain warning.
6790
6791         * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
6792         (yylex): Don't pedwarn for "inline" in C99 mode.
6793
6794         * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
6795         with %p.
6796         * ggc-page.c (debug_print_page_list, alloc_page, free_page,
6797         ggc_alloc): Likewise.
6798         * bb-reorder.c (dump_scope_forest_1): Likewise.
6799
6800 2000-07-22  Aldy Hernandez  <aldyh@redhat.com>
6801
6802         * reload.c (find_reloads_toplev): Add new parameter
6803         "address_reloaded".
6804         (find_reloads): Add new parameter to find_reloads_toplev calls.
6805
6806 2000-07-22  Jeffrey Oldham  <oldham@codesourcery.com>
6807
6808         * collect2.c (main): Typo fixed.
6809         * diagnostic.c: Typo fixed.
6810         * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
6811         * eh-common.h: Typo fixed.
6812         * emit-rtl.c (start_sequence): Typo fixed.
6813         * flow.c (find_label_refs): Typo fixed.
6814         (calculate_global_regs_live): Typo fixed.
6815         (mark_regno_cond_dead): Typo fixed.
6816         (create_edge_list): Typos fixed.
6817         (verify_edge_list): Typo fixed.
6818         * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
6819         * loop.c (strength_reduce): Typo in function name fixed.
6820         * rtl.h: Added comments.  Typo in function name fixed.
6821         * rtlanal.c: Typo in function name fixed.
6822         (insn_dependant_p): Rename to ...
6823         (insn_dependent_p): ... this.
6824         (computed_jumo_p): Typo fixed.
6825
6826 2000-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6827
6828         * system.h (__FUNCTION__): Wrap definition in #ifndef.
6829
6830 2000-07-21  David Edelsohn  <edelsohn@gnu.org>
6831
6832         * rs6000.h (SIZE_TYPE): Define.
6833
6834 2000-07-21  Mark Mitchell  <mark@codesourcery.com>
6835
6836         * ssa.c (rename_insn_1): Don't rename registers that are
6837         CLOBBERed.
6838
6839 2000-07-21  Zack Weinberg  <zack@wolery.cumb.org>
6840
6841         * diagnostic.c (trim_filename, fancy_abort): Moved here from
6842         rtl.c.
6843         (fatal_function, set_fatal_function): Removed.
6844         (fatal): Don't prepare for or call the fatal_function.
6845         (diagnostic_lock, error_recursion): New.
6846         (diagnostic_for_decl, report_diagnostic): Guard against
6847         re-entering the error reporting routines.
6848         (fancy_abort): Assume function is not NULL.
6849
6850         * errors.c (fancy_abort): New.  Assume function is not NULL.
6851         * tradcpp.c (fancy_abort): Assume function is not NULL.
6852
6853         * system.h: Provide default definition of __FUNCTION__.
6854         * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
6855         Always use __FUNCTION__ in definition of abort.
6856         * tree.h: Likewise.
6857         * varray.h: Likewise.
6858         * toplev.h: Likewise.  Don't prototype set_fatal_function.
6859
6860 2000-07-20  Geoff Keating  <geoffk@cygnus.com>
6861
6862         * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
6863         in 64-bit mode.
6864         * glimits.h: Don't do #if defined for ARCH_PPC.
6865
6866         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
6867         constants of size no larger than a pointer should go in the TOC.
6868         Add 'MODE' parameter.
6869         (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
6870         ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
6871         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
6872         * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
6873         * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
6874         * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
6875         (rs6000_legitimize_address): Likewise.
6876         (rs6000_emit_move): Likewise.
6877         (rs6000_select_rtx_section): Likewise.
6878         (output_toc): Deal properly with outputting small constants like
6879         HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
6880         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
6881         MODE parameter.  Put small constants in the TOC.
6882
6883         * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
6884         easy in SImode.
6885         (rs6000_emit_move): When reload calls us with an illegitimate
6886         address, exit early.  Move the change_address calls to one place
6887         at the end of the routine.  Merge the SImode and DImode expanders.
6888         When called by reload to put an integer into a FP register, force
6889         it to memory.
6890
6891         * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
6892         field.
6893         (rs6000_hash_constant): Hash mode too.
6894         (toc_hash_function): Allow for key_mode.
6895         (toc_hash_eq): Structures are different if key_mode differs.
6896         (output_toc): Add 'mode' parameter.  Save key_mode.
6897         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
6898         Pass 'mode' parameter.
6899         * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
6900
6901         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
6902         for vtable references.
6903
6904         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
6905         choice, don't put integer values in FP regs.
6906
6907 Thu Jul 20 18:13:52 2000  Jeffrey A Law  (law@cygnus.com)
6908
6909         * flow.c (verify_flow_info): Revamp code to verify that the
6910         head and end of each basic block are in the insn chain.
6911
6912 Thu Jul 20 18:02:35 2000  Michael Matz <matzmich@cs.tu-berlin.de>
6913
6914         * gcse.c (record_one_set): Prepend instead of append onto
6915         reg_set_table, making it O(n) instead O(n^2).
6916         * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
6917         Use a queue instead of a stack as worklist.
6918
6919 2000-07-20  Kazu Hirata  <kazu@hxi.com>
6920
6921         * h8300.c (two_insn_adds_subs_operand): Fix a typo.
6922         * h8300.h (OK_FOR_T): New.
6923         (EXTRA_CONSTRAINT): Support OK_FOR_T.
6924         * h8300.md: Use inc/dec.[wl] for increment/decrement
6925         by 1 and 2 in HI and SI modes.
6926
6927 2000-07-20  Jim Wilson  <wilson@cygnus.com>
6928
6929         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
6930         larger than 14 bits.
6931
6932 2000-07-20  Zack Weinberg  <zack@wolery.cumb.org>
6933
6934         * cppmacro.c (CAN_PASTE_AFTER): New macro.
6935         (count_params): Don't set GNU_REST_ARGS on anything.
6936         (save_expansion): Set PASTE_LEFT only on tokens for which
6937         CAN_PASTE_AFTER is true, or which are named operators.
6938
6939         * cpplex.c (parse_args): Distinguish between a rest argument
6940         given one empty argument, and a rest argument given zero arguments.
6941         (maybe_paste_with_next): Look for VOID_REST tag, and trigger
6942         deletion of previous token based on that.
6943         (get_raw_token): Flatten some control structure.
6944
6945         * cpplib.h (CPP_LAST_EQ): Correct.
6946         (VOID_REST): New token flag.
6947         (GNU_REST_ARGS): Delete.
6948
6949         * tradcpp.c (main): Don't munge -D options.
6950         (make_definition): Bring -D handling in line with cpplib.
6951         (do_define): Strip all leading whitespace from macro definitions.
6952
6953 2000-07-20  David Billinghurst <David.Billinghurst@riotinto.com.au>
6954
6955         * Makefile.in (tradcpp): Depend on intl.o and version.o.
6956
6957 2000-07-20  Bruce Korb  <bkorb@gnu.org>
6958
6959         * fixincl/check.tpl: strip the platform specific types before testing
6960         * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
6961         * fixincl/fixincl.tpl: use platform specific types
6962         * fixincl/fixlib.h: include the platform specific types
6963         * fixincl/inclhack.def(gnu_types): don't supply the types
6964         * fixincl/fixincl.x: regen
6965
6966 2000-07-19  Jim Wilson  <wilson@cygnus.com>
6967
6968         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
6969         GR_REGS.
6970
6971 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
6972
6973         * tradcpp.c (rescan): Do not recognize directives when the #
6974         is indented.
6975
6976 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
6977
6978         Implement C++ named operators.
6979
6980         * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
6981         of operators allowed in #if and having an _EQ variant.  Add
6982         CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
6983         (cpp_token flags): Add NAMED_OP.
6984         (enum node_type): Add T_OPERATOR.
6985         (struct cpp_hashnode): Add code slot to value union.
6986         * cpphash.h (spec_nodes): Remove n_defined.
6987
6988         * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
6989         (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
6990         (is_macro_disabled): Tweak error messages.
6991
6992         * cpplib.c (get_define_node): Disallow all named operators as
6993         macro names.  Tweak error messages.
6994         (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
6995
6996         * cppinit.c (builtin_array): Add entries for the named operators.
6997         * cppexp.c (lex): Check for CPP_DEFINED token.
6998         (priority table): Add entries for CPP_MIN and CPP_MAX.
6999         (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
7000
7001 2000-07-19  Bernd Schmidt  <bernds@cygnus.co.uk>
7002
7003         * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
7004         larger than the array of cuids.
7005         (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
7006         cuids.
7007
7008 2000-07-19  Bruce Korb  <bkorb@gnu.org>
7009
7010         * fixinc/fixincl.c:  Convert to using a table of environment variables
7011         and activate the auto-edit marker on the fixed output files.
7012         * fixinc/fixlib.h:  Define the environment table
7013         * fixinc/fixincl.sh: export the ${INPUT} dir
7014         * fixinc/check.tpl: likewise
7015
7016 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
7017
7018         * gcc.c (.h spec): Fix typo.
7019
7020 Wed Jul 19 01:22:15 CEST 2000  Marc Espie  <espie@cvs.openbsd.org>
7021
7022         * Makefile.in: Fix tradcif.c path.
7023
7024 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
7025
7026         * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
7027           macros, not five.
7028
7029         * cpphash.h (TOKEN_NAME): New macro.
7030         (_cpp_spell_operator): Deleted.
7031         (token_spellings): Now _cpp_token_spellings.
7032
7033         * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
7034         * cpplex.c: Use OP and TK macros when expanding the
7035         TTYPE_TABLE.  Eliminate token_names.  For non-OPERATOR tokens,
7036         store the stringification of the enumeration name (CPP_CHAR,
7037         etc.) in the name slot of token_spellings.
7038         Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
7039         token_spellings directly.
7040         * cpplib.c: Use TOKEN_SPELL.
7041
7042         * cpplex.c (_cpp_push_token): If the token being pushed back
7043         is the previous token in this context, just subtract one from
7044         context->posn.
7045         * cppmacro.c (save_expansion): Clear aux field when storing a
7046         placemarker.
7047
7048 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
7049
7050         * cpplex.c (cpp_scan_buffer): Output line command even at the stop
7051         buffer, provided it is not NULL.
7052
7053 2000-07-18  Alexandre Oliva  <aoliva@redhat.com>
7054
7055         * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
7056         case of invalid volatile re-declaration.
7057
7058 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
7059
7060         * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
7061         (expand_call): Adjust caller.
7062
7063 2000-07-17  Gabriel Dos Reis  <gdr@codesourcery.com>
7064
7065         * diagnostic.h (report_diagnostic): Change prototype.
7066
7067         * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
7068         diagnostic_for_decl):  Change prototype.
7069         (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
7070         error, warning, error_with_file_and_line,
7071         warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
7072         Adjust call to report_diagnostic, diagnostic_for_decl.
7073         (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
7074         (output_verbatim, verbatim): Adjust call to output_do_verbatim.
7075
7076         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
7077         varaible argument list.
7078
7079 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
7080
7081         * cpphash.c: Don't include hashtab.h.  Most macro-handling code
7082         moved to cppmacro.c.
7083         (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
7084         dump_hash_helper): Delete.
7085         (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
7086         cpp_forall_identifiers): New. Implement specialized version of
7087         Vlad's expandable hash table.
7088         (cpp_lookup): Use new functions.
7089         (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
7090         implementation.
7091         * cppmacro.c: New file.
7092         * cppinit.c (dump_macros_helper): New.
7093         (cpp_finish): Iterate over the identifier table directly.
7094         * cpplex.c (parse_name): Calculate the hash of the identifier
7095         while we scan it.  Use _cpp_lookup_with_hash when we can.
7096
7097         * cpphash.h: Update prototypes.
7098         (xcnewvec, HASHSTEP): New helper macros.
7099         * cpplib.h: Update prototypes.
7100         * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
7101         (cppmacro.o): New rule.
7102         (cpphash.o): Update deps.
7103
7104         * cppmain.c: Do not set pfile->printer if no_output is on.
7105
7106 2000-07-15  Neil Booth  <neilb@earthling.net>
7107
7108         * cpplib.c: Change all directive-handler functions to return
7109         void, not int.
7110         * cpphash.h: Update typedefs.
7111
7112 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
7113
7114         * configure: Regenerate.
7115
7116         * extend.texi (Extended Asm): Mention that a memory clobber
7117         does not count as a side-effect.
7118
7119         * unroll.c (copy_loop_body): Fix one instance of using host
7120         arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
7121         cross-compile.
7122
7123         * tlink.c (scan_linker_output): Tweak for output of AIX ld.
7124
7125 2000-07-17  Richard Henderson  <rth@cygnus.com>
7126
7127         * config/ia64/ia64.md (movdi): Split out load address code.
7128         New post-reload splitter for symbolic operands.
7129         (movdi_internal): Abort if we didn't split symbolic operands
7130         when we should have.
7131         * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
7132         (ia64_reorg): Split insns when not optimizing.
7133         * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
7134
7135 Mon Jul 17 23:43:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7136
7137         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
7138         instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
7139
7140 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
7141
7142         * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
7143
7144 2000-07-17  Jason Merrill  <jason@redhat.com>
7145
7146         * Makefile.in (clean): Remove libgcc directory.
7147
7148         * configure.in (-Wno-long-long check): Use higher-level macros.
7149
7150 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
7151
7152         * simplify-rtx.c (simplify_binary_operation): Recognize
7153            (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
7154         (simplify_ternary_operation):  Do not examine MODE_BITSIZE of
7155            a CONST_INT, it will always be zero.
7156
7157 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
7158
7159         * loop.c (check_dbra_loop) : Return if more than one condition is
7160         present to control the loop.
7161
7162 Mon Jul 17 08:26:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
7163
7164         * mips.c (mips_expand_prologue): Don't calculate the last argument
7165         register unless we need it.  When we are calculating this, make
7166         sure FUNCTION_ARG is giving us a REG.
7167
7168 2000-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7169
7170         * flow.c (libcall_dead_p): Use single_set to verify the insn
7171         has only one set and get for analysis.
7172         (propagate_one_insn): Don't pass the PATTERN of the insn.
7173
7174 2000-07-17  Mark Klein <mklein@dis.com>
7175
7176          * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
7177
7178 2000-07-17  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
7179
7180         * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
7181         * configure.in (TARGET_GETGROUPS_T): Evaluate.
7182         * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
7183         of second argument of getgroups.
7184         * configure, config.in: Rebuilt.
7185
7186 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
7187
7188         * simplify-rtx.c (simplify_relational_operation): Two signed
7189         values with equal high words are less/greater than each other if
7190         their low words are less/greater when considered as unsigned.
7191
7192 Mon Jul 17 02:37:06 2000  Marc Espie <espie@openbsd.org>
7193
7194         * configure.in (vax-*-openbsd):  Change to new style configuration,
7195         add collect2/float_format information.
7196         * configure:  Rebuilt.
7197         * config/vax/openbsd1.h:  New.
7198         * config/vax/openbsd.h:  New.
7199         * config/vax/t-openbsd:  New.
7200
7201 2000-07-17  Chip Salzenberg  <chip@valinux.com>
7202
7203         * c-common.c (shorten_compare): Quiet warnings about unsigned
7204         comparisons with zero when they occur in a system header.
7205
7206 2000-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
7207
7208         * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
7209         update to describe current practice.
7210
7211         * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
7212
7213         * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
7214         references to C9X.  Change references to -fstd and -flang-isoc9x
7215         to refer to -std.
7216
7217         * c-common.c (scan_char_table): Allow "z" length modifiers on
7218         diouxXn formats.
7219         (check_format_info): Use TYPE_DOMAIN on the type matched against
7220         for "z" formats, to retrieve the language size_t rather than the
7221         internal one.
7222
7223         * c-common.c (check_format_info): Do not make a pedantic objection
7224         to the 'L' length modifier if used with a floating point type
7225         character.
7226
7227         * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
7228         constants in C99 mode.
7229
7230 2000-07-17  Kazu Hirata  <kazu@hxi.com>
7231
7232         * h8300.md: Fix the format of mac.
7233         (movsi_h8300hs): Output a tab after stmac instead of a space.
7234
7235         * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
7236         profitable adds/subs sequences.
7237
7238         * fold-const.c: Fix comment typos.
7239
7240 2000-07-16  Laurynas Biveinis  <lauras@softhome.net>
7241
7242         * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
7243
7244 2000-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7245
7246         * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
7247
7248 2000-07-16  Neil Booth  <NeilB@earthling.net>
7249
7250         * cpplex.c: Update comments.
7251         * README.Portability: Small update.
7252
7253 2000-07-16  Neil Booth  <NeilB@earthling.net>
7254
7255         * README.Portability:  Small update.
7256
7257 2000-07-15  Richard Henderson  <rth@cygnus.com>
7258
7259         * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
7260         * config/ia64/ia64.c (ia64_move_ok): New function.
7261         * config/ia64/ia64.md (movqi, movqi_internal): Use it.
7262         (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
7263
7264 2000-07-15  Zack Weinberg  <zack@wolery.cumb.org>
7265
7266         * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
7267         immediately following a paste operator.
7268         * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
7269         (cpp_reader_init): Call it, if HOST_EBCDIC.
7270         (cpp_handle_options): Do not sort option list here.
7271         (handle_option): Rename to cpp_handle_option and export.
7272         * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
7273         _cpp_get_token directly.
7274         (cpp_scan_line): Return 0 at EOF, 1 otherwise.
7275         * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
7276         * cpplib.h: Prototype cpp_handle_option.  Update prototype of
7277         cpp_scan_line.
7278
7279 2000-07-15  Richard Henderson  <rth@cygnus.com>
7280
7281         * fold-const.c (extract_muldiv): Don't optimize past an unsigned
7282         cast around an expression.  Tidy other unsigned tests.
7283
7284 2000-07-15  Gabriel Dos Reis  <gdr@codesourcery.com>
7285
7286         * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
7287         v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
7288         (v_message_with_decl): Rename to ...
7289         (format_with_decl): ... this. Tweak
7290         (diagnostic_for_decl): New function.
7291         (fatal_io_error): Use verbatim in lieu of notice.
7292         (announce_function): Use verbatim.
7293         (default_print_error_function): Likewise.
7294         (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
7295         infratructure.
7296
7297 2000-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7298
7299         * mips.c (function_arg_pass_by_reference): Don't do automatic
7300         aggregate initialization.
7301         (machine_dependent_reorg): Initialize variable `mode'.
7302
7303         * mips.md (absdi2): Change variable `regno1' to unsigned int.
7304         (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
7305         conflicts with sys/param.h macro of the same name.
7306         (reload_outdi): Likewise.
7307
7308 2000-07-15  Michael Meissner  <meissner@redhat.com>
7309
7310         * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
7311         == CONST + INCREMENT, don't overwrite the tree node for FOO++,
7312         create a new node instead.
7313
7314 2000-07-15  Neil Booth  <NeilB@earthling.net>
7315
7316         * README.Portability: Correct example about calling a function
7317         through a pointer to function.  Format wide paragraphs.
7318
7319 2000-07-15  Michael Meissner  <meissner@redhat.com>
7320
7321         * README.Portability: Update integer suffixes and function
7322         prototype sections.
7323
7324 2000-07-15  Neil Booth  <NeilB@earthling.net>
7325
7326         * README.Portability: Small update.
7327
7328 2000-07-15  Neil Booth  <NeilB@earthling.net>
7329
7330         * README.Portability: New file.
7331
7332 Fri Jul 14 18:13:53 2000  Mark P Mitchell  <mark@codesourcery.com>
7333
7334         * INSTALL: Give special instructions for building GCC on Irix 6.
7335         * config/mips/x-iris6 (CC): Don't set it.
7336         (OLDCC): Likewise.
7337
7338 2000-07-14  Jason Merrill  <jason@redhat.com>
7339
7340         * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
7341         register in the stack and later in another register, use the new
7342         register.
7343
7344 Fri Jul 14 10:25:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
7345
7346         * config/mips/mips.md: (absdi2): Handle sign_extend for
7347         second operand.
7348
7349 2000-07-14  Nathan Sidwell  <nathan@codesourcery.com>
7350
7351         * cpplib.c (do_pragma_dependency): Tidy warning messages.
7352
7353 2000-07-14  Zack Weinberg  <zack@wolery.cumb.org>
7354
7355         * .cvsignore: Correct typo.
7356
7357 2000-07-13  Mark Mitchell  <mark@codesourcery.com>
7358
7359         * .cvsignore: Add generated YACC files.
7360         * objc/.cvsignore: New file.
7361
7362 2000-07-14  Neil Booth  <NeilB@earthling.net>
7363
7364         * cpplex.c (adjust_column): New funcion.
7365         (skip_whitespace): Use it.
7366         (skip_block_comment): Use it, and warn about /*/* with
7367         -Wcomments.
7368
7369 2000-07-14  Neil Booth  <NeilB@earthling.net>
7370
7371         * cpphash.c (struct macro_info): Add new members.
7372         (_cpp_free_definition): Delete the macro directly.
7373         (count_params): Return void, with first token of
7374         expansion in struct macro_info on success.
7375         (parse_define): Return int.  Hoist syntax checking from
7376         save_macro_expansion.  Leave call to save_expansion to
7377         _cpp_create_definition.
7378         (alloc_macro): Needs just 2 arguments.
7379         (free_macro): Delete.
7380         (save_expansion): Don't perform syntax check.
7381         (_cpp_create_definition): Call save_expansion.
7382
7383 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7384
7385         * genrecog.c (write_header): Split long string.
7386
7387         * cpphash.c (macro_info): Don't use the `signed' keyword.
7388
7389         * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
7390
7391 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
7392
7393         * calls.c (stored_args_map): New variable.
7394         (check_sibcall_argument_overlap_1): New.
7395         (check_sibcall_argument_overlap): New.
7396         (expand_call): Initialize stored_args_map.
7397         Call check_sibcall_argument_overlap.
7398
7399 2000-07-13  Bruce Korb  <bkorb@gnu.org>
7400
7401         * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
7402         (emit_gnu_type): utility procedure for gnu_type_fix
7403         (gnu_type_fix): implement various pre-processor guards around
7404         standard types so these types can be defined over and over
7405         * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
7406         types alluded to above will have GNU-compliant base types
7407         * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
7408         * fixinc/inclhack.def: add test_text entries and utilize the new
7409         "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
7410         * fixinc/fixincl.x: regenerate
7411
7412 2000-07-12  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
7413
7414         * diagnostic.c (vline_wrapper_message_with_location,
7415         v_message_with_file_and_line, v_error_with_file_and_file,
7416         v_error_for_asm, v_warning_for_asm, vfatal,
7417         v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
7418         vsorry, verror, vwarning, vpedwarn): Remove.
7419         (diagnostic_for_asm): New function.
7420         (pedwarn, error, warning, pedwarn_with_file_and_line,
7421         error_with_file_and_line, warning_with_file_and_line, sorry,
7422         error_for_asm, warning_for_asm, fatal): Reimplement.
7423         (finish_diagnostic): Clear diagnostic info as well.
7424
7425 2000-07-13  Neil Booth  <NeilB@earthling.net>
7426
7427         * c-common.h (flag_digraphs): New.
7428         * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
7429         * c-lex.c (yylex): Use flag_digraphs to decide whether to
7430         honour digraphs.
7431
7432 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
7433
7434         * gcc.c (do_spec_1): Add new %B operator.
7435         (set_input): Prepare for %B.
7436
7437         (link_command_spec): Move up with the other tm.h-
7438         overrideable specs.  Factor out the portion conditional on
7439         LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
7440         (struct compiler): Just have a single spec string.  All users
7441         updated.
7442         (default_compilers): Remove unnecessary braces.
7443         (static_specs): Update.
7444
7445         (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
7446         named specs.
7447         (C and assembly specs): Use the new named specs, as appropriate.
7448
7449         * objc/lang-specs.h: Use the new named specs.
7450         Remove unnecessary braces.
7451
7452 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
7453
7454         * gcc.c (execute): If a subprocess gets a fatal signal, report
7455         strsignal() of the signal number, and ask for a bug report.
7456         Do not do this for SIGPIPE if there's already been an error.
7457
7458         * tradcpp.c: Don't include signal.h.  Don't catch SIGPIPE.
7459         Delete pipe_closed.
7460
7461         * tradcif.c: Remove.
7462
7463 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
7464
7465         * final.c (profile_function): Do not emit profile counters in
7466         the data section, if NO_PROFILE_COUNTERS is defined.
7467         * tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
7468         FUNCTION_PROFILER.
7469
7470         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
7471         (FUNCTION_PROFILER): Just emit a call to mcount.
7472
7473 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
7474
7475         * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
7476
7477         * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
7478         cpplib.c, cpplib.h: Eradicate all traces of code dependent on
7479         traditional, lang_chill, or lang_fortran.
7480
7481         * cppfiles.c: #undef strcmp to suppress warning about macros
7482         used without arguments.
7483         (_cpp_execute_include): Use f, not fname, in "No include path"
7484         error.
7485         (_cpp_pop_file_buffer): New function.
7486         * cpplib.c: Don't include <sys/mman.h>.
7487         (cpp_push_buffer): Set line_base and lineno in new buffer.
7488         (cpp_pop_buffer): Use _cpp_pop_file_buffer.
7489
7490         * cpplex.c: Move all prototypes and structure declarations to the
7491         top of the file.  Properly parenthesise some macro arguments.
7492         (cpp_scan_line): New function.
7493         (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
7494         don't need to walk up the stack counting.
7495
7496 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7497
7498         * c-common.c (combine_strings): Emit a pedantic warning when a
7499         string length is greater than the minimum ANSI C is required
7500         to support.
7501
7502 Wed Jul 12 13:24:30 2000  Jeffrey A Law  (law@cygnus.com)
7503
7504         * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
7505         * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
7506
7507 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7508
7509         * c-decl.c (define_label): Warn about identifier conflicts with
7510         labels in traditional C.
7511
7512         * c-parse.in (unop +): Warn about the unary plus operator for
7513         traditional C.
7514
7515         * c-typeck.c (store_init_value): Warn about automatic aggregate
7516         initialization for traditional C.
7517
7518         * invoke.texi (-Wtraditional): Document new warnings.
7519
7520 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
7521
7522         * Makefile.in (c-errors.o): Fix thinko in dependency.
7523
7524 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
7525
7526         * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
7527         -traditional, -ftraditional, or -traditional-cpp was given.
7528         Do not pass -traditional to the preprocessor.
7529         (.S spec): Likewise.  Don't bother defining __ASSEMBLER__, the
7530         preprocessor does it automatically.
7531         * objc/lang-specs.h: Likewise.  Don't bother defining __OBJC__.
7532
7533         * ch/lang-specs.h: Always use tradcpp.  Do not pass
7534         -traditional, -trigraphs, or -pedantic to the preprocessor.
7535         * f/lang-specs.h (.F spec): Likewise.  Don't bother defining
7536         _LANGUAGE_FORTRAN.
7537
7538 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
7539
7540         * cppexp.c (LOGICAL): Delete macro.
7541         (_cpp_parse_expr): Do not use UNARY for unary +.  Implement ||
7542         and && directly.
7543
7544         * cpphash.c (HASHSIZE): Increase to 4096.
7545         (struct hashdummy): Add hash field.
7546         (eq_HASHNODE): Compare unreduced hashes, then lengths, then
7547         the string values using memcmp.
7548         (cpp_lookup): Set dummy.hash.
7549
7550 Wed Jul 12 13:15:16 2000  Marc Espie <espie@openbsd.org>
7551
7552         * configure.in (m88k-openbsd): Express configuration using new fragment
7553         style.
7554         * configure: Rebuilt.
7555         * m88k/aout-dbx.h: New.
7556         * m88k/openbsd.h: New.
7557         * m88k/xm-openbsd.h: New.
7558
7559 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7560
7561         * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
7562
7563 2000-07-12  Richard Henderson  <rth@cygnus.com>
7564
7565         * reload.c (push_secondary_reload): Make sure to add the new
7566         reload at the end, after acquiring secondary memory.
7567
7568 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7569
7570         * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
7571
7572         * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
7573         lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
7574
7575         * c-parse.in (stmt): Delete unused variables.
7576
7577         * convert.c (convert_to_vector): Likewise.
7578
7579         * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
7580
7581         * tree.c (finish_vector_type): Prototype.
7582
7583 2000-07-12  Bruce Korb  <bkorb@gnu.org>
7584
7585         * fixinc/fixfixes.c: use xmalloc
7586         * fixinc/fixincl.c(initialize): set program name for xmalloc
7587         * fixinc/fixlib.c(must_malloc): obsolete
7588         (is_cxx_header): no longer used - disabled
7589         (skip_quote): inserted and disabled for future use
7590         * fixinc/fixlib.h: reflects above
7591         * fixinc/fixtests.c: removed dinkleberries
7592
7593 2000-07-12  Neil Booth  <NeilB@earthling.net>
7594
7595         * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
7596         * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
7597
7598         * cpphash.c: (struct macro_info, alloc_macro, free_macro,
7599         struct toklist_dummy): New.
7600         (cpp_free_definition): Free macros with free_macro.
7601         (count_params): Don't save paramter spellings.  Save macro
7602         information in a struct macro_info.
7603         (parse_define): Don't allocate a token list.
7604         (save_expansion): Allocate the macro's token list, and
7605         save parameter spellings if necessary.  Use TOKEN_SPELL.
7606         (cpp_create_definition): Make list const.
7607
7608 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
7609
7610         * c-typeck.c (pedwarn_c99): Move to
7611         * c-errors.c: ... Here.
7612         * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
7613         * diagnostic.c (verror, vwarning, vpedwarn): Make static.
7614         * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
7615         (c-errors.o): List dependency.
7616
7617 2000-07-12  Mark Mitchell  <mark@codesourcery.com>
7618
7619         * c-parse.c: Remove.
7620         * c-parse.h: Likewise.
7621         * c-parse.y: Likewise.
7622         * objc/objc-parse.c: Likewise.
7623         * objc/objc-pasre.y: Likewise.
7624
7625 2000-07-11  Rodney Brown  <RodneyBrown@pmsc.com>
7626
7627         * gcc.texi: Fix minor typos
7628         * extend.texi: Fix minor typos
7629
7630 2000-07-11  Marc Espie <espie@openbsd.org>
7631
7632         * collect2.c (main): Recognize .lo as object files.
7633
7634 2000-07-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
7635
7636         * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
7637         true.
7638
7639         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
7640         with MAP_ANONYMOUS and MAP_ANON.
7641         * configure, config.in: Rebuilt.
7642
7643 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
7644
7645         * diagnostic.c (save_output_state): Remove.
7646         (restore_output_state): Likewise.
7647         (clear_text_info): New function.
7648         (clear_diagnostic_info): Likewise.
7649         (output_text_length, is_starting_newline, output_prefix,
7650         line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
7651         prefixing_policy, output_buffer_ptr_to_format_args): New macros
7652         (set_real_maximum_length, output_set_maximum_length,
7653         output_set_prefix, output_get_prefix, output_set_maximum_length,
7654         output_destroy_prefix, init_output_buffer,
7655         reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
7656         output_add_newline, output_add_character, output_add_space,
7657         output_append_r, output_append, wrap_text, output_format,
7658         output_do_printf, output_printf, output_do_verbatim,
7659         output_verbatim, verbatim): Use them.
7660         (output_clear): Split into cleat_text_info and
7661         clear_diagnostic_info.
7662         (struct output_state): Move to...
7663
7664         * diagnostic.h: ...Here
7665         (struct output_buffer): Adjust.
7666
7667 2000-07-11  Zack Weinberg  <zack@wolery.cumb.org>
7668
7669         * cpplex.c (parse_name): No longer inline (premature optimization).
7670         (do_pop_context): Fold into pop_context.
7671         (pop_context): Returns int.
7672         (lex_next): Hoist test for end of directive into pop_context.
7673         (push_macro_context): Returns int; takes just reader and token.
7674         Hoist test for excessive nesting to caller.
7675         (push_arg_context): Returns void; takes just reader and token.
7676         Do not call stringify_arg or get_raw_token.
7677         (get_raw_token): Convert tail recursion through push_arg_context
7678         to a loop at this level.  Call stringify_arg here if appropriate.
7679         (maybe_paste_with_next): Convert tail recursion to a while loop.
7680         Hoist test of paste_level to caller.
7681
7682         (stringify_arg): Push arg context at beginning.
7683         (cpp_get_token): Split out core into _cpp_get_token.  Call
7684         process_directive here.  Throw away CPP_PLACEMARKER tokens.
7685         (_cpp_get_token): Convert tail recursion through
7686         push_macro_context to a loop at this level.
7687         (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
7688         _cpp_get_raw_token): Use _cpp_get_token.
7689         (_cpp_skip_rest_of_line): Drop the context stack directly; do
7690         not call pop_context.
7691         (_cpp_run_directive): Call lex_next directly.
7692
7693         * cpphash.h: Prototype _cpp_get_token.
7694         * cppexp.c (lex): Use it.
7695         * cpphash.c (parse_define): Use it.
7696         * cpplib.c (get_define_node, do_undef, parse_include,
7697         read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
7698         do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
7699         parse_ifdef, validate_else): Use it.
7700         (cpp_push_buffer): Tweak error message; abort if anyone tries
7701         to push a buffer while macro expansions are stacked.
7702
7703 2000-07-11  Donn Terry  <donnte@microsoft.com>
7704
7705         * cpplex.c (free_macro_args, save_token): Cast arg of free
7706         and/or xrealloc to PTR.
7707         (_cpp_init_input_buffer): Clear all fields of the base context.
7708
7709 Tue Jul 11 15:28:21 CDT 2000  Clinton Popetz  <cpopetz@cygnus.com>
7710
7711         * gensupport.c (process_rtx): Make rtl checking stop
7712         complaining about the define_insn while it is being
7713         converted from a define_insn_and_split.
7714
7715 Tue Jul 11 16:26:17 2000  Clinton Popetz  <cpopetz@cygnus.com>
7716
7717         * config/mips/mips.c (simple_memory_operand): Access the
7718         INTVAL of the address, not it's containing MEM.
7719
7720 2000-07-11  Bruce Korb  <bkorb@gnu.org>
7721
7722         * fixinc/fixtests.c(double_slash): obsolete
7723         (else_endif_label): likewise
7724         * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
7725         (libc1_ifdefd_memx): correct initial comment
7726         and omit the #if/#endif pair from the memxxx declarations
7727         * fixinc/fixincl.x: regen
7728
7729 2000-07-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7730
7731         * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
7732
7733 2000-07-11  Neil Booth  <NeilB@earthling.net>
7734
7735         * cpp.texi: Update.
7736
7737 2000-07-11  Neil Booth  <NeilB@earthling.net>
7738
7739         * cppinit.c: (cpp_reader_init): Allow digraphs by default.
7740         (handle_option): Set digraphs according to standard.
7741         Merge OPT_lang_c89 handler with OPT_std_c89.
7742
7743         * cpplex.c: (lex_line, can_paste): Honour digraphs in
7744         accordance with the digraphs flag.
7745
7746         * cpplib.h: (struct cpp_options): New option digraphs.
7747
7748 2000-07-10  Hans-Peter Nilsson  <hp@axis.com>
7749             Bruce Korb  <bkorb@gnu.org>
7750
7751         * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
7752         * fixinc/fixincl.x: Regenerate.
7753         * fixinc/tests/base/testing.h: Add testcase.
7754
7755 2000-07-10  Richard Henderson  <rth@cygnus.com>
7756
7757         * config/ia64/ia64.c (got_symbolic_operand): New.
7758         (symbolic_operand, move_operand): Revert 0701 change.
7759         * config/ia64/ia64.h (PREDICATE_CODES): Update.
7760         * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
7761         * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
7762         split the offset into a 14-bit low part instead of a 13-bit low part.
7763         (load_fptr): Mark the mem as unchanging.
7764         (load_symptr): Use got_symbolic_operand.
7765
7766 2000-07-10  Nick Clifton  <nickc@cygnus.com>
7767
7768         * libgcc2.c (next_stack_level): Cast result of computation to
7769         (void **) so that the assignment does not generate a warning.
7770
7771 2000-07-10  Chandrakala Chavva  <cchavva@redhat.com>
7772
7773         * flags.h : Add new variable flag_single_precision_constant.
7774         * toplev.c (display_help) : Add -fsingle-precision-constant option.
7775         (flag_single_precision_constant): New.
7776         * c-lex.c (yylex): Convert floating point constant to single
7777         precision constant.
7778         * invoke.texi : Add documentation for this new option.
7779
7780 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
7781
7782         * diagnostic.c (output_octal): Second parameter is unsigned.
7783         (output_long_octal): Likewise.
7784         (output_hexadecimal): Likewise.
7785         (output_long_hexadecimal): Likewise.
7786         (output_format): Adjust arguments extraction. Tweak.
7787         (output_verbatim, verbatim): End variable argument list.
7788         (report_diagnostic): Improve documentation.
7789
7790 2000-07-10  Benjamin Chelf  <chelf@codesourcery.com>
7791
7792         * c-common.h (build_stmt): Declare.
7793         (build_continue_stmt): Likewise.
7794         (build_break_stmt): Likewise.
7795         (build_return_stmt): Likewise.
7796
7797         * c-decl.c (do_case): Rewrite to do what previously done in
7798         c-parse.in.
7799
7800         * c-semantics.c (build_stmt): Define.
7801         (build_return_stmt): Likewise.
7802         (build_break_stmt): Likewise.
7803         (build_continue_stmt): Likewise.
7804         (build_case_label): Likewise.
7805
7806         * c-parse.in (BREAK): Change to build tree, then generate RTL.
7807         (CONTINUE): Likewise.
7808         (RETURN): Likewise.
7809         (CASE): Likewise.
7810         (DEFAULT): Likewise.
7811
7812         * c-parse.y: Regenerate.
7813         * c-pasre.c: Likewise.
7814
7815 2000-07-09  Jason Merrill  <jason@redhat.com>
7816
7817         * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
7818
7819         * tree.h (STRIP_NOPS): Check for error_mark_node.
7820         (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
7821         (dwarf2out_*): Remove duplicate declarations.
7822
7823         * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
7824         DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
7825
7826 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
7827
7828         * diagnostic.c (wrap_text): New function.
7829         (maybe_wrap_text): Likewise.
7830         (output_add_string): Use it.
7831         (output_format): Likewise.
7832         (count_error): Use verbatim instead of notice.
7833         (report_error_function): Likewise. Don't use plain fprintf.
7834         (finish_diagnostic): New function.
7835         (output_do_verbatim): Tweak.  Commonalize functionalities in
7836         output_verbatim and verbatim.
7837         (output_verbatim): Adjust.
7838         (verbatim): Likewise.
7839         (report_diagnostic): Define.
7840
7841         * diagnostic.h (report_diagnostic): Prototype.
7842
7843 2000-07-09  Zack Weinberg  <zack@wolery.cumb.org>
7844
7845         * cppexp.c (_cpp_parse_expr): Don't use unary plus.
7846
7847 2000-07-09  Neil Booth  <NeilB@earthling.net>
7848
7849         * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
7850         IShspace, ISspace: Update.
7851
7852         * cppinit.c: ISTABLE: Update.
7853         V: New.
7854
7855         * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
7856         (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
7857         (skip_block_comment, skip_line_comment, parse_string,
7858         lex_line): Use is_vspace rather than IS_NEWLINE.
7859         (skip_whitespace, lex_line): Clean up to use is_nvspace.
7860         (lex_line): Use KNOWN_DIRECTIVE.  Any kind of directive
7861         gets a BOL flag.
7862         (lex_next): Unconditionally stop if within a directive.
7863         Treat directives within macro invocations as directives
7864         (after parse_args emits error), not as the argument.
7865
7866 2000-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
7867
7868         * diagnostic.c (diagnostic_args): New macro.
7869         (diagnostic_msg): Likewise.
7870         (output_formatted_integer): Likewise.
7871         (output_state): New data type.
7872         (digit_buffer): Make global.
7873         (output_add_integer): Rename to output_decimal. Squeeze
7874         digit_buffer.
7875         (output_long_decimal, output_unsigned_decimal,
7876         output_long_unsigned_decimal, output_octal, output_long_octal,
7877         output_hexadecimal, output_long_hexadecimal): New functions.
7878         (output_append_r): New function.
7879         (output_append): Tweak.
7880         (output_flush_on): Rename to output_to_stream.
7881         (output_format): Change prototype.  Improve documentation. Handle
7882         more format specifiers.
7883         (build_location_prefix): Rename to context_as_prefix.
7884         (output_notice): Rename to output_do_printf.
7885         (output_printf): Tweak.
7886         (line_wrapper_printf): Likewise.
7887         (vline_wrapper_message_with_location): Adjust call to renamed
7888         functions.
7889         (v_message_with_decl): Likewise.
7890         (default_print_error_function): Likewise.
7891         (save_output_state): New function.
7892         (restore_output_state): Likewise.
7893         (output_do_verbatim): Likewise.
7894         (output_verbatim): Define.
7895         (verbatim): Likewise.
7896
7897         * diagnostic.h (printer_fn): Change return type from void to int.
7898         Improve documentation.
7899         (output_add_integer): Rename to output_decimal.
7900         (output_flush_on, output_format): Don't export.
7901         (output_verbatim, verbatim): Declare.
7902
7903 2000-07-08  Toon Moene  <toon@moene.indiv.nluug.nl>
7904
7905         * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
7906         Check whether c divides op1 exactly if operation is not
7907         multiplication.
7908
7909 2000-07-08  Richard Henderson  <rth@cygnus.com>
7910
7911         * final.c (final): Do not abort when reg-stack introduces
7912         a new insn.
7913
7914 2000-07-08  Zack Weinberg  <zack@wolery.cumb.org>
7915
7916         * cpplib.h (struct cpp_name): Now struct cpp_string.
7917         (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
7918         CPP_HEADER_NAME): Change to type S.
7919         (struct cpp_token): Rename 'name' field to 'str'.  Add 'node'
7920         field, a cpp_hashnode *.  All references to val.name updated
7921         to use val.str or val.node as appropriate.
7922         (struct cpp_reader): Add spec_nodes field.
7923         (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
7924
7925         * cpphash.h (struct spec_nodes): New.
7926         (enum spell_type): Reorder.  Only SPELL_STRING tokens use
7927         val.str.  All references to 'spelling > SPELL_NONE' updated to
7928         match.
7929
7930         (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
7931         pfile->buffer->inc are not NULL before dereferencing them.
7932
7933         * cpplex.c (parse_name): Take a pointer to the current token,
7934         plus current position and limit as args; return the new
7935         position; don't copy the text of a name into the string
7936         buffer, instead call cpp_lookup and store the node pointer.
7937         If extending a token, copy out the text of the old into a
7938         scratch buffer, append the new, look that up and store the new
7939         node pointer.  Inline.
7940         (maybe_paste_with_next): If the result of paste is a NAME,
7941         then look up the pasted text and store its node pointer.
7942         (lex_line): Adjust for new parse_name interface.
7943         Check for L"str", L'str' using spec_nodes->n_L.
7944         (spell_token): SPELL_IDENT tokens have their spelling in
7945         val.node->name.  Handle SPELL_STRING tokens that don't have
7946         string delimiters.
7947         (_cpp_expand_name_space,
7948         (can_paste): Check for L ## "str" using spec_nodes->n_L.
7949         (cpp_get_token, special_symbol): No need to call cpp_lookup.
7950         (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
7951         return 1=equal 0=not, not a tristate.
7952
7953         * cpphash.c (var_args_str): Delete.
7954         (find_param): Compare node fields directly.
7955         (is__va_args__): Use CPP_PEDANTIC.  Just compare
7956         token->val.node with spec_nodes->n__VA_ARGS__.
7957         (dump_funlike_macro): Don't use var_args_str.
7958
7959         * cpplib.c (_cpp_check_directive): Just walk through
7960         spec_nodes->dirs comparing pointers.
7961         (get_define_node, do_pragma_poison, detect_if_not_defined,
7962         parse_ifdef): The identifier has already been looked up.
7963         (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
7964         node.
7965         (do_if): Only call detect_if_not_defined at beginning of file.
7966         (_cpp_parse_assertion): Only copy string pointers for
7967         SPELL_STRING tokens.
7968         (pragma_dispatch): Take a node pointer and examine its name
7969         field.
7970         (_cpp_init_stacks): Also initialize the spec_nodes structure.
7971
7972         * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
7973         _cpp_init_macros.
7974         (cpp_cleanup): Free pfile->spec_nodes.  Call _cpp_cleanup_* in
7975         reverse order from the corresponding _cpp_init_* routines.
7976
7977         * cppexp.c (parse_number, parse_charconst, parse_defined,
7978         lex): Check val.node->type instead of calling cpp_defined.
7979         Use spec_nodes entries where appropriate.
7980
7981         * fix-header.c, scan-decls.c: Update for interface changes.
7982
7983 2000-07-08  Geoffrey Keating  <geoffk@cygnus.com>
7984
7985         * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
7986         emitting aux_truncdfsf2.
7987
7988 2000-07-03  Donn Terry  (donnte@microsoft.com)
7989
7990         * cppinit.c (print_help): split overlong line into ISO C89
7991         maximum chunks.
7992
7993 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
7994
7995         * cppexp.c: Update all code for new lexer interface.
7996         (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
7997         (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
7998         * cpplex.c (token_names): Trim leading CPP_ from names; make
7999         the strings unsigned.
8000         (_cpp_spell_operator): New.
8001         (is_macro_disabled): Disable all macros if rescanning
8002         preprocessed text.
8003         (_cpp_get_directive_token): Remove.
8004
8005         * cppinit.c: Don't set no_macro_expand.
8006         * cpplib.c (read_line_number, do_line): Check only for EOF,
8007         not VSPACE.
8008         * cpphash.h: Update prototypes.
8009         * cpplib.h (CPP_VSPACE): Remove.
8010         (struct cpp_reader): Remove no_macro_expand.
8011
8012 2000-07-08  Neil Booth  <NeilB@earthling.net>
8013
8014         * cpphash.c (is__va_args__): New function.
8015         (count_params): Fix line reported in error messages.  Use
8016         is__va_args__.  Don't return ')' on error.  Flag GNU style
8017         rest args macro definitions.
8018         (parse_define): Check macro name is not __VA_ARGS__.
8019         (save_expansion): Check identifier in non-varargs-macro is
8020         not __VA_ARGS__.  Don't flag GNU_VARARGS.
8021         * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
8022         (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
8023          than per-token GNU_VARARGS.
8024         * cpplib.h (GNU_VARARGS): Remove.
8025         (GNU_REST_ARGS): New.
8026
8027 Sat Jul  8 01:38:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
8028
8029         * i386.md (call_pop, call, call_value_pop): Do not set
8030         current_function_uses_pic_offset_table for calls to static
8031         functions or indirect calls.
8032
8033 2000-07-07  Jim Wilson  <wilson@cygnus.com>
8034
8035         * config/ia64/ia64.c (rws_access_reg): New local write_count.  If
8036         is_predicate_reg, then take max write_count of register pair.
8037
8038 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8039
8040         * tradcpp.c (main): Rename label `include' to `add_include' to
8041         avoid conflicts with variable `include' in traditional C.
8042
8043 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
8044
8045         * integrate.c (copy_insn_list): Remove REG_LABEL notes.
8046
8047 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
8048
8049         * sibcall.c (uses_addressof): Add INMEM argument, check for
8050         current_function_internal_arg_pointer outside of MEM rtxs in addition
8051         to ADDRESSOFs.
8052         (sequence_uses_addressof): Update caller.
8053
8054 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
8055
8056         * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
8057         and friends.
8058
8059 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8060
8061         * system.h (UNION_INIT_ZERO): New macro for initializing union
8062         members in structs.
8063
8064         * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
8065
8066 2000-07-07  Neil Booth  <NeilB@earthling.net>
8067
8068         * cpp.texi: Update.
8069
8070 Fri Jul  7 07:47:35 2000  Jeffrey A Law  (law@cygnus.com)
8071
8072         * final.c (final): Detect out of bounds array access to
8073         the insn_lengths array.
8074
8075 2000-07-07  Kazu Hirata  <kazu@hxi.com>
8076
8077         * fold-const.c (fold): Fix a comment typo.
8078
8079 2000-07-07  Neil Booth  <NeilB@earthling.net>
8080
8081         * cpp.texi: Update to new lexer.
8082
8083 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
8084
8085         * tradcpp.c: New file.
8086         * tradcif.y: New file.
8087         * tradcif.c: New generated file.
8088
8089         * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
8090         $(srcdir)/tradcif.c.  Add tradcpp to STAGESTUFF and
8091         dependencies of C.  Install tradcpp from install-common, in
8092         $(libsubdir).
8093
8094 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
8095
8096         * cppinit.c: Include cppdefault.h.  Refer to
8097         cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
8098         to GCC_INCLUDE_DIR and its length.
8099         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
8100         USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
8101         STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT):  Move to
8102         cppdefault.h.
8103         (include_defaults_array): Move to cppdefault.c.
8104
8105         * cppdefault.h: New file.
8106         * cppdefault.c: New file.
8107
8108         * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
8109         (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
8110         (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
8111         this file.
8112
8113 Thu Jul  6 18:30:36 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8114
8115         * reload.c (push_reload): When seeing if can reuse a register,
8116         check extra registers against widest of INMODE and OUTMODE.
8117
8118 2000-07-06  Neil Booth  <NeilB@earthling.net>
8119
8120         * cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
8121         based on full length of predicate.
8122
8123 2000-07-06  Hans-Peter Nilsson  <hp@axis.com>
8124
8125         * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
8126         [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
8127
8128 2000-07-05  Kazu Hirata  <kazu@hxi.com>
8129
8130         * h8300-proto.h: Fix formatting.
8131         * h8300.c: Likewise.
8132         * h8300.h: Likewise.
8133
8134 2000-07-05  Jim Wilson  <wilson@cygnus.com>
8135
8136         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
8137         CCmode.
8138
8139 2000-07-05  Rodney Brown  <RodneyBrown@pmsc.com>
8140
8141         * invoke.texi: Fix minor typos
8142         * md.texi: Fix minor typos
8143
8144 2000-07-05  Zack Weinberg  <zack@wolery.cumb.org>
8145
8146         * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
8147
8148 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
8149
8150         * cpplex.c: Don't include sys/mman.h.
8151         (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
8152
8153         * cpplib.c: Include sys/mman.h and obstack.h.
8154         (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
8155         obstack.
8156         (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
8157         (_cpp_unwind_if_stack): Now static, unwind_if_stack.  Don't
8158         bother freeing if stack entries (they will be freed with their buffer).
8159         (do_endif): Free if stack entries from the buffer obstack.
8160         (push_conditional): Allocate if stack entries from the buffer obstack.
8161
8162         (find_answer): Rename to _cpp_find_answer.
8163         (do_assert, do_unassert): Update.
8164
8165         * cpphash.h: Update prototypes.
8166         (xobnew): New convenience macro.
8167         * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
8168         Update comments.
8169         (struct cpp_hashnode): Remove disabled field.
8170
8171         * cppinit.c: Don't include hashtab.h or splay-tree.h.
8172         (report_missing_guard): Moved to cppfiles.c.
8173         (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
8174         cpp_init_includes.
8175         (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
8176         cpp_cleanup_includes.  Don't destroy hashtab or
8177         all_include_files here.
8178         (cpp_finish): Use _cpp_report_missing_guards.
8179
8180         * cppfiles.c (report_missing_guard): Moved from cppinit.c.
8181         (_cpp_init_include_table): Rename _cpp_init_includes.
8182         (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
8183
8184         * cppexp.c (parse_assertion): Update for new name of
8185         find_answer.
8186
8187         * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
8188
8189 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
8190
8191         * cpplib.c (do_ident): s/VSPACE/EOF/
8192
8193 2000-07-05  Neil Booth  <NeilB@earthling.net>
8194
8195         * cpplex.c: Fix trigraph replacement within strings.
8196
8197 2000-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8198
8199         * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
8200
8201         * xcoffout.c (assign_type_number): Constify.
8202         (xcoffout_source_file): Add static prototype.  Don't needlessly
8203         cast away const-ness.
8204
8205 2000-07-04  Jason Merrill  <jason@redhat.com>
8206
8207         * frame.h (frame_state): Move base_offset to end.
8208
8209 Mon Jul  3 21:31:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
8210
8211         * calls.c (emit_library_call_value_1): Revert previous change.
8212
8213 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
8214
8215         * fix-header.c (struct partial_proto): Remove unnecessary fields.
8216         (recognized_extern, recognized_function, read_scan_file):
8217         Update for new scheme.
8218         (check_protection): It's still a multiple include guard even
8219         if it doesn't always trigger.
8220         * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
8221         new scheme.
8222         * scan.h: Declare struct cpp_token.  Update prototypes.
8223
8224 2000-07-03  Neil Booth  <neilb@earthling.net>
8225             Zack Weinberg  <zack@wolery.cumb.org>
8226
8227         Complete overhaul of the lexer and macro expander.
8228
8229         * cpphash.c (object_defn, funct_defn, push_macro_expansion,
8230         arg, arglist, argdata, reflist, collect_objlike_expansion,
8231         collect_funlike_expansion, collect_params,
8232         warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
8233         unsafe_chars, macarg, compare_defs, special_symbol,
8234         scan_arguments, stringify, funlike_macroexpand,
8235         _cpp_quote_string, monthnames): Delete.
8236         (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
8237         _cpp_create_definition, _cpp_dump_definition,
8238         dump_hash_helper): Adjust.
8239         (find_param, count_params, parse_define, var_args_str,
8240         check_macro_redefinition, save_expansion): New.
8241
8242         * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
8243         parse_string, output_line_command, trigraph_replace,
8244         lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
8245         cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
8246         cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
8247         _cpp_skip_rest_of_line): Modify.
8248
8249         (maybe_macroexpand, skip_comment, copy_comment, skip_string,
8250         find_position, null_warning, bump_column, expand_name_space,
8251         pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
8252         _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
8253         _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
8254         _cpp_prescan): Delete.
8255
8256         (dump_param_spelling, process_directive, lex_next,
8257         is_macro_disabled, stringify_arg, expand_context_stack,
8258         output_token, make_string_token, alloc_number_token,
8259         special_symbol, duplicate_token, maybe_paste_with_next,
8260         can_paste, prevent_macro_expansion, restore_macro_expansion,
8261         get_temp_token, release_temp_tokens, quote_string,
8262         token_names, token_spellings, _cpp_expand_name_space,
8263         _cpp_glue_header_name, _cpp_reserve_name_space,
8264         digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
8265         placemarker_token, eof_token, cpp_context, macro_args,
8266         get_raw_token, parse_arg, parse_args, save_token,
8267         push_arg_context, push_macro_context, pop_context,
8268         do_pop_context, free_macro_args, _cpp_get_line,
8269         _cpp_run_directive): New.
8270
8271         * cpplib.c (validate_else, parse_include, push_conditional,
8272         pass_thru_directive, read_line_number, parse_ifdef,
8273         detect_if_not_defined, _cpp_check_directive, do_define,
8274         do_undef, do_include, do_import, do_include_next, do_error,
8275         do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
8276         top_pragmas, do_pragma_gcc, do_pragma_implementation,
8277         do_pragma_poison, do_pragma_system_header,
8278         do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
8279         dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
8280         do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
8281         cpp_defined): Update for new scheme.
8282         (strtoul_for_line, get_define_node, dump_macro_name,
8283         _cpp_check_linemarker, _cpp_parse_assertion): New.
8284         (_cpp_handle_directive, do_pragma_default): Delete.
8285
8286         * cpphash.h (struct predicate): Now struct answer.
8287         (enum spell_type, struct token_spelling, struct directive,
8288         directive_handler): New.
8289         Update prototypes.  Remove unused macros.
8290         * cpplib.h: Update prototypes.  Remove unused macros,
8291         structure definitions, and fields.
8292
8293         * cpperror.c (print_containing_files, v_message): Adjust.
8294         * cppexp.c (parse_assertion, lex, parse_escape,
8295         _cpp_parse_expr): Adjust.
8296         * cppfiles.c (open_include_file, _cpp_execute_include,
8297         _cpp_compare_file_date, cpp_read_file, read_include_file):
8298         Adjust.
8299         * cppinit.c (dump_special_to_buffer): Delete.
8300         (append_include_chain, merge_include_chains, cpp_reader_init,
8301         cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
8302         cpp_finish, handle_option, print_help): Adjust.
8303         * cppmain.c (main): Adjust.
8304
8305 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
8306
8307         * cppspec.c (lang_specific_driver): Use double quotes in error
8308         message.
8309
8310 Mon Jul  3 16:53:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
8311
8312         * calls.c (emit_library_call_value_1): Use valreg instead
8313         of hard_libcall_value.
8314
8315 2000-07-03  Geoff Keating  <geoffk@cygnus.com>
8316
8317         * config/rs6000/rs6000.c (rs6000_emit_move): New function.
8318         * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
8319         * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
8320         (movhi): Likewise.
8321         (movqi): Likewise.
8322         (movdf): Likewise.
8323         (movsf): Likewise.
8324         (movdi): Likewise.
8325         (movti): Likewise.
8326
8327         * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
8328         mode instead of wider_mode is being used.
8329
8330 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
8331
8332         * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
8333         of 'r'. Use q_regs_operand.
8334         (andsi_1+2): Use q_regs_operand.
8335
8336 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
8337
8338         * builtins.c (get_memory_rtx): Always put into alias set 0.
8339
8340 2000-07-03  Nick Clifton  <nickc@cygnus.com>
8341
8342         * config/arm/arm.md: Fix post increment and pre increment
8343         peepholes so that they do not generate UNPREDICATBLE opcodes.
8344         (ie ones where the increment clobbers the source/destination).
8345
8346 2000-07-01  Marek Michalkiewicz  <marekm@linux.org.pl>
8347
8348         * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
8349         change too big for -mtiny-stack" a warning, if larger than 63.
8350         (out_set_stack_ptr): Change the logic so -mno-interrupts is
8351         always safe to use on possible future devices.
8352         (function_prologue): Write SPH before SPL, for consistency.
8353         If interrupt_func_p true, we know we have enabled interrupts.
8354         (avr_num_arg_regs): New function.  Round up to even number of
8355         bytes if no -mpack-args or if calling a libgcc function.
8356         (function_arg, function_arg_advance): Use it.
8357         (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
8358         Output "movw" if available.
8359         (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
8360         of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
8361         (asm_output_section_name): Add blanks for consistent output.
8362         (encode_section_info): Set TREE_READONLY for progmem data to
8363         avoid gas warnings about changed section attributes.
8364         (avr_hard_regno_mode_ok): Force non-QImode data to start in
8365         even numbered registers on devices with "movw".
8366         * config/avr/avr.h (MASK_*): Define bits for target_flags.
8367         (TARGET_SWITCHES): Mark help strings for translation.
8368         Add new -mpack-args and -menhanced switches.
8369         (TARGET_OPTIONS): Mark help strings for translation.
8370         (progmem_section): Add section attributes.
8371         * config/avr/avr.md (*movhi, call_insn, call_value_insn):
8372         Output "movw" if available.
8373         (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
8374         New patterns.
8375         * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
8376         call convention (arguments aligned on even registers).
8377         (_cleanup, _exit): Make weak symbols libc can override.
8378
8379 2000-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8380
8381         * fp-bit.h: New file.
8382
8383         * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
8384         Comment #endif statements.
8385         (__thenan_sf, __thenan_df): Add missing braces around initializer.
8386
8387 Mon Jul  3 00:32:47 2000  Jeffrey A Law  (law@cygnus.com)
8388
8389         * gcse.c (compute_pre_data): Compute ae_kill using other local
8390         properties instead of calling compute_ae_kill.
8391
8392         * alias.c (init_alias_analysis): Do not call
8393         prologue_epilogue_contains until after reload has completed.
8394
8395 2000-07-02  Benjamin Chelf  <chelf@codesourcery.com>
8396
8397         * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
8398         (genrtl_finish_compound_stmt): Likewise.
8399         (genrtl_compound_stmt): Change to return void.
8400
8401         * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
8402         move code from here to ...
8403         (genrtl_compound_stmt): ... here.
8404         (genrtl_finish_compound_stmt): Remove.
8405         (expand_stmt): Add comment.
8406
8407 2000-07-02  Zack Weinberg  <zack@wolery.cumb.org>
8408
8409         * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
8410         and VOID_TYPE_P.
8411
8412 2000-07-02  Jakub Jelinek  <jakub@redhat.com>
8413
8414         * cpplib.h (struct cpp_reader): New field include_depth.
8415         (struct cpp_printer): Rename last_bsd to last_id.
8416         * cppfiles.c (read_include_file): Bump include_depth.
8417         * cpplex.c (cpp_pop_buffer): Decrement include_depth.
8418         (output_line_command): Output correct #line if a header
8419         is including itself and is not protected against multiple inclusion.
8420         Use include_depth instead of buffer_stack_depth, last_id instead of
8421         last_bsd.
8422         * cppinit.c (cpp_start_read): Initialize last_id instead of
8423         last_bsd.
8424
8425 2000-07-01  Benjamin Chelf  <chelf@codesourcery.com>
8426
8427         * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
8428         (c-semantics.o): New target.
8429
8430         * c-common.h (TREE_LANG_FLAG_?): Added documentation.
8431         (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
8432         (genrtl_clear_out_block): Likewise.
8433         (genrtl_goto_stmt): Likewise.
8434         (genrtl_expr_stmt): Likewise.
8435         (genrtl_decl_stmt): Likewise.
8436         (genrtl_if_stmt): Likewise.
8437         (genrtl_while_stmt): Likewise.
8438         (genrtl_do_stmt): Likewise.
8439         (genrtl_return_stmt): Likewise.
8440         (genrtl_for_stmt): Likewise.
8441         (genrtl_break_stmt): Likewise.
8442         (genrtl_continue_stmt): Likewise.
8443         (genrtl_scope_stmt): Likewise.
8444         (genrtl_switch_stmt): Likewise.
8445         (genrtl_case_label): Likewise.
8446         (genrtl_begin_compound_stmt): Likewise.
8447         (gerntl_finish_compound_stmt): Likewise.
8448         (genrtl_compound_stmt): Likewise.
8449         (genrtl_asm_stmt): Likewise.
8450         (genrtl_decl_cleanup): Likewise.
8451         (DECL_ANON_UNION_ELEMS): Likewise.
8452         (emit_local_var): Likewise.
8453         (make_rtl_for_local_static): Likewise.
8454         (expand_cond): Likewise.
8455         (expand_stmt): Likewise.
8456         (c_expand_return): Likewise.
8457         (c_expand_start_case): Likewise.
8458         (do_case): Likewise.
8459         (COMPOUND_STMT_NO_SCOPE): Likewise.
8460         (c_expand_asm_operands): Likewise.
8461         (NEW_FOR_SCOPE_P): New macro.
8462         (expand_expr_stmt_fn): New type.
8463
8464         (set_current_function_name_declared): Likewise.
8465         (current_function_name_declared): Likewise.
8466         (lang_expand_stmt): Likewise.
8467         (stmts_are_full_exprs_p): Likewise.
8468         (anon_aggr_type_p): Likewise.
8469         (lang_expand_expr_stmt): Likewise.
8470         (build_case_label): Likewise.
8471
8472         * c-decl.c (lang_expand_expr_stmt): Initialize.
8473         (stmts_are_full_exprs_p): Define.
8474         (current_function_name_declared): Likewise.
8475         (do_case): Likewise.
8476         (lang_expand_stmt): Likewise.
8477         (set_current_function_name_declared): Likewise.
8478         (anon_aggr_type_p): Likewise.
8479
8480         * c-semantics.c: New file.
8481         (expand_cond): Moved from cp/semantics.c.
8482         (genrtl_do_pushlevel): Likewise.
8483         (genrtl_clear_out_block): Likewise.
8484         (genrtl_goto_stmt): Likewise.
8485         (genrtl_expr_stmt): Likewise.
8486         (genrtl_decl_stmt): Likewise.
8487         (genrtl_if_stmt): Likewise.
8488         (genrtl_while_stmt): Likewise.
8489         (genrtl_do_stmt): Likewise.
8490         (genrtl_return_stmt): Likewise.
8491         (genrtl_for_stmt): Likewise.
8492         (genrtl_break_stmt): Likewise.
8493         (genrtl_continue_stmt): Likewise.
8494         (genrtl_scope_stmt): Likewise.
8495         (genrtl_switch_stmt): Likewise.
8496         (genrtl_case_label): Likewise.
8497         (genrtl_begin_compound_stmt): Likewise.
8498         (genrtl_finish_compound_stmt): Likewise.
8499         (genrtl_compound_stmt): Likewise.
8500         (genrtl_asm_stmt): Likewise.
8501         (genrtl_decl_cleanup): Likewise.
8502         (make_rtl_for_local_static): Moved from cp/decl.c.
8503         (emit_local_var): Likewise.
8504         (expand_stmt): Define.
8505
8506         * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
8507         (c_expand_return): Likewise.
8508         (c_expand_start_case): Likewise.
8509
8510 2000-07-01  Richard Henderson  <rth@cygnus.com>
8511
8512         * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
8513         with the low 13 bits set.
8514         (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
8515         * config/ia64/ia64.md (movdi): Likewise.  Expand a CONST with one
8516         of the low 13 bits into a CONST plus an adddi3.
8517         (load_symptr): Set RTX_UNCHANGING_P.
8518
8519 See ChangeLog.3 for earlier changes.