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