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