]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
7fadcb7c51f089d60648dfd1e84567e5503babb7
[gcc.git] / gcc / ChangeLog
1 2001-01-10 Aldy Hernandez <aldyh@redhat.com>
2
3 * config/i960/i960.md: Change modifier to + on the zero_extract
4 pattern after the (rotate -2 reg) canonicalization pattern.
5
6 2001-01-10 Richard Henderson <rth@redhat.com>
7
8 * config/alpha/alpha.c (alpha_free_machine_status): New.
9 (override_options): Install it.
10 (alpha_mark_machine_status): Verify machine non-null.
11 * config/i386/i386.c (ix86_free_machine_status): New.
12 (override_options): Install it.
13 (ix86_init_machine_status): Use xcalloc.
14 (ix86_mark_machine_status): Verify machine non-null.
15 * config/ia64/ia64.c (ia64_free_machine_status): New.
16 (ia64_override_options): Install it.
17 (ia64_mark_machine_status): Verify machine non-null.
18
19 Wed Jan 10 11:34:39 2001 Jeffrey A Law (law@cygnus.com)
20
21 * function.c (instantiate_virtual_regs): Instantiate virtual
22 registers found in CALL_INSN_FUNCTION_USAGE.
23
24 2001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
25
26 * i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
27 equivalent to -ansi in disabling -Di386.
28
29 Wed Jan 10 16:38:31 MET 2001 Jan Hubicka <jh@suse.cz>
30
31 * i386.c (ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes):
32 new functions.
33 (ix86_expand_fp_compare): Make trivial use of new infrastructure.
34
35 2001-01-10 Richard Earnshaw <rearnsha@arm.com>
36
37 * arm.c (arm_init_builtins): Temporarily disable xscale builtins.
38
39 2001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
40
41 * invoke.texi: Document that -fcond-mismatch isn't supported for
42 C++.
43
44 2001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
45
46 * gcc.texi: Define macro gcctabopt.
47 * invoke.texi: Add manpage sections BUGS and AUTHOR. Use
48 @command, @env and @option in some places where appropriate. Use
49 @gcctabopt where appropriate. Put URLs and email addresses inside
50 @w.
51
52 2001-01-10 Nathan Sidwell <nathan@codesourcery.com>
53
54 * gcc.c (cpp_options): Set MD file name from output
55 filename, if specified.
56 (suffix_subst): New static variable.
57 (do_spec): Clear it.
58 (do_spec_1, case '.'): Handle new `%.suffix' spec.
59 Clear it.
60 (give_switch): Handle suffix_subst.
61
62 2001-01-10 Phil Edwards <pme@sources.redhat.com>
63
64 * invoke.texi: Fix another typo.
65
66 2001-01-10 Phil Edwards <pme@sources.redhat.com>
67
68 * invoke.texi: Fix typo.
69
70 2001-01-10 Neil Booth <neil@daikokuya.demon.co.uk>
71
72 * c-lang.c (lang_hooks): Update.
73 (lang_decode_option): Remove.
74 (lang_init_options): Rename c_init_options.
75 * toplev.c (main): Use lang_hooks for lang_init_options
76 and lang_decode_option.
77 * toplev.h (lang_hooks): Add 2 new hooks.
78 * tree.h: Remove lang_init_options and lang_decode_option.
79 * cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option.
80 * cp/decl2.c: Similarly.
81 * cp/lex.c (lang_init_options): Rename cxx_init_options.
82 (lang_hooks): Update.
83 * f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish
84 for consistency.
85 (lang_init_options): Rename ffe_init_options.
86 (lang_hooks): Update.
87 (lang_decode_option): Remove.
88 * java/lang.c (lang_init_options): Rename java_init_options.
89 (lang_decode_option): Rename java_decode_option.
90 (lang_hooks): Update.
91 * objc/objc-act.c (lang_init_options): Rename objc_init_options.
92 (lang_decode_option): Rename objc_decode_option.
93 (lang_hooks): Update.
94
95 2001-01-09 Nick Clifton <nickc@redhat.com>
96
97 * config/d30v/d30v.c (d30v_eh_epilogue_sp_ofs): Delete.
98 (d30v_return_addr_rtx): Delete.
99 (d30v_expand_epilogue): Use eh_epilogue_sp_ofs field in the
100 cfun->machine structure.
101 (struct machine_function): Move to d30v.h
102 (d30v_save_machine_status): Delete.
103 (d30v_restore_machine_status): Delete.
104 (d30v_init_machine_status): New Function.
105 (d30v_mark_machine_status): New Function.
106 (d30v_free_machine_status): New Function.
107 (d30v_init_expanders): Use new functions.
108 (d30v_return_addr): Use ra_rtx field in cfun->machine.
109 (d30v_add_gc_roots): Remove d30v_eh_epilogue_sp_ofs and
110 d30v_return_addr_rtx.
111
112 * config/d30v/d30v.h (struct_machine): Move here.
113 Add eh_epilogue_sp_ofs field.
114
115 *config/d30v/d30v.md (epilogue): Initialise eh_epilogue_sp_ofs
116 field in cfun->machine structure.
117
118 Tue Jan 9 21:34:57 2001 John David Anglin <dave@hiauly1.hia.nrc.ca>
119
120 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): When generating pic code,
121 PIC_OFFSET_TABLE_REGNUM_SAVED is a call_used register.
122 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
123
124 Tue Jan 9 21:25:19 2001 Jeffrey A Law (law@cygnus.com)
125
126 * objc/lang-options.h: Remove bogus reference to
127 Java trademark.
128
129 2001-01-09 Kazu Hirata <kazu@hxi.com>
130
131 * config/h8300/h8300.c (get_shift_alg): Use a struct shift_info to
132 return the result.
133
134 2001-01-09 Alan Lehotsky <lehotsky@tiac.net>
135
136 * reload.c (find_reloads_address): Check for eliminable registers
137 when substituting a constant expression for a pseudo.
138
139 2001-01-09 Joseph S. Myers <jsm28@cam.ac.uk>
140
141 * c-common.c (enum format_type): Add format_type_error.
142 (decode_format_type): New function.
143 (decl_attributes): Use it.
144 (format_kind_info): Adjust comment.
145
146 2001-01-09 David O'Brien <obrien@BSDi.com>
147
148 * config.gcc (*-*-gnu*, i[34567]86-*-elf*, i[34567]86-*-linux*libc1,
149 i[34567]86-*-linux*, i[34567]86-*-moss*): Specify needed platform specific
150 files in tm_file.
151 * config/i386/gnu.h: Don't include required platform specific .h files,
152 tm.h will do it instead.
153 * config/i386/i386elf.h: Likewise.
154 * config/i386/linux.h: Likewise.
155 * config/i386/moss.h: Likewise.
156 * config/mips/gnu.h: Likewise.
157
158 2001-01-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
159
160 * config.gcc (powerpc-*-beos*): Include ${tm_file} and rs6000/aix.h.
161 (rs6000-ibm-aix3.[01]*): Likewise.
162 (rs6000-ibm-aix3.2.[456789]*, powerpc-ibm-aix3.2.[456789]*): Likewise.
163 (rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Likewise.
164 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Likewise.
165 (rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*): Likewise.
166 (powerpc-*-sysv*): Include {tm_file}. svr4.h and rs6000/sysv4.h.
167 (powerpc-*-eabiaix*): Likewise.
168 (powerpc-*-eabisim*): Likewise.
169 (powerpc-*-elf*): Likewise.
170 (powerpc-*-eabi*): Likewise.
171 (powerpc-*-rtems*): Likewise.
172 (powerpc-*-linux*libc1): Likewise.
173 (powerpc-*-linux*): Likewise.
174 (powerpc-wrs-vxworks*): Likewise.
175 (powerpcle-wrs-vxworks*): Likewise.
176 (powerpcle-*-sysv*): Likewise.
177 (powerpcle-*-elf*): Likewise.
178 (powerpcle-*-eabisim*): Likewise.
179 (powerpcle-*-eabi*): Likewise.
180 (powerpcle-*-solaris2*): Likewise.
181 * config/rs6000/aix31.h: Delete includes.
182 * config/rs6000/aix3newas.h: Likewise.
183 * config/rs6000/aix41.h: Likewise.
184 * config/rs6000/aix43.h: Likewise.
185 * config/rs6000/beos.h: Likewise.
186 * config/rs6000/rtems.h: Likewise.
187 * config/rs6000/sysv4.h: Likewise.
188
189 2001-01-09 Kazu Hirata <kazu@hxi.com>
190
191 * config/h8300/h8300.c (get_shift_alg): Remove an argument cpu.
192 Change an argument mode of machine_mode to shift_mode of
193 shift_mode. Remove an extra error check.
194 (emit_a_shift): Adopt to the new calling prototype of
195 get_shift_alg.
196 (function_prologue): Fix code for a monitor
197 function. Support H8/S.
198 (function_epilogue): Do not output pop for a monitor function.
199
200 2001-01-09 Nick Clifton <nickc@redhat.com>
201
202 * config/rs6000/rs6000.c (rs6000_sysv_varargs_p): Delete.
203 (setup_incoming_varargs): Use sysv_varargs_p field of the
204 cfun->machine structure.
205 (struct machine_function): Move to rs6000.h
206 (rs6000_save_machine_status): Delete.
207 (rs6000_restore_machine_status): Delete.
208 (rs6000_init_machine_status): New Function.
209 (rs6000_free_machine_status): New Function.
210 (rs6000_init_expanders): Use new functions.
211
212 * config/rs6000/rs6000.h (rs6000_sysv_varargs_p): Delete
213 export.
214 (struct machine_function): Move here.
215
216 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
217 sysv_varargs_p field of the cfun->machine structure.
218
219 * config/rs6000/rs6000-protos.h (rs6000_save_machine_status):
220 Remove prototype.
221 (rs6000_restore_machine_status): Remove prototype.
222
223 2001-01-09 Richard Henderson <rth@redhat.com>
224
225 * sched-int.h (struct deps): Add max_reg, reg_last_in_use; merge
226 reg_last_uses, reg_last_sets, reg_last_clobbers into struct deps_reg.
227 * sched-deps.c (sched_analyze_1): Update uses of struct deps.
228 (sched_analyze_2, sched_analyze_insn): Likewise.
229 (sched_analyze, init_deps): Likewise.
230 (free_deps): Likewise. Iterate with EXECUTE_IF_SET_IN_REG_SET.
231 * sched-rgn.c (propagate_deps): Likewise. Remove max_reg argument.
232 (compute_block_backward_dependences): Update propagate_deps call.
233
234 2001-01-09 Mark Elbrecht <snowball3@bigfoot.com>
235
236 * gcc.c (process_command): Set switches[n_switches].ordering to 0.
237
238 2001-01-09 Neil Booth <neil@daikokuya.demon.co.uk>
239
240 * cppinit.c (OPT_MD, OPT_MMD): Restore.
241 (cpp_handle_option): Handle them.
242 (cpp_post_options): Ensure one of -M or -MM is specified with
243 any other -M? option.
244 (init_dependency_output): Suppress output with -MG.
245
246 2001-01-09 Neil Booth <neil@daikokuya.demon.co.uk>
247
248 * cpp.texi: Update.
249 * invoke.texi: Update.
250
251 2001-01-09 Bernd Schmidt <bernds@redhat.com>
252
253 * sh.md (reload_outsf): Generate recognizable patterns for
254 TARGET_SH3E.
255
256 2001-01-09 Neil Booth <neil@daikokuya.demon.co.uk>
257
258 * c-lang.c (lang_hooks): Update.
259 (lang_init): Rename c_init.
260 (lang_finish): Remove.
261 * toplev.c (compile_file): Use lang_hooks for lang_init ()
262 and lang_finish ().
263 * toplev.h (lang_hooks): Add init () and finish ().
264 * tree.h (lang_init, lang_finish): Remove.
265 * cp/tree.h (lang_init, lang_finish): Remove.
266 * cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c.
267 * cp/lex.c (cxx_init, cxx_finish, cxx_post_options,
268 lang_hooks): New.
269 (lang_init, lang_finish): Remove.
270 * f/com.c (lang_init, lang_finish): Rename f_init, f_finish.
271 (lang_hooks): Update.
272 * java/lang.c (lang_init): Rename java_init.
273 (lang_finish): Remove.
274 (lang_hooks): Update.
275 * objc/objc-act.c (lang_init): Rename objc_init.
276 (lang_finish): Remove.
277 (lang_hoooks): Update.
278
279 20001-01-09 Graham Stott <grahams@redhat.com>
280
281 * cppfiles.c (_cpp_execute_include): Move `len` initialisation
282 after `ptr` is initialised.
283
284 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
285
286 * config/sh/sh.h (STATIC_CHAIN_REGNUM): Change from r13 to r3.
287 (INITIALIZE_TRAMPOLINE): Adjust accordingly.
288 * config/sh/sh.c (sh_expand_prologue): Use r1 as temporary for
289 stack adjusts, instead of r3.
290
291 2001-01-09 Michael Hayes <mhayes@redhat.com>
292
293 * flow.c (flow_loop_scan): Break out of ...
294 (flow_loops_find) ... here.
295 * basic-block.h (flow_loop_scan): New.
296 (LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES): Add.
297 (LOOP_EDGES, LOOP_EXITS_DOMS, LOOP_ALL): Redefine.
298
299 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
300
301 * cppinit.c (cpp_cleanup): NULLify macro_buffer and zero
302 macro_buffer_len.
303 * cppmacro.c (cpp_macro_definition): Reset macro_buffer_len when
304 realloc()ing macro_buffer.
305
306 * hwint.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Use long long
307 if it's wider than long and the target's long is wider than the
308 host's.
309
310 2001-01-09 Mark Mitchell <mark@codesourcery.com>
311
312 Remove support for using UWIN as a host machine.
313 * configure.in: Issue an error message.
314 * configure: Regenerated.
315 * config.gcc: Remove xm_* UWIN configury.
316 * config/i386/xm-uwin.h: Remove.
317
318 2001-01-08 Nick Clifton <nickc@redhat.com>
319
320 * config/v850/v850.c (ra_rtx): Delete.
321 (v850_save_machine_status): Delete.
322 (v850_restore_machine_status): Delete.
323 (v850_init_machine_status): New function.
324 (v850_mark_machine_status): New function.
325 (v850_free_machine_status): New function.
326 (v850_return_addr): Use ra_rtx field in machine structure.
327 (v850_init_expanders): Use new functions.
328
329 * config/v850/v850-protos.h: Fix prototypes for v850_output_*
330 * config/v850/v850.c: Change arguments to v850_output+* functions
331 to take a const char *, to avoid compile time warning.
332 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Undefine, not needed.
333 (USER_LABEL_PREFIX): Redefine.
334
335 2000-01-08 Jim Wilson <wilson@redhat.com>
336
337 * sched-rgn.c (BITSET_ADD, BITSET_REMOVE, bitset_member): Cast
338 1 to unsigned HOST_WIDE_INT before left shift.
339
340 2001-01-08 Nick Clifton <nickc@redhat.com>
341
342 * config/arm/arm.c (arm_mark_machine_status): Check to see if
343 the machine structure has been allocated.
344 (arm_free_machine_status): New function: Free the machine
345 specific function structure.
346
347 2001-01-08 Richard Henderson <rth@redhat.com>
348
349 * jump.c (simplejump_p): Revert last change.
350
351 2001-01-08 Neil Booth <neil@daikokuya.demon.co.uk>
352
353 * cppinit.c (init): Rename init_library.
354 (cpp_create_reader): Update.
355 * gcc.c (cpp_options): If -o given, use it as the target of
356 any -M options.
357
358 2001-01-08 Richard Earnshaw <rearnsha@arm.com>
359
360 * arm.c (arm_arch5e): New variable.
361 (all_cores): XScale is a 5TE device.
362 (arm_override_options): Set arm_arch5e.
363 (arm_init_builtins): __builtin_prefetch is in arch5e.
364 * arm.h (arm_arch5e): Declare it.
365
366 * arm.h (PREDICATE_CODES): Add arm_hard_register_operand.
367
368 * arm.md (define_constants): Add defines for UNSPEC and
369 UNSPEC_VOLATILE insns. Update all users.
370 (define_constants): Add constants for IP_REGNUM, SP_REGNUM, PC_REGNUM.
371 * arm.c (multi_register_push, note_invalid_constants)
372 (emit_multi_reg_push, emit_sfm, expand_prologue): Use constants.
373 * arm.h (SP_REGNUM, IP_REGNUM, PC_REGNUM): Delete defines.
374 (STACK_POINTER_REGNUM): Define in terms of SP_REGNUM.
375
376 Mon Jan 8 16:14:56 MET 2001 Jan Hubicka <jh@suse.cz>
377
378 * jump.c (jump_optimize_1): Use reversed_comparison_code
379 instead of can_reverse_comparison_p.
380 (jump_back_p): Likewise.
381 (invert_exp_1): Likewise.
382 (thread_jumps): Likewise.
383 * simplify-rtx.c (simplify_unary_operation): Likewise.
384 (simplify_ternary_operation): Likewise.
385 * cse.c (find_comparison_args): Convert to use
386 can_reverse_comparison_p.
387 (record_jump_equiv): Likewise.
388
389 2001-01-08 Richard Earnshaw <rearnsha@arm.com>
390
391 * arm.h (HARD_REGNO_RENAME_OK): Delete.
392 (EPILOGUE_USES): Define.
393 (INITIAL_ELIMINATION_OFFSET): Current prologue code does not
394 automatically stack the LR if it isn't live.
395
396 Mon Jan 8 13:46:02 MET 2001 Jan Hubicka <jh@suse.cz>
397
398 * i386.c (ix86_expand_int_movcc): Take care to reverse fp conditions
399 properly.
400
401 Sun Jan 7 18:37:43 2001 Mark P Mitchell <mark@codesourcery.com>
402
403 * ggc-page.c (max_alignment): New structure.
404 (MAX_ALIGNMENT): New macro.
405 (init_ggc): Use it to round up the sizes in the
406 extra_order_size_table.
407
408 2001-01-07 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
409
410 * config/rs6000/rs6000.h (EPILOGUE_USES): New, mark link register
411 after reload.
412
413 2001-01-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
414
415 * builtins.def (BUILT_IN_FPRINTF): New entry.
416
417 * c-common.c (c_expand_builtin_fprintf): New function.
418 (init_function_format_info): Handle __builtin_fprintf.
419 (c_common_nodes_and_builtins): Declare fprintf/__builtin_fprintf.
420 (c_expand_builtin): Handle BUILT_IN_FPRINTF.
421
422 * c-decl.c (duplicate_decls): Adjust comment.
423
424 * extend.texi (fprintf): Document new builtin.
425
426 2001-01-07 Richard Henderson <rth@redhat.com>
427
428 * jump.c (simplejump_p): Recognize any single_set jump
429 of the proper form.
430
431 2001-01-07 Richard Henderson <rth@redhat.com>
432
433 * configure.in (slibdir): Accept an --with-slibdir option.
434 Use "test" not "[" in configure. Default to $(libdir).
435
436 * config/t-linux (SHLIB_INSTALL): Double quote slibdir;
437 fix typo in rm -f.
438 * config/t-aix43 (SHLIB_INSTALL): Likewise.
439 * config/alpha/t-osf4 (SHLIB_INSTALL): Likewise.
440 (SHLIB_LINK): Create links for the soname.
441 * config/mips/t-iris6: Likewise.
442 * config/sparc/t-slibgcc: Likewise.
443 * config/sparc/t-slibgcc-sld: Likewise.
444
445 2001-01-07 Jakub Jelinek <jakub@redhat.com>
446
447 * config/i386/i386.c (constant_call_address_operand): Accept
448 (const (plus (symbol_ref) (const_int))).
449 * config/i386/i386.h (PREDICATE_CODES): Add CONST for
450 constant_call_address_operand.
451
452 2001-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
453
454 * libgcc2.h (W_TYPE_SIZE): Fix case where MIN_UNITS_PER_WORD == 1
455 and LONG_LONG_TYPE_SIZE > 32.
456
457 2001-01-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
458
459 * jump.c (reversed_comparison_code_parts): Fix typo introduced by
460 the previous change.
461
462 Sun Jan 7 19:37:48 MET 2001 Jan Hubicka <jh@suse.cz>
463
464 * jump.c (reversed_comparison_code_parts, reversed_comparison_code):
465 New.
466 (can_reverse_comparison_p): Rewrite to use reversed_comparison_code.
467 (reverse_condition_maybe_unordered): Abort on unsigned comparisons.
468 * rtl.h (reversed_comparison_code_parts, reversed_comparison_code):
469 Declare.
470
471 2001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
472
473 * fix-header.c (read_scan_file): s/pfile/scan_in/.
474
475 2001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
476
477 * c-lang.c (c_post_options): Call cpp_post_options.
478 * objc/objc-act.c (objc_post_options): Similarly.
479 * cppmain.c (main): Similarly.
480 * fix-header.c (read_scan_file): Similarly.
481 * cppinit.c (cpp_start_read): Move option consistency checks
482 to cpp_post_options. Don't call init_dependency_output.
483 If needed, add default target and main file dependency.
484 (OPT_MD, OPT_MMD): Remove.
485 (OPT_MF): New.
486 (cpp_handle_option): Update for OPT_* changes.
487 (cpp_post_options): New.
488 (init_dependency_output): Command line -MF overrides environment
489 variables. Don't set default target etc. Suppress output
490 if dependencies are going to stdout.
491 (print_help): Update.
492 * cpplib.h (cpp_post_options): New.
493 * gcc.c (cpp_options): Update for -MD, -MMD, -MF.
494
495 Sun Jan 7 14:44:19 MET 2001 Jan Hubicka <jh@suse.cz>
496
497 * jump.c (comparison_dominates_p): Support unordered compares.
498
499 Sun Jan 7 14:39:07 MET 2001 Jan Hubicka <jh@suse.cz>
500
501 * simplify-rtx.c (simplify_relational_operation): Always simplify
502 ORDERED and UNORDERED when FLAG_FAST_MATH. Handle properly UNLE
503 and UNGE.
504
505 Sun Jan 7 14:35:13 MET 2001 Jan Hubicka <jh@suse.cz>
506
507 * combine.c (combine_simplify_rtx): Recognize the unordered compares.
508 (nonzero_bits): Likewise.
509 (simplify_comparison): Likewise.
510 (num_sign_bit_copies): Likewise; return more sane value depending
511 on STORE_FLAG_VALUE.
512 (known_cond): Do not assume EQ to be always true for equivalent
513 operands.
514
515 Sun Jan 7 14:31:57 MET 2001 Jan Hubicka <jh@suse.cz>
516
517 * cse.c (fold_rtx): Handle unordered comparisons.
518
519 Sun Jan 7 13:49:19 MET 2001 Jan Hubicka <jh@suse.cz>
520
521 * rtlanal.c (set_of_1): New static function.
522 (reg_set_last_1, reg_set_p_1, reg_set_reg, reg_set_flag,
523 reg_set_last_unknown, reg_set_last_value, reg_set_last_first_regno,
524 reg_set_last_last_regno): Remove.
525 (set_of): New global function.
526 (set_of_data): New structure.
527 (reg_set_p, reg_set_last): Revamp for set_of.
528 * rtl.h (set_of): New.
529
530 2001-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
531
532 * c-common.c (c_common_nodes_and_builtins): Add _Exit builtin.
533 * extend.texi: Document _Exit builtin.
534
535 2001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
536
537 * (initialize, initialize_builtins,
538 initialize_dependency_output, initialize_standard_includes):
539 Rename s/initialize/init. Update.
540 (init_dependency_output): Move to after
541 cpp_handle_options, the correct location temporally at least.
542 (opt_comp): Move next to init (), its caller. Fix prototype.
543 (init): Make "initialized" local scope.
544 (cpp_create_reader): Always call init ().
545 (cpp_start_read): Update.
546 (output_deps): New function, broken out of cpp_finish.
547 (cpp_finish): Break out output_deps.
548
549 2001-01-07 Richard Henderson <rth@redhat.com>
550
551 * collect2.c (COFF specific stuff): Revert 12-06 patch
552 to prototype system functions.
553
554 2001-01-07 Michael Hayes <mhayes@redhat.com>
555
556 * hard-reg-set.h: Add multiple include guard.
557 * basic-block.h (struct loop): Add `sink' field.
558 * loop.h: Include sbitmap.h, hard-reg-set.h, and basic-block.h.
559 (emit_iv_add_mult): Delete.
560 (loop_iv_add_mult_hoist, loop_iv_add_mult_sink): Define.
561 (loop_iv_add_mult_emit_before, loop_insn_sink): Define.
562 (unroll_loop): Remove end_insert_before argument.
563 * loop.c (loop_givs_rescan): Remove end_insert_before argument.
564 (maybe_eliminate_biv_1): Likewise.
565 (emit_iv_add_mult): Delete.
566 (gen_add_mult, loop_regs_update): New.
567 (loop_insn_emit_after, loop_insn_emit_before): New.
568 (loop_insn_sink, loop_insn_sink_or_swim): New.
569 (emit_iv_add_mult): Delete.
570 (scan_loop): Set loop->sink.
571 (loop_givs_reduce): Use loop_insn_sink and its ilk.
572 (loop_givs_rescan, strength_reduce, check_dbra_loop): Likewise.
573 (maybe_eliminate_biv_1): Likewise.
574 (maybe_eliminate_biv_1): Add basic block argument.
575 * unroll.c (unroll_loop): Remove end_insert_before argument.
576 (find_splittable_regs): Likewise.
577 (find_splittable_regs): Use loop_insn_sink and its ilk.
578 (find_splittable_givs, final_biv_value, final_giv_value): Likewise.
579
580 2001-01-07 Michael Hayes <mhayes@redhat.com>
581
582 * loop.h (loop_insn_hoist): New prototype.
583 * loop.c (loop_insn_hoist, loop_insn_emit_before): New.
584 (move_movables, loop_givs_rescan): Use loop_insn_hoist.
585 (check_dbra_loop, load_mems): Likewise.
586 * unroll.c (unroll_loop, find_splittable_regs): Likewise.
587 (find_splittable_givs): Likewise.
588
589 2001-01-07 Michael Hayes <mhayes@redhat.com>
590
591 * loop.c (emit_iv_add_mult): Use single_set to examine new insn.
592
593 2001-01-07 Richard Henderson <rth@redhat.com>
594
595 * sched-rgn.c (is_cfg_nonregular): Fix thinko's last change.
596
597 2001-01-07 Richard Henderson <rth@redhat.com>
598
599 * Makefile.in (DRIVER_DEFINES): Define ENABLE_SHARED_LIBGCC and
600 NO_SHARED_LIBGCC_MULTILIB as required for the target.
601 * gcc.c (init_spec): Massage the existing libgcc_spec into a
602 variant that handles a shared libgcc.
603 (process_command): Always validate -{static,shared}-libgcc.
604 (do_spec_1): New 'M' case.
605 * invoke.text (Link Options): Document -{static,shared}-libgcc.
606
607 2001-01-07 Richard Henderson <rth@redhat.com>
608
609 * Makefile.in (slibdir): New variable.
610 (libgcc.mk): Pass SHLIB_INSTALL to mklibgcc.
611 (installdirs): Create slibdir.
612 (install-libgcc, install-multilib): Defer to libgcc.mk.
613 * configure.in (slibdir): Substitute.
614 * mklibgcc.in (install): New target.
615
616 * config/t-linux (SHLIB_LINK): Create links for the soname.
617 (SHLIB_INSTALL): New.
618 * config/alpha/t-osf4 (SHLIB_INSTALL): New.
619 * config/mips/t-iris6 (SHLIB_INSTALL): New.
620 * config/rs6000/t-aix43 (SHLIB_INSTALL): New.
621 * config/sparc/t-slibgcc (SHLIB_INSTALL): New.
622 * config/sparc/t-slibgcc-sld (SHLIB_INSTALL): New.
623
624 2001-01-07 Richard Henderson <rth@redhat.com>
625
626 * config/rs6000/aix.h (LINK_LIBGCC_SPECIAL_1): New.
627 * config/rs6000/rs6000.h (LIBGCC_SPEC): Remove.
628 * config/rs6000/sysv4.h (LIBGCC_SPEC): Remove.
629
630 2001-01-07 Michael Hayes <mhayes@redhat.com>
631
632 * loop.c (count_loop_regs_set): Delete.
633 (load_mems_and_recount_loop_regs_set): Delete.
634 (loop_regs_scan): Merge common code from count_loop_regs_set,
635 scan_loop, and load_mems_and_recount_loop_regs_set.
636 (scan_loop): Call load_mems directly and loop_regs_scan
637 again if new registers created.
638
639 2001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
640
641 * toplev.c (main): Call the front-end specific post_options
642 hook if one is given.
643 * toplev.h (struct_lang_hooks, lang_hooks): New.
644 * c-lang.c (c_post_options, lang_hooks): Implement lang_hooks
645 for the C front end.
646 * cp/decl2.c (cxx_post_options, lang_hooks): Implement
647 lang_hooks for the C++ front end.
648 * objc/objc-act.c (objc_post_options, lang_hooks): Implement
649 lang_hooks for the ObjC front end.
650 * f/com.c (lang_hooks): Hooks for the Fortran front end.
651 * java/lang.c (lang_hooks): Hooks for the Java front end.
652
653 2001-01-07 Neil Booth <neil@daikokuya.demon.co.uk>
654
655 * c-lex.c (init_c_lex): Request #define / #undef callbacks
656 for verbose DWARF[2] debugging.
657 (cb_define, cb_undef): The new callbacks.
658 * toplev.h (debug_define, debug_undef): Make const correct.
659 * toplev.c (debug_define, debug_undef): Similarly. Do not
660 perform the verbosity tests here anymore.
661
662 2001-01-07 Alexandre Oliva <aoliva@redhat.com>
663
664 * reload.c (subst_reloads): Take INSN argument. When
665 replacing a LABEL_REF in a JUMP_INSN, add a REG_LABEL note.
666 * reload.h (subst_reloads): Adjust prototype.
667 * reload1.c (reload_as_needed): Pass INSN to subst_reloads.
668 * jump.c (mark_all_labels): Canonicalize any REG_LABEL notes
669 present in JUMP_INSNs and copy them to JUMP_LABEL.
670 * flow.c (find_label_refs, find_basic_blocks_1): Skip
671 JUMP_INSNs and insns with REG_LABELs that are followed by
672 JUMP_INSNs with the same REG_LABEL.
673 * sched-rgn.c (is_cfg_nonregular): Likewise.
674 * rtlanal.c (computed_jump_p): Make it false if a REG_LABEL
675 note is available.
676 * unroll.c (unroll_loop): Look for REG_LABEL notes in
677 JUMP_INSNs too.
678 * rtl.texi (REG_LABEL): Document usage in JUMP_INSNs.
679
680 2001-01-06 Richard Henderson <rth@redhat.com>
681
682 * loop.c (scan_loop): Use xcalloc for the regs array.
683 (load_mems_and_recount_loop_regs_set): Zero the new memory
684 received from xrealloc.
685
686 2001-01-06 Neil Booth <neil@daikokuya.demon.co.uk>
687
688 * mkdeps.c (deps_add_dep): Fix vector re-allocation.
689
690 Sat Jan 6 00:09:34 2001 J"orn Rennecke <amylaar@redhat.com>
691
692 * integrate.c (copy_rtx_and_substitute): When copying
693 an ignored return value, strip REG_FUNCTION_VALUE_P.
694
695 2001-01-06 Michael Hayes <mhayes@redhat.com>
696
697 * loop.c (debug_biv, debug_giv): New.
698 (loop_biv_dump): Break out from ...
699 (record_biv): ... here.
700 (loop_giv_dump): Break out from ...
701 (record_giv): ... here.
702 (loop_bivs_check): Use print_simple_rtl.
703 * unroll.c (loop_iterations): Use print_simple_rtl.
704
705 2000-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
706
707 * pa.md (return, return_internal): Modify patterns to prevent regrename
708 mucking with the return pointer.
709
710 2001-01-05 Mike Stump <mrs@wrs.com>
711
712 * varasm.c (assemble_name): Ensure we output the stripped name.
713
714 2001-01-05 Richard Henderson <rth@redhat.com>
715
716 * dwarf2out.c (mem_loc_descriptor) [case MEM]: Revert 10-31 change.
717
718 Fri Jan 5 16:34:18 2001 Nick Clifton <nickc@redhat.com>
719
720 * config/v850/lib1funcs.asm: Replace __mulsi3 routine with faster
721 version supplied by Matteo Frigo.
722
723 2001-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
724
725 * cpp.texi: Update for -MQ.
726 * cppinit.c (cpp_create_reader): Always create pfile->deps.
727 (cpp_cleanup): Always free pfile->deps.
728 (initialize_dependency_output): Don't create pfile->deps.
729 (cpp_handle_option): Similarly.
730 (OPT_MQ): New.
731 * gcc.c (cpp_options): Handle -MQ.
732 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
733 * mkdeps.c (base_name): Remove.
734 (deps_init): Don't allocate vector space until it's needed.
735 (deps_free): Only free vectors if allocated.
736 (deps_add_target, deps_add_dep): Update for initial allocation.
737 (deps_add_default_target): Don't strip to the base_name.
738
739 2001-01-05 DJ Delorie <dj@redhat.com>
740
741 * config/v850/v850.h (RETURN_ADDR_RTX): Define.
742 (INIT_EXPANDERS): Define.
743
744 * config/v850/v850.c (struct machine_function): Define.
745 (v850_save_machine_status): New function.
746 (v850_restore_machine_status): New function.
747 (v850_return_addr): New function.
748 (v850_init_expanders): New function.
749
750 * config/v850/v850-protos.h: Add prototypes for v850_return_addr
751 and v850_init_expanders.
752
753 2001-01-05 Zack Weinberg <zack@wolery.stanford.edu>
754
755 * cpplib.h (struct cpp_reader): Add help_only field.
756 * cppinit.c (COMMAND_LINE_OPTIONS): Add OPT_version.
757 (cpp_handle_option): Set pfile->help_only if we see -h,
758 --help, -target-help, or --version. Print version string but
759 do not set help_only if we see -v or -version. Make text
760 printed by -v match that printed by (-)-version.
761
762 * cppmain.c (main): Exit after option parsing if
763 pfile->help_only is true.
764
765 * toplev.c (independent_decode_option): Call print_version,
766 then exit, if we see --version (but not -version).
767 (print_version): Split lengthy message into two lines.
768
769 2001-01-05 Nick Clifton <nickc@redhat.com>
770
771 * config/v850/v850.c (v850_encode_data_area): Use alloca to create
772 temporary string for initialisation before calling ggc_alloc_string.
773
774 2001-01-06 Michael Hayes <mhayes@redhat.com>
775
776 * rtl.h (print_simple_rtl): New.
777 * print-rtl.c (print_simple_rtl): New.
778 (flag_simple): New.
779 (print_rtx): Disable printing of flags and modes, etc.,
780 if `flag_simple` nonzero.
781
782 2001-01-05 Zack Weinberg <zack@wolery.stanford.edu>
783
784 * function.c (fixup_var_refs): Use push_to_full_sequence where
785 possible.
786
787 2001-01-05 Michael Meissner <meissner@redhat.com>
788
789 * flags.h (flag_reorder_blocks): Add declaration.
790 (flag_rename_block): Ditto.
791
792 2001-01-05 DJ Delorie <dj@redhat.com>
793
794 * function.c (reorder_blocks): Make sure the flags are all reset
795 before using them to mark blocks, else a second invocation will
796 corrupt the block chain.
797 (reorder_blocks_0): New, resets the flags.
798
799 Fri Jan 5 20:34:06 2001 J"orn Rennecke <amylaar@redhat.com>
800
801 * cse.c (find_comparison_args): Stop if the argument is known to
802 be constant.
803
804 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
805
806 * config/sh/sh.md (movdf): When splitting load into pair of
807 registers, don't clobber the register used in the address too
808 early.
809
810 2001-01-05 Jeffrey Oldham <oldham@codesourcery.com>
811
812 * varasm.c (mark_constant_pool): Improve initial comments.
813 (mark_constants): Move marking of constants to mark_constant.
814 (mark_constant): New function to recursively mark all constants
815 referred to by a constant.
816
817 2001-01-05 Catherine Moore <clm@redhat.com>
818
819 * dbxout.c ((dbxout_parms): Handle invisible ref where decl is a REG.
820
821 2001-01-05 Phil Edwards <pme@sources.redhat.com>
822
823 * cp/lang-options.h: Bring comment in line with reality.
824 * f/lang-options.h: Likewise.
825 * java/lang-options.h: Likewise.
826 * objc/lang-options.h: Likewise.
827 * ch/lang-options.h: Likewise.
828 * f/g77.texi: And update the manual.
829
830 2001-01-05 Marek Michalkiewicz <marekm@linux.org.pl>
831 Denis Chertykov <denisc@overta.ru>
832
833 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Prototype.
834 * config/avr/avr.c (avr_peep2_scratch_safe): New function.
835 * config/avr/avr.md (all peepholes that request a scratch register):
836 Call it, FAIL the peephole if not safe (in interrupt functions).
837
838 2001-01-05 Mark Mitchell <mark@codesourcery.com>
839
840 * ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now.
841
842 2001-01-05 Joseph S. Myers <jsm28@cam.ac.uk>
843
844 * builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG):
845 Define.
846 * builtins.c (expand_builtin): Abort on BUILT_IN_CONJ,
847 BUILT_IN_CREAL and BUILT_IN_CIMAG.
848 * c-common.c (c_common_nodes_and_builtins): Create builtin conjf,
849 conj, conjl, crealf, creal, creall, cimagf, cimag and cimagl.
850 (expand_tree_builtin): Handle BUILT_IN_CONJ, BUILT_IN_CREAL and
851 BUILT_IN_CIMAG.
852 * extend.texi: Document these builtins.
853
854 2001-01-05 Daniel Berlin <dberlin@redhat.com>
855
856 * c-common.c (lang_get_alias_set): Say we know nothing of
857 VECTOR_TYPE aliasing.
858
859 * dwarf2out.c (is_base_type): Handle VECTOR_TYPE properly.
860
861 2001-01-05 Bruce Korb <bkorb@gnu.org>
862
863 * fixinc/mkfixinc.sh(vax-*-bsd): convert exit and atexit calls to
864 their x* equivalent versions for atexit-less systems
865 * fixinc/fixincl.c(main): do not return from main() on atexit-less
866 systems (or any other system any more).
867
868 2001-01-05 Richard Earnshaw <rearnsha@arm.com>
869
870 * arm.md (ldmsi_postinc): Avoid use of match_dup between input and
871 output operands. Use arm_hard_register_operand for operand 4.
872 (stmsi_postinc): Similarly.
873 (ldmsi): Use arm_hard_register_operand for opernand 2.
874 (stmsi): Similarly.
875 * arm.c (arm_hard_register_operand): New function.
876 * arm-protos.h (arm_hard_register_operand): Prototype it.
877
878 * arm.h (HARD_REGNO_RENAME_OK): Define.
879
880 Fri Jan 5 16:29:49 MET 2001 Jan Hubicka <jh@suse.cz>
881
882 * simplify-rtx.c (cfc_args): add "unordered" field.
883 (check_fold_consts): Set unordered field.
884 (simplify_relational_operation): Simplify the unordered
885 comparisons.
886
887 * reg-stack.c (swap_rtx_condition): Ensure that the transformation
888 is valid.
889
890 * emit-rtl.c (try_split): Fix code to mark labels.
891 * jump.c (mark_jump_label): Make global.
892 * rtl.h (mark_jump_label): Declare.
893
894 * predict.c (estimate_probability): Handle unordred comparisons.
895
896 2001-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
897
898 * cpp.texi: Update for -MP. Clarify behaviour of -MT.
899 * cppinit.c (initialize_dependency_output): Update.
900 (cpp_finish): Output dummy targets for -MP.
901 (OPT_MP): New.
902 (cpp_handle_option): Handle -MP. Don't quote -MT options.
903 * cpplib.h (struct cpp_options): Add deps_phony_targets.
904 * gcc.c (cpp_options): Update to handle -MP.
905 * mkdeps.c (deps_add_target, deps_add_default_target): Update
906 to quote only the default target.
907 (deps_phony_targets): Insert a preceding newline. Rename from
908 deps_dummy_targets for consistency.
909 * mkdeps.h: Update
910
911 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
912
913 * calls.c (emit_library_call_value_1): Support
914 INIT_CUMULATIVE_LIBCALL_ARGS.
915 * tm.texi (INIT_CUMULATIVE_LIBCALL_ARGS): Document it.
916
917 2001-01-04 Richard Henderson <rth@redhat.com>
918
919 * c-decl.c (finish_struct): Detect flexible array members
920 used in an inappropriate context.
921 * c-typeck.c (really_start_incremental_init): Special case
922 constructor_max_index for zero length arrays.
923 (pop_init_level): Allow initialization of flexible array
924 members. Deprecate initialization of zero length arrays.
925 Don't issue missing initializer warning for flexible array
926 members or zero length arrays.
927 (process_init_element): Don't dereference null DECL_SIZE.
928 * varasm.c (array_size_for_constructor): Return a HOST_WIDE_INT.
929 Don't abort for empty constructors. Use size_binop
930 (output_constructor): Add commentary regarding zero length
931 array futures. Abort if we try to initialize an array of
932 unspecified length with a non-empty constructor in the middle
933 of a structure.
934
935 * extend.texi (Zero Length): Update and clarify documentation
936 on static initialization.
937
938 2001-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
939
940 * config/c4x/c4x.c (c4x_expand_prologue): Don't compile an ISR
941 with more than 32767 words of local storage.
942
943 2001-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
944
945 * config/c4x/c4x.c (c4x_init_builtins): Remove builtin support
946 for 'abs', 'labs', and 'fabs'.
947 (c4x_expand_builtin): Likewise.
948 * config/c4x/c4x.h (enum c4x_builtins): Likewise.
949
950 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
951
952 * config/sh/sh.md (prget, prset): New insn types.
953 (return delay slot): Dont' allow prset.
954 (call, sfunc delay slot): Don't allow prget.
955 (movsi_i, movsi_ie, movsi_i_lowpart): Create separate alternatives
956 for prset and prget.
957
958 2001-01-05 Michael Hayes <mhayes@redhat.com>
959
960 * loop.h (struct loop_reg): New.
961 (struct loop_regs): Change to use array of `struct loop_reg'.
962 * loop.c: Replace assortment of varrays with single regs array.
963 (count_one_set): Delete may_not_move array argument
964 and use regs array instead. All caller's changed.
965 (count_loop_regs_set): Delete may_not_move and single_usage
966 arguments and use regs array instead. All caller's changed.
967 (find_single_use_in_loop): Replace usage array argument with pointer
968 to regs structure. All caller's changed.
969 (loop_optimize): Delete `moved_once' array.
970
971 2001-01-05 Michael Hayes <mhayes@redhat.com>
972
973 * loop.c (prescan_loop): Set loop_info->has_nonconst_call.
974 Use it instead of loop_info->has_call for scanning loop mems.
975 (check_dbra_loop): Replace loop_info->has_call test with
976 loop_info->has_nonconst_call.
977
978 2000-01-04 Matthew Hiller <hiller@redhat.com>
979
980 * config/sh/sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used
981 for TARGET_SH3E.
982
983 2001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
984
985 * fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST,
986 use TREE_REALPART and TREE_IMAGPART instead of TREE_OPERAND.
987
988 2001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
989
990 * c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
991 (flag_short_double, flag_short_wchar): Define.
992 (c_common_nodes_and_builtins): Create many tree nodes shared
993 between C and C++ here instead of in cp/decl.c and ...
994 * c-decl.c (init_decl_processing): ... here.
995 (SIZE_TYPE, WCHAR_TYPE): Don't define.
996 (flag_short_double, flag_short_wchar): Don't define.
997 (record_builtin_type): New function.
998 (build_void_list_node): New function.
999 * c-common.h (flag_short_double, flag_short_wchar,
1000 record_builtin_type, build_void_list_node): Declare.
1001
1002 Thu Jan 4 21:09:47 2001 J"orn Rennecke <amylaar@redhat.com>
1003
1004 * integrate.c (expand_inline_function): Don't put a virtual
1005 register into the reg map.
1006
1007 * function.c (fixup_var_refs_1): If force_operand didn't put
1008 the address into the target, move it there.
1009
1010 2001-01-04 Mark Mitchell <mark@codesourcery.com>
1011
1012 Special-case tree_decl/tree_list allocations.
1013 * ggc-page.c (OBJECT_PER_PAGE): Reimplement.
1014 (OBJECT_SIZE): New macro.
1015 (NUM_EXTRA_ORDER): Likewise.
1016 (extra_order_size_table): New variable.
1017 (NUM_ORDERS): New macro.
1018 (objects_per_page_table): New variable.
1019 (object_size_table): New variable.
1020 (G.pages): Use NUM_ORDERS to bound the array.
1021 (G.page_tails): Likewise.
1022 (DIV_ROUND_UP): Remove.
1023 (BITMAP_SIZE): Use CEIL, instead of DIV_ROUND_UP.
1024 (alloc_page): Use OBJECT_SIZE.
1025 (size_lookup): Don't make it const.
1026 (ggc_alloc): Use OBJECT_SIZE.
1027 (ggc_set_mark): Likewise.
1028 (ggc_get_size): Likewise.
1029 (init_ggc): Set up the object_size_table, objects_per_page_table,
1030 and adjust size_lookup.
1031 (ggc_recalculate_in_use_p): Use CEIL, not DIV_ROUND_UP.
1032 (ggc_pop_context): Use NUM_ORDERS.
1033 (clear_marks): Likewise.
1034 (sweep_pages): Likewise.
1035 (poison_pages): Likewise.
1036 (ggc_print_statistics): Use OBJECT_SIZE.
1037
1038 Thu Jan 4 15:54:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1039
1040 * varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.
1041 Only call array_size_for_constructor if last field and array type
1042 with no upper bound.
1043
1044 2001-01-04 Philip Blundell <philb@gnu.org>
1045
1046 * config/arm/arm.c (arm_gen_constant): Prefer to emit constants
1047 from bit 31 downwards, if this requires no more insns.
1048 (count_insns_for_constant): New helper function for above.
1049
1050 2001-01-04 Alexandre Oliva <aoliva@redhat.com>
1051
1052 * gencodes.c (output_predicate_decls): Remove empty initializer.
1053
1054 2001-01-04 Mark Mitchell <mark@codesourcery.com>
1055
1056 * tree.c (copy_node): Remove documentation about obstacks.
1057 (buidl1): Check that nobody tries to build 2-argument nodes this
1058 way.
1059
1060 2001-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1061
1062 * sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and
1063 fp_high_losum_p.
1064
1065 * gencodes.c (output_predicate_decls): Fill empty initializer
1066 braces.
1067
1068 2001-01-04 Jakub Jelinek <jakub@redhat.com>
1069
1070 * tradcpp.c (deps_file, print_deps_missing_files): New variables.
1071 (main): Handle -MG, -MD, -MMD. Bail out if -MG is given without -M
1072 or -MM.
1073 (do_include): Handle missing headers like cpp0.
1074 * cppfiles.c (_cpp_execute_include): Don't prefix absolute header
1075 paths with first include pathname. Don't strcat to uninitialized
1076 string.
1077
1078 2001-01-04 Bernd Schmidt <bernds@redhat.com>
1079
1080 * regrename.c (regrename_optimize): Don't rename from frame pointer
1081 if frame_pointer_needed.
1082 (do_replace): Don't set ORIGINAL_REGNO to a hard register number.
1083 * config/ia64/ia64.c (emit_all_group_insn_barriers): New function.
1084 (ia64_reorg): Use it instead of scheduling if ! optimize.
1085 (errata_emit_nops): Properly call asm_noperands.
1086 (ia64_sched_reorder): Finish cycle if we see an asm.
1087 (ia64_variable_issue): Clear scheduling state after asms.
1088
1089 2001-01-04 Neil Booth <neil@daikokuya.demon.co.uk>
1090
1091 * cpp.texi: Update for -MT.
1092 * cppinit.c (initialize_dependency_output): Add a default
1093 target if none has been given already.
1094 (no_tgt, OPT_MT): New.
1095 (cpp_handle_option): Handle -MT. Update -M etc.
1096 * cpplib.h (struct cpp_options): Remove deps_target.
1097 * gcc.c (cpp_options): Handle -MT.
1098 * mkdeps.c (struct deps): Move from mkdeps.h.
1099 (deps_calc_target): Rename deps_add_default_target. Add a
1100 default target if none has been specified already.
1101 * mkdeps.h (struct deps): Move to mkdeps.c.
1102 (deps_calc_target): Rename deps_add_default_target.
1103
1104 2000-01-03 Richard Henderson <rth@redhat.com>
1105
1106 * c-decl.c (grokdeclarator): Give zero-length arrays size zero.
1107 Remove dead code.
1108 * c-typeck.c (push_init_level): Move checks for flexible array
1109 members and zero length arrays ...
1110 (pop_init_level): ... here. Silently discard empty initializations.
1111 Remove dead code.
1112 * varasm.c (output_constructor): Update for sizeof change to
1113 zero-length arrays.
1114
1115 * extend.texi (Zero Length): Clarify semantics.
1116
1117 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1118
1119 * configure.in (tm.h): Include isns-codes.h last.
1120 * configure: Rebuilt.
1121
1122 2001-01-03 Richard Henderson <rth@redhat.com>
1123
1124 * config/alpha/alpha.md (addvsi3, addvdi3): New.
1125 (negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New.
1126
1127 2001-01-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1128
1129 * tradcpp.c (main): Make sure finclude() is called with a valid
1130 indepth value while handling -include.
1131
1132 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1133
1134 * gencodes.c (output_predicate_decls): New function.
1135 (main): Call it.
1136 * machmode.h (GET_MODE_MASK): Arrange for it to be defined
1137 even if it is not the first time machmode.h is #included.
1138 * config/sh/sh.c (fpul_operand): Declare MODE argument.
1139 * tm.texi (PREDICATE_CODES): Document predicate declarations.
1140 * gcc.texi (Copyright): Added 2001.
1141
1142 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
1143
1144 * c-common.c (c_common_lang_init): New function. Warn if format
1145 warning options which only have effects when used with -Wformat
1146 are used without -Wformat.
1147 * c-common.h (c_common_lang_init): Declare.
1148 * c-lang.c (lang_init): Call c_common_lang_init.
1149 * objc/objc-act.c (lang_init): Call c_common_lang_init.
1150
1151 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
1152
1153 * configure.in: Check for the mktemp command.
1154 * configure: Regenerate.
1155 * gccbug.in: Use a separate temporary file $TEMP0 for one use of
1156 $TEMP. Create temporary files with mktemp, if available at
1157 configure time; otherwise use set -C. Remove temporary files
1158 before exit.
1159
1160 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
1161
1162 * configure.in: Require at least texinfo 4.0. Check for whether
1163 Pod::Man is sufficiently recent to regenerate GCC manpages.
1164 * configure: Regenerate.
1165 * Makefile.in (TEXI2POD): Call perl explicitly rather than relying
1166 on #!.
1167 (GENERATED_MANPAGES): Define.
1168 (generated-manpages): New target. Depend on cpp.1 as well as
1169 gcov.1.
1170 (install-man): Depend on $(GENERATED_MANPAGES) (defined by
1171 configure to generated-manpages or empty) rather than on the
1172 manpages directly. Remove execute permission from installed
1173 gcov.1 as well as cpp.1.
1174 * cpp.1, gcov.1: Regenerate.
1175
1176 2001-01-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1177
1178 * builtins.c (expand_builtin_strncmp): Use host_integerp and
1179 tree_low_cst. Allow using cmpstrsi in more cases.
1180
1181 Wed Jan 3 10:48:43 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1182
1183 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for variable
1184 sized types.
1185
1186 Wed Jan 3 12:22:32 2001 Alexandre Oliva <aoliva@redhat.com>
1187
1188 * build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
1189 * Makefile.in (HOST_CFLAGS): Mention build-make.
1190
1191 Wed Jan 3 08:53:50 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1192
1193 * config/sparc/sparc.md (nonlocal_goto): Emit goto_handler_and_restore
1194 as JUMP_INSN.
1195
1196 2001-01-01 Bernd Schmidt <bernds@redhat.com>
1197
1198 * builtins.c (expand_builtin_return_addr): Don't use MEM_ALIAS_SET on
1199 a REG rtx.
1200
1201 * cse.c (cse_rtx_varies_p): Accept additional FROM_ALIAS arg. All
1202 callers changed.
1203
1204 * alias.c (throughout): Use ORIGINAL_REGNO when accessing
1205 reg_base_value and reg_known_value arrays.
1206 (init_alias_analysis): Add more cases to detect known values.
1207 * sched-deps.c (deps_may_trap_p): New function.
1208 (sched_analyze_2): Use it.
1209
1210 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1211
1212 * combine.c (simplify_shift_const): Even if we're sign-extracting,
1213 don't discard an ASHIFTRT if we're shifting in a wider mode.
1214
1215 2000-01-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1216
1217 * toplev.c (rest_of_compilation): Don't print basic block information
1218 when CFG isn't up to date.
1219
1220 2001-01-02 Mark Elbrecht <snowball3@bigfoot.com>
1221
1222 * config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define.
1223 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define.
1224 (UNALIGNED_SHORT_ASM_OP): Define.
1225 (CPP_PREDEFINES): Remove defines for GO32 and DJGPP.
1226
1227 2001-01-02 Mark Mitchell <mark@codesourcery.com>
1228
1229 * fold-const.c (fold_convert): Fix typo.
1230
1231 2001-01-02 Richard Henderson <rth@redhat.com>
1232
1233 * c-common.h (ASM_INPUT_P): New.
1234 * c-parse.in (asm): Set it when needed.
1235 * c-semantics.c (genrtl_asm_stmt): Test it instead of the
1236 existance of an operand.
1237
1238 Tue Jan 2 20:27:07 MET 2001 Jan Hubicka <jh@suse.cz>
1239
1240 * dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.
1241 (dwarf2out_frame_debug_expr): Likewise.
1242 (mem_loc_descriptor): Handle PRE and POST_MODIFY.
1243
1244 Tue Jan 2 20:21:31 MET 2001 Jan Hubicka <jh@suse.cz>
1245
1246 * i386.c (ix86_split_to_parts): Return number of part required;
1247 handle TFmodes.
1248 (print_operand, ix86_expand_branch, ix86_expand_fp_movcc): Handle
1249 TFmodes.
1250 (ix86_split_long_move): Use number of part returned
1251 by ix86_split_to_parts
1252 * i386.h (MASK_128BIT_LONG_DOUBLE, TARGET_128BIT_LONG_DOUBLE):
1253 New macros.
1254 (TARGET_SWITCHES): Add 128bit-long-double and 96bit-long-double
1255 (LONG_DOUBLE_TYPE_SIZE): Change from constant.
1256 (MAX_LONG_DOUBLE_TYPE_SIZE): New macro.
1257 (INTEL_EXTENDED_IEEE_FORMAT): Likewise.
1258 (ALIGN_MODE_128): Add TFmode.
1259 (IS_STACK_MODE): Likewise.
1260 (HARD_REGNO_NREGS): TFmode needs 3 registers.
1261 (HARD_REGNO_OK): Support TFmodes.
1262 (ASM_OUTPUT_LONG_DOUBLE): Handle TFmodes.
1263 * i386.md (scheduler definitions): Use memory operand to determine
1264 fst/fld instructions; use mode attribute to determine real mode of
1265 the instruction.
1266 (*tf): New patterns, expanders and splitters; based on XFmode patterns.
1267 * invoke.texi (128bit-long-double, 96bit-long-double): Document.
1268
1269 2001-01-02 Mark Mitchell <mark@codesourcery.com>
1270
1271 * tree.def (TRUTH_NOT_EXPR): Improve documentation.
1272
1273 Tue Jan 2 10:47:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
1274
1275 * expr.c (store_constructor_field): Update ALIGN before calling
1276 store_constructor.
1277
1278 2001-01-02 Jeffrey Oldham <oldham@codesourcery.com>
1279
1280 * config/mips/mips.c (function_arg): Don't pass NULL_TREE to
1281 host_integerp.
1282
1283 2001-01-02 Jeffrey Oldham <oldham@codesourcery.com>
1284
1285 * tm.texi (FUNCTION_ARG): Document that @var{type} can be an
1286 incomplete type.
1287
1288 Tue Jan 2 10:47:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
1289
1290 * c-decl.c (start_function): Don't warn on third parameter to main.
1291
1292 2001-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1293
1294 * tsystem.h: Define HAVE_DECL_GETOPT.
1295
1296 2001-01-02 Philip Blundell <pb@futuretv.com>
1297
1298 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Avoid illegal clobber
1299 of input operand.
1300
1301 2001-01-02 Richard Henderson <rth@redhat.com>
1302
1303 * alpha.md (*ze_and_ne): Duplicate insn condition to split.
1304
1305 2001-01-02 Andreas Jaeger <aj@suse.de>
1306
1307 * c-decl.c (c_decode_option): Remove support of
1308 -Wmissing-noreturn.
1309
1310 * toplev.c (documented_lang_options): Remove -Wmissing-noreturn.
1311 (W_options): Add -Wmissing-noreturn here.
1312
1313 * flow.c: Define lang_missing_noreturn_ok_p.
1314 (check_function_return_warnings): Use it.
1315
1316 * c-common.h: Declare lang_missing_noreturn_ok_p.
1317
1318 * c-lang.c (c_missing_noreturn_ok_p): New function.
1319 (lang_init): Set lang_missing_noreturn_ok_p.
1320
1321 * invoke.texi (Warning Options): Document this.
1322
1323 2000-12-27 Phil Edwards <pme@sources.redhat.com>
1324
1325 * extend.texi (C++ Extensions): New node for C++ attributes;
1326 describe init_priority and com_interface.
1327 * invoke.texi: Remove -finit-priority as it now has zero effect.
1328 * install.texi: Fix xref syntax.
1329 * md.texi: Likewise.
1330
1331 Mon Jan 1 21:28:29 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1332
1333 * config.gcc (sparc64-wrs-vxworks*): New case.
1334 * config/sparc/vxsparc64.h, config/sparc/t-vxsparc64: New files.
1335
1336 * config/sparc/sparc.c (sparc_override_options): Do support different
1337 pointer and architecture size.
1338 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Always 4.
1339 (POINTERS_EXTEND_UNSIGNED): Define.
1340 (Pmode): Test TARGET_ARCH64, not TARGET_PTR64.
1341 (FUNCTION_MODE): Define to be Pmode.
1342 * config/sparc/sparc.md (64-bit call patterns): FUNCTION_MODE now DI.
1343
1344 * function.c (expand_function_end): Properly handle DECL_RESULT
1345 and copy when ptr_mode != Pmode.
1346 * expmed.c (make_tree): Convert X from Pmode to ptr_mode, if needed.
1347
1348 2001-01-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1349
1350 * c-common.c (c_common_nodes_and_builtins): Set prototype
1351 parameters for __builtin_fputs, __builtin_fputc and
1352 __builtin_fwrite. Don't declare plain fputc as a builtin.
1353
1354 2001-01-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1355
1356 * loop.c (add_label_notes): Increment the label usage count when
1357 a note is added to an insn which refers to a CODE_LABEL.
1358 * gcse.c (add_label_notes): Likewise.
1359
1360 2001-01-01 Andreas Jaeger <aj@suse.de>
1361
1362 * loop.c (scan_loop): Use xmalloc to allocate movables.
1363
1364 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1365
1366 * tm.texi (REGISTER_MOVE_COST): Add a mode argument.
1367 * reload.c (REGISTER_MOVE_COST): Likewise. Adjust all callers.
1368 * reload1.c (REGISTER_MOVE_COST): Likewise.
1369 * regclass.c (REGISTER_MOVE_COST): Likewise.
1370 (move_cost, may_move_in_cost, may_move_out_cost): Add mode
1371 dimension. Adjust all users.
1372 (init_reg_sets_1): Iterate on all modes.
1373 * config/1750a/1750a.h (REGISTER_MOVE_COST): Adjust.
1374 * config/a29k/a29k.h (REGISTER_MOVE_COST): Adjust.
1375 * config/alpha/alpha.h (REGISTER_MOVE_COST): Adjust.
1376 * config/arc/arc.h (REGISTER_MOVE_COST): Adjust.
1377 * config/arm/arm.h (REGISTER_MOVE_COST): Adjust.
1378 * config/avr/avr.h (REGISTER_MOVE_COST): Adjust.
1379 * config/c4x/c4x.h (REGISTER_MOVE_COST): Adjust.
1380 * config/d30v/d30v.h (REGISTER_MOVE_COST): Adjust.
1381 * config/dsp16xx/dsp16xx.h (REGISTER_MOVE_COST): Adjust.
1382 * config/h8300/h8300.h (REGISTER_MOVE_COST): Adjust.
1383 * config/i386/i386.h (REGISTER_MOVE_COST): Adjust.
1384 * config/ia64/ia64.h (REGISTER_MOVE_COST): Adjust.
1385 * config/m32r/m32r.h (REGISTER_MOVE_COST): Adjust.
1386 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Adjust.
1387 * config/m68k/m68k.h (REGISTER_MOVE_COST): Adjust.
1388 * config/mcore/mcore.h (REGISTER_MOVE_COST): Adjust.
1389 * config/mips/mips.h (REGISTER_MOVE_COST): Adjust.
1390 * config/mn10200/mn10200.h (REGISTER_MOVE_COST): Adjust.
1391 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Adjust.
1392 * config/ns32k/ns32k.h (REGISTER_MOVE_COST): Adjust.
1393 * config/pa/pa.h (REGISTER_MOVE_COST): Adjust.
1394 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Adjust.
1395 * config/pj/pj.h (REGISTER_MOVE_COST): Adjust.
1396 * config/romp/romp.h (REGISTER_MOVE_COST): Adjust.
1397 * config/rs6000/rs6000.h (REGISTER_MOVE_COST): Adjust.
1398 * config/sh/sh.h (REGISTER_MOVE_COST): Adjust.
1399 * config/sparc/sparc.h (REGISTER_MOVE_COST): Adjust.
1400
1401 2001-01-01 Bernd Schmidt <bernds@redhat.com>
1402
1403 * alias.c (fixed_scalar_and_varying_struct): Adjust prototype of
1404 arg VARIES_P. Call it with extra arg.
1405 (true_dependence): Likewise.
1406 * rtl.h (rtx_addr_can_trap_p): Declare.
1407 (rtx_varies_p, rtx_addr_varies_p, true_dependence): Update
1408 prototypes.
1409 * rtlanal.c (rtx_addr_can_trap_p): No longer static.
1410 (rtx_varies_p): Accept extra arg FOR_ALIAS; only disallow
1411 pic offset table register if it's zero. All callers changed.
1412 (rtx_addr_varies_p): Accept extra arg FOR_ALIAS; all callers changed.
1413
1414 Mon Jan 1 07:38:33 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1415
1416 * explow.c (convert_memory_address, case SYMBOL_REF): Copy
1417 STRING_POOL_ADDRESS_P.
1418
1419 * config/sparc/sparc.c (input_operand): Properly test for short op.
1420
1421 * config.gcc (sparc-*-elf): Include sparc/sol2.h.
1422 (sparc-*-rtems*): Include sparc/sol2.h and sparc/elf.h.
1423 (sparclite-*-elf*, sparc86x-*-elf*): Likewise.
1424 * config/sparc/elf.h: No longer include sol2.h.
1425 * config/sparc/lifeelf.h: No longer include sparc/elf.h.
1426 * config/sparc/rtemself.h, config/sparc/sp86x-elf.h: Likewise.
1427
1428 * config/sparc/sparc.md: Test TARGET_ARCH64 instead of TARGET_PTR64.
1429
1430 2001-01-01 Michael Hayes <mhayes@redhat.com>
1431
1432 * loop.c (check_insn_for_bivs): Use ivs->n_regs to check array bounds.
1433 (find_mem_givs, record_biv, maybe_eliminate_biv): Likewise.
1434 (record_initial): Likewise.
1435 * unroll.c (copy_loop_body, loop_iterations): Likewise.
1436 (remap_split_bivs): Likewise.
1437
1438 2001-01-01 Michael Hayes <mhayes@redhat.com>
1439
1440 * loop.c (loop_ivs_free): New function.
1441 (strength_reduce): Break out from...
1442
1443 2001-01-01 Michael Hayes <mhayes@redhat.com>
1444
1445 * loop.h (struct iv): New.
1446 (REG_IV_TYPE, REG_IV_CLASS, REG_INFO): Modify to use 'struct iv'.
1447 (struct loop_ivs): Replace 'reg_iv_type', 'reg_iv_info',
1448 'reg_biv_class' fields with 'regs' and 'n_regs'.
1449 (struct ivs): Rename 'loop_iv_list' field to 'list'.
1450 * loop.c (loop_bivs_find, strength_reduce): Use ivs->regs array.
1451 * unroll.c (loop_iterations): Check array bounds with ivs->n_regs.
1452
1453 2000-12-31 Alexandre Oliva <aoliva@redhat.com>
1454
1455 * resource.c (mark_referenced_resources): Abort() before
1456 attempting to mark a pseudo register.
1457 (mark_set_resources): Likewise.
1458
1459 2001-01-01 Michael Hayes <mhayes@redhat.com>
1460
1461 * loop.h (REG_IV_CLASS): New accessor macro.
1462 * loop.c (REG_IV_CLASS): Use it instead of reg_iv_class array.
1463 * unroll.c (REG_IV_CLASS): Likewise.
1464
1465 Sun Dec 31 19:20:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1466
1467 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR): New.
1468 (loc_descriptor_from_tree, case SAVE_EXPR): New.
1469
1470 2001-01-01 Michael Hayes <mhayes@redhat.com>
1471
1472 * loop.c (loop_giv_reduce_benefit): Break out from strength_reduce.
1473 (loop_givs_dead_check, loop_givs_reduce, loop_givs_rescan): Likewise.
1474 (prescan_loop): Set pre_header_has_call in loop_info.
1475 * loop.h (struct_iv_class): Add `final_value' and `all_reduced'.
1476 (struct loop_info): Add `pre_header_has_call'.
1477
1478 * loop.c (loop_bivs_find): Break out from strength_reduce.
1479 (loop_bivs_init_find, loop_bivs_check, loop_givs_find): Likewise.
1480 (loop_givs_check, loop_biv_eliminable_p): Likewise.
1481
1482 * loop.c (LOOP_REG_LIFETIME, LOOP_REG_GLOBAL_P): Define.
1483 (scan_loop, record_giv): Use LOOP_REG_LIFETIME and LOOP_REG_GLOBAL_P.
1484
1485 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Define.
1486 * loop.c (REGNO_FIRST_LUID, REGNO_LAST_LUID): Use in place of
1487 direct access to uid_luid array.
1488 * unroll.c (REGNO_FIRST_LUID, REGNO_LAST_LUID): Likewise.
1489
1490 * loop.h (struct loop_movables): New.
1491 (LOOP_MOVABLES): New.
1492 (struct loop_info): Add movables field.
1493 * loop.c (struct movables): Delete. Replace all uses
1494 with struct loop_movables.
1495 (the_movables): Delete. Replace all uses with movables
1496 field in loop_info.
1497 (loop_movables_add, loop_movables_free): New functions.
1498 (scan_loop): Use xmalloc instead of alloca for movables.
1499 Call loop_movables_free.
1500
1501 * loop.c (debug_loops): New.
1502
1503 2000-12-31 Philip Blundell <philb@gnu.org>
1504
1505 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Add missing asm
1506 operands.
1507
1508 2000-12-30 Richard Henderson <rth@redhat.com>
1509
1510 * dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
1511 Initialize variables properly for DBX_LBRAC_FIRST.
1512
1513 2000-12-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1514
1515 * expr.c (expand_expr, case COMPONENT_REF): Fix typo in last change.
1516
1517 2000-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1518
1519 * builtins.c (validate_arglist): New function, use it.
1520
1521 2000-12-30 Philip Blundell <philb@gnu.org>
1522
1523 * config/arm/arm.c (arm_expand_prologue): Fix typos in error
1524 message and comment. Note location of testcase for an unhandled
1525 situation.
1526
1527 2000-12-30 Jeffrey Oldham <oldham@codesourcery.com>
1528
1529 * defaults.h (BUILD_VA_LIST_TYPE): New definition.
1530 * tree.c (build_common_tree_nodes_2): Ensure the va_list_type_node
1531 is a copy, not an alias.
1532
1533 2000-12-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1534
1535 * calls.c (calls_function_1, case CONSTRUCTOR): New case.
1536
1537 * alias.c (alias_sets_conflict_p): New function.
1538 (mems_in_disjoint_alias_sets_p): Use it.
1539 (readonly_fields_p): Moved from expr.c; check for record type.
1540 (objects_must_conflict_p): New function.
1541 * calls.c (expand_call): Use assign_temp as much as possible, use
1542 readonly variant if assigned once, and don't set memory attributes.
1543 (emit_library_call_value_1, store_one_arg): Likewise.
1544 * integrate.c (expand_inline_function): Likewise.
1545 * stmt.c (expand_asm_operands, expand_return): Likewise.
1546 * expr.c (copy_blkmode_from_reg, store_constructor): Likewise.
1547 (store_field, save_noncopied_parts, expand_expr): Likewise.
1548 (expand_expr_unaligned): Likewise.
1549 (readonly_fields_p): Moved to alias.c.
1550 (safe_from_p): Rework handling of SAVE_EXPR.
1551 MEMs ony conflict if alias sets conflict; likewise for INDIRECT_REF.
1552 * function.c (struct temp_slot): Delete field ALIAS_SET; add TYPE.
1553 (assign_stack_for_temp): Use objects_must_confict_p.
1554 Set all memory attributes from type, if specified.
1555 (mark_temp_slot): Mark TYPE field.
1556 * tree.h (alias_sets_conflict_p, readonly_fields_p): New decls.
1557 (objects_must_conflict_p): Likewise.
1558
1559 * stmt.c (expand_decl): Don't use assign_stack_temp in error case.
1560 (add_case_node): No need to copy nodes anymore.
1561
1562 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1563
1564 * config/sh/sh.c (split_branches): Don't dereference re-computed
1565 `beyond' before checking it's non-NULL.
1566
1567 2000-12-29 Robert Lipe <robertl@sco.com>
1568
1569 Remove COFF support from i?86-pc-sco3.2v5.
1570 * i386/sco5.h (PREFERRED_DEBUGGING_TYPE): Change to Dwarf II.
1571 (TARGET_ELF): Now always true.
1572 (SUBTARGET_SWTICHES: )Remove -mcoff.
1573
1574 * i386/t-sco5 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1575 MULTILIB_EXCEPTION): Nuke coff.
1576 (CRTSTUFF_T_CFLAGS_S): Deleted.
1577 (TARGET_LIBGCC2_CFLAGS): Added.
1578
1579 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1580
1581 * varasm.c (output_constant_def): Don't ENCODE_SECTION_INFO
1582 twice. Update desc->rtl and ->label, in case ENCODE_SECTION_INFO
1583 modifies them.
1584
1585 2000-12-29 Bernd Schmidt <bernds@redhat.com>
1586
1587 * ia64.c (ia64_expand_load_address): Accept additional scratch
1588 register argument. All callers & prototype changed.
1589 Use scratch register when generating load_symptr insns.
1590 * ia64.md (movdi_symbolic): Clobber a scratch register. Use it
1591 when calling ia64_expand_load_address.
1592 (movdi): Generate movdi_symbolic with additional operand.
1593 (load_gprel64): Use pic_offset_table_rtx instead of (reg:DI 1).
1594 (load_symptr): Likewise. Use additional operand as a scratch
1595 register instead of generating it here.
1596
1597 * basic-block.h: Add a comment.
1598 * flow.c (PROP_POSTRELOAD): New macro.
1599 (update_life_info): Add it to prop_flags.
1600 (mark_set_1): If it is set, compute REG_N_SETS for the original
1601 register number of a hard reg.
1602
1603 * emit-rtl.c (gen_raw_REG): New function.
1604 (gen_rtx_REG, gen_reg_rtx, init_emit_once): Use it instead of
1605 gen_rtx_raw_REG.
1606 * print-rtl.c (print_rtx): Print ORIGINAL_REGNO.
1607 * final.c (alter_subreg): Update it.
1608 * regrename.c (do_replace): Likewise. Use gen_raw_REG.
1609 * rtl.def (REG): Update comment.
1610 * rtl.h (X0UINT, ORIGINAL_REGNO): New macros.
1611 (gen_raw_REG): Declare.
1612
1613 2000-12-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1614
1615 * tree.c (get_set_constructor_bits): Use host_integerp and
1616 tree_low_cst.
1617
1618 * local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN.
1619
1620 * toplev.c (main): Call xmalloc_set_program_name.
1621 * gcc.c (main): Likewise.
1622
1623 2000-12-29 Philip Blundell <philb@gnu.org>
1624
1625 * config/arm/arm.c (arm_override_options): Fix typo in warning
1626 message.
1627
1628 2000-12-29 Richard Henderson <rth@redhat.com>
1629
1630 * config/alpha/alpha.c (alpha_expand_block_move): Initialize
1631 src_align and dst_align in bits. Do unaligned quadword loads
1632 if possible for BWX too.
1633 (alpha_expand_block_clear): Initialize align in bits. Track
1634 small leading offsets into a larger alignment. Play games with
1635 stq_u for large 4-byte aligned blocks. Use load/mask/store
1636 for appropreately aligned heads and tails.
1637
1638 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1639
1640 * function.c (assign_parms): Convert arguments passed by
1641 reference to the right mode.
1642
1643 2000-12-28 Geoffrey Keating <geoffk@redhat.com>
1644
1645 * c-parse.in (select_or_iter_stmt): Use truthvalue_conversion
1646 on the condition of a FOR statement, so that it gets typechecked
1647 and optimised.
1648
1649 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1650
1651 * c-decl.c (grokdeclarator): Prevent crash in case of overflow in
1652 array size.
1653
1654 * calls.c (emit_library_call_value_1): Add to call_fusage the
1655 stack slot assigned to argument passed by reference.
1656
1657 2000-12-28 Jeffrey Oldham <oldham@codesourcery.com>
1658
1659 * toplev.h (extern really_sorry): Remove extern declaration for
1660 nonexistent function.
1661
1662 2000-12-28 Jeffrey Oldham <oldham@codesourcery.com>
1663
1664 * varasm.c (initializer_constant_valid_p): Indicate subtraction of
1665 pointers to the same string constant is absolute.
1666
1667 2000-12-28 Joseph S. Myers <jsm28@cam.ac.uk>
1668
1669 * c-common.c (enum format_type): Add strfmon_format_type.
1670 (decl_attributes): Handle format attributes strfmon and
1671 __strfmon__.
1672 (FMT_FLAG_USE_DOLLAR, FMT_FLAG_ZERO_WIDTH_BAD,
1673 FMT_FLAG_EMPTY_PREC_OK): Define.
1674 (format_char_info): Update comment for flag_chars.
1675 (format_flag_spec): Add skip_next_char.
1676 (format_kind_info): Add left_precision_char.
1677 (printf_flag_specs, scanf_flag_specs, strftime_flag_specs,
1678 format_types): Update for these new structure members and flags.
1679 (time_char_table): Make const.
1680 (strfmon_length_specs, strfmon_flag_specs, strfmon_flag_pairs,
1681 monetary_char_table): New.
1682 (format_types): Add details of strfmon formats.
1683 (init_function_format_info): Create default attribute for strfmon.
1684 (check_format_info_main): Check the new flags. Handle
1685 skip_next_char and left precision.
1686 * toplev.c (documented_lang_options): Update description of
1687 -Wformat.
1688 * extend.texi: Document strfmon format attributes. Document
1689 attribute forms such as __printf__. Clarify format_arg attribute
1690 documentation.
1691 * invoke.texi (-Wformat): Update for strfmon formats.
1692
1693 2000-12-28 Andreas Jaeger <aj@suse.de>
1694
1695 * expmed.c (store_bit_field): Fix last patch.
1696
1697 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1698
1699 * config/sh/crt1.asm (start_l): `__SH4_SINGLE_ONLY__' was missing
1700 the trailing `__'.
1701
1702 2000-12-28 Alan Lehotsky <lehotsky@tiac.net>
1703
1704 * expmed.c (store_bit_field): Correctly compute smallest mode that
1705 is sufficient to contain all bits we are storing.
1706
1707 2000-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1708
1709 * builtins.c (build_function_call_expr): New function. Use it
1710 everywhere in lieu of manually constructing a CALL_EXPR.
1711
1712 2000-12-27 Chandrakala Chavva <cchavva@redhat.com>
1713
1714 * calls.c (store_one_arg): If parm is passed both in stack and in
1715 register and offset is greater than reg_parm_stack_space, split
1716 the offset and call emit_push_insn().
1717
1718 2000-12-27 Nick Clifton <nickc@redhat.com>
1719
1720 * ifcvt.c (noce_emit_store_flag): Handle jump insns that are
1721 PARALLEL.
1722
1723 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1724
1725 * rtl.c (copy_most_rtx, shallow_copy_rtx): Copy frame_related
1726 flag.
1727
1728 2000-12-27 Bruce Korb <bkorb@gnu.org>
1729
1730 * fixinc/Makefile.in: fix for ancient Bourne shell
1731 * fixinc/Makefile.BEOS: obsolete
1732 * fixinc/Makefile.DOS: obsolete
1733 * fixinc/fixincl.sh(LINKS): use `test -d' rather than `ls' for testing
1734
1735 2000-12-27 Bernd Schmidt <bernds@redhat.com>
1736
1737 * sched-deps.c (get_condition, conditions_mutex_p): New functions.
1738 (add_dependence): Use them to avoid adding unnecessary dependencies
1739 between conditionally executed insns.
1740 (sched_analyze_1, sched_analyze_2, sched_analyze_insn): Don't free
1741 dependency lists if current insn is a COND_EXEC.
1742
1743 2000-12-27 Geoffrey Keating <geoffk@redhat.com>
1744
1745 * config/rs6000/rs6000.md (define_attr "length"): Correct
1746 calculation.
1747
1748 2000-12-26 Kazu Hirata <kazu@hxi.com>
1749
1750 * config/h8300/h8300.c: Fix a comment typo.
1751 (get_shift_alg): Fix a typo in the assembly code for 12-bit
1752 ASHIFTRT in HImode. Do not output extra whitespace after one line
1753 of assembly code. Output a tab after an opcode instead of a
1754 space.
1755 (emit_a_shift): Output a tab after an opcode instead of a space.
1756
1757 2000-12-23 Marek Michalkiewicz <marekm@linux.org.pl>
1758
1759 * config/avr/avr.c (out_movqi_r_mr, out_movhi_r_mr, out_movsi_r_mr,
1760 out_movsi_mr_r, out_movqi_mr_r, out_movhi_mr_r): Use %o instead of
1761 %4 in output templates, do not modify operands passed by the caller.
1762
1763 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1764
1765 * builtins.def (BUILT_IN_LABS, BUILT_IN_LLABS, BUILT_IN_IMAXABS):
1766 Don't define.
1767 * builtins.c (expand_builtin): Don't handle BUILT_IN_LABS,
1768 BUILT_IN_LLABS and BUILT_IN_IMAXABS.
1769 * c-common.c (c_common_nodes_and_builtins): Use BUILT_IN_ABS for
1770 builtin labs, llabs and imaxabs.
1771 (expand_tree_builtin): Don't handle BUILT_IN_LABS, BUILT_IN_LLABS
1772 and BUILT_IN_IMAXABS.
1773
1774 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
1775
1776 * c-common.c (builtin_function_2): New function.
1777 (c_common_nodes_and_builtins): Use it to define each pair (foo,
1778 __builtin_foo) of builtins in one place.
1779
1780 2000-12-22 Joseph S. Myers <jsm28@cam.ac.uk>
1781
1782 * gccbug.in: Add libgcj and preprocessor categories.
1783
1784 2000-12-22 Bernd Schmidt <bernds@redhat.com>
1785
1786 * config/ia64/ia64.c (itanium_reorder): Only schedule stops in
1787 the final scheduling pass.
1788
1789 2000-12-22 Nick Clifton <nickc@redhat.com>
1790
1791 * config/arm/arm.h (struct machine_function): Add new field
1792 'lr_save_eliminated'.
1793 * config/arm/arm.c (arm_compute_save_reg_mask): Do not include the
1794 link register if its save has been eliminated.
1795 (output_arm_prologue): Mention if the save of the link register
1796 has been eliminated.
1797 (output_arm_epilogue): Rename 'live_regs_mask' to
1798 'saved_regs_mask'.
1799 Test 'saved_regs_mask' for the link register, not regs_ever_live.
1800 (arm_expand_prologue): If the link register has not been saved set
1801 lr_save_eliminated and emit a USE to prevent later passes from
1802 scavenging it.
1803
1804 * dwarf2out_frame_debug_expr: Allow the (scratch) frame
1805 pointer to be initialised from the stack pointer plus a
1806 constant.
1807
1808 2000-12-22 Bernd Schmidt <bernds@redhat.com>
1809
1810 * regrename.c (struct du_chain): New field "earlyclobber".
1811 (enum scan_actions): Remove unused entry "note_reference".
1812 (enum scan_actions_name): Likewise.
1813 (note_sets, clear_dead_regs, merge_overlapping_regs): New static
1814 functions.
1815 (regrename_optimize): Use them to compute unavailable regs; get
1816 rid of the more simpleminded code we used to have here.
1817 Use a tick array to ensure registers are allocated in a more
1818 round-robin way. Disable code that only optimizes registers
1819 that were seen more than once.
1820 (referenced_regs): Remove variable.
1821 (scan_rtx_reg): New arg "earlyclobber". All callers changed.
1822 Store its value in newly generated du_chain structures.
1823 Add new du_chains at the end, not the start, of the list.
1824 Don't handle the "note_reference" action.
1825 (scan_rtx): New arg "earlyclobber". All callers changed.
1826 (build_def_use): Lose code to keep track of referenced regs.
1827
1828 2000-12-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1829
1830 * Makefile.in (sched-deps.o, sched-rgn.o): Fix dependency typo.
1831
1832 * fp-bit.h (usi_to_float): Add prototype.
1833
1834 * i386.c (ix86_expand_builtin): Delete unused label.
1835
1836 * dwarf2out.c (file_info_cmp): Prototype.
1837 (dwarf2out_line): Hide variable `old_in_use'.
1838
1839 * objc-act.c (objc_fatal): Delete.
1840
1841 * sched-vis.c (visualize_stall_cycles): Remove unused variable.
1842
1843 * system.h (getopt): Fix error in last change.
1844
1845 * varasm.c (assemble_trampoline_template): Constify.
1846
1847 2000-12-22 Jason Merrill <jason@redhat.com>
1848
1849 * collect2.c (main): Use auto_demangling.
1850
1851 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1852
1853 * function.c (assign_parms): Update parm's DECL_INCOMING_RTL
1854 when optimizing PARALLEL to REG.
1855
1856 2000-12-22 Graham Stott <grahams@redhat.com>
1857
1858 * reload.c (update_auto_inc_notes): New, broken out from ...
1859 (find_reloads_address_1): ... use here, also correct possible
1860 use of uninitialised reloadnum.
1861
1862 2000-12-21 David O'Brien <obrien@FreeBSD.org>
1863
1864 * config/freebsd.h (LIB_SPEC): remove -kthread option.
1865
1866 2000-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1867
1868 * resource.c (mark_set_resources): Use MARK_SRC_DEST for
1869 PRE_MODIFY and POST_MODIFY cases.
1870
1871 * rtlanal.c (side_effects_p): Handle PRE_MODIFY and POST_MODIFY.
1872
1873 2000-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1874
1875 * md.texi (Looping Patterns): New node.
1876
1877 2000-12-21 Joseph S. Myers <jsm28@cam.ac.uk>
1878
1879 * gcc.texi, cpp.texi: Update last-updated dates.
1880
1881 2000-12-21 Chandrakala Chavva <cchavva@redhat.com>
1882
1883 * varasm.c (output_addressed_constants): Use language specific
1884 expander on unknown nodes.
1885
1886 2000-12-21 Graham Stott <grahams@redhat.com>
1887
1888 * combine.c (distribute_notes): Handle REG_NON_LOCAL_GOTO notes.
1889
1890 2000-12-21 Bernd Schmidt <bernds@redhat.com>
1891
1892 * Makefile.in (out_object_file): Depend on sched-int.h.
1893 * rtl.h (single_set_1): New macro.
1894 (single_set_2): Renamed from single_set_1 and extra argument added.
1895 * rtlanal.c (single_set_2): Likewise.
1896
1897 * config/ia64/ia64-protos.h (get_bundle_name, ia64_issue_rate,
1898 ia64_adjust_cost, ia64_sched_init, ia64_sched_finish,
1899 ia64_sched_reorder, ia64_sched_reorder2, ia64_variable_issue):
1900 Declare.
1901 * config/ia64/ia64.c: Include "sched-int.h".
1902 (hard_regno_rename_ok): Also disallow renaming from the various
1903 reg_save_* regs.
1904 (ia64_safe_itanium_requiers_unit0, ia64_safe_itanium_class,
1905 ia64_safe_type, init_insn_group_barriers, group_barrier_needed_p,
1906 safe_group_barrier_needed_p, fixup_errata): New static functions.
1907 (rtx_needs_barrier): Handle bundle selector and cycle display
1908 insns.
1909 (emit_insn_group_barriers): Accept additional FILE * arg. All
1910 callers changed. Rework to only generate stop bits between
1911 basic blocks that haven't been inserted by scheduling.
1912 (struct bundle, struct ia64_packet): New structures.
1913 (NR_BUNDLES, NR_PACKETS): New macros.
1914 (bundle, packets, type_names): New static arrays.
1915 (ia64_final_schedule): New variable.
1916 (ia64_single_set, insn_matches_slot, ia64_emit_insn_before,
1917 gen_nop_type, finish_last_head, rotate_one_bundle, rotate_two_bundles,
1918 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
1919 find_best_packet, itanium_reorder, dump_current_packet, schedule_stop):
1920 New static functions.
1921 (ia64_issue_rate, ia64_sched_init, ia64_sched_reorder,
1922 ia64_sched_finish, ia64_sched_reorder2, ia64_variable_issue): New
1923 functions.
1924 (ia64_reorg): Perform a final scheduling pass.
1925 * config/ia64/ia64.h (CONST_COSTS): Slightly increase SYMBOL_REF costs.
1926 (MAX_CONDITIONAL_EXECUTE, ADJUST_COST, ISSUE_RATE, MD_SCHED_INIT,
1927 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_FINISH,
1928 MD_SCHED_VARIABLE_ISSUE): Define macros.
1929 (ia64_final_schedule): Declare variable.
1930 * config/ia64/ia64.md (attr itanium_class): Add some more classes.
1931 (attr type): Account for them.
1932 (itanium_requires_unit0): New attribute.
1933 (function units): Rewrite.
1934 (some splitters): Don't create scheduling barriers here.
1935 (gr_spill_internal, gr_restore_internal): Don't predicate the
1936 pseudo-op.
1937 (nop_m, nop_i, nop_f, nop_b, nop_x, cycle_display, cycle_display_1,
1938 bundle_selector): New patterns.
1939 (insn_group_barrier): Now has an operand.
1940
1941 2000-12-21 DJ Delorie <dj@redhat.com>
1942
1943 * dwarf2out.c (simple_decl_align_in_bits): new
1944 (field_byte_offset): Try both the type align and the
1945 decl align, use whichever works, preferring the type align.
1946
1947 2000-12-21 Joseph S. Myers <jsm28@cam.ac.uk>
1948
1949 * gccbug.in: Fix typo.
1950
1951 2000-12-20 Benjamin Kosnik <bkoz@redhat.com>
1952
1953 * Makefile.in (gcc_gxx_target_include_dir): Use instead of
1954 build_tooldir and libstdcxx_incdir.
1955
1956 2000-12-20 Robert Lipe <robertlipe@usa.net>
1957
1958 * haifa-sched.c (schedule_block): Provide empty source statement
1959 if not MD_SCHED_REORDER2.
1960
1961 2000-12-20 Richard Henderson <rth@redhat.com>
1962
1963 * rtl.h (REG_NON_LOCAL_GOTO): New.
1964 * rtl.c (reg_note_name): Update.
1965 * stmt.c (expand_goto): Emit a REG_NON_LOCAL_GOTO note.
1966 * builtins.c (expand_builtin_longjmp): Likewise.
1967 * flow.c (make_edges): Check for REG_NON_LOCAL_GOTO and do
1968 not emit an edge.
1969
1970 2000-12-20 Marek Michalkiewicz <marekm@linux.org.pl>
1971
1972 * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r, out_movhi_mr_r):
1973 Do not output undefined opcodes where source or destination register
1974 overlaps with modified pointer register. Handle (X + d) addresses.
1975 * config/avr/avr.md (*movhi, *movsi, *movsf): Correct insn length
1976 in alternatives with memory operand.
1977
1978 2000-12-20 Richard Henderson <rth@redhat.com>
1979
1980 * c-typeck.c (build_asm_stmt): New, broken out from ...
1981 (c_expand_asm_operands): ... here. Just do rtl expansion.
1982 (c_expand_return): Return the new stmt node.
1983 (c_start_case, do_case): Likewise.
1984 * c-common.c (c_expand_expr_stmt): Likewise.
1985 * c-common.h: Update declarations.
1986 * c-tree.h: Likewise.
1987 * c-semantics.c (build_stmt): Use STMT_LINENO not TREE_COMPLEXITY.
1988 * c-parse.in (fndef): Set DECL_SOURCE_LINE to the open brace.
1989 (nested_function, notype_nested_function): Likewise.
1990 (compstmt): Return the compound statement not the binding level.
1991 (lineno_labeled_stmt): Simplify.
1992 (lineno_stmt, lineno_label): Set STMT_LINENO.
1993 (stmt, label): Return the new stmt node.
1994
1995 2000-12-20 Bernd Schmidt <bernds@redhat.com>
1996
1997 * Makefile.in (OBJS): Add sched-ebb.o.
1998 (sched-ebb.o): New rule.
1999 (sched-vis.o): Depend on hard-reg-set.h and $(BASIC_BLOCK_H).
2000 (haifa-sched.o): Depend on insn-flags.h.
2001 * haifa-sched.c: Include "insn-flags.h".
2002 (priority): Don't access BLOCK_NUM, use the new contributes_to_priority
2003 callback.
2004 * rtl.h (schedule_ebbs): Declare.
2005 * sched-int.h (struct sched_info): Add new members
2006 contributes_to_priority and compute_jump_reg_dependencies.
2007 * sched-rgn.c (contributes_to_priority, compute_jump_reg_dependencies):
2008 New functions.
2009 (region_sched_info): Add them.
2010 * sched-vis.c: Include "hard-reg-set.h" and "basic-block.h".
2011 * sched-ebb.c: New file.
2012 * sched-deps.c (sched_analyze_insn): Add code to handle JUMP_INSNs.
2013
2014 * flow.c (ior_reg_cond, and_reg_cond, elim_reg_cond): Properly
2015 handle all relational operators.
2016
2017 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
2018
2019 * final.c (output_addr_const): Use ASM_OUTPUT_SYMBOL_REF.
2020 * tm.texi: Document it.
2021
2022 2000-12-19 Benjamin Kosnik <bkoz@redhat.com>
2023
2024 * Makefile.in (-DGPLUSPLUS_TOOL_INCLUDE_DIR): Use build_tooldir
2025 instead of gcc_tooldir.
2026
2027 2000-12-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
2028
2029 * system.h (getopt): Update prototype to match include/getopt.h.
2030
2031 2000-12-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
2032
2033 From Jeff Law.
2034 * pa.c (basereg_operand): Simplify.
2035
2036 2000-12-19 Bernd Schmidt <bernds@redhat.co.uk>
2037
2038 * haifa-sched.c (rm_line_notes): Arguments are now head and tail,
2039 not block number. All callers and prototype changed.
2040 (set_priorities): Likewise.
2041 (save_line_notes): Add head and tail arguments; all callers and
2042 prototype changed.
2043 (restore_line_notes): Likewise. Don't crash on insns generated
2044 during scheduling.
2045 (schedule_block): Don't use BLOCK_HEAD/BLOCK_END macros.
2046 Call MD_SCHED_INIT with additional argument.
2047 When starting a new cycle, emit cycle_display insns if available.
2048 Don't stop scheduling when encountering a JUMP_INSN, but add another
2049 call to schedule_more_p in the inner loop.
2050 Call MD_SCHED_REORDER2 after scheduling an insn.
2051 Call MD_SCHED_FINISH once all insns are scheduled.
2052 (sched_init): Compensate for the fact that get_block_head_tail
2053 doesn't include leading notes.
2054 * sched-deps.c (free_deps): Free vectors here.
2055 * sched-rgn.c (compute_block_backward_dependencies): Not here.
2056 (last_was_jump): New static variable.
2057 (schedule_more_p): Test it.
2058 (init_ready_list): Initialize it.
2059 (can_schedule_ready_p): Set it if we have a JUMP_INSN.
2060
2061 * config/i386/i386.h (MD_SCHED_INIT): Add new arg.
2062 * config/m32r/m32r.h (MD_SCHED_INIT): Add new arg.
2063 * config/sparc/sparc.h (MD_SCHED_INIT): Add new arg.
2064
2065 * md.texi (cycle_display): Document.
2066 * tm.texi (MD_SCHED_INIT): Document new arg.
2067 (MD_SCHED_FINISH, MD_SCHED_REORDER2): Document.
2068
2069 * flow.c (ior_reg_cond, nand_reg_cond, not_reg_cond): Rewrite
2070 to use different representation. All callers changed.
2071 (and_reg_cond): Renamed from nand_reg_cond; caller changed.
2072 (init_propagate_block_info): Don't test flags to determine
2073 whether to compute conditional lifetimes.
2074 Adjust code for new representation of conditional lifetimes.
2075 (mark_regno_cond_dead): Similar adjustment.
2076 (free_reg_cond_life_info): Similar adjustment.
2077 (elim_reg_cond): New function.
2078 (flush_reg_cond_1): Use it.
2079
2080 2000-12-19 Catherine Moore <clm@redhat.com>
2081
2082 * reload1.c (reload_combine): Take multi-hard-regs into account
2083 when processing CALL_INSN_FUNCTION_USAGE.
2084
2085 2000-12-19 Joseph S. Myers <jsm28@cam.ac.uk>
2086
2087 * invoke.texi (-print-search-dirs): Make references to cpp refer
2088 to cpp0 instead.
2089
2090 2000-12-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2091
2092 * fold-const.c (tree_expr_nonnegative_p): Treat truth values as
2093 non-negative.
2094
2095 Tue Dec 19 00:37:08 2000 J"orn Rennecke <amylaar@redhat.com>
2096
2097 * reload.c (push_reload): When using a dying register for the reload
2098 register in an in-out reload, use outmode if wider than inmode.
2099
2100 2000-12-19 Joseph S. Myers <jsm28@cam.ac.uk>
2101
2102 * config/d30v/d30v.h (EXIT_BODY): Update comment.
2103
2104 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2105
2106 * config.gcc (*-*-linux*): Don't define HAVE_ATEXIT or BSTRING.
2107 * tm.texi (EXIT_BODY): Update documentation.
2108 * config/freebsd.h, config/netware.h, config/arm/coff.h,
2109 config/arm/conix-elf.h, config/arm/unknown-elf.h,
2110 config/d30v/d30v.h, config/mcore/mcore.h, config/pj/pj.h,
2111 sparc/sp86x-aout.h: Remove definitions of HAVE_ATEXIT (some
2112 commented out) and associated comments.
2113
2114 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2115
2116 * c-common.c (STD_C9L, ADJ_STD): Define.
2117 (printf_length_specs, scanf_length_specs): Mark "ll" as standard
2118 STD_C9L.
2119 (T99_LL): Rename to T9L_LL.
2120 (T99_ULL): Rename to T9L_ULL.
2121 (print_char_table, scan_char_table): Use T9L_LL and T9L_ULL
2122 instead of T99_LL and T99_ULL.
2123 (check_format_info_main): Use ADJ_STD on all format standard
2124 versions being compared.
2125 * c-common.h: Declare warn_long_long.
2126 * c-tree.h: Don't declare warn_long_long.
2127
2128 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
2129
2130 * COPYING: Update to current
2131 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2132 to 19yy as example year in copyright notice).
2133
2134 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
2135
2136 * c-lex.c (cb_file_change): Treat in_system_header as strictly
2137 boolean (0 or 1).
2138
2139 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
2140
2141 * cppmain.c: Update print.lineno with -P.
2142
2143 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
2144
2145 * c-lex.c: s/change_file/file_change.
2146 * cpplib.h: Similarly.
2147 * cppmain.c: Similarly.
2148 * fix-header.c: Similarly.
2149 * cppfiles.c (stack_include_file): Pass the buffer location and
2150 size to cpp_push_buffer. Generate the file_change callback,
2151 so that sysp is already set.
2152 * cpphash.h: Add _cpp_do_file_change.
2153 * cpplib.c (do_line): Set buffer->sysp directly. Generate the
2154 file_change callback after setting sysp.
2155 (_cpp_do_file_change): Handle FC_ENTER and the FC_RENAME exception
2156 here.
2157 (cpp_push_buffer): Don't generate a callback. Clear sysp.
2158 (cpp_pop_buffer): Clean up logic.
2159
2160 2000-12-18 Benjamin Kosnik <bkoz@redhat.com>
2161
2162 * configure.in (gcc_gxx_include_dir): Simplify.
2163 (libstdcxx_incdir): Export.
2164 * configure: Regenerate.
2165 * Makefile.in (PREPROCESSOR_DEFINES): Add in
2166 GPLUSPLUS_TOOL_INCLUDE_DIR bits here..
2167 (libstdcxx_incdir): Add.
2168 * cppdefault.c (GPLUSPLUS_TOOL_INCLUDE_DIR): Add search path.
2169
2170 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
2171
2172 * c-lex.c (lex_lineno): Remove.
2173 (init_c_lex, c_lex): Remove lex_lineno.
2174 (cb_change_file): Update lineno correctly, both before calling
2175 push_srcloc and before leaving the function.
2176 (cb_def_pragma): Set lineno before outputting diagnostics.
2177
2178 Sun Dec 17 18:45:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2179
2180 * print-tree.c (print_node): Print DECL_USER_ALIGN and TYPE_USER_ALIGN.
2181 Print TYPE_MIN_VALUE and TYPE_MAX_VALUE for REAL_TYPE.
2182 Use print_node_brief to print bounds.
2183
2184 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
2185
2186 * cpplib.h (struct cpp_reader): Remove references to string_pool
2187 and temp_string_pool.
2188 * cppinit.c (cpp_create_reader, cpp_cleanup): Similarly; using
2189 ident_pool in place.
2190 * cpplex.c (parse_number, unescaped_terminator_p, parse_string,
2191 save_comment, cpp_token_as_text): Similarly.
2192 * cpplib.c (do_define, glue_header_name, parse_assertion): Similarly.
2193 * cppmacro.c (make_number_token, builtin_macro, lock_pools,
2194 unlock_pools, stringify_arg, paste_tokens): Similarly.
2195
2196 Sun Dec 17 12:41:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2197
2198 * dwarf2out.c (loc_descriptor_from_tree, case NOP_EXPR): New case.
2199 (loc_descriptor_from_tree, case CONVERT_EXPR): Likewise.
2200 (loc_descriptor_from_tree, case NON_LVALUE_EXPR): Likewise.
2201
2202 2000-12-17 Richard Earnshaw <rearnsha@arm.com>
2203
2204 * Makefile.in (check-po): Use $(MAKE).
2205 (risky-stage1, risky-stage2, risky-stage3, risky-stage4): Likewise.
2206
2207 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
2208
2209 * cppmain.c (check_multiline_token): New function.
2210 (scan_buffer): Use it.
2211 (cb_change_file): Restructure to avoid warning.
2212 * cpperror.c (print_location): Initialize col.
2213
2214 2000-12-14 Philipp Thomas <pthomas@suse.de>
2215
2216 * protoize.c (main): Correctly set locale categories.
2217 * gcc.c (main): Likewise.
2218 * cppmain.c (general_init): Likewise.
2219 * toplev.c (main): Likewise.
2220 * gcov.c (main): Likewise.
2221 * collect2.c (main): Likewise.
2222
2223 2000-12-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2224
2225 * c-common.c (c_common_nodes_and_builtins): Create a
2226 cstring_endlink, use it. Rename int_ftype_string_string to
2227 int_ftype_cstring_cstring, string_ftype_string_int to
2228 string_ftype_cstring_int, and string_ftype_string_string to
2229 string_ftype_cstring_cstring. Prefer sizetype_endlink and
2230 int_endlink to manually recreating them. Fix the prototype
2231 set for __builtin_strspn/__builtin_strcspn.
2232
2233 2000-12-12 Marek Michalkiewicz <marekm@linux.org.pl>
2234
2235 * config/avr/avr.c (out_set_stack_ptr): Update comment.
2236 (print_operand): Add support for %~ and %o.
2237
2238 2000-12-17 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2239
2240 * c4x.h: Add ASM_OUTPUT_DEF definition for bounded pointer code.
2241
2242 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
2243
2244 * c-lex.c: Move main_input_filename handling to FC_ENTER. Clean up.
2245 * cpperror.c (print_containing_files): Get right line number.
2246 (print_location): Output column of 1 if 0.
2247 * cppfiles.c (stack_include_file): cpp_push_buffer handles
2248 the callback.
2249 * cpphash.h (_cpp_do_file_change): No longer external.
2250 * cpplib.c (do_file_change): Now local to cpplib.c.
2251 (do_line): Fake a buffer stack for preprocessed files.
2252 (cpp_push_buffer): Create a file_change callback. Handle faked
2253 buffers.
2254 (cpp_pop_buffer): Similarly.
2255 * cpplib.h: BUF_FAKE: New buffer type.
2256 * cppmain.c: Update to handle correct file renaming where a
2257 #line is the first line of the main file, and produce only
2258 the renamed file, not the original file, as output.
2259
2260 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2261
2262 * config/c4x/c4x.md: Remove redundant @s from output patterns.
2263
2264 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2265 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2266
2267 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Call c4x_init_pragma.
2268
2269 * config/c4x/c4x-protos.h (c4x_init_pragma): New prototype.
2270
2271 * config/c4x/c4x.c (c4x_init_pragma): New function.
2272 (c_lex_func): New variable.
2273 (c4x_parse_pragma): Use c_lex_func.
2274
2275 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2276 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2277
2278 * config/c4x/c4x.h (MD_INIT_BUILTINS): Add void_list_node argument
2279 to c4x_init_builtins.
2280
2281 * config/c4x/c4x-protos.h (c4x_init_builtins): Add tree argument.
2282
2283 * config/c4x/c4x.c (c4x_init_builtins): Add tree argument.
2284 (c4x_output_ascii): Fix.
2285
2286 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2287 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2288
2289 * config/c4x/c4x.h (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Define.
2290
2291 * config/c4x/c4x-protos.h (c4x_init_builtins): New prototype.
2292 (c4x_expand_builtin): Likewise.
2293
2294 * config/c4x/c4x.c (c4x_init_builtins): New function.
2295 (c4x_expand_builtin): Likewise.
2296
2297 * config/c4x/c4x.md (floatunsqihf2): New pattern.
2298 (*floatqihf2_set, *fixhfqi_set, fix_trunchfqi2): Likewise.
2299 (fixuns_trunchfqi2, toieee, frieee, *ldhf_conditional): Likewise.
2300 (*ldhf_conditional_noov, movhfcc, trap, cond_trap_cc): Likewise.
2301 (*toieee_movqf_clobber, *frieee_movqf_clobber): Likewise.
2302
2303 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2304
2305 * libgcc2.h: Use Wtype for SItype and DWtype for DItype in prototypes.
2306 * libgcc2.c (__absvsi2): Use Wtype and DWtype.
2307 (__absvdi2, __addvsi3, __addvdi3, __subvsi3): Likewise.
2308 (__subvdi3, __mulvsi3, __mulvdi3, __negvsi2, __negvdi2): Likewise.
2309
2310 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
2311
2312 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Enclose the block
2313 statement in do/while(0).
2314
2315 Sat Dec 16 19:56:24 MET 2000 Jan Hubicka <jh@suse.cz>
2316
2317 * i386.md (ashrsi3_cmpno, ashrhi3_cmpno, ashrqi3_cmpno, lshrsi3_cmpno,
2318 lshrhi3_cmpno): Remove redundant '@' from the template.
2319
2320 * i386.md (cmpstrsi_1): Fix type of the compare.
2321
2322 * genattrtab.c (attr_rtx_cost): New function.
2323 (simplify_test_exp): Avoid overactive inlining; use temporary
2324 obstacks for tests.
2325
2326 Sat Dec 16 10:41:11 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2327
2328 * diagnostic.c (finish_abort): Deleted.
2329 (fatal): Add code from finish_abort.
2330 (error_recursion, fancy_abort): Call fatal, not finish_abort.
2331 (trim_filename): Remove leading "../".
2332 * diagnostic.h (finish_abort): Deleted.
2333 * toplev.c (crash_signal): Call fatal, not finish_abort.
2334
2335 * stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT
2336 as if size were variable.
2337
2338 * expmed.c (expand_mult): Write REG_EQUAL note with proper mode.
2339
2340 2000-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
2341
2342 * tradcpp.c: T_WARNING: New.
2343 (do_warning): New function.
2344 (finclude): Skip past the newline and increase the line number
2345 before calling output_line_command.
2346 (do_line): Skip the new line after output_line_command. Don't
2347 pre-decrement the line number.
2348
2349 2000-12-15 Diego Novillo <dnovillo@redhat.com>
2350
2351 * i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix references to
2352 _GLOBAL_OFFSET_TABLE_ when using Intel syntax.
2353
2354 2000-12-15 Jakub Jelinek <jakub@redhat.com>
2355
2356 * gcc.c (cpp_options): Pass -fno-operator-names.
2357 * cpplib.h (struct cpp_options): Add operator_names.
2358 * cppinit.c (cpp_create_reader): Initialize it.
2359 (initialize_builtins): If -fno-operator-names, don't add
2360 C++ alternate operator names.
2361 (COMMAND_LINE_OPTIONS): Add -fno-operator-names.
2362 (cpp_handle_option): Clear operator_names.
2363
2364 2000-12-15 Jason Merrill <jason@redhat.com>
2365
2366 * jump.c (jump_optimize_1): Don't delete the line note after the
2367 prologue even if it seems redundant.
2368
2369 * config/arm/arm.c (arm_expand_prologue): Set RTX_FRAME_RELATED_P
2370 on all insns used to adjust the stack.
2371
2372 Fri Dec 15 15:32:16 MET 2000 Jan Hubicka <jh@suse.cz>
2373
2374 * combine.c (cant_combine_insn_p): Get around SUBREGs when determining
2375 hardreg<->reg moves.
2376
2377 Fri Dec 15 14:48:37 MET 2000 Jan Hubicka <jh@suse.cz>
2378
2379 * genrecog.c (add_to_sequence): Remove special case for
2380 const_int_operand.
2381 (maybe_both_true): Return 1 when falling out of sequence when
2382 trying to find common possition in the pattern.
2383
2384 Fri Dec 15 14:44:51 MET 2000 Jan Hubicka <jh@suse.cz>
2385
2386 * integrate.c (copy_rtx_and_substitute): Copy mode too.
2387
2388 Fri Dec 15 14:11:57 MET 2000 Jan Hubicka <jh@suse.cz>
2389
2390 * flow.c (notice_stack_pointer_modification_1): Cleanup.
2391
2392 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
2393
2394 * function.c (adjust_trampoline_addr): New function.
2395 (trampoline_address): Call it instead of round_trampoline_addr().
2396 * tm.texi (TRAMPOLINE_ADJUST_ADDRESS): Document it.
2397
2398 2000-12-14 Zack Weinberg <zack@wolery.stanford.edu>
2399
2400 * cppfiles.c (hack_vms_include_specification): Delete function
2401 (not used since 1998).
2402
2403 Fri Dec 15 03:37:51 2000 J"orn Rennecke <amylaar@redhat.com>
2404
2405 * haifa-sched.c (sched_init): Don't put a note in front of any BARRIER.
2406
2407 2000-12-14 Jim Wilson <wilson@redhat.com>
2408
2409 * alias.c (get_alias_set): Call record_component_aliases for
2410 COMPLEX_TYPE.
2411 (record_component_aliases): Handle COMPLEX_TYPE.
2412
2413 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2414
2415 * fixinc/gnu-regex.c: Disable NLS.
2416
2417 2000-12-14 Richard Henderson <rth@redhat.com>
2418
2419 * config/alpha/alpha.c (alpha_emit_conditional_move): Do not swap
2420 comparison operands when that would create non-canonical rtl.
2421
2422 * config/i386/i386.md (umulsi3_highpart): Remove * from name.
2423 (smulsi3_highpart): Likewise.
2424
2425 2000-12-14 Neil Booth <neil@daikokuya.demon.co.uk>
2426
2427 * gcc.c (cpp_options): Add -remap.
2428
2429 2000-12-14 Neil Booth <neil@daikokuya.demon.co.uk>
2430
2431 * gcc.c (cpp_options): Update to use '&'.
2432 (struct switchstr): Change type of validated to save space.
2433 New member 'ordering'.
2434 (handle_braces, validate_switches): Update to handle '&'.
2435
2436 2000-12-13 Laurynas Biveinis <lauras@softhome.net>
2437
2438 * fixinc/inclhack.def: skip stdio_va_list fix if __DJ_va_list
2439 found in a header.
2440 * fixinc/fixincl.x: regenerated.
2441
2442 2000-12-13 DJ Delorie <dj@redhat.com>
2443
2444 * config.gcc (cygwin, win32, mingw32): Use float-i386.h.
2445
2446 2000-12-13 Tom Tromey <tromey@redhat.com>
2447
2448 * gcc.c (handle_braces): Handle %{<S*} spec correctly.
2449
2450 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
2451
2452 * function.c (assign_parms): Optimize incoming PARALLELs into
2453 REGs if possible.
2454
2455 2000-12-13 Bruce Korb <bkorb@gnu.org>
2456
2457 * fixinc/Makefile.in(*): substantial rewrite to accommodate systems
2458 that cannot handle bi-directional pipes, viz. BeOS and DOS.
2459 * fixinc/fixlib.h(IGNORE_ARG): new macro
2460 (STATIC): define for all of fixinc to use
2461 * fixinc/fixfixes.c(*): eliminate unused arg warnings
2462 * fixinc/fixtests.c(*): ditto
2463 * fixinc/fixincl.c(start_fixer): chain_open now uses const arg list
2464 * fixinc/gnu-regex.c: reorder some includes to avoid _GNU_SOURCE
2465 warning. Also, eliminate the ``#ifdef emacs'' stuff.
2466 (re_syntax_options): make global as it is declared so.
2467 * fixinc/mkfixinc.sh: process the argument list more consistently
2468 (beos/msdosdjgpp): set TARGETS to twoprocess vs. oneprocess
2469 * fixinc/procopen.c(globals): include "fixlib.h" for std defs
2470 * fixinc/server.c(globals): ditto
2471 * fixinc/server.h(defines): ditto
2472
2473 2000-12-13 Neil Booth <neil@daikokuya.demon.co.uk>
2474
2475 * tradcpp.c (special_symbol): Improve test for definedness,
2476 though it is still not perfect.
2477 (do_define): Don't define illegal macro names.
2478
2479 2000-12-07 Aldy Hernandez <aldyh@redhat.com>
2480
2481 * config/mips/elf.h (ASM_OUTPUT_SECTION_NAME): emit @nobits
2482 if changing into .bss section.
2483 * config/mips/elf64.h: same.
2484 * config/mips/iris6.h: same.
2485 * config/mips/netbsd.h: same.
2486 * config/mips/openbsd.h: same.
2487
2488 2000-12-13 Neil Booth <neil@daikokuya.demon.co.uk>
2489
2490 * cppfiles.c (read_name_map): Return null if open () fails.
2491 (remap_filename): Simplify logic. Add ICE if it doesn't work
2492 as expected. Perform secondary lookup attempt on base filename
2493 only.
2494
2495 Wed Dec 13 19:48:04 MET 2000 Jan hubicka <jh@suse.cz>
2496
2497 * flow.c (notice_stack_pointer_modification_1): Notice midifications
2498 using PRE_MODIFY and POST_MODIFY.
2499
2500 Wed Dec 13 17:25:32 MET 2000 Jan Hubicka <jh@suse.cz>
2501
2502 * genoutput.c (process_template): Add sanity checking for '@' templates.
2503
2504 2000-12-13 Bernd Schmidt <bernds@redhat.co.uk>
2505
2506 * simplify-rtx.c (cselib_finish): Free reg_values and used_regs
2507 varrays.
2508
2509 2000-12-12 Mike Stump <mrs@wrs.com>
2510
2511 * Makefile.in (distclean): Remove safe-ctype.c as well.
2512
2513 2000-12-12 Brad Lucier <lucier@math.purdue.edu>
2514
2515 * tradcpp.c (do_error): Cast difference of pointers to int
2516 for error message.
2517
2518 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2519
2520 * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here...
2521 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): ...to here.
2522
2523 2000-12-12 Jim Wilson <wilson@redhat.com>
2524
2525 * rtlanal.c (may_trap_p): Check operand modes of LE, LT, GE, and GT.
2526
2527 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
2528
2529 * configure.in: Simplify language enabling/disabling code.
2530 * configure: Rebuilt.
2531 * ch/config-lang.in (target_libs): Set.
2532 (build_by_default): Set to no.
2533 * cp/config-lang.in (target_libs): Set.
2534 * f/config-lang.in (target_libs): Set.
2535 * java/config-lang.in (target_libs): Set.
2536 * objc/config-lang.in (target_libs): Set.
2537
2538 2000-12-12 Neil Booth <neil@daikokuya.demon.co.uk>
2539
2540 * tradcpp.c (enum node_type): Add T_ERROR.
2541 (do_error): New function.
2542 (directive_table): Add #error handler.
2543
2544 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2545
2546 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Enable .file/.loc check
2547 for powerpc*-*-*.
2548 * configure: Regenerated.
2549 * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2550 * config/rs6000/rs6000.c (rs6000_unique_section): Use
2551 STRIP_NAME_ENCODING.
2552
2553 Mon Dec 11 13:51:09 2000 Jeffrey A Law (law@cygnus.com)
2554
2555 * pa.c (cmpib_comparison_operator): Remove GEU and LTU.
2556 * pa.h (PREDICATE_CODES, cmpib_comparison_operator): Corresponding
2557 changes.
2558
2559 2000-12-11 Bruce Korb <bkorb@gnu.org>
2560
2561 * fixinc/fixincl.tpl: initialize all fields for warnings
2562 * fixinc/fixincl.x: regenerate
2563
2564 2000-12-11 Neil Booth <neilb@earthling.net>
2565
2566 * tradcpp.h: For tradcpp, NUL is not whitespace.
2567
2568 2000-12-11 Neil Booth <neilb@earthling.net>
2569
2570 * fix-header.c (read_scan_file): Macro expansion is not a file buffer.
2571
2572 2000-12-05 Marek Michalkiewicz <marekm@linux.org.pl>
2573
2574 * config/avr/avr.c (compare_condition, compare_sign_p): New functions.
2575 (compare_diff_p, compare_eq_p): Call compare_condition.
2576 (out_tsthi, out_tstsi): Call compare_sign_p.
2577 (avr_progmem_p): Check for error_mark_node.
2578
2579 2000-12-11 Neil Booth <neilb@earthling.net>
2580
2581 * cpperror.c (print_location): New function.
2582 (print_containing_files): Simplify.
2583 (_cpp_begin_message): Simplify and use print_location.
2584 * cppfiles.c (stack_include_file): Update.
2585 (_cpp_pop_file_buffer): Update.
2586 * cpphash.h (struct cpp_buffer): New members
2587 include_stack_listed and type.
2588 * cpplib.c (_cpp_handle_directive): Buffer->inc is not null.
2589 (run_directive): Take buffer type. cpp_push_buffer cannot fail.
2590 (_cpp_do__Pragma, cpp_define, _cpp_define_builtin, cpp_undef,
2591 handle_assertion): Update.
2592 (cpp_push_buffer): Take a buffer type and file name.
2593 (cpp_pop_buffer): Update. Clear include_stack_listed.
2594 * cpplib.h (input_stack_listing_current): Remove.
2595 (enum cpp_buffer_type): New.
2596 (cpp_push_buffer): New prototype.
2597 * cppmacro.c (builtin_macro): Simplify; buffer cannot be null.
2598 * fix-header.c (read_scan_file): Update.
2599
2600 2000-12-10 Robert Lipe <robertlipe@usa.net>
2601
2602 * install.texi (i*86-*-sco3.2v5*): Remove information duplicated
2603 in html version.
2604
2605 2000-12-10 Richard Henderson <rth@redhat.com>
2606
2607 * genrecog.c (find_operand): Handle 'V' format code.
2608 (find_matching_operand): New.
2609 (validate_pattern): Accept '=' for an in-out operand if there
2610 is another operand with a matching constraint.
2611
2612 * config/i386/i386.md (andqi_ext_0_cc): Use matching constraint
2613 for op1 to op0.
2614
2615 2000-12-10 Richard Henderson <rth@redhat.com>
2616
2617 * genrecog.c (validate_pattern) [STRICT_LOW_PART]: Fix thinko.
2618
2619 2000-12-09 Richard Henderson <rth@redhat.com>
2620
2621 * genrecog.c (validate_pattern): Verify that ZERO_EXTRACT and
2622 STRICT_LOW_PART as SET_DEST have in-out constraints.
2623
2624 2000-12-09 Joseph S. Myers <jsm28@cam.ac.uk>
2625
2626 * c-common.c (check_function_format): Don't suggest adding format
2627 attributes to functions with no parameter to which to add them.
2628
2629 2000-12-09 Nick Clifton <nickc@redhat.com>
2630
2631 * config/arm/arm.c (arm_expand_prologue): Mark the generated
2632 insn not the set as being DWARF2_FRAME_RELATED_P.
2633
2634 2000-12-09 Laurynas Biveinis <lauras@softhome.net>
2635
2636 * Makefile.in: use $(build_exeext) for all build
2637 system executable targets.
2638
2639 2000-12-09 Laurynas Biveinis <lauras@softhome.net>
2640
2641 * install.texi: remove i[345]86-*-winnt3.5 section.
2642 * configur.bat: removed.
2643 * config/msdos: directory removed.
2644
2645 2000-12-09 Neil Booth <neilb@earthling.net>
2646
2647 * cppfiles.c (NEVER_REREAD, DO_NOT_REREAD): Move from cpphash.h.
2648 * cpphash.h (NEVER_REREAD, DO_NOT_REREAD, ABSOLUTE_PATH): Delete.
2649 * cpplex.c (parse_identifier): Improve diagnostic.
2650 (_cpp_lex_token): Return unconditionally at the end of a directive.
2651 * cpplib.c (read_flag): Verify legality of each flag.
2652 (end_directive): Resotre pfile->skipping before skip_rest_of_line.
2653 (do_line): Use the new read_flag.
2654 * cppmacro.c (struct cpp_macro, parse_arg, replace_args,
2655 check_macro_redefinition, parse_params): Rename var_args to
2656 variadic.
2657
2658 2000-12-09 Joseph S. Myers <jsm28@cam.ac.uk>
2659
2660 * .cvsignore: Add info files.
2661
2662 2000-12-08 Laurynas Biveinis <lauras@softhome.net>
2663
2664 * config/winnt: Remove obsolete directory.
2665 * install.texi (Configurations): Remove obsolete documentation for
2666 Windows NT.
2667
2668 2000-12-08 Joseph S. Myers <jsm28@cam.ac.uk>
2669
2670 * configure.in: Don't define INSTALL_INFO.
2671 * configure: Regenerate.
2672 * Makefile.in (INSTALL_INFO): Remove.
2673 (info): Depend on info files in source directory.
2674 (cpp.info, gcc.info, c-tree.info): Build info files in source
2675 directory.
2676 (distclean): Don't remove info files.
2677 (maintainer-clean): Remove info files from source directory.
2678 (install-normal): Depend on install-info.
2679 (install-info): Install info files from source directory, if they
2680 exist.
2681 * texinfo.tex: Update to version 2000-11-09.08 from ftp.gnu.org.
2682
2683 2000-12-08 Alexandre Oliva <aoliva@redhat.com>
2684
2685 * lcm.c (optimize_mode_switching): Check whether an insn is a NOTE
2686 before taking its NOTE_LINE_NUMBER.
2687
2688 2000-12-08 Nick Clifton <nickc@redhat.com>
2689
2690 * config/arm/arm.md (load_indirect_jump): Add pool ranges.
2691
2692 * extend.texi: Document ARM "interrupt" function attribute.
2693 Mention that the ARM also support the "naked" function
2694 attribute.
2695
2696 * config/arm/arm-protos.h (arm_current_func_type): Add
2697 prototype.
2698
2699 * config/arm/arm.h (EXCEPTION_LR_REGNUM): Define.
2700 (struct machine_function): Add 'func_type' field.
2701 Define bit values for 'func_type' field.
2702 (ARM_FUNC_TYPE): New macro.
2703 (IS_INTERRUPT): New macro.
2704 (IS_VOLATILE): New macro.
2705 (IS_NAKED): New macro.
2706 (IS_NESTED): New macro.
2707 (ARM_INITIAL_ELIMINATION_OFFSET): Use IS_VOLATILE.
2708
2709 * config/arm/arm.c (isr_attribute_args): New Structure. A
2710 list of "interrupt" function attribute modifiers.
2711 (arm_isr_value): New Function: Returns the type of the current
2712 interrupt function.
2713 (arm_compute_func_type): New Function: Computes the type of
2714 the current function.
2715 (arm_current_func_type): New Function: Returns the type of the
2716 current function.
2717 (use_return_insn): Use arm_current_func_type.
2718 (arm_valid_type_attribute_p): Accept "interrupt" function
2719 attribute.
2720 (arm_comp_type_attributes): Check "interrupt" attributes.
2721 (arm_valid_machine_decl): Accept "interrupt" function
2722 attribute.
2723 (arm_function_ok_for_sibcall): Do not allow interrupt
2724 functions to use sibcalls.
2725 (arm_naked_function_p): Delete.
2726 (print_multi_reg): Remove redundant parameter 'hat'.
2727 (arm_compute_save_reg_mask): New Function: Compute a bit mask
2728 of registers saved during the current function's prologue.
2729 (output_arm_return_instruction): Use arm_current_func_type.
2730 Generate return instruction when LR is not poppsed off the
2731 stack.
2732 (arm_volatile_func): Delete.
2733 (output_arm_prologue): Use arm_current_func_type and
2734 arm_compute_save_reg_mask.
2735 Note presernce of interrupt functions.
2736 (arm_output_epilogue): Use arm_current_func_type and
2737 arm_compute_save_reg_mask.
2738 (arm_expand_prologue): Use arm_current_func_type and
2739 arm_compute_save_reg_mask.
2740 (arm_init_machine_status): Initialise func_type field, if
2741 necessary.
2742 (thumb_expand_prologue): Use arm_current_func_type.
2743 (output_thumb_prologue): Use arm_current_func_type.
2744
2745 2000-12-08 Brad Lucier <lucier@math.purdue.edu>
2746
2747 * tradcpp.c (do_include): Make pointer differences 64-bit clean.
2748
2749 Fri Dec 8 08:23:29 2000 J"orn Rennecke <amylaar@redhat.com>
2750
2751 * fp-bit.c (_fpmul_parts): Use USItype variables as inputs
2752 for multiplies.
2753
2754 2000-12-07 Mike Stump <mrs@wrs.com>
2755
2756 * Makefile.in (distclean): Remove alloca.c hashtab.c.
2757
2758 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2759
2760 * Makefile.in (HOST_RTL): Add safe-ctype.o.
2761 (safe-ctype.o): New rule.
2762 * system.h: Include safe-ctype.h, not ctype.h. No need to
2763 wrap ctype macros.
2764
2765 * cpphash.h: Zap IStable and related macros. Define is_* in
2766 terms of safe-ctype.h macros.
2767 * cppinit.c: Delete the IStable and all related code.
2768
2769 * tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
2770 is_space arrays. Delete initialize_char_syntax. Change all
2771 references to the above arrays to use macros instead.
2772 * tradcpp.h: Define is_idchar, is_idstart, is_space, and
2773 is_nvspace in terms of safe_ctype.h's macros.
2774 * tradcif.y: is_idchar, is_idstart are macros not arrays.
2775
2776 * config/i370/i370.c, config/winnt/dirent.c,
2777 config/winnt/fixinc-nt.c, config/winnt/ld.c:
2778 Use uppercase ctype macros. If we included ctype.h,
2779 include safe-ctype.h instead.
2780
2781 * fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
2782 ISLOWER(c) before calling TOUPPER(c).
2783 * fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
2784 * fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
2785 wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
2786
2787 2000-12-07 DJ Delorie <dj@redhat.com>
2788
2789 * c-decl.c (grokdeclarator): preserve previous alignments when
2790 rebuilding array types.
2791
2792 2000-12-07 Neil Booth <neilb@earthling.net>
2793
2794 * cppfiles.c (struct include_file): Move from cpphash.h.
2795 (_cpp_never_reread): New function.
2796 (open_file, read_include_file): Use it.
2797 (stack_include_file): Set the buffer's sysp according to the
2798 path in which the file was found.
2799 (find_include_file): Don't set sysp.
2800 (cpp_make_system_header, actual_directory): Update.
2801 (_cpp_execute_include): Do #include_next lookup handling here,
2802 not in cpplib.c. Use _cpp_never_reread.
2803 * cpphash.h (struct_include_file): Remove.
2804 (struct cpp_buffer): New member sysp.
2805 (CPP_IN_SYSTEM_HEADER, _cpp_execute_include): Update.
2806 (_cpp_never_reread): New.
2807 * cpplib.c (read_line_number): Rename read_flag. Rework slightly.
2808 (end_directive): Clear line_extension flag.
2809 (_cpp_handle_directive): Set line_extension flag for #number.
2810 (do_include_next): Handle path lookup in _cpp_execute_include.
2811 (do_line): Cleanup to use read_flag. Don't allow flags in #line.
2812 (_cpp_do_file_change): Update.
2813 (do_pragma_once): Use cpp_never_reread. Clean up.
2814 * cpplib.h (struct lexer_state): New member line_extension.
2815
2816 2000-12-07 Richard Henderson <rth@redhat.com>
2817
2818 * flow.c (calculate_global_regs_live): Force the stack pointer live
2819 after reload as well.
2820
2821 2000-12-07 Bruce Korb <bkorb@gnu.org>
2822
2823 * fixinc/Makefile.*(exeext): the variables are exeext, the
2824 substitution expression is build_exeext.
2825
2826 2000-12-07 Neil Booth <neilb@earthling.net>
2827
2828 * c-common.c (parse_in): Make a cpp_reader *.
2829 * cppfiles.c (_cpp_fake_include): Remove.
2830 * cpphash.h: Similarly.
2831 * cpplib.c (do_line): Don't call _cpp_fake_include. A valid
2832 #line always creates a callback; FC_RENAME if there are no
2833 #line flags.
2834 * fix-header.c (read_scan_file): cpp_push_buffer cannot fail.
2835 The first EOF must be our get_char buffer.
2836
2837 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2838
2839 * c-common.c (warn_format_security): New variable.
2840 (check_format_info): Warn about non-literal formats with no format
2841 arguments if either -Wformat-nonliteral or -Wformat-security is
2842 specified.
2843 (set_Wformat): Set warn_format_security for settings other than 1.
2844 * c-common.h (warn_format_security): Declare.
2845 * c-decl.c (c_decode_option): Decode -Wformat-security and
2846 -Wno-format-security.
2847 * invoke.texi: Document -Wformat-security.
2848 * toplev.c (documented_lang_options): Include -Wformat-security
2849 and -Wno-format-security.
2850
2851 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2852
2853 * c-common.c (check_format_info): Warn for non-constant format
2854 strings with strftime formats if -Wformat-nonliteral. Where the
2855 format can convert arguments, if the format is not a string
2856 literal and there are no arguments to the format, give a different
2857 warning message from the general non-string-literal case.
2858
2859 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2860
2861 * c-common.c (format_wanted_type): Add reading_from_flag.
2862 (print_char_table): Mark %s and %S formats with flag "R".
2863 (check_format_info_main): Set up reading_from_flag appropriately.
2864 If aflag, always set writing_in_flag rather than relying on the
2865 format used being a scanf format and so having it set.
2866 (check_format_types): Check for formats reading through null
2867 pointers.
2868
2869 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2870
2871 * invoke.texi (-Wformat): Document what format features are
2872 checked.
2873
2874 2000-12-06 Kazu Hirata <kazu@hxi.com>
2875
2876 * config/h8300/h8300.h: Fix formatting.
2877
2878 2000-12-06 Joel Sherrill <joel@OARcorp.com>
2879
2880 * config.gcc (a29k*-*-rtems*, arm*-*-rtems*, c4x-*-rtems*,
2881 h8300-*-rtems*, hppa1.1-*-rtems, *mips*-*-rtems*): New targets.
2882 * config.gcc (*-rtems*): Add support for gthr-rtems.h.
2883 * gthr-rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2884 config/h8300/rtems.h, config/mips/rtems.h: New files.
2885
2886 2000-12-06 Mark Kettenis <kettenis@gnu.org>
2887
2888 * config.gcc: Reorganize handling of *-*-gnu*, to share target
2889 specific make details with Linux. Update comments to clarify
2890 the distinction between GNU/Linux and GNU/Hurd.
2891
2892 Wed Dec 6 19:22:02 2000 Jeffrey A Law (law@cygnus.com)
2893
2894 * contrib.texi: Fix my email address. Update Per's
2895 list of contributions.
2896
2897 2000-12-06 Rodney Brown <RodneyBrown@mynd.com>
2898
2899 * c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
2900 * collect2.c (scan_libraries): Remove unused `ch'.
2901 (COFF specific stuff): Prototype ldgetname. Declare and prototype
2902 ldbtread and ldclose.
2903
2904 * config/alpha/osf.h: Standarize copyright statement.
2905 * config/arc/arc.h: Likewise.
2906 * config/arm/elf.h config/arm/coff.h config/arm/aout.h: Likewise.
2907 * config/arm/arm.c config/arm/arm.h: Likewise.
2908 * config/elxsi/elxsi.h: Likewise.
2909 * config/i386/sco.h: Likewise.
2910 * config/m68k/crds.h config/m68k/hp320.h config/m68k/lynx.h: Likewise.
2911 * config/m68k/m68kv4.h config/m68k/next21.h: Likewise.
2912 * config/m68k/sun3.h: Likewise.
2913 * config/m88k/dgux.h config/m88k/dguxbcs.h: Likewise.
2914 * config/pdp11/2bsd.h config/pdp11/pdp11.h: Likewise.
2915 * config/romp/romp.h: Likewise.
2916 * config/rs6000/aix41.h: Likewise.
2917 * config/sparc/sysv4.h: Likewise.
2918 * config/we32k/we32k.c config/we32k/we32k.h: Likewise.
2919 * fixinc/gnu-regex.c fixinc/gnu-regex.h: Likewise.
2920 * cpplib.h cppexp.c cselib.h profile.c: Likewise.
2921 * longlong.h: Likewise.
2922 * libgcc2.c: Likewise.
2923
2924 2000-12-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2925
2926 * machmode.def: Use correct definition for BITSIZE on targets where
2927 BITS_PER_UNIT != 8.
2928
2929 2000-12-06 Bruce Korb <bkorb@gnu.org>
2930
2931 * fixinc/Makefile.*: Reduce differences to (ultimately) reduce
2932 the number of them.
2933
2934 2000-12-06 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2935
2936 * pa.c: Include expr.h before c-tree.h.
2937 (remove_useless_addtr_insns): Use reverse_condition_maybe_unordered
2938 instead of reverse_condition.
2939 (print_operand): Correct predicates for GT, GE, LT and LE. Add
2940 predicates for LTGT, UNLE, UNLT, UNGE, UNGT, UNEQ, UNORDERED and
2941 ORDERED.
2942 (cmpib_comparison_operator): Add GEU and LTU codes.
2943 * pa.h (PREDICATE_CODES): Add codes for cmpib_comparison_operator.
2944 * pa.md (bltgt, bunle, bunlt, bunge, bungt, buneq, bunordered,
2945 bordered): New float conditional branch patterns.
2946
2947 Wed Dec 6 21:03:41 2000 J"orn Rennecke <amylaar@redhat.com>
2948
2949 * final.c (final_addr_vec_align): Fix clipping to BIGGEST_ALIGNMENT.
2950
2951 2000-12-06 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
2952
2953 * cpplex.c (skip_escaped_newlines): Don't warn for spaces between
2954 backslash and newline, when inside a comment.
2955
2956 2000-12-06 Joseph S. Myers <jsm28@cam.ac.uk>
2957
2958 * invoke.texi: Use @table @samp instead of @itemize @minus for
2959 table of language standards. Fix use of @pxref. From Zack
2960 Weinberg. Also exclude specs documentation from generated
2961 manpage, and create separate ENVIRONMENT section.
2962
2963 2000-12-06 Michael Matz <matzmich@cs.tu-berlin.de>
2964
2965 * gcse.c (compute_pre_data): Kill trapping expressions in
2966 destination blocks of abnormal edges.
2967
2968 2000-12-05 Richard Sandiford <r.sandiford@redhat.com>
2969
2970 * config/mn10300/mn10300.c (mn10300_print_reg_list): Added.
2971 (mn10300_get_live_callee_saved_regs): Likewise.
2972 (mn10300_gen_multiple_store): Likewise.
2973 (store_multiple_operation): Likewise.
2974 (expand_prologue): Use mn10300_gen_multiple_store().
2975 * config/mn10300/mn10300-protos.h (mn10300_print_reg_list): Added.
2976 (mn10300_get_live_callee_saved_regs): Likewise.
2977 (mn10300_gen_multiple_store): Likewise.
2978 (store_multiple_operation): Likewise.
2979 * config/mn10300/mn10300.md (store_movm): Use a MATCH_PARALLEL
2980 tied to store_multiple_operation().
2981
2982 Tue Dec 5 20:09:14 2000 Jeffrey A Law (law@cygnus.com)
2983
2984 * builtins.c (expand_builtin_setjmp_setup): Set
2985 current_function_has_nonlocal_label.
2986
2987 2000-12-05 Neil Booth <neilb@earthling.net>
2988
2989 * cppfiles.c (stack_include_file): Push zero-length buffers
2990 in case of failure. Return void, as we don't fail any more.
2991 (read_include_file): Check for files we shouldn't re-read.
2992 Don't return an error code; errors are implied by marking the
2993 file NEVER_REREAD.
2994 (_cpp_execute_include): Move the recursion and in-macro checks
2995 here. Update for stack_include_file not failing.
2996 * cpplib.c (cpp_push_buffer): Always succeed, since
2997 _cpp_execute_include performs the recursion check. Tidy up.
2998 * cpplib.h (cpp_push_buffer): Update prototype.
2999
3000 2000-12-05 Alexandre Oliva <aoliva@redhat.com>
3001
3002 * sched-vis.c (visual_tbl_line_length): New variable.
3003 (get_visual_tbl_length): Set it.
3004 (visualize_stall_cycles): Don't let stalls overrun
3005 visual_tbl_line_length.
3006
3007 2000-12-05 Geoffrey Keating <geoffk@redhat.com>
3008
3009 * global.c (global_conflicts): Allow for a REG_UNUSED note
3010 with a different mode to the REG set in the insn.
3011
3012 2000-12-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3013
3014 * Makefile.in (fixinc.sh): Pass $WARN_CFLAGS into fixinc dir.
3015
3016 * fixinc/Makefile.in (FIXINC_DEFS): Add $(WARN_CFLAGS).
3017
3018 2000-12-05 Bruce Korb <bkorb@gnu.org>
3019
3020 * fixinc/mkfixinc.sh(*-gnu*): activate fixinc for GNU/Hurd and
3021 GNU/Linux.
3022
3023 2000-12-05 Richard Earnshaw <rearnsha@arm.com>
3024
3025 * fixinc/mkfixinc.sh: Run fixinc on netbsd.
3026 * fixinc/inclhack.def (machine/ansi.h): Run this rule on all files,
3027 to cope with aliased copies.
3028 * fixinc/fixincl.x: Regenerate.
3029
3030 2000-12-05 Bernd Schmidt <bernds@redhat.co.uk>
3031
3032 * sched-vis.c: Guard with #ifdef INSN_SCHEDULING.
3033 * sched-rgn.c: Likewise.
3034 (rgn_print_insn): Fix output.
3035
3036 2000-12-05 Bruce Korb <bkorb@gnu.org>
3037
3038 * fixinc/Makefile.*: make these more consistent
3039 * fixinc/mkfixincl.sh: enable BeOS fixincludes
3040
3041 2000-12-05 Richard Henderson <rth@redhat.com>
3042
3043 * stmt.c (warn_if_unused_value): Move side effects test earlier.
3044
3045 2000-12-05 Alan Modra <alan@linuxcare.com.au>
3046
3047 * bb-reorder.c (reorder_basic_blocks): Do check for EH edges even
3048 when using sjlj.
3049
3050 2000-12-05 Richard Henderson <rth@redhat.com>
3051
3052 * flow.c (calculate_global_regs_live): Only force stack pointer
3053 live before reload. Force pic register live before reload.
3054 (insn_dead_p): Don't protect pic references from deletion.
3055
3056 2000-12-05 Joseph S. Myers <jsm28@cam.ac.uk>
3057
3058 * invoke.texi: Add support for using texi2pod.pl. Don't use
3059 @multitable.
3060
3061 2000-12-04 Nick Clifton <nickc@redhat.com>
3062
3063 * config/arm/arm.c (arm_override_options): Test 'insn_flags' not
3064 'tune_flags' for XScale nature.
3065 Remove spurious test of HARD_FLOAT and XScale flags.
3066
3067 * config/arm/arm.md (umulsidi3adddi): Restore "=&r" register
3068 contraint, accidentally changed during XScale contribution.
3069
3070 * config/arm/lib1funcs.asm (interwork_call_via_, call_via_): Do
3071 not create these functions if the target architecture does not
3072 support Thumb instructions.
3073
3074 2000-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
3075
3076 * ONEWS: New file with the current contents of NEWS up to EGCS
3077 1.1.
3078 * NEWS: Generate automatically from online release notes from EGCS
3079 1.0 to GCC 2.95.2, using ../contrib/gennews.
3080
3081 2000-12-04 Neil Booth <neilb@earthling.net>
3082
3083 * tradcif.y: Move lexptr to top of file. Add rule to handle
3084 assertions in conditional expressions.
3085 * tradcpp.c (parse_answer): Assertions do not need to go to
3086 end of line in conditional directives.
3087 (parse_assertion): Get first character of identifiers correct.
3088 (test_assertion): New function.
3089 * tradcpp.h (test_assertion): New prototype.
3090
3091 2000-12-01 Rodney Brown <RodneyBrown@mynd.com>
3092
3093 * config.gcc: Fix typo for UnixWare 7.
3094
3095 2000-12-03 Phil Edwards <pme@sources.redhat.com>
3096
3097 * invoke.texi: Replace `pedwarns' with clearer text.
3098
3099 2000-12-04 Bruce Korb <bkorb@gnu.org>
3100
3101 * fixinc/Makefile.*(clean): don't clean autogenerated files.
3102 (mainainer-clean): clean autogenerated files
3103
3104 2000-12-04 DJ Delorie <dj@redhat.com>
3105
3106 * md.texi: Add overview, clarify match_dup and define_expand.
3107
3108 2000-12-04 DJ Delorie <dj@redhat.com>
3109
3110 * print-tree.c (print_node): Target-specific builtins print
3111 numbers, not names.
3112
3113 2000-12-04 Jason Merrill <jason@redhat.com>
3114
3115 * stor-layout.c (int_mode_for_mode): Handle MODE_VECTOR_INT,
3116 MODE_VECTOR_FLOAT.
3117
3118 * diagnostic.c (report_problematic_module): s/function/module/.
3119
3120 * c-lex.h: Remove decl for check_newline.
3121
3122 2000-12-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3123
3124 * README.APOLLO: Remove obsolete file.
3125
3126 2000-12-04 Neil Booth <neilb@earthling.net>
3127
3128 * cppinternals.texi: New file.
3129
3130 2000-12-04 Neil Booth <neilb@earthling.net>
3131
3132 * cppfiles.c (cpp_make_system_header): Take 2 booleans,
3133 and operate on current buffer.
3134 (cpp_read_file): Rename _cpp_read_file.
3135 * cpplib.c (do_line, do_pragma_system_header): Update calls to
3136 cpp_make_system_header.
3137 * fix-header.c: Similarly.
3138 * cpphash.h (_cpp_read_file): Move from...
3139 * cpplib.h: ... here.
3140 * cppinit.c (do_includes, cpp_start_read): Update appropriately.
3141
3142 2000-12-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3143
3144 * builtins.c (expand_builtin_strspn, expand_builtin_strcspn):
3145 Handle another transformation.
3146
3147 2000-12-03 Nick Clifton <nickc@redhat.com>
3148
3149 * config.gcc: Add support for StrongARM targets.
3150 * config/arm/t-strongarm-elf: New file.
3151 * config/arm/t-strongarm-coff: New file.
3152 * config/arm/t-strongarm-pe: New file.
3153 * config/arm/strongarm-pe.h: New file.
3154
3155 2000-12-03 Nick Clifton <nickc@redhat.com>
3156
3157 * NEWS: Mention XScale has been added.
3158 * config.gcc: Add support for XScale targets.
3159 * config/arm/arm.h: Add support for XScale processor.
3160 * config/arm/arm.c: Add support for XScale processor.
3161 * config/arm/arm.md: Add support for XScale processor.
3162 * config/arm/t-xscale-elf: New file.
3163 * config/arm/t-xscale-coff: New file.
3164 * config/arm/xscale-elf.h: New file.
3165 * config/arm/xscale-coff.h: New file.
3166
3167 2000-12-03 Richard Henderson <rth@redhat.com>
3168
3169 * bb-reorder.c (reorder_basic_blocks): Don't check for EH edges
3170 unless exception handling is enabled, and if not using sjlj.
3171
3172 * builtins.c (expand_builtin_setjmp_setup): New.
3173 (expand_builtin_setjmp_receiver): New.
3174 (expand_builtin_setjmp): Split out _setup and _receiver functions.
3175 Move argument parsing in from ...
3176 (expand_builtin): ... here.
3177 * except.c (receive_exception_label): Branch around receiver
3178 unless new-style exceptions. Call expand_builtin_setjmp_receiver.
3179 (start_dynamic_handler): Call expand_builtin_setjmp_setup.
3180 * expr.h: Update builtin setjmp decls.
3181
3182 2000-12-03 Bruce Korb <bkorb@gcc.org>
3183
3184 * fixinc/mkfixinc.sh(build machine): Sometimes, there is no canonical
3185 build machine name. Default to the target.
3186
3187 2000-12-03 Laurynas Biveinis <lauras@softhome.net>
3188
3189 * Makefile.in: use $(build_canonical), not $(canonical_build).
3190
3191 2000-12-03 Bernd Schmidt <bernds@redhat.co.uk>
3192
3193 * Makefile.in (OBJS): Add sched-rgn.o.
3194 (sched-rgn.o): New rule. * haifa-sched.c (sched_verbose): No
3195 longer static.
3196 (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
3197 INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
3198 UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
3199 MAX_BLOCKAGE_COST): Move to sched-int.h.
3200 (MAX_RGN_BLOCKS, MAX_RGN_INSNS, INSN_REF_COUNT, FED_BY_SPEC_LOAD,
3201 IS_LOAD_INSN, struct haifa_edge, edge_table, NEXT_IN, NEXT_OUT,
3202 FROM_BLOCK, TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES,
3203 OUT_EDGES, edgelst, struct region, nr_regions, rgn_table,
3204 rgn_bb_table, block_to_bb, containing_rgn, RGN_NR_BLOCKS,
3205 RGN_BLOCKS, BLOCK_TO_BB, BB_TO_BLOCK, CONTAINING_RGN,
3206 debug_regions, find_single_block_region, find_rgns, too_large,
3207 init_regions, current_nr_blocks, current_blocks, bitset, bitlst,
3208 bitlst_table_last, bitlst_table_size, bitlst_table, bitset_member,
3209 extract_bitlst, bblst, struct candidate, candidate_table,
3210 bblst_table, bblst_size, bblst_last, IS_VALID, IS_SPECULATIVE,
3211 SRC_PROB, target_bb, split_edges, compute_trg_info,
3212 debug_candidate, debug_candidates, bbset, bbset_size, dom,
3213 IS_RGN_ENTRY, IS_DOMINATED, prob, GET_SRC_PROB, edgeset,
3214 rgn_nr_edges, rgn_edges, edgeset_size, edgeset_bitsize,
3215 EDGE_TO_BIT, edge_to_bit, pot_split, ancestor_edges,
3216 compute_dom_prob_ps, ABS_VALUE, INSN_PROBABILITY,
3217 IS_SPECULATIVE_INSN, INSN_BB, MIN_DIFF_PRIORITY, MIN_PROBABILITY,
3218 MIN_PROB_DIFF, check_live_1, update_live_1, check_live,
3219 update_live, set_spec_fed, is_pfree, find_conditional_protection,
3220 is_conditionally_protected, may_trap_exp, haifa_classify_insn,
3221 is_prisky, is_exception_free, add_branch_dependences,
3222 propagate_deps, compute_block_backward_dependences,
3223 debug_dependencies, is_cfg_nonregular, build_control_flow,
3224 new_edge, bb_deps, BITSET_UNION, BITSET_INTER, BITSET_DIFFER,
3225 BITSET_INVERT, BITSET_ADD, BITSET_REMOVE, debug_regions,
3226 UPDATE_LOOP_RELATIONS, INSN_TRAP_CLASS, WORST_CLASS, IS_REACHABLE,
3227 CONST_BASED_ADDRESS_P, free_pending_lists, sched_target_n_insns,
3228 target_n_insns, sched_n_insns, init_ready_list, deaths_in_region,
3229 can_schedule_ready_p, new_ready, schedule_more_p, rgn_print_insn,
3230 rgn_rank, region_sched_info): Move to sched-rgn.c.
3231 (debug_reg_vector): Delete useless function.
3232 (get_bb_head_tail): Likewise.
3233 (insn_issue_delay, insn_cost, ready_add, get_block_head_tail,
3234 no_real_insns_p, rm_line_notes, save_line_notes,
3235 restore_line_notes, rm_redundant_line_notes, sched_init): No
3236 longer static.
3237 (rm_line_notes, save_line_notes, restore_line_notes,
3238 schedule_block, set_priorities): Change argument to be a real
3239 basic block, not one of haifa's "bb"s. All callers changed
3240 (rm_other_notes): Initialize note_list here, not in
3241 schedule_region.
3242 (sched_finish): New function, called from schedule_insn. * *
3243 sched-int.h (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
3244 INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
3245 UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
3246 MAX_BLOCKAGE_COST): Moved here from haifa-sched.c.
3247 (get_block_head_tail, no_real_insns_p, rm_line_notes,
3248 save_line_notes, restore_line_notes, rm_redundant_line_notes,
3249 rm_other_notes, insn_issue_delay, set_priorities, schedule_block,
3250 sched_init, sched_finish, ready_add, insn_cost): Declare.
3251
3252 2000-12-03 Laurynas Biveinis <lauras@softhome.net>
3253 Bruce Korb <bkorb@gnu.org>
3254
3255 * Makefile.in: pass $(build_canonical) to mkfixinc.sh.
3256 * fixinc/mkfixinc.sh: accept build system name as an argument.
3257 Use it for choosing the fix build method. Use the target for
3258 selecting special fix rules.
3259
3260 2000-12-03 Bernd Schmidt <bernds@redhat.co.uk>
3261
3262 * Makefile.in (OBJS): Add sched-deps.o.
3263 (sched-deps.o): New rule.
3264 * haifa-sched.c (struct deps, struct haifa_insn_data): Moved to
3265 sched-int.h.
3266 (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved to
3267 sched-int.h.
3268 (SIZE_FOR_MODE): Delete unused macro.
3269 (reg_known_equiv_p, reg_known_value, reg_pending_clobbers,
3270 reg_pending_sets, reg_pending_sets_all, true_dependency_cache,
3271 anti_dependency_cache, output_dependency_cache,
3272 forward_dependency_cache): Variables moved to sched-deps.c.
3273 (add_dependence, remove_dependence, find_insn_list,
3274 find_insn_mem_list, add_insn_mem_dependence, flush_pending_lists,
3275 sched_analyze_insn, sched_analyze_1, sched_analyze_2,
3276 sched_analyze, group_leader, compute_forward_dependences,
3277 init_deps, free_deps, init_dependency_caches, free_dependency_caches):
3278 Functions moved to sched-deps.c.
3279 (schedule_region): Call init_deps_global and finish_deps_global
3280 instead of directly manipulating dependency data structures.
3281 * sched-deps.c: New file.
3282 (init_deps_global, finish_deps_global): New functions.
3283 * sched-int.h (struct haifa_insn_data, struct deps): Moved here from
3284 haifa-sched.c.
3285 (h_i_d): Declare.
3286 (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved here
3287 from haifa-sched.c.
3288
3289 * Makefile.in (OBJS): Add sched-vis.o.
3290 (sched-vis.o): New rule.
3291 * haifa-sched.c (get_unit_last_insn): New function.
3292 (sched_dump, insn_unit, actual_hazard_this_instance): No longer
3293 static.
3294 (schedule_block): Call visualize_alloc and visualize_free. Delete
3295 spurious return statement.
3296 (init_target_units, insn_print_units, get_visual_tbl_length,
3297 init_block_visualization, print_block_visualization, safe_concat,
3298 visualize_scheduled_inns, visualize_no_unit, visualize_stall_cycles,
3299 print_exp, print_value, print_pattern, print_insn, target_units,
3300 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines, visual_tbl,
3301 n_vis_no_unit, vis_no_unit): Move scheduling visualization
3302 functions/variables...
3303 * sched-vis.c: ...here. New file.
3304 (visualize_alloc, visualize_free): New functions.
3305 (visualize_scheduled_insns, visualize_stall_cycles,
3306 print_block_visualization): Lose basic block argument. All callers
3307 changed.
3308 (visualize_scheduled_insns): Use new function get_unit_last_insn.
3309 * sched-int.h (current_sched_info, sched_dump): Declare.
3310 (init_target_units, insn_print_units, init_block_visualization,
3311 print_block_visualization, visualize_scheduled_inns,
3312 visualize_no_unit, visualize_stall_cycles, visualize_alloc,
3313 visualize_free): Declare functions.
3314
3315 * sched-int.h: New file.
3316 * Makefile.in (haifa-sched.o): Depend on it.
3317 * haifa-sched.c: Include it.
3318 (no_real_insns_p): New function.
3319 (current_sched_info): New static variable.
3320 (__inline, HAIFA_INLINE): Moved to sched-int.h.
3321 (get_block_head_tail): Minor cleanup.
3322 (init_ready_list, can_schedule_ready_p, new_ready, schedule_more_p,
3323 rgn_print_insn, rgn_rank): New functions, broken out of
3324 rank_for_schedule, schedule_insn and schedule_block, where they
3325 are now called through function pointers in current_sched_info.
3326 (queue_insn, schedule_insn, queue_to_ready, debug_ready_list,
3327 print_insn): To display uid and block number, call the print_insn
3328 function pointer in current_schedule_info.
3329 (region_sched_info): New static variable.
3330 (sched_target_n_insns, sched_n_insns, target_n_insns): New global
3331 variables, moved out of schedule_block.
3332 (schedule_block): Return void. All callers changed.
3333 Move some of the setup code into schedule_region. Get head/tail
3334 from current_sched_info, and update it when done.
3335 (schedule_region): Slightly rearranged, some code moved here from
3336 schedule_block. Call no_real_insns_p to avoid doing work for a
3337 block that consists only of notes and labels.
3338 (schedule_insns): Initialize current_sched_info.
3339
3340 2000-12-03 Neil Booth <neilb@earthling.net>
3341
3342 * cppmacro.c (funlike_invocation_p): Re-disable macros enabled
3343 by contexts drops AFTER argument pre-expansion, so that they
3344 remain enabled during argument pre-expansion.
3345 (_cpp_pop_context): Unconditionally re-enable a macro when
3346 dropping a context level.
3347
3348 2000-12-03 Manfred Hollstein <manfredh@redhat.com>
3349
3350 * arm/t-linux (MULTILIB_OPTIONS): Comment.
3351 (MULTILIB_DIRNAMES): Likewise.
3352 (EXTRA_MULTILIB_PARTS): Likewise.
3353 (LIBGCC): Likewise.
3354 (INSTALL_LIBGCC): Likewise.
3355
3356 2000-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3357
3358 * builtins.c (expand_builtin_strcat, expand_builtin_strncat,
3359 expand_builtin_strspn, expand_builtin_strcspn): New functions.
3360 (expand_builtin): Handle BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
3361 BUILT_IN_STRSPN and BUILT_IN_STRCSPN.
3362
3363 * builtins.def (BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
3364 BUILT_IN_STRSPN, BUILT_IN_STRCSPN): New entries.
3365
3366 * c-common.c (c_common_nodes_and_builtins): Declare builtin
3367 strcat, strncat, strspn and strcspn.
3368 (string_ftype_string_cstring): Renamed from `string_ftype_ptr_ptr'.
3369
3370 * extend.texi (strcat, strcspn, strncat, strspn): Document new
3371 builtins.
3372
3373 2000-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3374
3375 * builtins.c (expand_builtin_strcmp): Use const*_rtx when
3376 expanding strcmp at compile-time. Add another transformation.
3377 (expand_builtin_strncmp): Add more transformations. Call
3378 expand_builtin_memcmp, not expand_builtin_strcmp, under
3379 appropriate conditions if HAVE_cmpstrsi.
3380
3381 2000-12-02 David Edelsohn <edelsohn@gnu.org>
3382
3383 * rs6000.md (anddi3_internal[23]): Prefer rldic? over andis
3384 instruction.
3385 (cr logic): Really make operands sequential.
3386
3387 2000-12-02 Geoffrey Keating <geoffk@redhat.com>
3388
3389 * c-common.c (combine_strings): When the ISO C standard specifies
3390 the maximum length of a string, it doesn't include the trailing
3391 zero byte.
3392
3393 * cpplib.c (do_ifdef): Add check_eol() call.
3394 (do_ifndef): Likewise.
3395
3396 2000-12-02 Daniel Berlin <dberlin@redhat.com>
3397 Bruce Korb <bkorb@gnu.org>
3398
3399 * fixinc/*: global substitute /__MSDOS__/SEPARATE_FIX_PROC/
3400 * fixinc/mkfixinc.sh: prepare to use Makefile.BEOS for *-*-beos*
3401 * fixinc/Makefile.DOS: define SEPARATE_FIX_PROC for build
3402 * fixinc/fixfix.c(wrap_fix): avoid wrapping files that
3403 use the "__need_" hackery. It breaks them.
3404 * fixinc/fixincl.c(process - SEPARATE_FIX_PROC):
3405 Sometimes on DOS and BeOS the temp output file cannot be opened.
3406 Skip the file noisily. Ought to be fixed instead.
3407
3408 2000-12-02 Bruce Korb <bkorb@gnu.org>
3409
3410 From: 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3411
3412 * fixfixes.c (emit_gnu_type, format_write): Prototype.
3413 (format_write, char_macro_use_fix, char_macro_def_fix): Use gcc's
3414 custom uppercase ctype macros.
3415 * fixincl.c (do_version): Make static and add ATTRIBUTE_NORETURN.
3416 Use gcc's custom uppercase ctype macros.
3417 (main): Prototype.
3418 (machine_matches): Add static prototype and constify variable.
3419 (create_file, test_test, egrep_test): Add static prototype.
3420 (quoted_file_exists): Likewise, and constify parameters.
3421 (extract_quoted_files, internal_fix, start_fixer, fix_applies,
3422 write_replacement, test_for_changes): Add static prototype.
3423 (write_replacement, test_for_changes): Delete excess argument to
3424 `create_file'.
3425 * fixtests.c (test): Make static.
3426 * server.c (load_data, sig_handler, server_setup, find_shell): Add
3427 static prototype.
3428 (sig_handler): Mark parameter with ATTRIBUTE_UNUSED.
3429
3430 2000-12-02 Bruce Korb <bkorb@gnu.org>
3431
3432 * fixnc/mkfixinc.sh(msdosdjgpp): remove from fixincludes exception list
3433 (per Laurynas Biveinis <lauras@softhome.net>)
3434
3435 2000-12-02 Richard Earnshaw <rearnsha@arm.com>
3436
3437 * arm.h (ARM_REGNO_OK_FOR_BASE_P, THUMB_REGNO_MODE_OK_FOR_BASE_P): New
3438 macros.
3439 (REGNO_MODE_OK_FOR_BASE_P): Define in terms of above.
3440 (REGNO_OK_FOR_FOR_BASE_P): Delete.
3441 (ARM_REG_OK_FOR_BASE_P, THUMB_REG_MODE_OK_FOR_BASE_P): New macros for
3442 both strict and non-strict uses.
3443 (REG_MODE_OK_FOR_BASE_P): Define in terms of above.
3444 (ARM_REG_OK_FOR_INDEX_P, THUMB_REG_OK_FOR_INDEX_P): New macros.
3445 (REG_OK_FOR_INDEX_P): Define in terms of above.
3446 (REG_OK_FOR_BASE_P): Delete.
3447 (REG_OK_FOR_PRE_POST_P): Delete.
3448 (ARM_BASE_REGISTER_RTX_P): Renamed from BASE_REGISTER_RTX_P.
3449 (ARM_INDEX_REGISTER_RTX_P): Renamed from INDEX_REGISTER_RTX_P.
3450 (ARM_GO_IF_LEGITIMATE_INDEX): Renamed from GO_IF_LEGITIMATE_INDEX.
3451 (THUMB_LEGITIMATE_OFFSET): Renamed from LEGITIMATE_OFFSET.
3452 (ARM_GO_IF_LEGITIMATE_ADDRESS): Adjust for name changes. Use ARM
3453 specific variants rather than general ones. Use ARM_REG_OK_FOR_BASE_P
3454 in pre/post increment cases.
3455 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Similarly for Thumb.
3456 (ARM_LEGITIMIZE_ADDRESS): Similarly.
3457 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Similarly.
3458 * arm.c (legitimate_pic_address): Similarly.
3459
3460 2000-12-02 Neil Booth <neilb@earthling.net>
3461
3462 * tradcpp.c (struct answer, parse_assertion, parse_answer,
3463 canonicalize_text, find_answer): New.
3464 (do_assert, do_unassert): Provide appropriate function bodies.
3465 (union hashval): New member answers.
3466
3467 2000-11-23 Marek Michalkiewicz <marekm@linux.org.pl>
3468
3469 * config/avr/avr.md: Document UNSPEC usage.
3470 (*tablejump_rjmp, *tablejump_lib, *tablejump_enh, *tablejump):
3471 Make operand 0 input only, clobber it. Use UNSPEC, not a bogus
3472 MEM for program memory word reference. Do not add the label to
3473 the table index in each of the asm output templates, instead ...
3474 (casesi): ... do it in RTL. Adjust to match the above change.
3475
3476 2000-12-02 Bernd Schmidt <bernds@redhat.co.uk>
3477
3478 * c-common.c (PTRDIFF_TYPE): Provide default here, ...
3479 * c-decl.c: ... not here.
3480
3481 * haifa-sched.c (sched_dump): Renamed from dump. All users changed.
3482 (old_max_uid): New variable.
3483 (compute_forward_dependences): Renamed from
3484 compute_block_forward_dependences; changed to accept block head and
3485 tail instead of block number. Caller changed.
3486 (free_deps, init_dependency_caches, free_dependency_caches,
3487 init_regions, sched_init): New functions, split out from
3488 schedule_insns and compute_block_backward_dependences.
3489
3490 2000-12-02 Neil Booth <neilb@earthling.net>
3491
3492 * cppexp.c (parse_number): Update diagnostic test.
3493
3494 2000-12-02 Bernd Schmidt <bernds@redhat.co.uk>
3495
3496 * reload1.c (free_for_value_p): New function, frontend to
3497 reload_reg_free_for_value_p. All callers of the latter now call
3498 this function with an additional mode argument.
3499
3500 2000-12-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3501
3502 * install.texi (Configurations): Remove obsolete documentation for
3503 hppa*-*-*.
3504
3505 2000-12-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3506
3507 * install.texi (Installation): Remove obsolete description for
3508 libstdc++ which is now an integral part of GCC.
3509
3510 2000-12-01 Jim Blandy <jimb@redhat.com>
3511
3512 * dbxout.c (dbxout_parms): Correctly describe parameters passed by
3513 invisible reference in registers, but then spilled to the stack.
3514 Remove code to emit a second stab for such parameters; it attempts
3515 to describe the value's location by introducing a synthetic C++
3516 `reference' type, and then saying the stack slot has that
3517 reference type. This loses type information (breaking GDB's
3518 `ptype' command, among other things) just to describe a location
3519 which stabs can represent correctly in other ways.
3520
3521 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
3522
3523 * final.c (output_addr_const) <PLUS>: Don't assume at least one
3524 operand is a CONST_INT.
3525
3526 * config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
3527 (machine_dependent_reorg): Split all insns.
3528 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
3529 reg_class_contents[SIBCALL_REGS].
3530 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS.
3531 * config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel,
3532 call_value_pcrel, call, call_value, sibcall): Match even when
3533 not optimizing.
3534 (sibcalli_pcrel, sibcall_pcrel): Likewise. Use constraint `k'
3535 for call address.
3536 (sibcalli): Likewise.
3537
3538 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
3539
3540 * c-common.c (warn_format, warn_format_y2k,
3541 warn_format_extra_args, warn_format_nonliteral): Define.
3542 (check_format_info): Check warn_format_nonliteral and
3543 warn_format_extra_args.
3544 (check_format_info_main): Check warn_format_y2k.
3545 (set_Wformat): New function.
3546 * c-common.h (warn_format_y2k, warn_format_extra_args,
3547 warn_format_nonliteral, set_Wformat): Declare.
3548 * c-decl.c (warn_format): Remove definition.
3549 (c_decode_option): Handle -Wformat-nonliteral,
3550 -Wno-format-extra-args and -Wno-format-y2k, and negated versions.
3551 Use set_Wformat.
3552 * invoke.texi: Document these new options and -Wformat=2.
3553 * toplev.c (documented_lang_options): Add these new options.
3554
3555 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
3556
3557 * builtins.def (BUILT_IN_IMAXABS): Add.
3558 * builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS.
3559 * c-common.c (c_common_nodes_and_builtins): Create builtin
3560 functions __builtin_imaxabs, and plain imaxabs unless
3561 flag_no_nonansi_builtin outside C99 mode.
3562 (expand_tree_builtin): Handle BUILT_IN_IMAXABS.
3563 * extend.texi: Document builtin imaxabs.
3564
3565 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
3566
3567 * c-common.c: Include "defaults.h".
3568 (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define.
3569 (c_common_nodes_and_builtins): Create string_type_node,
3570 const_string_type_node, wint_type_node, intmax_type_node,
3571 uintmax_type_node, default_function_type, ptrdiff_type_node and
3572 unsigned_ptrdiff_type_node.
3573 * c-common.h (identifier_global_value): Declare.
3574 * c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
3575 (init_decl_processing): Don't create string_type_node,
3576 const_string_type_node, wint_type_node, intmax_type_node,
3577 uintmax_type_node, default_function_type, ptrdiff_type_node and
3578 unsigned_ptrdiff_type_node.
3579 (identifier_global_value): New function.
3580
3581 2000-12-01 Neil Booth <neilb@earthling.net>
3582
3583 * cppinit.c (initialize): Forgotten prototype.
3584 * cpplex.c (_cpp_lex_token): Loop until not skipping.
3585 Always clear PREV_WHITE upon meeting a new line.
3586 * cpplib.c (end_directive): Set pfile->skipping after
3587 skip_rest_of_line.
3588 * cpplib.h (cpp_reader): Remove macro_pos.
3589 * cppmacro.c (cpp_get_line): Don't do anything special inside
3590 macros.
3591 (parse_arg): Add PREV_WHITE if a token appears after new lines.
3592 (funlike_invocation_p): Save and restore the output position
3593 over a successful check for a '('.
3594 (enter_macro_context): Delete uses of macro_pos.
3595 (cpp_get_token): Don't use pfile->skipping.
3596
3597 2000-12-01 Phil Edwards <pme@sources.redhat.com>
3598
3599 * diagnostic.c: Fix typos in comments.
3600 * diagnostic.h: Likewise.
3601
3602 2000-11-30 Phil Edwards <pme@sources.redhat.com>
3603
3604 * rtl.texi (Machine Modes): Document BImode and OImode.
3605
3606 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
3607
3608 * gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and
3609 .FPP.
3610
3611 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
3612
3613 * c-decl.c (grokdeclarator): If pedantic, warn about arrays with
3614 incomplete element type.
3615 (grokparms): Before checking for incomplete parameter type, check
3616 the type isn't error_mark_node.
3617
3618 2000-12-01 Jakub Jelinek <jakub@redhat.com>
3619
3620 * builtins.c (target_char_cast): New function.
3621 (expand_builtin_strchr): Use it.
3622 (expand_builtin_strrchr): Use it.
3623 (builtin_memset_read_str): New function.
3624 (expand_builtin_memset): Use target_char_cast.
3625 Try to optimize memset with second argument non-zero using
3626 store_by_pieces.
3627
3628 2000-11-30 Marek Michalkiewicz <marekm@linux.org.pl>
3629
3630 * install.texi (avr): Replace incomplete list of supported MCU
3631 types with a link to the current one ...
3632 * invoke.texi (AVR Options): ... here. Update -mmcu= to list
3633 all supported MCU types. Document -minit-stack= default.
3634 Document new options -mno-tablejump, -mtiny-stack.
3635 * md.texi (AVR family): Fix typo in 'w' constraint letter
3636 description. Document 'q'. Update 'O'.
3637
3638 2000-12-01 Bernd Schmidt <bernds@redhat.co.uk>
3639
3640 * combine.c (cant_combine_insn_p): Only disallow insns involving
3641 hard regs if they are reg-reg moves.
3642 (try_combine, can_combine_p, combinable_i3pat): Delete old
3643 SMALL_REGISTER_CLASSES tests.
3644
3645 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
3646
3647 * config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
3648 whether X is a CONST_INT.
3649 (addsubcosts): Likewise.
3650
3651 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
3652 mis-used XINT.
3653 (ARG_POINTER_REGNUM): Set to AP_REG.
3654
3655 2000-11-30 Alexandre Oliva <aoliva@redhat.com>
3656
3657 * config/sh/sh.md (fpu_switch0, fpu_switch1, movpsi, fpu_switch,
3658 splits): Only match on TARGET_SH4.
3659
3660 * combine.c (try_combine): Disregard USEs when updating LOG_LINKS
3661 of subsequent insns.
3662
3663 2000-11-30 Richard Henderson <rth@redhat.com>
3664
3665 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
3666 * config/alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
3667
3668 2000-11-30 Richard Henderson <rth@redhat.com>
3669
3670 * config/alpha/elf.h (ASM_OUTPUT_SECTION_NAME): Copy elfos.h defn.
3671 (DO_SELECT_SECTION): New.
3672 (SELECT_SECTION): Use it.
3673 (UNIQUE_SECTION_P): New.
3674 (UNIQUE_SECTION): New.
3675
3676 2000-11-30 Alexandre Oliva <aoliva@redhat.com>
3677
3678 * c-common.c (status_warning) [! ANSI_PROTOTYPES]: Load status
3679 from va_list before using it.
3680
3681 2000-11-30 Michael Matz <matzmich@cs.tu-berlin.de>
3682
3683 * flow.c (make_edge): Early out, if no flags to set.
3684 (calculate_global_regs_live): Clear out garbage only when necessary.
3685
3686 * simplify-rtx.c (varray_type used_regs): New.
3687 (clear_table): Use it to only clear necessary items.
3688 (cselib_lookup, cselib_record_set): Remember newly set items.
3689 (cselib_update_varray_sizes, cselib_init): Initialize and grow
3690 used_regs.
3691
3692 * local-alloc.c (update_equiv_regs): New local `cleared_regs'.
3693 Move clearing of dead regs out of insn-loop.
3694
3695 2000-11-30 Richard Henderson <rth@redhat.com>
3696
3697 * calls.c (expand_call): Emit queued insns before creating
3698 the tail recursion sequence.
3699
3700 2000-11-30 J. David Anglin <dave.anglin@nrc.ca>
3701 Bruce Korb <bkorb@gnu.org>
3702
3703 * fixinc/inclhack.def(): prevent dual double definition protection
3704 * fixinc/fixincl.x: regenerate
3705
3706 2000-11-29 Loren J. Rittle <ljrittle@acm.org>
3707
3708 * fixinc/Makefile.in (fixincl.x): Explicitly state the
3709 location of the generated file.
3710
3711 2000-11-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3712
3713 * README.FRESCO: Remove obsolete file.
3714
3715 2000-11-30 Mark Kettenis <kettenis@gnu.org>
3716
3717 * config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
3718 TARGET_LIBGCC2_CFLAGS): Remove. We now use the settings from
3719 config/t-linux for the Hurd.
3720
3721 2000-11-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3722
3723 * config/mn10200/udivmod.c, config/mn10200/divmod.c,
3724 config/mn10200/udivmodsi4.c: Moved from here.
3725 * config/udivmod.c, config/divmod.c, config/udivmodsi4.c: To here.
3726 * config/mn10200/t-mn10200 (LIB2FUNCS_EXTRA): Use the generic
3727 C division functions.
3728 * config/m68hc11/t-m68hc11-gas (LIB2FUNCS_EXTRA): Likewise.
3729
3730 Thu Nov 30 01:12:52 2000 Jeffrey A Law (law@cygnus.com)
3731
3732 * pa.md (conditional moves): Avoid holes in operand list.
3733 (mod, umod patterns): Similarly.
3734 (variable extract/shift patterns): Similarly.
3735
3736 2000-11-30 Neil Booth <neilb@earthling.net>
3737
3738 * objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
3739 maybe_objc_check_decl, build_objc_string_object,
3740 objc_declare_alias, objc_declare_class, build_message_expr,
3741 build_protocol_expr, build_selector_expr, build_encode_expr,
3742 get_class_ivars, start_class, start_protocol): Remove
3743 redundant code, assuming doing_objc_thang is true.
3744
3745 2000-11-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
3746
3747 * pa.c (restore_unscaled_index_insn_codes): Delete procedure.
3748 (record_unscaled_index_insn_codes): Likewise.
3749 (unscaled_index_insn_codes): Delete.
3750 (max_unscaled_index_insn_codes_uid): Delete.
3751 (output_function_prologue, output_function_epilogue, pa_reorg):
3752 Don't use the unscaled index insn hack.
3753
3754 * pa.md: Remove hack from all index insns to reverse the operand
3755 order of frame and stack pointer references incorrectly created
3756 in the reload pass.
3757
3758 * function.h (emit_status): Delete member regno_pointer_flag and
3759 rename regno_pointer_flag_length to regno_pointer_align_length.
3760 Delete define for REGNO_POINTER_FLAG.
3761 * integrate.h (inline_remap): Delete member regno_pointer_flag.
3762 Add member x_regno_reg_rtx.
3763 * rtl.h (rtx_def): Use frame_related bit to indicate register is
3764 a pointer in REG expressions. Define REG_POINTER macro.
3765 * alias.c (find_base_value, find_base_term): Use REG_POINTER
3766 instead of REGNO_POINTER_FLAG.
3767 * combine.c (nonzero_bits, num_sign_bit_copies): Likewise.
3768 * emit-rtl.c (gen_reg_rtx): Use regno_pointer_align_length instead
3769 of regno_pointer_flag_length. Remove code which refers to
3770 regno_pointer_flag.
3771 (mark_reg_pointer): Use REG_POINTER.
3772 (free_emit_status): Remove code which refers to regno_pointer_flag.
3773 (init_emit, mark_emit_status): Likewise.
3774 * flow.c (dump_flow_info): Likewise.
3775 * function.c (preserve_temp_slots): Likewise.
3776 * integrate.c (expand_inline_function, copy_rtx_and_substitute):
3777 Use x_regno_reg_rtx instead of regno_pointer_flag for function
3778 pointer determination in map.
3779 * loop.c (strength_reduce, maybe_eliminate_biv_1): Use REG_POINTER.
3780 * predict.c (estimate_probability): Likewise.
3781 * regclass.c (record_address_regs, reg_scan_mark_refs): Likewise.
3782 * unroll.c (unroll_loop): Use x_regno_reg_rtx instead of
3783 regno_pointer_flag for function pointer determination in map.
3784 * convex.h (RTX_COSTS): Don't test regno_pointer_flag and use
3785 REG_POINTER.
3786 * pa.c (hppa_legitimize_address, emit_move_sequence, basereg_operand):
3787 Use REG_POINTER.
3788 (restore_unscaled_index_insn_codes): Revise comment.
3789
3790 * expr.c (do_compare_and_jump): Add missing TYPE_MODE in statement.
3791
3792 2000-11-30 Joseph S. Myers <jsm28@cam.ac.uk>
3793
3794 * extend.texi: Update documentation for attributes.
3795
3796 2000-11-29 David O'Brien <obrien@FreeBSD.org>
3797
3798 * config/alpha/elf.h (IDENT_ASM_OP): Protect the #define.
3799 (ASM_DECLARE_OBJECT_NAME): Same.
3800 (ASM_FILE_END): Same.
3801 (ASM_FINISH_DECLARE_OBJECT): Same.
3802 (ASM_IDENTIFY_GCC): Same.
3803 (ASM_IDENTIFY_LANGUAGE): Same.
3804 (ASM_OUTPUT_CONSTRUCTOR): Same.
3805 (ASM_OUTPUT_DEF): Same.
3806 (ASM_OUTPUT_DESTRUCTOR): Same.
3807 (ASM_OUTPUT_EXTERNAL_LIBCALL): Same.
3808 (ASM_OUTPUT_SECTION_NAME): Same.
3809 (ASM_WEAKEN_LABEL): Same.
3810 (BSS_SECTION_ASM_OP): Same.
3811 (COMMON_ASM_OP): Same.
3812 (CONST_SECTION_ASM_OP): Same.
3813 (CONST_SECTION_FUNCTION): Same.
3814 (CTORS_SECTION_ASM_OP): Same.
3815 (DTORS_SECTION_ASM_OP): Same.
3816 (ESCAPES): Same.
3817 (FINI_SECTION_ASM_OP): Same.
3818 (IDENT_ASM_OP): Same.
3819 (IDENT_ASM_OP): Same.
3820 (INIT_SECTION_ASM_OP): Same.
3821 (INT_ASM_OP): Same.
3822 (MAX_OFILE_ALIGNMENT): Same.
3823 (SBSS_SECTION_ASM_OP): Same.
3824 (SDATA_SECTION_ASM_OP): Same.
3825 (SECTION_FUNCTION_TEMPLATE): Same.
3826 (SELECT_SECTION): Same.
3827 (SE_CONST_SECTION): Same.
3828 (SIZE_ASM_OP): Same.
3829 (SKIP_ASM_OP): Same.
3830 (STRING_ASM_OP): Same.
3831 (STRING_LIMIT): Same.
3832 (TYPE_ASM_OP): Same.
3833 (TYPE_OPERAND_FMT): Same.
3834
3835 2000-11-29 Neil Booth <neilb@earthling.net>
3836
3837 * c-decl.c (c_decode_option): Don't handle -lang-objc.
3838 * objc/lang-options.h: Remove -lang-objc.
3839 * objc/lang-specs.h: Don't pass -lang-objc to cc1obj.
3840 * objc/objc-act.c (lang_init_options): Set c_language.
3841
3842 2000-11-29 Jakub Jelinek <jakub@redhat.com>
3843
3844 * expr.c (can_store_by_pieces): Reinitialize max_size for reverse
3845 tests.
3846
3847 2000-11-29 Neil Booth <neilb@earthling.net>
3848
3849 * c-pragma.c (init_pragma): Update for parse_in type change.
3850
3851 2000-11-29 Laurynas Biveinis <lauras@softhome.net>
3852
3853 * configure.in: recognize DOS-style absolute paths.
3854
3855 2000-11-29 Jakub Jelinek <jakub@redhat.com>
3856
3857 * expr.h (store_by_pieces): Add prototype.
3858 (can_store_by_pieces): Likewise.
3859 * expr.c (struct store_by_pieces): Renamed from clear_by_pieces.
3860 (can_store_by_pieces): New.
3861 (store_by_pieces): New.
3862 (clear_by_pieces): New.
3863 (clear_by_pieces_1): New.
3864 (store_by_pieces_1): Renamed from clear_by_pieces, handle storing
3865 arbitrary compiler generated constants into memory block.
3866 (store_by_pieces_2): Renamed from clear_by_pieces_1, likewise.
3867 * builtins.c (c_readstr): New.
3868 (builtin_memcpy_read_str): New.
3869 (expand_builtin_memcpy): If src is string constant and
3870 emit_block_move would move it by pieces, compute integer constants
3871 from the string and store it into memory block instead.
3872 (builtin_strncpy_read_str): New.
3873 (expand_builtin_strncpy): If N is not constant zero and c_strlen does
3874 not return INTEGER_CST, don't optimize.
3875 If N is larger than strlen(src) + 1, try to copy the string
3876 including padding with store_by_pieces.
3877 (expand_builtin_strcmp): If both arguments have side effects, don't
3878 optimize.
3879 (expand_builtin_fputs): If STR has side effects, don't optimize.
3880
3881 2000-11-29 Richard Earnshaw <rearnsha@arm.com>
3882
3883 * arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
3884 Add use of link register.
3885
3886 2000-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
3887
3888 * extend.texi: Update documentation for default format attributes.
3889
3890 Tue Nov 28 21:56:45 2000 Jeffrey A Law (law@cygnus.com)
3891
3892 * pa/pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
3893 a list, to keep track of the sections.
3894
3895 2000-11-28 Nick Clifton <nickc@redhat.com>
3896
3897 * config/arm/arm.md (pic_load_addr): Split into
3898 pic_load_addr_arm and pic_load_addr_thumb.
3899
3900 * config/arm/arm.c (legitimize_pic_address): Generate either
3901 ARM or Thumb versions of pic_load_addr.
3902 (arm_finalize_pic): Generate either ARM or Thumb versions of
3903 pic_load_addr.
3904
3905 2000-11-28 Richard Henderson <rth@redhat.com>
3906
3907 * calls.c (expand_call): Defer const/pure NO_DEFER_POP until
3908 after sibcall do_pending_stack_adjust.
3909
3910 Wed Nov 29 00:08:23 2000 J"orn Rennecke <amylaar@redhat.com>
3911
3912 * jump.c (delete_insn): Check that REG_LABEL note actually contains
3913 a CODE_LABEL.
3914
3915 2000-11-28 Neil Booth <neilb@earthling.net>
3916
3917 * c-common.h: Remove flag_digraphs.
3918 * c-decl.c: Remove flag_digraphs.
3919 (c_decode_option): Don't set it.
3920 * c-lex.c (init_c_lex): Don't do anything for digraphs.
3921
3922 2000-11-28 Richard Henderson <rth@redhat.com>
3923
3924 * c-parse.in (finish_parse): Update for parse_in type change.
3925 (_yylex): Likewise.
3926
3927 2000-11-28 Neil Booth <neilb@earthling.net>
3928
3929 * cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
3930 indicating whether to scan all buffers on the stack or
3931 just one.
3932 * cppinit.c (do_includes): Update.
3933 * cppmain.c (main): Update.
3934 * cpplib.h: Update prototype.
3935
3936 2000-11-28 Richard Henderson <rth@redhat.com>
3937
3938 * genoutput.c (validate_insn_operands): New.
3939 (gen_insn): Call it.
3940
3941 * config/alpha/alpha.md (divmodsi_internal): Renumber operands.
3942 (divmoddi_internal): Likewise.
3943 * config/arm/arm.md (andsi3_compare0_scratch): Likewise.
3944 * config/i960/i960.md (branch patterns): Likewise.
3945 * config/ia64/ia64.md (tbit_and_0): Likewise.
3946 (tbit_and_1, tbit_or_0, tbit_or_1): Likewise.
3947 * config/m68k/m68k.md (zero_extract memory patterns): Likewise.
3948 * config/mips/mips.md (divmodsi4_internal): Likewise.
3949 (divmoddi4_internal): Likewise.
3950 * config/rs6000/rs6000.md (call patterns): Likewise.
3951 * config/sh/sh.md (movsi_y): Likewise.
3952 * config/sparc/sparc.md: Comment out if 0 v8p shift pattern.
3953
3954 2000-11-28 Richard Henderson <rth@redhat.com>
3955
3956 * config.gcc: Kill residual pyramid support.
3957
3958 2000-11-28 Neil Booth <neilb@earthling.net>
3959
3960 * c-lex.h (parse_in): Change parse_in to a cpp_reader *.
3961 * c-decl.c (c_decode_option): Update to match.
3962 * c-lex.c (init_c_lex, yyparse): Update to match.
3963 * c-lang.c (lang_init_options): Use cpp_create_reader.
3964 * cppinit.c (cpp_init): Rename initialize.
3965 (cpp_reader_init): Rename cpp_create_reader. Create the
3966 reader. Initialize cpplib if appropriate.
3967 * cpplib.h (cpp_create_reader) New prototype.
3968 (cpp_init, cpp_reader_init): Delete prototypes.
3969 * cppmain.c (general_init, setup_callbacks): New functions.
3970 (main): Use them.
3971 * fix-header.c (scan_in): Change type to cpp_reader *.
3972 (read_scan_file): Update for new cpplib interface and scan_in type.
3973
3974 * cp/decl.c (parse_in): Change to cpp_reader *.
3975 (lang_decode_option): Update.
3976 * cp/lex.c (lang_init_options): Use new cpplib interface.
3977 (init_cp_pragma, finish_parse, handle_pragma_implementation): Update.
3978 * cp/spew.c (read_token): Update.
3979 * objc/objc-act.c (lang_init_options): Update new cpplib interface.
3980
3981 2000-11-28 Jakub Jelinek <jakub@redhat.com>
3982
3983 * loop.c (load_mems): Avoid using next_label to find end_label. If
3984 jumping outside of the loop (other than loop end), don't hoist MEMs
3985 out of loop.
3986
3987 2000-11-28 Jan Hubicka <jh@suse.cz>
3988
3989 * calls.c (expand_call): Don't disable tail recursion based
3990 on the loop nest.
3991
3992 2000-11-28 Neil Booth <neilb@earthling.net>
3993
3994 * tradcpp.c (enum node_type): New hash types T_ASSERT, T_UNASSERT.
3995 (struct directive): Drop 4th argument from handlers.
3996 (do_define, do_line, do_include, do_undef, do_else, do_elif,
3997 do_endif): Similarly.
3998 (do_assert, do_unassert, do_ifdef, do_ifndef): New handlers.
3999 (do_ifxdef): Update as common handler of do_ifdef and do_ifndef.
4000 (make_definition, make_undef): Take a const char*.
4001 (make_assertion): New function.
4002 (struct directive_table): Update.
4003 (main): Handle -A command line argument.
4004 (handle_directive): Drop fourth handler argument.
4005
4006 2000-11-28 Bernd Schmidt <bernds@redhat.co.uk>
4007
4008 * simplify-rtx.c (cselib_record_sets): Ignore sets whose destination
4009 is anything but REG or MEM, but look inside STRICT_LOW_PART.
4010
4011 Tue Nov 28 09:53:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4012
4013 * system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
4014 (IS_ABSOLUTE_PATHNAME): New macro.
4015 * gcc.c (find_a_file, process_command, do_spec_1, main): Use it.
4016
4017 2000-11-28 Jakub Jelinek <jakub@redhat.com>
4018
4019 * config/i386/i386.md (truncxfsf2_2): Fix predicate.
4020
4021 2000-11-27 Jim Wilson <wilson@redhat.com>
4022
4023 * reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.
4024
4025 2000-11-27 Matthias Klose <doko@cs.tu-berlin.de>
4026
4027 * extend.texi (Nested Functions): Update URL of Usenix paper.
4028
4029 2000-11-27 Mark Mitchell <mark@codesourcery.com>
4030
4031 * function.c (free_after_compilation): Clear x_clobber_return_insn.
4032
4033 2000-11-27 Neil Booth <neilb@earthling.net>
4034
4035 * cppinit.c (cpp_reader_init): Remove handling of warn_paste
4036 command line options.
4037 (cpp_handle_option): Similarly.
4038 * cpplib.h (struct cpp_options): Remove warn_paste.
4039 * cppmacro.c (paste_tokens): Apart from assembler, make
4040 unpasteable token warning mandatory.
4041
4042 2000-11-27 Neil Booth <neilb@earthling.net>
4043
4044 * tradcpp.c (enum pending_dir_t, struct pending_dir): New.
4045 (main): Allocate a pending directive set of these. Use it.
4046 Merge handling of -D and -U. Update handling of pending
4047 directives. Free the memory after use.
4048
4049 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
4050
4051 * flow.c (entry_exit_blocks): Add entry for cond_local_set.
4052 (struct propagate_block_info): Add new member cond_local_set.
4053 (propagate_block): Accept new arg cond_local_set. All callers
4054 changed.
4055 (init_propagate_block_info): Likewise.
4056 (calculate_global_regs_live): Allocate & free cond_local_set. Always
4057 rescan if there's overlap between cond_local_set and new_live_at_end.
4058 (mark_set_1): Set bits either in cond_local_set or local_set, as
4059 appropriate.
4060 * basic-block.h (struct basic_block_def): New field cond_local_set.
4061 (propagate_block, init_propagate_block_info): Update prototypes.
4062
4063 Mon Nov 27 17:29:44 2000 kaz Kojima <kkojima@rr.iij4u.or.jp>
4064
4065 * gcc/config/sh/sh.md (udivsi3_i4, udivsi3_i4_single): Clobber
4066 T register.
4067
4068 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
4069
4070 * arm.c (select_dominance_cc_mode): Handle new way that combine
4071 canonicalizes conditional compares.
4072 (arm_select_cc_mode): Likewise.
4073 * arm.md: Garbage collect some dead code.
4074 (cmp_and, cmp_ior): New patterns.
4075 (splitter for conditional move with inverted false): Use cond_exec
4076 and handle unordered comparisons.
4077
4078 Mon Nov 27 17:22:56 MET 2000 Jan Hubicka <jh@suse.cz>
4079
4080 * i386.c (ix86_force_to_memory, ix86_free_from_memory): New.
4081 * i386-protos.h (ix86_force_to_memory, ix86_free_from_memory): Declare
4082 * i386.md (float?i?f, int/fp operations): Rewrite spliters to use
4083 ix86_force_to_memory and ix86_free_from_memory.
4084
4085 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
4086
4087 * arm.md (arm_adddi3, adddi_sesidi_di, adddi_zesidi_di, arm_addsi3,
4088 arm_subsi3_insn, anddi_zesidi_di, arm_andsi3_insn, anddi_notdi_di,
4089 anddi_notzesidi_di, anddi_notsesidi_di, arm_iorsi3,
4090 one_cmpldi2): Merge with splitters to create define_insn_and_split
4091 patterns. Remove redundant splits.
4092 (peephole2 for add:SI of invalid immediate): New.
4093 (peephole2 for minus:SI of invalid immediate): New.
4094 (peephole2 for ior:SI of invalid immediate): New.
4095 (peephole for merge of move and compare): Convert ot peephole2.
4096 (addsf3, adddf3): Mark as commutative.
4097
4098 * arm.md (thumb peephole for merging stack adjustments): Convert to
4099 peephole2.
4100
4101 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
4102
4103 * haifa-sched.c (print_pattern): Prettier output for COND_EXEC.
4104
4105 * reload1.c (reload_cse_simplify_set): Pass down mode to cselib_lookup.
4106 (reload_cse_simplify_operands): Do nothing about operands where both
4107 the operand and the match_operand fail to give us a mode.
4108 * simplify-rtx.c (wrap_constant): New function.
4109 (entry_and_rtx_equal_p): Except integer constants to come wrapped in a
4110 CONST describing the proper mode.
4111 (rtx_equal_for_cselib_p): Pass down modes to recursive calls of
4112 cselib_lookup.
4113 (cselib_lookup_mem): Call wrap_constant on the rtx that is passed to
4114 htab_find_slot_with_hash.
4115 (cselib_lookup): Likewise.
4116
4117 Based on a patch from Geoff Keating <geoffk@redhat.com>:
4118 * loop.c (basic_induction_var): If a REG is set from something
4119 that is not a biv, then the REG is not a biv. Even if it is
4120 earlier set from something that is a biv.
4121
4122 2000-11-27 Alexandre Oliva <aoliva@redhat.com>
4123
4124 * configure.in (extra_objs): Enclose extra_headers in quotes.
4125 * configure: Rebuilt.
4126
4127 2000-11-27 Neil Booth <neilb@earthling.net>
4128
4129 * c-lex.c (cb_enter_file, cb_leave_file, cb_rename_file):
4130 Combine into the new function cb_change_file.
4131 (init_c_lex): Update.
4132 * cppfiles.c (stack_include_file): Use _cpp_do_file_change.
4133 (cpp_syshdr_flags): Delete.
4134 * cpphash.h (_cpp_do_file_change): New prototype.
4135 Move struct cpp_buffer here from...
4136 * cpplib.h (struct cpp_buffer): ... here.
4137 (enum cpp_fc_reason, struct cpp_file_loc,
4138 struct_cpp_file_change, change_file): New.
4139 (enter_file, leave_file, rename_file, cpp_syshdr_flags): Delete.
4140 * cpplib.c (do_line): Update for new cb_change_file callback.
4141 (_cpp_do_file_change): New function.
4142 (_cpp_pop_buffer): Update to use it.
4143 * cppmain.c (move_printer): Delete.
4144 (main): Set up single callback cb_change_file.
4145 (cb_enter_file, cb_leave_file, cb_rename_file): Delete.
4146 (cb_change_file): New.
4147 * fix-header.c (cur_file, cb_change_file): New.
4148 (recognized_function, read_scan_file): Update.
4149 * scan-decls.c (scan_decls): Update.
4150 * scan.h (recognized_function): Update prototype.
4151
4152 2000-11-26 Mark Mitchell <mark@codesourcery.com>
4153
4154 * tree.h (mark_tree_hashtable): New function.
4155 * tree.c (mark_tree_hashtable_entry): New function.
4156 (mark_tree_hashtable): Likewise.
4157
4158 2000-11-27 Michael Meissner <meissner@redhat.com>
4159
4160 * d30v-protos.h (srelational_si_operator): Correctly spell
4161 function.
4162 (urelational_si_operator): Ditto.
4163 (relational_si_operator): Ditto.
4164 (d30v_expand_prologue): Add prototype.
4165 (d30v_expand_epilogue): Ditto.
4166
4167 * d30v.h (OPTIMIZATION_OPTIONS): Undo November 22nd change.
4168
4169 * d30v.md (movcccc_*): Delete now unused patterns.
4170 (64 bit comparison splitters): Rewrite to use COND_EXEC instead of
4171 IF_THEN_ELSE.
4172 (define_cond_exec): Use 'b' to select branch flags.
4173
4174 2000-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4175
4176 * builtins.c (expand_builtin_strncmp, expand_builtin_strncpy): New
4177 functions.
4178 (expand_builtin): Handle BUILT_IN_STRNCPY and BUILT_IN_STRNCMP.
4179
4180 * builtins.def (BUILT_IN_STRNCPY, BUILT_IN_STRNCMP): New entries.
4181
4182 * c-common.c (c_common_nodes_and_builtins): Declare builtin
4183 strncpy and strncmp.
4184
4185 * extend.texi (strncmp, strncpy): Document new builtins.
4186
4187 2000-11-26 Mark Mitchell <mark@codesourcery.com>
4188
4189 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
4190 a list, to keep track of the sections.
4191 * tm.texi (ASM_OUTPUT_SECTION_NAME): Document the fact that the
4192 parameter provided will always be a canonical string.
4193
4194 2000-11-26 Neil Booth <neilb@earthling.net>
4195
4196 * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
4197 current buffer.
4198
4199 2000-11-26 Joseph S. Myers <jsm28@cam.ac.uk>
4200
4201 * makefile.vms: Remove EGCS references.
4202
4203 2000-11-26 Ulrich Drepper <drepper@redhat.com>
4204
4205 * dwarf2out.c (output_file_names): New function. Compute minimal
4206 combination of directory and file name table and emit them.
4207 (output_line_info): Remove code to emit directory and file name
4208 table and call output_file_names instead.
4209 (file_info_cmp): Helper function to sort directory names.
4210
4211 2000-11-26 Neil Booth <neilb@earthling.net>
4212
4213 * cpplib.h (struct cpp_reader): Remove lang_asm.
4214 (struct cpp_options): Remove c89. New members lang,
4215 extended_numbers.
4216 * cppexp.c (parse_number): Use them.
4217 * cpphash.h (VALID_SIGN): Use them.
4218 * cppinit.c (set_lang, cpp_start_read): Update.
4219 * cpplex.c (parse_string, _cpp_lex_token): Update.
4220 * cpplib.c (_cpp_handle_directive): Update.
4221 * cppmacro.c (parse_args): Update.
4222 * cppmain.c (scan_buffer): Update.
4223
4224 Sun Nov 26 10:02:37 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4225
4226 * fold-const.c (fold, case CONVERT_EXPR): Always return tree of
4227 proper type.
4228
4229 2000-11-26 Neil Booth <neilb@earthling.net>
4230
4231 * Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
4232 * c-decl.c: Remove parse_in declaration.
4233 * c-lang.c: Similarly.
4234 * c-lex.c: Similarly.
4235 * c-parse.in: Similarly.
4236 * c-pragma.c: Similarly.
4237 * configure.in: Similarly.
4238 * cp/Make-lang.in: Similarly.
4239 * cp/spew.c: Similarly.
4240 * cp/decl2.c: Remove check for lang-c++ option.
4241 * cp/lang-specs.h: Remove -lang-c++ from cc1plus command line.
4242 * cp/lex.c (lang_init_options): With cpp_reader_init, default to C++.
4243 * c-lex.h: Add declaration of parse_in.
4244 * cppinit.c: Call set_lang after allocating pfile->pending.
4245 * configure: Regenerate.
4246
4247 2000-11-25 Zack Weinberg <zack@wolery.stanford.edu>
4248
4249 * combine.c (try_combine): Remove redundant test.
4250
4251 2000-11-25 Richard Henderson <rth@redhat.com>
4252
4253 * c-common.h (DECL_C_HARD_REGISTER): New.
4254 * c-decl.c (finish_decl): Set it for asm register variables.
4255 * c-semantics.c (emit_local_var): Test it when instantiating one.
4256
4257 2000-11-25 Richard Henderson <rth@redhat.com>
4258
4259 * c-decl.c (c_expand_body): Use DECL_SOURCE_LINE rather than
4260 lineno for the start of the function.
4261
4262 2000-11-25 Richard Henderson <rth@redhat.com>
4263
4264 * dwarf2out.c (file_table, file_table_allocated): Remove.
4265 (file_table_allocated): Remove.
4266 (struct file_table): New.
4267 (decl_file_table, line_file_table): New.
4268 (print_dwarf_line_table): Use them.
4269 (size_of_line_prolog): Likewise.
4270 (output_line_info): Likewise.
4271 (add_src_coords_attributes): Likewise.
4272 (gen_subprogram_die): Likewise.
4273 (gen_variable_die): Likewise.
4274 (dwarf2out_add_library_unit_info): Likewise.
4275 (dwarf2out_line): Likewise.
4276 (lookup_filename): Take a struct file_table argument.
4277 (init_file_table): New.
4278 (dwarf2out_init): Use it.
4279
4280 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
4281
4282 * invoke.texi: Update sequence points references.
4283
4284 2000-11-25 Neil Booth <neilb@earthling.net>
4285
4286 * c-common.c: Remove USE_CPPLIB conditional inclusions.
4287 * c-common.h: Similarly.
4288 * c-decl.c: Similarly.
4289 * c-lang.c: Similarly.
4290 * c-lex.c: Similarly.
4291 * c-parse.in: Similarly.
4292 * c-pragma.c: Similarly.
4293 * c-pragma.h: Similarly.
4294 * gcc.c: Similarly.
4295 * toplev.c: Similarly.
4296 * cp/cp-tree.h: Similarly.
4297 * cp/decl2.c: Similarly.
4298 * cp/lang-specs.h: Similarly.
4299 * cp/lex.c: Similarly.
4300 * cp/lex.h: Similarly.
4301 * cp/spew.c: Similarly.
4302 * java/lang-options.h: Similarly.
4303 * objc/lang-specs.h: Similarly.
4304 * objc/objc-act.c: Similarly.
4305
4306 * configure.in: Remove configure option.
4307 * config.in: Regenerate.
4308 * configure: Regenerate.
4309
4310 2000-11-25 Richard Henderson <rth@redhat.com>
4311
4312 * haifa-sched.c (sched_analyze_1, sched_analyze_2, sched_analyze):
4313 Revert 2000-11-22 change.
4314
4315 2000-11-25 Bernd Schmidt <bernds@redhat.co.uk>
4316
4317 * config/i386/i386.h (FIXED_REGS): Make the three flags registers
4318 fixed.
4319
4320 2000-11-25 Philipp Thomas <pthomas@suse.de>
4321 * configure.in (ALL_LINGUAS): Remove en_GB and add sv.
4322 * configure: Rebuilt.
4323
4324 2000-11-25 Jakub Jelinek <jakub@redhat.com>
4325
4326 * config/sparc/sparc.md (muldi3_v8plus): Remove H constraint.
4327 Handle CONST_INT as second argument.
4328 * config/sparc/sparc.c (set_extends): Remove first argument.
4329 Properly handle AND, CONST_INT and CONST_DOUBLE, handle IOR, XOR and
4330 MOV.
4331 (sparc_check_64): Abort if first argument is not REG.
4332 If it is DImode REG, look at the lower register of the register
4333 pair.
4334
4335 * config/sparc/sparc.c (load_pic_register, restore_regs,
4336 output_return, sparc_v8plus_shift, sparc_function_profiler,
4337 sparc_function_block_profiler, sparc_block_profiler): Fix output
4338 formatting.
4339
4340 2000-11-25 Alexandre Oliva <aoliva@redhat.com>
4341
4342 * config/sh/sh.h (TARGET_NONE): New.
4343 (TARGET_SWITCHES): For all variant-selecting switch, use
4344 TARGET_NONE to reset all other variant-selecting switch. Added
4345 empty strings to avoid warnings.
4346 (TARGET_DEFAULT): Set to SH1_BIT.
4347
4348 * Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for
4349 insn-codes.h.
4350
4351 * gcc/config/sh/sh.md (sibcalli, sibcalli_pcrel): New insns.
4352 (sibcall_pcrel): New insn_and_split.
4353 (sibcall, sibcall_value, sibcall_epilogue): New expands.
4354
4355 * config/sh/sh.md (GOTaddr2picreg, symGOT2reg, symGOTOFF2reg,
4356 symPLT_label2reg, call, call_value): Don't set
4357 current_function_uses_pic_offset_table.
4358 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't mark
4359 PIC_OFFSET_TABLE_REGNUM as call_used, so that calc_live_regs
4360 takes it into account.
4361 (FINALIZE_PIC): Delete, useless.
4362 (LEGITIMATE_CONSTANT_P): Delete, unused.
4363 * config/sh/sh.c (sh_expand_prologue): Don't use
4364 current_function_uses_pic_offset_table. Don't special-case
4365 PIC_OFFSET_TABLE_REGNUM. Initialize it if it's ever live and
4366 PIC is enabled.
4367 (sh_expand_epilogue, initial_elimination_offset): Don't
4368 special case PIC_OFFSET_TABLE_REGNUM.
4369
4370 2000-11-25 Alexandre Oliva <aoliva@redhat.com>, NIIBE Yutaka <gniibe@m17n.org>
4371
4372 * config/sh/sh-protos.h (symbol_ref_operand): Declare.
4373 * config/sh/sh.md (UNSPEC_CALLER): New constant.
4374 (calli_pcrel, call_valuei_pcrel): Use PIC_REG.
4375 (call_pcrel, call_value_pcrel): New insn_and_splits.
4376 (call, call_value): Use them.
4377 (call_site): New expand.
4378 (sym_label2reg, symPLT_label2reg): Adjust to hold call_sites.
4379 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA) [UNSPEC_CALLER]:
4380 Output call_site label.
4381 (PREDICATE_CODES): Added symbol_ref_operand.
4382 * config/sh/sh.c (symbol_ref_operand): Define.
4383 * emit-rtl.c (try_split): Propagate CALL_INSN_FUNCTION_USAGE
4384 to CALL_INSNs in the split sequence.
4385
4386 2000-11-24 Nick Clifton <nickc@redhat.com>
4387
4388 * config.gcc (v850-*-*): Define c_target_objs and
4389 cxx_target_objs.
4390
4391 * config/v850/t-v850: Define how to build v850-c.o
4392
4393 * config/v850/v850.h (struct data_area_stack_element): Move
4394 definition here from v850.c.
4395
4396 * config/v850v850.c: Include gcc.h to avoid compile time
4397 warning.
4398 (push_data_area): Move to v850-c.c.
4399 (pop_data_area): Move to v850-c.c.
4400 (mark_current_function_as_interrupt): Move to v850-c.c.
4401 (GHS_default_section_names): Allow to be exported.
4402 (GHS_current_section_names): Allow to be exported.
4403 (data_area_stack_elements): Allow to be exported.
4404 (ghs_pragma_section): Move to v850-c.c.
4405 (ghs_pragma_interrupt): Move to v850-c.c.
4406 (ghs_pragma_starttda): Move to v850-c.c.
4407 (ghs_pragma_startsda): Move to v850-c.c.
4408 (ghs_pragma_startzda): Move to v850-c.c.
4409 (ghs_pragma_endtda): Move to v850-c.c.
4410 (ghs_pragma_endsda): Move to v850-c.c.
4411 (ghs_pragma_endzda): Move to v850-c.c.
4412
4413 * config/v850/v850-c.c: New file: Contains v850 specific
4414 pragma parsing functions.
4415
4416 2000-11-24 Nick Clifton <nickc@redhat.com>
4417
4418 * config.gcc (extra_objs): Remove duplicate description.
4419 (c_target_objs): New variable. Contains target specific
4420 object files for the gcc C compiler only.
4421 (cxx_target_objs): New variable. Contains target specific
4422 object files for the gxx C++ compiler only.
4423
4424 * configure.in (c_target_objs): Substitute in the makefile.
4425 (cxx_target_objs): Substitute in the makefile.
4426 * configure: Regenerate.
4427
4428 * Makefile.in (C_TARGET_OBJS): Define and initialise from
4429 c_target_objs.
4430 (CXX_TARGET_OBJS): Define and initialise from
4431 cxx_target_objs.
4432 (C_AND_OBJC_OBJS): Include C_TARGET_OBJS.
4433
4434 * cp/Make-lang.in (CXX_C_OBJS): Include CXX_TARGET_OBJS).
4435
4436 * tm.texi (REGISTER_TARGET_PRAGMAS): Add paragraph explaining
4437 about how the use of the 'c_lex' function requires the use of
4438 the target specific, language specific object files feature of
4439 the configuration mechanism.
4440
4441 Fri Nov 24 18:50:58 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4442
4443 * gcc.c (process_command): Use F_OK, not R_OK.
4444
4445 2000-11-24 Arno J. Klaassen <arno@heho.snv.jussieu.fr>
4446
4447 * flow.c (print_rtl_and_abort): Remove ANSIism.
4448
4449 Fri Nov 24 19:54:36 2000 Alexandre Oliva <aoliva@redhat.com>
4450
4451 * config/sh/sh.h (GENERAL_REGISTER_P,
4452 GENERAL_OR_AP_REGISTER_P, FP_REGISTER_P, XD_REGISTER_P,
4453 FP_OR_XD_REGISTER_P, FP_ANY_REGISTER_P): New macros. Use them
4454 all over.
4455 (SPECIAL_REG): Renamed to SPECIAL_REGISTER_P.
4456 * config/sh/sh.c: Use new macros.
4457 * config/sh/sh.md: Likewise.
4458
4459 Fri Nov 24 19:46:16 2000 Alexandre Oliva <aoliva@redhat.com>
4460
4461 * config/sh/sh.md: Clobber MACH_REG and MACL_REG in SImode,
4462 instead of just MACH_REG in DImode. Always refer to FPSCR_REG
4463 in PSImode.
4464
4465 Fri Nov 24 22:37:41 2000 Denis Chertykov <denisc@overta.ru>
4466
4467 * config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
4468 fixed.
4469 (machine_dependent_reorg): Wrong optimization based on
4470 NOTICE_UPDATE_CC removed.
4471
4472 Fri Nov 24 19:48:09 2000 J"orn Rennecke <amylaar@redhat.com>
4473
4474 * jump.c (delete_computation): Re-instate deletion of feeding insn.
4475 (delete_insn): Look for REG_LABEL notes.
4476 (redirect_tablejump): Delete feeding insns.
4477
4478 2000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
4479
4480 * config/i386/i386.md (call_pop_0, call_pop_1, call_value_pop_0,
4481 call_value_pop_1): Make sure operand numbers are contiguous.
4482
4483 * fold-const.c (fold_range_test): Avoid crash if LHS or RHS is null.
4484
4485 * reload1.c (conflicts_with_override): New function.
4486 (emit_input_reload_insns): Use it to tighten test for validity
4487 of substituting into output of previous insn.
4488
4489 * haifa-sched.c (struct ready_list): New.
4490 (ready_lastpos, ready_add, ready_remove_first, ready_sort): New static
4491 functions.
4492 (schedule_insn): Replace args READY and N_READY with a pointer to a
4493 ready_list; return void. Use the new functions to access the ready
4494 list. All callers changed.
4495 (queue_to_ready, debug_ready_list): Likewise.
4496 (schedule_block): Initialize a ready_list structure. Use new
4497 functions to access it.
4498 (max_priority): Remove unused variable.
4499 (schedule_insn): Don't set it.
4500
4501 * c-common.c (verify_tree): Don't recurse into CONSTRUCTORs.
4502
4503 * combine.c (cant_combine_insn_p): New function.
4504 (try_combine): Use it.
4505
4506 * Makefile.in (c-common.o): Depend on $(OBSTACK_H).
4507 * c-common.c (c-obstack.c): Include "obstack.h".
4508 (struct reverse_tree): Delete.
4509 (reverse_list, reverse_max_depth): Delete.
4510 (build_reverse_tree, common_ancestor, modify_ok): Delete functions.
4511 (struct tlist, struct tlist_cache): New.
4512 (tlist_obstack, tlist_firstobj, warned_ids, save_expr_cache): New.
4513 (add_tlist, merge_tlist, verify_tree, warning_candidate_p,
4514 warn_for_collisions, warn_for_collisions_1, new_tlist): New
4515 static functions.
4516 (verify_sequence_points): Rewritten.
4517 * fold-const.c (fold): Don't lose possibly important sequence
4518 points when removing one arm of TRUTH_ORIF_EXPRs or TRUTH_ANDIF_EXPRs.
4519
4520 2000-11-24 Richard Sandiford <rsandifo@redhat.com>
4521
4522 * gcc/cse.c (cse_insn): Removed conversion of REG_EQUIV to REG_EQUAL
4523 when reversing a register-to-register copy. Reversal now disabled
4524 when the previous instruction has a REG_EQUIV.
4525
4526 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
4527
4528 * c-parse.in (unary_expr): Move VA_ARG from here ...
4529 (primary): ... to here.
4530
4531 2000-11-23 Graham Stott <grahams@redhat.com>
4532
4533 * expr.c (store_constructor): If a field is non addressable and
4534 the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.
4535
4536 2000-11-23 Bernd Schmidt <bernds@redhat.co.uk>
4537
4538 * flow.c (print_rtl_and_abort): New function.
4539 (verify_wide_reg, verify_local_live_at_start): Try to dump more
4540 information before aborting.
4541
4542 2000-11-23 Alexandre Oliva <aoliva@redhat.com>
4543
4544 * emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
4545 is narrower than requested mode.
4546 (gen_highpart): Abort if register mode is narrower than
4547 requested mode.
4548
4549 2000-11-23 Graham Stott <grahams@redhat.com>
4550
4551 * cse.c (cse_insn): Initialise all regcost variables.
4552 Fix a typo add missing '='.
4553 Only compare costs if there is a replacement insn.
4554
4555 Thu Nov 23 04:33:33 2000 Alexandre Oliva <aoliva@redhat.com>
4556
4557 * final.c (output_addr_const) [LABEL_REF]: Simplify.
4558 [MINUS]: Enclose non-CONST_INTs in parentheses.
4559 [default]: Try OUTPUT_ADDR_CONST_EXTRA.
4560 * tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
4561 * varasm.c (decode_rtx_const) [CONST]: If it's not something
4562 PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
4563 instead of abort()ing.
4564 * sh.c (output_pic_addr_const): Removed. Fixed all callers.
4565 * sh.h (OUTPUT_ADDR_CONST_EXTRA): New. Handle the UNSPECs
4566 formerly handled in output_pic_addr_const.
4567 * sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
4568 operands of MINUS in CONSTs so that decode_rtx_const() will
4569 accept them.
4570
4571 Thu Nov 23 04:10:30 2000 Alexandre Oliva <aoliva@redhat.com>
4572
4573 * config/sh/sh.md (mova_const): New pattern.
4574 (GOTaddr2picreg): Use it.
4575 * config/sh/sh.c (broken_move): Match it.
4576 (mova_p): Don't match it.
4577 (machine_dependent_reorg): Adjust it.
4578
4579 Thu Nov 23 02:09:09 2000 Alexandre Oliva <aoliva@redhat.com>
4580
4581 * config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
4582 Moved most register-number #defines...
4583 * config/sh/sh.md (define_constants): ... here. Use macros to
4584 refer to registers and unspecs.
4585 * config/sh/sh.c: Likewise.
4586
4587 Thu Nov 23 01:01:32 2000 J"orn Rennecke <amylaar@redhat.com>
4588
4589 * Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
4590 (rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
4591 (alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
4592 (splay-tree.o, hash.o): Likewise.
4593 GCONFIG_H: New.
4594 (rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
4595 (bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
4596 (hashtab.o): Likewise.
4597 (gcov.o): Depend on $(CONFIG_H).
4598 * configure.in: #include insn-codes.h in tm.h.
4599
4600 2000-11-22 Nick Clifton <nickc@redhat.com>
4601
4602 * config/arm/arm.c (arm_encode_call_attribute): Make 'newstr' a
4603 const char * to avoid a compile time warning.
4604
4605 * config/arm/arm.md (define_constants): Define symbolic names for
4606 the link register, last integer register and the fake CC register.
4607 Update patterns to use these symbolic names.
4608
4609 2000-11-22 Neil Booth <neilb@earthling.net>
4610
4611 * cpplex.c (trigraph_ok): Ensure we don't warn twice.
4612 * cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.
4613
4614 2000-11-22 Richard Henderson <rth@redhat.com>
4615
4616 * haifa-sched.c (sched_analyze_1): Don't special-case calls
4617 for clobbering registers.
4618 (sched_analyze_2): Likewise.
4619 (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.
4620
4621 2000-11-22 Chris Demetriou <cgd@sibyte.com>
4622 Neil Booth <neilb@earthling.net>
4623
4624 * gcc.c (validate_switches): Validate multiple switches named
4625 in '|' (or) expressions in specs.
4626 (handle_braces): If more than 1 alternative in a '|' spec
4627 matches, call do_spec1 just once.
4628
4629 2000-11-22 Michael Meissner <meissner@redhat.com>
4630
4631 * d30v.h (TARGET_SWITCHES): Add documentation strings.
4632 (TARGET_OPTIONS): Ditto.
4633 (OPTIMIZATION_OPTIONS): Temporarily turn off -frename-registers if
4634 -O3.
4635
4636 Wed Nov 22 06:40:56 2000 Jeffrey A Law (law@cygnus.com)
4637
4638 * pa.c (hppa_encode_label): Account for addition of encoding
4639 character when allocating persistent space for the new label
4640 name.
4641
4642 2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
4643
4644 * Makefile.in, config.gcc, configure.in: Expunge remaining
4645 traces of facility for running MD files through C preprocessor.
4646
4647 2000-11-22 Joseph S. Myers <jsm28@cam.ac.uk>
4648
4649 * gcov.texi: Add magic comments for texi2pod.pl.
4650 * Makefile.in: Add rules to generate and install gcov.1.
4651 * gcov.1: New (generated) file.
4652
4653 2000-11-21 Richard Henderson <rth@redhat.com>
4654
4655 * regrename.c (scan_rtx_reg): Terminate the chain rather than
4656 abort on mark_read with NO_REGS.
4657
4658 2000-11-21 Mike Stump <mrs@wrs.com>
4659
4660 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
4661 compilation with older compilers, such as /bin/cc on SunOS.
4662 * fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
4663
4664 2000-11-21 Richard Henderson <rth@redhat.com>
4665
4666 * varasm.c (record_constant): Pad the constructed
4667 constant_descriptor appropriately.
4668
4669 Wed Nov 22 00:52:55 2000 J"orn Rennecke <amylaar@redhat.com>
4670
4671 * rtl.h (traverse_md_constants): Declare.
4672 (struct md_constant): Define.
4673 * Makefile.in (HOST_RTL): Add hashtab.o .
4674 (OBJS): Add hashtab.o .
4675 (hashtab.o): New rule.
4676 (rtl.o): Depends on HASHTAB_H.
4677 * rtl.c (hashtab.h): #include.
4678 (md_constants): New static variable.
4679 (def_hash, def_name_eq_p, read_constants): New static functions.
4680 (traverse_md_constants): New function.
4681 (read_name): Do constant expansion.
4682 (read_rtx): Recognize define_constants.
4683 * gencodes.c (print_md_constant): New function.
4684 (main): Emit #defines for all constant definitions encountered.
4685 * md.texi (Constant Definitions): New node.
4686 * gensupport.c (xcalloc): New function.
4687
4688 2000-11-21 Richard Henderson <rth@redhat.com>
4689
4690 * config/alpha/alpha.c (alpha_split_tfmode_frobsign): New.
4691 * config/alpha/alpha-protos.h: Declare it.
4692 * config/alpha/alpha.md (abstf_internal): Use it.
4693 (negtf_internal): Likewise.
4694 (andnotdi3): Unstar the name.
4695 (movtf_internal): Add o/G alternative.
4696
4697 2000-11-21 Zack Weinberg <zack@wolery.stanford.edu>
4698
4699 * stringpool.c (stringpool_statistics): Also report number and
4700 percentage of entries which are identifiers.
4701
4702 2000-11-21 Diego Novillo <dnovillo@redhat.com>
4703
4704 * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
4705 visited before visiting it.
4706
4707 2000-11-21 Nick Clifton <nickc@redhat.com>
4708
4709 * config/arm/arm.h: Accept TARGET_CPU_arm9tdmi,
4710 TARGET_CPU_strongarm110 and TARGET_SPU_strongarm1100.
4711
4712 * config.gcc: Accept --with-cpu=arm9 and --with-cpu=arm9tdmi.
4713
4714 2000-11-21 Richard Henderson <rth@redhat.com>
4715
4716 * c-common.c (c_unsafe_for_reeval): New function.
4717 (add_c_tree_codes): Register it.
4718 * c-common.h: Declare it.
4719 * tree.c (lang_unsafe_for_reeval): New hook.
4720 (unsafe_for_reeval): Call it.
4721 * tree.h: Declare it.
4722
4723 2000-11-21 Richard Henderson <rth@redhat.com>
4724
4725 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
4726 references as well.
4727
4728 2000-11-21 Neil Booth <neilb@earthling.net>
4729
4730 * do_includes: Revert to using cpp_read_file.
4731
4732 2000-11-21 Bernd Schmidt <bernds@redhat.co.uk>
4733
4734 * loop.c (consec_sets_giv): If the reg we're examining is anything
4735 but UNKNOWN_INDUCT, do nothing.
4736 Reset the reg's type to UNKNOWN_INDUCT before returning.
4737
4738 Mostly from Vladimir Makarov (vmakarov@redhat.com)
4739 * ia64.md (attr itanium_class): Define insn types as described in
4740 Itanium docs.
4741 (all insn patterns): Use itanium_class, not type attributes.
4742 Occasionally split alternatives as necessary.
4743 (attr type): Compute from new attr itanium_class.
4744
4745 2000-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4746
4747 * tradcpp.c (output_line_command): Mark system headers as such in
4748 `line' commands.
4749
4750 2000-11-21 Jakub Jelinek <jakub@redhat.com>
4751
4752 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
4753 support in as as well.
4754 * configure: Regenerate.
4755
4756 2000-11-20 Richard Henderson <rth@redhat.com>
4757
4758 * c-lex.c (orig_filename): New variable.
4759 (init_c_lex): Set it. Move call to cpp_start_read ...
4760 (yyparse): ... here. New function.
4761 * c-parse.in (yyparse_1): Rename the parser entry point.
4762 * c-tree.h: Declare it.
4763
4764 2000-11-21 Jakub Jelinek <jakub@redhat.com>
4765
4766 * expr.c (do_compare_and_jump): If op0 was replaced by promoted
4767 integer constant, use type of op1 for comparison.
4768
4769 2000-11-20 Stan Shebs <shebs@apple.com>
4770
4771 * config/rs6000/xm-darwin.h: New file, Darwin host definitions.
4772 * config/rs6000/x-darwin: New file, Darwin host fragment.
4773 * config.gcc (powerpc-*-darwin*): New host.
4774 * system.h (HAVE_DESIGNATED_INITIALIZERS): Allow this to be
4775 overridden by a config file.
4776
4777 2000-11-20 Neil Booth <neilb@earthling.net>
4778
4779 * cppmacro.c (paste_tokens): Rename from paste_payloads.
4780 Change token type after pasting spellings.
4781 (paste_all_tokens): Use it.
4782 * gcc.dg/cpp/paste2.c: Update test.
4783 * objc/execute/paste.m: New test.
4784
4785 2000-11-20 Richard Henderson <rth@redhat.com>
4786
4787 * dwarf.h (FMT_CODE): Adjust argument order; fix mapping to
4788 dwarf_subscr_data_formats bits.
4789 * dwarfout.c (simple_type_size_in_bits): Handle a type with
4790 no computed size as size zero.
4791 (field_byte_offset): Likewise.
4792 (subscript_data_attribute): Handle a range with no upper bound.
4793
4794 2000-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4795
4796 * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
4797
4798 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
4799
4800 * c-typeck.c (build_conditional_expr): When merging type
4801 qualifiers for conditional expressions between a pointer and a
4802 pointer to a void type, merge the qualifiers on the target types
4803 rather than the pointer type. Remove obsolete conditioned out
4804 code.
4805
4806 2000-11-20 Neil Booth <neilb@earthling.net>
4807
4808 * c-lang.c (lang_init_options): Update call to
4809 cpp_reader_init.
4810 * cppmain.c (main): Similarly.
4811 * fix-header.c (read_scan_file): Similarly.
4812 * cp/lex.c (lang_init_options): Similarly.
4813 * objc/objc-act.c (lang_init_options): Similarly.
4814 * cppexp.c (parse_number): Only warn for unextended C89.
4815 * cppinit.c (set_lang): New function.
4816 (cpp_reader_init): Take a LANG argument and pass it to set_lang.
4817 (COMMAND_LINE_OPTIONS): New option std=c++98.
4818 (cpp_handle_option): Use set_lang.
4819 * cpplex.c (_cpp_lex_token): Warn pedantically if not C99.
4820 * cppib.h (enum_c_lang): New enumeration. Update comments.
4821
4822 2000-11-20 Will Cohen <wcohen@redhat.com>
4823
4824 * calls.c (expand_call): Clear target only when target is in
4825 hard register and current_function_check_memory_usage is set.
4826
4827 2000-11-20 Bernd Schmidt <bernds@redhat.co.uk>
4828
4829 * toplev.c (rest_of_compilation): Run optimize_mode_switching even
4830 if not optimizing.
4831 * sh.c (emit_sf_insn, emit_df_insn): Just call emit_insn.
4832
4833 2000-11-19 Richard Henderson <rth@redhat.com>
4834
4835 * crtstuff.c (force_to_data): Use array size 1 not 0.
4836
4837 * dwarf2out.c (simple_type_size_in_bits): Handle a type with
4838 no computed size as size zero.
4839 (field_byte_offset): Likewise.
4840
4841 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
4842
4843 * config.gcc: Fix another typo.
4844
4845 2000-11-19 Richard Henderson <rth@redhat.com>
4846
4847 * c-decl.c (grokdeclarator): Support flexible array members.
4848 Use open-ended ranges for these and zero-length arrays.
4849 * c-typeck.c (push_init_level): Validate the context of
4850 initialization of a zero-length array.
4851 * tree.c (int_fits_type_p): Be prepared for missing bounds.
4852 * varasm.c (array_size_for_constructor): New.
4853 (output_constructor): Use it for arrays of unspecified length.
4854 * extend.texi (Zero Length): Mention C99 flexible array members.
4855 Document initialization in a top-level struct as valid.
4856
4857 2000-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
4858
4859 * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
4860
4861 * alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
4862 stdarg and varargs functions.
4863
4864 2000-11-19 Zack Weinberg <zack@wolery.stanford.edu>
4865
4866 * gcc.c (process_command): Define 'j' variable when
4867 MODIFY_TARGET_NAME is defined.
4868
4869 2000-11-19 Richard Henderson <rth@redhat.com>
4870
4871 * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
4872
4873 2000-11-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4874
4875 * rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
4876 calculation and allocation.
4877
4878 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4879
4880 * builtins.c (c_getstr): Constify variable.
4881 * gmon-sol2.c (_mcleanup): Comment out #endif labels.
4882 * conflict.c (const_conflict_graph_arc): New typedef.
4883 (arc_hash, arc_eq): Avoid needlessly casting away const-ness.
4884 * cppmacro.c (builtin_macro): Likewise.
4885 * dwarf2out.c (output_comp_unit): Constify variable.
4886 * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
4887 * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
4888 * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
4889 away const-ness.
4890 * tradcpp.c (rescan, do_line, macroexpand, macarg): Use
4891 ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
4892 * varasm.c (const_str_htab_hash, const_str_htab_eq,
4893 compare_constant_1, record_constant_1): Constify.
4894
4895 2000-11-18 Richard Henderson <rth@redhat.com>
4896
4897 * c-decl.c (grokdeclarator): Special case the creation of an
4898 index for a zero-length array.
4899 * tree.c (build_index_type): Revert Oct 20 change.
4900
4901 2000-11-18 Marek Michalkiewicz <marekm@linux.org.pl>
4902
4903 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
4904 * config/avr/avr.c (jump_tables_size): New variable.
4905 (function_prologue): Initialize it as 0.
4906 (function_epilogue): Add it to function_size.
4907 (avr_output_addr_vec_elt): New function. Count words in jump
4908 tables in jump_tables_size. Move code ...
4909 * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
4910 Call avr_output_addr_vec_elt instead.
4911 * config/avr/avr.md (tablejump): Remove disabled define_expand.
4912
4913 2000-11-18 Mark Mitchell <mark@codesourcery.com>
4914
4915 * configure.in: Make --enable-new-gxx-abi the default.
4916 * configure: Likewise.
4917
4918 2000-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4919
4920 * Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
4921
4922 * tradcif.y: Include tradcpp.h. Constify. Make functions static.
4923 Move extern function declarations to tradcpp.h.
4924
4925 * tradcpp.c: Likewise.
4926
4927 * tradcpp.h: New file.
4928
4929 2000-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
4930
4931 * c-decl.c (check_for_loop_decls): New function.
4932 * c-parse.in (for_init_stmt): New.
4933 (select_or_iter_stmt): Use for_init_stmt.
4934 * c-tree.h (check_for_loop_decls): New declaration.
4935
4936 2000-11-18 Neil Booth <neilb@earthling.net>
4937
4938 * cppinit.c: Update comments.
4939 (cpp_reader_init): Make -imacro and -include use the standard
4940 #include "" search path.
4941 (do_includes): New function.
4942
4943 2000-11-18 Ben Elliston <bje@redhat.com>
4944
4945 * config/sh/crt1.asm (start_l): Move PC-relative move instruction
4946 out of a branch delay slot.
4947
4948 2000-11-17 Richard Henderson <rth@redhat.com>
4949
4950 * config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
4951 (ASM_SPEC): Disable and enable .mdebug based on -gstabs.
4952 (ASM_FILE_START): Only write out ecoff .file directive if
4953 emitting mdebug debugging.
4954
4955 2000-11-17 Richard Henderson <rth@redhat.com>
4956
4957 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New. Detect
4958 whether as accepts .file/.loc and produces dwarf2 line info.
4959 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if
4960 the assembler supports it.
4961 * config.in, configure: Regenerate.
4962
4963 2000-11-17 Richard Henderson <rth@redhat.com>
4964
4965 * fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.
4966
4967 2000-11-17 Jim Wilson <wilson@redhat.com>
4968
4969 * config/ia64/ia64.c (emit_insn_group_barriers, case CALL_INSN):
4970 Don't clear need_barrier is next_insn is a CALL_INSN, or has
4971 instruction type B or UNKNOWN.
4972
4973 2000-11-17 Neil Booth <neilb@earthling.net>
4974
4975 * cpperror.c (print_file_and_line): Don't display line number if 0.
4976
4977 2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
4978
4979 * ggc.h: Delete ggc_add_string_root and ggc_mark_string. Add
4980 digit_vector and digit_string.
4981 * stringpool.c (digit_vector): New.
4982 (ggc_alloc_string): Use digit_string.
4983
4984 * stmt.c (digit_strings): Delete.
4985 (init_stmt): Do not initialize digit_strings.
4986 (expand_asm_operands): Use ggc.h's digit_string macro.
4987 * toplev.c (mark_file_stack): Delete.
4988 (compile_file): Don't call init_tree_codes.
4989 (main): No need to make the file stack a GC root.
4990 * tree.c (init_tree_codes): Delete.
4991 * tree.h (init_tree_codes): Delete.
4992
4993 * c-lex.c: Don't include ggc.h.
4994 (mark_splay_tree_node, mark_splay_tree): Delete.
4995 (init_c_lex): No need to ggc_strdup string constant. Don't add
4996 file_info_tree to GGC roots.
4997 (cb_enter_file, cb_rename_file): No need to ggc_strdup
4998 ip->nominal_fname.
4999
5000 * Makefile.in (c-lex.o): No longer depends on $(GGC_H).
5001
5002 * dbxout.c (dbxout_init),
5003 dwarf2out.c (dwarf2out_line),
5004 ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
5005 varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
5006 xcoffout.c (xcoffout_source_file),
5007 i386.c (load_pic_register):
5008 Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
5009
5010 * except.c (create_rethrow_ref),
5011 profile.c (init_edge_profiler),
5012 toplev.c (compile_file),
5013 varasm.c (named_section, assemble_static_space,
5014 assemble_trampoline_template, output_constant_def, force_const_mem),
5015 i386.c (load_pic_register),
5016 ia64.c (ia64_encode_section_info),
5017 rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
5018 rs6000_emit_prologue, rs6000_emit_epilogue),
5019 rs6000.md (load_toc_aix_si, load_toc_aix_di):
5020 Change ggc_alloc_string (var, -1) to ggc_strdup (var).
5021
5022 * profile.c (output_func_start_profiler),
5023 tree.c (make_node),
5024 i386.c (load_pic_register): No need to ggc_strdup string constant.
5025
5026 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
5027
5028 * Makefile.in (config.status): Depend on config.gcc.
5029 * configure.in <for machine in $build $host $target>: Move
5030 contents of loop into config.gcc, removing autoconf quoting.
5031 Fix changequote bug for alpha*-*-vxworks*.
5032 * configure: Regenerate.
5033 * config.gcc: New.
5034
5035 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
5036
5037 * c-parse.in (if_prefix): Find the filename and line number at
5038 $-2 and $-1 respectively.
5039 * diagnostic.c (error_recursion): Add missing newline, use
5040 fputs, translate string.
5041
5042 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
5043
5044 * stringpool.c: New file.
5045 * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
5046 (ggc_alloc_string): Now in stringpool.o.
5047 * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
5048 * ggc.h: Delete prototype of ggc_add_string_root. #define
5049 ggc_add_string_root and ggc_mark_string to nothing. Prototype
5050 init_stringpool and stringpool_statistics.
5051 (ggc_alloc_string): Returns a const char *.
5052 * tree.c (hash_table, do_identifier_warnings): Delete.
5053 (init_obstacks): Don't initialize the identifier hash table.
5054 (get_identifier, maybe_get_identifier, start_identifier_warnings,
5055 set_identifier_size): Now in stringpool.c.
5056 * tree.h (struct tree_string): Constify pointer field.
5057 (approx_sqrt): Prototype.
5058
5059 * Makefile.in (stringpool.o): Add rule, mention in OBJS.
5060
5061 * toplev.c (approx_sqrt): New function.
5062 (compile_file): Call stringpool_statistics if mem_report is on.
5063 (main): Call init_stringpool.
5064
5065 * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
5066 (process_directive), c-typeck.c (constructor_asmspec, struct
5067 initializer_stack, start_init), except.c (create_rethrow_ref),
5068 stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
5069 (built_in_filename), varasm,c (in_named_name,
5070 assemble_static_space, struct constant_descriptor, struct
5071 deferred_string, struct pool_constant, force_const_mem),
5072 i386.c (pic_label_name, global_offset_table_name), rs6000.c
5073 (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
5074
5075 * c-common.c (combine_strings): Combine strings in scratch
5076 buffer, then pass to build_string.
5077 * optabs.c (init_libfuncs), profile.c (init_edge_profiler,
5078 output_func_start_profiler), stmt.c (init_stmt), alpha.c
5079 (alpha_need_linkage), arm.c (arm_encode_call_attribute),
5080 i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
5081 rs6000.c (rs6000_encode_section_info): Create string in
5082 scratch buffer, then pass to ggc_alloc_string.
5083
5084 * stmt.c (expand_asm_operands): If we must adjust the
5085 constraint strings, do so by creating a new one, not by
5086 modifying the old one in place. Constify some char *s.
5087 * config/pa/pa.c (hppa_encode_label): Drop unnecessary second
5088 argument. Create string in scratch buffer, then pass to
5089 ggc_alloc_string.
5090 * config/pa/pa-protos.h: Update prototype.
5091 * config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
5092 hppa_encode_label takes only one argument.
5093
5094 2000-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5095
5096 * mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not
5097 malloc/realloc.
5098
5099 * cpplib.c (glue_header_name): Likewise.
5100
5101 * fixincl.c (run_compiles, start_fixer): Likewise.
5102
5103 * fixlib.c (load_file_data): Likewise.
5104
5105 * mkdeps.c (munge): Likewise.
5106
5107 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
5108
5109 * defaults.h [EH_FRAME_SECTION_ASM_OP] (EH_FRAME_SECTION): Remove
5110 trailing ';'. Fix formatting.
5111
5112 2000-11-16 Jim Wilson <wilson@redhat.com>
5113
5114 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT, MASK_INLINE_DIV_THR):
5115 Shift masks left by one to avoid conflict.
5116
5117 * config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with
5118 DECL_EXTERNAL set.
5119
5120 2000-11-16 Nick Clifton <nickc@redhat.com>
5121
5122 * config/arm/arm.c (output_arm_prologue): Note nested functions.
5123 (arm_expand_prologue): For nested functions preserve the
5124 static chain register during stack frame creation.
5125
5126 * config/arm/arm.h (STATIC_CHAIN_REGNUM): Change to 12.
5127 (ARM_INITIAL_FRAME_ELIMINATION_OFFSET): For a nested function
5128 with a stack frame there is a 4 byte gap between the arg
5129 pointer and the hard frame pointer (used to preserve the
5130 static chain register during stack frame creation).
5131
5132 2000-11-16 DJ Delorie <dj@redhat.com>
5133
5134 * rtl.c (read_rtx): Provide suitable names for unnamed
5135 define_insn and define_insn_and_split patterns, based on file
5136 and line numbers.
5137
5138 2000-11-15 Neil Booth <neilb@earthling.net>
5139
5140 * cpplib.c (start_directive, end_directive): New functions.
5141 (_cpp_handle_directive, run_directive): Use them.
5142 (_cpp_handle_directive): Don't -Wtraditional on indented
5143 null directives.
5144 (_cpp_push_buffer): Don't re-clear was_skipping.
5145 * cpplib.h (struct cpp_reader): New member la_saved.
5146 * cppmacro.c (cpp_get_token): Don't interpret _Pragma in
5147 directives.
5148
5149 gcc.dg/cpp/_Pragma1.c: Update.
5150 gcc.dg/cpp/_Pragma2.c: New test.
5151
5152 2000-11-15 Mark Mitchell <mark@codesourcery.com>
5153
5154 * toplev.c (wrapup_global_declarations): Don't write out
5155 artificial static variables that aren't needed.
5156
5157 2000-11-15 Bernd Schmidt <bernds@redhat.co.uk>
5158
5159 * ia64.c (struct group): New structure.
5160 (last_group): New static array.
5161 (group_idx): New static variable.
5162 (emit_group_barrier_after, errata_find_address_regs, errata_emit_nops):
5163 New static functions.
5164 (emit_insn_group_barriers): Initialize and keep track of group_idx
5165 and last_group.
5166 Call errata_emit_nops if TARGET_B_STEP or TARGET_A_STEP.
5167 Replace all calls to emit_insn_after that emit a group barrier to use
5168 emit_group_barrier_after.
5169 * ia64.h (MASK_B_STEP): New.
5170 (other MASK_XXX macros): Renumbered.
5171 (TARGET_B_STEP): New.
5172 (TARGET_SWITCHES): Add -mb-step.
5173
5174 2000-11-15 Fred Fish <fnf@be.com>
5175
5176 * fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
5177 machines for which fixincludes is not needed.
5178 * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
5179
5180 2000-11-15 Jason Merrill <jason@redhat.com>
5181
5182 * diagnostic.c (finish_abort): New fn.
5183 (fancy_abort, error_recursion): Use it.
5184 * toplev.c (crash_signal): Likewise.
5185 * diagnostic.h: Declare it.
5186
5187 2000-11-13 Andrew Haley <aph@redhat.com>
5188
5189 * tree.c (build_type_no_quals): New function.
5190 * tree.h (build_type_no_quals): Declare.
5191 * c-common.c (c_get_alias_set): When considering type
5192 compatibility for pointer types, ignore cv-qualifiers anywhere in
5193 a pointer chain.
5194
5195 2000-11-15 Graham Stott <grahams@redhat.com>
5196
5197 * regrename.c (scan_rtx_rtx): Skip to the next chain on
5198 encountering a terminated chain.
5199
5200 2000-11-14 Mark Mitchell <mark@codesourcery.com>
5201
5202 * configure.in: Move check for V3 above check for C++ header-file
5203 directory.
5204 * configure: Regenerated.
5205
5206 2000-11-14 DJ Delorie <dj@redhat.com>
5207
5208 * config/v850/v850.c: Remove obstacks.
5209
5210 Tue Nov 14 21:54:31 2000 Marek Michalkiewicz <marekm@linux.org.pl> & Denis Chertykov <denisc@overta.ru>
5211
5212 * config/avr/avr.c (avr_case_values_threshold): New.
5213 (avr_override_options): Set it depending on options, make it large
5214 when not optimizing to work around "unable to generate reloads".
5215
5216 * config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
5217 (EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
5218 executable if not AVR_MEGA. Make sure jump tables are word-aligned.
5219 (JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
5220 (ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
5221 (avr_case_values_threshold): Declare as extern int.
5222 (CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.
5223
5224 * config/avr/avr.md (tablejump): Removed.
5225 (*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
5226 (*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
5227 index in the table, not multiplied by 2.
5228 (casesi): Change to match the above insns. Always enable.
5229
5230 * config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
5231 Change to expect the word address of the table, multiply it by 2
5232 here and not in the caller. Change "adiw" to faster "inc".
5233
5234 2000-11-14 Neil Booth <neilb@earthling.net>
5235
5236 * cppexp.c (parse_defined): Call cpp_get_token not
5237 _cpp_get_token.
5238 (lex): Similarly.
5239 * cpplex.c (cpp_output_line): Similarly.
5240 * cpplib.c (glue_header_name, do_line, do_ident,
5241 parse_answer, parse_assertion): Similarly.
5242 (_cpp_handle_diretive): Don't save to lookaheads
5243 when processing directives.
5244 * cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
5245 _cpp_get_token.
5246 (funlike_invocation_p): Don't save to lookaheads
5247 when pre-expanding arguments.
5248 (_cpp_get_token): Delete.
5249 (cpp_get_token): Merge contents of _cpp_get_token.
5250
5251 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5252
5253 * builtins.c (expand_builtin_setjmp): Set
5254 current_function_calls_setjmp.
5255 (expand_builtin_longjmp): Set current_function_calls_longjmp.
5256
5257 * config/sparc/sparc.md (builtin_setjmp_setup): New expand.
5258 (do_builtin_setjmp_setup): New insn.
5259
5260 Tue Nov 14 12:34:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5261
5262 * tree.c (get_unwidened): Use host_integerp and tree_low_cst.
5263 (int_fits_type_p): For variable bounds, call force_fit_type.
5264
5265 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5266
5267 * varasm.c (struct deferred_string): New structure.
5268 (const_str_htab): New variable.
5269 (STRHASH): New macro.
5270 (mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
5271 constr_str_htab_eq, const_str_htab_del): New functions.
5272 (output_constant_def): Add DEFER argument, defer string
5273 constants until mark_constant_pool time if requested.
5274 (mark_constant_pool): Walk the insn chain even if const_str_htab is
5275 not empty.
5276 (mark_constants): If a SYMBOL_REF for deferred string is found,
5277 output it and remove from hash table.
5278 (output_addressed_constants): Set DEFER to 0 in call to
5279 output_constant_def.
5280 * rtl.h (STRING_POOL_ADDRESS_P): Define.
5281 (output_constant_def): Adjust prototype.
5282 * expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.
5283
5284 2000-11-14 Chandrakala Chavva <cchavva@redhat.com>
5285
5286 * optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
5287 signed types if flag_trapv.
5288
5289 2000-11-14 Zack Weinberg <zack@wolery.stanford.edu>
5290
5291 * tradcpp.c, tradcif.y: Update FSF mailing address, delete
5292 reference to GPLv1.
5293
5294 2000-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
5295
5296 * c-common.h (CTI_C_SIZE_TYPE): Update comment.
5297
5298 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5299
5300 * varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
5301 to array of pool_constnat pointers.
5302 (struct pool_constant): Add next_sym and label members.
5303 (struct pool_sym): Remove.
5304 (init_varasm_status): Change pool_sym into pool_constant.
5305 (mark_pool_constant): Mark pc->label string as well.
5306 (mark_pool_sym_hash_table): Remove.
5307 (mark_varasm_status): Remove it from caller as well.
5308 (free_varasm_status): Don't free pool_sym structures.
5309 (force_const_mem): Don't allocate pool_sym structure, instead
5310 fill pool->label and chain it into rtx_sym hash table.
5311 (find_pool_constant, mark_constant_pool): Use pool_constant instead
5312 of pool_sym.
5313
5314 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5315
5316 * reload1.c (emit_input_reload_insns): Honour forcing of constants
5317 into memory by PREFERRED_RELOAD_CLASS NO_REGS.
5318
5319 2000-11-14 Michael Matz <matzmich@cs.tu-berlin.de>
5320
5321 * dominance.c: New file.
5322 * Makefile.in (OBJS): Add dominance.o.
5323
5324 * flow.c (compute_flow_dominators): Remove.
5325 (compute_immediate_dominators): Remove.
5326 (compute_immediate_postdominators): Remove.
5327 * basic-block.h: Remove their prototypes.
5328 (calculate_dominance_info): Add prototype.
5329
5330 * dce.c (eliminate_dead_code): Change calls to above functions.
5331 Don't compute dominators but only immediate dominators.
5332 * flow.c (flow_loops_find): Change callers.
5333 * gcse.c (compute_code_hoist_data): Likewise.
5334 * haifa-sched.c (schedule_insns): Likewise.
5335 * ifcvt.c (if_convert): Likewise.
5336 * ssa.c (convert_to_ssa): Likewise, and only compute immediate
5337 dominators.
5338
5339 2000-11-14 Richard Henderson <rth@redhat.com>
5340
5341 * stmt.c (warn_if_unused_value): Don't warn if the expression
5342 has side effects.
5343
5344 * c-typeck.c (c_sizeof): Fold result to c_size_type_node.
5345 (c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.
5346
5347 2000-11-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5348
5349 * loop.c (basic_induction_var): Revert accidental checkin.
5350
5351 2000-11-13 Hans-Peter Nilsson <hp@axis.com>
5352
5353 * c-lex.c (cb_leave_file): Harmonize conditions and order of
5354 statements to those of process_directive for (action == act_pop).
5355
5356 * collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS.
5357
5358 * local-alloc.c (equiv_init_movable_p): References to CC0 are not
5359 movable.
5360
5361 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5362
5363 * c-parse.in (stmts_and_decls): Deprecate use of label at end of
5364 compound statement.
5365
5366 2000-11-13 Neil Booth <neilb@earthling.net>
5367
5368 * cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF
5369 cases return without MI check.
5370 * cpplib.c (do_diagnostic): Take boolean of whether to
5371 print the directive name.
5372 (do_error, do_warning): Update.
5373 (do_pragma_dependency): Use it.
5374 * cpplib.h (VARARGS_FIRST): Delete.
5375 (struct cpp_token): Delete integer.
5376 * cppmacro.c (enter_macro_context): Move disabled check
5377 to _cpp_get_token.
5378 (_cpp_get_token): Simplify into a single loop.
5379
5380 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
5381
5382 * configure.in: Use 'test -f' not '[ -e'.
5383 * configure: Regenerated.
5384
5385 2000-11-13 DJ Delorie <dj@redhat.com>
5386
5387 * config/mn10300/mn10300.md (store_movm): Note which registers are
5388 really used or clobbered.
5389
5390 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5391
5392 * c-parse.in (ends_in_label): Remove from %union and %type.
5393 (decls, stmts, lineno_stmt_or_labels, xstmts,
5394 lineno_stmt_or_label, stmt_or_label): Remove.
5395 (stmts_and_decls, lineno_stmt_decl_or_labels_ending_stmt,
5396 lineno_stmt_decl_or_labels_ending_decl,
5397 lineno_stmt_decl_or_labels_ending_label,
5398 lineno_stmt_decl_or_labels_ending_error,
5399 lineno_stmt_decl_or_labels, compstmt_contents_nonempty,
5400 lineno_stmt, lineno_label): New.
5401 (compstmt_nostart): Use compstmt_contents_nonempty.
5402
5403 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5404
5405 * c-common.c (boolean_increment): New function.
5406 * c-common.h (enum c_tree_index): Add CTI_C_BOOL_TYPE,
5407 CTI_C_BOOL_TRUE and CTI_C_BOOL_FALSE.
5408 (c_bool_type_node, c_bool_true_node, c_bool_false_node): Define.
5409 (boolean_increment): Declare.
5410 * c-convert.c (convert): Allow for BOOLEAN_TYPE.
5411 * c-decl.c (init_decl_processing): Create boolean nodes.
5412 (finish_struct): Allow for _Bool bitfields.
5413 * c-parse.in (reswords): Add _Bool.
5414 (rid_to_yy): Allow for RID_BOOL.
5415 * c-typeck.c (default_conversion): Make booleans promote to int.
5416 (convert_arguments, build_unary_op, build_modify_expr,
5417 convert_for_assignment): Allow for booleans.
5418 * ginclude/stdbool.h: Make conforming to C99.
5419
5420 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5421
5422 * c-parse.in (c99_block_start, c99_block_end,
5423 c99_block_lineno_labeled_stmt): New.
5424 (simple_if, do_stmt_start): Use c99_block_lineno_labeled_stmt.
5425 (stmt): Split off selection and iteration statements into...
5426 (select_or_iter_stmt): New. Use c99_block_lineno_labeled_stmt.
5427
5428 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5429
5430 * invoke.texi (-Wtrigraphs, -fdump-translation-unit, -save-temps,
5431 -time): Update.
5432
5433 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
5434
5435 * arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
5436 Rewrite to avoid use of match_dup. Don't try to tie registers that
5437 are not in the same mode.
5438
5439 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5440
5441 * invoke.texi: Update lists of languages and suffixes supported.
5442
5443 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5444
5445 * configure.in: Take toplevel configure arguments from the
5446 environment to create configargs.h and substitute
5447 gcc_config_arguments, taking account of any existing configargs.h
5448 if reconfiguring.
5449 * configure: Regenerate.
5450 * gccbug.in: Include toplevel configure arguments in gccbug.
5451
5452 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
5453
5454 * varasm.c (struct constant_descriptor): Put CONTENTS inside a
5455 union to make it well-aligned. Update all uses.
5456
5457 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5458
5459 * c-parse.in (initelt): Give appropriate pedantic warnings,
5460 depending on flag_isoc99, for non-ISO syntax and for C99 syntax
5461 outside C99 mode.
5462 (designator): If pedantic, pedwarn for a designator specifying a
5463 range of elements.
5464 * c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
5465 these cases.
5466 * extend.texi: Document the C99 syntax as the preferred syntax,
5467 and the pre-2.5 syntax as obsolete. Mention use of designator
5468 lists for nested subobjects.
5469
5470 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
5471
5472 * diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
5473 Add ATTRIBUTE_PRINTF.
5474 * tradcpp.c (v_message, warning, error, fatal, error_with_line):
5475 Add ATTRIBUTE_PRINTF*.
5476
5477 2000-11-12 Mark Mitchell <mark@codesourcery.com>
5478
5479 * function.c (assign_parms): When calling put_var_into_stack, make
5480 sure that there are no hidden pending sequences.
5481
5482 2000-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5483
5484 * builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
5485 BUILT_IN_RINDEX. Add missing checks for BUILT_IN_STRCHR and
5486 BUILT_IN_STRRCHR.
5487
5488 * builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.
5489
5490 * c-common.c (c_common_nodes_and_builtins): Declare index and
5491 rindex when nonansi builtins are allowed.
5492
5493 * extend.texi (index, rindex): Document new builtins.
5494
5495 2000-11-12 Mark Mitchell <mark@codesourcery.com>
5496
5497 * configure.in: Turn on libstdc++ V3 by default.
5498 * configure: Regenerated.
5499
5500 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
5501
5502 2000-11-12 Jakub Jelinek <jakub@redhat.com>
5503
5504 * reload1.c (set_label_offsets): Go inside of PARALLELs.
5505
5506 2000-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
5507
5508 * invoke.texi: Clean up option summary.
5509
5510 2000-11-12 Nick Clifton <nickc@redhat.com>
5511
5512 * config/mcore/mcore.c: Fix comment formating, and adjust sequence
5513 of #include headers.
5514
5515 2000-11-12 Marc Espie <espie@openbsd.org>
5516
5517 * configure.in: Fix filds test.
5518 * configure: Regen.
5519
5520 2000-11-12 Mark Mitchell <mark@codesourcery.com>
5521
5522 * jump.c (delete_computation): Don't assume that just becuase an
5523 instruction sets a register, that register is dead.
5524
5525 2000-11-12 Neil Booth <neilb@earthling.net>
5526
5527 * cppexp.c: Don't worry about pfile->skipping.
5528 * cpplib.c (struct if_stack): Make was_skipping unsigned char.
5529 (cpp_handle_directive): Save pfile->skipping in struct cpp_buffer
5530 for handled directives.
5531 (skip_rest_of_line): Use _cpp_lex_token after popping contexts
5532 and releasing lookaheads.
5533 (do_ifdef, do_ifndef, do_if): Use buffer->was_skipping.
5534 (do_else, do_elif, push_conditional): Update logic.
5535 (do_endif): Set buffer->was_skipping rather than pfile->skipping.
5536 (unwind_if_stack): Inline into cpp_pop_buffer.
5537 (cpp_push_buffer): Clear ifs->was_skipping for cpp_handle_directive.
5538 * cpplex.c (_cpp_lex_token): Clear skipping on EOF. Handle
5539 multiple-include optimisation.
5540 * cpplib.h (struct cpp_buffer): New member was_skipping.
5541 * cppmacro.c (_cpp_get_token): Loop whilst pfile->skipping. This
5542 works because skipping == 0 in directives.
5543 (_cpp_release_lookahead): Renamed from release_lookahead.
5544 (cpp_get_token): No need to check skipping as _cpp_get_token does
5545 this for us. No need to handle MI optimisation.
5546
5547 Sat Nov 11 21:14:02 2000 Mark P Mitchell <mark@codesourcery.com>
5548
5549 * fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
5550 declarations that use `__MATH_EXCEPTION' in their prototypes, too.
5551 * fixinc/fixincl.x: Regenerated.
5552
5553 2000-11-11 Bruce Korb <bkorb@gnu.org>
5554
5555 * fixinc/inclhack.def (avoid_bool_type): avoid commenting out #endif
5556 (avoid_wchar_t_type): ditto
5557 * fixinc/fixinc.irix: obsoleted
5558
5559 2000-11-11 Zack Weinberg <zack@wolery.stanford.edu>
5560
5561 * configure.in: Don't add $outputs to all_lang_makefiles. Add
5562 $srcdir/$s/Makefile.in if it exists.
5563 * configure: Regenerate.
5564
5565 Sat Nov 11 18:41:20 2000 Mark P Mitchell <mark@codesourcery.com>
5566
5567 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
5568
5569 2000-11-11 Jason Merrill <jason@redhat.com>
5570
5571 * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to
5572 give the parm a register and then call put_var_into_stack.
5573 * stmt.c (expand_decl): Likewise.
5574
5575 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
5576
5577 * gcc.texi: Adjust wording.
5578
5579 2000-11-11 Mark Mitchell <mark@codesourcery.com>
5580
5581 * fixinc/inclhack.def (avoid_wchar_t_type): New fix.
5582 * fininc/fixincl.x: Regenerated.
5583
5584 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
5585
5586 * invoke.texi: Correct spelling of -foptimize-register-move.
5587
5588 2000-11-11 Neil Booth <neilb@earthling.net>
5589
5590 Remove CPP_PLACEMARKERs.
5591
5592 * cppexp.c (lex): Don't handle CPP_PLACEMARKER.
5593 * cpplex.c (_cpp_lex_token): Rename skip_newlines to next_bol
5594 * cpplib.c (skip_rest_of_line, check_eol, cpp_push_buffer):
5595 Similarly.
5596 * cpplib.h: Remove CPP_PLACEMARKER.
5597 (struct lexer_state): Rename skip_newlines to next_bol.
5598 * cppmacro.c (stringify_arg): Don't handle CPP_PLACEMARKER.
5599 Simplify prev_white handling as a result.
5600 (paste_all_tokens): Don't worry about CPP_PLACEMARKERs.
5601 (parse_arg): Empty arguments are now empty, not CPP_PLACEMARKERs.
5602 (parse_args): Similarly. Update argument count tests.
5603 (enter_macro_context): Return 2 to indicate an empty macro.
5604 (replace_args): Don't bother pre-expanding an empty argument.
5605 Handle placemarkers and ## extension during pre-expansion.
5606 (cpp_get_token): Handle empty macro expansions. Don't worry
5607 about CPP_PLACEMARKERs.
5608 (_cpp_create_definition): Empty macros are now empty.
5609 (cpp_macro_defintion): Don't special case empty macros.
5610 * scan-decls.c: Don't bother with CPP_PLACEMARKERs.
5611 * c-lex.c: Similarly.
5612
5613 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
5614
5615 * gcc.texi, invoke.texi: Add new section discussing language
5616 standards; link to it where appropriate; refer to ISO C instead of
5617 ANSI C.
5618
5619 2000-11-11 Alexandre Oliva <aoliva@redhat.com>
5620
5621 * builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY
5622 into account.
5623
5624 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP
5625 modes.
5626
5627 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
5628
5629 * gcc.texi, gcov.texi: Update dates and version numbers.
5630
5631 2000-11-10 Zack Weinberg <zack@wolery.stanford.edu>
5632
5633 * configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
5634 flex and bison, specifically, first in a unified build and
5635 then installed on the system.
5636 * Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
5637 LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
5638 match.
5639
5640 (collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
5641 cppdefault.o): Remove pointless sed munging of source file
5642 name.
5643
5644 2000-11-10 Bernd Schmidt <bernds@redhat.co.uk>
5645
5646 * reload.c (find_reloads_address_1, case POST_MODIFY): Use RELOAD_OTHER
5647 for address reloads. Push replacements for REG_INC notes.
5648 (regno_clobbered_p): New arg SETS. Examine SETs if it's nonzero. All
5649 callers changed.
5650 * reload1.c (choose_reload_regs): Registers set in the insn can't be
5651 used for RELOAD_OTHER reloads.
5652
5653 2000-11-10 Mark Mitchell <mark@codesourcery.com>
5654
5655 * c-dump.h: New file.
5656
5657 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5658
5659 * alpha.c (check_float_value): Use memcpy, not bcopy.
5660 * arm.c (output_move_double): Likewise.
5661 * arm.md: Likewise.
5662 * m88k.c (legitimize_operand): Likewise.
5663 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
5664 * m88k.md: Likewise.
5665 * mips.c (override_options): Likewise.
5666 * mips.md: Likewise.
5667 * romp.c (output_fpops): Likewise.
5668 * rs6000.c (rs6000_override_options): Likewise.
5669 * sh.md: Likewise.
5670 * vax.c (check_float_value): Likewise.
5671
5672 * emit-rtl.c (copy_rtx_if_shared, init_emit_once): Likewise.
5673 * expmed.c (synth_mult): Likewise.
5674 * final.c (add_bb_string): Likewise.
5675 * genattr.c (main): Likewise.
5676 * genattrtab.c (attr_string, simplify_cond, copy_rtx_unchanging):
5677 Likewise.
5678 * jump.c (thread_jumps): Likewise.
5679 * prefix.c (save_string): Likewise.
5680 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Likewise.
5681 * regclass.c (init_reg_sets, init_reg_sets_1): Likewise.
5682 * reload1.c (reload, eliminate_regs): Likewise.
5683
5684 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
5685
5686 * gcc.texi (Service): Update to reflect current practice and
5687 location of the GNU service directory.
5688
5689 2000-11-09 Bernd Schmidt <bernds@redhat.co.uk>
5690
5691 * regrename.c (build_def_use): Mark contents of REG_INC notes as
5692 needing replacement.
5693
5694 * config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Emit
5695 a no-op move if regs are equal.
5696 * toplev.c (rest_of_compilation): Do the noop moves elimination pass
5697 when calling jump after post-reload splitting.
5698
5699 2000-11-09 Jan van Male <jan.vanmale@fenk.wau.nl>
5700
5701 * c-tree.texi: Fix typos.
5702 * extend.texi: Likewise
5703 * gcov.texi: Likewise
5704 * rtl.texi: Likewise
5705 * tm.texi: Likewise
5706
5707 2000-11-09 Hans-Peter Nilsson <hp@axis.com>
5708
5709 * c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
5710 in_system_header and flags[1] before dereferencing flags[2].
5711
5712 2000-11-09 Matthew Hiller <hiller@redhat.com>
5713
5714 * reload1.c (reload_combine): Fixed calculation of
5715 first_index_reg, last_index_reg.
5716
5717 2000-11-09 Mark Mitchell <mark@codesourcery.com>
5718
5719 * c-dump.c (dequeue_and_dump): Dump function bodies.
5720
5721 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
5722 (c-dump.o): New target.
5723 * c-common.h (flag_dump_translation_unit): New variable.
5724 (C_TYPE_QUALS): New macro.
5725 (strip_array_types): New function.
5726 (DECL_C_BIT_FIELD): New macro.
5727 (SET_DECL_C_BIT_FIELD): Likewise.
5728 (CLEAR_DECL_C_BIT_FIELD): Likewise.
5729 (dump_info_p): New typedef.
5730 (dump_tree_fn): Likewise.
5731 (lang_dump_tree): New variable.
5732 (dump_node_to_file): New function.
5733 * c-common.c (flag_dump_translation_unit): Define it.
5734 (strip_array_types): New function.
5735 * c-decl.c (c_decode_option): Handle -fdump-translation-unit.
5736 * c-lang.c (finish_file): Call dump_node_to_file if
5737 flag_dump_translation_unit.
5738 * c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
5739 * c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
5740 * c-dump.c: New file.
5741
5742 2000-11-09 Christopher Faylor <cgf@cygnus.com>
5743
5744 * config/i386/cygwin.h: Add mingw startfile prefix.
5745
5746 2000-11-09 Richard Henderson <rth@redhat.com>
5747
5748 * flow.c (invalidate_mems_from_set): Split out from ...
5749 (mark_set_1): ... here.
5750 (try_pre_increment_1): Use it. Use propagate_block_delete_insn
5751 instead of turning insn into a NOTE_INSN_DELETED.
5752
5753 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
5754
5755 * extend.texi, invoke.texi: Move documentation of builtin versions
5756 of C library functions to one place and update.
5757
5758 2000-11-09 Richard Henderson <rth@redhat.com>
5759
5760 * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
5761 the types themselves to discover type equivalence.
5762
5763 2000-11-09 Mike Stump <mrs@wrs.com>
5764
5765 * Makefile.in (distclean): Remove a few extra leftovers.
5766
5767 2000-11-09 Richard Henderson <rth@redhat.com>
5768
5769 * recog.c (validate_replace_rtx_1): Consider subregs when
5770 replacing a register with a constant inside a sign/zero_extend.
5771
5772 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5773
5774 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
5775
5776 * c-decl.c (finish_struct): When a structure is completed,
5777 check all its variant types for completeness.
5778
5779 2000-11-09 Neil Booth <neilb@earthling.net>
5780
5781 * cpphash.c: Move cpp_defined here from cpplib.c.
5782 * cpplib.c: Update comments, move cpp_defined to cpphash.c.
5783 * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
5784 * cppmacro.c (cpp_get_token): Update comments, no need now
5785 to catch the CPP_EOF meaning EOL case.
5786
5787 2000-11-08 Geoffrey Keating <geoffk@redhat.com>
5788
5789 * config/sparc/sparc.c (sparc_va_arg): When the required alignment
5790 is more than that provided, copy to a temporary.
5791
5792 2000-11-09 Alexandre Oliva <aoliva@redhat.com>
5793
5794 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
5795 interpreting $out as a macro assignment.
5796 * Makefile.in (T_TARGET): New auxiliary macro and target.
5797 (all): Add a target right in the beginning, so that we don't build
5798 T_TARGET by default.
5799
5800 2000-11-09 Graham Stott <grahams@redhat.com>
5801
5802 * config/i386/i386.md (mmx_pinsrw): Output operands in correct
5803 order for -mintel-syntax. Remove comment now that the operand
5804 order has been checked.
5805 (mmx_pextrw): Likewise.
5806 (mmx_pshufw): Likewise.
5807
5808 2000-11-09 Jakub Jelinek <jakub@redhat.com>
5809
5810 * builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
5811 (c_getstr): New function.
5812 (expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
5813 If both arguments are constant string, optimize out.
5814 (expand_builtin_strchr, expand_builtin_strrchr): New functions.
5815 (expand_builtin_strpbrk): Use c_getstr, do nothing if
5816 -fcheck-memory-usage.
5817 (expand_builtin_fputs): Likewise.
5818 (expand_builtin_strcmp): Add MODE argument.
5819 Use even if !HAVE_cmpstrsi.
5820 Optimize the case when both arguments are constant strings.
5821 (expand_builtin): Adjust expand_builtin_strcmp caller.
5822 Call expand_builtin_strchr and expand_builtin_strrchr.
5823 * c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
5824 builtins.
5825 * builtins.def (BUILT_IN_STRRCHR): Add.
5826
5827 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5828
5829 * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
5830
5831 2000-11-09 Joseph S. Myers <jsm28@cam.ac.uk>
5832
5833 * calls.c (expand_call, emit_library_call_value_1), collect2.c
5834 (scan_prog_file), config/a29k/a29k.c (print_operand),
5835 config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
5836 instead of bcopy ().
5837 * real.h: Use memcmp () instead of bcmp ().
5838 * config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
5839 (split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
5840 ultrasparc_sched_init, ultrasparc_sched_reorder),
5841 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
5842 instead of bzero ().
5843 * config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
5844 instead of rindex ().
5845 * configure.in: Don't check for bzero, bcmp, index or rindex.
5846 * configure, config.in: Regenerate.
5847 * system.h: Don't include declarations for bzero, bcmp, index or
5848 rindex.
5849 * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
5850 bzero, bcmp, index or rindex.
5851
5852 Wed Nov 8 21:58:20 2000 Christopher Faylor <cgf@cygnus.com>
5853
5854 * config/i386/cygwin.h: Add -no-win32 switch. Separate -mno-cygwin
5855 include and library paths from -mcygwin case. Parameterize some
5856 declarations to avoid warnings. Use standard locations for include and
5857 lib dirs.
5858
5859 2000-11-08 Nick Clifton <nickc@redhat.com>
5860
5861 * config/arm/arm.md (mulsidi3adddi): Change output operand
5862 constraint from "=&" to "+&".
5863 (umulsidi3adddi): Change output operand constraint from "=&" to
5864 "+&".
5865
5866 2000-11-08 Richard Henderson <rth@redhat.com>
5867
5868 * flow.c (init_propagate_block_info): Protect the rtx stored in
5869 mem_set_list from modification by find_auto_inc.
5870 (mark_set_1): Likewise.
5871
5872 2000-11-08 Neil Booth <neilb@earthling.net>
5873
5874 Move directive handling into the lexer itself.
5875
5876 * cpplex.c (_cpp_lex_token): Handle directives directly.
5877 In the case of a directive interrupting a function-like
5878 macro invocation, use extra_char since read_ahead is
5879 used to store the '#'. Return a CPP_EOF in this case.
5880 * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
5881 (cpp_get_token): Don't handle directives here.
5882 * cpplib.h: Remove CPP_DHASH token type.
5883
5884 Wed Nov 8 21:53:41 MET 2000 Jan Hubicka <jh@suse.cz>
5885
5886 * regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
5887 formed using PRE_MODIFY too.
5888
5889 2000-11-08 Mark Mitchell <mark@codesourcery.com>
5890
5891 * c-tree.texi (VAR_DECL): Describe representation of GCC's
5892 extension for placing variables in particular registers.
5893
5894 * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
5895 unprototyped C functions with no parameters.
5896
5897 2000-11-08 Jakub Jelinek <jakub@redhat.com>
5898
5899 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
5900 before passing to fprintf.
5901
5902 2000-11-08 Jakub Jelinek <jakub@redhat.com>
5903
5904 * function.c (expand_function_start): Cast GET_MODE_SIZE to
5905 HOST_WIDE_INT before negating it.
5906
5907 2000-11-08 Jakub Jelinek <jakub@redhat.com>
5908
5909 * expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
5910 passed in multiple non-contiguous locations.
5911
5912 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5913
5914 * README.gnat: Remove file.
5915
5916 2000-11-08 Alexandre Oliva <aoliva@redhat.com>
5917
5918 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
5919 in-place.
5920
5921 2000-11-07 Richard Henderson <rth@redhat.com>
5922
5923 * dwarfout.c (INSN_LABEL_FMT): Remove.
5924 (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
5925 (dwarfout_label): Remove.
5926 * dwarfout.h: Remove it's prototype.
5927 * dwarf2out.c (INSN_LABEL_FMT): Remove.
5928 (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
5929 (dwarf2out_label): Remove.
5930 * dwarf2out.h: Remove it's prototype.
5931 * final.c (final_scan_insn): Don't call dwarf[2]out_label.
5932
5933 2000-11-07 Richard Henderson <rth@redhat.com>
5934
5935 * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
5936 search on the unwind region section.
5937
5938 * config/ia64/ia64.md (movbi): Add r/r alternative.
5939 (cmovdi_internal_astep): Describe all combinations of register
5940 classes for sources & destinations; remove matching constraints.
5941 (cmovdi_internal): Likewise.
5942
5943 * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
5944
5945 2000-11-07 Richard Henderson <rth@redhat.com>
5946
5947 * c-lang.c (start_cdtor, finish_cdtor): New functions.
5948 (finish_file): Use them in building constructor/destructor functions.
5949
5950 * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
5951 LD_FINI_SWITCH): Move ...
5952 * config/alpha/osf.h: ... here.
5953 * config/alpha/alpha-interix.h: Don't undef them.
5954
5955 2000-11-07 Jeffrey Oldham <oldham@oz.codesourcery.com>
5956
5957 * config/mips/t-iris6 (FPBIT): New. Added so that __unorddf2 is
5958 included in libgcc.a.
5959 (DPBIT): Likewise.
5960 (dp-bit.c): Likewise.
5961 (fp-bit.c): Likewise.
5962
5963 2000-11-07 Nick Clifton <nickc@redhat.com>
5964
5965 * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
5966 (INTERNAL_ASM_OP): Add missing tab.
5967
5968 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
5969
5970 * alias.c (init_alias_analysis), calls.c (expand_call,
5971 emit_library_call_value_1), combine.c (init_reg_last_arrays),
5972 cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
5973 (init_output_buffer, set_diagnostic_context), dwarf2out.c
5974 (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
5975 (init_emit_once), fold-const.c (mul_double, div_and_round_double),
5976 function.c (assign_parms), gcse.c (compute_can_copy,
5977 alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
5978 compute_hash_table, compute_set_hash_table,
5979 compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
5980 (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
5981 clear_units, schedule_block), integrate.c (initialize_for_inline,
5982 expand_inline_function), jump.c (thread_jumps), local-alloc.c
5983 (local_alloc), loop.c (combine_movables, count_loop_regs_set,
5984 load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
5985 regclass.c (init_reg_sets, init_reg_sets_1, regclass,
5986 record_reg_classes, allocate_reg_info), reload.c
5987 (get_secondary_mem, remove_address_replacements, find_reloads),
5988 reload1.c (reload, set_initial_label_offsets, finish_spills,
5989 reload_as_needed, choose_reload_regs_init,
5990 reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
5991 (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
5992 (rename_registers), stmt.c (expand_end_case), unroll.c
5993 (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
5994 () instead of bzero ().
5995
5996 2000-11-07 Neil Booth <neilb@earthling.net>
5997
5998 * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
5999
6000 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6001
6002 * c-common.c (combine_strings): Only warn about long strings for C.
6003
6004 Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
6005
6006 * combine.c (distribute_notes): Fix typo in last change.
6007
6008 2000-11-07 Geoff Keating <geoffk@redhat.com>
6009
6010 * config/rs6000/rs6000.md (movdi_internal32+1): Use
6011 operand_subreg_force rather than gen_rtx_SUBREG.
6012 (movdi_internal32+2): Likewise.
6013
6014 2000-11-07 Philip Blundell <philb@gnu.org>
6015
6016 * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
6017 * config/arm/linux-aout.h: Likewise.
6018 * configure: Regenerate.
6019
6020 2000-11-07 Philipp Thomas <pthomas@suse.de>
6021
6022 * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
6023 accepted my the gettext maintainer.
6024
6025 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6026
6027 * builtins.c (expand_builtin_strpbrk): New function.
6028 (expand_builtin): Handle BUILT_IN_STRPBRK.
6029
6030 * builtins.def (BUILT_IN_STRPBRK): New entry.
6031
6032 * c-common.c (c_common_nodes_and_builtins): Declare builtin
6033 strpbrk.
6034
6035 2000-11-07 David O'Brien <obrien@dragon.nuxi.com>
6036
6037 * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
6038 * POTFILES.in: Add config/alpha/freebsd.h
6039 * configure.in: Add alpha*-freebsd support.
6040 * configure: Regenerate.
6041
6042 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
6043
6044 * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
6045 copy of ptr_type_node rather than ptr_type_node itself.
6046
6047 Tue Nov 7 06:29:24 2000 J"orn Rennecke <amylaar@redhat.com>
6048
6049 * combine.c (recog_for_combine): Allocate uninitialized vector with
6050 rtvec_alloc.
6051 * recog.c (apply_change_group): Likewise.
6052
6053 Tue Nov 7 06:24:02 2000 J"orn Rennecke <amylaar@redhat.com>
6054
6055 * flow.c (verify_local_live_at_start): Back out last change.
6056 * combine.c (distribute_notes): When parts of a hard reg are
6057 neither set nor referenced in PLACE, search backwards for a
6058 place to put a REG_UNUSED note; if none found, ask for flow
6059 info refresh.
6060
6061 Mon Nov 6 20:08:13 2000 J"orn Rennecke <amylaar@redhat.com>
6062
6063 * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
6064 with (clobber (match_scratch...)).
6065
6066 2000-11-06 Neil Booth <neilb@earthling.net>
6067
6068 * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
6069 error status.
6070
6071 2000-11-06 Neil Booth <neilb@earthling.net>
6072
6073 * tradcpp.c (special_symbol): Assign an null string rather
6074 than writing to an unallocated buffer.
6075
6076 2000-11-06 Neil Booth <neilb@earthling.net>
6077
6078 * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
6079 CPP_MACRO_ARG case.
6080
6081 2000-11-06 Neil Booth <neilb@earthling.net>
6082
6083 * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
6084 tok.val.arg_no as appropriate.
6085 * cppexp.c (lex): Similarly.
6086 * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
6087 cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
6088 * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
6089 cpp_macro_definition): Similarly.
6090 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
6091
6092 2000-11-06 Jakub Jelinek <jakub@redhat.com>
6093
6094 * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
6095 operands[1] is constant, calculate the sum and generate movdi.
6096 (addsi3): Similarly. Use SImode in call to arith_4096_operand.
6097 (subsi3): Use SImode in call to arith_4096_operand.
6098
6099 2000-11-06 Jakub Jelinek <jakub@redhat.com>
6100
6101 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
6102 adjust %o1, not %o0 if the return type is large structure.
6103
6104 2000-11-06 Jakub Jelinek <jakub@redhat.com>
6105
6106 * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
6107 update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
6108
6109 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
6110
6111 * expmed.c (expand_divmod): For signed divide by 2, prefer
6112 a branch and fewer shifts if branches are very cheap.
6113
6114 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
6115
6116 * Makefile.in: Remove all targets related to building
6117 distributions and diffs, or INSTALL.
6118 * INSTALL, install1.texi: Remove.
6119 * configure.in: Remove mention of distdir.
6120 * configure: Regenerate.
6121 * objc/Make-lang.in: Remove mention of distdir.
6122
6123 2000-11-04 Neil Booth <neilb@earthling.net>
6124
6125 * cpp.texi: Update for _Pragma.
6126
6127 2000-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
6128
6129 * gcc.texi (Contributing): Update URL for projects web page.
6130
6131 2000-11-04 Neil Booth <neilb@earthling.net>
6132
6133 * cpplex.c (parse_string): Don't allow multiline strings in
6134 #include family directives.
6135
6136 2000-11-04 Neil Booth <neilb@earthling.net>
6137
6138 * cpplib.c (do_line): Only warn pedantically if not reading
6139 preprocessed input.
6140
6141 2000-11-04 Alexandre Oliva <aoliva@redhat.com>
6142
6143 * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
6144 RETURN_POPS_ARGS().
6145
6146 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
6147
6148 * builtins.c (expand_builtin_strlen): Remove unused mode
6149 argument.
6150 * gcc.c (process_command): Remove unused variable.
6151 * fold-const.c: Include expr.h.
6152 * recog.c: Include reload.h.
6153 * Makefile.in (recog.o, fold-const.o): Update deps.
6154
6155 2000-11-02 Geoffrey Keating <geoffk@cygnus.com>
6156
6157 * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
6158
6159 Fri Nov 3 13:41:04 2000 Mark P Mitchell <mark@codesourcery.com>
6160
6161 * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
6162 handling.
6163 (STARTFILE_SPEC): Likewise.
6164 (LINK_SPEC): Likewise.
6165
6166 2000-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6167
6168 * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
6169 (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
6170 (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
6171
6172 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
6173
6174 * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
6175 (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
6176 perm_calloc, get_identifier, maybe_get_identifier,
6177 real_value_from_int_cst, simple_cst_equal), varasm.c
6178 (assemble_name, assemble_real, immed_real_const_1,
6179 compare_constant_1, decode_rtx_const, output_constant_pool): Use
6180 strrchr () instead of rindex (). Use memcmp () instead of bcmp
6181 (). Use memcpy () instead of bcopy (). Use memset () instead of
6182 bzero ().
6183
6184 2000-11-03 Nathan Sidwell <nathan@codesourcery.com>
6185
6186 * cppfiles.c (open_file): If already read, then don't reopen.
6187 Immediately close an empty file.
6188
6189 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
6190
6191 * expr.h (fold_builtin): Move declaration...
6192 * tree.h (fold_builtin): ... here.
6193
6194 Fri Nov 3 05:41:07 2000 J"orn Rennecke <amylaar@redhat.com>
6195
6196 * flow.c (verify_local_live_at_start): Allow hard regs to die.
6197
6198 2000-11-02 Neil Booth <neilb@earthling.net>
6199
6200 config:
6201 * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
6202 alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
6203 alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
6204 alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
6205 arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
6206 arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
6207 c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
6208 elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
6209 i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
6210 i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
6211 i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
6212 i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
6213 i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
6214 i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
6215 i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
6216 i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
6217 i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
6218 i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
6219 i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
6220 i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
6221 i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
6222 ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
6223 m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
6224 m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
6225 m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
6226 m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
6227 m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
6228 m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
6229 m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
6230 m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
6231 m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
6232 m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
6233 mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
6234 mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
6235 mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
6236 mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
6237 mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
6238 mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
6239 ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
6240 ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
6241 pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
6242 pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
6243 romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
6244 rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
6245 rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
6246 rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
6247 sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
6248 sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
6249 sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
6250 sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
6251 sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
6252 sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
6253 sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
6254 v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
6255 vax/vaxv.h, vax/vms.h, we32k/we32k.h
6256
6257 Replace -A() with -A=, the new assertion syntax.
6258
6259 Thu Nov 2 21:52:35 2000 J"orn Rennecke <amylaar@redhat.com>
6260
6261 * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
6262 elim_i1.
6263 In REG_DEAD handling: When handling parts of multi-hard-reg hard
6264 registers, increment the loop counter by the size of the parts;
6265 use recursion to handle individual parts.
6266
6267 2000-11-02 Neil Booth <neilb@earthling.net>
6268
6269 * configure.in: Make integrated CPP the default.
6270 * configure: Regenerate.
6271
6272 Thu Nov 2 19:20:12 2000 J"orn Rennecke <amylaar@redhat.com>
6273
6274 * reload.c (find_equiv_reg): Test all hard registers for membership
6275 in the requested class.
6276
6277 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
6278
6279 * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
6280 process_command, main), gcov.c (open_files, output_data), tlink.c
6281 (frob_extension, scan_linker_output), toplev.c
6282 (file_name_nondirectory): Use strchr () and strrchr () instead of
6283 index () and rindex ().
6284
6285 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
6286
6287 * c-common.c (get_flag_spec, check_format_info_main,
6288 check_format_types): Use strchr () instead of index (). Compare
6289 against error_mark_node instead of comparing the TREE_CODE against
6290 ERROR_MARK.
6291
6292 2000-11-02 Zack Weinberg <zackw@Stanford.EDU>
6293
6294 Integrated CPP.
6295
6296 * c-lex.c (init_c_lex): Update cpp_start_read call.
6297 (cb_ident): Update for new callback prototype.
6298 (cb_def_pragma): Update for new cpp_get_token prototype.
6299 (c_lex): Similarly. Use cpp_get_line.
6300
6301 * c-parse.in (finish_parse): Update for new cpp_finish
6302 prototype.
6303
6304 * cp/lex.c (finish_parse): Similarly.
6305
6306 2000-11-01 Geoff Keating <geoffk@cygnus.com>
6307
6308 * machmode.def: Add V16QImode.
6309
6310 2000-11-01 Richard Henderson <rth@redhat.com>
6311
6312 * dwarf2out.c (loc_descriptor_from_tree): Check for null result
6313 from rtl_for_decl_location.
6314 (add_location_or_const_value_attribute): Likewise.
6315
6316 2000-11-01 Neil Booth <neilb@earthling.net>
6317
6318 * cpplib.c (run_directive): Use correct line number for output
6319 of _Pragma. Remember any in-progress directive.
6320
6321 * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
6322
6323 2000-11-01 Richard Henderson <rth@redhat.com>
6324
6325 * stmt.c (expand_start_null_loop): Set continue_label.
6326
6327 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
6328
6329 * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
6330 (expand_builtin_constant_p): Move parts of the code into
6331 fold_builtin_constant_p.
6332 (expand_builtin_strlen): Move parts of the code into fold_builtin.
6333 * expr.h (fold_builtin): Declare.
6334 * fold-const.c (fold): Handle builtin calls.
6335
6336 * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
6337
6338 2000-11-01 Richard Henderson <rth@redhat.com>
6339
6340 * stmt.c (expand_start_null_loop): New.
6341 (expand_end_null_loop): New.
6342 * c-semantics.c (genrtl_do_stmt): Use them.
6343 * tree.h: Declare them.
6344
6345 2000-11-01 Richard Henderson <rth@redhat.com>
6346
6347 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
6348
6349 2000-11-01 Neil Booth <neilb@earthling.net>
6350
6351 * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
6352 * cp/spew.c: Similarly.
6353 * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
6354 * cppmacro.c (stringify_arg): Similarly.
6355 * cpplib.h (CPP_BACKSLASH): Delete.
6356
6357 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6358
6359 * builtins.c (expand_builtin_strstr): New function.
6360 (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
6361
6362 * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
6363
6364 * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
6365 and builtin strchr.
6366
6367 2000-10-31 Richard Henderson <rth@redhat.com>
6368
6369 * config/i386/i386.c (fcmov_comparison_operator): Check for
6370 CCFPmode or CCFPUmode instead of CCmode.
6371 (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
6372 unordered operations as well.
6373
6374 2000-10-31 Richard Henderson <rth@redhat.com>
6375
6376 * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
6377 of integer_zero_node.
6378
6379 2000-10-31 Richard Henderson <rth@redhat.com>
6380
6381 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
6382
6383 2000-10-31 Nick Clifton <nickc@redhat.com>
6384
6385 * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
6386 -fdata-sections to override the section attribute of a DECL.
6387
6388 2000-10-31 Chris Demetriou <cgd@sibyte.com>
6389
6390 * libgcc2.c (__shtab): Remove __shtab variable.
6391 * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
6392 * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
6393 members.
6394
6395 2000-10-31 Jim Wilson <wilson@redhat.com>
6396
6397 * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
6398 * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
6399 * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
6400 instead of ASM_OUTPUT_INTERNAL_LABEL.
6401 (dwarf2out_end_block, dwarf2out_label): Likewise.
6402 * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
6403 * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
6404
6405 2000-10-31 Richard Henderson <rth@redhat.com>
6406
6407 * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
6408 (size_of_locs): Set it.
6409 (output_loc_operands): Use it to compute branch displacement.
6410 (int_loc_descriptor): New.
6411 (mem_loc_descriptor): Dereference memory in the proper size.
6412 Use DW_OP_plus_uconst when possible. Use int_loc_descriptor.
6413 (loc_descriptor_from_tree): New.
6414 (rtl_for_decl_location): Break out from ...
6415 (add_location_or_const_value_attribute): ... here.
6416 (add_bound_info): Use loc_descriptor_from_tree.
6417
6418 2000-10-31 Neil Booth <neilb@earthling.net>
6419
6420 * cpp.texi: Update for new command line assertion syntax.
6421 * cpplib.c (cpp_define): Simplify a bit.
6422 (cpp_assert, cpp_unassert): Use handle_assertion.
6423 (handle_assertion): New function; accept new command line
6424 syntax with '='.
6425 * testsuite/gcc.dg/cpp/assert3.c: New tests.
6426
6427 2000-10-31 Neil Booth <neilb@earthling.net>
6428
6429 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
6430 undefined. Remove #ifdef check.
6431 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
6432 Define STDC_0_IN_SYSTEM_HEADERS to 1.
6433
6434 2000-10-31 Jan Hubicka <jh@suse.cz>
6435 Jakub Jelinek <jakub@redhat.com>
6436
6437 * config/i386/i386.h: Clarify CCNOmode description in comment.
6438 (EXTRA_CC_MODES): Remove CCRCmode.
6439 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
6440 (put_condition_code, ix86_match_ccmode): Likewise.
6441 (ix86_cc_mode): Likewise. Fix comment.
6442 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
6443 * config/i386/i386.md: Add unspec 12 description.
6444 (adddi3 split): Use unspec 12 instead of CCRCmode.
6445 (addsi3_carry_rc): Remove.
6446 (addsi3_cc, addqi3_cc): New patterns.
6447 (addsi_3): Swap operands, match CCZmode.
6448 (addsi_4): Rewritten.
6449 (addsi_5): Renamed from addsi_6.
6450 (addsi_6): Removed.
6451 (addhi_3): Swap operands, match CCZmode.
6452 (addhi_4): Rewritten.
6453 (addhi_5): Renamed from addhi_6.
6454 (addhi_6): Removed.
6455 (addqi_3): Swap operands, match CCZmode.
6456 (addqi_4): Rewritten.
6457 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
6458 (subsi3_carry_rc): Removed.
6459 (iorqi_3): Use =q constraint for clobber.
6460 (xorqi_cc_2): Likewise.
6461 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
6462 (x86_movsicc_0_m1_rc): Removed.
6463 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
6464
6465 2000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
6466
6467 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
6468 and decrement of complex types.
6469
6470 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6471
6472 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
6473 builtin fputs, ensure we still evaluate the stream in case it
6474 has side-effects.
6475
6476 2000-10-31 Jakub Jelinek <jakub@redhat.com>
6477
6478 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
6479 to expand_shift.
6480
6481 Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
6482
6483 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
6484 (fp_extended_operand, emit_fpscr_use): Likewise.
6485 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
6486 (fpul_operand): New function.
6487 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
6488 fp_extended_operand. Add fpul_operand.
6489 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
6490 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
6491 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
6492 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
6493 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
6494 (divdf3_i): Likewise.
6495 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
6496 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
6497 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
6498 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
6499 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
6500
6501 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
6502
6503 * config/i386/i386.c (ix86_init_builtins): Correct return type
6504 building v4hi_ftype_v4hi_int_int tree node.
6505 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
6506 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
6507
6508 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
6509 for operand 1.
6510 (mmx__uavgv8qi3): Correct insn mnemonic.
6511 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
6512 (mmx_punpckhwd): Correct insn mnemonic.
6513 (mmx_punpckhdq): Likewise.
6514 (mmx_punpcklwd): Likewise.
6515 (mmx_punpckldq): Likewise.
6516 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
6517 Renumber case labels to match the _mm_prefetch constants defined in
6518 xmmintrin.h.
6519
6520 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
6521 if the splitter didn't emit new insns.
6522 Make sure we call cleanup_subreg_operands even when splitting the last
6523 insn in a basic block.
6524
6525 * invoke.texi (Debugging Options): Describe -do.
6526 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
6527 (dump_file): Likewise.
6528 (rest_of_compilation): Split .greg dump into .greg and .postreload.
6529
6530 2000-10-30 Neil Booth <neilb@earthling.net>
6531
6532 * cppfiles.c (stack_include_file): Check for stacked contexts
6533 here.
6534 * cpphash.h (_cpp_do__Pragma): New prototype.
6535 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
6536
6537 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
6538 escaped newlines if !(buffer->from_stage3).
6539 (_cpp_lex_token): Warn about missing newlines iff
6540 !buffer->from_stage3.
6541
6542 * cpplib.c (get__Pragma_string, destringize,
6543 _cpp_do__Pragma): New functions.
6544 (run_directive): Set output_line for _Pragma to avoid line
6545 markers in output. Set from_stage3 and prevent macro expansion
6546 for _Pragma and command-line options. Check buffer exhaustion.
6547 (cpp_push_buffer): Don't check for stacked macro contexts, as
6548 this is perfectly legitimate for _Pragma. Move the check to
6549 stack_include_file instead. Set from_stage3 iff buffer is
6550 preprocessed input.
6551
6552 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
6553 unsigned. New boolean from_stage3.
6554 (struct spec_nodes): Add n__Pragma.
6555
6556 * cppmacro.c (enter_macro_context): Flip sense of return value.
6557 (_cpp_get_token): Handle _Pragma operator.
6558
6559 2000-10-30 Phil Edwards <pme@sources.redhat.com>
6560
6561 * gcc.texi: The C++ standard isn't "draft" anymore.
6562
6563 2000-10-30 Mark Mitchell <mark@codesourcery.com>
6564
6565 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
6566
6567 2000-10-29 Neil Booth <neilb@earthling.net>
6568
6569 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
6570
6571 2000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
6572
6573 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
6574 fixinc/inclhack.def: Change comments mentioning C9X to refer to
6575 C99 instead.
6576
6577 * invoke.texi: Document that -V will only work for very similar
6578 versions of driver and compiler.
6579
6580 2000-10-29 Neil Booth <neilb@earthling.net>
6581
6582 * cppmacro.c (_cpp_create_definition): Optimize the case of
6583 a macro defined to itself.
6584
6585 2000-10-29 Neil Booth <neilb@earthling.net>
6586
6587 * cpplex.c (save_comment): Don't store new lines in C++ comments.
6588
6589 2000-10-29 Michael Hayes <mhayes@redhat.com>
6590
6591 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
6592
6593 2000-10-28 Geoffrey Keating <geoffk@cygnus.com>
6594
6595 * cpphash.c (cpp_forall_identifiers): Add context variable
6596 for callback routine.
6597 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
6598 change.
6599 (main): Call cpp_forall_identifiers with null context.
6600 * cpplib.h (cpp_forall_identifiers): Update prototype.
6601
6602 * cppmain.c: Make `parse_in' and `print' static.
6603
6604 2000-10-28 Alan Modra <alan@linuxcare.com.au>
6605
6606 * c-decl.c (finish_function): Clear c_function_name_declared_p.
6607
6608 2000-10-28 Richard Henderson <rth@redhat.com>
6609
6610 * regrename.c (scan_rtx_address): Frob action, not class,
6611 when trying to disable optimization.
6612
6613 2000-10-28 Mark Mitchell <mark@codesourcery.com>
6614
6615 * c-semantics.c (make_rtl_for_local_static): Don't clobber
6616 DECL_ASSEMBLER_NAME.
6617
6618 2000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
6619
6620 * configure.in: Determine and substitute gcc_version_full.
6621 * configure: Regenerate.
6622 * gccbug.in: Use it to give full version. Don't allow
6623 confidential PRs.
6624
6625 2000-10-28 Richard Henderson <rth@redhat.com>
6626
6627 * recog.c (split_all_insns): Run cleanup_subreg_operands
6628 after reload.
6629
6630 * regrename.c (regrename_optimize): Verify that all registers of
6631 a multiple register mode are available.
6632 (scan_rtx_address): Accept the mode of the address; all callers
6633 changed.
6634
6635 * cpplib.c (run_directive): Fix prototype.
6636
6637 2000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
6638
6639 * reload.c (find_reloads): Distinguish "wins" so that we know whether
6640 a given operand won because of a matching constraint or not; then use
6641 that information to compute goal_alternative_matched properly.
6642 * reload1.c (choose_reload_regs): Never set reload_override_in for an
6643 optional reload.
6644
6645 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
6646 accurate value for MULT.
6647 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
6648 2% or > 98% before using static branch prediction bits.
6649
6650 2000-10-28 Neil Booth <neilb@earthling.net>
6651
6652 New macro expander.
6653
6654 * cpplib.c (struct answer): New.
6655 (struct if_stack): Use cpp_lexer_pos rather than line and col.
6656 Rename cmacro mi_cmacro.
6657 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
6658 IN_I): New directive and flags.
6659 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
6660 parse_answer, parse_assertion, find_answer): New functions.
6661 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
6662 (lex_macro_node): New function to replace parse_ifdef and
6663 get_define_node.
6664
6665 (_cpp_handle_directive): New function, combines _cpp_check_directive
6666 and _cpp_check_linemarker.
6667
6668 (do_define, do_undef, parse_include, do_include, do_import,
6669 do_include_next, read_line_number, do_line, do_ident, do_pragma,
6670 do_pragma_once, do_pragma_poison, do_pragma_dependency):
6671 Update for new token getting interface.
6672
6673 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
6674 : Update for new multiple-include optimisation technique.
6675 (do_elif): Don't forget to invalidate controlling macros.
6676
6677 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
6678 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
6679 Functions to handle assertions with the new token interface.
6680 (do_assert, do_unassert): Use them.
6681
6682 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
6683 Use run_directive.
6684
6685 (_cpp_init_stacks): Register directive names. Don't register special
6686 nodes.
6687
6688 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
6689 new position recording regime.
6690 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
6691 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6692 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
6693 (cpp_type2name): Move to cpplex.c.
6694
6695 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
6696 (parse_defined): Update to handle new multiple include optimisation
6697 method. Remove poisoned identifier warning.
6698 (parse_assertion, TYPE_NAME): Delete.
6699 (lex): Update for multiple include optimisation, removal of
6700 CPP_DEFINED, to use _cpp_test_assertion for assertions and
6701 cpp_token_as_text.
6702 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
6703 (op_as_text): New function, to wrap cpp_token_as_text.
6704
6705 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
6706 Update for MI optimisation.
6707 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
6708 segfault on diagnostic.
6709 (_cpp_compare_file_date): Take a token rather than 3 args.
6710 (cpp_read_file): Work correctly for zero-length files.
6711
6712 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
6713 _cpp_init_hashtable and _cpp_cleanup_hashtable.
6714 (cpp_lookup): Place identifiers at front of identifier pool
6715 for _cpp_lookup_with_hash.
6716 (_cpp_lookup_with_hash): Require identifiers to be at the front of
6717 the identifier pool. Commit the memory if not already in the
6718 hash table.
6719
6720 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
6721 Initialise various members of cpp_reader, memory pools, and the
6722 special nodes.
6723 (cpp_printer_init): Delete.
6724 (cpp_cleanup): Update.
6725 (struct builtin, builtin_array, initialize_builtins): Update for new
6726 hashnode definition and builtin handling.
6727 (cpp_start_read, cpp_finish): Don't take or initialise a
6728 printer. Update.
6729
6730 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
6731 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
6732 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
6733 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
6734 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
6735 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
6736 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
6737 struct toklist, struct cpp_context, struct specnodes,
6738 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
6739 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
6740 enum builtin_type, cpp_can_paste): New.
6741 (struct cpp_token): Delete line and col members.
6742 (struct cpp_buffer): New member output_lineno.
6743 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
6744 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
6745 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
6746 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
6747 base_context, context, directive, mi_state, mi_if_not_defined,
6748 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
6749 mlstring_pos, macro_buffer, macro_buffer_len.
6750 Delete members mls_line, mls_column, token_list, potential_control_macro,
6751 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
6752 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
6753 save_parameter_spellings, need_newline, .
6754 Change type of date, time and spec_nodes members.
6755 Change prototypes for include and ident callbacks.
6756 (struct cpp_hashnode): Change type of name. Remove union members
6757 expansion and code. Add members macro, operator and builtin.
6758
6759 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
6760 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
6761 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
6762 cpp_stop_lookahead): New prototypes.
6763 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
6764
6765 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
6766 Move from cpphash.h.
6767
6768 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
6769 ufputs): Move to cpplib.h.
6770 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
6771 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
6772 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
6773 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
6774 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
6775 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
6776 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
6777 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
6778 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
6779 _cpp_parse_assertion, _cpp_find_answer): Delete.
6780 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
6781 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
6782 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
6783 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
6784 _cpp_handle_directive, DSC): New.
6785 (struct include_file): New member defined.
6786
6787 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
6788 _cpp_compare_file_date): Update.
6789 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
6790 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
6791 _cpp_cleanup_hashtable.
6792
6793 * Makefile.in: Remove cppoutput.c.
6794
6795 * cppoutput.c: Delete
6796
6797 * fixheader.c (read_scan_file): Update for new cpp_get_token
6798 prototype.
6799 (recognized_function): New argument LINE.
6800
6801 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
6802 new cpp_get_token prototype.
6803
6804 * scan.h (recognized_function): Update prototype.
6805
6806 * po/POTFILES.in: Remove cppoutput.c.
6807
6808 2000-10-27 Mark Mitchell <mark@codesourcery.com>
6809
6810 * c-typeck.c (check_init_type_bitfields): Remove.
6811 (constructor_incremental): Likewise.
6812 (struct constructor_stack): Remove incremental bit.
6813 (struct initializer_stack): Likewise.
6814 (start_init): Don't play with constructor_incremental.
6815 (finish_init): Likewise.
6816 (really_start_incremental_init): Likewise.
6817 (push_init_level): Likewise.
6818 (pop_init_level): Likewise.
6819 (output_init_level): Likewise.
6820 (output_pending_init_elements): Likewise.
6821
6822 2000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
6823
6824 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
6825 Improve error messages. Correct parsing of
6826 #pragma pack(pop [,id]). Do not check the user-supplied
6827 alignment if we're popping.
6828
6829 * gcc.dg/pack-test-1.c: New test case.
6830 * gcc.dg/pack-test-2.c: New test case.
6831 * gcc.dg/pack-test-1.h: New file.
6832
6833 2000-10-27 Neil Booth <neilb@earthling.net>
6834
6835 * cpp.texi: Update.
6836
6837 2000-10-27 Kelley Cook <kelley.cook@home.com>
6838
6839 * invoke.texi: Document -mintel-syntax
6840
6841 2000-10-27 Richard Henderson <rth@redhat.com>
6842
6843 * invoke.texi: Document -frename-registers. Add it to -O3.
6844 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
6845 (enum dump_file_index, dump_file): Update order.
6846 (main): Set flag_rename_registers at -O3.
6847
6848 2000-10-27 Richard Henderson <rth@redhat.com>
6849
6850 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
6851 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
6852 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
6853 * config/alpha/alpha.md (call_osf_1): Use it.
6854 (call_value_osf_1): Likewise.
6855
6856 * config/ia64/ia64.c: Revert 10-23 patch.
6857 (ia64_hard_regno_rename_ok): New.
6858 * config/ia64/ia64-protos.h: Declare it.
6859 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
6860
6861 2000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
6862 Richard Henderson <rth@redhat.com>
6863
6864 * regrename.c: Rewrite to handle multi-register modes and
6865 cond_exec instructions.
6866 * Makefile.in (regrename.o): Update dependancies.
6867 * recog.h (struct operand_alternative): Add is_address.
6868 * recog.c (preprocess_constraints) [case 'p']: Set it.
6869
6870 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
6871
6872 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
6873 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
6874 top level. Kill oldstyle_subdirs. Do not include
6875 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
6876 $outputs. Do not run configure.lang from config.status.
6877 Rearrange warning-flag logic to correspond to what the
6878 makefile wants. Put special vax stage1 options in
6879 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
6880 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
6881 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
6882 switch is given, nothing otherwise.
6883 * configure.lang: Delete.
6884
6885 * Makefile.in: Expunge all traces of extra_c_objs,
6886 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
6887 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
6888 warning options via a three level scheme so that -pedantic and
6889 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
6890 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
6891 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
6892 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
6893 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
6894 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
6895 generation rules. Wrap all rules that change the current
6896 directory in parentheses; pmake doesn't spawn a new shell for
6897 each command. Expunge all references to $(P). When one
6898 command depends on another and they're run all at once, use &&
6899 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
6900 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
6901 and beyond.
6902
6903 * objc/Make-lang.in: Wrap all rules that change the current
6904 directory in parentheses. Expunge all references to $(P).
6905 When one command depends on another and they're run all at
6906 once, use && to separate them, not ;. Add OUTPUT_OPTION to
6907 all object-file generation rules. Delete obsolete variables.
6908 * objc/Makefile.in: Delete.
6909
6910 2000-10-27 Jakub Jelinek <jakub@redhat.com>
6911
6912 * calls.c (expand_call): If sibcall_failure is set during pass 1,
6913 clear tail_call_insns as well.
6914
6915 2000-10-27 Nick Clifton <nickc@redhat.com>
6916
6917 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
6918 prototype.
6919
6920 2000-10-26 Richard Henderson <rth@redhat.com>
6921
6922 * calls.c (expand_call): Supress sibcall if we have a
6923 BLKmode return in registers.
6924
6925 2000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
6926
6927 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
6928 into memory.
6929
6930 2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
6931
6932 * tree.c (make_node, case 't'): Set alignment to that of
6933 char_type_node.
6934 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
6935
6936 2000-10-25 Mark Mitchell <mark@codesourcery.com>
6937
6938 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
6939 * configure.in (enable-libstdcxx-v3): Arrange to have
6940 HAVE_LIBSTDCXX_V3 substituted into the output files.
6941
6942 2000-10-25 Richard Henderson <rth@redhat.com>
6943
6944 * recog.c (constrain_operands): Initialize which_alternative
6945 before no alternatives early exit.
6946
6947 * cse.c (find_comparison_args): Check that we can reverse a
6948 comparison if needed before accepting the substitution.
6949
6950 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
6951
6952 * simplify-rtx.c (simplify_relational_operation): Sign extend
6953 low words before sign extending to high words.
6954
6955 2000-10-25 Nick Clifton <nickc@redhat.com>
6956
6957 * config/mcore/mcore.c: Include config.h before system.h.
6958
6959 2000-10-25 Ray Essick <essick@ddna.labs.mot.com>
6960
6961 * config/mcore/mcore.md (return): Force function epilogue to
6962 always be generated to work around epilogue suppression bug in
6963 M*Core backend.
6964
6965 2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
6966
6967 * c-decl.c (grokdeclarator): Move warning for qualified void
6968 return types with -pedantic to when the function type is
6969 constructed. At -W, warn in general for qualified function return
6970 types, except for volatile void.
6971 * invoke.texi: Document this new warning at -W.
6972
6973 2000-10-25 Neil Booth <neilb@earthling.net>
6974
6975 * cpp.texi: Update with implementation-defined behavior and
6976 internal limits.
6977
6978 2000-10-25 Jakub Jelinek <jakub@redhat.com>
6979
6980 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
6981 incomplete type force it into alias set 0.
6982
6983 Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
6984
6985 * alias.c: Include basic-block.h.
6986 (loop_p): New function.
6987 (mark_constant_function): Use it.
6988 * Makefile.in (alias.o): Update dependencies.
6989
6990 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
6991
6992 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
6993 like memory.
6994
6995 2000-10-24 Jim Wilson <wilson@cygnus.com>
6996
6997 * expmed.c (store_bit_field): Move integer pun code down after
6998 code that calls emit_move_insn for entire register move.
6999 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
7000 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
7001
7002 2000-10-24 Richard Henderson <rth@cygnus.com>
7003
7004 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
7005 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
7006
7007 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
7008
7009 * gcse.c (cprop_insn): do not propagate constants into jump_insn
7010 for machines with CC0 more than once.
7011
7012 2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
7013
7014 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
7015 pseudos just like memory.
7016
7017 2000-10-24 Alexandre Oliva <aoliva@redhat.com>
7018
7019 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
7020 when deleting libcall sequence collapsed to a single instruction.
7021
7022 2000-10-24 Andrew Haley <aph@cygnus.co.uk>
7023
7024 * expr.c (do_store_flag): Don't crash if either side of a
7025 comparison is error_mark_node.
7026
7027 2000-10-24 Jakub Jelinek <jakub@redhat.com>
7028
7029 * sibcall.c (purge_mem_unchanging_flag): New function.
7030 (optimize_sibling_and_tail_recursive_calls): Call it.
7031
7032 2000-10-24 Philipp Thomas <pthomas@suse.de>
7033
7034 * Makefile.in (check-po): New target for doing checks in the po
7035 subdir if all languages configured.
7036 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
7037 configure if NLS is enabled.
7038 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
7039 otherwise leave empty.
7040 * configure: Regenerate.
7041
7042 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
7043
7044 * i386.c (print_operand): Handle new 'A' formatting code.
7045 387 opcodes need suffixes even with -mintel-syntax.
7046 Check for explicit size override (codes 'b', 'w' and 'k').
7047 (print_operand_address): Check if register prefix is needed when
7048 emitting `ds' segment override.
7049 * i386.h: Add comment about new 'A' formatting code.
7050 * i386.md (jump and call patterns): Emit absolute references using %A.
7051
7052 2000-10-23 Richard Henderson <rth@cygnus.com>
7053
7054 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
7055 output registers as fixed.
7056 (ia64_function_epilogue): Undo output fixation.
7057
7058 2000-10-23 Richard Henderson <rth@cygnus.com>
7059
7060 * config/alpha/alpha.md: Add names for all unnamed insns; use
7061 define_insn_and_split in some obvious places.
7062 (lda): Remove.
7063 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
7064 (zero_extendqisi2, zero_extendqidi2): Likewise.
7065 (zero_extendhisi2, zero_extendhidi2): Likewise.
7066 (abs splitters): Fix match_scratch operand number.
7067 (bcc_reverse): Swap pc & label instead of non-canonical compare.
7068
7069 2000-10-23 Jim Wilson <wilson@cygnus.com>
7070
7071 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
7072 CONST_INT.
7073 * ia64.md (cmpsi_adjusted): Use %r3.
7074 (cmpdi_adjusted): Likewise.
7075
7076 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
7077
7078 * config/i386/att.h (ASM_FILE_START): Define.
7079
7080 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
7081
7082 * config/i386/linux.h (ASM_FILE_START): Define.
7083
7084 Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
7085
7086 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
7087 since this (only) drags in a crt0.o reference that the .ld files
7088 also introduce.
7089
7090 2000-10-23 Geoff Keating <geoffk@cygnus.com>
7091
7092 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
7093 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
7094 reloads just like an RELOAD_FOR_OUTPUT would.
7095
7096 * local-alloc.c (update_equiv_regs): Add an abort(). When
7097 deleting or moving insns, update reg_equiv[regno].init_insns.
7098
7099 2000-10-23 Mark Mitchell <mark@codesourcery.com>
7100
7101 * c-tree.texi: Improve documentation for IF_STMTs and related
7102 conditional statements.
7103
7104 2000-10-22 Mark Mitchell <mark@codesourcery.com>
7105
7106 * expr.c (do_preexpand_calls): Remove.
7107 (same_from_p): Don't use CALL_EXPR_RTL.
7108 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
7109 (preexpand_calls): Remove.
7110 * tree.c (first_rtl_op): Remove CALL_EXPR case.
7111 (unsave_expr_1): Likewise.
7112 * tree.def (CALL_EXPR): Give it only two slots.
7113 * tree.h (CALL_EXPR_RTL): Remove.
7114
7115 2000-10-21 Chandrakala Chavva <cchavva@redhat.com>
7116
7117 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
7118 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
7119 New functions.
7120
7121 2000-10-22 Alexandre Oliva <aoliva@redhat.com>
7122
7123 * calls.c (combine_pending_stack_adjustment_and_call): Don't
7124 adjust stack when unadjusted_alignment ends up as zero.
7125
7126 2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
7127
7128 * fixinc/genfixes: Remove EGCS reference.
7129 * install.texi: Remove EGCS reference.
7130 * INSTALL: Regenerate.
7131
7132 2000-10-22 Mark Mitchell <mark@codesourcery.com>
7133
7134 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
7135
7136 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
7137
7138 * diagnostic.c: Remove EGCS reference in comment.
7139
7140 Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7141
7142 * loop.c (strength_reduce): Fix error in last change.
7143
7144 2000-10-20 David Edelsohn <edelsohn@gnu.org>
7145
7146 * Makefile.in (SHLIB_NM_FLAGS): New.
7147 (libgcc.mk): Pass it.
7148 * mklibgcc.in (libgcc.map): Use it.
7149
7150 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
7151 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
7152
7153 2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7154
7155 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
7156
7157 * sparc.c (load_pic_register): Delete unused varaible.
7158
7159 * libgcc2.c (__addvsi3): Delete unused variable.
7160
7161 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
7162 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
7163 __negvdi2): Prototype.
7164
7165 * ssa.c (apply_delayed_renames): Avoid undefined operation.
7166
7167 * toplev.c (display_target_options): Make static to match
7168 prototype. Delete empty declaration.
7169
7170 2000-10-20 Tom Tromey <tromey@cygnus.com>
7171
7172 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
7173 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
7174
7175 Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7176
7177 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
7178 returned MEM.
7179 (expand_expr_unaligned, case ARRAY_REF): Check that index is
7180 a constant before comparing it; use tree_low_cst.
7181 * tree.c (save_expr): Set TREE_READONLY.
7182 (substitute_expr): Return inside of NON_LVALUE_EXPR.
7183 (build, build1): Set TREE_READONLY if all operands are.
7184 (build_index_type): If upper bound is a negative number, lower
7185 bound is zero and sizetype is unsigned, use upper bound of one and
7186 lower of zero.
7187
7188 2000-10-20 David Edelsohn <edelsohn@gnu.org>
7189
7190 * gcc.c (process_command, main): Use "because" instead of
7191 "since" in error messages.
7192
7193 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7194
7195 * stor-layout.c (compute_record_mode): Use tree_low_cst.
7196 Don't use mode of field for record unless sizes are the same.
7197 (layout_type, case ARRAY_TYPE): Remove special bounds handling
7198 previously added for Ada; also change to using host_integerp
7199 and tree_low_cst.
7200
7201 * loop.c (strength_reduce): Show when new register made for
7202 giv is known to be a pointer and its aligment if so and known.
7203 (loop_dump_aux): Show VERBOSE parameter unused.
7204
7205 * gcse.c (set_hash_table_size): Now unsigned.
7206 * sdbout.c (template_name_p): Add "const" to avoid warnings.
7207 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
7208 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
7209 (sdbout_end_epilogue): Remove variable NAME.
7210 * system.h (getopt): Add default definition.
7211 * config/alpha/alpha.c (print_operand): Don't continue processing
7212 after issuing error.
7213 (summarize_insn): Avoid use of UL in constant.
7214
7215 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
7216
7217 * fold-const.c (force_fit_type): Unsigned values can overflow
7218 if they are sizetype.
7219 (int_const_binop): Don't use cache if overflows.
7220
7221 2000-10-20 Richard Henderson <rth@cygnus.com>
7222
7223 * function.c (locate_and_pad_parm): Zero alignment_pad.
7224
7225 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
7226 perform substitutions, and apply_change_group to see if it worked.
7227
7228 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7229
7230 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
7231
7232 * combine.c (struct undo): Change int to unsigned int.
7233 (do_SUBST_INT): Args are unsigned int.
7234 (make_extraction, force_to_mode): Use proper type when forming mask.
7235 (make_field_assignment): Likewise.
7236
7237 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
7238
7239 * c-common.c (check_format_info_recurse): Extract string constant
7240 initializers from non-volatile constant arrays and check them as
7241 formats.
7242 * c-typeck.c (decl_constant_value): Don't check pedantic or check
7243 for DECL_MODE (decl) != BLKmode.
7244 (decl_constant_value_for_broken_optimization): New function which
7245 includes these checks.
7246 (default_conversion, convert_for_assignment, digest_init): Use
7247 decl_constant_value_for_broken_optimization instead of
7248 decl_constant_value.
7249
7250 2000-10-20 Mark Mitchell <mark@codesourcery.com>
7251
7252 * tree.h (DECL_ALIGN_UNIT): New macro.
7253
7254 2000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
7255
7256 * config/avr/avr-protos.h (avr_output_bld): New.
7257 (out_shift_with_cnt): Add t_len argument.
7258 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
7259 (output_movqi, output_movhi, output_movsisf): Optimize loading
7260 any constant with exactly one bit set to NO_LD_REGS.
7261 (out_shift_with_cnt): Optimize output code for size or speed,
7262 depending on optimize_size. Handle small shift counts as well
7263 (if not hand-optimized in ?sh??i3_out). Shifts can be done
7264 with or without a scratch register, with help of __tmp_reg__
7265 or __zero_reg__ if necessary. Add T_LEN argument to pass the
7266 length of TEMPLATE in words, return total insn length in *LEN.
7267 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
7268 out_shift_with_cnt to work with the above change.
7269 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
7270 lshrsi3_out): Likewise. Optimize more known shift count cases.
7271 Remove cases already well optimized in out_shift_with_cnt.
7272 (avr_output_bld): New function.
7273 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
7274 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
7275 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
7276 Add reload_completed to insn condition - only for peepholes.
7277 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
7278 in a register or memory.
7279 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
7280 Do not require a scratch register.
7281 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
7282 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
7283 Optimize shifts by known count using a scratch register, but only
7284 if one is still available after register allocation.
7285
7286 2000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7287
7288 * t-vax: New file. Don't build modules from libgcc1.c.
7289
7290 Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
7291
7292 * alias.c: (mark_constant_function): Don't check pure functions.
7293 Initialize and end alias analysis.
7294 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
7295 Don't make a special exception for recursion. Handle
7296 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
7297 unless it's volatile.
7298
7299 * local-alloc.c (equivalence): New structure.
7300 (reg_equiv): Define.
7301 (contains_replace_regs): Remove array and use
7302 field in reg_equiv.
7303 (memref_referenced_p): Likewise.
7304 (no_equiv): Likewise.
7305 (update_equiv_regs): Likewise.
7306
7307 (equiv_init_varies_p,
7308 equiv_init_movable_p): New functions.
7309 (update_equiv_regs): Use them. Use rtx_varies_p
7310 instead of function_invariant_p. Process insns
7311 from end to beginning. Allow a REG_EQUIV insn
7312 within the same loop as a use to be moved, also
7313 allow it to be moved out of a loop. Update
7314 REG_DEAD notes when substituting into an insn.
7315
7316 2000-10-19 Jim Wilson <wilson@cygnus.com>
7317
7318 * c-decl.c (start_decl): Check for error_mark_node type before using
7319 COMPLETE_TYPE_P.
7320 (finish_decl): Likewise. Don't give an error if decl type is
7321 already error_mark_node.
7322
7323 * haifa-sched.c (compute_trg_info): Add explanatory comments.
7324 New local update_blocks. Use update_blocks to remove duplicates
7325 when computing update blocks. Check for bblst_table overflow.
7326 (schedule_block): Add explanatory comment. Reduce bblst_size by
7327 factor of 2.
7328 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
7329 notes.
7330
7331 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
7332
7333 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
7334
7335 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
7336
7337 * expmed.c: Minor corrections in comments.
7338 * invoke.texi: Added desciption for the new option -ftrapv.
7339
7340 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
7341
7342 * libgcc2.c: Added the missing #endif.
7343
7344 Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
7345
7346 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
7347
7348 2000-10-18 Chandrakala Chavva <cchavva@redhat.com>
7349
7350 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
7351 Use smulv_optab for -ftrapv.
7352 (expand_mult_highpart): Use unsigned multiply.
7353 (expand_divmod): Special-case division by -1.
7354 For EXACT_DIV_EXPR, do right shift first, then the multiply.
7355 For complex divide, use abs with unsigned result.
7356 * expr.c (force_operand): Use unsigned multiply.
7357 (expand_expr): Use overflow-trapping optabs for signed types if
7358 flag_trapv.
7359 If flag_trapv, don't generate a recursive call with EXPAND_SUM
7360 if the type is signed and the original call wasn't EXPAND_SUM or
7361 EXPAND_INITIALIZER.
7362 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
7363 (negv_optab, absv_optab): Declare.
7364 * flags.h (flag_trapv): Declare.
7365 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
7366 smulv_optab, sdivv_optab, negv_optab and absv_optab.
7367 (gen_insn): Interpret '$P' as requiring an integer mode,
7368 including partial integer modes.
7369 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
7370 (product_cheap_p): Use unsigned expand_mult.
7371 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
7372 (negv_optab, absv_optab): Define.
7373 (expand_binop): Use overflow-trapping optabs for signed types if
7374 flag_trapv.
7375 Handle negv_optab libe neg_optab.
7376 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
7377 Use overflow-trapping optabs for signed result if flag_trapv.
7378 (expand_complex_abs): Use overflow-trapping optabs for signed types if
7379 flag_trapv.
7380 Don't open-code complex absolute-value operation for flag_trapv.
7381 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
7382 sdivv_optab, negv_optab and absv_optab.
7383 * toplev.c (flag_trapv): Define.
7384 (lang_independent_options f_options): Include flag_trapv.
7385 * tree.h (TYPE_TRAP_SIGNED): Define.
7386 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
7387 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
7388 New functions.
7389 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
7390 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
7391
7392 2000-10-18 Geoffrey Keating <geoffk@cygnus.com>
7393 David V. Henkel-Wallace <gumby@cygnus.com>
7394
7395 * config/i386/t-netware: Bring in from the Red Hat tree.
7396 * config/i386/netware.h: Likewise.
7397 * config/netware.h: Likewise.
7398 * config/rs6000/netware.h: Delete.
7399 * configure.in: Add i[34567]86-*-netware.
7400 * configure: Hand-edit to match configure.in change.
7401
7402 2000-10-18 Mark Mitchell <mark@codesourcery.com>
7403
7404 * c-common.h (flag_no_builtin): Declare.
7405 (flag_no_nonansi_builtin): Likewise.
7406 (c_common_nodes_and_builtins): Change prototype.
7407 * c-common.c (flag_no_builtin): New variable.
7408 (flag_no_nonansi_builtin): Likewise.
7409 (c_common_nodes_and_builtins): Remove parameters. Adjust
7410 accordingly.
7411 * c-decl.c (flag_no_builtin): Remove.
7412 (flag_no_nonansi_builtin): Likewise.
7413 (init_decl_processing): Adjust call to
7414 c_common_nodes_and_builtins.
7415
7416 2000-10-18 Marc Espie <espie@openbsd.org>
7417
7418 * tm.texi (LIBGCC_SPEC): Synch with reality.
7419
7420 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
7421
7422 * c-common.c (check_format_types): Check for writing through a
7423 NULL pointer argument.
7424
7425 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
7426
7427 * tm.texi (Exception Region Output): Document
7428 DWARF_CIE_DATA_ALIGNMENT.
7429 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
7430 #ifndef.
7431 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
7432 DWARF_CIE_DATA_ALIGNMENT.
7433
7434 2000-10-18 Michael Hayes <mhayes@cygnus.com>
7435
7436 * basic-block.h (struct loop): Delete fields pre_header_root
7437 and pre_header_trace and replace with pre_header_edges
7438 and num_pre_header_edges.
7439 * flow.c (flow_loop_dump): Dump pre_header_edges.
7440 (flow_loops_free): Free pre_header_edges.
7441 (flow_loop_pre_header_scan): Calculate pre_header_edges.
7442
7443 2000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7444
7445 * contrib.texi: Update references to steering committee members
7446 and Jeff Law's entry.
7447
7448 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
7449
7450 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
7451 (maybe_read_dollar_number, check_format_info_main): Use them for
7452 pedantic warning messages.
7453
7454 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
7455
7456 * c-common.c (check_format_info_main): Minor cleanup: move
7457 variables into inner scopes; initialize declarations where
7458 appropriate; don't hardcode "scanf" name on warning for zero
7459 width.
7460
7461 2000-10-17 Mark Mitchell <mark@codesourcery.com>
7462
7463 * c-common.c (back_end_hook): New variable.
7464 * c-common.h (back_end_hook): Declare it.
7465 * c-lang.c (finish_file): Use it.
7466
7467 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
7468 earlier.
7469
7470 2000-10-18 Jan Hubicka <jh@suse.cz>
7471
7472 * i386.c (ix86_comparison_operator, put_condition_code,
7473 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
7474 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
7475 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
7476 * i386.md (adddi and negdi splitter): Use CCRCmode.
7477 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
7478 (subsi3_carry): add '*'
7479 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
7480 (cmp to add peep2): Use CCRCmode; swap operands.
7481
7482 2000-10-18 Kazu Hirata <kazu@hxi.com>
7483
7484 * h8300.c: Fix a comment typo.
7485 (round_frame_size): New.
7486 (compute_saved_regs): Likewise.
7487 (push): Likewise.
7488 (pop): Likewise.
7489 (push_order): Remove.
7490 (pop_order): Likewise.
7491 (function_prologue): Rearrange code for readability.
7492 (function_epilogue): Likewise.
7493
7494 * config/h8300/h8300.md: Remove an unnecessary sign_extend
7495 expander that is used when not optimizing. Output a tab after
7496 each assembly insns.
7497
7498 * reorg.c: Fix formatting.
7499
7500 2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
7501
7502 * reload1.c (move2add_note_store): Check for simple
7503 auto-inc in destination.
7504
7505 2000-10-17 Michael Chastain <chastain@redhat.com>
7506
7507 * config/i386/i386-aout.h: define INT_ASM_OP.
7508
7509 Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
7510
7511 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
7512
7513 Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
7514
7515 * i370.md: Fix spelling typo.
7516
7517 2000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7518
7519 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
7520 Fixes execute/20001017-1.c on powerpc-linux-gnu.
7521
7522 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
7523 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
7524 LABEL_REF.
7525
7526 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
7527 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
7528 here...
7529 * rs6000/aix.h: ...to here.
7530 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
7531
7532 2000-10-17 Jakub Jelinek <jakub@redhat.com>
7533
7534 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
7535
7536 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
7537 sure linker can relax even the delay slot mov %g1,%o7, fix output
7538 formating.
7539
7540 2000-10-17 Kazu Hirata <kazu@hxi.com>
7541
7542 * config/h8300/h8300.md: Remove an unnecessary zero_extend
7543 expander that is used when not optimizing. Output a tab after
7544 each assembly insns.
7545
7546 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
7547
7548 * gcc.c: New options --target-help.
7549 (process_command): Added code to parse this new option.
7550 * toplev.c (display_target_options): New function to support the
7551 above new option.
7552 * cppinit.c (new_pending_directive) : New option OPT_target__help.
7553 (cpp_handle_option): Support this new option.
7554 * invoke.texi: Added notes about --target-help option.
7555
7556 2000-10-17 Graham Stott <grahams@redhat.com>
7557
7558 * config/i386/i386.md (testqi_1): Add missing operand prefix
7559 for operand 0.
7560 * config/i386/i386-protos.h: Add missing prototype.
7561
7562 2000-10-17 Diego Novillo <dnovillo@cygnus.com>
7563
7564 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
7565 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
7566 using -mintel-syntax.
7567
7568 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
7569
7570 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
7571 (format_types): Use it for printf.
7572 (maybe_read_dollar_number): Add parameter for the kind of format
7573 involved. Warn for multiple use for arguments if this is
7574 inappropriate for the kind of format involved.
7575 (check_format_info_main): Update calls to maybe_read_dollar_number.
7576
7577 2000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7578
7579 * inclhack.def (hpux_maxint): Also apply fix to values.h.
7580 * fixincl.x: Rebuilt.
7581
7582 2000-10-17 Alexandre Oliva <aoliva@redhat.com>
7583
7584 * genrecog.c (write_switch): Return the first condition that needs a
7585 label.
7586
7587 2000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
7588
7589 * c-tree.h (warn_sequence_point): Move declaration to...
7590 * c-common.h (warn_sequence_point): ... here.
7591 * c-decl.c (warn_sequence_point): Move definition to...
7592 * c-common.c (warn_sequence_point): ... here.
7593 (struct reverse_tree): New.
7594 (reverse_list, reverse_max_depth): New static variables.
7595 (build_reverse_tree, common_ancestor, modify_ok
7596 verify_sequence_points): New functions.
7597 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
7598 * c-typeck.c (check_modify_expr): Delete.
7599 (build_modify_expr): Don't call it.
7600
7601 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
7602
7603 * c-common.h (warn_missing_format_attribute): New variable.
7604 * c-decl.c (warn_missing_format_attribute): New variable.
7605 (c_decode_option): Decode -Wmissing-format-attribute and
7606 -Wno-missing-format-attribute.
7607 * c-common.c (check_function_format): If
7608 -Wmissing-format-attribute, give a warning where a vprintf or
7609 vscanf function is called by a function without its own printf or
7610 scanf attribute.
7611 * toplev.c (documented_lang_options): Add
7612 -Wmissing-format-attribute.
7613 * invoke.texi: Document -Wmissing-format-attribute.
7614
7615 2000-10-17 Marc Espie <espie@openbsd.org>
7616
7617 * invoke.texi (-shared): Insist on requiring code generation flags
7618 to be used along with -shared, and document the subtle failure that
7619 may occur otherwise.
7620
7621 2000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7622
7623 * pa.md (return_internal): Move `use' after `return'.
7624
7625 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7626
7627 * machmode.def: Correct comment.
7628
7629 2000-10-16 Rodney Brown <RodneyBrown@mynd.com>
7630
7631 * print-rtl.c (print_rtx_head): Constify.
7632 * rtl.h (print_rtx_head): Similarly.
7633
7634 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
7635 Constify char * return value.
7636 * config/pa/pa/pa.c
7637 (output_64bit_and, output_64bit_ior): Constify char * return value.
7638 (pa_can_combine_p): Make static.
7639 (function_arg): Decorate unused `named' argument. Fix comment typo.
7640 (function_arg_partial_nregs): Decorate unused `named' argument.
7641
7642 2000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
7643
7644 * c-common.c (format_check_results): New structure.
7645 (finish_dollar_format_checking): Adjust to take a
7646 format_check_results * parameter.
7647 (check_format_info, check_format_info_recurse,
7648 check_format_info_main): Split check_format_info into three
7649 functions, the main checking going in check_format_info_main.
7650 Recurse when any reduction of the format string argument towards a
7651 string literal is done; go down both branches of a conditional
7652 expression. Don't warn for extra format arguments or empty format
7653 strings if they only occur in some branches of a conditional
7654 expression.
7655
7656 2000-10-16 Kazu Hirata <kazu@hxi.com>
7657
7658 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
7659
7660 2000-10-16 Jakub Jelinek <jakub@redhat.com>
7661
7662 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
7663
7664 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
7665
7666 * i386.md (*movsi_or): Switch operand order for intel syntax.
7667
7668 2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
7669
7670 * PROBLEMS: Remove.
7671
7672 * gcc.texi (Contributing): Update.
7673
7674 2000-10-13 Diego Novillo <dnovillo@cygnus.com>
7675
7676 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
7677 appropriate assembler dialect.
7678
7679 2000-10-13 Alexandre Oliva <aoliva@redhat.com>
7680
7681 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
7682
7683 2000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
7684
7685 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
7686 constants 1 and 2 to NO_LD_REGS.
7687
7688 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7689
7690 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
7691
7692 * objc/Make-lang.in (objc-parse.c): Likewise.
7693
7694 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
7695
7696 * arm.c: Include obstack.h
7697 (minipool_obstack, minipool_startobj): Define.
7698 (arm_add_gc_roots): Initialize them.
7699 (create_fix_barrier): Use our new obstack.
7700 (push_minipool_barrier, push_minipool_fix): Likewise.
7701 (arm_reorg): Release obstack memory.
7702
7703 2000-10-13 Jakub Jelinek <jakub@redhat.com>
7704
7705 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
7706 (prologue, exception_receiver, builtin_setjmp_receiver): New
7707 patterns.
7708 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
7709 * config/sparc/sparc-protos.h (finalize_pic): Remove.
7710 (load_pic_register): New prototype.
7711 * config/sparc/sparc.c (pic_setup_code): Remove.
7712 (finalize_pic): Rename to...
7713 (load_pic_register): ...this function.
7714 Don't look for nonlocal_goto_receivers and emit pic setup code
7715 directly. Don't check current_function_uses_pic_offset_table.
7716
7717 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
7718
7719 * tree.h (struct obstack): Declare.
7720
7721 2000-10-12 Mark Mitchell <mark@codesourcery.com>
7722
7723 Remove obstacks.
7724 * Makefile.in (ggc-callbacks.o): Remove target.
7725 (flow.o): Depend on GGC_H.
7726 * alias.c (init_alias_analysis):
7727 Remove ggc_p conditionals.
7728 (end_alias_analysis): Likewise.
7729 * basic-block.h (init_flow): New function.
7730 (allocate_reg_life_data): Declare.
7731 * bb-reorder.c (function_obstack): Replace with ...
7732 (flow_obstack): ... new variable.
7733 (fixup_reorder_chain): Use it.
7734 * c-decl.c (ggc_p): Remove.
7735 (caller-save.c): Don't call oballoc/obfree.
7736 * combine.c (struct
7737 undobuf): Remove storage.
7738 (try_combine): Don't call oballoc.
7739 (undo_all): Don't call obfree.
7740 * cse.c (insert): Use xmalloc, not
7741 oballoc.
7742 (cse_main): Adjust accordingly.
7743 * dwarf2out.c (save_rtx): Remove
7744 obstack code.
7745 (dwarf2out_init): Remove ggc_p conditionals.
7746 * emit-rtl.c (rtl_obstack): Remove.
7747 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
7748 (make_insn_raw): Likewise.
7749 (emit_insn_before): Likewise.
7750 (emit_insn_after): Likewise.
7751 (emit_insn): Likewise.
7752 (gen_sequence): Likewise.
7753 (copy_insn_1): Remove handling of `b' RTL components.
7754 (init_emit_once): Remove ggc_p conditionals.
7755 * except.c (create_rethrow_ref): Don't fool with obstacks.
7756 (add_partial_entry): Likewise.
7757 (call_get_eh_context): Likewise.
7758 (begin_protect_partials): Likewise.
7759 (protect_with_terminate): Likewise.
7760 * explow.c
7761 (plus_constant_wide): Likewise.
7762 * expr.c (init_expr_once):
7763 Likewise.
7764 (emit_block_move): Likewise.
7765 (clear_storage): Likewise.
7766 (expand_expr): Likewise.
7767 * flow.c (function_obstack): Remove.
7768 (flow_obstack): New variable.
7769 (flow_firstobj): Likewise.
7770 (create_base_block): Use the flow_obstack.
7771 (split_block): Likewise.
7772 (split_edge): Likewise.
7773 (calculate_global_regs_live): Likewise.
7774 (allocate_bb_life_data): Make it static. Likewiwse.
7775 (init_flow): New function.
7776 (size_int_type_wide): Remove ggc_p conditionals.
7777 * function.c
7778 (push_function_context_to): Don't call save_tree_status.
7779 (pop_function_context_from): Or restore_tree_status.
7780 (assign_stack_local_1): Don't call push_obstacks.
7781 (find_fixup_replacement): Use xmalloc.
7782 (fixup_var_refs_insns): Free the storage.
7783 (insns_for_mem_walk): Don't mess with obstacks.
7784 (instantiate_decls): Likewise.
7785 (trampoline_address): Likewise.
7786 (expand_function_end): Likewise.
7787 * function.h (sturct function):
7788 Remove obstack-related variables.
7789 (save_tree_status): Don't declare.
7790 (restore_tree_status): Likewise.
7791 * gcse.c (compute_can_copy):
7792 Don't call oballoc/obfree.
7793 * genattrtab.c (operate_exp): Remove
7794 ggc_p conditionals.
7795 (simplify_cond): Likewise.
7796 (simplify_test_exp): Don't mess with obstacks.
7797 (optimize_attrs): Likewise.
7798 * gengenrtl.c (gendef): Don't include
7799 ggc_p conditionals.
7800 * ggc-callbacks.c (ggc_p): Remove.
7801 * ggc-none.c (ggc_p): Remove.
7802 * ggc.h (ggc_p): Don't declare.
7803 * integrate.c (save_for_inline): Don't mess with obstacks.
7804 (integrate_decl_tree): Likewise.
7805 (output_inline_function): Likewise.
7806 * lists.c
7807 (init_EXPR_INSN_LIST_cache): Likewise.
7808 * loop.c (temp_obstack):
7809 Remove.
7810 (rtl_obstack): Likewise.
7811 (init_loop): Don't mess with obstacks.
7812 (reg_address_cost): Free BIVs and GIVs.
7813 (check_insns_for_bivs): Use xmalloc, not oballoc.
7814 (find_mem_givs): Likewise.
7815 (record_biv): Likewise.
7816 (general_induction_var): Likewise.
7817 (product_cheap_p): Likewse.
7818 * optabs.c (init_one_libfunc): Remove
7819 ggc_p conditional.
7820 * print-tree.c (debug_tree): Don't use
7821 oballoc/obfree.
7822 (print_node): Likewise.
7823 * profile.c (output_func_start_profiler):
7824 Remove call to temporary_allocation.
7825 * reload1.c
7826 (eliminate_regs_in_insn): Don't mess with obstacks.
7827 * resource.c
7828 (mark_target_live_regs): Use xmalloc.
7829 (free_resource_info): Free the memory.
7830 * rtl.c (rtl_obstack):
7831 Remove.
7832 (rtvec_alloc): Don't mess with obstacks.
7833 (rtx_alloc): Likewise.
7834 (rtx_free): Remove.
7835 (copy_rtx): Don't handle `b' cases.
7836 (read_rtx): Use a local rtl_obstack.
7837 * rtl.h (oballoc): Remove.
7838 (obfree): Likewise.
7839 (pop_obstacks): Likewise.
7840 (push_obstacks): Likewise.
7841 (allocate_bb_life_data): Likewise.
7842 (allocate_reg_life_data): Likewise.
7843 (rtx_free): Likewise.
7844 * sdbout.c (sdbout_queue_anonymous_type):
7845 Use tree_cons, not saveable_tree_cons.
7846 * simplify-rtx.c
7847 (cselib_init): Don't mess with obstacks.
7848 * stmt.c
7849 (mark_block_nesting): Mark the label_chain.
7850 (epxand_label): Use ggc_alloc, not oballoc.
7851 (clear_last_expr): Don't mess with obstacks.
7852 (expand_decl_cleanup): Likewise.
7853 (expand_dcc_cleanup): Likewise.
7854 (expand_dhc_cleanup): Likewise.
7855 (expand_anon_union_decl): Likewise.
7856 (add_case_node): Use xmalloc, not oballoc.
7857 (free_case_nodes): New function.
7858 (expand_end_case): Call it.
7859 * stor-layout.c (layout_type): Don't
7860 mess with obstacks.
7861 (layout_type): Likewise.
7862 * toplev.c (wrapup_global_declarations):
7863 Likewise.
7864 (compile_file): Remove ggc_p conditionals.
7865 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
7866 (decode_f_option): Remove ggc_p conditionals.
7867 * tree.c
7868 (function_maybepermanent_obstack): Remove.
7869 (maybepermanent_obstack): Likewise.
7870 (function_obstack): Likewise.
7871 (tmeporary_obstack): Likewise.
7872 (momentary_obstack): Likewise.
7873 (temp_decl_obstack): Likewise.
7874 (saveable_obstack): Likewise.
7875 (rtl_obstack): Likewise.
7876 (current_obstack): Likewise.
7877 (expression_obstack): Likewise.
7878 (struct obstack_stack): Likewise.
7879 (obstack_stack): Likewise.
7880 (obstack_stack_obstack): Likewise.
7881 (maybepermanent_firstobj): Likewise.
7882 (temporary_firstobj): Likewise.
7883 (momentary_firstobj): Likewise.
7884 (temp_decl_firstobj): Likewise.
7885 (momentary_function_firstobj): Likewise.
7886 (all_types_permanent): Likewise.
7887 (struct momentary_level): Likewise.
7888 (momentary_stack): Likewise.
7889 (init_obstacks): Remove initialization of removed obstacks.
7890 (save_tree_status): Remove.
7891 (restore_tree_status): Likewise.
7892 (temporary_allocation): Liekwise.
7893 (end_temporary_allocation): Liekwise.
7894 (resume_temporary_allocation): Likewise.
7895 (saveable_allocation): Likewise.
7896 (push_obstacks): Likewise.
7897 (push_obstacks_nochange): Likewise.
7898 (pop_obstacks): Likewise.
7899 (allocation_temporary_p): Likewise.
7900 (permanent_allocation): Likewise.
7901 (preserve_data): Likewise.
7902 (preserve_initializer): Likewise.
7903 (rtl_in_current_obstack): Likewise.
7904 (rtl_in_saveable_obstack): Likewise.
7905 (oballoc): Likewise.
7906 (obfree): Likewise.
7907 (savealloc): Likewise.
7908 (expralloc): Likewise.
7909 (print_obstack_name): Likewise.
7910 (debug_obstack): Likewise.
7911 (object_permanent_p): Likewise.
7912 (push_momentary): Likewise.
7913 (perserve_momentary): Likewise.
7914 (clear_momentary): Likewise.
7915 (pop_momentary): Likewise.
7916 (pop_momentary_nofree): Likewise.
7917 (suspend_momentary): Likewise.
7918 (resume_momentary): Likewise.
7919 (make_node): Don't set TREE_PERMANENT.
7920 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
7921 Don't set TREE_PERMANENT.
7922 (get_identifier): Remove ggc_p conditionals.
7923 (build_string): Likewise.
7924 (make_tree_vec): Likewise.
7925 (build_decl_list): Remove.
7926 (build_expr_list): Likewise.
7927 (tree_cons): Remove ggc_p conditionals.
7928 (decl_tree_cons): Remove.
7929 (expr_tree_cons): Likewise.
7930 (perm_tree_cons): Likewise.
7931 (temp_tree_cons): Likewise.
7932 (saveable_tree_cons): Likewise.
7933 (build1): Remove ggc_p conditionals.
7934 (build_parse_node): Likewise.
7935 (build_type_attribute_variant): Don't mess with obstacks.
7936 (build_type_copy): Likewise.
7937 (type_hash_canon): Likewise.
7938 (build_pointer_type): Likewise.
7939 (build_reference_type): Likewise.
7940 (build_index_type): Likewise.
7941 (build_range_type): Likewise.
7942 (dump_tree_statistics): Don't print obstack information.
7943 * tree.h
7944 (struct tree_common): Remove permanent_flag.
7945 (TREE_PERMANENT): Remove.
7946 (TREE_SET_PERMANENT): Likewise.
7947 (TYPE_OBSTACK): Likewise.
7948 (struct tree_type): Remove obstack.
7949 (oballoc): Remove.
7950 (savealloc): Likewise.
7951 (build_decl_list): Likewise.
7952 (build_expr_list): Likewise.
7953 (perm_tree_cons): Likewise.
7954 (temp_tree_cons): Likewise.
7955 (saveable_tree_cons): Likewise.
7956 (decl_tree_cons): Likewise.
7957 (expr_tree_cons): Likewise.
7958 (suspend_momentary): Likewise.
7959 (allocation_temporary_p): Likewise.
7960 (resume_momentary): Likewise.
7961 (push_obstacks_nochange): Likewise.
7962 (permanent_allocation): Likewise.
7963 (push_momentary): Likewise.
7964 (clear_momentary): Likewise.
7965 (pop_momentary): Likewise.
7966 (end_temporary_allocation): Likewise.
7967 (pop_obstacks): Likewise.
7968 (push_obstacks): Likewise.
7969 (pop_momentary_nofree): LIkewise.
7970 (preserve_momentary): Likewise.
7971 (saveable_allocation): Likewise.
7972 (temporary_allocation): Likewise.
7973 (resume_temporary_allocation): Likewise.
7974 (perserve_initializer): Likewise.
7975 (debug_obstack): Likewise.
7976 (rtl_in_current_obstack): Likewise.
7977 (rtl_in_saveable_obstack): Likewise.
7978 (obfree): Likewise.
7979 * varasm.c (current_obstack): Remove.
7980 (saveable_obstack): Remove.
7981 (rtl_obstack): Remove.
7982 (immed_double_const): Don't mess with obstacks.
7983 (immed_real_cons): Likewise.
7984 (output_constant_def): Likewise.
7985 (init_varasm_status): Use xcalloc.
7986 (mark_pool_constant): Mark the pool constant itself.
7987 (free_varasm_status): Free memory.
7988 (decode_rtx_const): Call bzero directly, rather than expanding it
7989 inline.
7990 (record_rtx_const): Don't mess with obstacks.
7991 (force_const_mem): Likewise.
7992 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
7993 conditionals.
7994 (aof_pic_entry): Likewise.
7995 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
7996 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
7997 * config/pa/pa.c (saveable_obstack): Remove.
7998 (rtl_obstack): Likewise.
7999 (current_obstack): Likewise.
8000 (output_call): Don't mess with obstacks.
8001 (hppa_encode_label): Remove ggc_p conditionals.
8002 * config/romp/romp.c (get_symref): Don't mess with obstacks.
8003 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
8004 (rs6000_encode_section_info): Likewise.
8005 * config/sh/sh.c (get_fpscr_rtx): Likewise.
8006
8007 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
8008
8009 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
8010 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
8011 (addsi3_carry): Canonicalize.
8012 (addqi_5): Remove '*'.
8013 (sbb pattern): Canonicalize.
8014
8015 * i386.md (cmp to inc/add peep2): New.
8016
8017 2000-10-12 Richard Earnshaw <rearnsha@arm.com>
8018
8019 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
8020 the exit block.
8021
8022 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
8023
8024 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
8025 * README.TRAD, TESTS.FLUNK: Remove.
8026
8027 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
8028
8029 * c-common.c (decl_attributes): Don't allow strftime formats with
8030 first_arg_num nonzero.
8031 (check_format_info): Set wanted_type and wanted_type_name to zero
8032 before they are possibly assigned and used.
8033
8034 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
8035
8036 * c-common.c (scanf_flag_specs): Add flags ' and I.
8037 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
8038 or the ^ and # flags together.
8039 (scan_char_table): Handle the ' and I flags.
8040 (format_types): Add ' and I flags for scanf.
8041
8042 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
8043
8044 * c-common.c (print_char_table): Use the unpromoted type for
8045 lengths "h" and "hh" with conversions dioxXu.
8046 (check_format_types): Apply the default argument promotions where
8047 the wanted type is not a pointer target.
8048
8049 2000-10-11 Michael Meeks <mmeeks@gnu.org>
8050 Joseph S. Myers <jsm28@cam.ac.uk>
8051
8052 * c-typeck.c (check_modify_expr): New function.
8053 (build_modify_expr): Call it if warn_sequence_point.
8054 * c-decl.c (warn_sequence_point): New variable.
8055 (c_decode_option): Handle -Wsequence-point and
8056 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
8057 * c-tree.h (warn_sequence_point): Declare.
8058 * invoke.texi (-Wsequence-point): Document.
8059 * toplev.c (documented_lang_options): Add -Wsequence-point and
8060 -Wno-sequence-point.
8061 Original work by Michael Meeks, 16 Jun 1998.
8062
8063 Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8064
8065 * tree.c (get_narrower): Don't look at precision of field if
8066 not laid out yet.
8067
8068 Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
8069
8070 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
8071 declaration for data with "progmem" attribute.
8072
8073 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
8074
8075 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
8076 Correct insn length if shift count is a memory operand.
8077 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
8078 (*iorhi3_clobber): Change lo8 to hi8.
8079 (zero_extendhisi2): Change %B0 to %A1.
8080 (ashlhi3, ashrhi3): Correct insn length.
8081 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
8082 from "clobber" to "set_n" in some alternatives.
8083
8084 2000-10-10 Jakub Jelinek <jakub@redhat.com>
8085
8086 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
8087 remove its insn_chain structure as well.
8088
8089 2000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8090
8091 * dbxout.c (dbxout_source_line): Remove extra tab.
8092
8093 2000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
8094
8095 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
8096
8097 2000-10-09 Richard Henderson <rth@cygnus.com>
8098
8099 * Makefile.in (LANG_LIB2FUNCS): Remove.
8100 (LIB2FUNCS): Remove _pure.
8101 (LIB2ADD): Remove LANG_LIB2FUNCS.
8102 (stage_a): Don't set LANG_LIB2FUNCS.
8103 * libgcc2.c (__terminate): Mark noreturn.
8104 (__pure_virtual): Remove.
8105 * mklibgcc.in: Remove LIB2ADD .txt processing.
8106
8107 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
8108
8109 * arm.md (push_multi): Revert unintended change.
8110
8111 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
8112
8113 * arm.c: Miscellaneous white space and comment clean-ups. No
8114 functional change.
8115 * arm.md: Likewise.
8116
8117 2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8118
8119 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
8120 STRING_CST by calling combine_strings.
8121
8122 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
8123
8124 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
8125 (thumb_output_move_mem_multiple): Support new insn format.
8126 * arm.md (movmem12b): Use SSA compatible format.
8127 (movmem8b): Likewise.
8128
8129 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
8130
8131 * arm.md (predicable): New attribute, default to "no".
8132 (all patterns): Mark as predicable if appropriate.
8133 (conditional execution splits): Split using predication format.
8134 (define_cond_exec): Define.
8135 * arm.c (arm_print_operand): handle insn predicate.
8136
8137 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8138
8139 * README.NS32K: Remove file.
8140
8141 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8142
8143 * README-bugs: Remove file.
8144
8145 2000-10-08 Philipp Thomas <pthomas@suse.de>
8146 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
8147 for test.
8148 * configure: Rebuilt.
8149
8150 2000-10-08 Philipp Thomas <pthomas@suse.de>
8151 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
8152 disable catalog building if no suitable program was found.
8153 Move warning message from here
8154 (AM_GNU_GETTEXT): To here.
8155 * configure: Rebuilt.
8156
8157 2000-10-08 Philipp Thomas <pthomas@suse.de>
8158 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
8159 different cache variables.
8160 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
8161 uses different cache variables.
8162 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
8163 * configure: Regenerated.
8164
8165 2000-10-08 Richard Henderson <rth@cygnus.com>
8166
8167 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
8168 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
8169 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
8170 Use SHLIB_EXT.
8171
8172 * config/t-linux (SHLIB_EXT): New.
8173 (SHLIB_LINK): Use the entire build command, with substitutions.
8174 (SHLIB_LIBS): Remove.
8175 * config/alpha/t-osf4: Likewise.
8176 * config/mips/t-iris6: Likewise.
8177 * config/sparc/t-sol2: Likewise, but move shlib stuff...
8178 * config/sparc/t-slibgcc-sld: ...here.
8179 * config/sparc/t-slibgcc: New file.
8180
8181 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
8182
8183 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
8184 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
8185 CTI_UINTMAX_TYPE.
8186 (intmax_type_node, uintmax_type_node): Define.
8187 * c-common.c (decl_attributes): If pedantic, warn if `mode'
8188 attributes create a type wider than intmax_t.
8189 (T_IM, T_UIM): Define properly.
8190 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
8191 defined.
8192 (init_decl_processing): Initialize intmax_type_node and
8193 uintmax_type_node.
8194 * c-lex.c (lex_number): When pedantic and warning for integer
8195 constants that are too large, in C99 mode warn for those that have
8196 a type wider than long long.
8197
8198 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
8199
8200 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
8201 FMT_FLAG_FANCY_PERCENT_OK): Define.
8202 (format_char_info): Add flag "4" to comment.
8203 (format_flag_spec, format_flag_pair): New structures.
8204 (format_kind_info): Add additional fields to control format
8205 checking.
8206 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
8207 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
8208 arrays.
8209 (time_char_table): Use "4" flag to handle %Ey.
8210 (format_types): Add entries for new fields.
8211 (get_flag_spec): New function.
8212 (check_format_info): Increase size of flag_chars[] to 256.
8213 Control format checking using the new fields of a format_kind_info
8214 and the new tables; remove all conditionals on printf_format_type,
8215 scanf_format_type or strftime_format_type. Handle all details of
8216 bad combinations of flags (including width, precision and strftime
8217 modifiers) through data rather than ad hoc code. Handle all
8218 details of standard versions in which flags appeared through
8219 data. Use the "4" flag.
8220
8221 2000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
8222
8223 * config/h8300/h8300.md: Remove the memory alternative and correct
8224 the insn lengths in the templates for sign extention and zero
8225 extention.
8226
8227 2000-10-07 Richard Henderson <rth@cygnus.com>
8228
8229 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
8230 * flow.c (make_edges): Revert last change.
8231
8232 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
8233 TREE_THIS_VOLATILE.
8234 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
8235
8236 2000-10-06 David O'Brien <obrien@dragon.nuxi.com>
8237
8238 * config/alpha/elf.h: Standardize the formatting.
8239
8240 2000-10-06 David O'Brien <obrien@FreeBSD.org>
8241
8242 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
8243 #undef.
8244
8245 2000-10-06 Richard Henderson <rth@cygnus.com>
8246
8247 * function.c (diddle_return_value): Examine
8248 current_function_return_rtx instead of the DECL_RESULT.
8249 (expand_function_end): Handle reloading DECL_RESULT from memory
8250 into a hard register. Query promote_mode for sign of mismatched
8251 modes.
8252
8253 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
8254
8255 * haifa-sched.c (schedule_insns): Fix typo in freeing
8256 forward_dependency_cache.
8257
8258 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
8259
8260 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
8261 `TARGET_SH2' as a condition.
8262
8263 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
8264
8265 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
8266 forward_dependency_cache): New variables.
8267 (add_dependence, remove_dependence): Use anti_dependency_cache and
8268 output_dependency_cache.
8269 (compute_block_forward_dependences): Use forward_dependency_cache.
8270 (schedule_insns): Allocate and free memory for anti/output/forward
8271 dependencies caches.
8272
8273 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
8274
8275 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
8276 `! TARGET_SH1'. Reindent.
8277
8278 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8279
8280 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
8281 Move functions from here ...
8282
8283 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
8284 ... to here.
8285 (c_expand_builtin): New function.
8286 (init_function_format_info): Don't set `check_function_format_ptr'.
8287 (c_common_nodes_and_builtins): Set built_in_class type for
8288 printf/__builtin_printf to BUILT_IN_FRONTEND.
8289 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
8290
8291 * c-common.h (build_function_call): Declare.
8292
8293 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
8294 to `lang_expand_expr' rather than `expand_builtin'.
8295
8296 * tree.c (check_function_format_ptr): Delete.
8297
8298 * tree.h (check_function_format_ptr): Likewise.
8299
8300 2000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
8301
8302 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
8303 DW_OP_bregx when cfa->reg > 31.
8304
8305 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
8306 break.
8307
8308 2000-10-05 Richard Henderson <rth@cygnus.com>
8309
8310 * c-decl.c (warn_missing_noreturn): Remove.
8311 (c_expand_body): Don't set or check can_reach_end.
8312 * c-tree.h (warn_missing_noreturn): Move ...
8313 * flags.h: ... here.
8314 (can_reach_end): Remove.
8315 * flow.c (check_function_return_warnings): New.
8316 (make_edges): No edge to exit for noreturn sibcalls.
8317 * function.c (expand_function_end): Save the return value
8318 clobber instruction.
8319 (mark_function_status): Mark it.
8320 * function.h (struct function): Add x_clobber_return_insn.
8321 * jump.c (can_reach_end): Remove.
8322 (calculate_can_reach_end): Remove.
8323 (jump_optimize_1): Don't call it.
8324 * output.h (check_function_return_warnings): Declare.
8325 * toplev.c (warn_missing_noreturn): Move from c-decl.c
8326 (rest_of_compilation): Call check_function_return_warnings.
8327
8328 2000-10-05 Richard Henderson <rth@cygnus.com>
8329
8330 * Makefile.in (NM_FOR_TARGET): New.
8331 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
8332 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
8333 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
8334 shared library build on that and EXTRA_MULTILIB_PARTS.
8335 * mkmap-flat.awk: New file.
8336 * mkmap-symver.awk: New file.
8337 * libgcc-std.ver: New file.
8338 * config/libgcc-glibc.ver: New file.
8339 * config/ia64/libgcc-ia64.ver: New file.
8340 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
8341 (SHLIB_LINK): Add --version-script.
8342 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
8343 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
8344 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
8345 (SHLIB_LINK): Add -M.
8346
8347 2000-10-05 Richard Henderson <rth@cygnus.com>
8348
8349 * Makefile.in (LIB2FUNCS): Add _clz.
8350 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
8351 (__clz_tab): Put in its own unit, non-static.
8352 * libgcc2.h: Always include longlong.h.
8353
8354 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
8355 a zero instead of -1.
8356 (count_trailing_zeros): Likewise.
8357
8358 2000-10-05 Richard Henderson <rth@cygnus.com>
8359
8360 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
8361 when second op1 is const0_rtx. Validate op0 as a register.
8362 * config/alpha/alpha.md (setcc_internal): Don't allow constants
8363 in the first argument of the compare.
8364 (setcc_swapped_internal): Likewise.
8365 (setne_internal): Likewise.
8366
8367 2000-10-05 Geoff Keating <geoffk@cygnus.com>
8368
8369 * tree.c (tree_size): New function split out of copy_node.
8370 (make_node): Remove obstack handling. Use tree_size.
8371 (copy_node): Use tree_size.
8372 * tree.h: Prototype tree_size.
8373
8374 2000-10-05 Richard Henderson <rth@cygnus.com>
8375
8376 * diagnostic.c (output_format): Add missing break.
8377
8378 2000-10-05 Jim Wilson <wilson@cygnus.com>
8379
8380 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
8381 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
8382 sequence insn to INSN, and delete last sequence insn.
8383
8384 2000-10-05 Phil Edwards <pme@gcc.gnu.org>
8385
8386 * gcc.c (main): Include generated configargs.h header
8387 and use arguments in '-v' output.
8388
8389 Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8390
8391 * gcc.c: Move data on prefixes forward in file and reorganize.
8392 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
8393 Always define, but make null if no value.
8394 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
8395 and "md_startfile_prefix_1".
8396 (main): Check whether md_exec_prefix and the others are the
8397 null string rather than whether the macro is defined.
8398
8399 Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
8400
8401 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
8402 from PSImode to SImode.
8403
8404 2000-10-05 Jakub Jelinek <jakub@redhat.com>
8405
8406 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
8407 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
8408 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
8409 sizeof(long).
8410
8411 Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8412
8413 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
8414 negation in proper type.a
8415
8416 2000-10-04 Richard Henderson <rth@cygnus.com>
8417
8418 * configure.in (enable-shared): New.
8419 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
8420 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
8421 * mklibgcc.in: Use them to link shared a libgcc.
8422 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
8423 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
8424 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
8425 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
8426
8427 * configure.in (alpha-osf*): Use t-osf and x-osf.
8428 * config/alpha/t-osf: New file.
8429 * config/alpha/t-osf4: New file.
8430 * config/alpha/x-osf: New file.
8431 * config/alpha/x-alpha: Remove file.
8432
8433 2000-10-04 Will Cohen <wcohen@redhat.com>
8434
8435 * c-typeck.c (process_init_element): Added warning for zero-length
8436 array.
8437
8438 * extend.texi (Zero Length): State that static initializers for
8439 zero-length arrays are not allowed.
8440
8441 Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
8442
8443 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
8444 to come last.
8445
8446 2000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8447
8448 * config/float-c4x.h: New.
8449 * configure.in (c4x-*): Set float_format to c4x.
8450 * configure: Regenerate.
8451
8452 2000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8453
8454 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
8455 compilation for solaris versions 2.7 and greater.
8456
8457 2000-10-02 Marc Espie <espie@openbsd.org>
8458
8459 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
8460 instead of redefining from scratch.
8461
8462 2000-10-02 David O'Brien <obrien@dragon.nuxi.com>
8463
8464 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
8465
8466 2000-10-01 Mark Mitchell <mark@codesourcery.com>
8467
8468 * config/ns32k/genix.h: Remove.
8469 * config/ns32k/x-genix: Likewise.
8470 * config/ns32k/xm-genix.h: Likewise.
8471 * config/fx80: Remove all filee in directory.
8472 * config/pyr: Likewise.
8473 * config/tahoe: Likewise.
8474 * config/gmicro: Likewise.
8475 * config/spur: Likewise.
8476 * configure.in: Remove configury bits for above targets.
8477 * configure: Regenerated.
8478
8479 * configure.in: Don't configure chill by default.
8480 * configure: Regenerated.
8481
8482 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
8483 (lang_mark_false_label_stack): Remove.
8484 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
8485 <top level> string in GC area.
8486 (mark_splay_tree_node): New function.
8487 (mark_splay_tree): Likewise.
8488 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
8489 if it exists.
8490 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
8491 * ggc-common.c (lang_mark_false_label_stack): Change type.
8492 * ggc.h (ggc_alloc_string): Add comment.
8493 (ggc_strdup): New function.
8494
8495 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
8496
8497 * config/avr/avr.h (BRANCH_COST): Define as 0.
8498
8499 * config/pdp11/pdp11.c: #include "tree.h" added.
8500
8501 2000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
8502
8503 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
8504 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
8505 with known shift count.
8506 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
8507 New alternative for shift count 2 with no scratch register.
8508 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
8509 "set_n" for shift counts 1 and 2.
8510
8511 2000-09-30 Geoff Keating <geoffk@cygnus.com>
8512
8513 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
8514 the mask value from the individual SET operations.
8515 (return_internal_si): Move the USE after the RETURN.
8516 (return_internal_di): Likewise.
8517 (return_and_restore_fpregs_si): Likewise.
8518 (return_and_restore_fpregs_di): Likewise.
8519 (return_eh_si): Likewise.
8520 (return_eh_di): Likewise.
8521 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
8522 or check, the USE.
8523 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
8524 Don't generate a PARALLEL around a single operation movsi_to_cr.
8525 Generate the RETURN first in any PARALLELs.
8526
8527 * rtlanal.c (single_set_1): Use fatal_insn to display the
8528 invalid insn. Check for more cases when a USE or CLOBBER occurs
8529 before a SET.
8530 * Makefile.in: Update dependencies for rtlanal.o.
8531
8532 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
8533
8534 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
8535
8536 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
8537
8538 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
8539 Consistently use @email for formatting email addresses.
8540
8541 2000-09-29 Richard Henderson <rth@cygnus.com>
8542
8543 * cse.c (notreg_cost): New argument outer.
8544 (COST): Pass in SET to notreg_cost
8545 (COST_IN): New.
8546 (fold_rtx): Use COST_IN. Prefer constants when costs
8547 are the same.
8548
8549 2000-09-29 David Edelsohn <edelsohn@gnu.org>
8550
8551 * fixinc/inclhack.def (broken_cabs): Generalize regex.
8552 * fixinc/fixincl.x: Regenerate.
8553
8554 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8555
8556 * loop.c (check_final_value): A GIV is not replaceable if used
8557 before set.
8558
8559 Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
8560
8561 * version.c: Bump to gcc-2.97.
8562
8563 Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
8564
8565 * final.c (final_scan_insn): Remove extra extract_insn call;
8566 Use caching for constrain_operands.
8567 (cleanup_subreg_operands): Use caching for extract_insn.
8568 * recog.c (constrain_operands_cached): New.
8569 * recog.h (constrain_operands_cached): Declare.
8570 * i386.c (ix86_attr_length_immediate_default,
8571 ix86_attr_length_address_default, ix86_agi_dependant): Cache
8572 extract_insn call.
8573
8574 * recog.c (asm_noperands): Tweak.
8575 (extract_insn): Do not call asm_noperads for non-asm instructions.
8576
8577 Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
8578
8579 * recog.c (recog_memoized): Rename to recog_memoized_1.
8580 * recog.h (recog_memoized): Rename to recog_memoized_1.
8581 (recog_memoized): New macro.
8582 * rtl.h (single_set): Rename to single_set_1
8583 (single_set): New macro.
8584 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
8585 to be last.
8586
8587 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
8588 Do not use match_dup of input operands at outputs.
8589 Use register_operand for memory expression.
8590 (rep_movsi): Put use last, canonicalize.
8591 Use register_operand for memory expression.
8592 (rep_movqi): Put use last.
8593 Use register_operand for memory expression.
8594 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
8595 of input operands at outputs. Use register_operand for memory
8596 expression.
8597 (rep_stossi): Put use last; canonicalize; fix match_dup in
8598 the address expression
8599 (rep_stosqi): Likewise.
8600 (memcmp expander): Update calls.
8601 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
8602 the clobbers.
8603
8604 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
8605 VOIDmode.
8606 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
8607
8608 2000-09-28 David O'Brien <obrien@FreeBSD.org>
8609
8610 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
8611 Contains the old contents of config/i386/freebsd.h
8612 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
8613 Contains the old contents of config/i386/freebsd-elf.h
8614 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
8615 config/i386/freebsd.h.
8616 * configure.in: Adjust for above changes.
8617 * po/POTFILES.in: Likewise.
8618 * po/en_GB.po: Likewise.
8619 * po/gcc.pot: Likewise.
8620 * configure: Rebuilt.
8621
8622 2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8623
8624 * doloop.c (doloop_modify): Prevent delete_insn() from
8625 deleting too much. Prefer loop->top over loop->start as
8626 target for the new JUMP insn.
8627 (doloop_valid_p): Ignore loop with exit_count != 0.
8628
8629 2000-09-28 Philipp Thomas <pthomas@suse.de>
8630
8631 * invoke.texi (i386 Options): Add athlon to table of possible
8632 choices for -mcpu=.
8633
8634 2000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
8635
8636 * diagnostic.h (output_clear_message_text): New function.
8637 (output_message_text): New macro.
8638
8639 * diagnostic.c (clear_text_info): Rename to
8640 output_clear_message_text.
8641 (output_clear): Adjust.
8642 (output_finish): Rename to output_finalize_message. Tweek.
8643 (output_to_stream): Adjust.
8644
8645 2000-09-28 Neil Booth <neilb@earthling.net>
8646
8647 * cpperror.c (_cpp_begin_message): Do the test for suppression
8648 of warnings and pedantic warnings before the "is a warning an
8649 error" tests.
8650 * cppinit.c (cpp_handle_option): Remove surplus \n.
8651 * cpplex.c (ON_REST_ARG): Delete.
8652 (skip_block_comment): Initialise prevc.
8653 (parse_args): Improve error messages.
8654 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
8655 than ON_REST_ARG.
8656 * cpplib.c (cpp_push_buffer): Fix grammar in message.
8657 * cppmain.c (main): Set callbacks for #ident and #pragma
8658 only if no_output option is false.
8659 (do_pragma_implementation): Only call the #pragma handler
8660 if it is set in the cpp_reader structure.
8661
8662 Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
8663
8664 * integrate.c (copy_insn_list): if an ignored return value
8665 is being clobbered, skip cloning that into the inline copy.
8666
8667 2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
8668
8669 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
8670 use @uref for formatting URLs.
8671
8672 2000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
8673
8674 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
8675 name and prefix.
8676
8677 Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
8678
8679 * gcc.c (cpp_options): Add spec for -ftabstop=.
8680 (invoke_as): New spec that handles invoking as.
8681 Update specs to handle -save-temps and -traditional.
8682 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
8683 Use invoke_as.
8684 * cp/lang-specs.h, objc/lang-specs.h: Update to use
8685 invoke_as, and handle -save-temps and -traditional (if
8686 appropriate).
8687
8688 2000-09-26 Jakub Jelinek <jakub@redhat.com>
8689
8690 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
8691 op0 is a SUBREG.
8692 (function_arg_slotno): Accept TImode/CTImode.
8693 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
8694 to UNITS_PER_WORD.
8695
8696 2000-09-26 Michael Hayes <mhayes@cygnus.com>
8697
8698 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
8699 from entry block.
8700
8701 2000-09-25 Jim Wilson <wilson@cygnus.com>
8702
8703 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
8704 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
8705 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
8706 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
8707
8708 Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
8709
8710 * cpplex.c (parse_args): Don't set VOID_REST flag.
8711 (CONTEXT_VARARGS): New flag.
8712 (maybe_paste_with_next): Set context earlier in loop. Use
8713 it. Do varargs test with CONTEXT_VARARGS flag.
8714 (push_arg_context): Set CONTEXT_VARARGS flag if we're
8715 pushing an argument context for a varargs argument.
8716 * cpplib.h (VOID_REST): Delete.
8717 * gcc.dg/cpp/vararg1.c: Add test case.
8718
8719 2000-09-25 Branko Cibej <branko.cibej@hermes.si>
8720
8721 * flags.h: Declare warning flag warn_system_headers.
8722 * toplev.c: Define it.
8723 (W_options): Add option -Wsystem-headers.
8724 * diagnostic.c (count_error): Test warn_system_headers.
8725 * invoke.texi: Add description for -Wsystem-headers.
8726 * cpplib.h (cpp_options): New member warn_system_headers.
8727 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
8728 CPP_IN_SYSTEM_HEADER.
8729 * cpplib.c (do_import, do_pragma_once): Likewise.
8730 * cpperror.c (_cpp_begin_message): Test warn_system_headers
8731 and CPP_IN_SYSTEM_HEADER.
8732 * cppinit.c (handle_option): Recognize -Wsystem_headers.
8733 (print_help): Describe -Wsystem_headers.
8734 * cpplex.c (lex_line): Reorganize condition so that warnings
8735 about C++ comments in system headers can be enabled. Remove
8736 label do_line_comment.
8737
8738 Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
8739
8740 * cpplex.c (save_comment): Only store the initial '/'
8741 now.
8742 (lex_token): Combine handling of the two comment types.
8743 Pass everything but the initial '/' to save_comment.
8744
8745 Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
8746
8747 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
8748 _cpp_can_paste): New library-internal prototypes.
8749 * cpplex.c (dump_param_spelling, output_line_command,
8750 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
8751 cpp_printf, cpp_output_list): Move to cppoutput.c.
8752 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
8753 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
8754 cppoutput.c.
8755 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
8756 dump_param_spelling, output_line_command, cpp_scan_buffer,
8757 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
8758 from elsewhere.
8759 * Makefile.in: Add cppoutput.c.
8760 * po/POTFILES.in: Add cppoutput.c.
8761
8762 2000-09-25 Richard Henderson <rth@cygnus.com>
8763
8764 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
8765 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
8766 split until after reload.
8767 (rotlsi3, rotldi3): New.
8768
8769 2000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
8770
8771 * diagnostic.c (output_last_position): Define.
8772 (set_real_maximum_length): Tweek.
8773 * diagnostic.h (output_last_position): Declare.
8774
8775 2000-09-25 Kazu Hirata <kazu@hxi.com>
8776
8777 * config/i386/i386.c: Fix formatting.
8778
8779 2000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
8780
8781 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
8782 UNITS_PER_WORD is small.
8783
8784 2000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
8785
8786 * c-common.c (format_char_info): Add flags2; update comments.
8787 (print_char_table, scan_char_table, time_char_table): Split some
8788 flags out into flags2.
8789 (check_format_info): Use flags2 for those flags, for identifying
8790 the initial character of a scanf scanset, and for identifying
8791 printf formats where the '0' flag is ignored with precision.
8792
8793 2000-09-25 Hans-Peter Nilsson <hp@axis.com>
8794
8795 Changes below marked "here" add TABs on either or both sides,
8796 covering start of line, up to any operand for all noted .*ASM.*_OP
8797 definitions. All callers changed.
8798 * tm.texi: Make documented *_ASM.*_OP:s include spacing
8799 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
8800 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
8801 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
8802 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
8803 Fix typos in description for LONG_LONG_TYPE_SIZE and
8804 FINI_SECTION_ASM_OP.
8805 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
8806 why these defaults don't have leading spacing.
8807 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
8808 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8809 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
8810 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
8811 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
8812 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
8813 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
8814 * varasm.c (ASM_STABS_OP): Here.
8815 * xcoffout.h (ASM_STABS_OP): Here.
8816 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
8817 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
8818 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
8819 STRING_ASM_OP): Here.
8820 * config/freebsd.h (IDENT_ASM_OP): Here.
8821 * config/linux-aout.h (SET_ASM_OP): Here.
8822 * config/linux.h (SET_ASM_OP): Here.
8823 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8824 INT_ASM_OP): Here.
8825 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
8826 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
8827 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
8828 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8829 INT_ASM_OP): Here.
8830 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
8831 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
8832 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
8833 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
8834 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
8835 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8836 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
8837 * config/a29k/udi.h (INT_ASM_OP): Here.
8838 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
8839 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
8840 SET_ASM_OP): Here.
8841 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
8842 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8843 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8844 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
8845 ASM_STABD_OP): Here.
8846 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
8847 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
8848 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8849 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
8850 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
8851 SIZE_ASM_OP, STRING_ASM_OP): Here.
8852 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
8853 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
8854 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
8855 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
8856 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
8857 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
8858 Here.
8859 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8860 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
8861 * config/arm/coff.h (INT_ASM_OP): Here.
8862 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
8863 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
8864 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
8865 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
8866 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
8867 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8868 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
8869 STRING_ASM_OP): Here. Update documentation copy in comments.
8870 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
8871 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
8872 DATA_SECTION_ASM_OP): Here.
8873 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
8874 Here.
8875 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
8876 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
8877 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8878 BSS_SECTION_ASM_OP): Here.
8879 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8880 BSS_SECTION_ASM_OP): Here.
8881 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8882 Here.
8883 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
8884 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
8885 * config/h8300/h8300.h (ASM_WORD_OP): Here.
8886 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8887 BSS_SECTION_ASM_OP): Here.
8888 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
8889 * config/i386/bsd.h (ASM_BYTE_OP): Here.
8890 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
8891 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
8892 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
8893 Here.
8894 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
8895 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
8896 Here.
8897 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
8898 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8899 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
8900 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
8901 SET_ASM_OP): Here.
8902 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
8903 * config/i386/netbsd.h (INT_ASM_OP): Here.
8904 * config/i386/openbsd.h (INT_ASM_OP): Here.
8905 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
8906 IDENT_ASM_OP): Here.
8907 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
8908 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
8909 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
8910 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
8911 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
8912 SHARED_BSS_SECTION_ASM_OP): Here.
8913 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
8914 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
8915 DATA_SECTION_ASM_OP): Here.
8916 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8917 CONST_SECTION_ASM_OP): Here.
8918 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
8919 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8920 BSS_SECTION_ASM_OP): Here.
8921 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
8922 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
8923 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
8924 BSS_ASM_OP): Here, but use trailing spaces.
8925 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
8926 DATA_SECTION_ASM_OP): Here.
8927 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
8928 Here.
8929 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
8930 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
8931 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8932 TDESC_SECTION_ASM_OP): Here.
8933 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
8934 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8935 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8936 Here.
8937 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8938 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
8939 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8940 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
8941 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
8942 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
8943 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8944 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
8945 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
8946 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
8947 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
8948 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
8949 SET_ASM_OP): Here.
8950 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
8951 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8952 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
8953 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
8954 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
8955 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
8956 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
8957 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8958 GLOBAL_ASM_OP): Here.
8959 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
8960 BSS_SECTION_ASM_OP): Here.
8961 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
8962 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8963 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
8964 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
8965 SKIP_ASM_OP): Here.
8966 * config/m68k/newsgas.h (SET_ASM_OP): Here.
8967 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
8968 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
8969 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
8970 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
8971 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
8972 but use trailing spaces.
8973 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
8974 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
8975 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
8976 Here.
8977 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
8978 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
8979 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8980 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
8981 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8982 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
8983 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
8984 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
8985 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
8986 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
8987 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8988 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
8989 ASM_BYTE_OP): Here.
8990 * config/m88k/openbsd.h (SET_ASM_OP): Here.
8991 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8992 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
8993 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
8994 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
8995 DTORS_SECTION_ASM_OP): Here.
8996 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
8997 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8998 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
8999 BSS_SECTION_ASM_OP): Here.
9000 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
9001 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
9002 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
9003 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
9004 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
9005 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
9006 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
9007 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
9008 Here.
9009 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
9010 Here.
9011 * config/mips/osfrose.h (SET_ASM_OP): Here.
9012 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
9013 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
9014 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
9015 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
9016 Here.
9017 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
9018 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
9019 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
9020 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
9021 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
9022 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
9023 Here.
9024 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
9025 Here.
9026 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
9027 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
9028 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
9029 Here.
9030 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
9031 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
9032 * config/sparc/linux.h (COMMON_ASM_OP): Here.
9033 * config/sparc/linux64.h (COMMON_ASM_OP,
9034 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
9035 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
9036 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
9037 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
9038 * config/sparc/pbd.h (ASM_INT_OP): Here.
9039 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
9040 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
9041 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
9042 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
9043 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
9044 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
9045 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
9046 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
9047 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
9048 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
9049 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
9050 EH_FRAME_SECTION_ASM_OP): Here.
9051 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
9052 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
9053 Here.
9054 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
9055 Here.
9056 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
9057 TCOMMON_ASM_OP): Here.
9058 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
9059 Here.
9060 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
9061 ASM_BYTE_OP): Here.
9062
9063 2000-09-25 Richard Henderson <rth@cygnus.com>
9064
9065 * expmed.c (store_bit_field): Adjust last change to not consider
9066 any word-sized field naturally aligned.
9067
9068 2000-09-24 Richard Henderson <rth@cygnus.com>
9069
9070 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
9071 TFmode unordered compares properly. Revalidate integer compare
9072 operands.
9073 (alpha_emit_setcc): New.
9074 (alpha_emit_conditional_move): Revalidate integer compare operands.
9075 * config/alpha/alpha-protos.h: Update.
9076 * config/alpha/alpha.md (cmpdi): Allow general operands.
9077 (sne): Use alpha_emit_setcc.
9078 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
9079 (sunordered, sordered): New.
9080
9081 2000-09-24 Richard Henderson <rth@cygnus.com>
9082
9083 * config/ia64/ia64-protos.h: Update.
9084 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
9085 (ia64_expand_call): New.
9086 (ia64_expand_prologue): Emit an alloc if we need extra input
9087 registers.
9088 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
9089 instruction if true.
9090 (struct reg_flags): Add is_sibcall.
9091 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
9092 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
9093 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
9094 * config/ia64/ia64.h (PREDICATE_CODES): Update.
9095 * config/ia64/ia64.md (call): Use ia64_expand_call.
9096 (call_value): Likewise.
9097 (sibcall, sibcall_value): New.
9098 (call patterns): Remove extra expanders; tidy.
9099 (sibcall_epilogue): New.
9100 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
9101
9102 2000-09-24 Richard Henderson <rth@cygnus.com>
9103
9104 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
9105
9106 * sibcall.c (skip_pic_restore): New.
9107 (identify_call_return_value): Use it.
9108
9109 2000-09-24 Mark Mitchell <mark@codesourcery.com>
9110
9111 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
9112 functions. Generalize to handle both C and C++.
9113 * Makefile.in (c-tree.info): New target.
9114 (info): Add c-tree.info.
9115
9116 Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9117
9118 * expr.c (store_field): If BITSIZE is negative, use size of type.
9119 (expand_expr, case COMPONENT_EXPR): Likewise.
9120
9121 Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
9122
9123 * cpplex.c: Update TODO comment.
9124 * cpplib.c (do_error, do_warning): Merge common code of
9125 do_error and do_warning into do_diagnostic. Use it.
9126 (do_diagnostic): New function.
9127 * cpplib.h: Fix comment typo.
9128
9129 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
9130
9131 * c-common.c (check_format_info): Warn for a wide character string
9132 used as a non-wide format argument.
9133
9134 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
9135
9136 * builtins.def (BUILT_IN_LLABS): Add.
9137 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
9138 * c-common.c (c_common_nodes_builtins): Create builtin functions
9139 __builtin_llabs, and plain llabs unless no_nonansi_builtins
9140 outside of C99 mode.
9141 (expand_tree_builtin): Handle BUILT_IN_LLABS.
9142
9143 Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
9144
9145 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
9146 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
9147 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
9148 _cpp_free_toklist): No need to worry about extra dummy token
9149 at the start of token lists any more.
9150 (trigraph_ok): Only warn outside comments.
9151 (skip_block_comment): Set and clear lexing_comment.
9152 (skip_line_comment): Take a cpp_reader not cpp_buffer.
9153 Set and clear lexing_comment.
9154 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
9155 (check_long_token): Delete.
9156 (lex_percent, lex_dot): New subroutines of lex_token to
9157 handle lexing of '.' and '%' without lookback.
9158 (lex_token): Use lex_dot and lex_percent.
9159 (lex_line): Don't check for LIST_OFFSET.
9160 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
9161 * cpplib.c (_cpp_parse_assertion): Similarly.
9162 (cpp_push_buffer): Initialize extra_char.
9163 * cpplib.h (LIST_OFFSET): Delete.
9164 (struct cpp_buffer): New member extra_char.
9165 (struct lexer_state): New members lexing_comment and seen_dot.
9166
9167 2000-09-23 Jason Merrill <jason@redhat.com>
9168
9169 * config/rs6000/x-aix41 (CLIB): Define here.
9170 * config/rs6000/t-aix43: Not here.
9171 * config/rs6000/t-aix41: Or here. Remove.
9172 * configure.in: Don't use it.
9173
9174 2000-09-22 Jason Merrill <jason@redhat.com>
9175
9176 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
9177 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
9178 * config.in: Regenerate.
9179
9180 * configure.in: Fix checks for assembler features when using a
9181 one-tree assembler that has not yet been built.
9182 Fix --disable-threads.
9183
9184 2000-09-19 Geoff Keating <geoffk@cygnus.com>
9185
9186 * stmt.c (expand_asm_operands): Allow # in constraints.
9187
9188 2000-09-22 Jason Merrill <jason@redhat.com>
9189
9190 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
9191
9192 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
9193 function-local names.
9194
9195 2000-09-22 Brad Lucier <lucier@math.purdue.edu>
9196 Mark Mitchell <mark@codesourcery.com>
9197
9198 * toplev.c (warn_disabled_optimization): Declare new warning flag.
9199 * flags.h (warn_disabled_optimization): Add it here.
9200 * gcse.c (gcse_main): Add warning when disabled.
9201 * invoke.texi: Document -Wdisabled-optimization.
9202
9203 2000-09-21 Jason Merrill <jason@redhat.com>
9204
9205 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
9206
9207 * dwarf2out.c (tree_add_const_value_attribute): New fn.
9208 (gen_variable_die): Call it for non-definitions.
9209
9210 * dwarf2out.c (die_struct): Add die_mark field.
9211 (mark_dies, unmark_dies): New fns.
9212 (clear_die_sizes): Remove.
9213 (print_die): Check die_symbol rather than die_offset.
9214 (build_abbrev_table, output_pubnames, output_aranges): Check
9215 die_mark rather than die_offset.
9216 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
9217 Call mark_dies.
9218
9219 Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
9220
9221 * cppfiles.c (lookup_include_file): Rename to open_file.
9222 Always create a splay tree value, even on syscall failures.
9223 Negative entries indicated by fd == -2.
9224 Re-open files closed in the meantime.
9225 (_cpp_fake_include): Create a negative splay tree entry.
9226 (find_include_file, cpp_read_file): Update for function name
9227 change.
9228 * gcc.gd/cpp/mi4.c: Testcase.
9229
9230 2000-09-21 Nick Clifton <nickc@redhat.com>
9231
9232 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
9233 ARM and THUMB modes.
9234
9235 * config/mcore/mcore.c: Fix compile time warnings.
9236 * config/mcore/mcore-protos.h: Fix compile time warnings.
9237
9238 2000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9239
9240 * configure.in: Correct test of gcc_cv_glibc.
9241 * configure: Rebuilt.
9242 * config.in: Rebuilt.
9243
9244 2000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9245
9246 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
9247 (expand_builtin): Handle BUILT_IN_FWRITE.
9248
9249 * builtins.def (BUILT_IN_FWRITE): New entry.
9250
9251 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
9252
9253 Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9254
9255 * gcc.c (modify_target): New variable and struct.
9256 (process_command): Handle MODIFY_TARGET_NAME.
9257 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
9258 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
9259
9260 * c-decl.c (finish_decl): Add else's to avoid referencing
9261 TYPE_DOMAIN of an ERROR_MARK.
9262
9263 Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
9264
9265 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
9266 `reload_in*' insns.
9267
9268 2000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
9269
9270 * config/avr/avr.md (neghi2): Add alternative for input and output
9271 operands in different registers, as in negsi2.
9272 (*negsi2): Remove '*' from the name. Use "movw" if available.
9273
9274 2000-09-19 Jim Wilson <wilson@cygnus.com>
9275
9276 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
9277 HAVE_GAS_HIDDEN macro.
9278
9279 Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
9280
9281 * cpplex.c (lex_line): Drop the EOF token for unknown
9282 directives in assembler.
9283
9284 2000-09-19 David Edelsohn <edelsohn@gnu.org>
9285
9286 * configure.in: Allow enable_threads_flag value of "aix". Define
9287 thread_file as "aix" for AIX 4.3 and above.
9288 * configure: Regenerated.
9289
9290 * gthr-aix.h: New file.
9291
9292 * rs6000/t-aix43: Replace soft-float multilib with pthread.
9293 Remove 403 processor multilib match. Fix rios2 processor multilib
9294 match.
9295
9296 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
9297 to return to appropriate csect.
9298
9299 2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9300
9301 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
9302 functions.
9303 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
9304 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
9305 BUILT_IN_PRINTF.
9306
9307 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
9308 New entries.
9309
9310 * c-common.c (init_function_format_info): Handle __builtin_printf.
9311 Set `check_function_format_ptr'.
9312 (c_common_nodes_and_builtins): Set `puts_ftype' and
9313 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
9314 __builtin_printf and printf.
9315
9316 * tree.c, tree.h (check_function_format_ptr): Declare.
9317
9318 Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
9319
9320 * cppfiles.c (read_include_file): Take no special action for
9321 zero-length files.
9322
9323 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
9324
9325 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
9326 rather than that of branch.
9327 (shorten_branches): Don't increment insn_current_address twice.
9328
9329 Undo most of the Wed Jan 27 23:39:53 1999 patch:
9330 * loop.h (struct induction): Delete members derived, ix and last_use.
9331 (struct loop_ivs): Delete members first_increment_giv and
9332 last_increment_giv.
9333 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
9334 recombine_givs): Delete functions.
9335 (find_and_verify_loops): Don't initialize cont_dominator.
9336 (strength_reduce): Lose code to try to find bivs that can be
9337 expressed as givs of another biv, and to convert biv increments
9338 into givs.
9339 Lose loop_scan_start variable, always use loop->scan_start.
9340 Don't call recombine_givs. Don't handle derived givs.
9341 (record_giv): Don't initialize derived and last_use fields.
9342 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
9343 givs.
9344 * unroll.c (derived_regs): Delete static variable.
9345 (unroll_loop): Don't initialize it.
9346 (copy_loop_body): Lose code to handle derived givs.
9347 (find_splittable_givs): Don't check for givs made from biv
9348 increments.
9349 Don't set derived_regs.
9350
9351 Fix misapplied earlier patch:
9352 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
9353 to fpul.
9354 (floatsisf2): Generate floatsisf_ie by default.
9355 (floatsisf_i4): Conditional on TARGET_SH4.
9356
9357 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
9358 predicate for the expanders.
9359
9360 2000-09-19 Richard Henderson <rth@cygnus.com>
9361
9362 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
9363 in addition to pentium and pentiumpro symbols.
9364 (CPP_CPU_DEFAULT_SPEC): Likewise.
9365
9366 * c-typeck.c (c_expand_asm_operands): Restore the output tree
9367 after expanding.
9368
9369 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
9370 if the tree has side effects.
9371 (warn_if_unused_value): Do not warn about void constructs.
9372
9373 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
9374
9375 * unroll.c (copy_loop_body): Update LABEL_NUSES before
9376 calling invert_jump.
9377
9378 2000-09-18 Geoff Keating <geoffk@cygnus.com>
9379
9380 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
9381 into anything.
9382
9383 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9384
9385 * Makefile.in (c-common.o): Depend on diagnostic.h.
9386
9387 * c-common.c: Include diagnostic.h.
9388 (tfaff): Delete.
9389 (status_warning): New function.
9390 (check_format_info, maybe_read_dollar_number, check_format_types,
9391 finish_dollar_format_checking, check_function_format): Accept a
9392 `status' parameter. All callers changed.
9393
9394 * c-common.h (check_function_format): Accept a `status' parameter.
9395
9396 * c-typeck.c: Update call to `check_function_format'.
9397
9398 2000-09-18 Richard Henderson <rth@cygnus.com>
9399
9400 * c-decl.c (c_expand_body): Call mark_varargs before
9401 expand_function_start.
9402
9403 2000-09-18 Geoff Keating <geoffk@cygnus.com>
9404
9405 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
9406 * config/rs6000/eabi-ci.asm: Likewise.
9407
9408 2000-09-18 Richard Henderson <rth@cygnus.com>
9409
9410 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
9411 for BImode.
9412
9413 2000-09-18 Jim Wilson <wilson@cygnus.com>
9414
9415 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
9416 before passing it to fold_rtx_mult_add.
9417
9418 * unroll.c (final_giv_value): Pass increment through
9419 extend_value_for_giv before passing it to emit_iv_add_mult.
9420
9421 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
9422 paradoxical subreg, then directly substitute the replacement and
9423 return.
9424
9425 Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
9426
9427 * cpp.texi: Update documentation, including some clarifications,
9428 the treatment of various newline combinations, and space between
9429 backslash and newline.
9430
9431 Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
9432
9433 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
9434 Replace ASM_OUTPUT_LABELREF with assemble_name.
9435
9436 Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
9437
9438 * sh.c (addsubcosts): CONST is not cheap.
9439 (find_barrier): For Sh1, take alignment after jumps into account.
9440
9441 2000-09-15 Andrew Haley <aph@redhat.com>
9442
9443 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
9444 remove all SETs of SUBREGs of hard registers.
9445 * function.c (purge_hard_subreg_sets): New function.
9446 (purge_single_hard_subreg_set): New function.
9447 * rtl.h: (purge_hard_subreg_sets): New function.
9448
9449 2000-09-18 Richard Henderson <rth@cygnus.com>
9450
9451 * config/ia64/ia64-protos.h: Update.
9452 * config/ia64/ia64.c (signed_inequality_operator): New.
9453 (ia64_expand_compare): New.
9454 (ia64_register_move_cost): Handle PR_REGS moves.
9455 (ia64_secondary_reload_class): Require a GR when moving to a PR.
9456 (struct reg_write_state): Add written_by_and/or.
9457 (struct reg_flags): Add is_and/or.
9458 (rws_update): Set them.
9459 (rws_access_regno): Test them to allow parallel comparisons.
9460 (rtx_needs_barrier): Recognize parallel comparisons.
9461 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
9462 Call recog_memoized; ignore pred_rel_mutex.
9463 (emit_predicate_relation_info): Don't call find_basic_blocks here.
9464 (ia64_reorg): Do it here instead.
9465 * config/ia64/ia64.h: s/CCmode/BImode/g
9466 (MODES_TIEABLE_P): Don't tie BImode.
9467 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
9468 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
9469 (RTX_COSTS): Make multiply 4 insns.
9470 (MEMORY_MOVE_COST): New.
9471 (PREDICATE_CODES): Update.
9472 * config/ia64/ia64.md: s/CCmode/BImode/g
9473 (movcci, movbi): New.
9474 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
9475 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
9476 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
9477 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
9478 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
9479 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
9480 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
9481 (mulsi, muldi): Use xmpy not xma.
9482 (cmpbi): New.
9483 (movcc, movcc_internal): Remove.
9484 (branch expanders): Use ia64_expand_compare.
9485 (setcc expanders): Likewise.
9486 (cmov insns): Use move_operand and ia64_move_ok.
9487 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
9488 scheduler from moving it past a use.
9489 * config/ia64/build.hacks: Remove.
9490
9491 Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
9492
9493 * cpphash.h (HASHSTEP): Take character rather than pointer
9494 to character.
9495 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
9496
9497 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
9498
9499 * cpplex.c (auto_expand_name_space, trigraph_replace,
9500 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
9501 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
9502 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
9503 KNOWN_DIRECTIVE): Delete.
9504
9505 (handle_newline, check_long_token, skip_escaped_newlines,
9506 unterminated): New functions.
9507 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
9508
9509 (parse_identifier): Was parse_name, new implementation.
9510 (skip_line_comment, skip_block_comment, skip_whitespace,
9511 parse_number, parse_string, trigraph_ok, save_comment,
9512 adjust_column, _cpp_get_line): New implementations.
9513
9514 (lex_token): New function. Lexes a token at a time, looking
9515 forwards. Contains most of the guts of the old lex_line.
9516 (lex_line): New implementation, using lex_token to obtain
9517 individual tokens.
9518 (cpp_scan_buffer): Use the token's line, not the list's line.
9519
9520 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
9521 New implementations.
9522 (do_assert): Don't bother setting the answer's list's line.
9523 (cpp_push_buffer): Initialise new pfile and read_ahead members
9524 of struct cpp_buffer.
9525
9526 * cpplib.h (cppchar_t): New typedef.
9527 (struct cpp_buffer): read_ahead, pfile and col_adjust are
9528 new members.
9529 (struct lexer_state): New structure that determines the state
9530 and behaviour of the lexer.
9531 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
9532 (struct cpp_reader): New member "state". Rename
9533 multiline_string_line and multiline_string_column. Delete
9534 col_adjust, in_lex_line members.
9535 (CPP_BUF_COLUMN): Update.
9536
9537 2000-09-18 Richard Henderson <rth@cygnus.com>
9538
9539 * combine.c (simplify_comparison): Shift a NOT out of a single
9540 bit test.
9541
9542 * combine.c (if_then_else_cond): Canonicalize BImode true to
9543 STORE_FLAG_VALUE.
9544 * explow.c (trunc_int_for_mode): Likewise.
9545
9546 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
9547 the NOT for De Morgan's rule.
9548 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
9549 of a comparison to the reverse comparison.
9550
9551 * combine.c (try_combine): Allow split to create a single insn.
9552
9553 * machmode.def: Add BImode. Add a column for bitsize.
9554 * machmode.h (DEF_MACHMODE): Adjust for extra column.
9555 (GET_MODE_BITSIZE): Use it.
9556 * rtl.c (DEF_MACHMODE): Adjust for extra column.
9557 (mode_bitsize): New.
9558 (mode_mask_array): Use bitsize.
9559 * combine.c (combine_simplify_rtx): Require inner and outer
9560 modes to match on nonzero_bits optimizations.
9561
9562 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
9563
9564 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
9565 its entry in spill_reg_store.
9566 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
9567 * sh.c (reg_no_subreg_operand): New function.
9568 * sh-protos.h (reg_no_subreg_operand): Declare it.
9569 * sh.h (PREDICATE_CODES): Add it.
9570 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
9571 input operand that needs to be in fpul.
9572 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
9573 * sh.c (find_barrier): Take into account that machine_dependent_reorg
9574 might add new insns.
9575
9576 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
9577
9578 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
9579 MAYBE_DEAD.
9580 (sh_expand_epilogue): Take the PIC register into account when
9581 computing the frame size.
9582
9583 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
9584 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
9585 LABEL_REFs with a PIC-safe unspec.
9586
9587 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
9588
9589 * c-common.c (check_format_info): Properly save the argument
9590 number and parameter for $ operand number formats in case width
9591 and precision arguments are also used. Allow printf width and
9592 precision arguments to have operand numbers even if none was
9593 specified for the main format, since this is OK for %*.*m. Only
9594 object to missing $ operand number if the format used requires an
9595 argument.
9596
9597 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
9598
9599 * c-common.c (format_char_info): Add 'W' flag to comment.
9600 (print_char_table, scan_char_table): Use it.
9601 (check_format_info): Use the 'W' flag to determine whether a
9602 format argument is written into.
9603
9604 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
9605
9606 * c-common.c (check_format_types): Reorganise and clean up,
9607 checking earlier for ERROR_MARKs and making cur_type into its
9608 TYPE_MAIN_VARIANT where convenient.
9609
9610 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
9611
9612 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
9613
9614 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
9615
9616 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
9617
9618 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
9619 * i386.c (struct builtin_description): New.
9620 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
9621 (mmx_reg_operand): Declare MODE arg as unused.
9622 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
9623 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
9624 ix86_expand_binop_builtin, ix86_expand_store_builtin,
9625 ix86_init_builtins, ix86_expand_builtin): New functions.
9626 * i386.h (ix86_builtins): New enumeration.
9627 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
9628 * i386.md (attr length_immediate): 0 for mmx/sse types.
9629 (attr prefix_0f): 1 for mmx/sse types.
9630 (setcc_2): Remove "*" so we get gen_setcc_2.
9631 (emms): Account for changed register numbering. Set "memory" attr
9632 to unknown.
9633 (sfence): Set "memory" attr to unknown.
9634
9635 2000-09-18 Andreas Jaeger <aj@suse.de>
9636
9637 * configure.in: Define _GNU_SOURCE only when using the GNU C
9638 Library.
9639 * configure: Regenerated.
9640 * config.in: Regenerated.
9641
9642 2000-09-17 Mark Mitchell <mark@codesourcery.com>
9643
9644 * cppinit.c (cpp_init): Don't use ANSI prototypes.
9645 * flow.c (flow_dump_loop): Likewise.
9646 (flow_loops_dump): Likewise.
9647
9648 * c-typeck.c (c_start_case): Fix typo.
9649
9650 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
9651
9652 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
9653 to int for plain complex which defaults to complex double. Do
9654 warn about defaulting to complex double if pedantic. Warn about
9655 complex integer types if pedantic. Warn about complex types if
9656 pedantic and not in C99 mode.
9657 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
9658 for complex conjugation.
9659
9660 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
9661
9662 * contrib.texi: Update my entry.
9663
9664 Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
9665
9666 * config/avr/avr.md (mcu_enhanced): New attribute.
9667 (mcu_mega): Likewise.
9668 (extendhisi2): Use mcu_enhanced.
9669 (zero_extendhisi2): Likewise.
9670 (call_insn): Use mcu_enhanced and mcu_mega.
9671 (call_value_insn): Likewise.
9672 (*sbrx_branch): Use mcu_mega.
9673 (*sbrx_and_branchsi): Likewise.
9674 (*sbrx_and_branchhi): Likewise.
9675 (*tablejump_lib): Likewise.
9676
9677 Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9678
9679 * alias.c (true_dependence): Allow non-unchanging read to conflict
9680 with unchanging write.
9681
9682 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
9683 (store_constructor): Pass alias_set to it.
9684
9685 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
9686 TYPE_MAIN_VARIANT of ERROR_MARK.
9687 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
9688
9689 * simplify-rtx.c (simplify_unary_operation): Add cases
9690 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
9691
9692 2000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
9693
9694 * expr.h (emit_library_call, emit_library_call_value): Delete
9695 declarations.
9696 * rtl.h (enum libcall_type): New.
9697 (emit_library_call, emit_library_call_value): Change fn_type arg to
9698 be of type enum libcall_type.
9699 * calls.c: Likewise for the function definitions. Several callers
9700 throughout changed to use the new enumeration appropriately.
9701 (emit_library_call_value_1): Likewise. Put back code to make libcall
9702 blocks of equal form, but only use it for the two new higher
9703 enumeration values.
9704
9705 2000-09-16 Mark Mitchell <mark@codesourcery.com>
9706
9707 Convert the C front-end to use function-at-a-time mode.
9708 * c-common.h: Include splay-tree.h.
9709 (C_DECLARED_LABEL_FLAG): New macro.
9710 (struct language_function): Add x_scope_stmt_stack and
9711 x_function_name_declared_p.
9712 (RECHAIN_STMTS): Move definition.
9713 (lang_statment_code_p): Likewise.
9714 (lang_expand_stmt): Likewise.
9715 (lang_expand_decl_stmt): New variable.
9716 (lang_expand_function_end): Likewise.
9717 (current_scope_stmt_stack): New function.
9718 (add_decl_stmt): Likewise.
9719 (add_scope_stmt): Likewise.
9720 (mark_stmt_tree): Likewise.
9721 (struct c_lang_decl): New structure.
9722 (DECL_SAVED_TREE): Define.
9723 (c_mark_lang_decl): New function.
9724 (c_expand_start_cond): Change prototype.
9725 (c_finish_then): New function.
9726 (c_finish_else): Likewise.
9727 (current_function_name_declared): Remove.
9728 (set_current_function_name_declared): Likewise.
9729 (mark_c_language_function): Declare.
9730 (case_compare): Likewise.
9731 (c_add_case_label): Likewise.
9732 (c_expand_expr): Likewise.
9733 (c_safe_from_p): Likewise.
9734 * c-common.c (lang_expand_function_end): New variable.
9735 (struct if_elt): Add if_stmt.
9736 (c_expand_start_cond): Add the if-statement to the statement-tree,
9737 rather than generating RTL.
9738 (c_finish_then): New function.
9739 (c_expand_start_else): Don't generate RTL.
9740 (c_finish_else): New function.
9741 (c_expand_expr_stmt): Don't generate RTL.
9742 (statement_code_p): Add SCOPE_STMT.
9743 (case_compare): New function.
9744 (c_add_case_label): Likewise.
9745 (mark_stmt_tree): Likewise.
9746 (c_mark_lang_decl): Likewise.
9747 (mark_c_language_function): Likewise.
9748 (c_expand_expr): Likewise.
9749 (c_safe_from_p): Likewise.
9750 * c-decl.c (c_stmt_tree): New variable
9751 (c_scope_stmt_stack): Likewise.
9752 (c_function_name_declared_p): Likewise.
9753 (lang_expand_expr_stmt): Remove.
9754 (poplevel): Don't call output_inline_function for nested
9755 functions.
9756 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
9757 `extern' function.
9758 (redeclaration_error_message): Change means of computing whether
9759 or not a function is nested.
9760 (lookup_label): Don't call label_rtx.
9761 (init_decl_processing): Add more GC roots.
9762 (start_decl): Add DECL_STMTs to the statement-tree, rather than
9763 calling rest_of_decl_compilation.
9764 (finish_decl): Don't call expand_decl.
9765 (store_parm_decls): Begin the statement-tree, but don't generate
9766 RTL.
9767 (finish_function): Tie off the statement-tree. Call c_expand_body
9768 if appropriate.
9769 (c_expand_body): New function.
9770 (push_c_function_context): Save more information.
9771 (pop_c_function_contxt): Likewise.
9772 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
9773 (lang_mark_tree): Mark it.
9774 (current_stmt_tree): Adjust.
9775 (current_scope_stmt_stack): New function.
9776 (do_case): Remove.
9777 (set_current_name_declared): Likewise.
9778 (c_begin_compound_stmt): Define.
9779 (c_expand_decl_stmt): Likewise.
9780 * c-lang.c: Include rtl.h and expr.h.
9781 (lang_init): Set more language-specific hooks.
9782 * c-lex.c: Include expr.h.
9783 * c-parse.in: Changes throughout to add statements to the
9784 statement-tree, rather than generating RTL after every statement.
9785 * c-semantics.c (lang_expand_decl_stmt): Define.
9786 (add_decl_stmt): New function.
9787 (add_scope_stmt): Likewise.
9788 (finish_stmt_tree): Tweak.
9789 (genrtl_expr_stmt): Likewise.
9790 (genrtl_decl_stmt): Handle local labels, and call
9791 lang_expand_decl_stmt if required.
9792 (genrtl_for_stmt): Fix line-number handling.
9793 (genrtl_case_label): Handle cleanups.
9794 (genrtl_asm_stmt): Don't call combine_strings.
9795 (genrtl_compound_stmt): Simplify.
9796 (expand_stmt): Handle SCOPE_STMTs.
9797 * c-tree.h (struct lang_decl): New structure.
9798 (C_DECLARED_LABEL_FLAG): Remove.
9799 (c_begin_compound_stmt): Declare.
9800 (c_expand_decl_stmt): Likewise.
9801 (c_expand_start_case): Rename to c_start_case.
9802 (c_finish_case): New function.
9803 * c-typeck.c (start_init): Tweak setting of
9804 constructor_incremental.
9805 (c_expand_asm_operands): Tweak error-handling. Add to the
9806 statement-tree.
9807 (c_expand_return): Add to the statement-tree.
9808 (c_expand_start_case): Rename to ...
9809 (c_start_case): ... this.
9810 (struct c_switch): New type.
9811 (switch_stack): New variable.
9812 (do_case): Simplify.
9813 (c_finish_case): New function.
9814 * dependence.c: Include expr.h.
9815 (enum dependence_type): Change spelling of enumerals.
9816 (check_node_dependence): Adjust.
9817 * expr.h (lang_safe_from_p): Declare.
9818 (safe_from_p): Likewise.
9819 * expr.c (lang_safe_from_p): New variable.
9820 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
9821 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
9822 * toplev.c (rest_of_decl_compilation): Robustify.
9823 * tree.c (contains_placeholder_p): Likewise.
9824 * Makefile.in: Update dependencies.
9825 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
9826 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
9827 (objc_expand_function_end): New function.
9828 (finish_method_def): Use it.
9829 (init_objc): Initialize more language-specific hooks.
9830 * objc/Make-lang.in: Update dependencies.
9831
9832 2000-09-16 Geoffrey Keating <geoffk@cygnus.com>
9833
9834 * configure.in: Define macros that affect features before
9835 testing for features. Don't define _XOPEN_SOURCE.
9836 * configure: Regenerated.
9837 * config.in: Regenerated.
9838
9839 Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
9840
9841 * rtlanal.c (rtx_varies_p): Volatile asms vary.
9842 (rtx_unstable_p): Restructure code. Volatile asms
9843 are unstable.
9844
9845 Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9846
9847 * function.h (no_debugging_symbols): New field.
9848 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
9849 Initialize no_debugging_symbols.
9850 (output_inline_function): Save and restore write_symbols and set from
9851 no_debugging_symbols.
9852 * toplev.c (rest_of_compilation): Call save_for_inline.
9853 * tree.h: Update comment.
9854
9855 * stor-layout.c (place_field): Don't do anything if field or
9856 its type are ERROR_MARK.
9857
9858 Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
9859
9860 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
9861 (read_include_file): Ensure inc->mmaped is initialized.
9862
9863 2000-09-16 Richard Henderson <rth@cygnus.com>
9864
9865 * cppiles.c (purge_cache): Use PTR not caddr_t.
9866
9867 2000-09-16 Hans-Peter Nilsson <hp@axis.com>
9868
9869 * gcc.c: In description for %{<S}, say the option removed is -S.
9870 * invoke.texi (Spec Files): Ditto.
9871
9872 2000-09-16 Andreas Jaeger <aj@suse.de>
9873
9874 * configure.in: Always define _GNU_SOURCE to make interfaces
9875 visible that were hidden by only defining _GNU_SOURCE.
9876 * configure: Regenerated.
9877
9878 Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
9879
9880 * cpplex.c (push_macro_context): Set an argument's level after
9881 calling parse_args. We could loop infinitely otherwise.
9882
9883 2000-09-15 Tom Tromey <tromey@cygnus.com>
9884
9885 * configure, config.in: Rebuilt.
9886 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
9887
9888 2000-09-15 Greg McGary <greg@mcgary.org>
9889
9890 * cppmacro.c (check_trad_stringification): Check token
9891 text pointers against limit before dereferencing.
9892
9893 2000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
9894
9895 * c-common.c (format_wanted_type): New structure.
9896 (check_format_types): New function.
9897 (check_format_info): Pass all checking of types of format
9898 arguments, including width and precision arguments, to this new
9899 function.
9900
9901 2000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9902
9903 * BUGS: Remove file.
9904
9905 2000-09-15 Jakub Jelinek <jakub@redhat.com>
9906
9907 * config/alpha/alpha.c (override_options): ev6 cache latencies
9908 from Richard Henderson. Don't allow -mmemory-latency=L0.
9909
9910 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
9911 (TARGET_OPTIONS): Add tune=.
9912 (alpha_tune_string): Declare.
9913 * config/alpha/alpha.c (override_options): Add cpu_table.
9914 Use alpha_cpu_string first to set both alpha_cpu and target_flags
9915 and then alpha_tune_string to set alpha_cpu only.
9916 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
9917 * config/alpha/elf.h (ASM_FILE_START): Likewise.
9918 * config/alpha/osf.h (ASM_FILE_START): Likewise.
9919 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
9920
9921 Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
9922
9923 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
9924 Remove.
9925 (ix86_comparison_operator, ix86_cc_mode): Declare
9926 * i386.h (CCGC, CCGCO): New modes.
9927 (SELECT_CC_MODE): Move offline to ....
9928 * i386.c (ix86_cc_mode): .... here; use new modes.
9929 (ix86_comparison_operator): New.
9930 (fcmov_comparison_operator): Ensure proper mode.
9931 (put_condition_mode): More sanity checking.
9932 (ix86_match_ccmode): Handle new modes.
9933 (ix86_expand_fp_compare): GEU requires CCmode.
9934 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
9935 doing it by hand.
9936 * i386.md (cmp?i_ccz_1): Remove
9937 (cmp?i_ccno_1): Use ix86_match_ccmode.
9938 (cmp?i_minus_1): New.
9939 (cmpsi_1): New expander.
9940 (cmpqi_ext_1): Use match_ccmode
9941 (cmpqi_ext_3): New expander.
9942 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
9943 (cmpqi_ext_4): Use match_ccmode.
9944 (add?i_?): Use match_ccmode.
9945 (add?i_6): New.
9946 (test?i_ccz_1): Remove
9947 (test?i_1): New.
9948 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
9949 (testqi_ext_0): Use ix86_match_ccmode.
9950 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
9951 (xorqi_cc_ext_1): New expander.
9952 (shift patterns): Use CCGOCmode for all shifts except for sar.
9953 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
9954 (setcc_3, jcc_3, miv?icc_c): Remove.
9955
9956 2000-09-15 Will Cohen <wcohen@redhat.com>
9957
9958 * dwarf2out.c (add_const_value_attribute): Changed array into a
9959 xmalloced object, so it exists after function exit.
9960 (free_AT): Added case for dw_val_class_float to free allocated
9961 memory.
9962
9963 2000-09-15 Kazu Hirata <kazu@hxi.com>
9964
9965 * config/i386/i386.md: Fix a comment typo.
9966 * gcc.c: Fix formatting.
9967
9968 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
9969
9970 * optabs.c (emit_libcall_block): If target is a user variable,
9971 copy to a temporary first.
9972 * expr.c (convert_move): When generating a libcall, make a libcall
9973 block.
9974 * calls.c (emit_library_call_value_1): Don't create a libcall
9975 sequence here; our caller will in most cases do it.
9976
9977 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
9978 MACH into FPUL.
9979 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
9980 * sh.md (reload_outsf): Generate recognizable patterns for
9981 TARGET_SH3E.
9982 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
9983 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
9984 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
9985 truncdfsf2_i4): Change not to use explicit references to fpul.
9986 (floatsisf2_ie): Remove USE of fpscr.
9987 (floatsisf2): Change default expansion to match this.
9988 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
9989 unused patterns.
9990
9991 2000-09-15 Richard Henderson <rth@cygnus.com>
9992
9993 * expmed.c (store_bit_field): Consider naturally aligned
9994 memory for direct reference.
9995
9996 2000-09-15 Richard Henderson <rth@cygnus.com>
9997
9998 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
9999 AND addresses into alias set 0.
10000 (alpha_expand_unaligned_store): Likewise.
10001 (alpha_expand_unaligned_load_words): Likewise.
10002 (alpha_expand_unaligned_store_words): Likewise.
10003
10004 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
10005
10006 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
10007 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
10008 is defined.
10009 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
10010 rsize of UNITS_PER_WORD.
10011
10012 Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
10013
10014 * cpplex.c (ON_REST_ARG): Correct the test.
10015 (maybe_paste_with_next): Duplicate a token that fail pasting,
10016 and clear its PASTE_LEFT flag, so that nested pasting attempts
10017 do not occur.
10018
10019 2000-09-14 Richard Henderson <rth@cygnus.com>
10020
10021 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
10022 * cse.c (rtx_cost): Likewise.
10023 * optabls.c (expand_binop): Likewise.
10024 (expand_twoval_binop, prepare_cmp_insn): Likewise.
10025 * regclass.c (copy_cost): Likewise.
10026 * reload1.c (reload_cse_move2add): Likewise.
10027
10028 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
10029
10030 * c-parse.in (reswords): Add _Complex.
10031
10032 2000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10033
10034 * gcc.1: Delete documentation for -undef preprocessor option.
10035
10036 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
10037
10038 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
10039 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
10040 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
10041 Remove undefine before config/elfos.h.
10042 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
10043
10044 2000-09-14 Kazu Hirata <kazu@hxi.com>
10045
10046 * invoke.texi (H8/300 Options): Add -ms2600.
10047 * config/h8300.c (h8300_init_once): Output an error when -ms2600
10048 is used without -ms.
10049 * config/h8300.h (TARGET_MAC): New.
10050 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
10051 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
10052 machine other than H8/S2600.
10053 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
10054 of the H8/S2000.
10055
10056 2000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
10057
10058 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
10059 pseudos that refer to the original pseudos, not only to their
10060 equivalent memory locations.
10061
10062 Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10063
10064 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
10065 when making new MEM.
10066
10067 * Makefile.in (LN): Remove duplicate definition.
10068
10069 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
10070
10071 From Joern Rennecke:
10072 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
10073 on an insn and function_invariant_p returns nonzero for the source,
10074 add a REG_EQUAL note.
10075
10076 Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
10077
10078 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
10079 conflict with frame_pointer_rtx.
10080
10081 2000-09-13 Kazu Hirata <kazu@hxi.com>
10082
10083 * loop.c: Fix formatting.
10084 * loop.h: Likewise.
10085
10086 2000-09-13 Richard Henderson <rth@cygnus.com>
10087
10088 * config/ia64/ia64.md (divsf3): New.
10089 (divsf3_internal_lat, divsf3_internal_thr): New.
10090 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
10091 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
10092 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
10093 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
10094 (nmadddf4_alts, nmadddf4_trunc): New.
10095 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
10096 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
10097 (multf3_truncsf_alts, multf3_truncdf_alts): New.
10098 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
10099 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
10100 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
10101 (nmaddtf4_truncdf_alts): New.
10102 (recip_approx): Don't predicate.
10103
10104 2000-09-13 Richard Henderson <rth@cygnus.com>
10105
10106 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
10107
10108 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10109
10110 * flags.h (flag_dump_rtl_in_asm): Declare.
10111 * toplev.c (flag_dump_rtl_in_asm): Define.
10112 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
10113 if -dP is specified.
10114 * rtl.h (print_rtx_head): Declare.
10115 * print-rtl.c (print_rtx_head): Define.
10116 (print_rtx): Print the string pointed to by print_rtx_head
10117 at beginning of each dump line.
10118 (print_rtl): Likewise.
10119 (print_rtl_single): Likewise.
10120 * final.c (final_scan_insn): Dump the insn in the assembly
10121 file for debugging.
10122 * gcc.1: Document -dP option.
10123 * invoke.texi (Debugging Options): Likewise.
10124
10125 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10126
10127 * md.texi (Machine Constraints): Document the 68HC11 constraints.
10128 * install.texi (Configurations): Document the 68HC11&68HC12 port.
10129 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
10130
10131 Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
10132
10133 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
10134 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
10135 (*clrstrqi): Likewise.
10136 (xorhi3,xorsi3,absqi2): Likewise.
10137 (one_cmplhi2,one_cmplsi2): Likewise.
10138 (addsi3): Two stupid constraint alternatives removed.
10139 (extendhisi2): Use `movw' for enhanced avr cores.
10140 (zero_extendhisi2): Likewise.
10141
10142 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
10143
10144 * alias.c (find_base_term): Use frame_pointer_rtx
10145 when handling an ADDRESSOF.
10146
10147 * cse.c (canon_hash): Handle USE of BLKmode memory.
10148 (cse_insn): Outgoing arguments for a libcall don't
10149 affect any recorded expressions.
10150
10151 2000-09-12 Tom Tromey <tromey@cygnus.com>
10152
10153 * configure, config.in: Rebuilt.
10154 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
10155
10156 2000-09-12 Jakub Jelinek <jakub@redhat.com>
10157
10158 * c-lex.c (lex_string): Use charwidth to compute bytemask.
10159 * expr.c (expand_expr): Don't optimize constant array references
10160 initialized with wide string constants.
10161
10162 2000-09-13 Michael Hayes <mhayes@cygnus.com>
10163
10164 * loop.c (note_set_pseudo_multiple_uses): Correct.
10165
10166 2000-09-12 Jim Wilson <wilson@cygnus.com>
10167
10168 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
10169 else block, and X has side-effects, then fail.
10170
10171 2000-09-12 Greg McGary <greg@mcgary.org>
10172
10173 * config/mips/mips-protos.h
10174 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
10175 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
10176 (PREDICATE_CODES): Add "trap_cmp_op".
10177 * config/mips/mips.c
10178 (trap_cmp_op, mips_gen_conditional_trap): New functions.
10179 * config/mips/mips.md (trap, conditional_trap): New patterns.
10180
10181 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
10182
10183 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
10184 pointer.
10185
10186 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10187
10188 * builtins.c (built_in_decls): New array.
10189 (expand_builtin_fputs): New function.
10190 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
10191
10192 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
10193
10194 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
10195
10196 * tree.h (built_in_decls): New array.
10197
10198 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
10199
10200 * convex.md: Use "+" instead of "=" for outputs wrapped in a
10201 STRICT_LOW_PART.
10202 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
10203
10204 2000-09-12 Kazu Hirata <kazu@hxi.com>
10205
10206 * haifa-sched.c: Fix formatting.
10207
10208 * genattrtab.c: Fix formatting.
10209
10210 * unroll.c: Fix formatting.
10211
10212 2000-09-12 Bruce Korb <bkorb@gnu.org>
10213
10214 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
10215 remove obsolete code
10216 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
10217 * fixinc/fixincl.tpl: make non-exported arrays static scope
10218 * fixinc/fixincl.x: regenerate
10219 * fixinc/fixlib.h: Use PARAMS, not _P_
10220 * fixinc/fixtests.c: make a type for the test proc & use it
10221 * fixinc/server.h: Use PARAMS, not _P_
10222
10223 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10224
10225 * c-typeck.c (process_init_element): Avoid union init warnings on
10226 floating point zero. Don't crash on unions containing structs.
10227
10228 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
10229
10230 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
10231 general_movsrc_operand, and remove CONST_INT from
10232 general_movdst_operand.
10233
10234 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
10235
10236 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
10237 if a reference to non-fixed hardreg is seen. Otherwise, count hard
10238 regs with a higher cost.
10239 (preferrable): Deal with cases where either cost or regcost is
10240 MAX_COST.
10241 (cse_insn): Use MAX_COST rather than 10000. Always initialize
10242 regcost values.
10243 (COSTS_N_INSNS): Move definition...
10244 * rtl.h: ...here.
10245 (MAX_COST): New macro.
10246 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
10247 constant.
10248
10249 2000-09-11 Mark Mitchell <mark@codesourcery.com>
10250
10251 * c-common.h (genrtl_clear_out_block): Remove.
10252 * c-semantics.c (genrtl_clear_out_block): Remove.
10253 (genrtl_while_stmt): Don't call it.
10254 (genrtl_for_stmt): Likewise.
10255
10256 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
10257
10258 * cppfiles.c: Move all default-#defines to top of file.
10259 (open_include_file): Replace by lookup_include_file.
10260 (read_with_read, read_file): Merged into read_include_file.
10261 (stack_include_file, purge_cache): New functions.
10262 (close_cached_fd): Delete.
10263 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
10264 Cache the in-memory buffer, not the file descriptor.
10265
10266 * cpphash.h (struct include_file): Add buffer, st, refcnt,
10267 mapped fields.
10268 (xcnew): New utility macro.
10269 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
10270 * cpplib.h (struct cpp_buffer): Remove mapped field.
10271
10272 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
10273
10274 * cpplex.c (parse_string): Accept backslash space newline as a
10275 line continuation.
10276 (lex_line): Likewise.
10277 (_cpp_get_token): Remove hard limit on macro nesting.
10278
10279 2000-09-12 Philipp Thomas <pthomas@suse.de>
10280
10281 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
10282 * configure: Rebuilt.
10283
10284 2000-09-13 Michael Hayes <mhayes@cygnus.com>
10285
10286 * flow.c (split_block): Fix update of registers live at
10287 end of split block.
10288
10289 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
10290
10291 * i386.md (add?i_3, add?i_5): New.
10292 (add?i_4): Rename from add?i_3; Fix compare pattern.
10293 (sub?i_3, xor?i_3, ior?i_3): New.
10294
10295 * genrecog.c (write_tree): Output code to clear insn_extract cache.
10296 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
10297 instead of extract_insn and extract_constrain_insn_cache instead of
10298 extract_insn and constrain_operands.
10299 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
10300 New functions.
10301 (extract_insn): Clear which_alternative.
10302 (constrain_operands): Set which_alternative to -1 when failed.
10303 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
10304 Declare.
10305
10306 2000-09-11 Matthew Hiller <hiller@redhat.com>
10307
10308 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
10309 on operand 0 to '+'.
10310 (movstricthi): Likewise.
10311
10312 2000-09-12 Michael Hayes <mhayes@cygnus.com>
10313
10314 * loop.h (LOOP_IVS): New macro.
10315 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
10316 (struct loop_ivs): New.
10317 (struct loop_info): Add ivs field.
10318 (reg_iv_type, reg_iv_info): Delete prototype.
10319 (reg_biv_class, loop_iv_list): Likewise.
10320 * loop.c (record_biv, find_life_end): Pass loop argument.
10321 (reg_iv_type): Remove global array and use
10322 field in loop_regs structure within loop_ivs structure.
10323 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
10324 (first_increment_giv, last_increment_giv): Use entry in
10325 loop_ivs structure.
10326 (record_initial): Pass ivs pointer.
10327 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
10328
10329 2000-09-12 Michael Hayes <mhayes@cygnus.com>
10330
10331 * loop.h (LOOP_REGS): New macro.
10332 (struct loop_regs): New.
10333 (struct loop_info): Add regs field.
10334 * loop.c (set_in_loop): Remove global array and store
10335 in loop_regs structure as part of loop_info structure.
10336 (n_times_set, may_not_optimize): Likewise.
10337 (reg_single_usage, moved_once): Likewise.
10338 (count_one_set): Add regs argument.
10339 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
10340 (set_pseudo_multiple_uses): Pass regs pointer.
10341
10342 2000-09-12 Michael Hayes <mhayes@cygnus.com>
10343
10344 * unroll.c (iteration_info): Subsume into loop_iterations.
10345 * loop.h (loop_info): New field iv.
10346
10347 2000-09-12 Michael Hayes <mhayes@cygnus.com>
10348
10349 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
10350 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
10351 (flow_loops_update): New prototype.
10352 (flow_loops_find): Add flags to prototype.
10353 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
10354 * flow.c (flow_loop_pre_header_scan): New.
10355 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
10356 (flow_loop_free): Free pre-header root and trace and exit dominators.
10357 (flow_loops_find): New argument flags.
10358 (flow_loops_update): New function.
10359 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
10360
10361 2000-09-12 Michael Hayes <mhayes@cygnus.com>
10362
10363 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
10364 * flow.c (split_block, update_bb_for_insn): New functions.
10365
10366 2000-09-11 Richard Henderson <rth@cygnus.com>
10367
10368 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
10369
10370 2000-09-11 Richard Henderson <rth@cygnus.com>
10371
10372 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
10373 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
10374 (ia64_override_options): Prevent optimizing division for both
10375 latency and throughput.
10376 (rtx_needs_barrier): Handle frcpa.
10377 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
10378 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
10379 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
10380 (TARGET_SWITCHES): Add -minline-divide-min-latency and
10381 -minline-divide-max-throughput.
10382 (PREDICATE_CODES): Update.
10383 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
10384 (zero_extendsidi2): Likewise. Fix typo in f case insn.
10385 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
10386 (extendsftf2): Likewise.
10387 (extenddftf2): Likewise.
10388 (fix_trunctfdi2_alts): New.
10389 (fixuns_trunctfdi2_alts): New.
10390 (madd*4): Rename from madd*3.
10391 (divsi3, modsi3, udivsi3, umodsi3): New.
10392 (divsi3_internal): New.
10393 (divdi3, moddi3, udivdi3, umoddi3): New.
10394 (divdi3_internal_lat, divdi3_internal_thr): New.
10395 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
10396 (recip_approx): New.
10397
10398 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
10399
10400 * print-rtl.c (debug_call_placeholder_verbose): New variable.
10401 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
10402 set.
10403 * integrate.c (copy_rtx_and_substitute): Don't share
10404 LEAF_REG_REMAPpable registers with the inlined function. Don't
10405 share the function value with calling sequences.
10406
10407 2000-09-11 Jakub Jelinek <jakub@redhat.com>
10408
10409 * c-decl.c (do_case): Fix a typo.
10410
10411 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
10412 to a if the comparison is floating mode and not -ffast-math.
10413 * simplify-rtx.c (simplify_ternary_operation): Likewise.
10414
10415 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
10416
10417 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
10418 gen_ic_invalidate_line.
10419
10420 2000-09-11 Philip Blundell <pb@futuretv.com>
10421
10422 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
10423
10424 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
10425
10426 * install.texi (LANGUAGES): Update to include new languages.
10427 * INSTALL: Rebuilt.
10428
10429 2000-09-11 DJ Delorie <dj@redhat.com>
10430
10431 * gcc.c (main): Don't warn about unused -B prefixes
10432 (unused_prefix_warnings): remove
10433
10434 2000-09-11 Kazu Hirata <kazu@hxi.com>
10435
10436 * final.c: Fix formatting.
10437
10438 * integrate.c: Fix formatting.
10439
10440 2000-09-11 Geoff Keating <geoffk@cygnus.com>
10441
10442 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
10443
10444 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
10445
10446 * reload.c (regno_clobbered_p): Fix thinko in previous change.
10447
10448 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10449
10450 * gcc.1: Document 68hc11 specific options.
10451
10452 2000-09-10 Geoff Keating <geoffk@cygnus.com>
10453
10454 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
10455 (TARGET_LONG_DOUBLE_128): Define.
10456 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
10457 (LONG_DOUBLE_TYPE_SIZE): Redefine.
10458 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
10459 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
10460 of __LONG_DOUBLE_128__.
10461 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
10462 passed.
10463 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
10464 (CPP_SYSV_DEFAULT_SPEC): Define.
10465 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
10466 (INIT_TARGET_OPTABS): Define.
10467
10468 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
10469 (RS6000_UITRUNC): Likewise.
10470 (INIT_TARGET_OPTABS): New macro.
10471 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
10472 (trunc_defined): Delete.
10473 (output_prolog): Don't output .extern definitions for fp->int
10474 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
10475 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
10476 (trunc_defined): Delete.
10477 (RS6000_ITRUNC): Moved to aix.h.
10478 (RS6000_UITRUNC): Likewise.
10479 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
10480 only emit a libcall.
10481 (fixuns_truncdfsi2): Delete.
10482 (trunc_call): Delete.
10483 (trunc_call_rtl): Delete.
10484
10485 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
10486
10487 * varasm.c (make_decl_rtl): Restore leading star on
10488 DECL_ASSEMBLER_NAME set for decls with an asmspec.
10489
10490 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
10491
10492 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
10493 won't give a spurious error for '#pragma pack()'. Simplify
10494 control flow for readability. 'reset' action is not necessary.
10495
10496 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
10497
10498 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
10499 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
10500 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
10501 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
10502
10503 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
10504 profile.c, sdbout.c, tradcif.y, tree.c:
10505 Include defaults.h if not already included.
10506 Don't define the above macros.
10507
10508 * Makefile.in: Update dependencies.
10509
10510 2000-09-10 Mark Mitchell <mark@codesourcery.com>
10511
10512 * c-common.h (add_stmt): Change prototype.
10513 (RECHAIN_STMTS): New macro.
10514 (CASE_LABEL_DECL): Likewise.
10515 (genrtl_case_label): Change prototype.
10516 (c_expand_start_case): Remove prototype.
10517 (build_case_label): Change prototype.
10518 (decl_constant_value): Declare.
10519 * c-common.c (check_case_value): Handle C++'s extensions to C
10520 semantics.
10521 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
10522 field.
10523 * c-parse.in (stmt): Adjust handling of return statements and case
10524 laels.
10525 * c-semantics.c (add_stmt): Return the new statement.
10526 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
10527 returned expression. Directly generate RTL, rather than calling
10528 c_expand_return.
10529 (genrtl_switch_stmt): Don't call c_expand_start_case.
10530 (build_case_label): Take the LABEL_DECL as input, too.
10531 (genrtl_case_label): Just call add_case_node.
10532 (expand_stmt): Adjust calls to genrtl_return_stmt and
10533 genrtl_case_label.
10534 * c-tree.h (c_expand_start_case): Declare.
10535 * c-typeck.c (decl_constant_value): Give it external linkage.
10536 (c_expand_return): Don't call expand_return or expand_null_return;
10537 use genrtl_return_stmt instead.
10538 * stmt.c (struct nesting): Remove num_ranges field.
10539 (add_case_node): Give it external linkage.
10540 (expand_start_case): Don't set num_ranges.
10541 (expand_start_case_dummy): Don't clear it.
10542 (pushcase): Rely on add_case_node to handle `default' labels.
10543 (add_case_node): Handle `default' labels.
10544 * tree.c (tree_int_cst_compare): New function.
10545 * tree.h (tree_int_cst_compare): Declare.
10546 (add_case_node): Likewise.
10547
10548 2000-09-10 Richard Henderson <rth@cygnus.com>
10549
10550 * c-parse.in: Revert last change.
10551 (init_reswords): Do not enter disabled keywords into the ridpointers
10552 table, modulo objc weirdness.
10553 (_yylex): Return the canonical spelling for a keyword.
10554
10555 2000-09-10 Philip Blundell <philb@gnu.org>
10556
10557 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
10558 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
10559
10560 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
10561
10562 * alias.c (find_base_term): Handle ADDRESSOF.
10563 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
10564
10565 2000-09-10 Denis Chertykov <denisc@overta.ru>
10566
10567 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
10568 outputting templates with many lines.
10569
10570 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10571
10572 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
10573 to decide whether 64-bit support must be generated.
10574
10575 2000-09-10 Richard Henderson <rth@cygnus.com>
10576
10577 * c-parse.in (asm patterns): Fix volatile check.
10578
10579 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10580
10581 * cppmacro.c (check_trad_stringification): New function.
10582 (save_expansion): If -Wtraditional, warn about stringification of
10583 macro arguments.
10584
10585 2000-09-11 Michael Hayes <mhayes@cygnus.com>
10586
10587 * loop.h (struct loop_mem_info): Move from loop.c
10588 (struct loop_info): Add fields store_mems, mems, mems_idx,
10589 mems_allocated, unknown_address_altered,
10590 unknown_constant_address_altered, num_mem_sets, and
10591 first_loop_store_insn.
10592
10593 * loop.c (loop_store_mems): Replace with field in loop_info struct.
10594 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
10595 (unknown_address_altered, unknown_constant_address_altered): Likewise.
10596 (num_mem_sets): Likewise.
10597 (replace_loop_mems, replace_loop_regs): New.
10598 (struct loop_replace_args): New.
10599 (load_mems): Use replace_loop_mems.
10600 (try_copy_prop): Use replace_loop_regs.
10601 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
10602
10603 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10604
10605 * configure.in: Recognize m6811-elf and m6812-elf.
10606 * configure: Regenerate.
10607
10608 2000-09-09 Geoff Keating <geoffk@cygnus.com>
10609
10610 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
10611 to operand_subword.
10612
10613 2000-09-10 Michael Hayes <mhayes@cygnus.com>
10614
10615 * loop.c (struct movables): New.
10616 (num_movables): Move into struct movables.
10617 (the_movables): Change type to struct movables.
10618 (ignore_some_movables): Change struct movable arg to struct movables.
10619 (force_movables, combine_movables, regs_match_p): Likewise.
10620 (rtx_equal_for_loop_p, move_movables): Likewise.
10621 (scan_loop): Change movables to be of type struct movables.
10622 Replace last_movable with field in movables structure.
10623
10624 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
10625
10626 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
10627 (init_pragma): Avoid warning if pfile happens to be unused.
10628 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
10629 define init_pragma to nothing. Always prototype
10630 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
10631
10632 * c-lex.c (process_directive): Always call dispatch_pragma.
10633 Initialize entering_c_header to 0.
10634
10635 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10636
10637 * config/m68hc11/m68hc11.md: New file, machine description for
10638 68HC11 & 68HC12.
10639 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
10640 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
10641 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
10642 * config/m68hc11/m68hc11-protos.h: New file.
10643 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
10644 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
10645 * config/m68hc11/xm-m68hc11.h: New file, target defs.
10646 * config/m68hc11/larith.asm: New file, libgcc routines.
10647
10648 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10649
10650 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
10651 (FPBIT_FUNCS): Add _usi_to_sf.
10652 * config/fp-bit.c (usi_to_float): New function.
10653 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
10654 (usi_to_float): Add appropriate #define.
10655
10656 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
10657
10658 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
10659 new functions.
10660 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
10661 * i386.md (attr "type"): Add sse and mmx types.
10662 (attr "memory"): Handle them without a crash.
10663 (movsi_1, movdi_2): Allow MMX regs.
10664 (movdi splits): Don't split moves involving MMX regs.
10665 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
10666 (movv4sf_internal, movv4si_internal, movv8qi_internal,
10667 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
10668 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
10669 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
10670 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
10671 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
10672 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
10673 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
10674 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
10675 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
10676 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
10677 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
10678 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
10679 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
10680 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
10681 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
10682 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
10683 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
10684 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
10685 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
10686 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
10687 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
10688 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
10689 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
10690 mmx_clrdi): New patterns.
10691
10692 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
10693
10694 * arm.c: Don't include tm.h directly.
10695
10696 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
10697
10698 * recog.c (validate_replace_rtx_1): Fix confusion about equality
10699 testing; simplify subregs of constants and nested subregs.
10700
10701 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
10702
10703 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
10704
10705 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
10706
10707 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
10708 VEC_CONCAT.
10709 * rtl.texi (description of USE): Add note about possible pitfalls
10710 with this rtx.
10711 From Richard Henderson:
10712 * reload1.c (choose_reload_regs): Compute need_mode properly.
10713
10714 2000-09-07 Richard Henderson <rth@cygnus.com>
10715
10716 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
10717 (__modsi3, __umodsi3): Likewise.
10718 (__udivsi3): Likewise. Normalize the TFmode values.
10719
10720 2000-09-07 Geoff Keating <geoffk@cygnus.com>
10721
10722 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
10723 with a prototype.
10724 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
10725 warning.
10726
10727 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
10728
10729 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
10730 (cmpeqdi_t): Add output pattern.
10731 (cmpeqdi_t+1): Don't split when not optimizing.
10732 Restore proper splitting operation.
10733
10734 2000-09-07 Richard Henderson <rth@cygnus.com>
10735
10736 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
10737 do not call dispatch_pragma.
10738
10739 2000-09-07 Jim Wilson <wilson@cygnus.com>
10740
10741 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
10742 to CLASS_CANNOT_CHANGE_MODE.
10743 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
10744 mode classes are different.
10745
10746 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
10747
10748 * cpplib.h (struct cpp_options): Add user_label_prefix member,
10749 left out of commit which removed cppulp.c.
10750
10751 2000-09-07 Richard Henderson <rth@cygnus.com>
10752
10753 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
10754 after switch for CASE_DROPS_THROUGH.
10755
10756 2000-09-07 Richard Henderson <rth@cygnus.com>
10757
10758 * loop.c (strength_reduce): Call check_ext_dependant_givs.
10759 Properly extend the biv initial value for the giv.
10760 (record_biv): Zero ext_dependant.
10761 (record_giv): New argument ext_val. Update all callers.
10762 (general_induction_var): Likewise.
10763 (consec_sets_giv): Likewise.
10764 (simplify_giv_expr): Likewise. Fill in ext_val if we find
10765 a sign-extend, zero-extend, or truncate.
10766 (combine_givs_p): Make sure modes are compatible.
10767 (check_ext_dependant_givs): New.
10768 (extend_value_for_giv): New.
10769 * loop.h (struct induction): Add ext_dependant.
10770 * unroll.c (iteration_info): Extend the biv initial value for the giv.
10771 (find_splittable_givs): Likewise.
10772 (final_giv_value): Likewise.
10773
10774 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
10775
10776 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
10777 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
10778 definitions from cpplib.h.
10779 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
10780 already done it.
10781 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
10782 documentation for REGISTER_TARGET_PRAGMAS.
10783
10784 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
10785 default-pragma callback to implement -Wunknown-pragmas if
10786 USE_CPPLIB.
10787 * c-parse.in: Move all includes to top of file.
10788 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
10789 tm_p.h.
10790 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
10791 warning.
10792 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
10793
10794 * arm.h, arm-protos.h, arm.c,
10795 c4x.h, c4x-protos.h, c4x.c,
10796 h8300.h, h8300-protos.h, h8300.c,
10797 i370.h, i370-protos.h, i370.c,
10798 i960.h, i960-protos.h, i960.c,
10799 sh.h, sh-protos.h, sh.c,
10800 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
10801 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
10802
10803 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
10804 multiple include guard.
10805 * i370.md (untyped_call): Use GEN_CALL.
10806 (umodsi3): Remove unused variable.
10807 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
10808 * v850.c (output_move_single, output_move_double): Constify
10809 return value.
10810 (print_operand): Constify a char *.
10811 * v850.h (struct small_memory_info): Constify name member.
10812
10813 2000-09-07 Kazu Hirata <kazu@hxi.com>
10814
10815 * config/h8300.h: Fix comment typos.
10816 * config/h8300/h8300.md: Likewise.
10817 * config/h8300/lib1funcs.asm: Likewise.
10818
10819 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
10820
10821 * Makefile.in: Remove references to cppulp.{c,o}.
10822 * cppinit.c (initialize_builtins, cpp_start_read,
10823 cpp_handle_option): Update to use cpp_options structure.
10824 * cppulp.c: Remove.
10825
10826 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
10827
10828 * c-common.c (time_char_table): Allow %#b and %#h.
10829
10830 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10831
10832 * reorg.c (find_end_label): If the basic block reorder pass moves the
10833 return insn to some other place try to locate it again and put our
10834 end_of_function_label there.
10835 * reorg.c (relax_delay_slots): Check if find_end_label created a
10836 new label that invalidates the current optimazation.
10837
10838 2000-09-07 Catherine Moore <clm@redhat.com>
10839
10840 * unroll.c (unroll_loop): Check for unconditional jumps
10841 to loop continuation. Delete if n_iterations is 1.
10842 (ujump_to_loop_cont): New routine.
10843
10844 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
10845
10846 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
10847 MODE_VECTOR_FLOAT.
10848 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
10849 to handle multiword modes correctly. All callers and the declaration
10850 changed.
10851
10852 2000-09-06 Mark Mitchell <mark@codesourcery.com>
10853
10854 * c-common.h (prep_stmt): Declare.
10855 (lang_expand_stmt): Likewise.
10856 * c-decl.c (lang_expand_stmt): Remove.
10857 * c-semantics.c (lang_expand_stmt): Define.
10858 (prep_stmt): New function.
10859 (expand_stmt): Handle common statement types here.
10860
10861 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
10862
10863 * configure.in (sh-*-linux*): Added.
10864 * configure: Rebuilt.
10865 * config/sh/t-linux: New file.
10866 * config/sh/sh.h (USERMODE_BIT): Define.
10867 (TARGET_USERMODE): Likewise.
10868 (TARGET_SWITCHES): New switches for the bits above.
10869 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
10870 * config/sh/linux.h: New file.
10871 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
10872 underscore on linux.
10873 (L_sdivsi3, L_udivsi3): Define for linux.
10874 (L_ic_invalidate): Define.
10875 * invoke.texi (SH Options): Document -musermode.
10876
10877 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
10878
10879 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
10880 CSE unless generating PIC.
10881
10882 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
10883 the PIC register.
10884
10885 2000-09-06 H.J. Lu (hjl@gnu.org)
10886
10887 * Makefile.in (clean_s1): Depend on stage_b.
10888 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
10889 stage2. They are used for "make compare".
10890
10891 2000-09-06 Mark Mitchell <mark@codesourcery.com>
10892
10893 Move statement-tree facilities from C++ to C front-end.
10894 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
10895 (void_zero_node): New macro.
10896 (struct stmt_tree_s): New type.
10897 (stmt_tree): New typedef.
10898 (struct language_function): New type.
10899 (last_tree): New macro.
10900 (last_expr_type): Likewise.
10901 (walk_tree_fn): New typedef.
10902 (current_stmt_tree): New function.
10903 (begin_stmt_tree): Likewise.
10904 (add_stmt): Likewise.
10905 (finish_stmt_tree): Likewise.
10906 (statement_code_p): Likewise.
10907 (lang_statement_code_p): New variable.
10908 (walk_stmt_tree): New function.
10909 (STMT_IS_FULL_EXPR_P): New macro.
10910 * c-common.c (lang_statement_code_p): New variable.
10911 (c_common_nodes_and_builtins): Initialize void_zero_node.
10912 (statement_code_p): New function.
10913 (walk_stmt_tree): Likewise.
10914 * c-decl.c (language_function): Rename to ...
10915 (c_language_function): ... this. Include language_function.
10916 (push_c_function_context): Adjust accordingly.
10917 (pop_c_function_context): Likewise.
10918 (mark_c_function_context): Likewise.
10919 (current_stmt_tree): Define.
10920 * c-semantics.c (begin_stmt_tree): New function.
10921 (add_stmt): Likewise.
10922 (prune_unused_decls): Likewise.
10923 (finish_stmt_tree): Likewise.
10924
10925 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10926
10927 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
10928
10929 2000-09-06 Kazu Hirata <kazu@hxi.com>
10930
10931 * calls.c: Fix formatting.
10932
10933 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
10934
10935 * config/i386/i386.h (ADDRESS_COST): Fix typo.
10936
10937 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
10938
10939 Integrated preprocessor.
10940
10941 * Makefile.in: Remove all references to c-parse.gperf,
10942 c-gperf.h, and c-parse.h. Remove -d from yacc command line
10943 generating c-parse.c. Update dependencies.
10944 * c-parse.gperf, c-gperf.h: Delete.
10945
10946 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
10947 yy_lim, or yy_get_token. Don't define get_directive_line if
10948 USE_CPPLIB.
10949 * c-common.h: Add multiple include guard. Define RID values
10950 for every keyword in C, C++, and Objective C. Put all the
10951 modifiers first.
10952 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
10953 * c-decl.c (c_decode_option): Handle -lang-objc here.
10954 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
10955 (grokdeclarator): Adjust for new RID scheme.
10956 (extract_interface_info): New stub.
10957 * c-lang.c: Don't declare yy_cur or parse_options.
10958 (lang_init_options): Call cpp_init. Don't call
10959 cpp_options_init.
10960 (lang_init): Don't call check_newline if USE_CPPLIB.
10961
10962 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
10963 Elide lots of unnecessary code if USE_CPPLIB. Delete code
10964 rendered unnecessary by new architecture. Move routines not
10965 shared with C++ to c-parse.in. Maintain a local idea of the
10966 line number. Handle C++ as well as C.
10967 [USE_CPPLIB]: Declare and register callbacks for #ident and
10968 for entering/leaving files.
10969 (init_c_lex, c_lex): Are now the entry points to this file.
10970 (check_newline): Break out directive handling to
10971 process_directive.
10972 (read_ucs, is_extended_char, utf8_extend_token): Moved here
10973 from C++ front end.
10974 (readescape, parse_float): Overhaul.
10975 (lex_number, lex_string, lex_charconst): Break out of c_lex
10976 (n'ee yylex).
10977 (get_fileinfo, update_header_times, dump_one_header,
10978 dump_time_statistics): New and/or moved here from C++.
10979 Support per-file data needed by C++ and per-header timing
10980 statistics (C++ only, at the moment).
10981 * c-lex.h: Update prototypes. Add multiple include guard.
10982 * c-tree.h (struct lang_identifier): Add rid_code field.
10983 (C_IS_RESERVED_WORD, C_RID_CODE): New.
10984
10985 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
10986 reinit_parse_for_function and/or position_after_white_space.
10987 (save_filename, save_lineno): Look ahead before saving.
10988 (label -> identifier ':'): Save file and line before shifting ':'.
10989 (reservedwords): No need to call get_identifier.
10990 (init_parse, finish_parse, yyerror, yylex, yyprint,
10991 make_pointer_declarator): Are now here for C/ObjC.
10992 (rid_to_yy): Conversion table from RID constants to Yacc codes.
10993
10994 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
10995 #pragma registry. Provide dummy implementation of that
10996 interface if !USE_CPPLIB.
10997 * c-pragma.h: Update to match.
10998
10999 * flags.h: Add multiple include guard.
11000 (flag_detailed_statistics): Moved here from C++.
11001 * toplev.c: Define flag_detailed_statistics.
11002
11003 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
11004 #if USE_CPPLIB.
11005 * timevar.def (TV_CPP, TV_LEX): New.
11006 * timevar.h: Add multiple include guard.
11007
11008 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
11009 #if USE_CPPLIB.
11010 * objc/objc-act.c: Don't mention yy_cur or parse_options.
11011 Initialize cpplib properly. Force lineno to 0 after first
11012 call to check_newline. Don't handle -lang-objc here.
11013 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
11014
11015 2000-09-06 David Edelsohn <edelsohn@gnu.org>
11016
11017 * rs6000.md: Correct function unit definitions for cr_logical and
11018 mtjmpr.
11019 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
11020 and use portable method for >=0 and floating point >=. Remove
11021 associated matchers.
11022
11023 2000-09-06 Mark Mitchell <mark@codesourcery.com>
11024
11025 * extend.texi: Mark named return value extension as deprecated.
11026
11027 2000-09-06 Geoff Keating <geoffk@cygnus.com>
11028
11029 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
11030 the result.
11031
11032 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
11033
11034 * toplev.c (display_help): Fix thinko in documentation.
11035
11036 * diagnostic.h (output_buffer::indent_skip): New fields.
11037 (output_indentation): New macro.
11038
11039 * diagnostic.c (output_indent): New function.
11040 (output_set_prefix, clear_diagnostic_info): Use.
11041 (output_emit_prefix): Predict future indentation.
11042
11043 2000-09-06 DJ Delorie <dj@redhat.com>
11044
11045 * Makefile.in (stage_*): add more dependencies to ensure parallel
11046 builds build correctly
11047
11048 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
11049
11050 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
11051 not bootstrap-lean_f.
11052
11053 2000-09-06 Andreas Schwab <schwab@suse.de>
11054
11055 * mklibgcc.in: Emit rule for libgcc-stage-start.
11056 * Makefile.in (stage1-start, stage2-start, stage3-start,
11057 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
11058
11059 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
11060
11061 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
11062 (update_equiv_regs): Likewise, except for the mn10200 kludge.
11063 (combine_regs): Likewise.
11064
11065 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
11066 * cse.c: Include "basic-block.h".
11067 (struct table_elt): New field REGCOST.
11068 (CHEAP_REG): Delete macro.
11069 (COST): Return 0 for REGs.
11070 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
11071 (notreg_cost): Return 0 for appropriate SUBREGs.
11072 (COSTS_N_INSNS): Return N * 2.
11073 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
11074 SUBREGs.
11075 (CHEAPER): Use new function preferrable.
11076 (insert): Initialize REGCOST member.
11077 (find_best_addr): Use approx_reg_cost for estimation of register
11078 usage.
11079 (cse_insn): Likewise.
11080 * loop.c (iv_add_mult_cost): New function.
11081 (add_cost, shift_cost, mult_cost): Delete variables.
11082 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
11083 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
11084 Make code that detects autoinc opportunities slightly less optimistic.
11085 (simplify_giv_expr): If expression contains other reg that is also a
11086 giv, only increment benefit if this is the only use of that reg.
11087 (consec_sets_giv): Take that change into account.
11088 (combine_givs): Slightly more verbose output.
11089
11090 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
11091 not the cost of an equivalent shift.
11092 * sh-protos.h (addsubcosts): Declare.
11093 * sh.c (addsubcosts): New function.
11094 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
11095 (RTX_COSTS): Tweak. Use addsubcosts.
11096 (ADDRESS_COST): Return higher cost for reg+reg addressing.
11097
11098 2000-09-06 Geoff Keating <geoffk@cygnus.com>
11099
11100 * config/rs6000/rs6000.c (validate_condition_mode): New function.
11101 (branch_comparison_operator): Call validate_condition_mode to
11102 abort rather than returning 0.
11103 (branch_positive_comparison_operator): New function.
11104 (scc_comparison_operator): Call validate_condition_mode to abort
11105 rather than returning 0.
11106 (ccr_bit): Call validate_condition_mode. Update for
11107 new branch scheme.
11108 (print_operand): Delete %C modifier. Update %E case
11109 to use EQ bit not SO bit.
11110 (rs6000_reverse_condition): New function.
11111 (rs6000_generate_compare): New function.
11112 (rs6000_emit_sCOND): New function.
11113 (rs6000_emit_cbranch): New function.
11114 (output_cbranch): The length of a long branch insn is
11115 now only 8 bytes. Add validate_condition_mode. Use
11116 rs6000_reverse_condition. Remove cror generation.
11117
11118 * config/rs6000/rs6000.h: Update comments.
11119 (PREDICATE_CODES): Add new predicate. Update codes used
11120 by branch_comparison_operator and scc_comparison_operator.
11121 * config/rs6000/rs6000-protos.h: Add prototypes for
11122 new external functions.
11123 * config/rs6000/rs6000.md: Add new scheduling parameters
11124 for cr_logical instructions. Change length of branch
11125 instructions.
11126 (bCOND patterns): Call rs6000_emit_cbranch.
11127 (sCOND patterns): Call rs6000_emit_sCOND.
11128 (branch patterns): Change lengths to 4.
11129 (cr logical patterns): New.
11130
11131 2000-09-06 Richard Henderson <rth@cygnus.com>
11132
11133 * config/i386/i386.md (call_pop): Fix test for setting
11134 current_function_uses_pic_offset_table.
11135 (call, call_value_pop, call_value): Likewise.
11136
11137 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
11138
11139 * timevar.c (timevar_add): Delete.
11140 (timevar_get): Also count time since the selected timer was
11141 last updated. Do not examine the timevar stack if the
11142 selected timer is standalone.
11143
11144 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
11145
11146 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
11147
11148 2000-09-05 Jason Merrill <jason@redhat.com>
11149
11150 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
11151 for 'extern' arrays.
11152
11153 2000-09-05 Richard Henderson <rth@cygnus.com>
11154
11155 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
11156 Eliminate final copy from non-trapping case.
11157 (__divdf3, __divsf3): Likewise.
11158
11159 2000-09-05 Richard Henderson <rth@cygnus.com>
11160
11161 * config/ia64/ia64.md (mulhi3): Fix typo last change.
11162 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
11163
11164 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
11165
11166 * Makefile.in: Restructure bootstrap stages to allow clean
11167 restart after failure.
11168
11169 2000-09-05 Richard Henderson <rth@cygnus.com>
11170
11171 * config/ia64.md (movsi and movdi patterns): Allow moves from
11172 8-bit constants to AR registers.
11173
11174 2000-09-05 Richard Henderson <rth@cygnus.com>
11175
11176 * config/ia64/ia64.md (mulhi3): New.
11177
11178 2000-09-05 Richard Henderson <rth@cygnus.com>
11179
11180 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
11181 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
11182 Optimization Guide, minimum latency alternative.
11183 (__moddi3, __udivdi3, __umoddi3): Likewise.
11184 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
11185
11186 2000-09-05 Bruce Korb <bkorb@gnu.org>
11187
11188 * fixinc/fixincl.c (load_file): always read header files
11189 with sizes that are a multiple of the page size.
11190 & use libiberty's getpagesize for determining that.
11191
11192 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
11193
11194 * gcse.c (hash_string_1): Add prototype.
11195 * cse.c (canon_hash_string): Likewise.
11196
11197 2000-09-04 Craig Newell <CraigN@ieee.org>
11198
11199 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
11200
11201 2000-09-04 Andreas Schwab <schwab@suse.de>
11202
11203 * Makefile.in (STAGESTUFF): Remove libgcc.
11204 (stage1-start, stage2-start, stage3-start): Copy the contents of
11205 the libgcc directory explicitly.
11206 (mostlyclean): Clean libgcc.
11207
11208 2000-09-04 Andrew Haley <aph@redhat.com>
11209
11210 * dwarf2out.c: (stack_adjust_offset): New prototype.
11211
11212 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
11213
11214 * combine.c (make_extraction): Fix rtx_cost comparison to
11215 match the comment.
11216
11217 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
11218
11219 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
11220 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
11221 Add '*' to insn pattern name.
11222
11223 2000-09-04 Jakub Jelinek <jakub@redhat.com>
11224
11225 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
11226 use posn - 1 to index into tokens array.
11227 (maybe_paste_with_next): Adjust caller.
11228
11229 2000-09-03 Geoff Keating <geoffk@cygnus.com>
11230
11231 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
11232
11233 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
11234 (REGNO_REG_CLASS): Use symbolic register
11235 names.
11236
11237 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
11238
11239 * arm.c (final_prescan_insn): If the form of a jump insn isn't
11240 recognized, don't try to conditionally execute it.
11241
11242 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
11243
11244 * config/avr/avr.md ("*tablejump_lib"): New pattern.
11245 (call_value_insn): Right length claculation.
11246 (call_insn): Likewise.
11247
11248 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
11249
11250 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
11251 gas_output_limited_string, gas_output_ascii, output_movqi,
11252 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
11253 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
11254 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
11255 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
11256 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
11257 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
11258 Add "const" as needed to remove warnings.
11259
11260 * config/avr/avr.c (avr_override_options, avr_init_once,
11261 function_prologue, function_epilogue, frame_pointer_required_p,
11262 class_likely_spilled_p, order_regs_for_local_alloc,
11263 avr_address_cost, avr_ret_register): Use K&R style arguments.
11264 (initial_elimination_offset, gas_output_limited_string):
11265 Remove ATTRIBUTE_UNUSED from the used arguments.
11266 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
11267 Use local variables src, dest, base to access operands[].
11268 Rename reg_dest to reg_src if that's what it is.
11269 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
11270 constants to LD_REGS if reg_was_0.
11271 (output_reload_insisf): Change arg 3 to insn length and set it.
11272 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
11273 access to 16-bit I/O register pairs.
11274 (avr_address_cost): Lower cost for the above case.
11275 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
11276 may be clobbered, also for LD_REGS.
11277 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
11278 with a CONST_INT.
11279
11280 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
11281
11282 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
11283 macro to test_hard_reg_class function.
11284 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
11285 for loading immediate constants to LD_REGS.
11286 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
11287
11288
11289 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
11290
11291 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
11292 * config/avr/libgcc.S: Lost part of the previous patch.
11293
11294 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
11295
11296 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
11297 object before calling pthread_mutex_init.
11298
11299 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
11300
11301 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
11302 config/sh/crtn.asm: New files.
11303 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
11304 (crt1.o, crti.o, crtn.o): New targets.
11305 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
11306 sh/t-elf.
11307 * configure: Rebuilt.
11308 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
11309 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
11310 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
11311 Undefine for config/elfos.h to redefine.
11312 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
11313
11314 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
11315
11316 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
11317 legitimize_pic_address, output_pic_addr_const): Declare.
11318 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
11319 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
11320 (TARGET_SWITCHES): New switch -mprefergot.
11321 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
11322 (PIC_OFFSET_TABLE_REGNUM): Define.
11323 (GOT_SYMBOL_TABLE): Likewise.
11324 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
11325 (ENCODE_SECTION_INFO): Define.
11326 (FINALIZE_PIC): New macros.
11327 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
11328 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
11329 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
11330 (prepare_move_operands): Call emit_pic_move or
11331 emit_pic_const_move if appropriate.
11332 (output_far_jump): For PIC, use braf and output long offset.
11333 (machine_dependent_reorg):
11334 (sh_expand_prologue): Save and initialize the PIC register.
11335 (sh_expand_epilogue): Restore it.
11336 (initial_elimination_offset): Account for it.
11337 (nonpic_symbol_mentioned_p): New function.
11338 (legitimize_pic_address): Likewise.
11339 (output_pic_addr_const): Likewise.
11340 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
11341 (call, call_value): Use them.
11342 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
11343 symPLT_label2reg): New expands.
11344 * invoke.texi (SH Options): Document -mprefergot.
11345
11346 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
11347
11348 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
11349 * gcse.c (hash_string_1): New function.
11350 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
11351 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
11352 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
11353 (canon_hash_string): New function.
11354 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
11355 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
11356 (fold_rtx): Use ASM_OPERANDS accessor macros.
11357 * emit-rtl.c (copy_insn_1): Likewise.
11358 * integrate.c (copy_rtx_and_substitute): Likewise.
11359 * stmt.c (expand_asm_operands): Likewise. Give an
11360 ASM_OPERANDS rtx the mode of the output reg being set from it.
11361
11362 2000-09-01 Fred Fish <fnf@be.com>
11363
11364 * fix-header.c (write_rbrac): Add putc and getc to list of
11365 functions to protect against prior definition as a macro.
11366
11367 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
11368
11369 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
11370 (c_size_type_node): Define.
11371 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
11372 * c-common.c (enum format_lengths, enum format_std_version,
11373 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
11374 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
11375 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
11376 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
11377 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
11378 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
11379 format_types): Define.
11380 (format_char_info, print_char_table, scan_char_table,
11381 time_char_table): Rearrange for new organization of information
11382 about format length modifiers and standard versions.
11383 (T_ST): Redefine to use c_size_type_node.
11384 (check_format_info): Obtain information about length modifiers and
11385 standard versions from tables. Adjust warning message wordings.
11386 Use the name from the user's program for `ll' and `hh' length
11387 modifiers in warning messages. Use more informative names for
11388 wanted types where available (for wchar_t, wint_t, size_t, signed
11389 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
11390
11391 2000-09-01 Jim Wilson <wilson@cygnus.com>
11392
11393 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
11394 * combine.c (distribute_notes): Handle REG_NORETURN.
11395 * rtl.c (reg_note_name): Add REG_NORETURN.
11396 * rtl.h (enum reg_note): Likewise.
11397
11398 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
11399 ia64_file_start.
11400 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
11401 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
11402 (emit_predicate_relation_info): Handle conditional calls with
11403 REG_NORETURN.
11404 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
11405 instead of ia64_file_start.
11406 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
11407 * config/ia64/ia64.md (safe_across_calls_all,
11408 save_across_calls_normal): New patterns.
11409
11410 * loop.c (check_final_value): Check for biv use before checking for
11411 giv use. Check for both biv and giv uses. Always set last_giv_use
11412 if there is a giv use.
11413
11414 2000-09-01 Richard Henderson <rth@cygnus.com>
11415
11416 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
11417 (madddi3): Likewise.
11418 (maddsi3): New.
11419
11420 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11421
11422 * expr.c (clear_storage): Don't use emit_move_insn unless
11423 either BLKmode or proper size.
11424 (store_constructor): Don't call clear_storage if REG of wrong size.
11425
11426 * flow.c (init_propagate_block_info): Don't mark frame dead at end
11427 of function if returns wiht stack pointer depressed.
11428
11429 2000-09-01 Andrew Haley <aph@redhat.com>
11430
11431 * dwarf2out.c (stack_adjust_offset): New function.
11432 (dwarf2out_stack_adjust): Break out stack adjust logic into
11433 new stack_adjust_offset function. Look inside parallels and
11434 sequences for stack adjustments.
11435
11436 2000-08-31 Jeff Law <law@cygnus.com>
11437
11438 * arm.md: Use no_new_pseudos to determine when it is safe
11439 to create new pseudo registers.
11440
11441 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
11442 when we can safely allocate new registers.
11443
11444 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
11445
11446 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
11447 so that CONCATs are not generated for ASMs.
11448 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
11449 not generating_concat_p.
11450 * function.c (pop_function_context_from): Reset
11451 generating_concat_p.
11452 (prepare_function_start): Likewise.
11453 * rtl.c (generating_concat_p): Define.
11454 * rtl.h (generating_concat_p): Declare.
11455 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
11456
11457 2000-08-22 Philipp Thomas <pthomas@suse.de>
11458 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
11459
11460 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
11461 for translation.
11462
11463 2000-08-30 Greg McGary <greg@mcgary.org>
11464
11465 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
11466 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
11467 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
11468
11469 2000-08-30 Greg McGary <greg@mcgary.org>
11470
11471 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
11472 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
11473 (TREE_INT_CST): New macro.
11474 * varasm.c (const_hash, compare_constant_1, record_constant_1):
11475 Use new macro TREE_INT_CST.
11476
11477 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
11478
11479 * contrib.texi: Add self.
11480
11481 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
11482
11483 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
11484 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
11485 and labels.
11486
11487 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
11488
11489 * fixinc/gnu-regex.c: Don't define `const'.
11490
11491 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11492
11493 * expr.c (store_constructor): Allow variable bounds of array type.
11494 (expand_expr): Don't blow up if type is ERROR_MARK.
11495 * varasm.c (output_constructor): Don't access lower bound of array
11496 type unless need it if index is supplied (so it can be a variable
11497 if no index is supplied).
11498 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
11499 Other minor cleanups.
11500
11501 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
11502
11503 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
11504 for compilations in stage 1 and subsequent stages, respectively.
11505 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
11506 * configure: Rebuilt.
11507 * x-vax, x-vax-gcc: Deleted.
11508
11509 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
11510
11511 * c-common.c (declare_function_name): Use func_id_node,
11512 function_id_node, and pretty_function_id_node. Do not make
11513 __func__ visible at file scope.
11514 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
11515 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
11516 (function_id_node, pretty_function_id_node, func_id_node): New
11517 macros.
11518 * c-decl.c (init_decl_processing): Initialize function_id_node,
11519 pretty_function_id_node, and func_id_node.
11520 (c_make_fname_decl): Correct comment.
11521
11522 * tree.h (struct tree_identifier): Constify pointer member.
11523
11524 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
11525 * c-pragma.h (struct weak_syms): Constify name and value members.
11526 (add_weak): Constify arguments.
11527
11528 * calls.c (special_function_p): Constify a char *.
11529 (expand_call): Remove variable which is initialized and then
11530 never used.
11531 * dependence.c (struct def_use, struct induction, struct subscript):
11532 Constify 'variable' member.
11533 (get_low_bound, have_induction_variable): Constify char * argument.
11534 (find_induction_variable): Add braces to avoid dangling else.
11535 (classify_dependence): Constify char * arrays.
11536 * profile.c (output_func_start_profiler): Constify a char *.
11537 * stor-layout.c (finalize_record_size): Constify a char *.
11538 * tree.c (is_attribute_p): Constify a char *.
11539 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
11540
11541 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
11542 for comprehensibility. Do not call get_identifier if we did
11543 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
11544 create temporary string constants, not ggc_alloc_string. No
11545 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
11546 char * to hold IDENTIFIER_POINTERs.
11547
11548 2000-08-29 Richard Henderson <rth@cygnus.com>
11549
11550 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
11551 for the inputs.
11552
11553 2000-08-29 Richard Henderson <rth@cygnus.com>
11554
11555 * reload.c (push_secondary_reload): Allow class == reload_class
11556 if we're using a reload_in/out pattern.
11557
11558 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
11559 the half that does not conflict with the reload register.
11560 (reload_outti): Likewise.
11561
11562 2000-08-29 Kazu Hirata <kazu@hxi.com>
11563
11564 * reload.c: Fix formatting.
11565
11566 * stmt.c: Fix formatting.
11567
11568 * gcc.c: Fix formatting.
11569
11570 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
11571
11572 * flags.h (time_report, mem_report): New global flags.
11573 * toplev.c: Define time_report and mem_report.
11574 (f_options): Add -ftime-report and -fmem-report.
11575 (compile_file): Turn on time_report if quiet_flag is off.
11576 Call ggc_print_statistics at very end if mem_report is on.
11577 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
11578
11579 * ggc-common.c (ggc_print_statistics): Rename to
11580 ggc_print_common_statistics; all callers changed. Scale
11581 quantities above 10K to kilobytes and above 10M to megabytes.
11582 * ggc-page.c (ggc_page_print_statistics): Rename to
11583 ggc_print_statistics. Report memory consumed by internal data
11584 structures for each allocation bucket. Scale quantities above
11585 10K to kilobytes and above 10M to megabytes.
11586 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
11587 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
11588 Define tally_leaves always.
11589 (ggc_print_statistics): New function.
11590 * ggc.h: Adjust for renamed functions.
11591
11592 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
11593
11594 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
11595 output_movsisf instead of which_alternative.
11596
11597 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
11598
11599 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
11600
11601 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
11602 (avr_progmem_p): New prototype.
11603 (output_movsisf): Prototype declaration changed.
11604 (output_movqi): New prototype.
11605 (output_movhi): New prototype.
11606 (call_insn_operand): Likewise.
11607 (final_prescan_insn): Likewise.
11608 (avr_simplify_comparision_p): Likewise.
11609 (avr_normalize_condition): Likewise.
11610 (compare_eq_p): Likewise.
11611 (out_shift_with_cnt): Likewise.
11612 (const_int_pow2_p): Likewise.
11613 (output_reload_inhi): Prototype declaration changed.
11614
11615 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
11616 (ldi_reg_rtx): New. rtx for r31.
11617 (avr_init_stack): Initialize as "__stack".
11618 (function_prologue): Use it.
11619 Replace all TARGET_ENHANCED with AVR_ENHANCED.
11620 (avr_mcu_name): Initialize as "avr2".
11621 (avr_enhanced_p, avr_mega_p): New variables.
11622 (mcu_types, avr_override_options): Handle all known MCU types.
11623 Also handle avr1 (only preprocess, assemble and link).
11624 (print_operand): Using of `%K' in output template removed.
11625 (out_movqi_r_mr): Optimized.
11626 (out_movhi_r_mr): Likewise.
11627 (output_movqi): New function.
11628 (output_movhi): Likewise.
11629 (out_movsi_r_mr): Optimized.
11630 (output_movsisf): Compute insn length for `adjust_insn_length'
11631 (out_movqi_mr_r): Optimized.
11632 (out_movhi_mr_r): Optimized.
11633 (adjust_insn_length): Use output_movsisf, output_movqi,
11634 output_movhi for insn length adjusting.
11635 (reg_unused_after): Use dead_or_set_p.
11636 (preferred_reload_class): Now havn't any restriction.
11637 (reg_was_0): New function.
11638 (io_address_p): Likewise.
11639 (const_int_pow2_p): Likewise.
11640 (output_reload_inhi): Likewise.
11641 (output_reload_insisf): Likewise.
11642
11643 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
11644 (LIB_SPEC): Use -lc for all supported devices.
11645 (LIBGCC_SPEC): Use -lgcc for all supported devices.
11646 (AVR_MEGA): Define as avr_mega_p.
11647 (AVR_ENHANCED): New, define as avr_enhanced_p.
11648 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
11649 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
11650 (CRT_BINUTILS_SPECS): Handle all known MCU types.
11651 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
11652 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
11653 (ASM_SPEC): Pass -mmcu=... to the assembler.
11654 Change all -DAVR_* to -D__AVR_*__.
11655 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
11656 Rename library functions to start with two underscores.
11657 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
11658 alignment.
11659 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
11660 (SUPPORTS_WEAK): Likewise.
11661 (LDI_REG_REGNO): New. Register r31 will be used as temporary
11662 register for loading constants to r0-r14.
11663
11664 * config/avr/avr.md: Replace all TARGET_ENHANCED with
11665 AVR_ENHANCED.
11666 (*mov_r_sp): Removed. Handled by output_movhi.
11667 (*mov_sp_r): Likewise.
11668 (*mov_sp_r_no_interrupts): Likewise
11669 (*mov_sp_r_tiny): Likewise.
11670 (*movqi): Use output_movqi.
11671 (*reload_inqi): New.
11672 (*movhi): Use output_movhi.
11673 (*reload_inhi): New.
11674 (*negsi2): Optimized.
11675 (*negsf2): Likewise.
11676 Added peepholes (define_peephole2) for loading constants to r0-r14
11677 and for using `cpse' command.
11678
11679 * config/avr/libgcc.S: Rename library functions to start with two
11680 underscores.
11681 Add support for enhanced core.
11682 (_moqhi3): Fix typo, now _modqi3.
11683 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
11684 (__prologue_saves__): Remove test for stack adjust by 0.
11685 (__tablejump__): New.
11686
11687 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
11688 Add multilib support.
11689
11690 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
11691
11692 * loop.c (prescan_loop): Don't check unknown_address_altered
11693 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
11694 to loop_store_mems as necessary.
11695 (loop_invariant_p): Don't check unknown_address_altered
11696 or unknown_constant_address_altered.
11697
11698 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
11699
11700 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
11701
11702 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
11703
11704 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
11705 print just the filename.
11706 * cpplex.c (_cpp_run_directive): Add additional argument, the
11707 name to give the synthetic buffer. This defaults to
11708 translated "<command line>".
11709 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
11710 Adjust to match.
11711 (_cpp_define_builtin): New function.
11712 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
11713 * cpphash.h: Update prototypes.
11714
11715 * tradcpp.c (main): Process -D and -U simultaneously, in the
11716 order they appeared on the command line.
11717
11718 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11719
11720 * c-decl.c (define_label): Call warning_with_file_and_line and
11721 error_with_file_and_line instead of plain warning or error.
11722
11723 * c-parse.in (label): Use save_filename/save_lineno to ensure
11724 correct values for calls to define_label.
11725
11726 2000-08-29 Mark Mitchell <mark@codesourcery.com>
11727
11728 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
11729 away.
11730 * expr.c (expand_expr, case TARGET_EXPR): Don't call
11731 mark_addressable.
11732 * tree.h (get_file_function_name): Remove two duplicate
11733 declarations.
11734
11735 2000-08-28 Kazu Hirata <kazu@hxi.com>
11736
11737 * tree.c: Fix formatting.
11738
11739 * xcoffout.c: Fix formatting.
11740
11741 2000-08-28 Jason Merrill <jason@redhat.com>
11742
11743 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
11744
11745 2000-08-28 Daniel Berlin <dberlin@redhat.com>
11746
11747 * dwarf2out.c (dwarf2out_finish): Don't bother calling
11748 break_out_includes if it won't do anything.
11749
11750 2000-08-28 Richard Henderson <rth@cygnus.com>
11751
11752 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
11753 (find_reloads): Likewise.
11754 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
11755 (reload_inhi): Likewise.
11756
11757 2000-08-28 Richard Henderson <rth@cygnus.com>
11758
11759 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
11760 (call_insn_operand): Don't expect a surrounding mem.
11761 (constant_call_address_operand): Likewise.
11762 * config/i386/i386.h (PREDICATE_CODES): Update.
11763 * config/i386/i386.md (call patterns): Move the match_operand
11764 for the call destination inside the mem.
11765
11766 2000-08-28 Richard Henderson <rth@cygnus.com>
11767
11768 * local-alloc.c (requires_inout): Don't use reserved range for
11769 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
11770 * recog.c (asm_operand_ok): Likewise.
11771 (preprocess_constraints, constrain_operands): Likewise.
11772 * regclass.c (record_reg_classes): Likewise.
11773 * reload.c (find_reloads): Likewise.
11774 * reload1.c (maybe_fix_stack_asms): Likewise.
11775 (reload_cse_simplify_operands): Likewise.
11776 * stmt.c (expand_asm_operands): Likewise.
11777
11778 * md.texi: Update constraints documentation.
11779 * tm.texi (EXTRA_CONSTRAINT): Update.
11780
11781 2000-08-28 Daniel Berlin <dberlin@redhat.com>
11782
11783 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
11784 (print_die): If we don't know the offset of the
11785 target die, try the symbol. Add a trailing newline.
11786 (reverse_all_dies): New fn.
11787 (dwarf2out_finish): Call it.
11788 (break_out_includes): Reorganize for clarity.
11789 (add_sibling_attributes): Don't call reverse_die_lists.
11790 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
11791 primary CU, too.
11792 * flags.h: Add flag_eliminate_dwarf2_dups.
11793 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
11794
11795 2000-08-28 Jason Merrill <jason@redhat.com>
11796
11797 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
11798 * dwarf2out.c: #include "md5.h".
11799 (DIE_LABEL_PREFIX): New macro.
11800 (dw_val_struct): Add 'external' flag to val_die_ref.
11801 (add_AT_die_ref, AT_ref): Adjust.
11802 (AT_ref_external, set_AT_ref_external): New fns.
11803 (build_abbrev_table): Call set_AT_ref_external.
11804 (value_format): Call AT_ref_external.
11805 (die_struct): Add die_symbol field.
11806 (new_die): Clear it.
11807 (dwarf_tag_name): Handle BINCL/EINCL.
11808 (dwarf2out_start_source_file): Add BINCL DIE.
11809 (dwarf2out_end_source_file): Add EINCL DIE.
11810 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
11811 (loc_checksum, attr_checksum, die_checksum): New fns.
11812 (is_type_die, is_comdat_die, is_symbol_die): New fns.
11813 (compute_section_prefix, assign_symbol_names): New fns.
11814 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
11815 (output_die): Call output_die_symbol and AT_ref_external.
11816 (output_comdat_comp_unit): New fn, split out from...
11817 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
11818 secondary CUs.
11819 (output_pubnames, output_aranges): Abort if we see entries from
11820 secondary CUs.
11821 * toplev.h: Declare file_name_nondirectory.
11822 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
11823 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
11824 (debug_start_source_file): Call dwarf2out_start_source_file
11825 regardless of debug verbosity.
11826 (debug_end_source_file): Similarly.
11827 * tree.h: Declare clean_symbol_name.
11828 * tree.c (clean_symbol_name): Split out from...
11829 (get_file_function_name_long): ...here.
11830
11831 * dwarf2out.c (new_loc_descr): Use calloc.
11832 (splice_child_die): Remove the die from the right parent.
11833 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
11834
11835 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11836
11837 * toplev.c (decode_g_option): Don't give warning for unknown -g
11838 option; return 0 instead.
11839 (main): If -g option is not recognized by front end or
11840 language-independent code, give warning.
11841
11842 2000-08-28 Greg McGary <greg@mcgary.org>
11843
11844 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
11845 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
11846 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
11847
11848 2000-08-27 Greg McGary <greg@mcgary.org>
11849
11850 * cpplex.c (parse_string): Don't look for backslash
11851 before first char in `namebuf'.
11852 * loop.c (strength_reduce): Skip NOTEs.
11853
11854 2000-08-27 Jason Merrill <jason@redhat.com>
11855
11856 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
11857 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
11858 TREE_ASM_WRITTEN, either.
11859 (finish_decl): Adjust.
11860
11861 2000-08-28 Philipp Thomas <pthomas@suse.de>
11862
11863 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
11864 they have been incorporated into the gettext CVS. Change the text to
11865 reflect the current status of NLS. Add instructions for accessing
11866 the gettext CVS and add the patch from Martin v. Loewis.
11867
11868 2000-08-27 Geoff Keating <geoffk@cygnus.com>
11869
11870 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
11871 by using gen_lowpart_common.
11872 (movdi_internal64+6): Likewise.
11873
11874 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
11875
11876 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
11877 Document.
11878
11879 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
11880 numbers to the ranges used by GDB.
11881
11882 2000-08-25 Richard Henderson <rth@cygnus.com>
11883
11884 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
11885 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
11886 (ia64_expand_prologue): Likewise.
11887 (ia64_setup_incoming_varargs): Set it. Properly skip the current
11888 argument for stdargs.
11889
11890 2000-08-25 Jason Merrill <jason@redhat.com>
11891
11892 * integrate.c (expand_inline_function): Pull out the original decl.
11893
11894 2000-08-25 Jim Wilson <wilson@cygnus.com>
11895
11896 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
11897
11898 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
11899
11900 2000-08-25 Greg McGary <greg@mcgary.org>
11901
11902 * flow.c (dump_edge_info): Use ARRAY_SIZE.
11903 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
11904
11905 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
11906
11907 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
11908
11909 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
11910
11911 * i386.c (ix86_find_base_term): New.
11912 * i386-protos.h (ix86_find_base_term): Prototype.
11913 * i386.h (FIND_BASE_TERM): Define.
11914 * alias.c (find_base_term): Use it.
11915 * tm.texi (FIND_BASE_TERM): Document it.
11916
11917 * alias.c (true_dependence, write_dependence_p): Unchanging
11918 memory can't conflict with non-unchanging memory.
11919
11920 * alias.c (memrefs_conflict_p): A BLKmode reference
11921 to a symbol (or CONST_INT address) always conflicts
11922 with a reference to another symbol.
11923
11924 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
11925
11926 * c-common.c (time_char_table): Don't allow width and flags with
11927 "z" format.
11928
11929 2000-08-25 Jakub Jelinek <jakub@redhat.com>
11930
11931 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
11932 way as LT and LTU when the second operand has 0 in low word.
11933
11934 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11935
11936 * basic-block.h (struct loop): Rename `exits' field to
11937 `exit_edges'. Add `entry_edges' and `num_entries' fields.
11938
11939 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
11940 (flow_loop_entry_edges_find): Add.
11941 (flow_edge_list_print): Rename from flow_exits_print.
11942 (flow_loops_find): Call flow_loop_entry_edges_find.
11943 (flow_loop_dump): Dump entry_edges list.
11944 (flow_loops_free): Free entry_edges.
11945
11946 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11947
11948 * loop.c (loop_dump_aux, debug_loop): New functions.
11949 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
11950
11951 * flow.c (flow_loops_dump): Add callback parameter.
11952 (flow_loop_dump): Add callback parameter and call it. Move
11953 loop note debugging code to loop_dump_aux.
11954
11955 * basic-block.h (flow_loop_dump): Add callback parameter
11956 (flow_loops_dump): Likewise.
11957
11958 * toplev.c (rest_of_compilation): Add NULL callback function pointer
11959 to call to flow_loops_dump.
11960
11961 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11962
11963 * loop.c (count_loop_regs_set): Replace start and end arguments
11964 with loop argument. All callers udated.
11965
11966 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11967
11968 * loop.c (constant_high_bytes): Delete.
11969
11970 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11971
11972 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
11973 and NOTE_INSN_LOOP_VTOP to...
11974 (find_and_verify_loops) ...here.
11975
11976 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
11977
11978 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
11979 (fini_dummy, init_dummy): Use it.
11980
11981 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
11982
11983 * cpplex.c (is_macro_disabled): Caller has already checked
11984 that we're not a preprocessed file.
11985
11986 2000-08-24 Mark Mitchell <mark@codesourcery.com>
11987
11988 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
11989 (c-iterate.o): Remove target.
11990 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
11991 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
11992 (finish_decl): Don't handle iterators.
11993 (grokdeclarator): Likewise.
11994 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
11995 * gcc/c-gperf.h: Regenerated.
11996 * gcc/c-iterate.c: Removed.
11997 * gcc/c-lex.c (init_lex): Don't handle iterators.
11998 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
11999 (compstmt_primary_start): Remove push_iterator_stack call.
12000 (stmt): Don't allow iterator statements. Replace iterator_expand
12001 with expand_expr_stmt.
12002 (all_iter_stmt): Remove.
12003 (all_iter_stmt_simple): Likewise.
12004 (all_iter_stmt_with_decl): Likewise.
12005 * gcc/c-tree.h (ITERATOR_P): Remove.
12006 (ITERATOR_BOUND_P): Likewise.
12007 (init_iterators): Remove declaration.
12008 (iterator_expand): Likewise.
12009 (iterator_for_loop_start): Likewise.
12010 (iterator_for_loop_end): Likewise.
12011 (iterator_for_loop_record): Likewise.
12012 (push_iterator_stack): Likewise.
12013 (pop_iterator_stack): Likewise.
12014 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
12015 (readonly_warning): Likewise.
12016 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
12017
12018 2000-08-24 Jim Wilson <wilson@cygnus.com>
12019
12020 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
12021 Copy type in a TYPE_DECL, just like pushdecl does.
12022
12023 2000-08-24 Richard Henderson <rth@cygnus.com>
12024
12025 * toplev.c (main): Enable flag_reorder_blocks at -O2.
12026
12027 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
12028
12029 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
12030 asked for one page, allocate GGC_QUIRE_SIZE of them and put
12031 the extras on the free list.
12032 (release_pages): Clean up.
12033 (ggc_set_mark): Don't adjust G.allocated here...
12034 (sweep_pages): ... do it here.
12035
12036 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
12037
12038 * cppfiles.c (read_include_file): Rearrange initializations.
12039
12040 2000-08-24 Richard Henderson <rth@cygnus.com>
12041
12042 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
12043
12044 * config/ia64/ia64-protos.h: Update.
12045 * config/ia64/ia64.c (gr_register_operand): New.
12046 (fr_register_operand, grfr_register_operand): New.
12047 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
12048 (grfr_reg_or_8bit_operand): New.
12049 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
12050 use gr_register_operand.
12051 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
12052 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
12053 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
12054 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
12055 (fr_reg_or_fp01_operand): Likewise.
12056 (not_postinc_memory_operand): New.
12057 (ia64_split_timode): Remove unused variables.
12058 (rtx_needs_barrier): Check arguments to cmpxchg.
12059 (builtin_description): Remove.
12060 (bdesc_2argsi, bdesc_2argdi): Remove.
12061 (ia64_init_builtins): Declare all builtins directly.
12062 (ia64_expand_fetch_and_op): Rewrite to be called from
12063 ia64_expand_builtin directly. Use expand_binop and co.
12064 (ia64_expand_op_and_fetch): Likewise.
12065 (ia64_expand_compare_and_swap): Likewise.
12066 (ia64_expand_binop_builtin): Remove.
12067 (ia64_expand_lock_test_and_set): New.
12068 (ia64_expand_lock_release): New.
12069 (ia64_expand_builtin): Use them.
12070 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
12071 (EXTRA_CONSTRAINT): Use it.
12072 (PREDICATE_CODES): Update.
12073 * config/ia64/ia64.md (*): Use gr_register_operand and co.
12074 (mf): Indicate that we set memory as well as use it.
12075 (fetchadd_acq_si): Show memory being modified as well.
12076 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
12077 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
12078 (lock_test_and_set_si, lock_test_and_set_di): Remove.
12079 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
12080 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
12081 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
12082 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
12083 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
12084 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
12085 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
12086 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
12087 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
12088 return type. Pretty print definitions.
12089
12090 2000-08-24 Jim Wilson <wilson@cygnus.com>
12091
12092 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
12093 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
12094
12095 2000-08-24 Jason Merrill <jason@redhat.com>
12096
12097 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
12098 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
12099 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
12100 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
12101
12102 2000-08-24 Greg McGary <greg@mcgary.org>
12103
12104 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
12105 and extendtab within their proper array boundaries.
12106 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
12107 for the entire array.
12108
12109 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
12110 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
12111 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
12112 * config/fr30/fr30.c (fr30_print_operand): Likewise.
12113 * config/i386/dgux.c (output_options): Likewise.
12114 * config/i386/dgux.h (ASM_FILE_START): Likewise.
12115 * config/m88k/m88k.c (output_options): Likewise.
12116 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
12117 * config/mcore/mcore.c (mcore_output_inline_const_forced,
12118 layout_mcore_frame, handle_structs_in_regs): Likewise.
12119 * config/mips/mips.c (output_block_move): Likewise.
12120 * config/rs6000/rs6000.c (rs6000_override_options,
12121 rs6000_file_start): Likewise.
12122 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
12123 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
12124 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
12125 * builtins.c (expand_builtin_setjmp): Likewise.
12126 * expr.c (safe_from_p): Likewise.
12127 * flow.c (life_analysis): Likewise.
12128 * fold-const.c (size_int_type_wide): Likewise.
12129 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
12130 * genattrtab.c (make_length_attrs): Likewise.
12131 * genopinit.c (gen_insn): Likewise.
12132 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
12133 * global.c (global_alloc): Likewise.
12134 * local-alloc.c (find_free_reg): Likewise.
12135 * mips-tdump.c (print_symbol): Likewise.
12136 * mips-tfile.c (parse_def, parse_input): Likewise.
12137 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
12138 * stmt.c (expand_nl_goto_receiver): Likewise.
12139 * stor-layout.c (set_sizetype): Likewise.
12140 * varasm.c (decode_reg_name): Likewise.
12141 * toplev.c (decode_f_option, decode_W_option,
12142 set_target_switch, print_switch_values): Likewise.
12143 (NUM_ELEM): Remove macro.
12144 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
12145
12146 2000-08-24 Greg McGary <greg@mcgary.org>
12147
12148 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
12149 (MAIN_NAME_P, main_identifier_node): New macros.
12150 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
12151 * c-decl.c (start_decl, grokdeclarator, start_function,
12152 store_parm_decls, finish_function): Use MAIN_NAME_P.
12153 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
12154 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12155 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12156 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
12157
12158 2000-08-24 Greg McGary <greg@mcgary.org>
12159
12160 * cppfiles.c (actual_directory): Don't write beyond `dir'
12161 when it contains "".
12162 * real.c (asctoeg): Stay within bounds of etens[][].
12163
12164 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12165
12166 * dependence.c (dependence_string, direction_string,
12167 dump_one_node, dump_node_dependence): Hide unused identifiers.
12168 (get_low_bound, normalize_coefficients): Match definition to
12169 static prototype.
12170 (get_one_coefficient): Initialize variables `value0_is_idx' and
12171 `value1_is_idx'.
12172 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
12173 (ziv_test): Delete variable `idx', use parameter `sub' instead.
12174 (direction_merge): Avoid automatic aggregate initialization.
12175 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
12176 Initialize variables `dest_idx' and `src_idx'.
12177 (end_dependence_analysis): Avoid C89 style function definition.
12178
12179 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
12180
12181 * c-common.c (time_char_table): Don't allow width with %F.
12182 (check_format_info): Don't allow "Z" length with scanf.
12183
12184 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
12185
12186 * diagnostic.c (finish_diagnostic): Define.
12187 (output_do_printf): Use wrap_text instead of output_add_string.
12188 (default_print_error_function): Avoid embedded '\n'.
12189
12190 * diagnostic.h (flush_diagnostic_buffer): Declare.
12191
12192 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
12193
12194 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
12195
12196 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
12197
12198 * Makefile.in (GCC_PASSES): Add specs.
12199
12200 2000-08-23 Jim Wilson <wilson@cygnus.com>
12201
12202 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
12203 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
12204 EHANDLER nor UHANDLER bit is set.
12205 (__get_except_table): Likewise.
12206
12207 2000-08-23 Nick Clifton <nickc@redhat.com>
12208
12209 * config/arm/lib1funcs.asm: Replace upper case condition codes
12210 with lower case versions.
12211
12212 * config/arm/arm.h (STRUCT_VALUE): Define.
12213 (STRUCT_VALUE_REGNUM): Delete.
12214
12215 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
12216
12217 * cpphash.h (IN_I): New flag for directive table.
12218 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
12219 #pragma with IN_I.
12220 (_cpp_check_directive): If -fpreprocessed, execute directives
12221 marked with IN_I. Issue no warnings in this case.
12222 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
12223
12224 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
12225
12226 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
12227 %u.
12228 (check_format_info): Support printf 'I' flag; warn about it with
12229 -pedantic.
12230
12231 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
12232
12233 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
12234 barrier can't be ignored by the alias analysis code.
12235
12236 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
12237
12238 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
12239 works inside fixincl.
12240
12241 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
12242
12243 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
12244 simplify_relational_operation() unless both operands are of
12245 VOIDmode.
12246 * cse.c (fold_rtx): Likewise.
12247
12248 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
12249
12250 * rtlanal.c (rtx_unstable_p): The pic register is stable
12251 (within one function) and the actual rtx should be used
12252 when checking the registers.
12253 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
12254
12255 * alias.c (true_dependence, write_dependence_p): Fix
12256 bug in previous patch.
12257
12258 * i386.c (ix86_GOT_alias_set): New.
12259 (legitimize_pic_address): Use it.
12260
12261 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
12262 only stable if its address is stable.
12263 (rtx_varies_p): An unchanging MEM can't vary if
12264 its address doesn't vary.
12265
12266 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12267
12268 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
12269
12270 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
12271
12272 * vax.h (ASM_SPEC): Pass `-J' to assembler.
12273 * x-vax-gcc: New file for bootstrapping with gcc.
12274 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
12275 * configure.in: Use x-vax-gcc with gcc.
12276 * configure: Rebuilt.
12277
12278 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12279
12280 * toplev.c (rest_of_compilation): Rebuild label notes after
12281 post-reload splitting pass if new labels have been created.
12282
12283 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
12284
12285 * diagnostic.h (output_buffer_state): New macro.
12286 * diagnostic.c (diagnostic_for_decl, sorry,
12287 default_print_error_function, output_do_verbatim,
12288 report_diagnostic, report_problematic_module): Use it.
12289 (wrap_text): Tweak.
12290 (output_format): Use wrap_text instead of maybe_wrap_text.
12291
12292 2000-08-22 Nick Clifton <nickc@redhat.com>
12293
12294 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
12295 Common code for ARM divide and modulus functions.
12296 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
12297 ARM_DIV_MOD_BODY.
12298 (FUNC_END): New macro: Common code at the end of the division and
12299 modulo functions.
12300 (THUMB_FUNCTION_START): New macro: Common code at the start of
12301 Thumb functions.
12302 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
12303
12304 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12305
12306 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
12307
12308 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
12309 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
12310 const0_rtx.
12311
12312 2000-08-22 Nick Clifton <nickc@redhat.com>
12313
12314 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
12315 restorative additions, test for bottom bits of IP being set,
12316 rather than relying upon the RORs not matching.
12317 (__modsi3): Ditto.
12318
12319 2000-08-22 David Edelsohn <edelsohn@gnu.org>
12320
12321 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
12322 text_section() as appropriate instead of emitting text csect
12323 pseudo-op directly.
12324 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
12325 (UNIQUE_SECTION): Define macro.
12326 (ASM_OUTPUT_SECTION_NAME): Define macro.
12327 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
12328 on AIX if debugging and -fdata-sections always.
12329
12330 2000-08-22 Steven King <sxking@uswest.net>
12331
12332 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
12333 machinery.
12334 (LDBL_MAX): Same here.
12335
12336 2000-08-22 Richard Henderson <rth@cygnus.com>
12337
12338 * flow.c (tidy_fallthru_edge): Update b->end properly.
12339
12340 2000-08-22 Stan Cox <scox@redhat.com>
12341
12342 * Makefile.in (OBJS): Add dependence.o.
12343 * dependence.c: New file.
12344
12345 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
12346
12347 * calls.c (check_sibcall_argument_overlap_1): Adjust for
12348 ARGS_GROW_DOWNWARD.
12349 (check_sibcall_argument_overlap): Likewise.
12350
12351 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
12352
12353 * invoke.texi (SH Options): Document -m4-nofpu,
12354 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
12355 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
12356
12357 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
12358
12359 * c-common.c (check_format_info): Give the 'some locales' warning
12360 for strftime %Ey rather than the unconditional 'only last 2 digits
12361 of year' one.
12362
12363 2000-08-22 Richard Henderson <rth@cygnus.com>
12364
12365 * alias.c (init_alias_analysis): Do not register
12366 struct_value_incoming_rtx or static_chain_rtx as pointing
12367 to stack memory.
12368
12369 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
12370
12371 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
12372
12373 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
12374
12375 * diagnostic.h (report_problematic_module): Declare.
12376 * diagnostic.c (report_problematic_module): New function.
12377 (report_error_function): Tweak.
12378
12379 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12380
12381 * stmt.c (expand_goto_internal, fixup_gotos): Only check
12382 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
12383
12384 2000-08-21 Richard Henderson <rth@cygnus.com>
12385
12386 * flow.c (calculate_global_regs_live): Mark frame pointer live
12387 everywhere before reload.
12388
12389 2000-08-21 Jim Wilson <wilson@cygnus.com>
12390
12391 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
12392 INTEL_EXTENDED_IEEE_FORMAT.
12393 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
12394 clear last two bytes of output FP value.
12395
12396 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
12397
12398 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
12399
12400 2000-08-21 Jakub Jelinek <jakub@redhat.com>
12401
12402 * unroll.c (loop_find_equiv_value): If ret is modified between
12403 insn and loop_start, ret might not be equivalent to reg.
12404
12405 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
12406
12407 * c-common.c (init_dollar_format_checking,
12408 maybe_read_dollar_number, finish_dollar_format_checking): New
12409 functions.
12410 (dollar_arguments_used, dollar_arguments_count,
12411 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
12412 New variables.
12413 (check_format_info): Support $ formats for scanf and printf width
12414 and precision. Always increment format_chars to advance past the
12415 '*' of precision, not just when the format parameters are
12416 available to check.
12417
12418 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12419
12420 * mips.c (block_move_loop, expand_block_move,
12421 function_arg_partial_nregs, save_restore_insns, function_prologue,
12422 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
12423 constant suffix.
12424 (function_arg_advance, function_arg): Match argument to format
12425 specifier `%p'.
12426
12427 2000-08-21 Nix <nix@esperi.demon.co.uk>
12428
12429 * gcc.c (do_spec_1): Implement %j spec flag.
12430 Remove dead comment.
12431
12432 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
12433 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
12434 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
12435 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
12436
12437 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
12438 writable) instead of hardcoded value.
12439
12440 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
12441
12442 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
12443 MKTEMP_EACH_FILE.
12444
12445 * gcc.c (cc1_options): Do not process -o or run the assembler if
12446 -fsyntax-only.
12447 * objc/lang-spec.h: Likewise.
12448
12449 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
12450
12451 * fixinc/fixincl.c (fix_with_system): Pipe the output of
12452 "external" fixes through `cat', to avoid truncating the input
12453 file by redirection.
12454
12455 2000-08-21 Jakub Jelinek <jakub@redhat.com>
12456
12457 * config/i386/i386.md (lea_general_1): Copy insn condition to split
12458 condition.
12459 (lea_general_2, lea_general_3): Likewise.
12460
12461 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12462
12463 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
12464 warnings to user code.
12465
12466 * c-lex.c (readescape, yylex): Likewise.
12467
12468 * c-typeck.c (store_init_value, process_init_element): Likewise
12469 (c_expand_start_case): Format.
12470
12471 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12472
12473 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
12474
12475 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
12476 and linker_endian_spec to endian_spec.
12477 (ENDIAN_SPEC): Add %{EB} and %{EL}.
12478 (LINK_SPEC): Remove %{EB} and %{EL}.
12479 (ASM_SPEC): Likewise. Use %(endian_spec).
12480
12481 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
12482
12483 * c-tree.h (flag_hosted): Move declaration from here...
12484 * c-common.h (flag_hosted): ... to here.
12485 (flag_noniso_default_format_attributes): New declaration.
12486 * c-decl.c (flag_noniso_default_format_attributes): New variable.
12487 (c_decode_option): Set it appropriately for options choosing
12488 language standard variant.
12489 * c-common.c (init_function_format_info): Only provide default
12490 format attributes if flag_hosted. Only provide the gettext
12491 formats if flag_noniso_default_format_attributes. Update
12492 comments.
12493 (check_format_info): Disable treatment of %a as a scanf flag in
12494 C99 mode.
12495
12496 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
12497
12498 * c-common.c (scan_char_table): Add 'w' to flags for all formats
12499 except 'n'.
12500 (check_format_info): Set 'wide' for scanf format widths. Warn for
12501 a zero scanf width. Make the check for writing into a constant
12502 object at the first level of indirection; at later levels, warn if
12503 any type qualifiers are encountered.
12504
12505 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
12506
12507 * reload.c (reload_inner_reg_of_subreg): New function broken out of
12508 push_reload.
12509 (push_reload): Use reload_inner_reg_of_subreg.
12510 (combine_reloads): Do not combine reloads if the input reload
12511 is a SUBREG in which the inner part will need reloading.
12512
12513 * global.c (global_alloc): Avoid passing dumpfile argument to
12514 reload routines.
12515 * toplev.c (rest_of_compilation): Likewise.
12516 * reload.h (reload): Remove dumpfile argument. Callers changed.
12517 (debug_reload, debug_reload_to_stream): Move prototypes here.
12518 * rtl.h (reload): Remove dumpfile argument.
12519 * reload.c (debug_reload): Remove prototype.
12520 (debug_reload_to_stream): Likewise.
12521 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
12522 instead.
12523
12524 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
12525
12526 * diagnostic.c (context_as_prefix): Export.
12527 (need_error_newline): Remove.
12528 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
12529 (error_module_changed, record_last_error_module,
12530 error_function_changed, record_last_error_function): New functions.
12531 (initialize_diagnostics): Default intialize
12532 lang_diagnostic_starter, lang_diagnostic_finalizer.
12533 (init_output_buffer): Tweak.
12534 (file_name_as_prefix): New function.
12535 (announce_function, default_print_error_function,
12536 report_error_function, set_diagnostic_context): Tweak.
12537
12538 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
12539
12540 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
12541 condition expression.
12542
12543 2000-08-20 Richard Henderson <rth@cygnus.com>
12544
12545 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
12546
12547 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
12548
12549 * cppinit.c (cpp_init): Set global flag when called.
12550 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
12551
12552 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
12553
12554 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
12555 before `process_directive' so that newlines won't be missed
12556 for directives.
12557 (cpp_printf): Increment `print->lineno' when newline is emitted.
12558
12559 * cppmain.c (cb_ident): Likewise.
12560 (cb_define): Likewise.
12561 (cb_undef): Likewise.
12562 (cb_include): Likewise.
12563 (cb_def_pragma): Likewise.
12564 (dump_macros_helper): Likewise.
12565
12566 2000-08-20 Richard Henderson <rth@cygnus.com>
12567
12568 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
12569 assigned before a loop.
12570
12571 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
12572 (ashrsi3, lshrsi3): Likewise.
12573
12574 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
12575
12576 * c-lang.c: #include diagnostic.h
12577 (c_tree_printer): New function.
12578 (lang_init): Initialize lang_printer.
12579
12580 * Makefile.in (c-lang.o): Depends on diagnostic.h
12581
12582 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
12583
12584 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
12585
12586 * diagnostic.c (default_diagnostic_starter,
12587 default_diagnostic_finalizer): New functions.
12588 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
12589 (pedwarn, pedwarn_with_file_and_line, error,
12590 error_with_file_and_line, fatal, warning,
12591 warning_with_file_and_line): Adjust call to report_diagnostic.
12592 (report_diagnostic): Rework.
12593 (set_diagnostic_context): New function.
12594
12595 * diagnostic.h (struct diagnostic_context): New data structure.
12596 (diagnostic_message, diagnostic_argument_list,
12597 diagnostic_file_location, diagnostic_line_location,
12598 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
12599 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
12600 (set_diagnostic_context): Declare.
12601 (report_diagnostic): Change prototype.
12602
12603 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
12604
12605 * fix-header.c (main): Initialize cpplib.
12606
12607 2000-08-19 Michael Meissner <meissner@redhat.com>
12608
12609 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
12610 instructions in it before checking for indirect jumps.
12611
12612 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
12613 in a indirect jump as a potential for conditional execution.
12614
12615 * d30v.h (d30v_init_expanders): Don't declare here.
12616 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
12617 prototype.
12618
12619 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
12620
12621 * cpp.texi: Add @section for assertions.
12622
12623 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
12624
12625 * loop.c (scan_loop): Use CONST_CALL_P instead of
12626 checking for REG_LIBCALL / REG_RETVAL.
12627
12628 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
12629
12630 * reload1.c (reload_as_needed): Accept dumpfile argument,
12631 pass it to emit_reload_insns.
12632 (emit_reload_insns): Add new dumpfile argument. If non-null
12633 then dump the reloads for each insn into the dumpfile.
12634 (reload): Pass dumpfile to reload_as_needed.
12635
12636 * invoke.texi: Clean up linux-gnu vs linux comments.
12637
12638 2000-08-19 Richard Henderson <rth@cygnus.com>
12639
12640 * config/ia64/ia64.c (reg_or_5bit_operand): New.
12641 (ia64_depz_field_mask): New.
12642 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
12643 (PREDICATE_CODES): Update.
12644 * config/ia64/ia64.md: Update commentary.
12645 (depz_internal): New.
12646 (ashlsi3): Implement directly.
12647 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
12648 (ashldi3): Use shladd.
12649 * config/ia64/ia64-protos.h: Update.
12650
12651 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
12652
12653 * toplev.c (independent_decode_option): Always process -g.
12654 Remove third argument, now unused. Adjust caller to match.
12655
12656 2000-08-18 Richard Henderson <rth@cygnus.com>
12657
12658 * combine.c (make_compound_operation): Break after creating
12659 the extraction.
12660
12661 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
12662
12663 * cpplib.c (cpp_register_pragma_space): Just return if the
12664 namespace is already registered.
12665
12666 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
12667
12668 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
12669 constant amount. Do not generate ROTL instruction.
12670
12671 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
12672
12673 * config/sh/elf.h: Do not include sh/sh.h.
12674 * config/sh/rtems.h: Likewise.
12675 * config/sh/rtemself.h: Do not include sh/elf.h.
12676 * configure.in: Get them included with `tm_file's.
12677 * configure: Rebuilt.
12678
12679 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
12680 * config/sh/sh.c (fpscr_set_from_mem): Use them.
12681
12682 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12683
12684 * stor-layout.c (compute_record_type): Don't use mode of single
12685 field as mode of record if not integer mode of same type.
12686
12687 * regmove.c (perhaps_ends_bb_p): New function.
12688 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
12689 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
12690 (fixup_match_1): Likewise.
12691 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
12692 avoid signed/unsigned warnings.
12693
12694 * function.c (fixup_var_refs_1, case MEM): Update CODE after
12695 updating X.
12696
12697 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
12698
12699 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
12700 (_cpp_trigraph_map): Declaration moved from cpplex.c
12701
12702 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
12703 instead of 256. Use consistent test for designated initializers.
12704 (cpp_init): Initialize trigraph_map.
12705 (initialize_standard_includes, parse_option): Use memcmp
12706 instead of strncmp.
12707
12708 * cpplex.c (init_trigraph_map): Remove.
12709 (trigraph_ok, trigraph_replace, lex_line): Refer to
12710 _cpp_trigraph_map.
12711
12712 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
12713 (do_unassert): Remove unused "next" local.
12714
12715 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
12716
12717 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
12718
12719 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
12720 insn.
12721
12722 2000-08-17 Richard Henderson <rth@cygnus.com>
12723
12724 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
12725 the first insn in a sequence.
12726
12727 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
12728
12729 * alias.c (true_dependence, write_dependence_p): A read
12730 involving a label_ref or the constant pool doesn't create
12731 a dependency.
12732
12733 * rtl.h (unchanging): Improve documentation.
12734
12735 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
12736
12737 * cse.c (insert_regs): Remove unused `regno'.
12738
12739 2000-08-17 Neil Booth <NeilB@earthling.net>
12740
12741 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
12742 remove_dup_dirs. If qtail == brack, remove brack not
12743 qtail.
12744 (remove_dup_dir, remove_dup_dirs): New functions.
12745
12746 2000-08-17 Neil Booth <NeilB@earthling.net>
12747
12748 * cppinit.c (cpp_cleanup): Free include dir chains.
12749 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
12750 (do_unassert): Free the assert with _cpp_free_definition.
12751 * cppmacro.c (_cpp_free_definition): Free memory allocated for
12752 assertions. Make the node a T_VOID node.
12753
12754 2000-08-17 Neil Booth <NeilB@earthling.net>
12755
12756 * cppinit.c (path_include, append_include_chain):
12757 Remove 2nd parameter (struct cpp_pending *).
12758 (path_include, initialize_standard_includes, cpp_handle_option):
12759 Update callers appropriately.
12760 (cpp_handle_option): Use pend.
12761
12762 2000-08-17 Neil Booth <NeilB@earthling.net>
12763
12764 * cppinit.c (sort_options): Remove, put functionality in
12765 cpp_init.
12766 (cpp_init): New.
12767 (initialize_builtins): Free memory.
12768 (cpp_start_read): Move init_IStable to cpp_init.
12769
12770 * cpplib.h (cpp_init): New prototype.
12771 * cppmain.c (main): Call cpp_init.
12772
12773 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
12774
12775 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
12776 (rtx_unstable_p, rtx_varies_p): Process vectors.
12777
12778 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
12779
12780 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
12781 references to GLOBAL symbols. Use LOCAL where appropriate.
12782
12783 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12784
12785 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
12786 use t-aix41 when host == target.
12787
12788 2000-08-16 Richard Henderson <rth@cygnus.com>
12789
12790 * reload.c (push_secondary_reload): Revert last change.
12791 If we use a reload_in/out pattern, make the when the same
12792 as the primary reload.
12793 (find_reloads): Likewise.
12794
12795 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
12796
12797 * configure.in (libstdcxx-v3): Fix test.
12798 * configure: Regenerate.
12799
12800 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12801
12802 * calls.c (calls_function_1, expand_call): Only test
12803 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
12804 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12805
12806 2000-08-16 Richard Henderson <rth@cygnus.com>
12807
12808 * combine.c (simplify_shift_const): Revert previous two
12809 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
12810 before the main loop.
12811
12812 2000-08-15 Richard Henderson <rth@cygnus.com>
12813
12814 * combine.c (simplify_shift_const): Bound shift count when
12815 combining shifts.
12816
12817 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12818
12819 * calls.c (ECF_SP_DEPRESSED): New macro.
12820 (calls_function_1): Treat calling sp-depressed function as alloca.
12821 (emit_call_1): Don't adjust SP if calling sp-depressed function.
12822 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
12823 If sp-depressed, ensure block saves and restores SP.
12824 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
12825 for INTEGER_TYPE.
12826 * function.c (keep_stack_depressed): New function.
12827 (thread_prologue_and_epilogue_insns): Call it.
12828 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
12829 to print DECL_OFFSET_ALIGN.
12830 Print no-force-blk and transparent-union flags properly.
12831 * stmt.c (expand_goto_internal): Don't restore stack if last block
12832 and function returns with sp depressed.
12833 (fixup_gotos): Likewise.
12834 (save_stack_pointer): New function, from code in expand_decl.
12835 (expand_decl): Call new function.
12836 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
12837 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
12838 (save_stack_pointer): New declaration.
12839
12840 * diagnostic.c (fatal_function): New variable.
12841 (set_fatal_function): New function.
12842 (fatal): Call it.
12843 * diagnostic.h (set_fatal_function): New declaration.
12844
12845 2000-08-15 William Cohen <wcohen@redhat.com>
12846
12847 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
12848 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
12849 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
12850
12851 2000-08-15 Richard Henderson <rth@cygnus.com>
12852
12853 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
12854
12855 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
12856
12857 * arm.c (arm_function_ok_for_sibcall): New function.
12858 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
12859 * arm.md (call expanders): Don't check here for calls that can't
12860 be sibling calls.
12861
12862 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
12863
12864 * arm.md (splits generating cond_exec): Disable.
12865
12866 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
12867
12868 * arm/linux-elf.h (text_section): Delete declaration.
12869
12870 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
12871
12872 ARM support for unordered FP operations.
12873 * arm-protos.h (arm_comparison_operator): Declare.
12874 * arm.c (arm_comparison_operator): New function.
12875 (arm_select_cc_mode): Add unordered comparison codes.
12876 (get_arm_condition_code): Likewise.
12877 (arm_final_prescan_insn): Can't handle unordered jumps that can't
12878 be done in one insn.
12879 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
12880 * arm.md (all uses of comparison_operator): Replace with
12881 arm_comparison_operator.
12882 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
12883 expands.
12884 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
12885 patterns.
12886
12887 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12888
12889 * gthr-posix.h: Conditionally include <sched.h>; include
12890 <config.h> from libobjc/.
12891
12892 2000-08-14 Richard Henderson <rth@cygnus.com>
12893
12894 * config/i386/i386.c (legitimize_pic_address): Use Pmode
12895 for all CONSTs.
12896
12897 2000-08-14 Richard Henderson <rth@cygnus.com>
12898
12899 * configure.in (ia64-*): Set float_format for i386 long double.
12900
12901 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
12902 as we would for i386 XFmode.
12903 (PUT_REAL): Likewise.
12904 (endian, ereal_atof, real_value_truncate): Likewise.
12905 (ereal_isneg, toe64, etens, make_nan): Likewise.
12906 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
12907
12908 * config/ia64/ia64-protos.h: Update.
12909 * config/ia64/ia64.c (general_tfmode_operand): New.
12910 (destination_tfmode_operand): New.
12911 (tfreg_or_fp01_operand): New.
12912 (ia64_split_timode): New.
12913 (spill_tfmode_operand): New.
12914 (ia64_expand_prologue): Use TFmode not XFmode.
12915 (ia64_expand_epilogue): Likewise.
12916 (ia64_function_arg): Likewise.
12917 (ia64_function_arg_advance): Likewise.
12918 (ia64_return_in_memory): Likewise.
12919 (ia64_function_value): Likewise.
12920 (ia64_print_operand): Likewise.
12921 (ia64_register_move_cost): Set GR<->FR to 5.
12922 (ia64_secondary_reload_class): Get GR for TImode memory op.
12923 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
12924 (ROUND_TYPE_ALIGN): Remove.
12925 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
12926 (INTEL_EXTENDED_IEEE_FORMAT): Define.
12927 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
12928 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
12929 (MODES_TIEABLE_P): Use TFmode, not XFmode.
12930 (CLASS_MAX_NREGS): Likewise.
12931 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
12932 (PREDICATE_CODES): Update.
12933 * config/ia64/ia64.md (movti): New.
12934 (movti_internal): Use a clobber for memory alternatives.
12935 (reload_inti, reload_outti): New.
12936 (movsfcc_astep): Predicate properly.
12937 (movdfcc_astep): Likewise.
12938 (movxf): Remove.
12939 (movtf): New.
12940 (extendsftf2, extenddftf2): New.
12941 (trunctfsf2, trunctfdf2): New.
12942 (floatditf2, fix_trunctfdi2): New.
12943 (floatunsditf2, fixuns_trunctfdi2): New.
12944 (addtf3, subtf3, multf3, abstf2): New.
12945 (negtf2, nabstf2, mintf3, maxtf3): New.
12946 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
12947 (cmptf): New.
12948 (fr_spill): Use TFmode, not XFmode.
12949 (fr_restore): Likewise.
12950 * config/ia64/lib1funcs.asm (__divtf3): New.
12951 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
12952
12953 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12954
12955 * cse.c (fold_rtx): Avoid empty body in an if-statement.
12956
12957 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
12958 `U' integer constant suffix.
12959
12960 * dwarf2out.c (add_subscript_info): Avoid empty body in an
12961 else-statement.
12962
12963 * sparc/sol2.h (__enable_execute_stack): Prototype.
12964
12965 2000-08-14 David Edelsohn <edelsohn@gnu.org>
12966
12967 * collect2.c: Remove use of AIX import file.
12968
12969 * longlong.h: Test ARCH_PWR not ARCH_POWER.
12970
12971 * rs6000.c (print_operand, case 'E'): Add else.
12972
12973 2000-08-14 Richard Henderson <rth@cygnus.com>
12974
12975 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
12976 (movdi_symbolic): New.
12977
12978 2000-08-14 Jim Wilson <wilson@cygnus.com>
12979
12980 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
12981 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
12982 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
12983 to GNU as.
12984
12985 2000-08-14 Richard Henderson <rth@cygnus.com>
12986
12987 * expr.c (emit_group_load): Don't force constants into registers.
12988 Special case source already in the correct mode.
12989
12990 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
12991
12992 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
12993 * fixinc/inclhack.def: Likewise.
12994 * fixinc/mkfixinc.sh: Likewise.
12995 * configure: Regenerate.
12996 * fixinc/fixincl.x: Regenerate.
12997 * install.texi: Document equivalence of linux and linux-gnu.
12998
12999 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13000
13001 * cse.c (insert_regs): Also in REG case: When finding an invalid
13002 value, and we make a new quantity, make sure that it won't be
13003 mistaken by for a valid one by mention_regs.
13004
13005 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
13006
13007 * h8300.md: Remove obsolete peepholes.
13008
13009 2000-08-13 Kazu Hirata <kazu@hxi.com>
13010
13011 * invoke.texi (H8/300 Options): Fix typos.
13012 * config/h8300.c: Fix formatting.
13013 * config/h8300.h: Fix comment typos.
13014 (OVERRIDE_OPTIONS): Fix formatting.
13015
13016 * function.c: Fix formatting.
13017
13018 * cse.c: Fix formatting.
13019
13020 2000-08-13 Geoff Keating <geoffk@cygnus.com>
13021
13022 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
13023 (attempt_auto_inc): Suppress parentheses warning.
13024 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
13025 * loop.c (load_mems): Remove `u' suffix in two places.
13026 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
13027 hex constants.
13028 * config/rs6000/rs6000.h: Likewise.
13029 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
13030 __eabi dummy routine.
13031 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
13032 variable `buf_ptr'.
13033
13034 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
13035 not put stuff in .sdata unnecessarily.
13036 (rs6000_unique_section): New function.
13037 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
13038 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
13039
13040 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
13041 arrays in C99. Don't try to look at DECL_REGISTER of a
13042 COMPONENT_REF. Don't complain twice about the same error.
13043
13044 * fixinc/inclhack.def (aix_pthread): New fix.
13045 (aix_sysmachine): New fix.
13046 * fixinc/fixincl.x: Regenerate.
13047
13048 * expr.c (expand_expr): Call convert_modes when turning a large
13049 multiply into a small one.
13050
13051 2000-08-12 Geoff Keating <geoffk@cygnus.com>
13052
13053 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
13054 the tree structure an exponent rather than an explicit alignment
13055 so it doesn't overflow.
13056 (SET_DECL_OFFSET_ALIGN): New macro.
13057 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
13058 rather than DECL_OFFSET_ALIGN.
13059 (place_field): Likewise.
13060 * expmed.c (store_bit_field): Abort on align==0 to avoid
13061 antisocial machine behaviour.
13062
13063 2000-08-12 Richard Henderson <rth@cygnus.com>
13064
13065 * sibcall.c (uses_addressof): Accept both addressof and
13066 current_function_internal_arg_pointer inside a mem.
13067 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
13068 if current_function_uses_addressof.
13069 * stmt.c (expand_return): Kill tail recursion and HAVE_return
13070 optimizations.
13071
13072 2000-08-11 Richard Henderson <rth@cygnus.com>
13073
13074 * config/ia64/ia64.md (addsi3): Remove expander.
13075 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
13076 (*addsi3_shladd): New.
13077
13078 2000-08-11 Richard Henderson <rth@cygnus.com>
13079
13080 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
13081 (do_restore): Likewise.
13082 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
13083 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
13084 (rtx_needs_barrier): Track actual bit manipulation for
13085 ar.unat moves, gr_spill, and gr_restore.
13086 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
13087 (process_set): Don't handle varargs spills.
13088 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
13089 .mem.offset here instead of in process_set.
13090 (gr_restore): Likewise.
13091
13092 2000-08-11 Richard Henderson <rth@cygnus.com>
13093
13094 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
13095
13096 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
13097
13098 * gcc.texi (The Configuration File): Document
13099 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
13100 UPDATE_PATH_HOST_CANONICALIZATION.
13101
13102 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13103
13104 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
13105 unprototyped function pointer casts on integer constants.
13106
13107 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
13108
13109 * fixproto: Recognize DOS paths with drive letters as absolute paths.
13110
13111 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
13112
13113 * extend.texi (Volatiles): Fix typos.
13114
13115 2000-08-11 Kazu Hirata <kazu@hxi.com>
13116
13117 * flow.c: Fix formatting.
13118
13119 2000-08-11 Richard Henderson <rth@cygnus.com>
13120
13121 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
13122 pattern, always allocate a tertiary scratch register.
13123
13124 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
13125 (reload_inhi): Likewise.
13126
13127 2000-08-11 Richard Henderson <rth@cygnus.com>
13128
13129 * function.c (put_reg_into_stack): Allow type to be NULL.
13130 (schedule_fixup_var_refs): Likewise.
13131 (gen_mem_addressof): Allow decl to be NULL.
13132 (put_addressof_into_stack): Likewise.
13133
13134 * flow.c (merge_blocks_nomove): Be more careful about
13135 locating the beginning of block A.
13136
13137 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
13138
13139 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
13140
13141 * configure.in:
13142 * configure:
13143 * gthr-posix.h:
13144 * config.in: Reverted the check for <sched.h>.
13145
13146 2000-08-10 Chris Demetriou <cgd@sibyte.com>
13147
13148 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
13149 macros define the name of CTOR and DTOR sections.
13150 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
13151 DTOR_LIST_END): Change to use attributes to specify
13152 sections.
13153 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
13154 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
13155 DTOR_LIST_END): Same as in mips/elf.h.
13156
13157 2000-08-10 Drew Moseley <dmoseley@redhat.com>
13158
13159 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
13160 disabling just crt0.o.
13161
13162 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
13163
13164 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
13165 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
13166 (EXTRA_SPECS): Add them.
13167 * arm/lib1funcs.asm: Support builds for interworking.
13168 Use macros to eliminate duplicated pieces of code.
13169
13170 2000-08-10 Kazu Hirata <kazu@hxi.com>
13171
13172 * h8300.c (expand_a_rotate): New.
13173 (emit_a_rotate): Likewise.
13174 (h8300_adjust_insn_length): Add support for the rotate insns.
13175 * h8300.md (rotlqi3): New.
13176 (*rotlqi3_1): Likewise.
13177 (rotlhi3): Likewise.
13178 (*rotlhi3_1): Likewise.
13179 (rotlhi3): Likewise.
13180 (*rotlhi3_1): Likewise.
13181 * h8300-proto.h: Add prototypes for expand_a_rotate and
13182 emit_a_rotate.
13183
13184 * h8300.c: Fix comment typos.
13185 (dosize): Declare the variable amount as unsigned.
13186 (get_shift_alg): Fix a comparison between signed and unsigned.
13187 (emit_a_shift): Likewise.
13188 (h8300_adjust_insn_length): Simplify the code.
13189
13190 * c-decl.c: Fix formatting.
13191
13192 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13193
13194 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
13195 warning about non-traditional numeric constant suffixes.
13196
13197 * cppexp.c (parse_number): Likewise.
13198
13199 * invoke.texi: (-Wtraditional): Document new behavior.
13200
13201 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
13202
13203 * gthr-posix.h: Include auto-host.h. Conditionally include
13204 <sched.h>.
13205 * configure.in: Check for the <sched.h> header file.
13206 * config.in: Added define for HAVE_SCHED_H.
13207
13208 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13209
13210 * c-typeck.c (process_init_element): For -Wtraditional, warn about
13211 initialization of unions.
13212
13213 * invoke.texi (-Wtraditional): Document new behavior.
13214
13215 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
13216
13217 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
13218 instead of extra_c_flags.
13219 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
13220 * configure: Regenerate.
13221 * config.in: Regenerate.
13222
13223 * cpperror.c (cpp_type2name): New function.
13224 * cpplex.c (lex_line): If we issued an error for an invalid
13225 preprocessing directive, discard that logical line.
13226 * cpplib.c (do_line): Call a hook function if the current file
13227 is renamed by #line.
13228 (do_ident): Pass the contents of the string, not the entire
13229 token, to the callback function.
13230 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
13231 (cb.rename_file): New hook function.
13232 (cb.ident): Adjust prototype.
13233 (cpp_type2name): Prototype.
13234 * cppmacro.c (dump_macro_args): Correct precedence lossage.
13235
13236 * cppmain.c (cb_ident): Update for changed interface.
13237 (cb_rename_file): New function.
13238 (main): Set rename callback.
13239
13240 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
13241
13242 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
13243 multi-word registers.
13244
13245 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
13246
13247 * c-common.c (combine_strings, check_format_info): Refer to ISO C
13248 or ISO C89 instead of ANSI C.
13249 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
13250 build_enumerator, do_case): Likewise.
13251 * c-lex.c (parse_float, yylex): Likewise.
13252 * c-parse.in: Likewise.
13253 * c-typeck.c (common_type, build_array_ref, build_binary_op,
13254 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
13255 build_c_cast, convert_for_assignment, set_init_index,
13256 set_init_label, c_expand_start_case): Likewise.
13257 * toplev.c (documented_lang_options, display_help): Likewise.
13258
13259 2000-08-08 Kazu Hirata <kazu@hxi.com>
13260
13261 * h8300.c: Fix formatting.
13262 * h8300.h: Likewise.
13263 * h8300.md: Likewise.
13264 (movsi_h8300hs): Fix formatting of the resulting assembly code.
13265
13266 * reload1.c: Fix formatting.
13267
13268 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
13269
13270 * alpha/alpha.c (alpha_emit_xfloating_libcall):
13271 Use GEN_CALL_VALUE define.
13272 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
13273 * clipper/clipper.md (untyped_call): Likewise.
13274 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
13275 * fx80/fx80.md (untyped_call): Likewise.
13276 * mips/mips.md (untyped_call): Likewise.
13277 * ns32k/ns32k.md (untyped_call): Likewise.
13278 * pa/pa.md (untyped_call): Likewise.
13279 * romp/romp.md (untyped_call): Likewise.
13280 * sparc/sparc.md (untyped_call): Likewise.
13281
13282 2000-08-08 Jason Eckhardt <jle@cygnus.com>
13283
13284 * config/i860/i860.c (singlemove_string): Do not generate assembler
13285 pseudo instructions that must be expanded (that is, with signed
13286 constants larger than 16 bits).
13287
13288 2000-08-08 Richard Henderson <rth@cygnus.com>
13289
13290 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
13291 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
13292 (init_propagate_block_info): Don't kill memory stores at -O0.
13293 (mark_set_1, mark_used_regs): Likewise.
13294
13295 2000-08-08 David Edelsohn <edelsohn@gnu.org>
13296
13297 * rs6000.c (optimization_options): Decorate 'level' as
13298 ATTRIBUTE_UNUSED.
13299 (mask64_operand): Remove sign-extend thinko.
13300 (rldic_operand): New function.
13301 (load_multiple_operation): regno's are unsigned ints.
13302 (store_multiple_operation): Likewise.
13303 (lmw_operation): Likewise.
13304 (stmw_operation): Likewise.
13305 (includes_lshift_p): shift_mask is unsigned int.
13306 (includes_lshift64_p): New function.
13307 (addrs_ok_for_quad_peep): unsigned int reg1.
13308 (print_operand): Consistently add "else" after
13309 output_operand_lossage().
13310 (print_operand, case 'b'): Fold in case 'W'.
13311 (print_operand, case 'W'): Print rldic MB value.
13312 (output_epilogue): Update Objective-C language string.
13313 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
13314 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
13315 * rs6000.md (ashldi3): Add rldic instruction.
13316 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
13317 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
13318 modifier.
13319
13320 2000-08-08 Richard Henderson <rth@cygnus.com>
13321
13322 * config/ia64/ia64-protos.h: Remove duplicates. Update
13323 for massive code rearrangements.
13324 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
13325 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
13326 (ia64_local_regs, ia64_need_regstk): Remove.
13327 (ar_ccv_reg_operand): New.
13328 (ia64_gp_save_reg): New.
13329 (struct ia64_frame_info): Combine most of the size elements;
13330 add new gr save elements.
13331 (find_gr_spill): New.
13332 (next_scratch_gr_reg): New.
13333 (mark_reg_gr_used_mask): New.
13334 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
13335 to GR backing store regs when possible.
13336 (ia64_initial_elimination_offset): New.
13337 (ia64_rap_fp_offset): Remove.
13338 (save_restore_insns): Remove.
13339 (setup_spill_pointers): New.
13340 (finish_spill_pointers): New.
13341 (spill_restore_mem): New.
13342 (do_spill, do_restore): New.
13343 (ia64_expand_prologue): Rewrite to use them.
13344 (ia64_expand_epilogue): Likewise.
13345 (ia64_direct_return): Update for current_frame_info changes.
13346 (ia64_function_prologue): Simplify .prologue emission. Emit
13347 .spill when needed.
13348 (ia64_setup_incoming_varargs): Don't ever emit rtl.
13349 (ia64_dbx_register_number): New.
13350 (ia64_initialize_trampoline): New.
13351 (ia64_secondary_reload_class): Request GR_REGS for integer
13352 arithmetic destined for FR_REGS.
13353 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
13354 (ia64_mark_machine_status): Mark ia64_gp_save.
13355 (rws_access_regno): Rename from rws_access_reg; don't treat
13356 predicates specially.
13357 (rws_access_reg): New. Update all callers.
13358 (rtx_needs_barrier): Remove dead unspecs.
13359 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
13360 (ia64_encode_section_info): Silence signed/unsigned warnings.
13361 (spill_offset, sp_offset, spill_offset_emitted): Remove.
13362 (tmp_reg, tmp_saved): Remove.
13363 (process_set): Rewrite to expect complicated bits via
13364 REG_FRAME_RELATED_EXPR.
13365 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
13366 in the use of ar.ccv; never set RTX_UNCHANGING_P.
13367 (ia64_expand_op_and_fetch): Likewise.
13368 (ia64_expand_compare_and_swap): Likewise.
13369 (ia64_expand_builtin): Likewise.
13370 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
13371 (FIRST_PSEUDO_REGISTER): Update.
13372 (AR_M_REGNO_P): Update.
13373 (FIXED_REGS): Don't mark three local registers as used.
13374 (EXTRA_CC_MODES): New.
13375 (SELECT_CC_MODE): New.
13376 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
13377 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
13378 (FRAME_GROWS_DOWNWARD): Unset.
13379 (STARTING_FRAME_OFFSET): Zero.
13380 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
13381 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
13382 (HARD_FRAME_POINTER_REGNUM): New.
13383 (CAN_DEBUG_WITHOUT_FP): Define.
13384 (TRAMPOLINE_TEMPLATE): Remove.
13385 (TRAMPOLINE_SIZE): Lower to 32.
13386 (TRAMPOLINE_ALIGNMENT): Lower to 64.
13387 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
13388 (PREDICATE_CODES): Update.
13389 (struct machine_function): Add ia64_gp_save.
13390 * config/ia64/ia64.md: Purge unused unspecs.
13391 (movsi patterns): Allow moves to/from AR_M_REGS.
13392 (movdi patterns): Allow moves to/from p0.
13393 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
13394 (gr_spill, gr_restore): Indicate ar.unat read/written.
13395 (nonlocal_goto): Don't pass old frame_pointer.
13396 (nonlocal_goto_receiver): Remove.
13397 (exception_receiver): New.
13398 (builtin_setjmp_setup): New.
13399 (builtin_setjmp_receiver): New.
13400 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
13401 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
13402 (__ia64_restore_stack_nonlocal): Likewise.
13403 (__ia64_trampoline): New.
13404 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
13405 function.
13406 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
13407
13408 2000-08-08 Richard Henderson <rth@cygnus.com>
13409
13410 * frame.h (ia64_frame_state): Add my_psp.
13411 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
13412 (__throw): Pass it in. Don't clobber r7.
13413 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
13414 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
13415 and nothing to do with sp.
13416 (normalize_reg_loc): Use frame->my_psp.
13417 (frame_translate): Handle frame-pointer-less functions. Set
13418 spill_base correctly, in absence of being told.
13419 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
13420 (__ia64_backtrace_helper): New sp argument. Use
13421 builtin_return_address instead of label addresses.
13422 (print_record) [mem_stack_v]: No size member.
13423
13424 2000-08-08 Richard Henderson <rth@cygnus.com>
13425
13426 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
13427
13428 2000-08-08 Richard Henderson <rth@cygnus.com>
13429
13430 * tm.texi (LOCAL_REGNO): Document.
13431 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
13432 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
13433 * reload1.c (reload): Likewise when considering nonlocal labels.
13434
13435 * config/ia64/ia64.h (LOCAL_REGNO): New.
13436 * config/sparc/sparc.h (LOCAL_REGNO): New.
13437
13438 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
13439
13440 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
13441
13442 2000-08-07 Nick Clifton <nickc@redhat.com>
13443
13444 * config/mips/mips.c: Fix compile time warning messages.
13445 * config/mips/mips-protos.h: Add prototype for equality_op.
13446
13447 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
13448
13449 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
13450
13451 * mn10300.md: Use nonimmediate_operand instead of general_operand
13452 on output operands.
13453
13454 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
13455
13456 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
13457
13458 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
13459 * sh.c (expand_block_move): Break long lines.
13460 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
13461 * sh.md (mulsi3): Likewise.
13462 (movdi): Adjust spacing.
13463
13464 2000-08-07 Richard Henderson <rth@cygnus.com>
13465
13466 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
13467 * expr.c (emit_group_store): Don't set it.
13468
13469 2000-08-07 Kazu Hirata <kazu@hxi.com>
13470
13471 * invoke.texi (Options for Debugging Your Program or GCC): Remove
13472 duplicate entries for 'w' and 'z'.
13473
13474 * flow.c: Fix a comment typo.
13475
13476 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
13477
13478 * c-parse.in: Changed the language string for Objective-C to "GNU
13479 Objective-C".
13480
13481 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
13482
13483 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
13484 to improve the Posix thread support for Objective-C.
13485
13486 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
13487
13488 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
13489 CTI_UNSIGNED_PTRDIFF_TYPE.
13490 (signed_size_type_node): Define.
13491 (unsigned_ptrdiff_type_node): Define.
13492 * c-decl.c (init_decl_processing): Create the
13493 signed_size_type_node and unsigned_ptrdiff_type_node types.
13494 * c-common.c (T_SC): Define.
13495 (T_SST): Define.
13496 (T_UPD): Define.
13497 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
13498 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
13499 %s and %p.
13500 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
13501 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
13502 flags for %c, %s and %[.
13503 (check_format_info): Only allow leniency for signedness of targets
13504 of character pointers (when pedantic) for formats flagged with
13505 "c", so for strings but not for %hh formats. When pedantic, don't
13506 allow character pointers to substitute for void pointers if a
13507 second level of indirection is present.
13508
13509 2000-08-06 Kazu Hirata <kazu@hxi.com>
13510
13511 * invoke.texi (Options for Debugging Your Program or GCC): Update
13512 the names of dump files.
13513
13514 * h8300.c (dosize): Rearrange code for conciseness.
13515 (split_adds_subs): Likewise.
13516
13517 * loop.c: Fix formatting.
13518
13519 * dwarf2out.c: Fix formatting.
13520
13521 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
13522
13523 * expr.c: Fix formatting.
13524
13525 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13526
13527 * rs6000.c (rs6000_maybe_dead): Prototype.
13528
13529 2000-08-06 Richard Henderson <rth@cygnus.com>
13530
13531 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
13532 HAVE_nonlocal_goto as well.
13533 * config/i960/i960.md (nonlocal_goto): Don't do it here.
13534 * config/pj/pj.md (nonlocal_goto): Likewise.
13535
13536 2000-08-07 Michael Hayes <mhayes@cygnus.com>
13537
13538 * loop.c (try_swap_copy_prop): New function.
13539 (load_mems): Rename copies to load_copies and add new regset
13540 store_copies. Check for sets of shadow registers and mark
13541 in store_copies. Call try_swap_copy_prop for registers
13542 marked in store_copies.
13543
13544 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
13545
13546 * objc/objc-act.c: New command line option -fconstant-string-class
13547 to allow specifying a user defined constant string class,
13548 different from NXConstantString.
13549
13550 * toplev.c: Moved the Objective-C specific options to
13551 objc/lang-options.h.
13552
13553 * objc/lang-options.h: Moved the Objective-C specific options from
13554 toplev.c. Added -fconstant-string-class.
13555
13556 2000-08-05 Chris Demetriou <cgd@sibyte.com>
13557
13558 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
13559 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
13560 __CTOR_LIST__ from func_ptr array to just func_ptr, to
13561 avoid extra alignment imposed on arrays.
13562 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
13563 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
13564
13565 * mips.h: Clean up comments and spacing near MASKs.
13566 (TARGET_UNIX_ASM): Delete.
13567 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
13568 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
13569 values contiguous.
13570
13571 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
13572
13573 * c-common.c (print_char_table): Add entries for the X/Open '
13574 format flag (print decimals with locale's thousands grouping
13575 character). Make %C expect wint_t.
13576 (check_format_info): If pedantic, warn when the %n$ operand
13577 number form is used. Allow for the ' flag; warn about it if
13578 pedantic.
13579
13580 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
13581
13582 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
13583 type is a float mode, cfun->decl's return type is not, and
13584 TARGET_FLOAT_RETURNS_IN_80387.
13585
13586 2000-08-04 Andreas Schwab <schwab@suse.de>
13587
13588 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
13589 token list, which are always `#' and `pragma'.
13590
13591 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
13592
13593 * tree.c (tree_expr_nonnegative_p): Move to...
13594 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
13595 (rtl_expr_nonnegative_p): New.
13596 * tree.h: Add prototype for rtl_expr_nonnegative_p.
13597
13598 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
13599 CONST_DOUBLE_CHAIN: Move to...
13600 * rtl.h: ...here. Use XCINT/XCEXP.
13601
13602 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
13603 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
13604 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
13605 to VOL_FILES.
13606
13607 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
13608
13609 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13610
13611 * config/c4x/c4x.md (return_indirect_internal): New.
13612 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
13613
13614 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
13615
13616 * c-common.c (time_char_table): Mark up formats added in C99 and
13617 make other corrections. %D and %g were added in C99. %Og is an
13618 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
13619 C99. %e was added in C99. %Oj is an extension. %G and %z are in
13620 C99 rather than GNU extensions, but %OG and %Oz are extensions.
13621 %h was added in C99. %C was added in C99. %OY and %OC are
13622 extensions. Add the C99 format %F.
13623 (check_format_info): If pedantic and not in C99 mode, warn for C99
13624 formats, %E and %O.
13625
13626 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13627
13628 * function.c (schedule_fixup_var_refs): New function, broken out
13629 of put_reg_into_stack.
13630 (put_reg_into_stack): Use it.
13631 (put_var_into_stack): In CONCAT case, fixup up references for
13632 components only after fixing up references to the whole concat.
13633
13634 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
13635
13636 * alias.c (mark_constant_function): Use INSN_P.
13637 (init_alias_analysis): Likewise.
13638 * combine.c (combine_instructions): Use INSN_P.
13639 (can_combine_p): Likewise.
13640 (try_combine): Likewise.
13641 (distribute_notes): Likewise.
13642 (distribute_links): Likewise.
13643 * cse.c (cse_around_loop): Use INSN_P.
13644 (invalidate_skipped_block): Likewise.
13645 (cse_set_around_loop): Likewise.
13646 (cse_end_of_basic_block): Likewise.
13647 (delete_trivially_dead_insns): Likewise.
13648 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
13649 (unshare_all_rtl_1): Likewise.
13650 (next_cc0_user): Likewise.
13651 (try_split make_insn_raw): Likewise.
13652 (remove_unnecessary_notes): Likewise.
13653 * final.c (shorten_branches): Use INSN_P.
13654 (leaf_renumber_regs): Likewise.
13655 (leaf_renumber_regs_insn): Likewise.
13656 * flow.c (find_label_refs): Use INSN_P.
13657 (verify_wide_reg): Likewise.
13658 (notice_stack_pointer_modification): Likewise.
13659 (count_or_remove_death_notes): Likewise.
13660 (verify_flow_info): Likewise.
13661 (clear_log_links): Likewise.
13662 * function.c (fixup_var_refs_insns): Use INSN_P.
13663 (compute_insns_for_mem): Likewise.
13664 * gcse.c (alloc_gcse_mem): Use INSN_P.
13665 (compute_sets): Likewise.
13666 (compute_hash_table): Likewise.
13667 (classic_gcse): Likewise.
13668 (cprop): Likewise.
13669 (insert_insn_end_bb): Likewise.
13670 (delete_null_pointer_checks_1): Likewise.
13671 * global.c (expand_preferences): Use INSN_P.
13672 (build_insn_chain): Likewise.
13673 * graph.c (node_data): Use INSN_P.
13674 * haifa-sched.c (priority): Use INSN_P.
13675 (rm_line_notes): Likewise.
13676 (rm_other_notes): Likewise.
13677 (find_insn_reg_weight): Likewise.
13678 (init_target_units): Likewise.
13679 (schedule_block): Likewise.
13680 (compute_block_forward_dependences): Likewise.
13681 (debug_dependencies): Likewise.
13682 (set_priorities): Likewise.
13683 * integrate.c (function_cannot_inline_p): Use INSN_P.
13684 (save_parm_insns): Likewise.
13685 (copy_insn_list): Likewise.
13686 * jump.c (mark_all_labels): Use INSN_P.
13687 (never_reached_warning): Likewise.
13688 * lcm.c (optimize_mode_switching): Use INSN_P.
13689 * local-alloc.c (validate_equiv_mem): Use INSN_P.
13690 (memref_used_between_p): Likewise.
13691 (update_equiv_regs): Likewise.
13692 (block_alloc): Likewise.
13693 (no_conflict_p): Likewise.
13694 * loop.c (scan_loop): Use INSN_P.
13695 (find_and_verify_loops): Likewise.
13696 (count_loop_regs_set): Likewise.
13697 (loop_reg_used_before_p): Likewise.
13698 (strength_reduce): Likewise.
13699 (recombine_givs): Likewise.
13700 (check_dbra_loop): Likewise.
13701 (load_mems): Likewise.
13702 (try_copy_prop): Likewise.
13703 * print-rtl.c (print_rtx): Use INSN_P.
13704 * recog.c (find_single_use): Use INSN_P.
13705 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
13706 (next_flags_user): Likewise.
13707 (swap_rtx_condition): Likewise.
13708 * regmove.c (mark_flags_life_zones): Use INSN_P.
13709 (optimize_reg_copy_1): Likewise.
13710 (optimize_reg_copy_2): Likewise.
13711 (optimize_reg_copy_3): Likewise.
13712 (reg_is_remote_constant_p): Likewise.
13713 (fixup_match_2): Likewise.
13714 (regmove_optimize): Likewise.
13715 (fixup_match_1): Likewise.
13716 * regrename.c (build_def_use): Use INSN_P.
13717 (replace_reg_in_block): Likewise.
13718 (consider_use): Likewise.
13719 * reload.c (find_equiv_reg): Use INSN_P.
13720 * reload1.c (reload): Use INSN_P.
13721 (maybe_fix_stack_asms): Likewise.
13722 (calculate_needs_all_insns): Likewise.
13723 (reload_as_needed): Likewise.
13724 (emit_output_reload_insns): Likewise.
13725 (delete_address_reloads_1): Likewise.
13726 (reload_cse_regs_1): Likewise.
13727 (reload_combine): Likewise.
13728 (reload_cse_move2add): Likewise.
13729 * reorg.c (redundant_insn): Use INSN_P.
13730 (dbr_schedule): Likewise.
13731 * resource.c (find_dead_or_set_registers): Use INSN_P.
13732 (mark_target_live_regs): Likewise.
13733 * rtlanal.c (reg_used_between_p): Use INSN_P.
13734 (reg_referenced_between_p): Likewise.
13735 (reg_set_between_p): Likewise.
13736 (reg_set_p): Likewise.
13737 (single_set): Likewise.
13738 (multiple_sets): Likewise.
13739 (find_last_value): Likewise.
13740 (reg_set_last): Likewise.
13741 (find_reg_note): Likewise.
13742 (find_regno_note): Likewise.
13743 * sibcall.c (sequence_uses_addressof): Use INSN_P.
13744 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
13745 * ssa.c (find_evaluations): Use INSN_P.
13746 (rename_block): Likewise.
13747 (rename_equivalent_regs): Likewise.
13748 * unroll.c (loop_find_equiv_value): Use INSN_P.
13749 (set_dominates_use): Likewise.
13750 * varasm.c (mark_constant_pool): Use INSN_P.
13751 (mark_constants): Likewise.
13752 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
13753 (alphaev4_next_group): Likewise.
13754 (alphaev5_next_group): Likewise.
13755 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
13756 (c4x_rptb_rpts_p): Likewise.
13757 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
13758 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
13759 (rs6000_adjust_priority): Likewise.
13760 * config/sh/sh.c (sh_loop_align): Use INSN_P.
13761 (machine_dependent_reorg): Likewise.
13762 (split_branches): Likewise.
13763 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
13764
13765 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
13766
13767 * combine.c (recog_for_combine): Remove the old notes
13768 prior to attempting to recognize the new pattern.
13769 (distribute_notes): Ignore REG_NONNEG notes.
13770
13771 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
13772
13773 * varasm.c (output_constructor): Add .align 0 for packed vars.
13774
13775 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
13776
13777 * configure.in: Use default thread_file even when enable_threads is
13778 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
13779 * configure: Rebuilt.
13780
13781 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
13782
13783 2000-08-04 Donn Terry (donnte@microsoft.com)
13784
13785 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
13786
13787 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
13788
13789 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
13790 Delete code that conditionally modifies 'version'.
13791 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
13792 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
13793 * gcc.c (main): Use it.
13794 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
13795 * prefix.c (update_path): Use it.
13796 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
13797 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
13798 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
13799 code.
13800 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
13801 (SUBTARGET_SWITCHES): Adjust.
13802 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
13803 defining.
13804 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
13805
13806 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
13807
13808 * c-common.h (flag_isoc94): Declare.
13809 * c-decl.c (flag_isoc94): Define.
13810 (c_decode_option): Set flag_isoc94 as appropriate.
13811 * c-common.c (T_PD, T_IM, T_UIM): Define.
13812 (format_char_info): Add tlen and jlen.
13813 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
13814 %F. Allow %lf.
13815 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
13816 %l[.
13817 (time_char_table): Add NULL entries for %t and %j.
13818 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
13819 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
13820 Warn for printf %lf if pedantic and not C99. Don't warn for empty
13821 precision. Allow precision argument to be unsigned int. If
13822 pedantic, warn for %p passed an argument not a pointer to possibly
13823 qualified void or a possibly qualified character type, and for
13824 pointer targets of the wrong sign, except for character pointers.
13825
13826 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
13827
13828 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
13829 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
13830 (wint_type_node): Define.
13831 * c-decl.c (WINT_TYPE): Define.
13832 (init_decl_processing): Create the wint_type_node type.
13833 * c-common.c (T_WI): Define.
13834 (print_char_table): Use T_WI for %lc format.
13835
13836 2000-08-04 Bruce Korb <bkorb@gnu.org>
13837
13838 * fixinc/: Verified that the MSDOS patch does not break
13839 the UNIX functionality and applied the next three patches
13840 from July:
13841
13842 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
13843
13844 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
13845 output file with the temporary one by appending ".X" to generate
13846 the temporary fuile's name. If the output file already has an
13847 extension, replace it with ".X".
13848
13849 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
13850 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
13851 reallocate the command buffer while copying the command-line
13852 argument. Redirect the output directly to the temporary file,
13853 instead of going through another temporary file.
13854 (process): Close the temporary file before unlinking it.
13855 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
13856 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
13857 (run_compiles): Pass p_fixd argument to machine_matches, as it
13858 expects.
13859
13860 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
13861 environment, assume there are no symlinks in the include
13862 directory. When cleaning up the DONE files, look for them
13863 case-insensitively. Don't try to remove symlinks if they aren't
13864 there.
13865
13866 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
13867 all callers changed. Declare pz "const char *", to avoid compiler
13868 warnings.
13869
13870 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
13871 Change prototype of make_raw_shell_str.
13872
13873 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
13874
13875 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
13876 (initialize) [__MSDOS__]: Use tempnam.
13877 (initialize): Don't use SIGPIPE if it is not defined.
13878
13879 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
13880 return stdout.
13881
13882 2000-07-25 Bruce Korb <bkorb@gnu.org>
13883
13884 * fixinc/fix*.[ch]: substantially reworked to make it possible
13885 to run this program without using fork(2) or pipe(2) (i.e. in
13886 a DOS environment).
13887
13888 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
13889
13890 * cppdefault.h (WINT_TYPE): Define.
13891 * cppinit.c (builtin_array): Define __WINT_TYPE__.
13892 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
13893 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
13894
13895 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
13896
13897 * (mips_legitimate_address_p): Don't allow register+offset
13898 if the offset is large and negative, and we are compiling
13899 for 64 bit registers.
13900
13901 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13902
13903 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
13904 insn_code_number + 1.
13905
13906 2000-08-04 Kazu Hirata <kazu@hxi.com>
13907
13908 * h8300.c (function_prologue): Rearrange code for conciseness.
13909 (function_epilogue): Likewise.
13910 * h8300.h (OK_FOR_U): Fix formatting.
13911
13912 * cse.c: Fix a comment typo. Fix formatting.
13913
13914 2000-08-03 Richard Henderson <rth@cygnus.com>
13915
13916 * config/i386/i386.md (return_indirect_internal): New.
13917 * config/i386/i386.c (ix86_expand_epilogue): Use it.
13918
13919 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
13920
13921 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
13922 before the name.
13923 (lex_line): Glue @ onto the beginning of identifiers and
13924 string constants, in Objective-C mode.
13925 (output_token, spell_token): Handle CPP_OSTRING.
13926 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
13927 beginning of a NAME or a STRING, in objc mode.
13928
13929 * cpplib.c (get_define_node): Do not permit identifiers that
13930 begin with @ to be #defined.
13931 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
13932 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
13933
13934 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
13935 * c-tree.h (build_objc_string): Delete prototype.
13936 * objc/objc-tree.def: Delete OBJC_STRING_CST.
13937 * c-lex.c (yylex): Use build_string for all three kinds of strings.
13938
13939 * c-parse.in, objc/objc-act.c: Update commentary.
13940
13941 2000-08-03 Mark Mitchell <mark@codesourcery.com>
13942
13943 * extend.texi: Fix typo in last change.
13944
13945 * extend.texi: Add commentary on statement-expressions and their
13946 interactions with C++.
13947
13948 2000-08-03 Nick Clifton <nickc@cygnus.com>
13949
13950 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
13951 * dwarf.h (LANG_JAVA): Change value to 0x000b.
13952
13953 2000-08-03 Anthony Green <green@cygnus.com>
13954
13955 * dwarf2out.c (gen_compile_unit_die): Add java language support.
13956 (add_bound_info): Check for java language.
13957 (is_java): New function.
13958 * dwarfout.c (output_compile_unit_die): Ditto.
13959 * dwarf.h (dwarf_source_language): Add java source language type.
13960 * dwarf2.h (dwarf_source_language): Ditto.
13961
13962 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
13963
13964 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
13965 operands.
13966
13967 * i386.c (ix86_expand_branch): Mode of comparison in
13968 IF_THEN_ELSE is VOIDmode.
13969
13970 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
13971
13972 * gengenrtl.c, rtl.c: Avoid #elif.
13973
13974 2000-08-03 Michael Poole <poole@troilus.org>
13975
13976 * tm.texi (Register Classes): Clarify order of sub-initializers
13977 in REG_CLASS_CONTENTS.
13978
13979 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13980
13981 From SAITOH Masanobu:
13982 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
13983
13984 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
13985
13986 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
13987 is not supported by tradcpp and isn't actually needed for cygwin.
13988
13989 2000-08-03 Kazu Hirata <kazu@hxi.com>
13990
13991 * h8300.c: Fix a comment typo.
13992 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
13993
13994 * jump.c: Fix formatting.
13995
13996 * toplev.c: Fix formatting.
13997
13998 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
13999
14000 * flow.c (find_auto_inc): Verify that we've got a REG before
14001 peeking at its regno. Fail, don't abort if we can't find
14002 the increment of the desired register.
14003
14004 * pa.md (shadd height reduction patterns/splitters): Remove.
14005
14006 2000-08-02 Jim Wilson <wilson@cygnus.com>
14007
14008 * config/ia64/ia64-protos.h (flag_ssa): Declare.
14009 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
14010
14011 2000-08-02 Mark Mitchell <mark@codesourcery.com>
14012
14013 * dce.c: Remove all uses of assert.
14014 * dwarf2out.c: Likewise.
14015 * dwarfout.c: Likewise.
14016 * ssa.c: Likewise.
14017
14018 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
14019
14020 * gcc.h (lang_specific_driver): Constify second argument.
14021 * gcc.c (translate_options, process_command, main): Likewise.
14022 Constify variables to match. Cast second argument to
14023 pexecute.
14024
14025 * cppspec.c, gccspec.c: Adjust type of second argument to
14026 lang_specific_driver, and update code as necessary.
14027
14028 2000-08-02 Jakub Jelinek <jakub@redhat.com>
14029
14030 * loop.c (scan_loop): Ensure update_end label does not
14031 go away until reg_scan_update is run.
14032
14033 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
14034
14035 * c-common.h: Prototype min_precision and c_build_qualified_type here...
14036 * c-tree.h: ... not here.
14037 * errors.h: Prototype fancy_abort.
14038
14039 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
14040 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
14041 * regrename.c (regrename_optimize): Make control flow explicit.
14042 (replace_reg_in_block): Initialize reg_use to 0.
14043
14044 * i386.c (legitimate_address_p): Rename error label to
14045 report_error to avoid namespace clash.
14046
14047 2000-08-02 Kazu Hirata <kazu@hxi.com>
14048
14049 * fold-const.c: Fix formatting.
14050
14051 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
14052
14053 * i386.c (legitimate_address_p): Accept other bases than
14054 pic_offset_table_rtx for GOTOFF constructs.
14055
14056 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
14057
14058 * i386.md (shift to lea splitter): Use const_int_operand.
14059
14060 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
14061
14062 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
14063 cppspec.c: Do not use 'legal' or 'illegal' in error messages
14064 and comments.
14065
14066 * cppmain.c (cb_define, cb_undef): Don't generate any output
14067 if not done_initializing.
14068 * cpplex.c (maybe_paste_with_next): When the token after a ##
14069 is an omitted rest argument, only delete the token before it
14070 if that token is a comma. Do not warn about bogus token
14071 pastes for , ## rest_arg.
14072
14073 * cpp.texi: Update.
14074 * cpp.1: Regenerate.
14075
14076 2000-08-02 Fred Fish <fnf@be.com>
14077
14078 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
14079 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
14080 and later.
14081
14082 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
14083 Be directories to search path.
14084
14085 Remove support for __declspec(dllimport) and __declspec(dllexport).
14086 This is leftover cruft from the earlier BeOS gcc port when BeOS
14087 used Microsoft's PE object file format.
14088 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
14089 * config/i386/t-beos (winnt.o): Remove Makefile frag.
14090 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
14091 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
14092 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
14093 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
14094 (REDO_SECTION_INFO_P): Remove.
14095 (ASM_EXPORT_DECL): Remove.
14096 (ASM_DECLARE_FUNCTION_NAME): Remove.
14097 (ASM_DECLARE_OBJECT_NAME): Remove.
14098 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
14099 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
14100 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
14101 (STRIP_NAME_ENCODING): Remove.
14102
14103 Remove support for obsolete version of BeOS that is no longer
14104 supported by Be.
14105 * configure.in (i*86-*-beospe*): Remove.
14106 * config/i386/beos-pe.h: Remove.
14107
14108 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
14109 Mark Mitchell <mark@codesourcery.com>
14110
14111 * Makefile.in (OBJS): Added dce.o.
14112 (ssa.o): Updated target to include ssa.h.
14113 (flow.o): Likewise.
14114 (toplev.o): Likewise.
14115 (dce.o): Created target.
14116 * basic-block.h: Added comments.
14117 (INVALID_BLOCK): Added definition.
14118 (connect_infinite_loops_to_exit): Added declaration.
14119 Moved SSA declarations to ssa.h.
14120 * flow.c: Added inclusion of ssa.h.
14121 (struct depth_first_search_dsS, depth_first_search_ds):
14122 Added definitions.
14123 (compute_immediate_postdominators): Added definition.
14124 (connect_infinite_loops_to_exit): Likewise.
14125 (flow_dfs_compute_reverse_init): Likewise.
14126 (flow_dfs_compute_reverse_add_bb): Likewise.
14127 (flow_dfs_compute_reverse_execute): Likewise.
14128 (flow_dfs_compute_reverse_finish): Likewise.
14129 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
14130 (LABEL_P): Added definition.
14131 (JUMP_P): Likewise.
14132 (NOTE_P): Likewise.
14133 (BARRIER_P): Likewise.
14134 (JUMP_TABLE_DATA_P): Likewise.
14135 (INSN_DEAD_CODE_P): Likewise.
14136 * ssa.c: Replaced inclusions with ssa.h inclusion.
14137 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
14138 (rename_registers): Removed unnecessary variables.
14139 * ssa.h: Created by moving declarations from ssa.c and
14140 basic-block.h.
14141 * timevar.def: Defined TV_DEAD_CODE_ELIM.
14142 * toplev.c: Added ssa.h inclusion.
14143 (dump_file_index): Added DFI_dce.
14144 (dump_file): Added "dce" entry.
14145 Defined flag_ssa.
14146 (f_options): Added dce entry.
14147 * invoke.texi: Document -fdce. Emphasize experimental status of
14148 -fssa.
14149 * dce.c: New file.
14150
14151 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
14152
14153 * cpperror.c (v_message): Split into _cpp_begin_message and
14154 v_message macro. All callers updated.
14155 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
14156 checks here.
14157
14158 * cppfiles.c (cpp_syshdr_flags): New function.
14159 (read_include_file): Don't call cpp_output_tokens. Call
14160 enter_file hook.
14161 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
14162 (cpp_reader_init): Don't initialize token_buffer. Call
14163 _cpp_init_internal_pragmas.
14164 (cpp_cleanup): Don't clear token_buffer.
14165 (cpp_start_read): Don't worry about output from -D processing.
14166 Don't call cpp_output_tokens.
14167 (cpp_finish): Don't dump macros here. Don't call
14168 cpp_output_tokens.
14169 * cppmacro.c (_cpp_dump_definition): Rename
14170 cpp_dump_definition. Write directly to a FILE *.
14171 (dump_funlike_macro): Delete.
14172 (dump_macro_args): New.
14173
14174 * cpplex.c (TOKEN_LEN): Convert to inline function.
14175 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
14176 cpp_scan_line, _cpp_dump_list): Delete.
14177 (cpp_printf, cpp_output_list): New.
14178 (output_line_command): Don't worry about entering or leaving files.
14179 (cpp_scan_buffer): Just output each token as we hit it.
14180 (process_directive): Don't call cpp_output_tokens.
14181 (_cpp_glue_header_name): Don't use token_buffer.
14182 (output_token, dump_param_spelling): Write directly to a FILE *.
14183
14184 * cpplib.c (pass_thru_directive, dump_macro_name,
14185 pragma_dispatch, do_pragma_gcc): Delete.
14186 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
14187 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
14188 functions.
14189 (do_error, do_warning, pragma_dependency): Call
14190 _cpp_begin_message, then cpp_output_list.
14191 (cpp_register_pragma, cpp_register_pragma_space,
14192 _cpp_init_internal_pragmas): New.
14193 (do_pragma): Walk the pragmas table here.
14194 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
14195 do_pragma_dependency): Return void.
14196 (do_pragma_implementation): Moved to cppmain.c.
14197
14198 * cpplib.h: Update prototypes.
14199 (struct cpp_reader): Remove printer, token_buffer,
14200 token_buffer_size, and limit. Add struct cb, and pragmas.
14201 (struct cpp_printer): Remove last_id and written.
14202 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
14203 CPP_ADJUST_WRITTEN): Delete.
14204 * cpphash.h: Update prototypes.
14205 (ufputs): New wrapper.
14206
14207 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
14208 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
14209 (main): Set up callbacks. Register #pragma implementation.
14210 Dump macros from here.
14211
14212 2000-08-01 Geoff Keating <geoffk@cygnus.com>
14213
14214 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
14215 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
14216 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
14217 insns if they have a REG_MAYBE_DEAD note attached.
14218 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
14219 (rs6000_emit_load_toc_table): TOC loads may go dead.
14220
14221 2000-08-01 Jim Wilson <wilson@cygnus.com>
14222
14223 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
14224 type exists before using it. Use number of words as alignment
14225 otherwise.
14226 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
14227 ia64_va_arg): Propagate ia64_function_args changes here.
14228
14229 2000-08-01 Richard Henderson <rth@cygnus.com>
14230
14231 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
14232 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
14233
14234 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
14235
14236 From Joern Rennecke:
14237 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
14238 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
14239 unless TARGET_SH3E is set.
14240 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
14241
14242 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
14243 (ashlsi3_std): New pattern.
14244 (ashlsi3 expander): Use it for TARGET_SH3.
14245 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
14246
14247 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
14248
14249 * loop.c (canonicalize_condition): Use destination, not source to
14250 determine SET's mode.
14251
14252 2000-07-31 Mark Mitchell <mark@codesourcery.com>
14253
14254 * flow.c (clear_log_links): Fix typo.
14255
14256 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
14257
14258 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
14259 on targets which need more than one insn for a compare/cbranch
14260 operation.
14261
14262 2000-07-31 Jim Wilson <wilson@cygnus.com>
14263
14264 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
14265 when computing offset.
14266
14267 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
14268
14269 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
14270
14271 2000-07-31 Geoff Keating <geoffk@cygnus.com>
14272
14273 * flow.c (clear_log_links): Nuke global_live_at_start and
14274 global_live_at_end data, since if the log_links stuff is invalid
14275 so is global_live_at_*.
14276
14277 2000-07-31 Richard Henderson <rth@cygnus.com>
14278
14279 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
14280
14281 2000-07-31 Jakub Jelinek <jakub@redhat.com>
14282
14283 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
14284 (_cpp_get_token): Don't macro expand a just pasted token if it
14285 was pasted at no_expand_level.
14286
14287 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
14288
14289 * cppmacro.c (find_param, count_params, save_expansion):
14290 Permit 'defined' as a macro parameter name.
14291
14292 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
14293
14294 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
14295 xcpp to cpp throughout.
14296 (native): Remove unnecessary dependency on cpp.
14297
14298 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
14299 tradcpp to tradcpp0.
14300 (.i spec): Add missing output-file spec to cc1 command line.
14301 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
14302
14303 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
14304
14305 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
14306 (implicit_decl_warning): New function.
14307 (implicitly_declare): Use it.
14308 * c-typeck.c (build_external_ref): Use implicit_decl_warning
14309 to complain about implicit decls of builtins.
14310
14311 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
14312 based on pedantic && flag_isoc99, if not already set.
14313 * c-tree.h: Declare mesg_implicit_function_declaration.
14314 Prototype implicit_decl_warning.
14315
14316 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
14317
14318 * Makefile.in (ssa.o): Updated header files in dependences.
14319 * basic-block.h: Added compute_immediate_postdominators declaration.
14320 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
14321 definition.
14322 * flow.c (compute_immediate_dominators): Updated comment.
14323 (compute_immediate_postdominators): Added definition.
14324 * rtl.h (HARD_REGISTER_P): Added definition.
14325 * ssa.c: Include additional header files.
14326 (assert): Added definition.
14327 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
14328 include select hard registers.
14329 (ssa_rename_to_insert): Likewise.
14330 (ssa_rename_from_initialize): Likewise.
14331 (ssa_rename_from_lookup): Likewise.
14332 (original_register): Likewise.
14333 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
14334 include select hard reigsters.
14335 (ssa_rename_from_traverse): Likewise.
14336 (ssa_rename_from_free): Likewise.
14337 (ssa_rename_from_print): Likewise.
14338 (ssa_rename_from_print_1): Likewise.
14339 (ssa_rename_from_hash_function): Likewise.
14340 (ssa_rename_from_equal): Likewise.
14341 (ssa_rename_from_delete): Likewise.
14342 (simplify_to_immediate_dominators): Removed in favor of
14343 flow.c:compute_immediate_dominators.
14344 (find_evaluations_1): Modified to work with hard registers.
14345 (insert_phi_node): Likewise.
14346 (insert_phi_nodes): Likewise.
14347 (struct rename_set_data): Updated prev_reg comment.
14348 (create_delayed_rename): Modified to work with hard registers.
14349 (RENAME_NO_RTX): Updated comment.
14350 (apply_delayed_renames): Modified to work with hard registers.
14351 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
14352 (rename_block): Updated to use revised ssa_rename_to interface.
14353 (rename_registers): Updated to use revised ssa_rename_to and
14354 ssa_rename_from interface.
14355 (convert_to_ssa): Revised to use compute_immediate_dominators and
14356 deal with hard registers.
14357 (make_regs_equivalent_over_bad_edges): Modified to work with hard
14358 registers. Added check for illegal unification of hard register.
14359 (make_equivalent_phi_alternatives_equivalent): Modified to work
14360 with hard registers.
14361 (compute_conservative_reg_partition): Likewise.
14362 (coalesce_if_unconflicting): Modified to work with hard registers
14363 and check for conflicting hard registers.
14364 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
14365 registers.
14366 (rename_equivalent_regs_in_insn): Modified to work with hard
14367 registers.
14368 (record_canonical_element_1): Added definition.
14369 (check_hard_regs_in_partition): Added definition.
14370 (convert_from_ssa): Added data structure deallocation and check
14371 for illegal hard register unification.
14372 (conflict_hard_regs_p): Added definition.
14373 * toplev.c (rest_of_compilation): Added comment.
14374
14375 2000-07-31 Anthony Green <green@redhat.com>
14376
14377 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
14378
14379 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
14380
14381 * builtins.c (expand_builtin_apply): Don't defer pop during
14382 argument setup.
14383
14384 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14385
14386 * calls.c (combine_pending_stack_adjustment_and_call): Only use
14387 preferred_unit_stack_boundary when it is > 1.
14388
14389 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
14390
14391 * c-common.c (init_function_format_info): Add C99 format functions
14392 in C99 mode.
14393
14394 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
14395 void' or 'register void' as being the special case of 'void' alone
14396 in a parameter list.
14397
14398 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
14399 discarding qualifiers into a plain warning.
14400
14401 2000-07-31 Kazu Hirata <kazu@hxi.com>
14402
14403 * combine.c: Fix formatting.
14404
14405 * h8300.md: Fix formatting.
14406
14407 * local-alloc.c: Fix formatting.
14408
14409 * h8300.c (get_shift_alg): Remove the variable alg.
14410 (emit_a_shift): Rearrange code to improve readability.
14411
14412 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
14413
14414 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
14415 HImode on all architectures and a combination of HImode and SImode
14416 on H8/300H and H8/S.
14417
14418 * h8300.c (split_adds_subs): Rearrange code for conciseness.
14419
14420 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
14421
14422 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
14423 in my last checkin.
14424
14425 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
14426
14427 * recog.c (extract_insn): Set operand_mode according to
14428 operand if match_operand is VOIDmode.
14429
14430 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
14431
14432 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
14433
14434 2000-07-31 Geoff Keating <geoffk@cygnus.com>
14435
14436 * c-parse.in (extdefs): Call ggc_collect between external
14437 definitions.
14438
14439 2000-07-30 Michael Hayes <mhayes@cygnus.com>
14440 Richard Henderson <rth@cygnus.com>
14441
14442 * Makefile.in (OBJS): Add doloop.o.
14443 * doloop.c: New file.
14444
14445 * final.c (insn_current_reference_address): Return 0 before final.
14446 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
14447 * jump.c (any_uncondjump_p): Likewise.
14448 * loop.c (indirect_jump_in_function): Make static.
14449 (strength_reduce): Call doloop_optimize.
14450 (insert_bct, instrument_loop_bct): Remove.
14451 * loop.h (doloop_optimize): Prototype.
14452 * recog.c (split_all_insns): Split all INSN_P.
14453 * toplev.c (flag_branch_on_count_reg): Default on.
14454
14455 * config/c4x/c4x.c (c4x_optimization_options): Don't set
14456 flag_branch_on_count_reg.
14457 * config/i386/i386.c (override_options): Likewise.
14458 * config/rs6000/rs6000.c (optimization_options): Likewise.
14459
14460 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
14461 (doloop_end): New.
14462 (dbra_ge): Remove, as well as all it's splitters.
14463
14464 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
14465 (doloop_end): New.
14466
14467 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
14468 (ia64_register_move_cost): Declare.
14469 * config/ia64/ia64.c (ar_lc_reg_operand): New.
14470 (struct ia64_frame_info): Add ar_size.
14471 (ia64_compute_frame_size): Set it.
14472 (save_restore_insns): Save and restore ar.lc.
14473 (ia64_register_move_cost): New, moved from header file. Handle
14474 application registers.
14475 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
14476 (emit_insn_group_barriers): Special case doloop_end_internal.
14477 (ia64_epilogue_uses): Mark ar.lc live at end.
14478 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
14479 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
14480 (FIRST_PSEUDO_REGISTER): Make room.
14481 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
14482 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
14483 (REG_ALLOC_ORDER): Update.
14484 (HARD_REGNO_MODE_OK): Update.
14485 (REGISTER_NAMES): Update.
14486 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
14487 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
14488 (REGNO_REG_CLASS): Update.
14489 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
14490 (REGISTER_MOVE_COST): Move out of line.
14491 (PREDICATE_CODES): Update.
14492 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
14493 (addsi3_plus1_alt, adddi3_plus1_alt): New.
14494 (shladd_elim splitter): Allow constants in the predicate.
14495 (doloop_end, doloop_end_internal): New.
14496
14497 2000-07-30 Richard Henderson <rth@cygnus.com>
14498
14499 * genattrtab.c (struct insn_def): Add lineno member.
14500 (struct insn_ent): Likewise.
14501 (struct attr_desc): Likewise.
14502 (struct delay_desc): Likewise.
14503 (struct function_unit_op): Likewise.
14504 (struct function_unit): Likewise.
14505 (check_attr_value): Use message_with_line.
14506 (check_defs): Likewise.
14507 (expand_units): Likewise.
14508 (check_attr_test): Take a lineno argument.
14509 (gen_attr): Likewise.
14510 (gen_insn): Likewise.
14511 (gen_delay): Likewise.
14512 (gen_unit): Likewise.
14513 (main): Give it to them.
14514 (convert_set_attr_alternative): Take an insn_def argument
14515 instead of num_alt and insn_index.
14516 (convert_set_attr): Likewise.
14517 (write_test_expr): Protect INSN_ADDRESSES load
14518 with INSN_ADDRESSES_SET_P.
14519
14520 2000-07-30 Richard Henderson <rth@cygnus.com>
14521
14522 * flow.c (init_propagate_block_info): Use pc_set.
14523
14524 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
14525
14526 * i386.md (*lea_general_[123]) New insns and splits.
14527 (addsi3 to lea splitter): Handle other modes too.
14528 (shlsi3 to lea splitter): Likewise.
14529 (addhi_1_lea, shlhi_1_lea): New patterns.
14530 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
14531
14532 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
14533
14534 * recog.c (general_operand, nonimmediate_operand): Accept
14535 any mode for VOIDmode CONSTANT_P operands.
14536
14537 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
14538
14539 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
14540 instead of replace_rtx.
14541 * recog.c (validate_replace_rtx_subexp): New function.
14542 * recog.h (validate_replace_rtx_subexp): Declare.
14543
14544 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
14545
14546 * combine.c (simplify_set, make_extraction, make_compound_operation
14547 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
14548 as force_to_mode argument.
14549
14550 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
14551
14552 * combine.c (if_then_else_cond): Be sure that mode fits in
14553 HOST_WIDE_INT.
14554
14555 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
14556
14557 * combine.c (record_promoted_value): Allow bitsize of mode
14558 to be equivalent to HOST_BITS_PER_WISE_INT.
14559
14560 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
14561
14562 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
14563 Do not call gen_mode_alignment when mode is BLKmode.
14564
14565 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
14566
14567 * loop.c (express_from_1): Fix call of simplify_gen_binary.
14568
14569 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
14570
14571 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
14572 VOIDmode implies both operands to be VOIDmode.
14573 (simplify_ternary_operation): Compute properly the mode of comparison.
14574 * combine.c (combine_simplify_rtx): Likewise.
14575
14576 2000-07-25 Michael Hayes <mph@paradise.net.nz>
14577
14578 * basic-block.h (struct loops): New field rc_order.
14579 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
14580 (flow_loops_free): Free rc_order.
14581 (flow_depth_first_order_compute): New parameter rc_order.
14582 (flow_loops_find): Allocate rc_order and swap usage with
14583 dfs_order.
14584
14585 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14586 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14587
14588 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
14589 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
14590 (nodb_call, return_from_epilogue): Likewise.
14591 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
14592 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
14593 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
14594 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
14595 (c4x_valid_type_attribute_p): Likewise.
14596 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
14597 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
14598
14599 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14600
14601 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
14602 and loadhi_big_constant if applicable.
14603 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
14604 and add new splitter.s
14605
14606 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14607
14608 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
14609
14610 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14611
14612 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
14613
14614 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14615
14616 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
14617
14618 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14619
14620 * config/c4x/libgcc.S (divqf3): Improve accuracy.
14621
14622 2000-07-27 Mark Mitchell <mark@codesourcery.com>
14623
14624 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
14625 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
14626 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
14627 (get_prev_bb_note): Likewise.
14628 (remove_scope_notes): Likewise.
14629 * flow.c (commit_one_edge_insertion): Likewise.
14630 (merge_blocks_nomove): Likewise.
14631 (verify_flow_info): Likewise.
14632 * gcse.c (insert_insn_end_bb): Likewise.
14633 * reg-stack.c (emit_swap_insn): Likewise.
14634 * ssa.c (first_insn_after_basic_block_note): New function.
14635 (insert_phi_node): Use it.
14636 (rename_block): Likewise.
14637 (eliminate_phi): Likewise.
14638 (make_regs_equivalent_over_bad_edges): Likewise.
14639 (make_equivalent_phi_alternatives_equivalent): Likewise.
14640 (for_each_successor_phi): Likewise.
14641 (convert_from_ssa): Modify phi-node deletion algorithm.
14642
14643 2000-07-29 Andreas Jaeger <aj@suse.de>
14644
14645 * configure.in (mips*-*-linux*): Use mips*el to check for little
14646 endian MIPS, add tmake_file.
14647
14648 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
14649 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
14650 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
14651
14652 2000-07-28 Richard Henderson <rth@cygnus.com>
14653
14654 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
14655 Sign extend mode size before negating.
14656
14657 2000-07-28 Richard Henderson <rth@cygnus.com>
14658
14659 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
14660
14661 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
14662
14663 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
14664 (cse_insn): Likewise.
14665 (addr_affects_sp_p): Likewise.
14666 * expr.c (move_by_pieces): Likewise.
14667 (clear_by_pieces): Likewise.
14668 * gcse.c (oprs_unchanged_p): Likewise.
14669 * haifa-sched.c (sched_analyze_2): Likewise.
14670 * recog.c (offsettable_address_p): Likewise.
14671 * regclass.c (record_address_regs): Likewise.
14672 * reload.c (find_reusable_reload): Likewise.
14673 (push_reload): Likewise.
14674 (operands_match_p): Likewise.
14675 (decompose): Likewise.
14676 (find_reloads_address_1): Likewise.
14677 (find_inc_amount): Likewise.
14678 * reload1.c (elimination_effects): Likewise.
14679 * resource.c (mark_set_resources): Likewise.
14680 * flow.c (attempt_auto_inc): New function; mostly broken out
14681 of find_auto_inc.
14682 (find_auto_inc): Split into two functions and enhanced to
14683 generate POST_MODIFY.
14684 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
14685 * rtl.h (count_all_occurrences): Declare.
14686 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
14687 defined.
14688 * rtlanal.c (count_all_occurrences): New function.
14689 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
14690 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
14691
14692 * config/ia64/ia64-protos.h (destination_operand): Declare.
14693 * config/ia64/ia64.c (destination_operand): New function.
14694 (ia64_print_operand): Handle POST_MODIFY.
14695 (rtx_needs_barrier): Likewise.
14696 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
14697 (HAVE_POST_MODIFY_REG): Define to 1.
14698 (MAX_REGS_PER_ADDRESS): Change to 2.
14699 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
14700 (LEGITIMATE_ADDRESS_REG): New helper macro.
14701 (LEGITIMATE_ADDRESS_DISP): Likewise.
14702 (PREDICATE_CODES): Add entry for destination_operand.
14703 * config/ia64/ia64.md (all mov patterns): Use destination_operand
14704 predicate for operand 0.
14705
14706 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14707
14708 * dwarf2out.c: Indent #error directive.
14709
14710 * gbl-ctors.h: Fix typo in comment.
14711 (__do_global_ctors): Prototype.
14712
14713 * gcse.c (record_one_set, pre_delete): Remove unused variables.
14714
14715 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
14716 (print_operand): Initialize variable `t'.
14717
14718 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
14719
14720 * config/arm/arm.md ("call_value"): removed constraints.
14721 Constraints are ignored in expanders.
14722 (*call_value_reg): split =rf into various constraints.
14723 (*call_value_mem): same
14724 (*call_value_symbol): same
14725 (*sibcall_value_insn): same
14726
14727 2000-07-28 Philipp Thomas <pthomas@suse.de>
14728
14729 * install.texi (--enable-nls): Change the description of the NLS
14730 related configure options to match the current state.
14731 (--with-included-gettext): Likewise.
14732 (--enable-maintainer-mode): New description added.
14733 * extend.texi (-fstrict-prototype): Add missing '.'.
14734
14735 2000-07-27 Jim Wilson <wilson@cygnus.com>
14736
14737 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
14738 DECL_INITIAL (decl) == NULL_TREE.
14739
14740 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
14741
14742 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
14743 on insn-attr.h with it.
14744 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
14745 * insn-addr.h: New header.
14746 (insn_addresses_): Renamed from insn_addresses.
14747 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
14748 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
14749 INSN_ADDRESSES_NEW): New macros.
14750 * genattrtab.c (write_test_expr): Use new macros.
14751 * final.c (insn_addresses, init_insn_lengths): Likewise.
14752 (align_fuzz, shorten_branches): Likewise.
14753 (final): Likewise. Do not reject new insns if their addresses
14754 have been added to INSN_ADDRESSES.
14755 * config/arm/arm.c, config/avr/avr.c: Use new macros.
14756 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
14757 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
14758 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
14759 * config/sh/sh.c: Likewise.
14760 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
14761
14762 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
14763
14764 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
14765
14766 * gcc.c (struct prefix_list): Add member priority.
14767 (enum path_prefix_priority): Declare.
14768 (add_prefix): Replace ``first'' with ``priority''. Append new
14769 entry but keep list in priority order.
14770 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
14771 PREFIX_PRIORITY_LAST to add_prefix.
14772 (process_command): Move include kludge - foo/stageN - to before
14773 foo/include.
14774
14775 2000-07-27 Jason Merrill <jason@redhat.com>
14776
14777 * dwarf2out.c (gen_typedef_die): Abort if we get identical
14778 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
14779
14780 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
14781
14782 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
14783 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
14784
14785 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
14786
14787 * c-decl.c (finish_function): Don't treat 'main' specially unless
14788 flag_hosted. In C99 mode, return 0 from 'main' unless
14789 DEFAULT_MAIN_RETURN is otherwise defined.
14790
14791 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
14792 parameters defaulting to int in an old-style function definition.
14793
14794 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14795
14796 * c-parse.in (string): For -Wtraditional, warn about string
14797 concatenation only once per line.
14798
14799 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
14800
14801 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
14802 for HI-UX/WE2 systems.
14803
14804 2000-07-24 Bruce Korb <bkorb@gnu.org>
14805
14806 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
14807 defining the __xxx_TYPE__ macros.
14808 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
14809 * fixincl/fixlib.h: don't need to include "tm.h" anymore
14810 * fixincl/inclhack.def(type_map): now obsolete
14811
14812 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
14813
14814 * cpp.texi: Append a trailing full-stop to xrefs where needed.
14815
14816 2000-07-26 Dave Pitts <dpitts@cozx.com>
14817
14818 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
14819 routine constants.
14820 (mvs_hash_alias): New function.
14821 (mvs_add_alias): Change argument spacing.
14822 (mvs_need_alias): Change aliasing criteria. Added documentation.
14823 (mvs_get_alias): Change to use hashed name. The hashed name prevents
14824 CSECT name collisions.
14825 (mvs_check_alias): Likewise.
14826 (handle_pragma): Change documentation.
14827 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
14828 mode from SImode to DImode.
14829 (iorhi3): Changed LTORG size for insn.
14830
14831 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
14832
14833 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
14834 mem if the address is a mode_dependent_address_p.
14835
14836 2000-07-26 Kazu Hirata <kazu@hxi.com>
14837
14838 * h8300.c (print_operand): Print ":8" when the 'R' operand is
14839 suitable for 8-bit absolute.
14840 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
14841 (OK_FOR_U): Add a case for the 8-bit constant address on the
14842 H8/300H.
14843
14844 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
14845
14846 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
14847 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
14848 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
14849 lack of implemented alignment.
14850
14851 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
14852
14853 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
14854 cross-compiling between 64-bit and 32-bit machines.
14855
14856 2000-07-27 Richard Henderson <rth@cygnus.com>
14857
14858 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
14859 (movhicc_astep, movhi_internal_astep): New.
14860 (movsicc_astep, movsi_internal_astep): New.
14861 (movdicc_astep, movdi_internal_astep): New.
14862 (movsfcc_astep, movsf_internal_astep): New.
14863 (movdfcc_astep, movdf_internal_astep): New.
14864 (movxfcc_astep, movxf_internal_astep): New.
14865 (cmovdi_internal_astep, cmovsi_internal_astep): New.
14866 Unify the cmov[ds]i splitters.
14867
14868 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
14869
14870 * real.c (asctoeg): Rename `error' label to unexpected_char_error
14871
14872 2000-07-26 Nick Clifton <nickc@cygnus.com>
14873
14874 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
14875 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
14876
14877 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
14878 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
14879
14880 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
14881
14882 * c-decl.c (finish_enum): Convert enumerations that fit in an
14883 `int' to `int'.
14884 (build_enumerator): In pedantic mode, cast to `int' those that
14885 don't.
14886
14887 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
14888
14889 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
14890
14891 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14892
14893 * sh.md (cmpgtdi_t): Must be split.
14894 (cmpgtdi_t+1): New splitter.
14895
14896 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
14897
14898 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
14899 warnings for indented directives even if we are skipping.
14900
14901 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
14902
14903 * invoke.texi (strict-prototypes): Remove.
14904 * extend.texi (Deprecated Features): Add strict-prototypes.
14905 (Backwards Compatibility): New node.
14906
14907 2000-07-25 Jakub Jelinek <jakub@redhat.com>
14908
14909 * config/i386/i386.md (andsi_1+1): Allow HImode.
14910 (andsi_1+2): Require q_regs_operand.
14911
14912 2000-07-25 Jakub Jelinek <jakub@redhat.com>
14913
14914 * config/i386/i386.md (call_pop): Check operands[0],
14915 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
14916 (call): Likewise.
14917 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
14918 (call_value): Likewise.
14919
14920 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
14921
14922 * toplev.c (pipe_closed): Delete.
14923 (crash_signal): New. Generate ICE for a fatal signal.
14924 (float_signal): Call crash_signal outside a float-handler
14925 block, not abort.
14926 (main): Install crash_signal as handler for core-dumping signals.
14927
14928 2000-07-25 David Edelsohn <edelsohn@gnu.org>
14929
14930 * rs6000.c (print_operand, case 'T'): New case.
14931
14932 * rs6000.md (call_indirect_aix32): Convert to expander of
14933 scheduled instructions.
14934 (call_indirect_aix64): Likewise.
14935 (call_value_indirect_aix{32,64}): Likewise.
14936 (call, call_value): Invoke expanders for AIX. Fall through to
14937 matchers for SysV.
14938 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
14939 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
14940 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
14941 only "g" constraint.
14942 (call_nonlocal_aix64): Likewise.
14943 (call_value_nonlocal_aix{32,64}): Likewise.
14944 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
14945 operands.
14946 (call_value_nonlocal_sysv): New pattern.
14947 (indirect_jump{si,di}): Use new 'T' modifier.
14948 (tablejump{si,di} matchers): Likewise.
14949 (return_internal_{si,di}): Likewise.
14950 (return_eh_{si,di}): Likewise.
14951
14952 2000-07-24 Richard Henderson <rth@cygnus.com>
14953
14954 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
14955 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
14956 * config/ia64/ia64.md (movdi_internal): Use it.
14957
14958 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
14959
14960 * cppexp.c: Warn about unary + if -Wtraditional.
14961 * cpplex.c (lex_line): Always set BOL on the first token of a line.
14962
14963 2000-07-24 Michael Meissner <meissner@redhat.com>
14964
14965 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
14966 unsupported macro.
14967
14968 2000-07-24 Nick Clifton <nickc@cygnus.com>
14969
14970 * config/arm/arm.c (emit_multi_reg_push): Generate a
14971 REG_FRAME_RELEATED_NOTE that is compatable with the code in
14972 dwarf2out_debug_frame_expr.
14973
14974 2000-07-24 Jason Merrill <jason@redhat.com>
14975
14976 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
14977 UNALIGNED_INT_ASM_OP.
14978 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
14979 a location expression.
14980 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
14981 assume indirect access if we're saving the CFA address exactly.
14982
14983 * Makefile.in (bootstrap): Move -BstageN/ to the end.
14984
14985 2000-07-24 Jakub Jelinek <jakub@redhat.com>
14986
14987 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
14988 as well.
14989
14990 2000-07-24 Michael Meissner <meissner@redhat.com>
14991
14992 * invoke.texi (D30V Options): Add d30v options.
14993
14994 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
14995
14996 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
14997 needed by our gcse pass anymore.
14998 (free_pre_mem): Corresponding changes.
14999 (compute_pre_data): Do not call compute_transpout anymore.
15000
15001 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
15002 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
15003 changes.
15004
15005 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
15006 (compute_pre_data): Do it here instead.
15007
15008 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
15009 'temp_bitmap'.
15010 (pre_delete): Corresponding changes.
15011
15012 2000-07-23 Mark Mitchell <mark@codesourcery.com>
15013
15014 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
15015 to figure out whether or not a variable has already been emitted.
15016
15017 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
15018
15019 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
15020 instead of gen_call.
15021
15022 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
15023
15024 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
15025
15026 2000-07-23 Kazu Hirata <kazu@hxi.com>
15027
15028 * h8300.c: Fix formatting.
15029
15030 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
15031
15032 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
15033 for `long' switch expression into a plain warning.
15034
15035 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
15036 (yylex): Don't pedwarn for "inline" in C99 mode.
15037
15038 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
15039 with %p.
15040 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
15041 ggc_alloc): Likewise.
15042 * bb-reorder.c (dump_scope_forest_1): Likewise.
15043
15044 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
15045
15046 * reload.c (find_reloads_toplev): Add new parameter
15047 "address_reloaded".
15048 (find_reloads): Add new parameter to find_reloads_toplev calls.
15049
15050 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
15051
15052 * collect2.c (main): Typo fixed.
15053 * diagnostic.c: Typo fixed.
15054 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
15055 * eh-common.h: Typo fixed.
15056 * emit-rtl.c (start_sequence): Typo fixed.
15057 * flow.c (find_label_refs): Typo fixed.
15058 (calculate_global_regs_live): Typo fixed.
15059 (mark_regno_cond_dead): Typo fixed.
15060 (create_edge_list): Typos fixed.
15061 (verify_edge_list): Typo fixed.
15062 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
15063 * loop.c (strength_reduce): Typo in function name fixed.
15064 * rtl.h: Added comments. Typo in function name fixed.
15065 * rtlanal.c: Typo in function name fixed.
15066 (insn_dependant_p): Rename to ...
15067 (insn_dependent_p): ... this.
15068 (computed_jumo_p): Typo fixed.
15069
15070 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15071
15072 * system.h (__FUNCTION__): Wrap definition in #ifndef.
15073
15074 2000-07-21 David Edelsohn <edelsohn@gnu.org>
15075
15076 * rs6000.h (SIZE_TYPE): Define.
15077
15078 2000-07-21 Mark Mitchell <mark@codesourcery.com>
15079
15080 * ssa.c (rename_insn_1): Don't rename registers that are
15081 CLOBBERed.
15082
15083 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
15084
15085 * diagnostic.c (trim_filename, fancy_abort): Moved here from
15086 rtl.c.
15087 (fatal_function, set_fatal_function): Removed.
15088 (fatal): Don't prepare for or call the fatal_function.
15089 (diagnostic_lock, error_recursion): New.
15090 (diagnostic_for_decl, report_diagnostic): Guard against
15091 re-entering the error reporting routines.
15092 (fancy_abort): Assume function is not NULL.
15093
15094 * errors.c (fancy_abort): New. Assume function is not NULL.
15095 * tradcpp.c (fancy_abort): Assume function is not NULL.
15096
15097 * system.h: Provide default definition of __FUNCTION__.
15098 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
15099 Always use __FUNCTION__ in definition of abort.
15100 * tree.h: Likewise.
15101 * varray.h: Likewise.
15102 * toplev.h: Likewise. Don't prototype set_fatal_function.
15103
15104 2000-07-20 Geoff Keating <geoffk@cygnus.com>
15105
15106 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
15107 in 64-bit mode.
15108 * glimits.h: Don't do #if defined for ARCH_PPC.
15109
15110 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
15111 constants of size no larger than a pointer should go in the TOC.
15112 Add 'MODE' parameter.
15113 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
15114 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
15115 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
15116 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
15117 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
15118 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
15119 (rs6000_legitimize_address): Likewise.
15120 (rs6000_emit_move): Likewise.
15121 (rs6000_select_rtx_section): Likewise.
15122 (output_toc): Deal properly with outputting small constants like
15123 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
15124 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
15125 MODE parameter. Put small constants in the TOC.
15126
15127 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
15128 easy in SImode.
15129 (rs6000_emit_move): When reload calls us with an illegitimate
15130 address, exit early. Move the change_address calls to one place
15131 at the end of the routine. Merge the SImode and DImode expanders.
15132 When called by reload to put an integer into a FP register, force
15133 it to memory.
15134
15135 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
15136 field.
15137 (rs6000_hash_constant): Hash mode too.
15138 (toc_hash_function): Allow for key_mode.
15139 (toc_hash_eq): Structures are different if key_mode differs.
15140 (output_toc): Add 'mode' parameter. Save key_mode.
15141 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
15142 Pass 'mode' parameter.
15143 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
15144
15145 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
15146 for vtable references.
15147
15148 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
15149 choice, don't put integer values in FP regs.
15150
15151 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
15152
15153 * flow.c (verify_flow_info): Revamp code to verify that the
15154 head and end of each basic block are in the insn chain.
15155
15156 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
15157
15158 * gcse.c (record_one_set): Prepend instead of append onto
15159 reg_set_table, making it O(n) instead O(n^2).
15160 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
15161 Use a queue instead of a stack as worklist.
15162
15163 2000-07-20 Kazu Hirata <kazu@hxi.com>
15164
15165 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
15166 * h8300.h (OK_FOR_T): New.
15167 (EXTRA_CONSTRAINT): Support OK_FOR_T.
15168 * h8300.md: Use inc/dec.[wl] for increment/decrement
15169 by 1 and 2 in HI and SI modes.
15170
15171 2000-07-20 Jim Wilson <wilson@cygnus.com>
15172
15173 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
15174 larger than 14 bits.
15175
15176 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
15177
15178 * cppmacro.c (CAN_PASTE_AFTER): New macro.
15179 (count_params): Don't set GNU_REST_ARGS on anything.
15180 (save_expansion): Set PASTE_LEFT only on tokens for which
15181 CAN_PASTE_AFTER is true, or which are named operators.
15182
15183 * cpplex.c (parse_args): Distinguish between a rest argument
15184 given one empty argument, and a rest argument given zero arguments.
15185 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
15186 deletion of previous token based on that.
15187 (get_raw_token): Flatten some control structure.
15188
15189 * cpplib.h (CPP_LAST_EQ): Correct.
15190 (VOID_REST): New token flag.
15191 (GNU_REST_ARGS): Delete.
15192
15193 * tradcpp.c (main): Don't munge -D options.
15194 (make_definition): Bring -D handling in line with cpplib.
15195 (do_define): Strip all leading whitespace from macro definitions.
15196
15197 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
15198
15199 * Makefile.in (tradcpp): Depend on intl.o and version.o.
15200
15201 2000-07-20 Bruce Korb <bkorb@gnu.org>
15202
15203 * fixincl/check.tpl: strip the platform specific types before testing
15204 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
15205 * fixincl/fixincl.tpl: use platform specific types
15206 * fixincl/fixlib.h: include the platform specific types
15207 * fixincl/inclhack.def(gnu_types): don't supply the types
15208 * fixincl/fixincl.x: regen
15209
15210 2000-07-19 Jim Wilson <wilson@cygnus.com>
15211
15212 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
15213 GR_REGS.
15214
15215 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
15216
15217 * tradcpp.c (rescan): Do not recognize directives when the #
15218 is indented.
15219
15220 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
15221
15222 Implement C++ named operators.
15223
15224 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
15225 of operators allowed in #if and having an _EQ variant. Add
15226 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
15227 (cpp_token flags): Add NAMED_OP.
15228 (enum node_type): Add T_OPERATOR.
15229 (struct cpp_hashnode): Add code slot to value union.
15230 * cpphash.h (spec_nodes): Remove n_defined.
15231
15232 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
15233 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
15234 (is_macro_disabled): Tweak error messages.
15235
15236 * cpplib.c (get_define_node): Disallow all named operators as
15237 macro names. Tweak error messages.
15238 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
15239
15240 * cppinit.c (builtin_array): Add entries for the named operators.
15241 * cppexp.c (lex): Check for CPP_DEFINED token.
15242 (priority table): Add entries for CPP_MIN and CPP_MAX.
15243 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
15244
15245 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
15246
15247 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
15248 larger than the array of cuids.
15249 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
15250 cuids.
15251
15252 2000-07-19 Bruce Korb <bkorb@gnu.org>
15253
15254 * fixinc/fixincl.c: Convert to using a table of environment variables
15255 and activate the auto-edit marker on the fixed output files.
15256 * fixinc/fixlib.h: Define the environment table
15257 * fixinc/fixincl.sh: export the ${INPUT} dir
15258 * fixinc/check.tpl: likewise
15259
15260 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
15261
15262 * gcc.c (.h spec): Fix typo.
15263
15264 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
15265
15266 * Makefile.in: Fix tradcif.c path.
15267
15268 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
15269
15270 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
15271 macros, not five.
15272
15273 * cpphash.h (TOKEN_NAME): New macro.
15274 (_cpp_spell_operator): Deleted.
15275 (token_spellings): Now _cpp_token_spellings.
15276
15277 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
15278 * cpplex.c: Use OP and TK macros when expanding the
15279 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
15280 store the stringification of the enumeration name (CPP_CHAR,
15281 etc.) in the name slot of token_spellings.
15282 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
15283 token_spellings directly.
15284 * cpplib.c: Use TOKEN_SPELL.
15285
15286 * cpplex.c (_cpp_push_token): If the token being pushed back
15287 is the previous token in this context, just subtract one from
15288 context->posn.
15289 * cppmacro.c (save_expansion): Clear aux field when storing a
15290 placemarker.
15291
15292 2000-07-18 Jakub Jelinek <jakub@redhat.com>
15293
15294 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
15295 buffer, provided it is not NULL.
15296
15297 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
15298
15299 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
15300 case of invalid volatile re-declaration.
15301
15302 2000-07-18 Jakub Jelinek <jakub@redhat.com>
15303
15304 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
15305 (expand_call): Adjust caller.
15306
15307 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
15308
15309 * diagnostic.h (report_diagnostic): Change prototype.
15310
15311 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
15312 diagnostic_for_decl): Change prototype.
15313 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
15314 error, warning, error_with_file_and_line,
15315 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
15316 Adjust call to report_diagnostic, diagnostic_for_decl.
15317 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
15318 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
15319
15320 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
15321 varaible argument list.
15322
15323 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
15324
15325 * cpphash.c: Don't include hashtab.h. Most macro-handling code
15326 moved to cppmacro.c.
15327 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
15328 dump_hash_helper): Delete.
15329 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
15330 cpp_forall_identifiers): New. Implement specialized version of
15331 Vlad's expandable hash table.
15332 (cpp_lookup): Use new functions.
15333 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
15334 implementation.
15335 * cppmacro.c: New file.
15336 * cppinit.c (dump_macros_helper): New.
15337 (cpp_finish): Iterate over the identifier table directly.
15338 * cpplex.c (parse_name): Calculate the hash of the identifier
15339 while we scan it. Use _cpp_lookup_with_hash when we can.
15340
15341 * cpphash.h: Update prototypes.
15342 (xcnewvec, HASHSTEP): New helper macros.
15343 * cpplib.h: Update prototypes.
15344 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
15345 (cppmacro.o): New rule.
15346 (cpphash.o): Update deps.
15347
15348 * cppmain.c: Do not set pfile->printer if no_output is on.
15349
15350 2000-07-15 Neil Booth <neilb@earthling.net>
15351
15352 * cpplib.c: Change all directive-handler functions to return
15353 void, not int.
15354 * cpphash.h: Update typedefs.
15355
15356 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
15357
15358 * configure: Regenerate.
15359
15360 * extend.texi (Extended Asm): Mention that a memory clobber
15361 does not count as a side-effect.
15362
15363 * unroll.c (copy_loop_body): Fix one instance of using host
15364 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
15365 cross-compile.
15366
15367 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
15368
15369 2000-07-17 Richard Henderson <rth@cygnus.com>
15370
15371 * config/ia64/ia64.md (movdi): Split out load address code.
15372 New post-reload splitter for symbolic operands.
15373 (movdi_internal): Abort if we didn't split symbolic operands
15374 when we should have.
15375 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
15376 (ia64_reorg): Split insns when not optimizing.
15377 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
15378
15379 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
15380
15381 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
15382 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
15383
15384 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
15385
15386 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
15387
15388 2000-07-17 Jason Merrill <jason@redhat.com>
15389
15390 * Makefile.in (clean): Remove libgcc directory.
15391
15392 * configure.in (-Wno-long-long check): Use higher-level macros.
15393
15394 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
15395
15396 * simplify-rtx.c (simplify_binary_operation): Recognize
15397 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
15398 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
15399 a CONST_INT, it will always be zero.
15400
15401 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
15402
15403 * loop.c (check_dbra_loop) : Return if more than one condition is
15404 present to control the loop.
15405
15406 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
15407
15408 * mips.c (mips_expand_prologue): Don't calculate the last argument
15409 register unless we need it. When we are calculating this, make
15410 sure FUNCTION_ARG is giving us a REG.
15411
15412 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15413
15414 * flow.c (libcall_dead_p): Use single_set to verify the insn
15415 has only one set and get for analysis.
15416 (propagate_one_insn): Don't pass the PATTERN of the insn.
15417
15418 2000-07-17 Mark Klein <mklein@dis.com>
15419
15420 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
15421
15422 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
15423
15424 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
15425 * configure.in (TARGET_GETGROUPS_T): Evaluate.
15426 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
15427 of second argument of getgroups.
15428 * configure, config.in: Rebuilt.
15429
15430 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
15431
15432 * simplify-rtx.c (simplify_relational_operation): Two signed
15433 values with equal high words are less/greater than each other if
15434 their low words are less/greater when considered as unsigned.
15435
15436 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
15437
15438 * configure.in (vax-*-openbsd): Change to new style configuration,
15439 add collect2/float_format information.
15440 * configure: Rebuilt.
15441 * config/vax/openbsd1.h: New.
15442 * config/vax/openbsd.h: New.
15443 * config/vax/t-openbsd: New.
15444
15445 2000-07-17 Chip Salzenberg <chip@valinux.com>
15446
15447 * c-common.c (shorten_compare): Quiet warnings about unsigned
15448 comparisons with zero when they occur in a system header.
15449
15450 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
15451
15452 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
15453 update to describe current practice.
15454
15455 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
15456
15457 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
15458 references to C9X. Change references to -fstd and -flang-isoc9x
15459 to refer to -std.
15460
15461 * c-common.c (scan_char_table): Allow "z" length modifiers on
15462 diouxXn formats.
15463 (check_format_info): Use TYPE_DOMAIN on the type matched against
15464 for "z" formats, to retrieve the language size_t rather than the
15465 internal one.
15466
15467 * c-common.c (check_format_info): Do not make a pedantic objection
15468 to the 'L' length modifier if used with a floating point type
15469 character.
15470
15471 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
15472 constants in C99 mode.
15473
15474 2000-07-17 Kazu Hirata <kazu@hxi.com>
15475
15476 * h8300.md: Fix the format of mac.
15477 (movsi_h8300hs): Output a tab after stmac instead of a space.
15478
15479 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
15480 profitable adds/subs sequences.
15481
15482 * fold-const.c: Fix comment typos.
15483
15484 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
15485
15486 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
15487
15488 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15489
15490 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
15491
15492 2000-07-16 Neil Booth <NeilB@earthling.net>
15493
15494 * cpplex.c: Update comments.
15495 * README.Portability: Small update.
15496
15497 2000-07-16 Neil Booth <NeilB@earthling.net>
15498
15499 * README.Portability: Small update.
15500
15501 2000-07-15 Richard Henderson <rth@cygnus.com>
15502
15503 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
15504 * config/ia64/ia64.c (ia64_move_ok): New function.
15505 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
15506 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
15507
15508 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
15509
15510 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
15511 immediately following a paste operator.
15512 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
15513 (cpp_reader_init): Call it, if HOST_EBCDIC.
15514 (cpp_handle_options): Do not sort option list here.
15515 (handle_option): Rename to cpp_handle_option and export.
15516 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
15517 _cpp_get_token directly.
15518 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
15519 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
15520 * cpplib.h: Prototype cpp_handle_option. Update prototype of
15521 cpp_scan_line.
15522
15523 2000-07-15 Richard Henderson <rth@cygnus.com>
15524
15525 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
15526 cast around an expression. Tidy other unsigned tests.
15527
15528 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
15529
15530 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
15531 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
15532 (v_message_with_decl): Rename to ...
15533 (format_with_decl): ... this. Tweak
15534 (diagnostic_for_decl): New function.
15535 (fatal_io_error): Use verbatim in lieu of notice.
15536 (announce_function): Use verbatim.
15537 (default_print_error_function): Likewise.
15538 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
15539 infratructure.
15540
15541 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15542
15543 * mips.c (function_arg_pass_by_reference): Don't do automatic
15544 aggregate initialization.
15545 (machine_dependent_reorg): Initialize variable `mode'.
15546
15547 * mips.md (absdi2): Change variable `regno1' to unsigned int.
15548 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
15549 conflicts with sys/param.h macro of the same name.
15550 (reload_outdi): Likewise.
15551
15552 2000-07-15 Michael Meissner <meissner@redhat.com>
15553
15554 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
15555 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
15556 create a new node instead.
15557
15558 2000-07-15 Neil Booth <NeilB@earthling.net>
15559
15560 * README.Portability: Correct example about calling a function
15561 through a pointer to function. Format wide paragraphs.
15562
15563 2000-07-15 Michael Meissner <meissner@redhat.com>
15564
15565 * README.Portability: Update integer suffixes and function
15566 prototype sections.
15567
15568 2000-07-15 Neil Booth <NeilB@earthling.net>
15569
15570 * README.Portability: Small update.
15571
15572 2000-07-15 Neil Booth <NeilB@earthling.net>
15573
15574 * README.Portability: New file.
15575
15576 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
15577
15578 * INSTALL: Give special instructions for building GCC on Irix 6.
15579 * config/mips/x-iris6 (CC): Don't set it.
15580 (OLDCC): Likewise.
15581
15582 2000-07-14 Jason Merrill <jason@redhat.com>
15583
15584 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
15585 register in the stack and later in another register, use the new
15586 register.
15587
15588 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
15589
15590 * config/mips/mips.md: (absdi2): Handle sign_extend for
15591 second operand.
15592
15593 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
15594
15595 * cpplib.c (do_pragma_dependency): Tidy warning messages.
15596
15597 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
15598
15599 * .cvsignore: Correct typo.
15600
15601 2000-07-13 Mark Mitchell <mark@codesourcery.com>
15602
15603 * .cvsignore: Add generated YACC files.
15604 * objc/.cvsignore: New file.
15605
15606 2000-07-14 Neil Booth <NeilB@earthling.net>
15607
15608 * cpplex.c (adjust_column): New funcion.
15609 (skip_whitespace): Use it.
15610 (skip_block_comment): Use it, and warn about /*/* with
15611 -Wcomments.
15612
15613 2000-07-14 Neil Booth <NeilB@earthling.net>
15614
15615 * cpphash.c (struct macro_info): Add new members.
15616 (_cpp_free_definition): Delete the macro directly.
15617 (count_params): Return void, with first token of
15618 expansion in struct macro_info on success.
15619 (parse_define): Return int. Hoist syntax checking from
15620 save_macro_expansion. Leave call to save_expansion to
15621 _cpp_create_definition.
15622 (alloc_macro): Needs just 2 arguments.
15623 (free_macro): Delete.
15624 (save_expansion): Don't perform syntax check.
15625 (_cpp_create_definition): Call save_expansion.
15626
15627 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15628
15629 * genrecog.c (write_header): Split long string.
15630
15631 * cpphash.c (macro_info): Don't use the `signed' keyword.
15632
15633 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
15634
15635 2000-07-13 Jakub Jelinek <jakub@redhat.com>
15636
15637 * calls.c (stored_args_map): New variable.
15638 (check_sibcall_argument_overlap_1): New.
15639 (check_sibcall_argument_overlap): New.
15640 (expand_call): Initialize stored_args_map.
15641 Call check_sibcall_argument_overlap.
15642
15643 2000-07-13 Bruce Korb <bkorb@gnu.org>
15644
15645 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
15646 (emit_gnu_type): utility procedure for gnu_type_fix
15647 (gnu_type_fix): implement various pre-processor guards around
15648 standard types so these types can be defined over and over
15649 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
15650 types alluded to above will have GNU-compliant base types
15651 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
15652 * fixinc/inclhack.def: add test_text entries and utilize the new
15653 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
15654 * fixinc/fixincl.x: regenerate
15655
15656 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
15657
15658 * diagnostic.c (vline_wrapper_message_with_location,
15659 v_message_with_file_and_line, v_error_with_file_and_file,
15660 v_error_for_asm, v_warning_for_asm, vfatal,
15661 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
15662 vsorry, verror, vwarning, vpedwarn): Remove.
15663 (diagnostic_for_asm): New function.
15664 (pedwarn, error, warning, pedwarn_with_file_and_line,
15665 error_with_file_and_line, warning_with_file_and_line, sorry,
15666 error_for_asm, warning_for_asm, fatal): Reimplement.
15667 (finish_diagnostic): Clear diagnostic info as well.
15668
15669 2000-07-13 Neil Booth <NeilB@earthling.net>
15670
15671 * c-common.h (flag_digraphs): New.
15672 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
15673 * c-lex.c (yylex): Use flag_digraphs to decide whether to
15674 honour digraphs.
15675
15676 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
15677
15678 * gcc.c (do_spec_1): Add new %B operator.
15679 (set_input): Prepare for %B.
15680
15681 (link_command_spec): Move up with the other tm.h-
15682 overrideable specs. Factor out the portion conditional on
15683 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
15684 (struct compiler): Just have a single spec string. All users
15685 updated.
15686 (default_compilers): Remove unnecessary braces.
15687 (static_specs): Update.
15688
15689 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
15690 named specs.
15691 (C and assembly specs): Use the new named specs, as appropriate.
15692
15693 * objc/lang-specs.h: Use the new named specs.
15694 Remove unnecessary braces.
15695
15696 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
15697
15698 * gcc.c (execute): If a subprocess gets a fatal signal, report
15699 strsignal() of the signal number, and ask for a bug report.
15700 Do not do this for SIGPIPE if there's already been an error.
15701
15702 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
15703 Delete pipe_closed.
15704
15705 * tradcif.c: Remove.
15706
15707 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
15708
15709 * final.c (profile_function): Do not emit profile counters in
15710 the data section, if NO_PROFILE_COUNTERS is defined.
15711 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
15712 FUNCTION_PROFILER.
15713
15714 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
15715 (FUNCTION_PROFILER): Just emit a call to mcount.
15716
15717 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
15718
15719 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
15720
15721 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
15722 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
15723 traditional, lang_chill, or lang_fortran.
15724
15725 * cppfiles.c: #undef strcmp to suppress warning about macros
15726 used without arguments.
15727 (_cpp_execute_include): Use f, not fname, in "No include path"
15728 error.
15729 (_cpp_pop_file_buffer): New function.
15730 * cpplib.c: Don't include <sys/mman.h>.
15731 (cpp_push_buffer): Set line_base and lineno in new buffer.
15732 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
15733
15734 * cpplex.c: Move all prototypes and structure declarations to the
15735 top of the file. Properly parenthesise some macro arguments.
15736 (cpp_scan_line): New function.
15737 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
15738 don't need to walk up the stack counting.
15739
15740 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15741
15742 * c-common.c (combine_strings): Emit a pedantic warning when a
15743 string length is greater than the minimum ANSI C is required
15744 to support.
15745
15746 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
15747
15748 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
15749 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
15750
15751 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15752
15753 * c-decl.c (define_label): Warn about identifier conflicts with
15754 labels in traditional C.
15755
15756 * c-parse.in (unop +): Warn about the unary plus operator for
15757 traditional C.
15758
15759 * c-typeck.c (store_init_value): Warn about automatic aggregate
15760 initialization for traditional C.
15761
15762 * invoke.texi (-Wtraditional): Document new warnings.
15763
15764 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
15765
15766 * Makefile.in (c-errors.o): Fix thinko in dependency.
15767
15768 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
15769
15770 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
15771 -traditional, -ftraditional, or -traditional-cpp was given.
15772 Do not pass -traditional to the preprocessor.
15773 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
15774 preprocessor does it automatically.
15775 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
15776
15777 * ch/lang-specs.h: Always use tradcpp. Do not pass
15778 -traditional, -trigraphs, or -pedantic to the preprocessor.
15779 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
15780 _LANGUAGE_FORTRAN.
15781
15782 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
15783
15784 * cppexp.c (LOGICAL): Delete macro.
15785 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
15786 and && directly.
15787
15788 * cpphash.c (HASHSIZE): Increase to 4096.
15789 (struct hashdummy): Add hash field.
15790 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
15791 the string values using memcmp.
15792 (cpp_lookup): Set dummy.hash.
15793
15794 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
15795
15796 * configure.in (m88k-openbsd): Express configuration using new fragment
15797 style.
15798 * configure: Rebuilt.
15799 * m88k/aout-dbx.h: New.
15800 * m88k/openbsd.h: New.
15801 * m88k/xm-openbsd.h: New.
15802
15803 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15804
15805 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
15806
15807 2000-07-12 Richard Henderson <rth@cygnus.com>
15808
15809 * reload.c (push_secondary_reload): Make sure to add the new
15810 reload at the end, after acquiring secondary memory.
15811
15812 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15813
15814 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
15815
15816 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
15817 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
15818
15819 * c-parse.in (stmt): Delete unused variables.
15820
15821 * convert.c (convert_to_vector): Likewise.
15822
15823 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
15824
15825 * tree.c (finish_vector_type): Prototype.
15826
15827 2000-07-12 Bruce Korb <bkorb@gnu.org>
15828
15829 * fixinc/fixfixes.c: use xmalloc
15830 * fixinc/fixincl.c(initialize): set program name for xmalloc
15831 * fixinc/fixlib.c(must_malloc): obsolete
15832 (is_cxx_header): no longer used - disabled
15833 (skip_quote): inserted and disabled for future use
15834 * fixinc/fixlib.h: reflects above
15835 * fixinc/fixtests.c: removed dinkleberries
15836
15837 2000-07-12 Neil Booth <NeilB@earthling.net>
15838
15839 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
15840 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
15841
15842 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
15843 struct toklist_dummy): New.
15844 (cpp_free_definition): Free macros with free_macro.
15845 (count_params): Don't save paramter spellings. Save macro
15846 information in a struct macro_info.
15847 (parse_define): Don't allocate a token list.
15848 (save_expansion): Allocate the macro's token list, and
15849 save parameter spellings if necessary. Use TOKEN_SPELL.
15850 (cpp_create_definition): Make list const.
15851
15852 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
15853
15854 * c-typeck.c (pedwarn_c99): Move to
15855 * c-errors.c: ... Here.
15856 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
15857 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
15858 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
15859 (c-errors.o): List dependency.
15860
15861 2000-07-12 Mark Mitchell <mark@codesourcery.com>
15862
15863 * c-parse.c: Remove.
15864 * c-parse.h: Likewise.
15865 * c-parse.y: Likewise.
15866 * objc/objc-parse.c: Likewise.
15867 * objc/objc-pasre.y: Likewise.
15868
15869 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
15870
15871 * gcc.texi: Fix minor typos
15872 * extend.texi: Fix minor typos
15873
15874 2000-07-11 Marc Espie <espie@openbsd.org>
15875
15876 * collect2.c (main): Recognize .lo as object files.
15877
15878 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
15879
15880 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
15881 true.
15882
15883 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
15884 with MAP_ANONYMOUS and MAP_ANON.
15885 * configure, config.in: Rebuilt.
15886
15887 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
15888
15889 * diagnostic.c (save_output_state): Remove.
15890 (restore_output_state): Likewise.
15891 (clear_text_info): New function.
15892 (clear_diagnostic_info): Likewise.
15893 (output_text_length, is_starting_newline, output_prefix,
15894 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
15895 prefixing_policy, output_buffer_ptr_to_format_args): New macros
15896 (set_real_maximum_length, output_set_maximum_length,
15897 output_set_prefix, output_get_prefix, output_set_maximum_length,
15898 output_destroy_prefix, init_output_buffer,
15899 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
15900 output_add_newline, output_add_character, output_add_space,
15901 output_append_r, output_append, wrap_text, output_format,
15902 output_do_printf, output_printf, output_do_verbatim,
15903 output_verbatim, verbatim): Use them.
15904 (output_clear): Split into cleat_text_info and
15905 clear_diagnostic_info.
15906 (struct output_state): Move to...
15907
15908 * diagnostic.h: ...Here
15909 (struct output_buffer): Adjust.
15910
15911 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
15912
15913 * cpplex.c (parse_name): No longer inline (premature optimization).
15914 (do_pop_context): Fold into pop_context.
15915 (pop_context): Returns int.
15916 (lex_next): Hoist test for end of directive into pop_context.
15917 (push_macro_context): Returns int; takes just reader and token.
15918 Hoist test for excessive nesting to caller.
15919 (push_arg_context): Returns void; takes just reader and token.
15920 Do not call stringify_arg or get_raw_token.
15921 (get_raw_token): Convert tail recursion through push_arg_context
15922 to a loop at this level. Call stringify_arg here if appropriate.
15923 (maybe_paste_with_next): Convert tail recursion to a while loop.
15924 Hoist test of paste_level to caller.
15925
15926 (stringify_arg): Push arg context at beginning.
15927 (cpp_get_token): Split out core into _cpp_get_token. Call
15928 process_directive here. Throw away CPP_PLACEMARKER tokens.
15929 (_cpp_get_token): Convert tail recursion through
15930 push_macro_context to a loop at this level.
15931 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
15932 _cpp_get_raw_token): Use _cpp_get_token.
15933 (_cpp_skip_rest_of_line): Drop the context stack directly; do
15934 not call pop_context.
15935 (_cpp_run_directive): Call lex_next directly.
15936
15937 * cpphash.h: Prototype _cpp_get_token.
15938 * cppexp.c (lex): Use it.
15939 * cpphash.c (parse_define): Use it.
15940 * cpplib.c (get_define_node, do_undef, parse_include,
15941 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
15942 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
15943 parse_ifdef, validate_else): Use it.
15944 (cpp_push_buffer): Tweak error message; abort if anyone tries
15945 to push a buffer while macro expansions are stacked.
15946
15947 2000-07-11 Donn Terry <donnte@microsoft.com>
15948
15949 * cpplex.c (free_macro_args, save_token): Cast arg of free
15950 and/or xrealloc to PTR.
15951 (_cpp_init_input_buffer): Clear all fields of the base context.
15952
15953 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
15954
15955 * gensupport.c (process_rtx): Make rtl checking stop
15956 complaining about the define_insn while it is being
15957 converted from a define_insn_and_split.
15958
15959 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
15960
15961 * config/mips/mips.c (simple_memory_operand): Access the
15962 INTVAL of the address, not it's containing MEM.
15963
15964 2000-07-11 Bruce Korb <bkorb@gnu.org>
15965
15966 * fixinc/fixtests.c(double_slash): obsolete
15967 (else_endif_label): likewise
15968 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
15969 (libc1_ifdefd_memx): correct initial comment
15970 and omit the #if/#endif pair from the memxxx declarations
15971 * fixinc/fixincl.x: regen
15972
15973 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15974
15975 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
15976
15977 2000-07-11 Neil Booth <NeilB@earthling.net>
15978
15979 * cpp.texi: Update.
15980
15981 2000-07-11 Neil Booth <NeilB@earthling.net>
15982
15983 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
15984 (handle_option): Set digraphs according to standard.
15985 Merge OPT_lang_c89 handler with OPT_std_c89.
15986
15987 * cpplex.c: (lex_line, can_paste): Honour digraphs in
15988 accordance with the digraphs flag.
15989
15990 * cpplib.h: (struct cpp_options): New option digraphs.
15991
15992 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
15993 Bruce Korb <bkorb@gnu.org>
15994
15995 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
15996 * fixinc/fixincl.x: Regenerate.
15997 * fixinc/tests/base/testing.h: Add testcase.
15998
15999 2000-07-10 Richard Henderson <rth@cygnus.com>
16000
16001 * config/ia64/ia64.c (got_symbolic_operand): New.
16002 (symbolic_operand, move_operand): Revert 0701 change.
16003 * config/ia64/ia64.h (PREDICATE_CODES): Update.
16004 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
16005 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
16006 split the offset into a 14-bit low part instead of a 13-bit low part.
16007 (load_fptr): Mark the mem as unchanging.
16008 (load_symptr): Use got_symbolic_operand.
16009
16010 2000-07-10 Nick Clifton <nickc@cygnus.com>
16011
16012 * libgcc2.c (next_stack_level): Cast result of computation to
16013 (void **) so that the assignment does not generate a warning.
16014
16015 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
16016
16017 * flags.h : Add new variable flag_single_precision_constant.
16018 * toplev.c (display_help) : Add -fsingle-precision-constant option.
16019 (flag_single_precision_constant): New.
16020 * c-lex.c (yylex): Convert floating point constant to single
16021 precision constant.
16022 * invoke.texi : Add documentation for this new option.
16023
16024 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
16025
16026 * diagnostic.c (output_octal): Second parameter is unsigned.
16027 (output_long_octal): Likewise.
16028 (output_hexadecimal): Likewise.
16029 (output_long_hexadecimal): Likewise.
16030 (output_format): Adjust arguments extraction. Tweak.
16031 (output_verbatim, verbatim): End variable argument list.
16032 (report_diagnostic): Improve documentation.
16033
16034 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
16035
16036 * c-common.h (build_stmt): Declare.
16037 (build_continue_stmt): Likewise.
16038 (build_break_stmt): Likewise.
16039 (build_return_stmt): Likewise.
16040
16041 * c-decl.c (do_case): Rewrite to do what previously done in
16042 c-parse.in.
16043
16044 * c-semantics.c (build_stmt): Define.
16045 (build_return_stmt): Likewise.
16046 (build_break_stmt): Likewise.
16047 (build_continue_stmt): Likewise.
16048 (build_case_label): Likewise.
16049
16050 * c-parse.in (BREAK): Change to build tree, then generate RTL.
16051 (CONTINUE): Likewise.
16052 (RETURN): Likewise.
16053 (CASE): Likewise.
16054 (DEFAULT): Likewise.
16055
16056 * c-parse.y: Regenerate.
16057 * c-pasre.c: Likewise.
16058
16059 2000-07-09 Jason Merrill <jason@redhat.com>
16060
16061 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
16062
16063 * tree.h (STRIP_NOPS): Check for error_mark_node.
16064 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
16065 (dwarf2out_*): Remove duplicate declarations.
16066
16067 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
16068 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
16069
16070 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
16071
16072 * diagnostic.c (wrap_text): New function.
16073 (maybe_wrap_text): Likewise.
16074 (output_add_string): Use it.
16075 (output_format): Likewise.
16076 (count_error): Use verbatim instead of notice.
16077 (report_error_function): Likewise. Don't use plain fprintf.
16078 (finish_diagnostic): New function.
16079 (output_do_verbatim): Tweak. Commonalize functionalities in
16080 output_verbatim and verbatim.
16081 (output_verbatim): Adjust.
16082 (verbatim): Likewise.
16083 (report_diagnostic): Define.
16084
16085 * diagnostic.h (report_diagnostic): Prototype.
16086
16087 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
16088
16089 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
16090
16091 2000-07-09 Neil Booth <NeilB@earthling.net>
16092
16093 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
16094 IShspace, ISspace: Update.
16095
16096 * cppinit.c: ISTABLE: Update.
16097 V: New.
16098
16099 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
16100 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
16101 (skip_block_comment, skip_line_comment, parse_string,
16102 lex_line): Use is_vspace rather than IS_NEWLINE.
16103 (skip_whitespace, lex_line): Clean up to use is_nvspace.
16104 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
16105 gets a BOL flag.
16106 (lex_next): Unconditionally stop if within a directive.
16107 Treat directives within macro invocations as directives
16108 (after parse_args emits error), not as the argument.
16109
16110 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
16111
16112 * diagnostic.c (diagnostic_args): New macro.
16113 (diagnostic_msg): Likewise.
16114 (output_formatted_integer): Likewise.
16115 (output_state): New data type.
16116 (digit_buffer): Make global.
16117 (output_add_integer): Rename to output_decimal. Squeeze
16118 digit_buffer.
16119 (output_long_decimal, output_unsigned_decimal,
16120 output_long_unsigned_decimal, output_octal, output_long_octal,
16121 output_hexadecimal, output_long_hexadecimal): New functions.
16122 (output_append_r): New function.
16123 (output_append): Tweak.
16124 (output_flush_on): Rename to output_to_stream.
16125 (output_format): Change prototype. Improve documentation. Handle
16126 more format specifiers.
16127 (build_location_prefix): Rename to context_as_prefix.
16128 (output_notice): Rename to output_do_printf.
16129 (output_printf): Tweak.
16130 (line_wrapper_printf): Likewise.
16131 (vline_wrapper_message_with_location): Adjust call to renamed
16132 functions.
16133 (v_message_with_decl): Likewise.
16134 (default_print_error_function): Likewise.
16135 (save_output_state): New function.
16136 (restore_output_state): Likewise.
16137 (output_do_verbatim): Likewise.
16138 (output_verbatim): Define.
16139 (verbatim): Likewise.
16140
16141 * diagnostic.h (printer_fn): Change return type from void to int.
16142 Improve documentation.
16143 (output_add_integer): Rename to output_decimal.
16144 (output_flush_on, output_format): Don't export.
16145 (output_verbatim, verbatim): Declare.
16146
16147 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
16148
16149 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
16150 Check whether c divides op1 exactly if operation is not
16151 multiplication.
16152
16153 2000-07-08 Richard Henderson <rth@cygnus.com>
16154
16155 * final.c (final): Do not abort when reg-stack introduces
16156 a new insn.
16157
16158 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
16159
16160 * cpplib.h (struct cpp_name): Now struct cpp_string.
16161 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
16162 CPP_HEADER_NAME): Change to type S.
16163 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
16164 field, a cpp_hashnode *. All references to val.name updated
16165 to use val.str or val.node as appropriate.
16166 (struct cpp_reader): Add spec_nodes field.
16167 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
16168
16169 * cpphash.h (struct spec_nodes): New.
16170 (enum spell_type): Reorder. Only SPELL_STRING tokens use
16171 val.str. All references to 'spelling > SPELL_NONE' updated to
16172 match.
16173
16174 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
16175 pfile->buffer->inc are not NULL before dereferencing them.
16176
16177 * cpplex.c (parse_name): Take a pointer to the current token,
16178 plus current position and limit as args; return the new
16179 position; don't copy the text of a name into the string
16180 buffer, instead call cpp_lookup and store the node pointer.
16181 If extending a token, copy out the text of the old into a
16182 scratch buffer, append the new, look that up and store the new
16183 node pointer. Inline.
16184 (maybe_paste_with_next): If the result of paste is a NAME,
16185 then look up the pasted text and store its node pointer.
16186 (lex_line): Adjust for new parse_name interface.
16187 Check for L"str", L'str' using spec_nodes->n_L.
16188 (spell_token): SPELL_IDENT tokens have their spelling in
16189 val.node->name. Handle SPELL_STRING tokens that don't have
16190 string delimiters.
16191 (_cpp_expand_name_space,
16192 (can_paste): Check for L ## "str" using spec_nodes->n_L.
16193 (cpp_get_token, special_symbol): No need to call cpp_lookup.
16194 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
16195 return 1=equal 0=not, not a tristate.
16196
16197 * cpphash.c (var_args_str): Delete.
16198 (find_param): Compare node fields directly.
16199 (is__va_args__): Use CPP_PEDANTIC. Just compare
16200 token->val.node with spec_nodes->n__VA_ARGS__.
16201 (dump_funlike_macro): Don't use var_args_str.
16202
16203 * cpplib.c (_cpp_check_directive): Just walk through
16204 spec_nodes->dirs comparing pointers.
16205 (get_define_node, do_pragma_poison, detect_if_not_defined,
16206 parse_ifdef): The identifier has already been looked up.
16207 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
16208 node.
16209 (do_if): Only call detect_if_not_defined at beginning of file.
16210 (_cpp_parse_assertion): Only copy string pointers for
16211 SPELL_STRING tokens.
16212 (pragma_dispatch): Take a node pointer and examine its name
16213 field.
16214 (_cpp_init_stacks): Also initialize the spec_nodes structure.
16215
16216 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
16217 _cpp_init_macros.
16218 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
16219 reverse order from the corresponding _cpp_init_* routines.
16220
16221 * cppexp.c (parse_number, parse_charconst, parse_defined,
16222 lex): Check val.node->type instead of calling cpp_defined.
16223 Use spec_nodes entries where appropriate.
16224
16225 * fix-header.c, scan-decls.c: Update for interface changes.
16226
16227 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
16228
16229 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
16230 emitting aux_truncdfsf2.
16231
16232 2000-07-03 Donn Terry (donnte@microsoft.com)
16233
16234 * cppinit.c (print_help): split overlong line into ISO C89
16235 maximum chunks.
16236
16237 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
16238
16239 * cppexp.c: Update all code for new lexer interface.
16240 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
16241 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
16242 * cpplex.c (token_names): Trim leading CPP_ from names; make
16243 the strings unsigned.
16244 (_cpp_spell_operator): New.
16245 (is_macro_disabled): Disable all macros if rescanning
16246 preprocessed text.
16247 (_cpp_get_directive_token): Remove.
16248
16249 * cppinit.c: Don't set no_macro_expand.
16250 * cpplib.c (read_line_number, do_line): Check only for EOF,
16251 not VSPACE.
16252 * cpphash.h: Update prototypes.
16253 * cpplib.h (CPP_VSPACE): Remove.
16254 (struct cpp_reader): Remove no_macro_expand.
16255
16256 2000-07-08 Neil Booth <NeilB@earthling.net>
16257
16258 * cpphash.c (is__va_args__): New function.
16259 (count_params): Fix line reported in error messages. Use
16260 is__va_args__. Don't return ')' on error. Flag GNU style
16261 rest args macro definitions.
16262 (parse_define): Check macro name is not __VA_ARGS__.
16263 (save_expansion): Check identifier in non-varargs-macro is
16264 not __VA_ARGS__. Don't flag GNU_VARARGS.
16265 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
16266 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
16267 than per-token GNU_VARARGS.
16268 * cpplib.h (GNU_VARARGS): Remove.
16269 (GNU_REST_ARGS): New.
16270
16271 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
16272
16273 * i386.md (call_pop, call, call_value_pop): Do not set
16274 current_function_uses_pic_offset_table for calls to static
16275 functions or indirect calls.
16276
16277 2000-07-07 Jim Wilson <wilson@cygnus.com>
16278
16279 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
16280 is_predicate_reg, then take max write_count of register pair.
16281
16282 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16283
16284 * tradcpp.c (main): Rename label `include' to `add_include' to
16285 avoid conflicts with variable `include' in traditional C.
16286
16287 2000-07-07 Jakub Jelinek <jakub@redhat.com>
16288
16289 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
16290
16291 2000-07-07 Jakub Jelinek <jakub@redhat.com>
16292
16293 * sibcall.c (uses_addressof): Add INMEM argument, check for
16294 current_function_internal_arg_pointer outside of MEM rtxs in addition
16295 to ADDRESSOFs.
16296 (sequence_uses_addressof): Update caller.
16297
16298 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
16299
16300 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
16301 and friends.
16302
16303 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16304
16305 * system.h (UNION_INIT_ZERO): New macro for initializing union
16306 members in structs.
16307
16308 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
16309
16310 2000-07-07 Neil Booth <NeilB@earthling.net>
16311
16312 * cpp.texi: Update.
16313
16314 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
16315
16316 * final.c (final): Detect out of bounds array access to
16317 the insn_lengths array.
16318
16319 2000-07-07 Kazu Hirata <kazu@hxi.com>
16320
16321 * fold-const.c (fold): Fix a comment typo.
16322
16323 2000-07-07 Neil Booth <NeilB@earthling.net>
16324
16325 * cpp.texi: Update to new lexer.
16326
16327 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
16328
16329 * tradcpp.c: New file.
16330 * tradcif.y: New file.
16331 * tradcif.c: New generated file.
16332
16333 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
16334 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
16335 dependencies of C. Install tradcpp from install-common, in
16336 $(libsubdir).
16337
16338 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
16339
16340 * cppinit.c: Include cppdefault.h. Refer to
16341 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
16342 to GCC_INCLUDE_DIR and its length.
16343 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
16344 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
16345 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
16346 cppdefault.h.
16347 (include_defaults_array): Move to cppdefault.c.
16348
16349 * cppdefault.h: New file.
16350 * cppdefault.c: New file.
16351
16352 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
16353 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
16354 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
16355 this file.
16356
16357 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16358
16359 * reload.c (push_reload): When seeing if can reuse a register,
16360 check extra registers against widest of INMODE and OUTMODE.
16361
16362 2000-07-06 Neil Booth <NeilB@earthling.net>
16363
16364 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
16365 based on full length of predicate.
16366
16367 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
16368
16369 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
16370 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
16371
16372 2000-07-05 Kazu Hirata <kazu@hxi.com>
16373
16374 * h8300-proto.h: Fix formatting.
16375 * h8300.c: Likewise.
16376 * h8300.h: Likewise.
16377
16378 2000-07-05 Jim Wilson <wilson@cygnus.com>
16379
16380 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
16381 CCmode.
16382
16383 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
16384
16385 * invoke.texi: Fix minor typos
16386 * md.texi: Fix minor typos
16387
16388 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
16389
16390 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
16391
16392 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
16393
16394 * cpplex.c: Don't include sys/mman.h.
16395 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
16396
16397 * cpplib.c: Include sys/mman.h and obstack.h.
16398 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
16399 obstack.
16400 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
16401 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
16402 bother freeing if stack entries (they will be freed with their buffer).
16403 (do_endif): Free if stack entries from the buffer obstack.
16404 (push_conditional): Allocate if stack entries from the buffer obstack.
16405
16406 (find_answer): Rename to _cpp_find_answer.
16407 (do_assert, do_unassert): Update.
16408
16409 * cpphash.h: Update prototypes.
16410 (xobnew): New convenience macro.
16411 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
16412 Update comments.
16413 (struct cpp_hashnode): Remove disabled field.
16414
16415 * cppinit.c: Don't include hashtab.h or splay-tree.h.
16416 (report_missing_guard): Moved to cppfiles.c.
16417 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
16418 cpp_init_includes.
16419 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
16420 cpp_cleanup_includes. Don't destroy hashtab or
16421 all_include_files here.
16422 (cpp_finish): Use _cpp_report_missing_guards.
16423
16424 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
16425 (_cpp_init_include_table): Rename _cpp_init_includes.
16426 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
16427
16428 * cppexp.c (parse_assertion): Update for new name of
16429 find_answer.
16430
16431 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
16432
16433 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
16434
16435 * cpplib.c (do_ident): s/VSPACE/EOF/
16436
16437 2000-07-05 Neil Booth <NeilB@earthling.net>
16438
16439 * cpplex.c: Fix trigraph replacement within strings.
16440
16441 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16442
16443 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
16444
16445 * xcoffout.c (assign_type_number): Constify.
16446 (xcoffout_source_file): Add static prototype. Don't needlessly
16447 cast away const-ness.
16448
16449 2000-07-04 Jason Merrill <jason@redhat.com>
16450
16451 * frame.h (frame_state): Move base_offset to end.
16452
16453 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
16454
16455 * calls.c (emit_library_call_value_1): Revert previous change.
16456
16457 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
16458
16459 * fix-header.c (struct partial_proto): Remove unnecessary fields.
16460 (recognized_extern, recognized_function, read_scan_file):
16461 Update for new scheme.
16462 (check_protection): It's still a multiple include guard even
16463 if it doesn't always trigger.
16464 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
16465 new scheme.
16466 * scan.h: Declare struct cpp_token. Update prototypes.
16467
16468 2000-07-03 Neil Booth <neilb@earthling.net>
16469 Zack Weinberg <zack@wolery.cumb.org>
16470
16471 Complete overhaul of the lexer and macro expander.
16472
16473 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
16474 arg, arglist, argdata, reflist, collect_objlike_expansion,
16475 collect_funlike_expansion, collect_params,
16476 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
16477 unsafe_chars, macarg, compare_defs, special_symbol,
16478 scan_arguments, stringify, funlike_macroexpand,
16479 _cpp_quote_string, monthnames): Delete.
16480 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
16481 _cpp_create_definition, _cpp_dump_definition,
16482 dump_hash_helper): Adjust.
16483 (find_param, count_params, parse_define, var_args_str,
16484 check_macro_redefinition, save_expansion): New.
16485
16486 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
16487 parse_string, output_line_command, trigraph_replace,
16488 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
16489 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
16490 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
16491 _cpp_skip_rest_of_line): Modify.
16492
16493 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
16494 find_position, null_warning, bump_column, expand_name_space,
16495 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
16496 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
16497 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
16498 _cpp_prescan): Delete.
16499
16500 (dump_param_spelling, process_directive, lex_next,
16501 is_macro_disabled, stringify_arg, expand_context_stack,
16502 output_token, make_string_token, alloc_number_token,
16503 special_symbol, duplicate_token, maybe_paste_with_next,
16504 can_paste, prevent_macro_expansion, restore_macro_expansion,
16505 get_temp_token, release_temp_tokens, quote_string,
16506 token_names, token_spellings, _cpp_expand_name_space,
16507 _cpp_glue_header_name, _cpp_reserve_name_space,
16508 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
16509 placemarker_token, eof_token, cpp_context, macro_args,
16510 get_raw_token, parse_arg, parse_args, save_token,
16511 push_arg_context, push_macro_context, pop_context,
16512 do_pop_context, free_macro_args, _cpp_get_line,
16513 _cpp_run_directive): New.
16514
16515 * cpplib.c (validate_else, parse_include, push_conditional,
16516 pass_thru_directive, read_line_number, parse_ifdef,
16517 detect_if_not_defined, _cpp_check_directive, do_define,
16518 do_undef, do_include, do_import, do_include_next, do_error,
16519 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
16520 top_pragmas, do_pragma_gcc, do_pragma_implementation,
16521 do_pragma_poison, do_pragma_system_header,
16522 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
16523 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
16524 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
16525 cpp_defined): Update for new scheme.
16526 (strtoul_for_line, get_define_node, dump_macro_name,
16527 _cpp_check_linemarker, _cpp_parse_assertion): New.
16528 (_cpp_handle_directive, do_pragma_default): Delete.
16529
16530 * cpphash.h (struct predicate): Now struct answer.
16531 (enum spell_type, struct token_spelling, struct directive,
16532 directive_handler): New.
16533 Update prototypes. Remove unused macros.
16534 * cpplib.h: Update prototypes. Remove unused macros,
16535 structure definitions, and fields.
16536
16537 * cpperror.c (print_containing_files, v_message): Adjust.
16538 * cppexp.c (parse_assertion, lex, parse_escape,
16539 _cpp_parse_expr): Adjust.
16540 * cppfiles.c (open_include_file, _cpp_execute_include,
16541 _cpp_compare_file_date, cpp_read_file, read_include_file):
16542 Adjust.
16543 * cppinit.c (dump_special_to_buffer): Delete.
16544 (append_include_chain, merge_include_chains, cpp_reader_init,
16545 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
16546 cpp_finish, handle_option, print_help): Adjust.
16547 * cppmain.c (main): Adjust.
16548
16549 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
16550
16551 * cppspec.c (lang_specific_driver): Use double quotes in error
16552 message.
16553
16554 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
16555
16556 * calls.c (emit_library_call_value_1): Use valreg instead
16557 of hard_libcall_value.
16558
16559 2000-07-03 Geoff Keating <geoffk@cygnus.com>
16560
16561 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
16562 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
16563 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
16564 (movhi): Likewise.
16565 (movqi): Likewise.
16566 (movdf): Likewise.
16567 (movsf): Likewise.
16568 (movdi): Likewise.
16569 (movti): Likewise.
16570
16571 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
16572 mode instead of wider_mode is being used.
16573
16574 2000-07-03 Jakub Jelinek <jakub@redhat.com>
16575
16576 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
16577 of 'r'. Use q_regs_operand.
16578 (andsi_1+2): Use q_regs_operand.
16579
16580 2000-07-03 Jakub Jelinek <jakub@redhat.com>
16581
16582 * builtins.c (get_memory_rtx): Always put into alias set 0.
16583
16584 2000-07-03 Nick Clifton <nickc@cygnus.com>
16585
16586 * config/arm/arm.md: Fix post increment and pre increment
16587 peepholes so that they do not generate UNPREDICATBLE opcodes.
16588 (ie ones where the increment clobbers the source/destination).
16589
16590 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
16591
16592 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
16593 change too big for -mtiny-stack" a warning, if larger than 63.
16594 (out_set_stack_ptr): Change the logic so -mno-interrupts is
16595 always safe to use on possible future devices.
16596 (function_prologue): Write SPH before SPL, for consistency.
16597 If interrupt_func_p true, we know we have enabled interrupts.
16598 (avr_num_arg_regs): New function. Round up to even number of
16599 bytes if no -mpack-args or if calling a libgcc function.
16600 (function_arg, function_arg_advance): Use it.
16601 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
16602 Output "movw" if available.
16603 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
16604 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
16605 (asm_output_section_name): Add blanks for consistent output.
16606 (encode_section_info): Set TREE_READONLY for progmem data to
16607 avoid gas warnings about changed section attributes.
16608 (avr_hard_regno_mode_ok): Force non-QImode data to start in
16609 even numbered registers on devices with "movw".
16610 * config/avr/avr.h (MASK_*): Define bits for target_flags.
16611 (TARGET_SWITCHES): Mark help strings for translation.
16612 Add new -mpack-args and -menhanced switches.
16613 (TARGET_OPTIONS): Mark help strings for translation.
16614 (progmem_section): Add section attributes.
16615 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
16616 Output "movw" if available.
16617 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
16618 New patterns.
16619 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
16620 call convention (arguments aligned on even registers).
16621 (_cleanup, _exit): Make weak symbols libc can override.
16622
16623 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16624
16625 * fp-bit.h: New file.
16626
16627 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
16628 Comment #endif statements.
16629 (__thenan_sf, __thenan_df): Add missing braces around initializer.
16630
16631 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
16632
16633 * gcse.c (compute_pre_data): Compute ae_kill using other local
16634 properties instead of calling compute_ae_kill.
16635
16636 * alias.c (init_alias_analysis): Do not call
16637 prologue_epilogue_contains until after reload has completed.
16638
16639 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
16640
16641 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
16642 (genrtl_finish_compound_stmt): Likewise.
16643 (genrtl_compound_stmt): Change to return void.
16644
16645 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
16646 move code from here to ...
16647 (genrtl_compound_stmt): ... here.
16648 (genrtl_finish_compound_stmt): Remove.
16649 (expand_stmt): Add comment.
16650
16651 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
16652
16653 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
16654 and VOID_TYPE_P.
16655
16656 2000-07-02 Jakub Jelinek <jakub@redhat.com>
16657
16658 * cpplib.h (struct cpp_reader): New field include_depth.
16659 (struct cpp_printer): Rename last_bsd to last_id.
16660 * cppfiles.c (read_include_file): Bump include_depth.
16661 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
16662 (output_line_command): Output correct #line if a header
16663 is including itself and is not protected against multiple inclusion.
16664 Use include_depth instead of buffer_stack_depth, last_id instead of
16665 last_bsd.
16666 * cppinit.c (cpp_start_read): Initialize last_id instead of
16667 last_bsd.
16668
16669 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
16670
16671 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
16672 (c-semantics.o): New target.
16673
16674 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
16675 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
16676 (genrtl_clear_out_block): Likewise.
16677 (genrtl_goto_stmt): Likewise.
16678 (genrtl_expr_stmt): Likewise.
16679 (genrtl_decl_stmt): Likewise.
16680 (genrtl_if_stmt): Likewise.
16681 (genrtl_while_stmt): Likewise.
16682 (genrtl_do_stmt): Likewise.
16683 (genrtl_return_stmt): Likewise.
16684 (genrtl_for_stmt): Likewise.
16685 (genrtl_break_stmt): Likewise.
16686 (genrtl_continue_stmt): Likewise.
16687 (genrtl_scope_stmt): Likewise.
16688 (genrtl_switch_stmt): Likewise.
16689 (genrtl_case_label): Likewise.
16690 (genrtl_begin_compound_stmt): Likewise.
16691 (gerntl_finish_compound_stmt): Likewise.
16692 (genrtl_compound_stmt): Likewise.
16693 (genrtl_asm_stmt): Likewise.
16694 (genrtl_decl_cleanup): Likewise.
16695 (DECL_ANON_UNION_ELEMS): Likewise.
16696 (emit_local_var): Likewise.
16697 (make_rtl_for_local_static): Likewise.
16698 (expand_cond): Likewise.
16699 (expand_stmt): Likewise.
16700 (c_expand_return): Likewise.
16701 (c_expand_start_case): Likewise.
16702 (do_case): Likewise.
16703 (COMPOUND_STMT_NO_SCOPE): Likewise.
16704 (c_expand_asm_operands): Likewise.
16705 (NEW_FOR_SCOPE_P): New macro.
16706 (expand_expr_stmt_fn): New type.
16707
16708 (set_current_function_name_declared): Likewise.
16709 (current_function_name_declared): Likewise.
16710 (lang_expand_stmt): Likewise.
16711 (stmts_are_full_exprs_p): Likewise.
16712 (anon_aggr_type_p): Likewise.
16713 (lang_expand_expr_stmt): Likewise.
16714 (build_case_label): Likewise.
16715
16716 * c-decl.c (lang_expand_expr_stmt): Initialize.
16717 (stmts_are_full_exprs_p): Define.
16718 (current_function_name_declared): Likewise.
16719 (do_case): Likewise.
16720 (lang_expand_stmt): Likewise.
16721 (set_current_function_name_declared): Likewise.
16722 (anon_aggr_type_p): Likewise.
16723
16724 * c-semantics.c: New file.
16725 (expand_cond): Moved from cp/semantics.c.
16726 (genrtl_do_pushlevel): Likewise.
16727 (genrtl_clear_out_block): Likewise.
16728 (genrtl_goto_stmt): Likewise.
16729 (genrtl_expr_stmt): Likewise.
16730 (genrtl_decl_stmt): Likewise.
16731 (genrtl_if_stmt): Likewise.
16732 (genrtl_while_stmt): Likewise.
16733 (genrtl_do_stmt): Likewise.
16734 (genrtl_return_stmt): Likewise.
16735 (genrtl_for_stmt): Likewise.
16736 (genrtl_break_stmt): Likewise.
16737 (genrtl_continue_stmt): Likewise.
16738 (genrtl_scope_stmt): Likewise.
16739 (genrtl_switch_stmt): Likewise.
16740 (genrtl_case_label): Likewise.
16741 (genrtl_begin_compound_stmt): Likewise.
16742 (genrtl_finish_compound_stmt): Likewise.
16743 (genrtl_compound_stmt): Likewise.
16744 (genrtl_asm_stmt): Likewise.
16745 (genrtl_decl_cleanup): Likewise.
16746 (make_rtl_for_local_static): Moved from cp/decl.c.
16747 (emit_local_var): Likewise.
16748 (expand_stmt): Define.
16749
16750 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
16751 (c_expand_return): Likewise.
16752 (c_expand_start_case): Likewise.
16753
16754 2000-07-01 Richard Henderson <rth@cygnus.com>
16755
16756 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
16757 with the low 13 bits set.
16758 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
16759 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
16760 of the low 13 bits into a CONST plus an adddi3.
16761 (load_symptr): Set RTX_UNCHANGING_P.
16762
16763 See ChangeLog.3 for earlier changes.
This page took 0.727067 seconds and 4 git commands to generate.