]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
final.c (output_addr_const): Don't assume at least one operand is a CONST_INT.
[gcc.git] / gcc / ChangeLog
CommitLineData
cb51ecd2
AO
12000-12-01 Alexandre Oliva <aoliva@redhat.com>
2
08106825
AO
3 * final.c (output_addr_const) <PLUS>: Don't assume at least one
4 operand is a CONST_INT.
5
cb51ecd2
AO
6 * config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
7 (machine_dependent_reorg): Split all insns.
8 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
9 reg_class_contents[SIBCALL_REGS].
10 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS.
11 * config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel,
12 call_value_pcrel, call, call_value, sibcall): Match even when
13 not optimizing.
14 (sibcalli_pcrel, sibcall_pcrel): Likewise. Use constraint `k'
15 for call address.
16 (sibcalli): Likewise.
17
4d808927
JM
182000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
19
20 * c-common.c (warn_format, warn_format_y2k,
21 warn_format_extra_args, warn_format_nonliteral): Define.
22 (check_format_info): Check warn_format_nonliteral and
23 warn_format_extra_args.
24 (check_format_info_main): Check warn_format_y2k.
25 (set_Wformat): New function.
26 * c-common.h (warn_format_y2k, warn_format_extra_args,
27 warn_format_nonliteral, set_Wformat): Declare.
28 * c-decl.c (warn_format): Remove definition.
29 (c_decode_option): Handle -Wformat-nonliteral,
30 -Wno-format-extra-args and -Wno-format-y2k, and negated versions.
31 Use set_Wformat.
32 * invoke.texi: Document these new options and -Wformat=2.
33 * toplev.c (documented_lang_options): Add these new options.
34
e78f4a97
JM
352000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
36
37 * builtins.def (BUILT_IN_IMAXABS): Add.
38 * builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS.
39 * c-common.c (c_common_nodes_and_builtins): Create builtin
40 functions __builtin_imaxabs, and plain imaxabs unless
41 flag_no_nonansi_builtin outside C99 mode.
42 (expand_tree_builtin): Handle BUILT_IN_IMAXABS.
43 * extend.texi: Document builtin imaxabs.
44
5fd8e536
JM
452000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
46
47 * c-common.c: Include "defaults.h".
48 (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define.
49 (c_common_nodes_and_builtins): Create string_type_node,
50 const_string_type_node, wint_type_node, intmax_type_node,
51 uintmax_type_node, default_function_type, ptrdiff_type_node and
52 unsigned_ptrdiff_type_node.
53 * c-common.h (identifier_global_value): Declare.
54 * c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
55 (init_decl_processing): Don't create string_type_node,
56 const_string_type_node, wint_type_node, intmax_type_node,
57 uintmax_type_node, default_function_type, ptrdiff_type_node and
58 unsigned_ptrdiff_type_node.
59 (identifier_global_value): New function.
60
8d9e9a08
NB
612000-12-01 Neil Booth <neilb@earthling.net>
62
63 * cppinit.c (initialize): Forgotten prototype.
64 * cpplex.c (_cpp_lex_token): Loop until not skipping.
65 Always clear PREV_WHITE upon meeting a new line.
66 * cpplib.c (end_directive): Set pfile->skipping after
67 skip_rest_of_line.
68 * cpplib.h (cpp_reader): Remove macro_pos.
69 * cppmacro.c (cpp_get_line): Don't do anything special inside
70 macros.
71 (parse_arg): Add PREV_WHITE if a token appears after new lines.
72 (funlike_invocation_p): Save and restore the output position
73 over a successful check for a '('.
74 (enter_macro_context): Delete uses of macro_pos.
75 (cpp_get_token): Don't use pfile->skipping.
76
c4765d18
PE
772000-12-01 Phil Edwards <pme@sources.redhat.com>
78
79 * diagnostic.c: Fix typos in comments.
80 * diagnostic.h: Likewise.
81
815d683e
PE
822000-11-30 Phil Edwards <pme@sources.redhat.com>
83
84 * rtl.texi (Machine Modes): Document BImode and OImode.
85
ae24178a
JM
862000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
87
88 * gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and
89 .FPP.
90
c7b82833
JM
912000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
92
93 * c-decl.c (grokdeclarator): If pedantic, warn about arrays with
94 incomplete element type.
95 (grokparms): Before checking for incomplete parameter type, check
96 the type isn't error_mark_node.
97
ab937357
JJ
982000-12-01 Jakub Jelinek <jakub@redhat.com>
99
100 * builtins.c (target_char_cast): New function.
101 (expand_builtin_strchr): Use it.
102 (expand_builtin_strrchr): Use it.
103 (builtin_memset_read_str): New function.
104 (expand_builtin_memset): Use target_char_cast.
105 Try to optimize memset with second argument non-zero using
106 store_by_pieces.
107
3a69a7d5
MM
1082000-11-30 Marek Michalkiewicz <marekm@linux.org.pl>
109
110 * install.texi (avr): Replace incomplete list of supported MCU
111 types with a link to the current one ...
112 * invoke.texi (AVR Options): ... here. Update -mmcu= to list
113 all supported MCU types. Document -minit-stack= default.
114 Document new options -mno-tablejump, -mtiny-stack.
115 * md.texi (AVR family): Fix typo in 'w' constraint letter
116 description. Document 'q'. Update 'O'.
117
53895717
BS
1182000-12-01 Bernd Schmidt <bernds@redhat.co.uk>
119
120 * combine.c (cant_combine_insn_p): Only disallow insns involving
121 hard regs if they are reg-reg moves.
122 (try_combine, can_combine_p, combinable_i3pat): Delete old
123 SMALL_REGISTER_CLASSES tests.
124
c02cad8f
BS
125 * reload1.c (free_for_value_p): New function, frontend to
126 reload_reg_free_for_value_p. All callers of the latter now call
127 this function with an additional mode argument.
128
f00018dd
AO
1292000-12-01 Alexandre Oliva <aoliva@redhat.com>
130
3d422cb1
AO
131 * config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
132 whether X is a CONST_INT.
133 (addsubcosts): Likewise.
134
f00018dd
AO
135 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
136 mis-used XINT.
137 (ARG_POINTER_REGNUM): Set to AP_REG.
138
95ac07b0
AO
1392000-11-30 Alexandre Oliva <aoliva@redhat.com>
140
ecfdeaeb
AO
141 * config/sh/sh.md (fpu_switch0, fpu_switch1, movpsi, fpu_switch,
142 splits): Only match on TARGET_SH4.
143
95ac07b0
AO
144 * combine.c (try_combine): Disregard USEs when updating LOG_LINKS
145 of subsequent insns.
146
f2720858
RH
1472000-11-30 Richard Henderson <rth@redhat.com>
148
149 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
150 * config/alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
151
ef7d91cd
RH
1522000-11-30 Richard Henderson <rth@redhat.com>
153
154 * config/alpha/elf.h (ASM_OUTPUT_SECTION_NAME): Copy elfos.h defn.
155 (DO_SELECT_SECTION): New.
156 (SELECT_SECTION): Use it.
157 (UNIQUE_SECTION_P): New.
158 (UNIQUE_SECTION): New.
159
29ced803
AO
1602000-11-30 Alexandre Oliva <aoliva@redhat.com>
161
162 * c-common.c (status_warning) [! ANSI_PROTOTYPES]: Load status
163 from va_list before using it.
164
25e4379f
MM
1652000-11-30 Michael Matz <matzmich@cs.tu-berlin.de>
166
167 * flow.c (make_edge): Early out, if no flags to set.
168 (calculate_global_regs_live): Clear out garbage only when necessary.
169
170 * simplify-rtx.c (varray_type used_regs): New.
171 (clear_table): Use it to only clear necessary items.
172 (cselib_lookup, cselib_record_set): Remember newly set items.
173 (cselib_update_varray_sizes, cselib_init): Initialize and grow
174 used_regs.
175
176 * local-alloc.c (update_equiv_regs): New local `cleared_regs'.
177 Move clearing of dead regs out of insn-loop.
178
41c39533
RH
1792000-11-30 Richard Henderson <rth@redhat.com>
180
181 * calls.c (expand_call): Emit queued insns before creating
182 the tail recursion sequence.
183
039df8c7
DA
1842000-11-30 J. David Anglin <dave.anglin@nrc.ca>
185 Bruce Korb <bkorb@gnu.org>
186
187 * fixinc/inclhack.def(): prevent dual double definition protection
188 * fixinc/fixincl.x: regenerate
189
42cfed37
LR
1902000-11-29 Loren J. Rittle <ljrittle@acm.org>
191
192 * fixinc/Makefile.in (fixincl.x): Explicitly state the
193 location of the generated file.
194
a6bb9efa
GP
1952000-11-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
196
197 * README.FRESCO: Remove obsolete file.
198
255b8a49
JL
1992000-11-30 Mark Kettenis <kettenis@gnu.org>
200
201 * configure.in: Reorganize handling of *-*-gnu*, to share target
202 specific make details with Linux. Update comments to clarify
203 the distinction between GNU/Linux and GNU/Hurd.
204 * config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
205 TARGET_LIBGCC2_CFLAGS): Remove. We now use the settings from
206 config/t-linux for the Hurd.
207
2082000-11-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
75273d08
SC
209
210 * config/mn10200/udivmod.c, config/mn10200/divmod.c,
211 config/mn10200/udivmodsi4.c: Moved from here.
212 * config/udivmod.c, config/divmod.c, config/udivmodsi4.c: To here.
213 * config/mn10200/t-mn10200 (LIB2FUNCS_EXTRA): Use the generic
214 C division functions.
215 * config/m68hc11/t-m68hc11-gas (LIB2FUNCS_EXTRA): Likewise.
216
15c2086a
JL
217Thu Nov 30 01:12:52 2000 Jeffrey A Law (law@cygnus.com)
218
219 * pa.md (conditional moves): Avoid holes in operand list.
220 (mod, umod patterns): Similarly.
221 (variable extract/shift patterns): Similarly.
222
9105f671
NB
2232000-11-30 Neil Booth <neilb@earthling.net>
224
225 * objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
226 maybe_objc_check_decl, build_objc_string_object,
227 objc_declare_alias, objc_declare_class, build_message_expr,
228 build_protocol_expr, build_selector_expr, build_encode_expr,
229 get_class_ivars, start_class, start_protocol): Remove
230 redundant code, assuming doing_objc_thang is true.
231
31a7659b
JDA
2322000-11-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
233
1f80ea95
JDA
234 * pa.c (restore_unscaled_index_insn_codes): Delete procedure.
235 (record_unscaled_index_insn_codes): Likewise.
236 (unscaled_index_insn_codes): Delete.
237 (max_unscaled_index_insn_codes_uid): Delete.
238 (output_function_prologue, output_function_epilogue, pa_reorg):
239 Don't use the unscaled index insn hack.
240
d16ca6a6
JDA
241 * pa.md: Remove hack from all index insns to reverse the operand
242 order of frame and stack pointer references incorrectly created
243 in the reload pass.
244
3502dc9c
JDA
245 * function.h (emit_status): Delete member regno_pointer_flag and
246 rename regno_pointer_flag_length to regno_pointer_align_length.
247 Delete define for REGNO_POINTER_FLAG.
248 * integrate.h (inline_remap): Delete member regno_pointer_flag.
249 Add member x_regno_reg_rtx.
250 * rtl.h (rtx_def): Use frame_related bit to indicate register is
251 a pointer in REG expressions. Define REG_POINTER macro.
252 * alias.c (find_base_value, find_base_term): Use REG_POINTER
253 instead of REGNO_POINTER_FLAG.
254 * combine.c (nonzero_bits, num_sign_bit_copies): Likewise.
255 * emit-rtl.c (gen_reg_rtx): Use regno_pointer_align_length instead
256 of regno_pointer_flag_length. Remove code which refers to
257 regno_pointer_flag.
258 (mark_reg_pointer): Use REG_POINTER.
259 (free_emit_status): Remove code which refers to regno_pointer_flag.
260 (init_emit, mark_emit_status): Likewise.
261 * flow.c (dump_flow_info): Likewise.
262 * function.c (preserve_temp_slots): Likewise.
263 * integrate.c (expand_inline_function, copy_rtx_and_substitute):
264 Use x_regno_reg_rtx instead of regno_pointer_flag for function
265 pointer determination in map.
266 * loop.c (strength_reduce, maybe_eliminate_biv_1): Use REG_POINTER.
267 * predict.c (estimate_probability): Likewise.
268 * regclass.c (record_address_regs, reg_scan_mark_refs): Likewise.
269 * unroll.c (unroll_loop): Use x_regno_reg_rtx instead of
270 regno_pointer_flag for function pointer determination in map.
271 * convex.h (RTX_COSTS): Don't test regno_pointer_flag and use
272 REG_POINTER.
273 * pa.c (hppa_legitimize_address, emit_move_sequence, basereg_operand):
274 Use REG_POINTER.
275 (restore_unscaled_index_insn_codes): Revise comment.
276
31a7659b
JDA
277 * expr.c (do_compare_and_jump): Add missing TYPE_MODE in statement.
278
9f1bbeaa
JM
2792000-11-30 Joseph S. Myers <jsm28@cam.ac.uk>
280
281 * extend.texi: Update documentation for attributes.
282
74e5aa4b
DB
2832000-11-29 David O'Brien <obrien@FreeBSD.org>
284
285 * config/alpha/elf.h (IDENT_ASM_OP): Protect the #define.
286 (ASM_DECLARE_OBJECT_NAME): Same.
287 (ASM_FILE_END): Same.
288 (ASM_FINISH_DECLARE_OBJECT): Same.
289 (ASM_IDENTIFY_GCC): Same.
290 (ASM_IDENTIFY_LANGUAGE): Same.
291 (ASM_OUTPUT_CONSTRUCTOR): Same.
292 (ASM_OUTPUT_DEF): Same.
293 (ASM_OUTPUT_DESTRUCTOR): Same.
294 (ASM_OUTPUT_EXTERNAL_LIBCALL): Same.
295 (ASM_OUTPUT_SECTION_NAME): Same.
296 (ASM_WEAKEN_LABEL): Same.
297 (BSS_SECTION_ASM_OP): Same.
298 (COMMON_ASM_OP): Same.
299 (CONST_SECTION_ASM_OP): Same.
300 (CONST_SECTION_FUNCTION): Same.
301 (CTORS_SECTION_ASM_OP): Same.
302 (DTORS_SECTION_ASM_OP): Same.
303 (ESCAPES): Same.
304 (FINI_SECTION_ASM_OP): Same.
305 (IDENT_ASM_OP): Same.
306 (IDENT_ASM_OP): Same.
307 (INIT_SECTION_ASM_OP): Same.
308 (INT_ASM_OP): Same.
309 (MAX_OFILE_ALIGNMENT): Same.
310 (SBSS_SECTION_ASM_OP): Same.
311 (SDATA_SECTION_ASM_OP): Same.
312 (SECTION_FUNCTION_TEMPLATE): Same.
313 (SELECT_SECTION): Same.
314 (SE_CONST_SECTION): Same.
315 (SIZE_ASM_OP): Same.
316 (SKIP_ASM_OP): Same.
317 (STRING_ASM_OP): Same.
318 (STRING_LIMIT): Same.
319 (TYPE_ASM_OP): Same.
320 (TYPE_OPERAND_FMT): Same.
321
0eaed3c6
NB
3222000-11-29 Neil Booth <neilb@earthling.net>
323
324 * c-decl.c (c_decode_option): Don't handle -lang-objc.
325 * objc/lang-options.h: Remove -lang-objc.
326 * objc/lang-specs.h: Don't pass -lang-objc to cc1obj.
327 * objc/objc-act.c (lang_init_options): Set c_language.
328
98166639
JJ
3292000-11-29 Jakub Jelinek <jakub@redhat.com>
330
331 * expr.c (can_store_by_pieces): Reinitialize max_size for reverse
332 tests.
333
f3b55474
NB
3342000-11-29 Neil Booth <neilb@earthling.net>
335
336 * c-pragma.c (init_pragma): Update for parse_in type change.
337
b86ecfa9
LB
3382000-11-29 Laurynas Biveinis <lauras@softhome.net>
339
340 * configure.in: recognize DOS-style absolute paths.
341
57814e5e
JJ
3422000-11-29 Jakub Jelinek <jakub@redhat.com>
343
344 * expr.h (store_by_pieces): Add prototype.
345 (can_store_by_pieces): Likewise.
346 * expr.c (struct store_by_pieces): Renamed from clear_by_pieces.
347 (can_store_by_pieces): New.
348 (store_by_pieces): New.
349 (clear_by_pieces): New.
350 (clear_by_pieces_1): New.
351 (store_by_pieces_1): Renamed from clear_by_pieces, handle storing
352 arbitrary compiler generated constants into memory block.
353 (store_by_pieces_2): Renamed from clear_by_pieces_1, likewise.
354 * builtins.c (c_readstr): New.
355 (builtin_memcpy_read_str): New.
356 (expand_builtin_memcpy): If src is string constant and
357 emit_block_move would move it by pieces, compute integer constants
358 from the string and store it into memory block instead.
359 (builtin_strncpy_read_str): New.
360 (expand_builtin_strncpy): If N is not constant zero and c_strlen does
361 not return INTEGER_CST, don't optimize.
362 If N is larger than strlen(src) + 1, try to copy the string
363 including padding with store_by_pieces.
364 (expand_builtin_strcmp): If both arguments have side effects, don't
365 optimize.
366 (expand_builtin_fputs): If STR has side effects, don't optimize.
367
76b7dad3
RE
3682000-11-29 Richard Earnshaw <rearnsha@arm.com>
369
370 * arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
371 Add use of link register.
372
b722c82c
JM
3732000-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
374
375 * extend.texi: Update documentation for default format attributes.
376
01fa3508
JL
377Tue Nov 28 21:56:45 2000 Jeffrey A Law (law@cygnus.com)
378
379 * pa/pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
380 a list, to keep track of the sections.
381
4bec9f7d
NC
3822000-11-28 Nick Clifton <nickc@redhat.com>
383
384 * config/arm/arm.md (pic_load_addr): Split into
385 pic_load_addr_arm and pic_load_addr_thumb.
386
387 * config/arm/arm.c (legitimize_pic_address): Generate either
388 ARM or Thumb versions of pic_load_addr.
389 (arm_finalize_pic): Generate either ARM or Thumb versions of
390 pic_load_addr.
391
54fef245
RH
3922000-11-28 Richard Henderson <rth@redhat.com>
393
394 * calls.c (expand_call): Defer const/pure NO_DEFER_POP until
395 after sibcall do_pending_stack_adjust.
396
f423a6a7
R
397Wed Nov 29 00:08:23 2000 J"orn Rennecke <amylaar@redhat.com>
398
399 * jump.c (delete_insn): Check that REG_LABEL note actually contains
400 a CODE_LABEL.
401
eaf299c6
NB
4022000-11-28 Neil Booth <neilb@earthling.net>
403
01933a51
JM
404 * c-common.h: Remove flag_digraphs.
405 * c-decl.c: Remove flag_digraphs.
406 (c_decode_option): Don't set it.
407 * c-lex.c (init_c_lex): Don't do anything for digraphs.
eaf299c6 408
7dfe7bd6
RH
4092000-11-28 Richard Henderson <rth@redhat.com>
410
411 * c-parse.in (finish_parse): Update for parse_in type change.
412 (_yylex): Likewise.
413
8dc4676d
NB
4142000-11-28 Neil Booth <neilb@earthling.net>
415
01933a51
JM
416 * cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
417 indicating whether to scan all buffers on the stack or
418 just one.
419 * cppinit.c (do_includes): Update.
420 * cppmain.c (main): Update.
421 * cpplib.h: Update prototype.
8dc4676d 422
c77e04ae
RH
4232000-11-28 Richard Henderson <rth@redhat.com>
424
425 * genoutput.c (validate_insn_operands): New.
426 (gen_insn): Call it.
427
428 * config/alpha/alpha.md (divmodsi_internal): Renumber operands.
429 (divmoddi_internal): Likewise.
430 * config/arm/arm.md (andsi3_compare0_scratch): Likewise.
431 * config/i960/i960.md (branch patterns): Likewise.
432 * config/ia64/ia64.md (tbit_and_0): Likewise.
433 (tbit_and_1, tbit_or_0, tbit_or_1): Likewise.
434 * config/m68k/m68k.md (zero_extract memory patterns): Likewise.
435 * config/mips/mips.md (divmodsi4_internal): Likewise.
436 (divmoddi4_internal): Likewise.
437 * config/rs6000/rs6000.md (call patterns): Likewise.
438 * config/sh/sh.md (movsi_y): Likewise.
439 * config/sparc/sparc.md: Comment out if 0 v8p shift pattern.
440
79bc4669
RH
4412000-11-28 Richard Henderson <rth@redhat.com>
442
443 * config.gcc: Kill residual pyramid support.
444
cf44ea52
NB
4452000-11-28 Neil Booth <neilb@earthling.net>
446
447 * c-lex.h (parse_in): Change parse_in to a cpp_reader *.
448 * c-decl.c (c_decode_option): Update to match.
449 * c-lex.c (init_c_lex, yyparse): Update to match.
450 * c-lang.c (lang_init_options): Use cpp_create_reader.
451 * cppinit.c (cpp_init): Rename initialize.
452 (cpp_reader_init): Rename cpp_create_reader. Create the
453 reader. Initialize cpplib if appropriate.
454 * cpplib.h (cpp_create_reader) New prototype.
455 (cpp_init, cpp_reader_init): Delete prototypes.
456 * cppmain.c (general_init, setup_callbacks): New functions.
457 (main): Use them.
458 * fix-header.c (scan_in): Change type to cpp_reader *.
459 (read_scan_file): Update for new cpplib interface and scan_in type.
460
461 * cp/decl.c (parse_in): Change to cpp_reader *.
462 (lang_decode_option): Update.
463 * cp/lex.c (lang_init_options): Use new cpplib interface.
464 (init_cp_pragma, finish_parse, handle_pragma_implementation): Update.
465 * cp/spew.c (read_token): Update.
466 * objc/objc-act.c (lang_init_options): Update new cpplib interface.
467
48c4d691
JJ
4682000-11-28 Jakub Jelinek <jakub@redhat.com>
469
470 * loop.c (load_mems): Avoid using next_label to find end_label. If
471 jumping outside of the loop (other than loop end), don't hoist MEMs
472 out of loop.
473
fb158467
JH
4742000-11-28 Jan Hubicka <jh@suse.cz>
475
476 * calls.c (expand_call): Don't disable tail recursion based
477 on the loop nest.
478
40bd4395
NB
4792000-11-28 Neil Booth <neilb@earthling.net>
480
01933a51
JM
481 * tradcpp.c (enum node_type): New hash types T_ASSERT, T_UNASSERT.
482 (struct directive): Drop 4th argument from handlers.
483 (do_define, do_line, do_include, do_undef, do_else, do_elif,
484 do_endif): Similarly.
485 (do_assert, do_unassert, do_ifdef, do_ifndef): New handlers.
486 (do_ifxdef): Update as common handler of do_ifdef and do_ifndef.
487 (make_definition, make_undef): Take a const char*.
488 (make_assertion): New function.
489 (struct directive_table): Update.
490 (main): Handle -A command line argument.
491 (handle_directive): Drop fourth handler argument.
40bd4395 492
77ea49a4
BS
4932000-11-28 Bernd Schmidt <bernds@redhat.co.uk>
494
495 * simplify-rtx.c (cselib_record_sets): Ignore sets whose destination
496 is anything but REG or MEM, but look inside STRICT_LOW_PART.
497
c5c0b3d9
RK
498Tue Nov 28 09:53:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
499
500 * system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
501 (IS_ABSOLUTE_PATHNAME): New macro.
502 * gcc.c (find_a_file, process_command, do_spec_1, main): Use it.
503
dd80b906
JJ
5042000-11-28 Jakub Jelinek <jakub@redhat.com>
505
506 * config/i386/i386.md (truncxfsf2_2): Fix predicate.
507
102870fb
JW
5082000-11-27 Jim Wilson <wilson@redhat.com>
509
510 * reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.
511
9734e80c
MK
5122000-11-27 Matthias Klose <doko@cs.tu-berlin.de>
513
514 * extend.texi (Nested Functions): Update URL of Usenix paper.
515
cf77f15f
MM
5162000-11-27 Mark Mitchell <mark@codesourcery.com>
517
518 * function.c (free_after_compilation): Clear x_clobber_return_insn.
519
6a6b1628
NB
5202000-11-27 Neil Booth <neilb@earthling.net>
521
01933a51
JM
522 * cppinit.c (cpp_reader_init): Remove handling of warn_paste
523 command line options.
524 (cpp_handle_option): Similarly.
525 * cpplib.h (struct cpp_options): Remove warn_paste.
526 * cppmacro.c (paste_tokens): Apart from assembler, make
527 unpasteable token warning mandatory.
6a6b1628 528
fb6a7b08
NB
5292000-11-27 Neil Booth <neilb@earthling.net>
530
01933a51
JM
531 * tradcpp.c (enum pending_dir_t, struct pending_dir): New.
532 (main): Allocate a pending directive set of these. Use it.
533 Merge handling of -D and -U. Update handling of pending
534 directives. Free the memory after use.
fb6a7b08 535
7dfc0fbe
BS
5362000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
537
538 * flow.c (entry_exit_blocks): Add entry for cond_local_set.
539 (struct propagate_block_info): Add new member cond_local_set.
540 (propagate_block): Accept new arg cond_local_set. All callers
541 changed.
542 (init_propagate_block_info): Likewise.
543 (calculate_global_regs_live): Allocate & free cond_local_set. Always
544 rescan if there's overlap between cond_local_set and new_live_at_end.
545 (mark_set_1): Set bits either in cond_local_set or local_set, as
546 appropriate.
547 * basic-block.h (struct basic_block_def): New field cond_local_set.
548 (propagate_block, init_propagate_block_info): Update prototypes.
549
5f6fa212
KK
550Mon Nov 27 17:29:44 2000 kaz Kojima <kkojima@rr.iij4u.or.jp>
551
552 * gcc/config/sh/sh.md (udivsi3_i4, udivsi3_i4_single): Clobber
553 T register.
554
8bb9536a
RE
5552000-11-27 Richard Earnshaw <rearnsha@arm.com>
556
557 * arm.c (select_dominance_cc_mode): Handle new way that combine
558 canonicalizes conditional compares.
559 (arm_select_cc_mode): Likewise.
560 * arm.md: Garbage collect some dead code.
561 (cmp_and, cmp_ior): New patterns.
562 (splitter for conditional move with inverted false): Use cond_exec
563 and handle unordered comparisons.
564
4211a8fb
JH
565Mon Nov 27 17:22:56 MET 2000 Jan Hubicka <jh@suse.cz>
566
567 * i386.c (ix86_force_to_memory, ix86_free_from_memory): New.
568 * i386-protos.h (ix86_force_to_memory, ix86_free_from_memory): Declare
569 * i386.md (float?i?f, int/fp operations): Rewrite spliters to use
570 ix86_force_to_memory and ix86_free_from_memory.
571
bb6ae783
RE
5722000-11-27 Richard Earnshaw <rearnsha@arm.com>
573
574 * arm.md (arm_adddi3, adddi_sesidi_di, adddi_zesidi_di, arm_addsi3,
575 arm_subsi3_insn, anddi_zesidi_di, arm_andsi3_insn, anddi_notdi_di,
576 anddi_notzesidi_di, anddi_notsesidi_di, arm_iorsi3,
577 one_cmpldi2): Merge with splitters to create define_insn_and_split
578 patterns. Remove redundant splits.
579 (peephole2 for add:SI of invalid immediate): New.
580 (peephole2 for minus:SI of invalid immediate): New.
581 (peephole2 for ior:SI of invalid immediate): New.
582 (peephole for merge of move and compare): Convert ot peephole2.
583 (addsf3, adddf3): Mark as commutative.
584
585 * arm.md (thumb peephole for merging stack adjustments): Convert to
586 peephole2.
587
70bbeb8b
BS
5882000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
589
375de5b6
BS
590 * haifa-sched.c (print_pattern): Prettier output for COND_EXEC.
591
70bbeb8b
BS
592 * reload1.c (reload_cse_simplify_set): Pass down mode to cselib_lookup.
593 (reload_cse_simplify_operands): Do nothing about operands where both
594 the operand and the match_operand fail to give us a mode.
595 * simplify-rtx.c (wrap_constant): New function.
596 (entry_and_rtx_equal_p): Except integer constants to come wrapped in a
597 CONST describing the proper mode.
598 (rtx_equal_for_cselib_p): Pass down modes to recursive calls of
599 cselib_lookup.
600 (cselib_lookup_mem): Call wrap_constant on the rtx that is passed to
601 htab_find_slot_with_hash.
602 (cselib_lookup): Likewise.
603
7dbe6ae9
BS
604 Based on a patch from Geoff Keating <geoffk@redhat.com>:
605 * loop.c (basic_induction_var): If a REG is set from something
606 that is not a biv, then the REG is not a biv. Even if it is
607 earlier set from something that is a biv.
608
6b2adea9
AO
6092000-11-27 Alexandre Oliva <aoliva@redhat.com>
610
611 * configure.in (extra_objs): Enclose extra_headers in quotes.
612 * configure: Rebuilt.
613
27e2564a
NB
6142000-11-27 Neil Booth <neilb@earthling.net>
615
01933a51
JM
616 * c-lex.c (cb_enter_file, cb_leave_file, cb_rename_file):
617 Combine into the new function cb_change_file.
618 (init_c_lex): Update.
619 * cppfiles.c (stack_include_file): Use _cpp_do_file_change.
620 (cpp_syshdr_flags): Delete.
621 * cpphash.h (_cpp_do_file_change): New prototype.
622 Move struct cpp_buffer here from...
623 * cpplib.h (struct cpp_buffer): ... here.
624 (enum cpp_fc_reason, struct cpp_file_loc,
625 struct_cpp_file_change, change_file): New.
626 (enter_file, leave_file, rename_file, cpp_syshdr_flags): Delete.
627 * cpplib.c (do_line): Update for new cb_change_file callback.
628 (_cpp_do_file_change): New function.
629 (_cpp_pop_buffer): Update to use it.
630 * cppmain.c (move_printer): Delete.
631 (main): Set up single callback cb_change_file.
632 (cb_enter_file, cb_leave_file, cb_rename_file): Delete.
633 (cb_change_file): New.
634 * fix-header.c (cur_file, cb_change_file): New.
635 (recognized_function, read_scan_file): Update.
636 * scan-decls.c (scan_decls): Update.
637 * scan.h (recognized_function): Update prototype.
27e2564a 638
9ccb25d5
MM
6392000-11-26 Mark Mitchell <mark@codesourcery.com>
640
641 * tree.h (mark_tree_hashtable): New function.
642 * tree.c (mark_tree_hashtable_entry): New function.
643 (mark_tree_hashtable): Likewise.
644
5fcd86dd
MM
6452000-11-27 Michael Meissner <meissner@redhat.com>
646
647 * d30v-protos.h (srelational_si_operator): Correctly spell
648 function.
649 (urelational_si_operator): Ditto.
650 (relational_si_operator): Ditto.
651 (d30v_expand_prologue): Add prototype.
652 (d30v_expand_epilogue): Ditto.
653
654 * d30v.h (OPTIMIZATION_OPTIONS): Undo November 22nd change.
655
656 * d30v.md (movcccc_*): Delete now unused patterns.
657 (64 bit comparison splitters): Rewrite to use COND_EXEC instead of
658 IF_THEN_ELSE.
659 (define_cond_exec): Use 'b' to select branch flags.
660
da9e9f08
KG
6612000-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
662
663 * builtins.c (expand_builtin_strncmp, expand_builtin_strncpy): New
664 functions.
665 (expand_builtin): Handle BUILT_IN_STRNCPY and BUILT_IN_STRNCMP.
666
667 * builtins.def (BUILT_IN_STRNCPY, BUILT_IN_STRNCMP): New entries.
668
669 * c-common.c (c_common_nodes_and_builtins): Declare builtin
670 strncpy and strncmp.
671
672 * extend.texi (strncmp, strncpy): Document new builtins.
673
231db5f4
MM
6742000-11-26 Mark Mitchell <mark@codesourcery.com>
675
676 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
677 a list, to keep track of the sections.
678 * tm.texi (ASM_OUTPUT_SECTION_NAME): Document the fact that the
679 parameter provided will always be a canonical string.
680
7463ef45
NB
6812000-11-26 Neil Booth <neilb@earthling.net>
682
5fcd86dd
MM
683 * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
684 current buffer.
7463ef45 685
1ccfb3dd
JM
6862000-11-26 Joseph S. Myers <jsm28@cam.ac.uk>
687
688 * makefile.vms: Remove EGCS references.
689
0b34cf1e
UD
6902000-11-26 Ulrich Drepper <drepper@redhat.com>
691
692 * dwarf2out.c (output_file_names): New function. Compute minimal
693 combination of directory and file name table and emit them.
694 (output_line_info): Remove code to emit directory and file name
695 table and call output_file_names instead.
696 (file_info_cmp): Helper function to sort directory names.
697
5fcd86dd 6982000-11-26 Neil Booth <neilb@earthling.net>
bdb05a7b 699
5fcd86dd
MM
700 * cpplib.h (struct cpp_reader): Remove lang_asm.
701 (struct cpp_options): Remove c89. New members lang,
702 extended_numbers.
703 * cppexp.c (parse_number): Use them.
704 * cpphash.h (VALID_SIGN): Use them.
705 * cppinit.c (set_lang, cpp_start_read): Update.
706 * cpplex.c (parse_string, _cpp_lex_token): Update.
707 * cpplib.c (_cpp_handle_directive): Update.
708 * cppmacro.c (parse_args): Update.
709 * cppmain.c (scan_buffer): Update.
bdb05a7b 710
72bd1f9e
RK
711Sun Nov 26 10:02:37 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
712
713 * fold-const.c (fold, case CONVERT_EXPR): Always return tree of
714 proper type.
715
5fcd86dd
MM
7162000-11-26 Neil Booth <neilb@earthling.net>
717
718 * Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
719 * c-decl.c: Remove parse_in declaration.
720 * c-lang.c: Similarly.
721 * c-lex.c: Similarly.
722 * c-parse.in: Similarly.
723 * c-pragma.c: Similarly.
724 * configure.in: Similarly.
725 * cp/Make-lang.in: Similarly.
726 * cp/spew.c: Similarly.
727 * cp/decl2.c: Remove check for lang-c++ option.
728 * cp/lang-specs.h: Remove -lang-c++ from cc1plus command line.
729 * cp/lex.c (lang_init_options): With cpp_reader_init, default to C++.
730 * c-lex.h: Add declaration of parse_in.
731 * cppinit.c: Call set_lang after allocating pfile->pending.
732 * configure: Regenerate.
056487e7 733
1786009e
ZW
7342000-11-25 Zack Weinberg <zack@wolery.stanford.edu>
735
736 * combine.c (try_combine): Remove redundant test.
737
3645c4dc
RH
7382000-11-25 Richard Henderson <rth@redhat.com>
739
740 * c-common.h (DECL_C_HARD_REGISTER): New.
741 * c-decl.c (finish_decl): Set it for asm register variables.
742 * c-semantics.c (emit_local_var): Test it when instantiating one.
743
a17a5850
RH
7442000-11-25 Richard Henderson <rth@redhat.com>
745
746 * c-decl.c (c_expand_body): Use DECL_SOURCE_LINE rather than
747 lineno for the start of the function.
748
2e18bbae
RH
7492000-11-25 Richard Henderson <rth@redhat.com>
750
751 * dwarf2out.c (file_table, file_table_allocated): Remove.
752 (file_table_allocated): Remove.
753 (struct file_table): New.
754 (decl_file_table, line_file_table): New.
755 (print_dwarf_line_table): Use them.
756 (size_of_line_prolog): Likewise.
757 (output_line_info): Likewise.
758 (add_src_coords_attributes): Likewise.
759 (gen_subprogram_die): Likewise.
760 (gen_variable_die): Likewise.
761 (dwarf2out_add_library_unit_info): Likewise.
762 (dwarf2out_line): Likewise.
763 (lookup_filename): Take a struct file_table argument.
764 (init_file_table): New.
765 (dwarf2out_init): Use it.
766
163686bd
JM
7672000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
768
769 * invoke.texi: Update sequence points references.
770
a32f2771
NB
7712000-11-25 Neil Booth <neilb@earthling.net>
772
01933a51
JM
773 * c-common.c: Remove USE_CPPLIB conditional inclusions.
774 * c-common.h: Similarly.
775 * c-decl.c: Similarly.
a32f2771
NB
776 * c-lang.c: Similarly.
777 * c-lex.c: Similarly.
01933a51
JM
778 * c-parse.in: Similarly.
779 * c-pragma.c: Similarly.
780 * c-pragma.h: Similarly.
781 * gcc.c: Similarly.
782 * toplev.c: Similarly.
783 * cp/cp-tree.h: Similarly.
784 * cp/decl2.c: Similarly.
785 * cp/lang-specs.h: Similarly.
786 * cp/lex.c: Similarly.
787 * cp/lex.h: Similarly.
788 * cp/spew.c: Similarly.
789 * java/lang-options.h: Similarly.
790 * objc/lang-specs.h: Similarly.
791 * objc/objc-act.c: Similarly.
792
793 * configure.in: Remove configure option.
794 * config.in: Regenerate.
795 * configure: Regenerate.
a32f2771 796
3e8aa6e3
RH
7972000-11-25 Richard Henderson <rth@redhat.com>
798
799 * haifa-sched.c (sched_analyze_1, sched_analyze_2, sched_analyze):
800 Revert 2000-11-22 change.
801
59a9e22e
BS
8022000-11-25 Bernd Schmidt <bernds@redhat.co.uk>
803
804 * config/i386/i386.h (FIXED_REGS): Make the three flags registers
805 fixed.
806
2be36552
PT
8072000-11-25 Philipp Thomas <pthomas@suse.de>
808 * configure.in (ALL_LINGUAS): Remove en_GB and add sv.
809 * configure: Rebuilt.
810
4df1190a
JJ
8112000-11-25 Jakub Jelinek <jakub@redhat.com>
812
813 * config/sparc/sparc.md (muldi3_v8plus): Remove H constraint.
814 Handle CONST_INT as second argument.
815 * config/sparc/sparc.c (set_extends): Remove first argument.
816 Properly handle AND, CONST_INT and CONST_DOUBLE, handle IOR, XOR and
817 MOV.
818 (sparc_check_64): Abort if first argument is not REG.
819 If it is DImode REG, look at the lower register of the register
820 pair.
821
822 * config/sparc/sparc.c (load_pic_register, restore_regs,
823 output_return, sparc_v8plus_shift, sparc_function_profiler,
824 sparc_function_block_profiler, sparc_block_profiler): Fix output
825 formatting.
826
6915629f
AO
8272000-11-25 Alexandre Oliva <aoliva@redhat.com>
828
ae010e43
AO
829 * config/sh/sh.h (TARGET_NONE): New.
830 (TARGET_SWITCHES): For all variant-selecting switch, use
831 TARGET_NONE to reset all other variant-selecting switch. Added
832 empty strings to avoid warnings.
833 (TARGET_DEFAULT): Set to SH1_BIT.
834
8618466f
AO
835 * Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for
836 insn-codes.h.
837
5db5a888
AO
838 * gcc/config/sh/sh.md (sibcalli, sibcalli_pcrel): New insns.
839 (sibcall_pcrel): New insn_and_split.
840 (sibcall, sibcall_value, sibcall_epilogue): New expands.
841
6915629f
AO
842 * config/sh/sh.md (GOTaddr2picreg, symGOT2reg, symGOTOFF2reg,
843 symPLT_label2reg, call, call_value): Don't set
844 current_function_uses_pic_offset_table.
845 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't mark
846 PIC_OFFSET_TABLE_REGNUM as call_used, so that calc_live_regs
847 takes it into account.
848 (FINALIZE_PIC): Delete, useless.
849 (LEGITIMATE_CONSTANT_P): Delete, unused.
850 * config/sh/sh.c (sh_expand_prologue): Don't use
851 current_function_uses_pic_offset_table. Don't special-case
852 PIC_OFFSET_TABLE_REGNUM. Initialize it if it's ever live and
853 PIC is enabled.
854 (sh_expand_epilogue, initial_elimination_offset): Don't
855 special case PIC_OFFSET_TABLE_REGNUM.
856
2d01e445
AO
8572000-11-25 Alexandre Oliva <aoliva@redhat.com>, NIIBE Yutaka <gniibe@m17n.org>
858
859 * config/sh/sh-protos.h (symbol_ref_operand): Declare.
860 * config/sh/sh.md (UNSPEC_CALLER): New constant.
861 (calli_pcrel, call_valuei_pcrel): Use PIC_REG.
862 (call_pcrel, call_value_pcrel): New insn_and_splits.
863 (call, call_value): Use them.
864 (call_site): New expand.
865 (sym_label2reg, symPLT_label2reg): Adjust to hold call_sites.
866 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA) [UNSPEC_CALLER]:
867 Output call_site label.
868 (PREDICATE_CODES): Added symbol_ref_operand.
869 * config/sh/sh.c (symbol_ref_operand): Define.
870 * emit-rtl.c (try_split): Propagate CALL_INSN_FUNCTION_USAGE
871 to CALL_INSNs in the split sequence.
872
c3edd394
NC
8732000-11-24 Nick Clifton <nickc@redhat.com>
874
875 * config.gcc (v850-*-*): Define c_target_objs and
876 cxx_target_objs.
877
878 * config/v850/t-v850: Define how to build v850-c.o
879
880 * config/v850/v850.h (struct data_area_stack_element): Move
881 definition here from v850.c.
882
883 * config/v850v850.c: Include gcc.h to avoid compile time
884 warning.
885 (push_data_area): Move to v850-c.c.
886 (pop_data_area): Move to v850-c.c.
887 (mark_current_function_as_interrupt): Move to v850-c.c.
888 (GHS_default_section_names): Allow to be exported.
889 (GHS_current_section_names): Allow to be exported.
890 (data_area_stack_elements): Allow to be exported.
891 (ghs_pragma_section): Move to v850-c.c.
892 (ghs_pragma_interrupt): Move to v850-c.c.
893 (ghs_pragma_starttda): Move to v850-c.c.
894 (ghs_pragma_startsda): Move to v850-c.c.
895 (ghs_pragma_startzda): Move to v850-c.c.
896 (ghs_pragma_endtda): Move to v850-c.c.
897 (ghs_pragma_endsda): Move to v850-c.c.
898 (ghs_pragma_endzda): Move to v850-c.c.
899
900 * config/v850/v850-c.c: New file: Contains v850 specific
901 pragma parsing functions.
902
aac69a49
NC
9032000-11-24 Nick Clifton <nickc@redhat.com>
904
905 * config.gcc (extra_objs): Remove duplicate description.
906 (c_target_objs): New variable. Contains target specific
907 object files for the gcc C compiler only.
908 (cxx_target_objs): New variable. Contains target specific
909 object files for the gxx C++ compiler only.
910
911 * configure.in (c_target_objs): Substitute in the makefile.
912 (cxx_target_objs): Substitute in the makefile.
913 * configure: Regenerate.
914
915 * Makefile.in (C_TARGET_OBJS): Define and initialise from
916 c_target_objs.
917 (CXX_TARGET_OBJS): Define and initialise from
918 cxx_target_objs.
919 (C_AND_OBJC_OBJS): Include C_TARGET_OBJS.
920
921 * cp/Make-lang.in (CXX_C_OBJS): Include CXX_TARGET_OBJS).
922
923 * tm.texi (REGISTER_TARGET_PRAGMAS): Add paragraph explaining
924 about how the use of the 'c_lex' function requires the use of
925 the target specific, language specific object files feature of
926 the configuration mechanism.
927
7257bbc6
RK
928Fri Nov 24 18:50:58 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
929
930 * gcc.c (process_command): Use F_OK, not R_OK.
931
c3ff75c4
AK
9322000-11-24 Arno J. Klaassen <arno@heho.snv.jussieu.fr>
933
934 * flow.c (print_rtl_and_abort): Remove ANSIism.
935
104ee20b
AO
936Fri Nov 24 19:54:36 2000 Alexandre Oliva <aoliva@redhat.com>
937
938 * config/sh/sh.h (GENERAL_REGISTER_P,
939 GENERAL_OR_AP_REGISTER_P, FP_REGISTER_P, XD_REGISTER_P,
940 FP_OR_XD_REGISTER_P, FP_ANY_REGISTER_P): New macros. Use them
941 all over.
942 (SPECIAL_REG): Renamed to SPECIAL_REGISTER_P.
943 * config/sh/sh.c: Use new macros.
944 * config/sh/sh.md: Likewise.
945
5d00b10a
AO
946Fri Nov 24 19:46:16 2000 Alexandre Oliva <aoliva@redhat.com>
947
948 * config/sh/sh.md: Clobber MACH_REG and MACL_REG in SImode,
949 instead of just MACH_REG in DImode. Always refer to FPSCR_REG
950 in PSImode.
951
33f77355
DC
952Fri Nov 24 22:37:41 2000 Denis Chertykov <denisc@overta.ru>
953
954 * config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
955 fixed.
956 (machine_dependent_reorg): Wrong optimization based on
957 NOTICE_UPDATE_CC removed.
958
692dc9c6
R
959Fri Nov 24 19:48:09 2000 J"orn Rennecke <amylaar@redhat.com>
960
961 * jump.c (delete_computation): Re-instate deletion of feeding insn.
962 (delete_insn): Look for REG_LABEL notes.
963 (redirect_tablejump): Delete feeding insns.
964
c3410241
BS
9652000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
966
90d10fb9
BS
967 * config/i386/i386.md (call_pop_0, call_pop_1, call_value_pop_0,
968 call_value_pop_1): Make sure operand numbers are contiguous.
969
7cf5c9e1
BS
970 * fold-const.c (fold_range_test): Avoid crash if LHS or RHS is null.
971
ff6534ad
BS
972 * reload1.c (conflicts_with_override): New function.
973 (emit_input_reload_insns): Use it to tighten test for validity
974 of substituting into output of previous insn.
975
176f9a7b
BS
976 * haifa-sched.c (struct ready_list): New.
977 (ready_lastpos, ready_add, ready_remove_first, ready_sort): New static
978 functions.
979 (schedule_insn): Replace args READY and N_READY with a pointer to a
980 ready_list; return void. Use the new functions to access the ready
981 list. All callers changed.
982 (queue_to_ready, debug_ready_list): Likewise.
983 (schedule_block): Initialize a ready_list structure. Use new
984 functions to access it.
985 (max_priority): Remove unused variable.
986 (schedule_insn): Don't set it.
987
52a84e42
BS
988 * c-common.c (verify_tree): Don't recurse into CONSTRUCTORs.
989
c3410241
BS
990 * combine.c (cant_combine_insn_p): New function.
991 (try_combine): Use it.
992
235cfbc4
BS
993 * Makefile.in (c-common.o): Depend on $(OBSTACK_H).
994 * c-common.c (c-obstack.c): Include "obstack.h".
995 (struct reverse_tree): Delete.
996 (reverse_list, reverse_max_depth): Delete.
997 (build_reverse_tree, common_ancestor, modify_ok): Delete functions.
998 (struct tlist, struct tlist_cache): New.
999 (tlist_obstack, tlist_firstobj, warned_ids, save_expr_cache): New.
1000 (add_tlist, merge_tlist, verify_tree, warning_candidate_p,
1001 warn_for_collisions, warn_for_collisions_1, new_tlist): New
1002 static functions.
1003 (verify_sequence_points): Rewritten.
1004 * fold-const.c (fold): Don't lose possibly important sequence
1005 points when removing one arm of TRUTH_ORIF_EXPRs or TRUTH_ANDIF_EXPRs.
1006
58ecb5e2
RS
10072000-11-24 Richard Sandiford <rsandifo@redhat.com>
1008
1009 * gcc/cse.c (cse_insn): Removed conversion of REG_EQUIV to REG_EQUAL
1010 when reversing a register-to-register copy. Reversal now disabled
1011 when the previous instruction has a REG_EQUIV.
1012
2f401cc8
NS
10132000-11-24 Nathan Sidwell <nathan@codesourcery.com>
1014
1015 * c-parse.in (unary_expr): Move VA_ARG from here ...
1016 (primary): ... to here.
1017
963a2a84
GS
10182000-11-23 Graham Stott <grahams@redhat.com>
1019
1020 * expr.c (store_constructor): If a field is non addressable and
1021 the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.
1022
f9b697bf
BS
10232000-11-23 Bernd Schmidt <bernds@redhat.co.uk>
1024
1025 * flow.c (print_rtl_and_abort): New function.
1026 (verify_wide_reg, verify_local_live_at_start): Try to dump more
1027 information before aborting.
1028
69295d6d
AO
10292000-11-23 Alexandre Oliva <aoliva@redhat.com>
1030
1031 * emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
1032 is narrower than requested mode.
1033 (gen_highpart): Abort if register mode is narrower than
1034 requested mode.
1035
99a9c946
GS
10362000-11-23 Graham Stott <grahams@redhat.com>
1037
1038 * cse.c (cse_insn): Initialise all regcost variables.
1039 Fix a typo add missing '='.
1040 Only compare costs if there is a replacement insn.
1041
422be3c3
AO
1042Thu Nov 23 04:33:33 2000 Alexandre Oliva <aoliva@redhat.com>
1043
1044 * final.c (output_addr_const) [LABEL_REF]: Simplify.
1045 [MINUS]: Enclose non-CONST_INTs in parentheses.
1046 [default]: Try OUTPUT_ADDR_CONST_EXTRA.
1047 * tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
1048 * varasm.c (decode_rtx_const) [CONST]: If it's not something
1049 PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
1050 instead of abort()ing.
1051 * sh.c (output_pic_addr_const): Removed. Fixed all callers.
1052 * sh.h (OUTPUT_ADDR_CONST_EXTRA): New. Handle the UNSPECs
1053 formerly handled in output_pic_addr_const.
1054 * sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
1055 operands of MINUS in CONSTs so that decode_rtx_const() will
1056 accept them.
1057
43c05634
AO
1058Thu Nov 23 04:10:30 2000 Alexandre Oliva <aoliva@redhat.com>
1059
1060 * config/sh/sh.md (mova_const): New pattern.
1061 (GOTaddr2picreg): Use it.
1062 * config/sh/sh.c (broken_move): Match it.
1063 (mova_p): Don't match it.
1064 (machine_dependent_reorg): Adjust it.
1065
4773afa4
AO
1066Thu Nov 23 02:09:09 2000 Alexandre Oliva <aoliva@redhat.com>
1067
1068 * config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
1069 Moved most register-number #defines...
1070 * config/sh/sh.md (define_constants): ... here. Use macros to
1071 refer to registers and unspecs.
1072 * config/sh/sh.c: Likewise.
1073
9196ece5
R
1074Thu Nov 23 01:01:32 2000 J"orn Rennecke <amylaar@redhat.com>
1075
1076 * Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
1077 (rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
1078 (alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
1079 (splay-tree.o, hash.o): Likewise.
1080 GCONFIG_H: New.
1081 (rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
1082 (bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
1083 (hashtab.o): Likewise.
1084 (gcov.o): Depend on $(CONFIG_H).
1085 * configure.in: #include insn-codes.h in tm.h.
1086
48a08b9c
NC
10872000-11-22 Nick Clifton <nickc@redhat.com>
1088
57f56af4
NC
1089 * config/arm/arm.c (arm_encode_call_attribute): Make 'newstr' a
1090 const char * to avoid a compile time warning.
1091
48a08b9c
NC
1092 * config/arm/arm.md (define_constants): Define symbolic names for
1093 the link register, last integer register and the fake CC register.
1094 Update patterns to use these symbolic names.
1095
4a5b68a2
NB
10962000-11-22 Neil Booth <neilb@earthling.net>
1097
1098 * cpplex.c (trigraph_ok): Ensure we don't warn twice.
1099 * cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.
1100
a165f034
RH
11012000-11-22 Richard Henderson <rth@redhat.com>
1102
1103 * haifa-sched.c (sched_analyze_1): Don't special-case calls
1104 for clobbering registers.
1105 (sched_analyze_2): Likewise.
1106 (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.
1107
10ebf5fe 11082000-11-22 Chris Demetriou <cgd@sibyte.com>
a165f034 1109 Neil Booth <neilb@earthling.net>
10ebf5fe 1110
a165f034
RH
1111 * gcc.c (validate_switches): Validate multiple switches named
1112 in '|' (or) expressions in specs.
1113 (handle_braces): If more than 1 alternative in a '|' spec
1114 matches, call do_spec1 just once.
10ebf5fe 1115
fb0b2546
MM
11162000-11-22 Michael Meissner <meissner@redhat.com>
1117
1118 * d30v.h (TARGET_SWITCHES): Add documentation strings.
1119 (TARGET_OPTIONS): Ditto.
1120 (OPTIMIZATION_OPTIONS): Temporarily turn off -frename-registers if
1121 -O3.
1122
67d6f2fc
JL
1123Wed Nov 22 06:40:56 2000 Jeffrey A Law (law@cygnus.com)
1124
1125 * pa.c (hppa_encode_label): Account for addition of encoding
1126 character when allocating persistent space for the new label
1127 name.
1128
d1209685
ZW
11292000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1130
1131 * Makefile.in, config.gcc, configure.in: Expunge remaining
1132 traces of facility for running MD files through C preprocessor.
1133
c01a508e
JM
11342000-11-22 Joseph S. Myers <jsm28@cam.ac.uk>
1135
1136 * gcov.texi: Add magic comments for texi2pod.pl.
1137 * Makefile.in: Add rules to generate and install gcov.1.
1138 * gcov.1: New (generated) file.
1139
a125d855
RH
11402000-11-21 Richard Henderson <rth@redhat.com>
1141
1142 * regrename.c (scan_rtx_reg): Terminate the chain rather than
1143 abort on mark_read with NO_REGS.
1144
ed311407
MS
11452000-11-21 Mike Stump <mrs@wrs.com>
1146
1147 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
1148 compilation with older compilers, such as /bin/cc on SunOS.
1149 * fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
1150
cac16ef9
RH
11512000-11-21 Richard Henderson <rth@redhat.com>
1152
1153 * varasm.c (record_constant): Pad the constructed
1154 constant_descriptor appropriately.
1155
c25c12b8
R
1156Wed Nov 22 00:52:55 2000 J"orn Rennecke <amylaar@redhat.com>
1157
1158 * rtl.h (traverse_md_constants): Declare.
1159 (struct md_constant): Define.
1160 * Makefile.in (HOST_RTL): Add hashtab.o .
1161 (OBJS): Add hashtab.o .
1162 (hashtab.o): New rule.
1163 (rtl.o): Depends on HASHTAB_H.
1164 * rtl.c (hashtab.h): #include.
1165 (md_constants): New static variable.
1166 (def_hash, def_name_eq_p, read_constants): New static functions.
1167 (traverse_md_constants): New function.
1168 (read_name): Do constant expansion.
1169 (read_rtx): Recognize define_constants.
1170 * gencodes.c (print_md_constant): New function.
1171 (main): Emit #defines for all constant definitions encountered.
1172 * md.texi (Constant Definitions): New node.
1173 * gensupport.c (xcalloc): New function.
1174
f940c352
RH
11752000-11-21 Richard Henderson <rth@redhat.com>
1176
1177 * config/alpha/alpha.c (alpha_split_tfmode_frobsign): New.
1178 * config/alpha/alpha-protos.h: Declare it.
1179 * config/alpha/alpha.md (abstf_internal): Use it.
1180 (negtf_internal): Likewise.
1181 (andnotdi3): Unstar the name.
1182 (movtf_internal): Add o/G alternative.
1183
dfc55970
ZW
11842000-11-21 Zack Weinberg <zack@wolery.stanford.edu>
1185
1186 * stringpool.c (stringpool_statistics): Also report number and
1187 percentage of entries which are identifiers.
1188
d1cc928a
DN
11892000-11-21 Diego Novillo <dnovillo@redhat.com>
1190
1191 * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
1192 visited before visiting it.
1193
70f24e49
NC
11942000-11-21 Nick Clifton <nickc@redhat.com>
1195
1196 * config/arm/arm.h: Accept TARGET_CPU_arm9tdmi,
1197 TARGET_CPU_strongarm110 and TARGET_SPU_strongarm1100.
1198
1199 * config.gcc: Accept --with-cpu=arm9 and --with-cpu=arm9tdmi.
1200
3fe30ff6
RH
12012000-11-21 Richard Henderson <rth@redhat.com>
1202
1203 * c-common.c (c_unsafe_for_reeval): New function.
1204 (add_c_tree_codes): Register it.
1205 * c-common.h: Declare it.
1206 * tree.c (lang_unsafe_for_reeval): New hook.
1207 (unsafe_for_reeval): Call it.
1208 * tree.h: Declare it.
1209
3adbce3d
RH
12102000-11-21 Richard Henderson <rth@redhat.com>
1211
1212 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
1213 references as well.
1214
0736a307
NB
12152000-11-21 Neil Booth <neilb@earthling.net>
1216
a165f034 1217 * do_includes: Revert to using cpp_read_file.
0736a307 1218
52e12ad0
BS
12192000-11-21 Bernd Schmidt <bernds@redhat.co.uk>
1220
847dde95
BS
1221 * loop.c (consec_sets_giv): If the reg we're examining is anything
1222 but UNKNOWN_INDUCT, do nothing.
1223 Reset the reg's type to UNKNOWN_INDUCT before returning.
1224
52e12ad0
BS
1225 Mostly from Vladimir Makarov (vmakarov@redhat.com)
1226 * ia64.md (attr itanium_class): Define insn types as described in
1227 Itanium docs.
1228 (all insn patterns): Use itanium_class, not type attributes.
1229 Occasionally split alternatives as necessary.
1230 (attr type): Compute from new attr itanium_class.
1231
b3e2d1eb
KG
12322000-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1233
1234 * tradcpp.c (output_line_command): Mark system headers as such in
1235 `line' commands.
1236
0faf814f
JJ
12372000-11-21 Jakub Jelinek <jakub@redhat.com>
1238
1239 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
1240 support in as as well.
1241 * configure: Regenerate.
1242
3aac38d7
RH
12432000-11-20 Richard Henderson <rth@redhat.com>
1244
1245 * c-lex.c (orig_filename): New variable.
1246 (init_c_lex): Set it. Move call to cpp_start_read ...
1247 (yyparse): ... here. New function.
1248 * c-parse.in (yyparse_1): Rename the parser entry point.
1249 * c-tree.h: Declare it.
1250
6b16805e
JJ
12512000-11-21 Jakub Jelinek <jakub@redhat.com>
1252
1253 * expr.c (do_compare_and_jump): If op0 was replaced by promoted
1254 integer constant, use type of op1 for comparison.
1255
18922061
SS
12562000-11-20 Stan Shebs <shebs@apple.com>
1257
1258 * config/rs6000/xm-darwin.h: New file, Darwin host definitions.
1259 * config/rs6000/x-darwin: New file, Darwin host fragment.
1260 * config.gcc (powerpc-*-darwin*): New host.
1261 * system.h (HAVE_DESIGNATED_INITIALIZERS): Allow this to be
1262 overridden by a config file.
1263
d63eefbf
NB
12642000-11-20 Neil Booth <neilb@earthling.net>
1265
1266 * cppmacro.c (paste_tokens): Rename from paste_payloads.
1267 Change token type after pasting spellings.
1268 (paste_all_tokens): Use it.
1269 * gcc.dg/cpp/paste2.c: Update test.
1270 * objc/execute/paste.m: New test.
1271
21bc13c9
RH
12722000-11-20 Richard Henderson <rth@redhat.com>
1273
1274 * dwarf.h (FMT_CODE): Adjust argument order; fix mapping to
1275 dwarf_subscr_data_formats bits.
1276 * dwarfout.c (simple_type_size_in_bits): Handle a type with
1277 no computed size as size zero.
1278 (field_byte_offset): Likewise.
1279 (subscript_data_attribute): Handle a range with no upper bound.
1280
250333d0
KG
12812000-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1282
1283 * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
1284
1d7ff272
JM
12852000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
1286
1287 * c-typeck.c (build_conditional_expr): When merging type
1288 qualifiers for conditional expressions between a pointer and a
1289 pointer to a void type, merge the qualifiers on the target types
1290 rather than the pointer type. Remove obsolete conditioned out
1291 code.
1292
dd07b884
NB
12932000-11-20 Neil Booth <neilb@earthling.net>
1294
1295 * c-lang.c (lang_init_options): Update call to
1296 cpp_reader_init.
1297 * cppmain.c (main): Similarly.
1298 * fix-header.c (read_scan_file): Similarly.
1299 * cp/lex.c (lang_init_options): Similarly.
1300 * objc/objc-act.c (lang_init_options): Similarly.
1301 * cppexp.c (parse_number): Only warn for unextended C89.
1302 * cppinit.c (set_lang): New function.
1303 (cpp_reader_init): Take a LANG argument and pass it to set_lang.
1304 (COMMAND_LINE_OPTIONS): New option std=c++98.
1305 (cpp_handle_option): Use set_lang.
1306 * cpplex.c (_cpp_lex_token): Warn pedantically if not C99.
1307 * cppib.h (enum_c_lang): New enumeration. Update comments.
1308
8d50dfb8
WC
13092000-11-20 Will Cohen <wcohen@redhat.com>
1310
1311 * calls.c (expand_call): Clear target only when target is in
1312 hard register and current_function_check_memory_usage is set.
1313
bd675859
BS
13142000-11-20 Bernd Schmidt <bernds@redhat.co.uk>
1315
1316 * toplev.c (rest_of_compilation): Run optimize_mode_switching even
1317 if not optimizing.
1318 * sh.c (emit_sf_insn, emit_df_insn): Just call emit_insn.
1319
3df18884
RH
13202000-11-19 Richard Henderson <rth@redhat.com>
1321
52403abb
RH
1322 * crtstuff.c (force_to_data): Use array size 1 not 0.
1323
3df18884
RH
1324 * dwarf2out.c (simple_type_size_in_bits): Handle a type with
1325 no computed size as size zero.
1326 (field_byte_offset): Likewise.
1327
cfd1c7ea
JM
13282000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
1329
1330 * config.gcc: Fix another typo.
1331
a25f1211
RH
13322000-11-19 Richard Henderson <rth@redhat.com>
1333
1334 * c-decl.c (grokdeclarator): Support flexible array members.
1335 Use open-ended ranges for these and zero-length arrays.
1336 * c-typeck.c (push_init_level): Validate the context of
1337 initialization of a zero-length array.
1338 * tree.c (int_fits_type_p): Be prepared for missing bounds.
1339 * varasm.c (array_size_for_constructor): New.
1340 (output_constructor): Use it for arrays of unspecified length.
1341 * extend.texi (Zero Length): Mention C99 flexible array members.
1342 Document initialization in a top-level struct as valid.
1343
65fa2185
JM
13442000-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
1345
9e8fc4b8
JM
1346 * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
1347
65fa2185
JM
1348 * alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
1349 stdarg and varargs functions.
1350
2e59adac
ZW
13512000-11-19 Zack Weinberg <zack@wolery.stanford.edu>
1352
1353 * gcc.c (process_command): Define 'j' variable when
1354 MODIFY_TARGET_NAME is defined.
1355
856442b6
RH
13562000-11-19 Richard Henderson <rth@redhat.com>
1357
1358 * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
1359
88c1e412
FS
13602000-11-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1361
1362 * rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
1363 calculation and allocation.
1364
ce1cc601
KG
13652000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1366
1367 * builtins.c (c_getstr): Constify variable.
1368 * gmon-sol2.c (_mcleanup): Comment out #endif labels.
1369 * conflict.c (const_conflict_graph_arc): New typedef.
1370 (arc_hash, arc_eq): Avoid needlessly casting away const-ness.
1371 * cppmacro.c (builtin_macro): Likewise.
1372 * dwarf2out.c (output_comp_unit): Constify variable.
1373 * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
1374 * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
1375 * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
1376 away const-ness.
1377 * tradcpp.c (rescan, do_line, macroexpand, macarg): Use
1378 ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
1379 * varasm.c (const_str_htab_hash, const_str_htab_eq,
1380 compare_constant_1, record_constant_1): Constify.
1381
967e627a
RH
13822000-11-18 Richard Henderson <rth@redhat.com>
1383
1384 * c-decl.c (grokdeclarator): Special case the creation of an
1385 index for a zero-length array.
1386 * tree.c (build_index_type): Revert Oct 20 change.
1387
e9284adf
MM
13882000-11-18 Marek Michalkiewicz <marekm@linux.org.pl>
1389
1390 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
1391 * config/avr/avr.c (jump_tables_size): New variable.
1392 (function_prologue): Initialize it as 0.
1393 (function_epilogue): Add it to function_size.
1394 (avr_output_addr_vec_elt): New function. Count words in jump
1395 tables in jump_tables_size. Move code ...
1396 * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
1397 Call avr_output_addr_vec_elt instead.
1398 * config/avr/avr.md (tablejump): Remove disabled define_expand.
1399
67c72a63
MM
14002000-11-18 Mark Mitchell <mark@codesourcery.com>
1401
1402 * configure.in: Make --enable-new-gxx-abi the default.
1403 * configure: Likewise.
1404
0a8ad417
KG
14052000-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1406
1407 * Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
1408
1409 * tradcif.y: Include tradcpp.h. Constify. Make functions static.
1410 Move extern function declarations to tradcpp.h.
1411
1412 * tradcpp.c: Likewise.
1413
1414 * tradcpp.h: New file.
1415
77c4d6c0
JM
14162000-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
1417
1418 * c-decl.c (check_for_loop_decls): New function.
1419 * c-parse.in (for_init_stmt): New.
1420 (select_or_iter_stmt): Use for_init_stmt.
1421 * c-tree.h (check_for_loop_decls): New declaration.
1422
4a58aab6
NB
14232000-11-18 Neil Booth <neilb@earthling.net>
1424
1425 * cppinit.c: Update comments.
1426 (cpp_reader_init): Make -imacro and -include use the standard
1427 #include "" search path.
1428 (do_includes): New function.
1429
c3e2d242
BE
14302000-11-18 Ben Elliston <bje@redhat.com>
1431
1432 * config/sh/crt1.asm (start_l): Move PC-relative move instruction
1433 out of a branch delay slot.
1434
48adb36e
RH
14352000-11-17 Richard Henderson <rth@redhat.com>
1436
1437 * config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
1438 (ASM_SPEC): Disable and enable .mdebug based on -gstabs.
1439 (ASM_FILE_START): Only write out ecoff .file directive if
1440 emitting mdebug debugging.
1441
9d147085
RH
14422000-11-17 Richard Henderson <rth@redhat.com>
1443
1444 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New. Detect
1445 whether as accepts .file/.loc and produces dwarf2 line info.
1446 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if
1447 the assembler supports it.
1448 * config.in, configure: Regenerate.
1449
5b87e928
RH
14502000-11-17 Richard Henderson <rth@redhat.com>
1451
1452 * fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.
1453
95c8e04b
JW
14542000-11-17 Jim Wilson <wilson@redhat.com>
1455
1456 * config/ia64/ia64.c (emit_insn_group_barriers, case CALL_INSN):
1457 Don't clear need_barrier is next_insn is a CALL_INSN, or has
1458 instruction type B or UNKNOWN.
1459
14fbab6d
NB
14602000-11-17 Neil Booth <neilb@earthling.net>
1461
a25f1211 1462 * cpperror.c (print_file_and_line): Don't display line number if 0.
14fbab6d 1463
a8a05998
ZW
14642000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
1465
1466 * ggc.h: Delete ggc_add_string_root and ggc_mark_string. Add
1467 digit_vector and digit_string.
1468 * stringpool.c (digit_vector): New.
1469 (ggc_alloc_string): Use digit_string.
1470
1471 * stmt.c (digit_strings): Delete.
1472 (init_stmt): Do not initialize digit_strings.
1473 (expand_asm_operands): Use ggc.h's digit_string macro.
1474 * toplev.c (mark_file_stack): Delete.
1475 (compile_file): Don't call init_tree_codes.
1476 (main): No need to make the file stack a GC root.
1477 * tree.c (init_tree_codes): Delete.
1478 * tree.h (init_tree_codes): Delete.
1479
1480 * c-lex.c: Don't include ggc.h.
1481 (mark_splay_tree_node, mark_splay_tree): Delete.
1482 (init_c_lex): No need to ggc_strdup string constant. Don't add
1483 file_info_tree to GGC roots.
1484 (cb_enter_file, cb_rename_file): No need to ggc_strdup
1485 ip->nominal_fname.
1486
1487 * Makefile.in (c-lex.o): No longer depends on $(GGC_H).
1488
1489 * dbxout.c (dbxout_init),
1490 dwarf2out.c (dwarf2out_line),
1491 ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
1492 varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
1493 xcoffout.c (xcoffout_source_file),
1494 i386.c (load_pic_register):
1495 Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
1496
1497 * except.c (create_rethrow_ref),
1498 profile.c (init_edge_profiler),
1499 toplev.c (compile_file),
1500 varasm.c (named_section, assemble_static_space,
1501 assemble_trampoline_template, output_constant_def, force_const_mem),
1502 i386.c (load_pic_register),
1503 ia64.c (ia64_encode_section_info),
1504 rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
1505 rs6000_emit_prologue, rs6000_emit_epilogue),
1506 rs6000.md (load_toc_aix_si, load_toc_aix_di):
1507 Change ggc_alloc_string (var, -1) to ggc_strdup (var).
1508
1509 * profile.c (output_func_start_profiler),
1510 tree.c (make_node),
1511 i386.c (load_pic_register): No need to ggc_strdup string constant.
1512
61ed06c3
HPN
15132000-11-17 Hans-Peter Nilsson <hp@axis.com>
1514
1515 * Makefile.in (config.status): Depend on config.gcc.
1516 * configure.in <for machine in $build $host $target>: Move
1517 contents of loop into config.gcc, removing autoconf quoting.
1518 Fix changequote bug for alpha*-*-vxworks*.
1519 * configure: Regenerate.
1520 * config.gcc: New.
1521
520a57c8
ZW
15222000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
1523
1524 * c-parse.in (if_prefix): Find the filename and line number at
1525 $-2 and $-1 respectively.
1526 * diagnostic.c (error_recursion): Add missing newline, use
1527 fputs, translate string.
1528
15292000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
1530
1531 * stringpool.c: New file.
1532 * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
1533 (ggc_alloc_string): Now in stringpool.o.
1534 * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
1535 * ggc.h: Delete prototype of ggc_add_string_root. #define
1536 ggc_add_string_root and ggc_mark_string to nothing. Prototype
1537 init_stringpool and stringpool_statistics.
1538 (ggc_alloc_string): Returns a const char *.
1539 * tree.c (hash_table, do_identifier_warnings): Delete.
1540 (init_obstacks): Don't initialize the identifier hash table.
1541 (get_identifier, maybe_get_identifier, start_identifier_warnings,
1542 set_identifier_size): Now in stringpool.c.
1543 * tree.h (struct tree_string): Constify pointer field.
1544 (approx_sqrt): Prototype.
1545
1546 * Makefile.in (stringpool.o): Add rule, mention in OBJS.
1547
1548 * toplev.c (approx_sqrt): New function.
1549 (compile_file): Call stringpool_statistics if mem_report is on.
1550 (main): Call init_stringpool.
1551
1552 * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
1553 (process_directive), c-typeck.c (constructor_asmspec, struct
1554 initializer_stack, start_init), except.c (create_rethrow_ref),
1555 stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
1556 (built_in_filename), varasm,c (in_named_name,
1557 assemble_static_space, struct constant_descriptor, struct
1558 deferred_string, struct pool_constant, force_const_mem),
1559 i386.c (pic_label_name, global_offset_table_name), rs6000.c
1560 (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
1561
1562 * c-common.c (combine_strings): Combine strings in scratch
1563 buffer, then pass to build_string.
1564 * optabs.c (init_libfuncs), profile.c (init_edge_profiler,
1565 output_func_start_profiler), stmt.c (init_stmt), alpha.c
1566 (alpha_need_linkage), arm.c (arm_encode_call_attribute),
1567 i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
1568 rs6000.c (rs6000_encode_section_info): Create string in
1569 scratch buffer, then pass to ggc_alloc_string.
1570
1571 * stmt.c (expand_asm_operands): If we must adjust the
1572 constraint strings, do so by creating a new one, not by
1573 modifying the old one in place. Constify some char *s.
1574 * config/pa/pa.c (hppa_encode_label): Drop unnecessary second
1575 argument. Create string in scratch buffer, then pass to
1576 ggc_alloc_string.
1577 * config/pa/pa-protos.h: Update prototype.
1578 * config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
1579 hppa_encode_label takes only one argument.
1580
dd3b81b4
KG
15812000-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1582
1583 * mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not
1584 malloc/realloc.
1585
1586 * cpplib.c (glue_header_name): Likewise.
1587
1588 * fixincl.c (run_compiles, start_fixer): Likewise.
1589
1590 * fixlib.c (load_file_data): Likewise.
1591
1592 * mkdeps.c (munge): Likewise.
1593
5074c1fe
HPN
15942000-11-17 Hans-Peter Nilsson <hp@axis.com>
1595
1596 * defaults.h [EH_FRAME_SECTION_ASM_OP] (EH_FRAME_SECTION): Remove
1597 trailing ';'. Fix formatting.
1598
74fe26b2
JW
15992000-11-16 Jim Wilson <wilson@redhat.com>
1600
35d9f39d
JW
1601 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT, MASK_INLINE_DIV_THR):
1602 Shift masks left by one to avoid conflict.
1603
74fe26b2
JW
1604 * config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with
1605 DECL_EXTERNAL set.
1606
68dfd979
NC
16072000-11-16 Nick Clifton <nickc@redhat.com>
1608
1609 * config/arm/arm.c (output_arm_prologue): Note nested functions.
1610 (arm_expand_prologue): For nested functions preserve the
1611 static chain register during stack frame creation.
1612
1613 * config/arm/arm.h (STATIC_CHAIN_REGNUM): Change to 12.
1614 (ARM_INITIAL_FRAME_ELIMINATION_OFFSET): For a nested function
1615 with a stack frame there is a 4 byte gap between the arg
1616 pointer and the hard frame pointer (used to preserve the
1617 static chain register during stack frame creation).
1618
3ab9a08f
DD
16192000-11-16 DJ Delorie <dj@redhat.com>
1620
1621 * rtl.c (read_rtx): Provide suitable names for unnamed
1622 define_insn and define_insn_and_split patterns, based on file
1623 and line numbers.
1624
fe6c2db9
NB
16252000-11-15 Neil Booth <neilb@earthling.net>
1626
a8a05998
ZW
1627 * cpplib.c (start_directive, end_directive): New functions.
1628 (_cpp_handle_directive, run_directive): Use them.
1629 (_cpp_handle_directive): Don't -Wtraditional on indented
1630 null directives.
1631 (_cpp_push_buffer): Don't re-clear was_skipping.
1632 * cpplib.h (struct cpp_reader): New member la_saved.
1633 * cppmacro.c (cpp_get_token): Don't interpret _Pragma in
1634 directives.
fe6c2db9 1635
a8a05998
ZW
1636 gcc.dg/cpp/_Pragma1.c: Update.
1637 gcc.dg/cpp/_Pragma2.c: New test.
fe6c2db9 1638
62136084
MM
16392000-11-15 Mark Mitchell <mark@codesourcery.com>
1640
1641 * toplev.c (wrapup_global_declarations): Don't write out
1642 artificial static variables that aren't needed.
1643
099dde21
BS
16442000-11-15 Bernd Schmidt <bernds@redhat.co.uk>
1645
1646 * ia64.c (struct group): New structure.
1647 (last_group): New static array.
1648 (group_idx): New static variable.
1649 (emit_group_barrier_after, errata_find_address_regs, errata_emit_nops):
1650 New static functions.
1651 (emit_insn_group_barriers): Initialize and keep track of group_idx
1652 and last_group.
1653 Call errata_emit_nops if TARGET_B_STEP or TARGET_A_STEP.
1654 Replace all calls to emit_insn_after that emit a group barrier to use
1655 emit_group_barrier_after.
1656 * ia64.h (MASK_B_STEP): New.
1657 (other MASK_XXX macros): Renumbered.
1658 (TARGET_B_STEP): New.
1659 (TARGET_SWITCHES): Add -mb-step.
1660
4e7b85ed
FF
16612000-11-15 Fred Fish <fnf@be.com>
1662
1663 * fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
1664 machines for which fixincludes is not needed.
1665 * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
1666
ee3400e8
JM
16672000-11-15 Jason Merrill <jason@redhat.com>
1668
1669 * diagnostic.c (finish_abort): New fn.
1670 (fancy_abort, error_recursion): Use it.
1671 * toplev.c (crash_signal): Likewise.
1672 * diagnostic.h: Declare it.
1673
12e1243e
AH
16742000-11-13 Andrew Haley <aph@redhat.com>
1675
1676 * tree.c (build_type_no_quals): New function.
1677 * tree.h (build_type_no_quals): Declare.
1678 * c-common.c (c_get_alias_set): When considering type
1679 compatibility for pointer types, ignore cv-qualifiers anywhere in
1680 a pointer chain.
1681
695e4773
GS
16822000-11-15 Graham Stott <grahams@redhat.com>
1683
1684 * regrename.c (scan_rtx_rtx): Skip to the next chain on
1685 encountering a terminated chain.
1686
5a7c1037
MM
16872000-11-14 Mark Mitchell <mark@codesourcery.com>
1688
1689 * configure.in: Move check for V3 above check for C++ header-file
1690 directory.
1691 * configure: Regenerated.
a8a05998 1692
568c5140
DD
16932000-11-14 DJ Delorie <dj@redhat.com>
1694
1695 * config/v850/v850.c: Remove obstacks.
1696
1268b05f
MM
1697Tue Nov 14 21:54:31 2000 Marek Michalkiewicz <marekm@linux.org.pl> & Denis Chertykov <denisc@overta.ru>
1698
1699 * config/avr/avr.c (avr_case_values_threshold): New.
1700 (avr_override_options): Set it depending on options, make it large
1701 when not optimizing to work around "unable to generate reloads".
1702
1703 * config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
1704 (EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
1705 executable if not AVR_MEGA. Make sure jump tables are word-aligned.
1706 (JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
1707 (ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
1708 (avr_case_values_threshold): Declare as extern int.
1709 (CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.
1710
1711 * config/avr/avr.md (tablejump): Removed.
1712 (*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
1713 (*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
1714 index in the table, not multiplied by 2.
1715 (casesi): Change to match the above insns. Always enable.
1716
1717 * config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
1718 Change to expect the word address of the table, multiply it by 2
1719 here and not in the caller. Change "adiw" to faster "inc".
1720
7f2f1a66
NB
17212000-11-14 Neil Booth <neilb@earthling.net>
1722
1723 * cppexp.c (parse_defined): Call cpp_get_token not
1724 _cpp_get_token.
1725 (lex): Similarly.
1726 * cpplex.c (cpp_output_line): Similarly.
1727 * cpplib.c (glue_header_name, do_line, do_ident,
1728 parse_answer, parse_assertion): Similarly.
1729 (_cpp_handle_diretive): Don't save to lookaheads
1730 when processing directives.
1731 * cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
1732 _cpp_get_token.
1733 (funlike_invocation_p): Don't save to lookaheads
1734 when pre-expanding arguments.
1735 (_cpp_get_token): Delete.
1736 (cpp_get_token): Merge contents of _cpp_get_token.
1737
f36d6244
JJ
17382000-11-14 Jakub Jelinek <jakub@redhat.com>
1739
1740 * builtins.c (expand_builtin_setjmp): Set
1741 current_function_calls_setjmp.
1742 (expand_builtin_longjmp): Set current_function_calls_longjmp.
1743
1744 * config/sparc/sparc.md (builtin_setjmp_setup): New expand.
1745 (do_builtin_setjmp_setup): New insn.
1746
3401c26b
RK
1747Tue Nov 14 12:34:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1748
1749 * tree.c (get_unwidened): Use host_integerp and tree_low_cst.
1750 (int_fits_type_p): For variable bounds, call force_fit_type.
1751
bd7cf17e
JJ
17522000-11-14 Jakub Jelinek <jakub@redhat.com>
1753
1754 * varasm.c (struct deferred_string): New structure.
1755 (const_str_htab): New variable.
1756 (STRHASH): New macro.
1757 (mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
1758 constr_str_htab_eq, const_str_htab_del): New functions.
1759 (output_constant_def): Add DEFER argument, defer string
1760 constants until mark_constant_pool time if requested.
1761 (mark_constant_pool): Walk the insn chain even if const_str_htab is
1762 not empty.
1763 (mark_constants): If a SYMBOL_REF for deferred string is found,
1764 output it and remove from hash table.
1765 (output_addressed_constants): Set DEFER to 0 in call to
1766 output_constant_def.
1767 * rtl.h (STRING_POOL_ADDRESS_P): Define.
1768 (output_constant_def): Adjust prototype.
1769 * expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.
1770
10e927ef
CC
17712000-11-14 Chandrakala Chavva <cchavva@redhat.com>
1772
1773 * optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
1774 signed types if flag_trapv.
1775
ef90743a
ZW
17762000-11-14 Zack Weinberg <zack@wolery.stanford.edu>
1777
1778 * tradcpp.c, tradcif.y: Update FSF mailing address, delete
1779 reference to GPLv1.
1780
fe8ca71f
JM
17812000-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
1782
1783 * c-common.h (CTI_C_SIZE_TYPE): Update comment.
1784
94b01be3
JJ
17852000-11-14 Jakub Jelinek <jakub@redhat.com>
1786
1787 * varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
1788 to array of pool_constnat pointers.
1789 (struct pool_constant): Add next_sym and label members.
1790 (struct pool_sym): Remove.
1791 (init_varasm_status): Change pool_sym into pool_constant.
1792 (mark_pool_constant): Mark pc->label string as well.
1793 (mark_pool_sym_hash_table): Remove.
1794 (mark_varasm_status): Remove it from caller as well.
1795 (free_varasm_status): Don't free pool_sym structures.
1796 (force_const_mem): Don't allocate pool_sym structure, instead
1797 fill pool->label and chain it into rtx_sym hash table.
1798 (find_pool_constant, mark_constant_pool): Use pool_constant instead
1799 of pool_sym.
1800
716120a7
JJ
18012000-11-14 Jakub Jelinek <jakub@redhat.com>
1802
1803 * reload1.c (emit_input_reload_insns): Honour forcing of constants
1804 into memory by PREFERRED_RELOAD_CLASS NO_REGS.
1805
f8032688
MM
18062000-11-14 Michael Matz <matzmich@cs.tu-berlin.de>
1807
1808 * dominance.c: New file.
1809 * Makefile.in (OBJS): Add dominance.o.
1810
1811 * flow.c (compute_flow_dominators): Remove.
1812 (compute_immediate_dominators): Remove.
1813 (compute_immediate_postdominators): Remove.
1814 * basic-block.h: Remove their prototypes.
1815 (calculate_dominance_info): Add prototype.
1816
1817 * dce.c (eliminate_dead_code): Change calls to above functions.
1818 Don't compute dominators but only immediate dominators.
1819 * flow.c (flow_loops_find): Change callers.
1820 * gcse.c (compute_code_hoist_data): Likewise.
1821 * haifa-sched.c (schedule_insns): Likewise.
1822 * ifcvt.c (if_convert): Likewise.
1823 * ssa.c (convert_to_ssa): Likewise, and only compute immediate
1824 dominators.
1825
0caa3c8e
RH
18262000-11-14 Richard Henderson <rth@redhat.com>
1827
6f122550
RH
1828 * stmt.c (warn_if_unused_value): Don't warn if the expression
1829 has side effects.
1830
0caa3c8e
RH
1831 * c-typeck.c (c_sizeof): Fold result to c_size_type_node.
1832 (c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.
1833
a78cc542
FS
18342000-11-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1835
1836 * loop.c (basic_induction_var): Revert accidental checkin.
1837
d9068c61
HPN
18382000-11-13 Hans-Peter Nilsson <hp@axis.com>
1839
1840 * c-lex.c (cb_leave_file): Harmonize conditions and order of
1841 statements to those of process_directive for (action == act_pop).
1842
1843 * collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS.
1844
1845 * local-alloc.c (equiv_init_movable_p): References to CC0 are not
1846 movable.
1847
ebf02523
JM
18482000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1849
1850 * c-parse.in (stmts_and_decls): Deprecate use of label at end of
1851 compound statement.
1852
29b10746
NB
18532000-11-13 Neil Booth <neilb@earthling.net>
1854
ee3400e8
JM
1855 * cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF
1856 cases return without MI check.
1857 * cpplib.c (do_diagnostic): Take boolean of whether to
1858 print the directive name.
1859 (do_error, do_warning): Update.
1860 (do_pragma_dependency): Use it.
1861 * cpplib.h (VARARGS_FIRST): Delete.
1862 (struct cpp_token): Delete integer.
1863 * cppmacro.c (enter_macro_context): Move disabled check
1864 to _cpp_get_token.
1865 (_cpp_get_token): Simplify into a single loop.
29b10746 1866
8105825d
RE
18672000-11-13 Richard Earnshaw <rearnsha@arm.com>
1868
1869 * configure.in: Use 'test -f' not '[ -e'.
1870 * configure: Regenerated.
1871
481a6b4a
DD
18722000-11-13 DJ Delorie <dj@redhat.com>
1873
1874 * config/mn10300/mn10300.md (store_movm): Note which registers are
1875 really used or clobbered.
1876
b7438415
JM
18772000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1878
1879 * c-parse.in (ends_in_label): Remove from %union and %type.
1880 (decls, stmts, lineno_stmt_or_labels, xstmts,
1881 lineno_stmt_or_label, stmt_or_label): Remove.
1882 (stmts_and_decls, lineno_stmt_decl_or_labels_ending_stmt,
1883 lineno_stmt_decl_or_labels_ending_decl,
1884 lineno_stmt_decl_or_labels_ending_label,
1885 lineno_stmt_decl_or_labels_ending_error,
1886 lineno_stmt_decl_or_labels, compstmt_contents_nonempty,
1887 lineno_stmt, lineno_label): New.
1888 (compstmt_nostart): Use compstmt_contents_nonempty.
1889
19552aa5
JM
18902000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1891
1892 * c-common.c (boolean_increment): New function.
1893 * c-common.h (enum c_tree_index): Add CTI_C_BOOL_TYPE,
1894 CTI_C_BOOL_TRUE and CTI_C_BOOL_FALSE.
1895 (c_bool_type_node, c_bool_true_node, c_bool_false_node): Define.
1896 (boolean_increment): Declare.
1897 * c-convert.c (convert): Allow for BOOLEAN_TYPE.
1898 * c-decl.c (init_decl_processing): Create boolean nodes.
1899 (finish_struct): Allow for _Bool bitfields.
1900 * c-parse.in (reswords): Add _Bool.
1901 (rid_to_yy): Allow for RID_BOOL.
1902 * c-typeck.c (default_conversion): Make booleans promote to int.
1903 (convert_arguments, build_unary_op, build_modify_expr,
1904 convert_for_assignment): Allow for booleans.
1905 * ginclude/stdbool.h: Make conforming to C99.
1906
444ca59f
JM
19072000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1908
1909 * c-parse.in (c99_block_start, c99_block_end,
1910 c99_block_lineno_labeled_stmt): New.
1911 (simple_if, do_stmt_start): Use c99_block_lineno_labeled_stmt.
1912 (stmt): Split off selection and iteration statements into...
1913 (select_or_iter_stmt): New. Use c99_block_lineno_labeled_stmt.
1914
f2ecb02d
JM
19152000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1916
1917 * invoke.texi (-Wtrigraphs, -fdump-translation-unit, -save-temps,
1918 -time): Update.
1919
b082bfdb
RE
19202000-11-13 Richard Earnshaw <rearnsha@arm.com>
1921
1922 * arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
1923 Rewrite to avoid use of match_dup. Don't try to tie registers that
1924 are not in the same mode.
1925
b9265ec1
JM
19262000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1927
1928 * invoke.texi: Update lists of languages and suffixes supported.
1929
cc1e60ea
JM
19302000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1931
1932 * configure.in: Take toplevel configure arguments from the
1933 environment to create configargs.h and substitute
1934 gcc_config_arguments, taking account of any existing configargs.h
1935 if reconfiguring.
1936 * configure: Regenerate.
1937 * gccbug.in: Include toplevel configure arguments in gccbug.
1938
37357796
RE
19392000-11-13 Richard Earnshaw <rearnsha@arm.com>
1940
1941 * varasm.c (struct constant_descriptor): Put CONTENTS inside a
1942 union to make it well-aligned. Update all uses.
1943
26d4fec7
JM
19442000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1945
1946 * c-parse.in (initelt): Give appropriate pedantic warnings,
1947 depending on flag_isoc99, for non-ISO syntax and for C99 syntax
1948 outside C99 mode.
1949 (designator): If pedantic, pedwarn for a designator specifying a
1950 range of elements.
1951 * c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
1952 these cases.
1953 * extend.texi: Document the C99 syntax as the preferred syntax,
1954 and the pre-2.5 syntax as obsolete. Mention use of designator
1955 lists for nested subobjects.
1956
88f3c477
JM
19572000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
1958
1959 * diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
1960 Add ATTRIBUTE_PRINTF.
1961 * tradcpp.c (v_message, warning, error, fatal, error_with_line):
1962 Add ATTRIBUTE_PRINTF*.
1963
db5fbfb4
MM
19642000-11-12 Mark Mitchell <mark@codesourcery.com>
1965
1966 * function.c (assign_parms): When calling put_var_into_stack, make
1967 sure that there are no hidden pending sequences.
1968
c7b6c6cd
KG
19692000-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1970
1971 * builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
1972 BUILT_IN_RINDEX. Add missing checks for BUILT_IN_STRCHR and
1973 BUILT_IN_STRRCHR.
1974
1975 * builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.
1976
1977 * c-common.c (c_common_nodes_and_builtins): Declare index and
1978 rindex when nonansi builtins are allowed.
1979
1980 * extend.texi (index, rindex): Document new builtins.
1981
2f86842d
MM
19822000-11-12 Mark Mitchell <mark@codesourcery.com>
1983
34f6fbdb
MM
1984 * configure.in: Turn on libstdc++ V3 by default.
1985 * configure: Regenerated.
a8a05998 1986
2f86842d
MM
1987 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
1988
0c0ba09c
JJ
19892000-11-12 Jakub Jelinek <jakub@redhat.com>
1990
1991 * reload1.c (set_label_offsets): Go inside of PARALLELs.
1992
84a0e7b8
JM
19932000-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
1994
1995 * invoke.texi: Clean up option summary.
1996
4816b8e4
NC
19972000-11-12 Nick Clifton <nickc@redhat.com>
1998
1999 * config/mcore/mcore.c: Fix comment formating, and adjust sequence
2000 of #include headers.
2001
ee7692d2 20022000-11-12 Marc Espie <espie@openbsd.org>
a8a05998 2003
ee7692d2
ME
2004 * configure.in: Fix filds test.
2005 * configure: Regen.
2006
f8c4f860
MM
20072000-11-12 Mark Mitchell <mark@codesourcery.com>
2008
2009 * jump.c (delete_computation): Don't assume that just becuase an
2010 instruction sets a register, that register is dead.
2011
b528a07e
NB
20122000-11-12 Neil Booth <neilb@earthling.net>
2013
a8a05998
ZW
2014 * cppexp.c: Don't worry about pfile->skipping.
2015 * cpplib.c (struct if_stack): Make was_skipping unsigned char.
2016 (cpp_handle_directive): Save pfile->skipping in struct cpp_buffer
2017 for handled directives.
2018 (skip_rest_of_line): Use _cpp_lex_token after popping contexts
2019 and releasing lookaheads.
2020 (do_ifdef, do_ifndef, do_if): Use buffer->was_skipping.
2021 (do_else, do_elif, push_conditional): Update logic.
2022 (do_endif): Set buffer->was_skipping rather than pfile->skipping.
2023 (unwind_if_stack): Inline into cpp_pop_buffer.
2024 (cpp_push_buffer): Clear ifs->was_skipping for cpp_handle_directive.
2025 * cpplex.c (_cpp_lex_token): Clear skipping on EOF. Handle
2026 multiple-include optimisation.
2027 * cpplib.h (struct cpp_buffer): New member was_skipping.
2028 * cppmacro.c (_cpp_get_token): Loop whilst pfile->skipping. This
2029 works because skipping == 0 in directives.
2030 (_cpp_release_lookahead): Renamed from release_lookahead.
2031 (cpp_get_token): No need to check skipping as _cpp_get_token does
2032 this for us. No need to handle MI optimisation.
b528a07e 2033
995c461c
MM
2034Sat Nov 11 21:14:02 2000 Mark P Mitchell <mark@codesourcery.com>
2035
2036 * fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
2037 declarations that use `__MATH_EXCEPTION' in their prototypes, too.
2038 * fixinc/fixincl.x: Regenerated.
a8a05998 2039
56a77e1e
BK
20402000-11-11 Bruce Korb <bkorb@gnu.org>
2041
2042 * fixinc/inclhack.def (avoid_bool_type): avoid commenting out #endif
2043 (avoid_wchar_t_type): ditto
2044 * fixinc/fixinc.irix: obsoleted
2045
72aaffbd
ZW
20462000-11-11 Zack Weinberg <zack@wolery.stanford.edu>
2047
2048 * configure.in: Don't add $outputs to all_lang_makefiles. Add
2049 $srcdir/$s/Makefile.in if it exists.
2050 * configure: Regenerate.
2051
bbdd639d
MM
2052Sat Nov 11 18:41:20 2000 Mark P Mitchell <mark@codesourcery.com>
2053
2054 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
2055
d96a6d1a
JM
20562000-11-11 Jason Merrill <jason@redhat.com>
2057
a8a05998 2058 * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to
d96a6d1a
JM
2059 give the parm a register and then call put_var_into_stack.
2060 * stmt.c (expand_decl): Likewise.
2061
8ee322c9
JM
20622000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
2063
2064 * gcc.texi: Adjust wording.
2065
8b4c8a86
MM
20662000-11-11 Mark Mitchell <mark@codesourcery.com>
2067
2068 * fixinc/inclhack.def (avoid_wchar_t_type): New fix.
2069 * fininc/fixincl.x: Regenerated.
2070
639726ba
JM
20712000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
2072
2073 * invoke.texi: Correct spelling of -foptimize-register-move.
2074
4c2b647d
NB
20752000-11-11 Neil Booth <neilb@earthling.net>
2076
2077 Remove CPP_PLACEMARKERs.
2078
2079 * cppexp.c (lex): Don't handle CPP_PLACEMARKER.
2080 * cpplex.c (_cpp_lex_token): Rename skip_newlines to next_bol
2081 * cpplib.c (skip_rest_of_line, check_eol, cpp_push_buffer):
a8a05998 2082 Similarly.
4c2b647d
NB
2083 * cpplib.h: Remove CPP_PLACEMARKER.
2084 (struct lexer_state): Rename skip_newlines to next_bol.
2085 * cppmacro.c (stringify_arg): Don't handle CPP_PLACEMARKER.
2086 Simplify prev_white handling as a result.
2087 (paste_all_tokens): Don't worry about CPP_PLACEMARKERs.
2088 (parse_arg): Empty arguments are now empty, not CPP_PLACEMARKERs.
2089 (parse_args): Similarly. Update argument count tests.
2090 (enter_macro_context): Return 2 to indicate an empty macro.
2091 (replace_args): Don't bother pre-expanding an empty argument.
2092 Handle placemarkers and ## extension during pre-expansion.
2093 (cpp_get_token): Handle empty macro expansions. Don't worry
2094 about CPP_PLACEMARKERs.
2095 (_cpp_create_definition): Empty macros are now empty.
2096 (cpp_macro_defintion): Don't special case empty macros.
2097 * scan-decls.c: Don't bother with CPP_PLACEMARKERs.
2098 * c-lex.c: Similarly.
2099
c1030c7c
JM
21002000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
2101
2102 * gcc.texi, invoke.texi: Add new section discussing language
2103 standards; link to it where appropriate; refer to ISO C instead of
2104 ANSI C.
2105
93a77848
AO
21062000-11-11 Alexandre Oliva <aoliva@redhat.com>
2107
3650b695
AO
2108 * builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY
2109 into account.
2110
93a77848
AO
2111 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP
2112 modes.
2113
9a5a13c9
JM
21142000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
2115
2116 * gcc.texi, gcov.texi: Update dates and version numbers.
2117
1e608388
ZW
21182000-11-10 Zack Weinberg <zack@wolery.stanford.edu>
2119
2120 * configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
2121 flex and bison, specifically, first in a unified build and
2122 then installed on the system.
2123 * Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
2124 LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
2125 match.
2126
2127 (collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
2128 cppdefault.o): Remove pointless sed munging of source file
2129 name.
2130
9532e31f
BS
21312000-11-10 Bernd Schmidt <bernds@redhat.co.uk>
2132
2133 * reload.c (find_reloads_address_1, case POST_MODIFY): Use RELOAD_OTHER
2134 for address reloads. Push replacements for REG_INC notes.
2135 (regno_clobbered_p): New arg SETS. Examine SETs if it's nonzero. All
2136 callers changed.
2137 * reload1.c (choose_reload_regs): Registers set in the insn can't be
2138 used for RELOAD_OTHER reloads.
2139
721de836
MM
21402000-11-10 Mark Mitchell <mark@codesourcery.com>
2141
2142 * c-dump.h: New file.
2143
4e135bdd
KG
21442000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2145
2146 * alpha.c (check_float_value): Use memcpy, not bcopy.
2147 * arm.c (output_move_double): Likewise.
2148 * arm.md: Likewise.
2149 * m88k.c (legitimize_operand): Likewise.
2150 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
2151 * m88k.md: Likewise.
2152 * mips.c (override_options): Likewise.
2153 * mips.md: Likewise.
2154 * romp.c (output_fpops): Likewise.
2155 * rs6000.c (rs6000_override_options): Likewise.
2156 * sh.md: Likewise.
2157 * vax.c (check_float_value): Likewise.
2158
2159 * emit-rtl.c (copy_rtx_if_shared, init_emit_once): Likewise.
2160 * expmed.c (synth_mult): Likewise.
2161 * final.c (add_bb_string): Likewise.
2162 * genattr.c (main): Likewise.
2163 * genattrtab.c (attr_string, simplify_cond, copy_rtx_unchanging):
2164 Likewise.
2165 * jump.c (thread_jumps): Likewise.
2166 * prefix.c (save_string): Likewise.
2167 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Likewise.
2168 * regclass.c (init_reg_sets, init_reg_sets_1): Likewise.
2169 * reload1.c (reload, eliminate_regs): Likewise.
2170
c8abeb44
JM
21712000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
2172
2173 * gcc.texi (Service): Update to reflect current practice and
2174 location of the GNU service directory.
2175
6fb85418
BS
21762000-11-09 Bernd Schmidt <bernds@redhat.co.uk>
2177
2178 * regrename.c (build_def_use): Mark contents of REG_INC notes as
2179 needing replacement.
2180
0c478921
BS
2181 * config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Emit
2182 a no-op move if regs are equal.
2183 * toplev.c (rest_of_compilation): Do the noop moves elimination pass
a8a05998 2184 when calling jump after post-reload splitting.
0c478921 2185
3b7a2e58
JM
21862000-11-09 Jan van Male <jan.vanmale@fenk.wau.nl>
2187
a8a05998
ZW
2188 * c-tree.texi: Fix typos.
2189 * extend.texi: Likewise
2190 * gcov.texi: Likewise
2191 * rtl.texi: Likewise
2192 * tm.texi: Likewise
3b7a2e58 2193
59257980
HPN
21942000-11-09 Hans-Peter Nilsson <hp@axis.com>
2195
2196 * c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
2197 in_system_header and flags[1] before dereferencing flags[2].
2198
881a8969
MH
21992000-11-09 Matthew Hiller <hiller@redhat.com>
2200
2201 * reload1.c (reload_combine): Fixed calculation of
2202 first_index_reg, last_index_reg.
2203
0a7394bc
MM
22042000-11-09 Mark Mitchell <mark@codesourcery.com>
2205
13507bd8
MM
2206 * c-dump.c (dequeue_and_dump): Dump function bodies.
2207
0a7394bc
MM
2208 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
2209 (c-dump.o): New target.
2210 * c-common.h (flag_dump_translation_unit): New variable.
2211 (C_TYPE_QUALS): New macro.
2212 (strip_array_types): New function.
2213 (DECL_C_BIT_FIELD): New macro.
2214 (SET_DECL_C_BIT_FIELD): Likewise.
2215 (CLEAR_DECL_C_BIT_FIELD): Likewise.
2216 (dump_info_p): New typedef.
2217 (dump_tree_fn): Likewise.
2218 (lang_dump_tree): New variable.
2219 (dump_node_to_file): New function.
2220 * c-common.c (flag_dump_translation_unit): Define it.
2221 (strip_array_types): New function.
2222 * c-decl.c (c_decode_option): Handle -fdump-translation-unit.
a8a05998 2223 * c-lang.c (finish_file): Call dump_node_to_file if
0a7394bc
MM
2224 flag_dump_translation_unit.
2225 * c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
2226 * c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
2227 * c-dump.c: New file.
a8a05998 2228
abffe289
CF
22292000-11-09 Christopher Faylor <cgf@cygnus.com>
2230
2231 * config/i386/cygwin.h: Add mingw startfile prefix.
2232
1288c070
RH
22332000-11-09 Richard Henderson <rth@redhat.com>
2234
2235 * flow.c (invalidate_mems_from_set): Split out from ...
2236 (mark_set_1): ... here.
2237 (try_pre_increment_1): Use it. Use propagate_block_delete_insn
2238 instead of turning insn into a NOTE_INSN_DELETED.
2239
01702459
JM
22402000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
2241
2242 * extend.texi, invoke.texi: Move documentation of builtin versions
2243 of C library functions to one place and update.
2244
30355eaa
RH
22452000-11-09 Richard Henderson <rth@redhat.com>
2246
2247 * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
2248 the types themselves to discover type equivalence.
2249
5fcee6f3
MS
22502000-11-09 Mike Stump <mrs@wrs.com>
2251
2252 * Makefile.in (distclean): Remove a few extra leftovers.
2253
377b6fce
RH
22542000-11-09 Richard Henderson <rth@redhat.com>
2255
c0e3f87d
RH
2256 * recog.c (validate_replace_rtx_1): Consider subregs when
2257 replacing a register with a constant inside a sign/zero_extend.
2258
377b6fce
RH
2259 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2260
b52114d2
GK
22612000-11-09 Geoffrey Keating <geoffk@redhat.com>
2262
2263 * c-decl.c (finish_struct): When a structure is completed,
2264 check all its variant types for completeness.
2265
a949941c
NB
22662000-11-09 Neil Booth <neilb@earthling.net>
2267
2268 * cpphash.c: Move cpp_defined here from cpplib.c.
2269 * cpplib.c: Update comments, move cpp_defined to cpphash.c.
2270 * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
2271 * cppmacro.c (cpp_get_token): Update comments, no need now
2272 to catch the CPP_EOF meaning EOL case.
2273
9a0662b4
GK
22742000-11-08 Geoffrey Keating <geoffk@redhat.com>
2275
2276 * config/sparc/sparc.c (sparc_va_arg): When the required alignment
2277 is more than that provided, copy to a temporary.
2278
6c80a645
AO
22792000-11-09 Alexandre Oliva <aoliva@redhat.com>
2280
2281 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
2282 interpreting $out as a macro assignment.
2283 * Makefile.in (T_TARGET): New auxiliary macro and target.
2284 (all): Add a target right in the beginning, so that we don't build
2285 T_TARGET by default.
2286
6a4afa6c
GS
22872000-11-09 Graham Stott <grahams@redhat.com>
2288
a8a05998 2289 * config/i386/i386.md (mmx_pinsrw): Output operands in correct
6a4afa6c
GS
2290 order for -mintel-syntax. Remove comment now that the operand
2291 order has been checked.
2292 (mmx_pextrw): Likewise.
2293 (mmx_pshufw): Likewise.
2294
2dee4af1
JJ
22952000-11-09 Jakub Jelinek <jakub@redhat.com>
2296
2297 * builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
2298 (c_getstr): New function.
2299 (expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
2300 If both arguments are constant string, optimize out.
2301 (expand_builtin_strchr, expand_builtin_strrchr): New functions.
2302 (expand_builtin_strpbrk): Use c_getstr, do nothing if
2303 -fcheck-memory-usage.
2304 (expand_builtin_fputs): Likewise.
2305 (expand_builtin_strcmp): Add MODE argument.
2306 Use even if !HAVE_cmpstrsi.
2307 Optimize the case when both arguments are constant strings.
2308 (expand_builtin): Adjust expand_builtin_strcmp caller.
2309 Call expand_builtin_strchr and expand_builtin_strrchr.
2310 * c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
2311 builtins.
2312 * builtins.def (BUILT_IN_STRRCHR): Add.
2313
97dc9fc0
GP
23142000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2315
2316 * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
2317
2e09e75a
JM
23182000-11-09 Joseph S. Myers <jsm28@cam.ac.uk>
2319
2320 * calls.c (expand_call, emit_library_call_value_1), collect2.c
2321 (scan_prog_file), config/a29k/a29k.c (print_operand),
2322 config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
2323 instead of bcopy ().
2324 * real.h: Use memcmp () instead of bcmp ().
2325 * config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
2326 (split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
2327 ultrasparc_sched_init, ultrasparc_sched_reorder),
2328 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
2329 instead of bzero ().
2330 * config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
2331 instead of rindex ().
2332 * configure.in: Don't check for bzero, bcmp, index or rindex.
2333 * configure, config.in: Regenerate.
2334 * system.h: Don't include declarations for bzero, bcmp, index or
2335 rindex.
2336 * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
2337 bzero, bcmp, index or rindex.
2338
03fb4780
CF
2339Wed Nov 8 21:58:20 2000 Christopher Faylor <cgf@cygnus.com>
2340
2341 * config/i386/cygwin.h: Add -no-win32 switch. Separate -mno-cygwin
2342 include and library paths from -mcygwin case. Parameterize some
2343 declarations to avoid warnings. Use standard locations for include and
2344 lib dirs.
2345
ca68ea18
NC
23462000-11-08 Nick Clifton <nickc@redhat.com>
2347
2348 * config/arm/arm.md (mulsidi3adddi): Change output operand
eb68ad7c 2349 constraint from "=&" to "+&".
ca68ea18 2350 (umulsidi3adddi): Change output operand constraint from "=&" to
eb68ad7c 2351 "+&".
ca68ea18 2352
c32e1e6f
RH
23532000-11-08 Richard Henderson <rth@redhat.com>
2354
2355 * flow.c (init_propagate_block_info): Protect the rtx stored in
2356 mem_set_list from modification by find_auto_inc.
2357 (mark_set_1): Likewise.
2358
adb84b42
NB
23592000-11-08 Neil Booth <neilb@earthling.net>
2360
a8a05998
ZW
2361 Move directive handling into the lexer itself.
2362
2363 * cpplex.c (_cpp_lex_token): Handle directives directly.
2364 In the case of a directive interrupting a function-like
2365 macro invocation, use extra_char since read_ahead is
2366 used to store the '#'. Return a CPP_EOF in this case.
2367 * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
2368 (cpp_get_token): Don't handle directives here.
2369 * cpplib.h: Remove CPP_DHASH token type.
adb84b42 2370
756d6f0c
JH
2371Wed Nov 8 21:53:41 MET 2000 Jan Hubicka <jh@suse.cz>
2372
2373 * regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
2374 formed using PRE_MODIFY too.
2375
c39c0db3
MM
23762000-11-08 Mark Mitchell <mark@codesourcery.com>
2377
69908851
MM
2378 * c-tree.texi (VAR_DECL): Describe representation of GCC's
2379 extension for placing variables in particular registers.
2380
c39c0db3
MM
2381 * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
2382 unprototyped C functions with no parameters.
2383
6cada0cd
JJ
23842000-11-08 Jakub Jelinek <jakub@redhat.com>
2385
2386 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
2387 before passing to fprintf.
2388
768f0669
JJ
23892000-11-08 Jakub Jelinek <jakub@redhat.com>
2390
2391 * function.c (expand_function_start): Cast GET_MODE_SIZE to
2392 HOST_WIDE_INT before negating it.
2393
df6018fd
JJ
23942000-11-08 Jakub Jelinek <jakub@redhat.com>
2395
2396 * expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
2397 passed in multiple non-contiguous locations.
2398
14ae1d50 23992000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
a8a05998 2400
14ae1d50
GP
2401 * README.gnat: Remove file.
2402
673887d5
AO
24032000-11-08 Alexandre Oliva <aoliva@redhat.com>
2404
2405 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
2406 in-place.
2407
66234570
RH
24082000-11-07 Richard Henderson <rth@redhat.com>
2409
2410 * dwarfout.c (INSN_LABEL_FMT): Remove.
2411 (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
2412 (dwarfout_label): Remove.
2413 * dwarfout.h: Remove it's prototype.
2414 * dwarf2out.c (INSN_LABEL_FMT): Remove.
2415 (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
2416 (dwarf2out_label): Remove.
2417 * dwarf2out.h: Remove it's prototype.
2418 * final.c (final_scan_insn): Don't call dwarf[2]out_label.
2419
81b75d96
RH
24202000-11-07 Richard Henderson <rth@redhat.com>
2421
cd5c4048
RH
2422 * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
2423 search on the unwind region section.
2424
2425 * config/ia64/ia64.md (movbi): Add r/r alternative.
2426 (cmovdi_internal_astep): Describe all combinations of register
2427 classes for sources & destinations; remove matching constraints.
2428 (cmovdi_internal): Likewise.
2429
81b75d96
RH
2430 * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
2431
6dbaddf9
RH
24322000-11-07 Richard Henderson <rth@redhat.com>
2433
2434 * c-lang.c (start_cdtor, finish_cdtor): New functions.
2435 (finish_file): Use them in building constructor/destructor functions.
2436
a8a05998 2437 * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
6dbaddf9
RH
2438 LD_FINI_SWITCH): Move ...
2439 * config/alpha/osf.h: ... here.
2440 * config/alpha/alpha-interix.h: Don't undef them.
2441
99b13084
JO
24422000-11-07 Jeffrey Oldham <oldham@oz.codesourcery.com>
2443
2444 * config/mips/t-iris6 (FPBIT): New. Added so that __unorddf2 is
2445 included in libgcc.a.
2446 (DPBIT): Likewise.
2447 (dp-bit.c): Likewise.
2448 (fp-bit.c): Likewise.
2449
d7cac874
NC
24502000-11-07 Nick Clifton <nickc@redhat.com>
2451
2452 * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
2453 (INTERNAL_ASM_OP): Add missing tab.
2454
961192e1
JM
24552000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
2456
2457 * alias.c (init_alias_analysis), calls.c (expand_call,
2458 emit_library_call_value_1), combine.c (init_reg_last_arrays),
2459 cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
2460 (init_output_buffer, set_diagnostic_context), dwarf2out.c
2461 (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
2462 (init_emit_once), fold-const.c (mul_double, div_and_round_double),
2463 function.c (assign_parms), gcse.c (compute_can_copy,
2464 alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
2465 compute_hash_table, compute_set_hash_table,
2466 compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
2467 (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
2468 clear_units, schedule_block), integrate.c (initialize_for_inline,
2469 expand_inline_function), jump.c (thread_jumps), local-alloc.c
2470 (local_alloc), loop.c (combine_movables, count_loop_regs_set,
2471 load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
2472 regclass.c (init_reg_sets, init_reg_sets_1, regclass,
2473 record_reg_classes, allocate_reg_info), reload.c
2474 (get_secondary_mem, remove_address_replacements, find_reloads),
2475 reload1.c (reload, set_initial_label_offsets, finish_spills,
2476 reload_as_needed, choose_reload_regs_init,
2477 reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
2478 (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
2479 (rename_registers), stmt.c (expand_end_case), unroll.c
2480 (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
2481 () instead of bzero ().
2482
e3cc3581
NB
24832000-11-07 Neil Booth <neilb@earthling.net>
2484
2485 * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
2486
f8136648
KG
24872000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2488
2489 * c-common.c (combine_strings): Only warn about long strings for C.
2490
71fd5a51
R
2491Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
2492
2493 * combine.c (distribute_notes): Fix typo in last change.
2494
bdaa0181
GK
24952000-11-07 Geoff Keating <geoffk@redhat.com>
2496
2497 * config/rs6000/rs6000.md (movdi_internal32+1): Use
2498 operand_subreg_force rather than gen_rtx_SUBREG.
2499 (movdi_internal32+2): Likewise.
2500
bc56a125
PB
25012000-11-07 Philip Blundell <philb@gnu.org>
2502
2503 * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
2504 * config/arm/linux-aout.h: Likewise.
2505 * configure: Regenerate.
2506
a71d3613
PT
25072000-11-07 Philipp Thomas <pthomas@suse.de>
2508
2509 * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
2510 accepted my the gettext maintainer.
2511
26a87cab
KG
25122000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2513
2514 * builtins.c (expand_builtin_strpbrk): New function.
2515 (expand_builtin): Handle BUILT_IN_STRPBRK.
2516
2517 * builtins.def (BUILT_IN_STRPBRK): New entry.
2518
2519 * c-common.c (c_common_nodes_and_builtins): Declare builtin
2520 strpbrk.
2521
ace54f91
DB
25222000-11-07 David O'Brien <obrien@dragon.nuxi.com>
2523
2524 * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
2525 * POTFILES.in: Add config/alpha/freebsd.h
2526 * configure.in: Add alpha*-freebsd support.
2527 * configure: Regenerate.
2528
0dec5df9
JM
25292000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
2530
2531 * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
2532 copy of ptr_type_node rather than ptr_type_node itself.
2533
bf103ec2
R
2534Tue Nov 7 06:29:24 2000 J"orn Rennecke <amylaar@redhat.com>
2535
2536 * combine.c (recog_for_combine): Allocate uninitialized vector with
2537 rtvec_alloc.
2538 * recog.c (apply_change_group): Likewise.
2539
c762163e
R
2540Tue Nov 7 06:24:02 2000 J"orn Rennecke <amylaar@redhat.com>
2541
2542 * flow.c (verify_local_live_at_start): Back out last change.
2543 * combine.c (distribute_notes): When parts of a hard reg are
2544 neither set nor referenced in PLACE, search backwards for a
2545 place to put a REG_UNUSED note; if none found, ask for flow
2546 info refresh.
2547
f34c06e5
R
2548Mon Nov 6 20:08:13 2000 J"orn Rennecke <amylaar@redhat.com>
2549
2550 * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
2551 with (clobber (match_scratch...)).
2552
2b892489
NB
25532000-11-06 Neil Booth <neilb@earthling.net>
2554
2555 * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
2556 error status.
2557
ea33bfc5
NB
25582000-11-06 Neil Booth <neilb@earthling.net>
2559
a8a05998 2560 * tradcpp.c (special_symbol): Assign an null string rather
ea33bfc5
NB
2561 than writing to an unallocated buffer.
2562
56051c0a
NB
25632000-11-06 Neil Booth <neilb@earthling.net>
2564
2565 * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
2566 CPP_MACRO_ARG case.
2567
6c53ebff
NB
25682000-11-06 Neil Booth <neilb@earthling.net>
2569
2570 * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
2571 tok.val.arg_no as appropriate.
2572 * cppexp.c (lex): Similarly.
2573 * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
2574 cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
2575 * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
2576 cpp_macro_definition): Similarly.
2577 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
2578
8b1c5fd0
JJ
25792000-11-06 Jakub Jelinek <jakub@redhat.com>
2580
2581 * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
2582 operands[1] is constant, calculate the sum and generate movdi.
2583 (addsi3): Similarly. Use SImode in call to arith_4096_operand.
2584 (subsi3): Use SImode in call to arith_4096_operand.
2585
a0115140
JJ
25862000-11-06 Jakub Jelinek <jakub@redhat.com>
2587
2588 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
2589 adjust %o1, not %o0 if the return type is large structure.
2590
9ea2bda9
JJ
25912000-11-06 Jakub Jelinek <jakub@redhat.com>
2592
2593 * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
2594 update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
2595
1cf7847f
DC
2596Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
2597
2598 * expmed.c (expand_divmod): For signed divide by 2, prefer
2599 a branch and fewer shifts if branches are very cheap.
2600
436a88a6
JM
26012000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
2602
2603 * Makefile.in: Remove all targets related to building
2604 distributions and diffs, or INSTALL.
2605 * INSTALL, install1.texi: Remove.
2606 * configure.in: Remove mention of distdir.
2607 * configure: Regenerate.
2608 * objc/Make-lang.in: Remove mention of distdir.
2609
9cf11a47
NB
26102000-11-04 Neil Booth <neilb@earthling.net>
2611
2612 * cpp.texi: Update for _Pragma.
2613
f148ca88
JM
26142000-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
2615
2616 * gcc.texi (Contributing): Update URL for projects web page.
2617
16eb2788
NB
26182000-11-04 Neil Booth <neilb@earthling.net>
2619
a8a05998
ZW
2620 * cpplex.c (parse_string): Don't allow multiline strings in
2621 #include family directives.
16eb2788 2622
9232b7d9
NB
26232000-11-04 Neil Booth <neilb@earthling.net>
2624
2625 * cpplib.c (do_line): Only warn pedantically if not reading
a8a05998 2626 preprocessed input.
9232b7d9 2627
f132f529
AO
26282000-11-04 Alexandre Oliva <aoliva@redhat.com>
2629
2630 * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
2631 RETURN_POPS_ARGS().
2632
0e9295cf
ZW
26332000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
2634
2635 * builtins.c (expand_builtin_strlen): Remove unused mode
2636 argument.
2637 * gcc.c (process_command): Remove unused variable.
2638 * fold-const.c: Include expr.h.
2639 * recog.c: Include reload.h.
2640 * Makefile.in (recog.o, fold-const.o): Update deps.
2641
f2682362
GK
26422000-11-02 Geoffrey Keating <geoffk@cygnus.com>
2643
2644 * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
2645
25f80eae
MM
2646Fri Nov 3 13:41:04 2000 Mark P Mitchell <mark@codesourcery.com>
2647
2648 * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
2649 handling.
2650 (STARTFILE_SPEC): Likewise.
2651 (LINK_SPEC): Likewise.
2652
426159a4
KG
26532000-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2654
2655 * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
2656 (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
2657 (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
2658
da61dec9
JM
26592000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
2660
2661 * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
2662 (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
2663 perm_calloc, get_identifier, maybe_get_identifier,
2664 real_value_from_int_cst, simple_cst_equal), varasm.c
2665 (assemble_name, assemble_real, immed_real_const_1,
2666 compare_constant_1, decode_rtx_const, output_constant_pool): Use
2667 strrchr () instead of rindex (). Use memcmp () instead of bcmp
2668 (). Use memcpy () instead of bcopy (). Use memset () instead of
2669 bzero ().
2670
def3263a
NS
26712000-11-03 Nathan Sidwell <nathan@codesourcery.com>
2672
2673 * cppfiles.c (open_file): If already read, then don't reopen.
2674 Immediately close an empty file.
2675
94e9dc13
BS
26762000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
2677
2678 * expr.h (fold_builtin): Move declaration...
2679 * tree.h (fold_builtin): ... here.
2680
6c6a14b5
R
2681Fri Nov 3 05:41:07 2000 J"orn Rennecke <amylaar@redhat.com>
2682
2683 * flow.c (verify_local_live_at_start): Allow hard regs to die.
2684
5b569332
NB
26852000-11-02 Neil Booth <neilb@earthling.net>
2686
2687config:
2688 * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
2689 alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
2690 alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
2691 alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
2692 arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2693 arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
2694 c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
2695 elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
2696 i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
2697 i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
2698 i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
2699 i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
2700 i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
2701 i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
2702 i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
2703 i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
2704 i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
2705 i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
2706 i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
2707 i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
2708 i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
2709 ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
2710 m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
2711 m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
2712 m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
2713 m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
2714 m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
2715 m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
2716 m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
2717 m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
2718 m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
2719 m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
2720 mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
2721 mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
2722 mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
2723 mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
2724 mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
2725 mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
2726 ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
2727 ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
2728 pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
2729 pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
2730 romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
2731 rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
2732 rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
2733 rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
2734 sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
2735 sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
2736 sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
2737 sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
2738 sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
2739 sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
2740 sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
2741 v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
2742 vax/vaxv.h, vax/vms.h, we32k/we32k.h
a8a05998 2743
5b569332
NB
2744 Replace -A() with -A=, the new assertion syntax.
2745
03afaf36
R
2746Thu Nov 2 21:52:35 2000 J"orn Rennecke <amylaar@redhat.com>
2747
2748 * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
2749 elim_i1.
2750 In REG_DEAD handling: When handling parts of multi-hard-reg hard
2751 registers, increment the loop counter by the size of the parts;
2752 use recursion to handle individual parts.
2753
04e3be98
NB
27542000-11-02 Neil Booth <neilb@earthling.net>
2755
2756 * configure.in: Make integrated CPP the default.
2757 * configure: Regenerate.
2758
0192d704
R
2759Thu Nov 2 19:20:12 2000 J"orn Rennecke <amylaar@redhat.com>
2760
2761 * reload.c (find_equiv_reg): Test all hard registers for membership
2762 in the requested class.
2763
9473c522
JM
27642000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
2765
2766 * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
2767 process_command, main), gcov.c (open_files, output_data), tlink.c
2768 (frob_extension, scan_linker_output), toplev.c
2769 (file_name_nondirectory): Use strchr () and strrchr () instead of
2770 index () and rindex ().
2771
0304bbad
JM
27722000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
2773
2774 * c-common.c (get_flag_spec, check_format_info_main,
2775 check_format_types): Use strchr () instead of index (). Compare
2776 against error_mark_node instead of comparing the TREE_CODE against
2777 ERROR_MARK.
2778
23356f93
ZW
27792000-11-02 Zack Weinberg <zackw@Stanford.EDU>
2780
a8a05998
ZW
2781 Integrated CPP.
2782
2783 * c-lex.c (init_c_lex): Update cpp_start_read call.
2784 (cb_ident): Update for new callback prototype.
2785 (cb_def_pragma): Update for new cpp_get_token prototype.
2786 (c_lex): Similarly. Use cpp_get_line.
2787
2788 * c-parse.in (finish_parse): Update for new cpp_finish
2789 prototype.
2790
2791 * cp/lex.c (finish_parse): Similarly.
23356f93 2792
7a099817
GK
27932000-11-01 Geoff Keating <geoffk@cygnus.com>
2794
2795 * machmode.def: Add V16QImode.
2796
a97c9600
RH
27972000-11-01 Richard Henderson <rth@redhat.com>
2798
2799 * dwarf2out.c (loc_descriptor_from_tree): Check for null result
2800 from rtl_for_decl_location.
2801 (add_location_or_const_value_attribute): Likewise.
2802
a0a9606d
NB
28032000-11-01 Neil Booth <neilb@earthling.net>
2804
a8a05998
ZW
2805 * cpplib.c (run_directive): Use correct line number for output
2806 of _Pragma. Remember any in-progress directive.
2807
2808 * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
a0a9606d 2809
ba89764a
RH
28102000-11-01 Richard Henderson <rth@redhat.com>
2811
2812 * stmt.c (expand_start_null_loop): Set continue_label.
2813
b0b3afb2
BS
28142000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
2815
2816 * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
2817 (expand_builtin_constant_p): Move parts of the code into
2818 fold_builtin_constant_p.
2819 (expand_builtin_strlen): Move parts of the code into fold_builtin.
2820 * expr.h (fold_builtin): Declare.
2821 * fold-const.c (fold): Handle builtin calls.
2822
2823 * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
2824
f0de0c5d
RH
28252000-11-01 Richard Henderson <rth@redhat.com>
2826
2827 * stmt.c (expand_start_null_loop): New.
a8a05998 2828 (expand_end_null_loop): New.
f0de0c5d
RH
2829 * c-semantics.c (genrtl_do_stmt): Use them.
2830 * tree.h: Declare them.
2831
3a59c77c
RH
28322000-11-01 Richard Henderson <rth@redhat.com>
2833
2834 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
2835
12c4f523
NB
28362000-11-01 Neil Booth <neilb@earthling.net>
2837
2838 * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
2839 * cp/spew.c: Similarly.
2840 * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
2841 * cppmacro.c (stringify_arg): Similarly.
2842 * cpplib.h (CPP_BACKSLASH): Delete.
2843
78e7629e
KG
28442000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2845
2846 * builtins.c (expand_builtin_strstr): New function.
2847 (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
2848
2849 * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
2850
2851 * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
2852 and builtin strchr.
2853
32ee391b
RH
28542000-10-31 Richard Henderson <rth@redhat.com>
2855
2856 * config/i386/i386.c (fcmov_comparison_operator): Check for
2857 CCFPmode or CCFPUmode instead of CCmode.
2858 (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
2859 unordered operations as well.
2860
5f10ef5b
RH
28612000-10-31 Richard Henderson <rth@redhat.com>
2862
2863 * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
2864 of integer_zero_node.
2865
d599b81f
RH
28662000-10-31 Richard Henderson <rth@redhat.com>
2867
2868 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
2869
1426f761
NC
28702000-10-31 Nick Clifton <nickc@redhat.com>
2871
2872 * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
2873 -fdata-sections to override the section attribute of a DECL.
2874
a8c0159a
CD
28752000-10-31 Chris Demetriou <cgd@sibyte.com>
2876
2877 * libgcc2.c (__shtab): Remove __shtab variable.
2878 * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
2879 * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
2880 members.
2881
8215347e
JW
28822000-10-31 Jim Wilson <wilson@redhat.com>
2883
2884 * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
2885 * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
2886 * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
2887 instead of ASM_OUTPUT_INTERNAL_LABEL.
2888 (dwarf2out_end_block, dwarf2out_label): Likewise.
2889 * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
2890 * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
a8a05998 2891
d8041cc8
RH
28922000-10-31 Richard Henderson <rth@redhat.com>
2893
2894 * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
2895 (size_of_locs): Set it.
2896 (output_loc_operands): Use it to compute branch displacement.
2897 (int_loc_descriptor): New.
2898 (mem_loc_descriptor): Dereference memory in the proper size.
2899 Use DW_OP_plus_uconst when possible. Use int_loc_descriptor.
2900 (loc_descriptor_from_tree): New.
2901 (rtl_for_decl_location): Break out from ...
2902 (add_location_or_const_value_attribute): ... here.
2903 (add_bound_info): Use loc_descriptor_from_tree.
2904
86368122
NB
29052000-10-31 Neil Booth <neilb@earthling.net>
2906
2907 * cpp.texi: Update for new command line assertion syntax.
2908 * cpplib.c (cpp_define): Simplify a bit.
2909 (cpp_assert, cpp_unassert): Use handle_assertion.
2910 (handle_assertion): New function; accept new command line
2911 syntax with '='.
2912 * testsuite/gcc.dg/cpp/assert3.c: New tests.
2913
e1998242
NB
29142000-10-31 Neil Booth <neilb@earthling.net>
2915
2916 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
2917 undefined. Remove #ifdef check.
2918 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
2919 Define STDC_0_IN_SYSTEM_HEADERS to 1.
2920
7e08e190
JH
29212000-10-31 Jan Hubicka <jh@suse.cz>
2922 Jakub Jelinek <jakub@redhat.com>
2923
2924 * config/i386/i386.h: Clarify CCNOmode description in comment.
2925 (EXTRA_CC_MODES): Remove CCRCmode.
2926 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
2927 (put_condition_code, ix86_match_ccmode): Likewise.
2928 (ix86_cc_mode): Likewise. Fix comment.
2929 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
2930 * config/i386/i386.md: Add unspec 12 description.
2931 (adddi3 split): Use unspec 12 instead of CCRCmode.
2932 (addsi3_carry_rc): Remove.
2933 (addsi3_cc, addqi3_cc): New patterns.
2934 (addsi_3): Swap operands, match CCZmode.
2935 (addsi_4): Rewritten.
2936 (addsi_5): Renamed from addsi_6.
2937 (addsi_6): Removed.
2938 (addhi_3): Swap operands, match CCZmode.
2939 (addhi_4): Rewritten.
2940 (addhi_5): Renamed from addhi_6.
2941 (addhi_6): Removed.
2942 (addqi_3): Swap operands, match CCZmode.
2943 (addqi_4): Rewritten.
2944 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
2945 (subsi3_carry_rc): Removed.
2946 (iorqi_3): Use =q constraint for clobber.
2947 (xorqi_cc_2): Likewise.
2948 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
2949 (x86_movsicc_0_m1_rc): Removed.
2950 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
2951
93cc1c69
JM
29522000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
2953
2954 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
2955 and decrement of complex types.
2956
bcb38cc1
KG
29572000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2958
2959 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
2960 builtin fputs, ensure we still evaluate the stream in case it
2961 has side-effects.
2962
681cb233
JJ
29632000-10-31 Jakub Jelinek <jakub@redhat.com>
2964
2965 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
2966 to expand_shift.
2967
4b9580a5
R
2968Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
2969
2970 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
2971 (fp_extended_operand, emit_fpscr_use): Likewise.
2972 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
2973 (fpul_operand): New function.
2974 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
2975 fp_extended_operand. Add fpul_operand.
2976 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
2977 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
2978 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
2979 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
2980 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
2981 (divdf3_i): Likewise.
2982 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
2983 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
2984 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
2985 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
2986 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
2987
332316cd
BS
29882000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
2989
a8a05998 2990 * config/i386/i386.c (ix86_init_builtins): Correct return type
332316cd
BS
2991 building v4hi_ftype_v4hi_int_int tree node.
2992 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
2993 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
2994
2995 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
2996 for operand 1.
2997 (mmx__uavgv8qi3): Correct insn mnemonic.
2998 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
2999 (mmx_punpckhwd): Correct insn mnemonic.
3000 (mmx_punpckhdq): Likewise.
3001 (mmx_punpcklwd): Likewise.
3002 (mmx_punpckldq): Likewise.
3003 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
3004 Renumber case labels to match the _mm_prefetch constants defined in
3005 xmmintrin.h.
3006
1d766db0
BS
3007 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
3008 if the splitter didn't emit new insns.
3009 Make sure we call cleanup_subreg_operands even when splitting the last
3010 insn in a basic block.
3011
8bb16620
BS
3012 * invoke.texi (Debugging Options): Describe -do.
3013 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
3014 (dump_file): Likewise.
3015 (rest_of_compilation): Split .greg dump into .greg and .postreload.
3016
a5c3cccd
NB
30172000-10-30 Neil Booth <neilb@earthling.net>
3018
3019 * cppfiles.c (stack_include_file): Check for stacked contexts
3020 here.
3021 * cpphash.h (_cpp_do__Pragma): New prototype.
3022 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
3023
3024 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
3025 escaped newlines if !(buffer->from_stage3).
3026 (_cpp_lex_token): Warn about missing newlines iff
3027 !buffer->from_stage3.
3028
3029 * cpplib.c (get__Pragma_string, destringize,
3030 _cpp_do__Pragma): New functions.
3031 (run_directive): Set output_line for _Pragma to avoid line
3032 markers in output. Set from_stage3 and prevent macro expansion
3033 for _Pragma and command-line options. Check buffer exhaustion.
3034 (cpp_push_buffer): Don't check for stacked macro contexts, as
3035 this is perfectly legitimate for _Pragma. Move the check to
3036 stack_include_file instead. Set from_stage3 iff buffer is
3037 preprocessed input.
3038
3039 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
3040 unsigned. New boolean from_stage3.
3041 (struct spec_nodes): Add n__Pragma.
3042
3043 * cppmacro.c (enter_macro_context): Flip sense of return value.
3044 (_cpp_get_token): Handle _Pragma operator.
3045
dbdaea41
PE
30462000-10-30 Phil Edwards <pme@sources.redhat.com>
3047
3048 * gcc.texi: The C++ standard isn't "draft" anymore.
3049
8a47978d
MM
30502000-10-30 Mark Mitchell <mark@codesourcery.com>
3051
3052 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
3053
1641a823
NB
30542000-10-29 Neil Booth <neilb@earthling.net>
3055
3056 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
3057
8c7b74b9
JM
30582000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
3059
526aba28
JM
3060 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
3061 fixinc/inclhack.def: Change comments mentioning C9X to refer to
3062 C99 instead.
3063
8c7b74b9
JM
3064 * invoke.texi: Document that -V will only work for very similar
3065 versions of driver and compiler.
3066
44ed91a1
NB
30672000-10-29 Neil Booth <neilb@earthling.net>
3068
3069 * cppmacro.c (_cpp_create_definition): Optimize the case of
a8a05998 3070 a macro defined to itself.
44ed91a1 3071
3542203b
NB
30722000-10-29 Neil Booth <neilb@earthling.net>
3073
3074 * cpplex.c (save_comment): Don't store new lines in C++ comments.
3075
6f268adf
MH
30762000-10-29 Michael Hayes <mhayes@redhat.com>
3077
3078 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
3079
926c5678
GK
30802000-10-28 Geoffrey Keating <geoffk@cygnus.com>
3081
3082 * cpphash.c (cpp_forall_identifiers): Add context variable
3083 for callback routine.
3084 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
3085 change.
3086 (main): Call cpp_forall_identifiers with null context.
3087 * cpplib.h (cpp_forall_identifiers): Update prototype.
3088
3089 * cppmain.c: Make `parse_in' and `print' static.
3090
69f4cc4b
AM
30912000-10-28 Alan Modra <alan@linuxcare.com.au>
3092
3093 * c-decl.c (finish_function): Clear c_function_name_declared_p.
3094
ce73761f
RH
30952000-10-28 Richard Henderson <rth@redhat.com>
3096
3097 * regrename.c (scan_rtx_address): Frob action, not class,
3098 when trying to disable optimization.
3099
2c21b247
MM
31002000-10-28 Mark Mitchell <mark@codesourcery.com>
3101
3102 * c-semantics.c (make_rtl_for_local_static): Don't clobber
3103 DECL_ASSEMBLER_NAME.
3104
8763704d
JM
31052000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
3106
3107 * configure.in: Determine and substitute gcc_version_full.
3108 * configure: Regenerate.
3109 * gccbug.in: Use it to give full version. Don't allow
3110 confidential PRs.
3111
85941a0a
RH
31122000-10-28 Richard Henderson <rth@redhat.com>
3113
3114 * recog.c (split_all_insns): Run cleanup_subreg_operands
3115 after reload.
3116
3117 * regrename.c (regrename_optimize): Verify that all registers of
3118 a multiple register mode are available.
3119 (scan_rtx_address): Accept the mode of the address; all callers
3120 changed.
3121
3122 * cpplib.c (run_directive): Fix prototype.
3123
69add2a8
BS
31242000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
3125
3126 * reload.c (find_reloads): Distinguish "wins" so that we know whether
3127 a given operand won because of a matching constraint or not; then use
3128 that information to compute goal_alternative_matched properly.
4c3a2649
BS
3129 * reload1.c (choose_reload_regs): Never set reload_override_in for an
3130 optional reload.
69add2a8 3131
005f39ce
BS
3132 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
3133 accurate value for MULT.
55d8cb78
BS
3134 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
3135 2% or > 98% before using static branch prediction bits.
005f39ce 3136
93c80368
NB
31372000-10-28 Neil Booth <neilb@earthling.net>
3138
3139 New macro expander.
a8a05998 3140
93c80368
NB
3141 * cpplib.c (struct answer): New.
3142 (struct if_stack): Use cpp_lexer_pos rather than line and col.
3143 Rename cmacro mi_cmacro.
3144 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
3145 IN_I): New directive and flags.
3146 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
3147 parse_answer, parse_assertion, find_answer): New functions.
3148 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
3149 (lex_macro_node): New function to replace parse_ifdef and
3150 get_define_node.
3151
3152 (_cpp_handle_directive): New function, combines _cpp_check_directive
3153 and _cpp_check_linemarker.
3154
3155 (do_define, do_undef, parse_include, do_include, do_import,
3156 do_include_next, read_line_number, do_line, do_ident, do_pragma,
3157 do_pragma_once, do_pragma_poison, do_pragma_dependency):
3158 Update for new token getting interface.
3159
3160 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
3161 : Update for new multiple-include optimisation technique.
3162 (do_elif): Don't forget to invalidate controlling macros.
3163
3164 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
3165 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
3166 Functions to handle assertions with the new token interface.
3167 (do_assert, do_unassert): Use them.
3168
3169 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
3170 Use run_directive.
3171
3172 (_cpp_init_stacks): Register directive names. Don't register special
3173 nodes.
3174
3175 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
3176 new position recording regime.
3177 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
3178 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3179 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
3180 (cpp_type2name): Move to cpplex.c.
3181
3182 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
3183 (parse_defined): Update to handle new multiple include optimisation
3184 method. Remove poisoned identifier warning.
3185 (parse_assertion, TYPE_NAME): Delete.
3186 (lex): Update for multiple include optimisation, removal of
3187 CPP_DEFINED, to use _cpp_test_assertion for assertions and
3188 cpp_token_as_text.
3189 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
3190 (op_as_text): New function, to wrap cpp_token_as_text.
3191
3192 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
3193 Update for MI optimisation.
3194 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
3195 segfault on diagnostic.
3196 (_cpp_compare_file_date): Take a token rather than 3 args.
3197 (cpp_read_file): Work correctly for zero-length files.
3198
3199 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
3200 _cpp_init_hashtable and _cpp_cleanup_hashtable.
3201 (cpp_lookup): Place identifiers at front of identifier pool
3202 for _cpp_lookup_with_hash.
3203 (_cpp_lookup_with_hash): Require identifiers to be at the front of
3204 the identifier pool. Commit the memory if not already in the
3205 hash table.
3206
3207 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
3208 Initialise various members of cpp_reader, memory pools, and the
3209 special nodes.
3210 (cpp_printer_init): Delete.
3211 (cpp_cleanup): Update.
3212 (struct builtin, builtin_array, initialize_builtins): Update for new
3213 hashnode definition and builtin handling.
3214 (cpp_start_read, cpp_finish): Don't take or initialise a
3215 printer. Update.
3216
3217 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
3218 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
3219 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
3220 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
3221 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
3222 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
3223 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
3224 struct toklist, struct cpp_context, struct specnodes,
3225 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
3226 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
3227 enum builtin_type, cpp_can_paste): New.
3228 (struct cpp_token): Delete line and col members.
3229 (struct cpp_buffer): New member output_lineno.
3230 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
3231 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
3232 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
3233 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
3234 base_context, context, directive, mi_state, mi_if_not_defined,
3235 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
3236 mlstring_pos, macro_buffer, macro_buffer_len.
3237 Delete members mls_line, mls_column, token_list, potential_control_macro,
3238 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
3239 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
3240 save_parameter_spellings, need_newline, .
3241 Change type of date, time and spec_nodes members.
3242 Change prototypes for include and ident callbacks.
3243 (struct cpp_hashnode): Change type of name. Remove union members
3244 expansion and code. Add members macro, operator and builtin.
3245
3246 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
3247 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
3248 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
3249 cpp_stop_lookahead): New prototypes.
3250 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
3251
3252 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
3253 Move from cpphash.h.
3254
3255 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
3256 ufputs): Move to cpplib.h.
3257 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
3258 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
3259 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
3260 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
3261 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
3262 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
3263 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
3264 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
3265 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
3266 _cpp_parse_assertion, _cpp_find_answer): Delete.
3267 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
3268 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
3269 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
3270 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
3271 _cpp_handle_directive, DSC): New.
3272 (struct include_file): New member defined.
3273
3274 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
3275 _cpp_compare_file_date): Update.
3276 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
3277 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
3278 _cpp_cleanup_hashtable.
3279
3280 * Makefile.in: Remove cppoutput.c.
a8a05998 3281
93c80368
NB
3282 * cppoutput.c: Delete
3283
3284 * fixheader.c (read_scan_file): Update for new cpp_get_token
3285 prototype.
3286 (recognized_function): New argument LINE.
3287
3288 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
3289 new cpp_get_token prototype.
3290
3291 * scan.h (recognized_function): Update prototype.
3292
3293 * po/POTFILES.in: Remove cppoutput.c.
a8a05998 3294
229a2e65
MM
32952000-10-27 Mark Mitchell <mark@codesourcery.com>
3296
3297 * c-typeck.c (check_init_type_bitfields): Remove.
3298 (constructor_incremental): Likewise.
3299 (struct constructor_stack): Remove incremental bit.
3300 (struct initializer_stack): Likewise.
3301 (start_init): Don't play with constructor_incremental.
3302 (finish_init): Likewise.
3303 (really_start_incremental_init): Likewise.
3304 (push_init_level): Likewise.
3305 (pop_init_level): Likewise.
3306 (output_init_level): Likewise.
3307 (output_pending_init_elements): Likewise.
3308
63eb1269
MC
33092000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
3310
3311 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
a8a05998 3312 Improve error messages. Correct parsing of
63eb1269
MC
3313 #pragma pack(pop [,id]). Do not check the user-supplied
3314 alignment if we're popping.
3315
3316 * gcc.dg/pack-test-1.c: New test case.
3317 * gcc.dg/pack-test-2.c: New test case.
3318 * gcc.dg/pack-test-1.h: New file.
3319
ae2eceaa
NB
33202000-10-27 Neil Booth <neilb@earthling.net>
3321
3322 * cpp.texi: Update.
3323
04e149ab
KC
33242000-10-27 Kelley Cook <kelley.cook@home.com>
3325
3326 * invoke.texi: Document -mintel-syntax
3327
2b2a8f1f
RH
33282000-10-27 Richard Henderson <rth@redhat.com>
3329
3330 * invoke.texi: Document -frename-registers. Add it to -O3.
3331 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
3332 (enum dump_file_index, dump_file): Update order.
3333 (main): Set flag_rename_registers at -O3.
3334
10c9f189
RH
33352000-10-27 Richard Henderson <rth@redhat.com>
3336
93c89ab3
RH
3337 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
3338 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3339 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
3340 * config/alpha/alpha.md (call_osf_1): Use it.
3341 (call_value_osf_1): Likewise.
3342
10c9f189
RH
3343 * config/ia64/ia64.c: Revert 10-23 patch.
3344 (ia64_hard_regno_rename_ok): New.
3345 * config/ia64/ia64-protos.h: Declare it.
3346 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
3347
541f7d56
BS
33482000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
3349 Richard Henderson <rth@redhat.com>
3350
a8a05998
ZW
3351 * regrename.c: Rewrite to handle multi-register modes and
3352 cond_exec instructions.
3353 * Makefile.in (regrename.o): Update dependancies.
3354 * recog.h (struct operand_alternative): Add is_address.
3355 * recog.c (preprocess_constraints) [case 'p']: Set it.
541f7d56 3356
b8dad04b
ZW
33572000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
3358
3359 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
3360 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
3361 top level. Kill oldstyle_subdirs. Do not include
3362 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
3363 $outputs. Do not run configure.lang from config.status.
3364 Rearrange warning-flag logic to correspond to what the
3365 makefile wants. Put special vax stage1 options in
3366 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
3367 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
3368 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
3369 switch is given, nothing otherwise.
3370 * configure.lang: Delete.
3371
a8a05998
ZW
3372 * Makefile.in: Expunge all traces of extra_c_objs,
3373 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
3374 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
3375 warning options via a three level scheme so that -pedantic and
3376 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
3377 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
3378 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
b8dad04b
ZW
3379 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
3380 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
a8a05998
ZW
3381 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
3382 generation rules. Wrap all rules that change the current
3383 directory in parentheses; pmake doesn't spawn a new shell for
3384 each command. Expunge all references to $(P). When one
3385 command depends on another and they're run all at once, use &&
3386 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
3387 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
3388 and beyond.
b8dad04b
ZW
3389
3390 * objc/Make-lang.in: Wrap all rules that change the current
3391 directory in parentheses. Expunge all references to $(P).
3392 When one command depends on another and they're run all at
3393 once, use && to separate them, not ;. Add OUTPUT_OPTION to
3394 all object-file generation rules. Delete obsolete variables.
3395 * objc/Makefile.in: Delete.
3396
fadb729c
JJ
33972000-10-27 Jakub Jelinek <jakub@redhat.com>
3398
3399 * calls.c (expand_call): If sibcall_failure is set during pass 1,
3400 clear tail_call_insns as well.
3401
254bb256
NC
34022000-10-27 Nick Clifton <nickc@redhat.com>
3403
3404 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
3405 prototype.
3406
8eb99146
RH
34072000-10-26 Richard Henderson <rth@redhat.com>
3408
b8dad04b 3409 * calls.c (expand_call): Supress sibcall if we have a
8eb99146
RH
3410 BLKmode return in registers.
3411
036099eb
BS
34122000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
3413
3414 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
3415 into memory.
3416
13c6f0d5
NS
34172000-10-26 Nathan Sidwell <nathan@codesourcery.com>
3418
3419 * tree.c (make_node, case 't'): Set alignment to that of
3420 char_type_node.
3421 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
3422
be5aeb60
MM
34232000-10-25 Mark Mitchell <mark@codesourcery.com>
3424
3425 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
3426 * configure.in (enable-libstdcxx-v3): Arrange to have
3427 HAVE_LIBSTDCXX_V3 substituted into the output files.
3428
78192b09
RH
34292000-10-25 Richard Henderson <rth@redhat.com>
3430
4667f705
RH
3431 * recog.c (constrain_operands): Initialize which_alternative
3432 before no alternatives early exit.
3433
78192b09
RH
3434 * cse.c (find_comparison_args): Check that we can reverse a
3435 comparison if needed before accepting the substitution.
3436
081b49f1
RH
3437 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
3438
d4f1c1fa
RH
3439 * simplify-rtx.c (simplify_relational_operation): Sign extend
3440 low words before sign extending to high words.
3441
bc27e96c
NC
34422000-10-25 Nick Clifton <nickc@redhat.com>
3443
3444 * config/mcore/mcore.c: Include config.h before system.h.
3445
34462000-10-25 Ray Essick <essick@ddna.labs.mot.com>
3447
3448 * config/mcore/mcore.md (return): Force function epilogue to
3449 always be generated to work around epilogue suppression bug in
3450 M*Core backend.
3451
e0c9fbb7
JM
34522000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
3453
3454 * c-decl.c (grokdeclarator): Move warning for qualified void
3455 return types with -pedantic to when the function type is
3456 constructed. At -W, warn in general for qualified function return
3457 types, except for volatile void.
3458 * invoke.texi: Document this new warning at -W.
3459
138e79e7
NB
34602000-10-25 Neil Booth <neilb@earthling.net>
3461
b8dad04b
ZW
3462 * cpp.texi: Update with implementation-defined behavior and
3463 internal limits.
138e79e7 3464
dc5041ab
JJ
34652000-10-25 Jakub Jelinek <jakub@redhat.com>
3466
3467 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
3468 incomplete type force it into alias set 0.
3469
e004f2f7
JW
3470Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
3471
3472 * alias.c: Include basic-block.h.
3473 (loop_p): New function.
3474 (mark_constant_function): Use it.
3475 * Makefile.in (alias.o): Update dependencies.
3476
15c09738
AH
34772000-10-24 Aldy Hernandez <aldyh@redhat.com>
3478
3479 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
3480 like memory.
b8dad04b 3481
a8ca7756
JW
34822000-10-24 Jim Wilson <wilson@cygnus.com>
3483
3484 * expmed.c (store_bit_field): Move integer pun code down after
3485 code that calls emit_move_insn for entire register move.
3486 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
3487 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
b8dad04b 3488
c0fc376b
RH
34892000-10-24 Richard Henderson <rth@cygnus.com>
3490
3491 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
3492 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
3493
d7836e38
AH
34942000-10-24 Aldy Hernandez <aldyh@redhat.com>
3495
b8dad04b
ZW
3496 * gcse.c (cprop_insn): do not propagate constants into jump_insn
3497 for machines with CC0 more than once.
d7836e38 3498
5e2c51ba
RH
34992000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
3500
b8dad04b
ZW
3501 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
3502 pseudos just like memory.
5e2c51ba 3503
c71e1201
AO
35042000-10-24 Alexandre Oliva <aoliva@redhat.com>
3505
3506 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
3507 when deleting libcall sequence collapsed to a single instruction.
3508
5129d2ce
AH
35092000-10-24 Andrew Haley <aph@cygnus.co.uk>
3510
3511 * expr.c (do_store_flag): Don't crash if either side of a
3512 comparison is error_mark_node.
3513
f85b5d65
JJ
35142000-10-24 Jakub Jelinek <jakub@redhat.com>
3515
3516 * sibcall.c (purge_mem_unchanging_flag): New function.
3517 (optimize_sibling_and_tail_recursive_calls): Call it.
3518
4adee315
PT
35192000-10-24 Philipp Thomas <pthomas@suse.de>
3520
3521 * Makefile.in (check-po): New target for doing checks in the po
3522 subdir if all languages configured.
3523 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
3524 configure if NLS is enabled.
3525 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
3526 otherwise leave empty.
3527 * configure: Regenerate.
3528
fb204271
DN
35292000-10-23 Diego Novillo <dnovillo@cygnus.com>
3530
3531 * i386.c (print_operand): Handle new 'A' formatting code.
3532 387 opcodes need suffixes even with -mintel-syntax.
3533 Check for explicit size override (codes 'b', 'w' and 'k').
3534 (print_operand_address): Check if register prefix is needed when
3535 emitting `ds' segment override.
3536 * i386.h: Add comment about new 'A' formatting code.
3537 * i386.md (jump and call patterns): Emit absolute references using %A.
3538
8a959ea5
RH
35392000-10-23 Richard Henderson <rth@cygnus.com>
3540
b8dad04b 3541 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
8a959ea5
RH
3542 output registers as fixed.
3543 (ia64_function_epilogue): Undo output fixation.
3544
964686de
RH
35452000-10-23 Richard Henderson <rth@cygnus.com>
3546
3547 * config/alpha/alpha.md: Add names for all unnamed insns; use
3548 define_insn_and_split in some obvious places.
3549 (lda): Remove.
3550 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
3551 (zero_extendqisi2, zero_extendqidi2): Likewise.
3552 (zero_extendhisi2, zero_extendhidi2): Likewise.
3553 (abs splitters): Fix match_scratch operand number.
3554 (bcc_reverse): Swap pc & label instead of non-canonical compare.
3555
18a3c539
JW
35562000-10-23 Jim Wilson <wilson@cygnus.com>
3557
3558 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
3559 CONST_INT.
3560 * ia64.md (cmpsi_adjusted): Use %r3.
3561 (cmpdi_adjusted): Likewise.
3562
57dd137f
DN
35632000-10-23 Diego Novillo <dnovillo@cygnus.com>
3564
3565 * config/i386/att.h (ASM_FILE_START): Define.
3566
d984704d
DN
35672000-10-23 Diego Novillo <dnovillo@cygnus.com>
3568
3569 * config/i386/linux.h (ASM_FILE_START): Define.
3570
261f21e7
DL
3571Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
3572
3573 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
3574 since this (only) drags in a crt0.o reference that the .ld files
3575 also introduce.
3576
96af667a
GK
35772000-10-23 Geoff Keating <geoffk@cygnus.com>
3578
2af88768
GK
3579 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
3580 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
3581 reloads just like an RELOAD_FOR_OUTPUT would.
3582
96af667a
GK
3583 * local-alloc.c (update_equiv_regs): Add an abort(). When
3584 deleting or moving insns, update reg_equiv[regno].init_insns.
3585
d252a515
MM
35862000-10-23 Mark Mitchell <mark@codesourcery.com>
3587
3588 * c-tree.texi: Improve documentation for IF_STMTs and related
3589 conditional statements.
3590
f9808f81
MM
35912000-10-22 Mark Mitchell <mark@codesourcery.com>
3592
3593 * expr.c (do_preexpand_calls): Remove.
3594 (same_from_p): Don't use CALL_EXPR_RTL.
3595 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
3596 (preexpand_calls): Remove.
3597 * tree.c (first_rtl_op): Remove CALL_EXPR case.
3598 (unsave_expr_1): Likewise.
3599 * tree.def (CALL_EXPR): Give it only two slots.
3600 * tree.h (CALL_EXPR_RTL): Remove.
3601
ae4bd622
CC
36022000-10-21 Chandrakala Chavva <cchavva@redhat.com>
3603
3604 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
b8dad04b
ZW
3605 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
3606 New functions.
ae4bd622 3607
3e555c7d
AO
36082000-10-22 Alexandre Oliva <aoliva@redhat.com>
3609
3610 * calls.c (combine_pending_stack_adjustment_and_call): Don't
3611 adjust stack when unadjusted_alignment ends up as zero.
3612
99bdaa68
JM
36132000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
3614
3615 * fixinc/genfixes: Remove EGCS reference.
3616 * install.texi: Remove EGCS reference.
3617 * INSTALL: Regenerate.
3618
e36308b0
MM
36192000-10-22 Mark Mitchell <mark@codesourcery.com>
3620
3621 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
3622
bf6eb15f
JM
36232000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
3624
3625 * diagnostic.c: Remove EGCS reference in comment.
3626
e62ff0c3
RK
3627Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3628
3629 * loop.c (strength_reduce): Fix error in last change.
3630
0ad7574f
DE
36312000-10-20 David Edelsohn <edelsohn@gnu.org>
3632
3633 * Makefile.in (SHLIB_NM_FLAGS): New.
3634 (libgcc.mk): Pass it.
3635 * mklibgcc.in (libgcc.map): Use it.
3636
3637 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
3638 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
3639
8f54374e
KG
36402000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3641
3642 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
3643
3644 * sparc.c (load_pic_register): Delete unused varaible.
3645
3646 * libgcc2.c (__addvsi3): Delete unused variable.
3647
3648 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
3649 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
3650 __negvdi2): Prototype.
3651
3652 * ssa.c (apply_delayed_renames): Avoid undefined operation.
3653
3654 * toplev.c (display_target_options): Make static to match
3655 prototype. Delete empty declaration.
3656
3f568531
TT
36572000-10-20 Tom Tromey <tromey@cygnus.com>
3658
3659 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
3660 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
3661
235783d1
RK
3662Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3663
3664 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
3665 returned MEM.
3666 (expand_expr_unaligned, case ARRAY_REF): Check that index is
3667 a constant before comparing it; use tree_low_cst.
3668 * tree.c (save_expr): Set TREE_READONLY.
3669 (substitute_expr): Return inside of NON_LVALUE_EXPR.
3670 (build, build1): Set TREE_READONLY if all operands are.
3671 (build_index_type): If upper bound is a negative number, lower
3672 bound is zero and sizetype is unsigned, use upper bound of one and
3673 lower of zero.
3674
2e44948d
DE
36752000-10-20 David Edelsohn <edelsohn@gnu.org>
3676
3677 * gcc.c (process_command, main): Use "because" instead of
3678 "since" in error messages.
3679
44475138
RK
3680Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3681
382110c0
RK
3682 * stor-layout.c (compute_record_mode): Use tree_low_cst.
3683 Don't use mode of field for record unless sizes are the same.
3684 (layout_type, case ARRAY_TYPE): Remove special bounds handling
3685 previously added for Ada; also change to using host_integerp
3686 and tree_low_cst.
3687
1dcdb0df
RK
3688 * loop.c (strength_reduce): Show when new register made for
3689 giv is known to be a pointer and its aligment if so and known.
3690 (loop_dump_aux): Show VERBOSE parameter unused.
3691
ebb13e7e
RK
3692 * gcse.c (set_hash_table_size): Now unsigned.
3693 * sdbout.c (template_name_p): Add "const" to avoid warnings.
3694 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
3695 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
3696 (sdbout_end_epilogue): Remove variable NAME.
3697 * system.h (getopt): Add default definition.
3698 * config/alpha/alpha.c (print_operand): Don't continue processing
3699 after issuing error.
3700 (summarize_insn): Avoid use of UL in constant.
3701
1468899d
RK
3702 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
3703
44475138
RK
3704 * fold-const.c (force_fit_type): Unsigned values can overflow
3705 if they are sizetype.
3706 (int_const_binop): Don't use cache if overflows.
391db8c9 3707
23ccfa6d
RH
37082000-10-20 Richard Henderson <rth@cygnus.com>
3709
3710 * function.c (locate_and_pad_parm): Zero alignment_pad.
3711
4ca0f257
RH
3712 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
3713 perform substitutions, and apply_change_group to see if it worked.
3714
0345195a
RK
3715Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3716
d57e164f
RK
3717 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
3718
0345195a
RK
3719 * combine.c (struct undo): Change int to unsigned int.
3720 (do_SUBST_INT): Args are unsigned int.
3721 (make_extraction, force_to_mode): Use proper type when forming mask.
3722 (make_field_assignment): Likewise.
3723
2f74f7e9
JM
37242000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
3725
3726 * c-common.c (check_format_info_recurse): Extract string constant
3727 initializers from non-volatile constant arrays and check them as
3728 formats.
3729 * c-typeck.c (decl_constant_value): Don't check pedantic or check
3730 for DECL_MODE (decl) != BLKmode.
3731 (decl_constant_value_for_broken_optimization): New function which
3732 includes these checks.
3733 (default_conversion, convert_for_assignment, digest_init): Use
3734 decl_constant_value_for_broken_optimization instead of
3735 decl_constant_value.
3736
971774bb
MM
37372000-10-20 Mark Mitchell <mark@codesourcery.com>
3738
3739 * tree.h (DECL_ALIGN_UNIT): New macro.
3740
afee2a52
MM
37412000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
3742
3743 * config/avr/avr-protos.h (avr_output_bld): New.
3744 (out_shift_with_cnt): Add t_len argument.
3745 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
3746 (output_movqi, output_movhi, output_movsisf): Optimize loading
3747 any constant with exactly one bit set to NO_LD_REGS.
3748 (out_shift_with_cnt): Optimize output code for size or speed,
3749 depending on optimize_size. Handle small shift counts as well
3750 (if not hand-optimized in ?sh??i3_out). Shifts can be done
3751 with or without a scratch register, with help of __tmp_reg__
3752 or __zero_reg__ if necessary. Add T_LEN argument to pass the
3753 length of TEMPLATE in words, return total insn length in *LEN.
3754 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
3755 out_shift_with_cnt to work with the above change.
3756 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
3757 lshrsi3_out): Likewise. Optimize more known shift count cases.
3758 Remove cases already well optimized in out_shift_with_cnt.
3759 (avr_output_bld): New function.
3760 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
3761 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
3762 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
3763 Add reload_completed to insn condition - only for peepholes.
3764 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
3765 in a register or memory.
3766 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
3767 Do not require a scratch register.
3768 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
3769 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
3770 Optimize shifts by known count using a scratch register, but only
3771 if one is still available after register allocation.
3772
831f9339 37732000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
b8dad04b 3774
831f9339
DA
3775 * t-vax: New file. Don't build modules from libgcc1.c.
3776
bf6d9fd7
JW
3777Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
3778
3779 * alias.c: (mark_constant_function): Don't check pure functions.
3780 Initialize and end alias analysis.
3781 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
3782 Don't make a special exception for recursion. Handle
3783 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
3784 unless it's volatile.
3785
3786 * local-alloc.c (equivalence): New structure.
3787 (reg_equiv): Define.
3788 (contains_replace_regs): Remove array and use
3789 field in reg_equiv.
3790 (memref_referenced_p): Likewise.
3791 (no_equiv): Likewise.
3792 (update_equiv_regs): Likewise.
3793
3794 (equiv_init_varies_p,
3795 equiv_init_movable_p): New functions.
3796 (update_equiv_regs): Use them. Use rtx_varies_p
3797 instead of function_invariant_p. Process insns
3798 from end to beginning. Allow a REG_EQUIV insn
3799 within the same loop as a use to be moved, also
3800 allow it to be moved out of a loop. Update
3801 REG_DEAD notes when substituting into an insn.
3802
ef375129
JW
38032000-10-19 Jim Wilson <wilson@cygnus.com>
3804
f4fce7ed
JW
3805 * c-decl.c (start_decl): Check for error_mark_node type before using
3806 COMPLETE_TYPE_P.
3807 (finish_decl): Likewise. Don't give an error if decl type is
3808 already error_mark_node.
3809
ef375129
JW
3810 * haifa-sched.c (compute_trg_info): Add explanatory comments.
3811 New local update_blocks. Use update_blocks to remove duplicates
3812 when computing update blocks. Check for bblst_table overflow.
3813 (schedule_block): Add explanatory comment. Reduce bblst_size by
3814 factor of 2.
3815 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
3816 notes.
b8dad04b 3817
3cf37281
CC
38182000-10-19 Chandrakala Chavva <cchavva@redhat.com>
3819
3820 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
3821
e6b4d09d
CC
38222000-10-19 Chandrakala Chavva <cchavva@redhat.com>
3823
3824 * expmed.c: Minor corrections in comments.
3825 * invoke.texi: Added desciption for the new option -ftrapv.
3826
3d2adde6
CC
38272000-10-19 Chandrakala Chavva <cchavva@redhat.com>
3828
3829 * libgcc2.c: Added the missing #endif.
3830
1aa9fd24
JH
3831Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
3832
3833 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
3834
91ce572a
CC
38352000-10-18 Chandrakala Chavva <cchavva@redhat.com>
3836
b8dad04b
ZW
3837 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
3838 Use smulv_optab for -ftrapv.
3839 (expand_mult_highpart): Use unsigned multiply.
3840 (expand_divmod): Special-case division by -1.
3841 For EXACT_DIV_EXPR, do right shift first, then the multiply.
3842 For complex divide, use abs with unsigned result.
3843 * expr.c (force_operand): Use unsigned multiply.
3844 (expand_expr): Use overflow-trapping optabs for signed types if
3845 flag_trapv.
3846 If flag_trapv, don't generate a recursive call with EXPAND_SUM
3847 if the type is signed and the original call wasn't EXPAND_SUM or
3848 EXPAND_INITIALIZER.
3849 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
3850 (negv_optab, absv_optab): Declare.
3851 * flags.h (flag_trapv): Declare.
3852 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
3853 smulv_optab, sdivv_optab, negv_optab and absv_optab.
91ce572a 3854 (gen_insn): Interpret '$P' as requiring an integer mode,
b8dad04b
ZW
3855 including partial integer modes.
3856 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
3857 (product_cheap_p): Use unsigned expand_mult.
3858 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
3859 (negv_optab, absv_optab): Define.
3860 (expand_binop): Use overflow-trapping optabs for signed types if
3861 flag_trapv.
3862 Handle negv_optab libe neg_optab.
3863 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
3864 Use overflow-trapping optabs for signed result if flag_trapv.
3865 (expand_complex_abs): Use overflow-trapping optabs for signed types if
3866 flag_trapv.
3867 Don't open-code complex absolute-value operation for flag_trapv.
3868 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
3869 sdivv_optab, negv_optab and absv_optab.
3870 * toplev.c (flag_trapv): Define.
3871 (lang_independent_options f_options): Include flag_trapv.
3872 * tree.h (TYPE_TRAP_SIGNED): Define.
3873 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
3874 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
3875 New functions.
3876 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
3877 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
91ce572a 3878
4c2c5712
GK
38792000-10-18 Geoffrey Keating <geoffk@cygnus.com>
3880 David V. Henkel-Wallace <gumby@cygnus.com>
3881
3882 * config/i386/t-netware: Bring in from the Red Hat tree.
3883 * config/i386/netware.h: Likewise.
3884 * config/netware.h: Likewise.
3885 * config/rs6000/netware.h: Delete.
3886 * configure.in: Add i[34567]86-*-netware.
3887 * configure: Hand-edit to match configure.in change.
3888
6bcedb4e
MM
38892000-10-18 Mark Mitchell <mark@codesourcery.com>
3890
3891 * c-common.h (flag_no_builtin): Declare.
3892 (flag_no_nonansi_builtin): Likewise.
3893 (c_common_nodes_and_builtins): Change prototype.
3894 * c-common.c (flag_no_builtin): New variable.
3895 (flag_no_nonansi_builtin): Likewise.
3896 (c_common_nodes_and_builtins): Remove parameters. Adjust
3897 accordingly.
3898 * c-decl.c (flag_no_builtin): Remove.
3899 (flag_no_nonansi_builtin): Likewise.
3900 (init_decl_processing): Adjust call to
3901 c_common_nodes_and_builtins.
b8dad04b 3902
989b26a7
ME
39032000-10-18 Marc Espie <espie@openbsd.org>
3904
3905 * tm.texi (LIBGCC_SPEC): Synch with reality.
3906
81cf47b2
JM
39072000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
3908
3909 * c-common.c (check_format_types): Check for writing through a
3910 NULL pointer argument.
3911
27c35f4b
HPN
39122000-10-18 Hans-Peter Nilsson <hp@axis.com>
3913
3914 * tm.texi (Exception Region Output): Document
3915 DWARF_CIE_DATA_ALIGNMENT.
3916 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
3917 #ifndef.
3918 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
3919 DWARF_CIE_DATA_ALIGNMENT.
3920
4a7da9b5
MH
39212000-10-18 Michael Hayes <mhayes@cygnus.com>
3922
3923 * basic-block.h (struct loop): Delete fields pre_header_root
3924 and pre_header_trace and replace with pre_header_edges
3925 and num_pre_header_edges.
3926 * flow.c (flow_loop_dump): Dump pre_header_edges.
3927 (flow_loops_free): Free pre_header_edges.
3928 (flow_loop_pre_header_scan): Calculate pre_header_edges.
3929
42c10750
GP
39302000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3931
3932 * contrib.texi: Update references to steering committee members
3933 and Jeff Law's entry.
3934
ade7d3cc
JM
39352000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
3936
3937 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
3938 (maybe_read_dollar_number, check_format_info_main): Use them for
3939 pedantic warning messages.
3940
c5251260
JM
39412000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
3942
3943 * c-common.c (check_format_info_main): Minor cleanup: move
3944 variables into inner scopes; initialize declarations where
3945 appropriate; don't hardcode "scanf" name on warning for zero
3946 width.
3947
67673f5c
MM
39482000-10-17 Mark Mitchell <mark@codesourcery.com>
3949
3950 * c-common.c (back_end_hook): New variable.
3951 * c-common.h (back_end_hook): Declare it.
3952 * c-lang.c (finish_file): Use it.
3953
3954 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
3955 earlier.
b8dad04b 3956
1aa9fd24 39572000-10-18 Jan Hubicka <jh@suse.cz>
265dab10 3958
b8dad04b
ZW
3959 * i386.c (ix86_comparison_operator, put_condition_code,
3960 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
3961 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
3962 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
3963 * i386.md (adddi and negdi splitter): Use CCRCmode.
3964 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
3965 (subsi3_carry): add '*'
3966 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
3967 (cmp to add peep2): Use CCRCmode; swap operands.
265dab10 3968
b054460b
KH
39692000-10-18 Kazu Hirata <kazu@hxi.com>
3970
8682223f
KH
3971 * h8300.c: Fix a comment typo.
3972 (round_frame_size): New.
3973 (compute_saved_regs): Likewise.
3974 (push): Likewise.
3975 (pop): Likewise.
3976 (push_order): Remove.
3977 (pop_order): Likewise.
3978 (function_prologue): Rearrange code for readability.
3979 (function_epilogue): Likewise.
3980
b054460b
KH
3981 * config/h8300/h8300.md: Remove an unnecessary sign_extend
3982 expander that is used when not optimizing. Output a tab after
3983 each assembly insns.
3984
f27e6bb2
KH
3985 * reorg.c: Fix formatting.
3986
19ca869b
JR
39872000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
3988
3989 * reload1.c (move2add_note_store): Check for simple
3990 auto-inc in destination.
3991
2ddb1ca1
MC
39922000-10-17 Michael Chastain <chastain@redhat.com>
3993
3994 * config/i386/i386-aout.h: define INT_ASM_OP.
3995
11881f37
AM
3996Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
3997
3998 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
3999
33e39e38
MB
4000Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
4001
4002 * i370.md: Fix spelling typo.
4003
832ea3b3
FS
40042000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4005
4006 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
2b7fb034 4007 Fixes execute/20001017-1.c on powerpc-linux-gnu.
832ea3b3
FS
4008
4009 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
2b7fb034 4010 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
832ea3b3
FS
4011 LABEL_REF.
4012
4013 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
4014 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
4015 here...
4016 * rs6000/aix.h: ...to here.
4017 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
4018
4c646291
JJ
40192000-10-17 Jakub Jelinek <jakub@redhat.com>
4020
4021 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
4022
4023 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
4024 sure linker can relax even the delay slot mov %g1,%o7, fix output
4025 formating.
4026
07e0fe3d
KH
40272000-10-17 Kazu Hirata <kazu@hxi.com>
4028
4029 * config/h8300/h8300.md: Remove an unnecessary zero_extend
4030 expander that is used when not optimizing. Output a tab after
4031 each assembly insns.
4032
10501d8f
CC
40332000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4034
4035 * gcc.c: New options --target-help.
4036 (process_command): Added code to parse this new option.
4037 * toplev.c (display_target_options): New function to support the
4038 above new option.
4039 * cppinit.c (new_pending_directive) : New option OPT_target__help.
4040 (cpp_handle_option): Support this new option.
4041 * invoke.texi: Added notes about --target-help option.
b8dad04b 4042
c330e9c1 40432000-10-17 Graham Stott <grahams@redhat.com>
b8dad04b 4044
c330e9c1
GS
4045 * config/i386/i386.md (testqi_1): Add missing operand prefix
4046 for operand 0.
4047 * config/i386/i386-protos.h: Add missing prototype.
b8dad04b 4048
69ac4831
DN
40492000-10-17 Diego Novillo <dnovillo@cygnus.com>
4050
4051 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
4052 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
4053 using -mintel-syntax.
4054
b691cb00
JM
40552000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
4056
4057 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
4058 (format_types): Use it for printf.
4059 (maybe_read_dollar_number): Add parameter for the kind of format
4060 involved. Warn for multiple use for arguments if this is
4061 inappropriate for the kind of format involved.
4062 (check_format_info_main): Update calls to maybe_read_dollar_number.
4063
948eab23
DA
40642000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4065
4066 * inclhack.def (hpux_maxint): Also apply fix to values.h.
4067 * fixincl.x: Rebuilt.
4068
1651ab85
AO
40692000-10-17 Alexandre Oliva <aoliva@redhat.com>
4070
4071 * genrecog.c (write_switch): Return the first condition that needs a
4072 label.
4073
2683ed8d
BS
40742000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
4075
4076 * c-tree.h (warn_sequence_point): Move declaration to...
4077 * c-common.h (warn_sequence_point): ... here.
4078 * c-decl.c (warn_sequence_point): Move definition to...
4079 * c-common.c (warn_sequence_point): ... here.
4080 (struct reverse_tree): New.
4081 (reverse_list, reverse_max_depth): New static variables.
4082 (build_reverse_tree, common_ancestor, modify_ok
4083 verify_sequence_points): New functions.
4084 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
4085 * c-typeck.c (check_modify_expr): Delete.
4086 (build_modify_expr): Don't call it.
4087
74ff4629
JM
40882000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
4089
4090 * c-common.h (warn_missing_format_attribute): New variable.
4091 * c-decl.c (warn_missing_format_attribute): New variable.
4092 (c_decode_option): Decode -Wmissing-format-attribute and
4093 -Wno-missing-format-attribute.
4094 * c-common.c (check_function_format): If
4095 -Wmissing-format-attribute, give a warning where a vprintf or
4096 vscanf function is called by a function without its own printf or
4097 scanf attribute.
4098 * toplev.c (documented_lang_options): Add
4099 -Wmissing-format-attribute.
4100 * invoke.texi: Document -Wmissing-format-attribute.
4101
1d3b0e2c
ME
41022000-10-17 Marc Espie <espie@openbsd.org>
4103
4104 * invoke.texi (-shared): Insist on requiring code generation flags
4105 to be used along with -shared, and document the subtle failure that
4106 may occur otherwise.
4107
1c217171
DA
41082000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4109
4110 * pa.md (return_internal): Move `use' after `return'.
4111
11f3dc89
TP
41122000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4113
4114 * machmode.def: Correct comment.
4115
0952f89b
RB
41162000-10-16 Rodney Brown <RodneyBrown@mynd.com>
4117
47c10e9b
RB
4118 * print-rtl.c (print_rtx_head): Constify.
4119 * rtl.h (print_rtx_head): Similarly.
4120
0952f89b
RB
4121 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
4122 Constify char * return value.
4123 * config/pa/pa/pa.c
4124 (output_64bit_and, output_64bit_ior): Constify char * return value.
4125 (pa_can_combine_p): Make static.
4126 (function_arg): Decorate unused `named' argument. Fix comment typo.
4127 (function_arg_partial_nregs): Decorate unused `named' argument.
4128
6d2e1454
JM
41292000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
4130
4131 * c-common.c (format_check_results): New structure.
4132 (finish_dollar_format_checking): Adjust to take a
4133 format_check_results * parameter.
4134 (check_format_info, check_format_info_recurse,
4135 check_format_info_main): Split check_format_info into three
4136 functions, the main checking going in check_format_info_main.
4137 Recurse when any reduction of the format string argument towards a
4138 string literal is done; go down both branches of a conditional
4139 expression. Don't warn for extra format arguments or empty format
4140 strings if they only occur in some branches of a conditional
4141 expression.
4142
4d231df7
KH
41432000-10-16 Kazu Hirata <kazu@hxi.com>
4144
f2a9645f 4145 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
4d231df7 4146
55143861
JJ
41472000-10-16 Jakub Jelinek <jakub@redhat.com>
4148
4149 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
4150
406df25c
DN
41512000-10-15 Diego Novillo <dnovillo@cygnus.com>
4152
4153 * i386.md (*movsi_or): Switch operand order for intel syntax.
4154
e8beb821
JM
41552000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
4156
2f6256e7
JM
4157 * PROBLEMS: Remove.
4158
e8beb821
JM
4159 * gcc.texi (Contributing): Update.
4160
c1f9de5a
DN
41612000-10-13 Diego Novillo <dnovillo@cygnus.com>
4162
4163 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
4164 appropriate assembler dialect.
4165
f58e0b0c
AO
41662000-10-13 Alexandre Oliva <aoliva@redhat.com>
4167
4168 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
4169
08f81276
MM
41702000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
4171
4172 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
4173 constants 1 and 2 to NO_LD_REGS.
4174
4b945402
KG
41752000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4176
4177 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
b8dad04b 4178
4b945402
KG
4179 * objc/Make-lang.in (objc-parse.c): Likewise.
4180
c7319d87
RE
41812000-10-13 Richard Earnshaw <rearnsha@arm.com>
4182
4183 * arm.c: Include obstack.h
4184 (minipool_obstack, minipool_startobj): Define.
4185 (arm_add_gc_roots): Initialize them.
4186 (create_fix_barrier): Use our new obstack.
4187 (push_minipool_barrier, push_minipool_fix): Likewise.
4188 (arm_reorg): Release obstack memory.
4189
fccf9848
JJ
41902000-10-13 Jakub Jelinek <jakub@redhat.com>
4191
4192 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
4193 (prologue, exception_receiver, builtin_setjmp_receiver): New
4194 patterns.
4195 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
4196 * config/sparc/sparc-protos.h (finalize_pic): Remove.
4197 (load_pic_register): New prototype.
4198 * config/sparc/sparc.c (pic_setup_code): Remove.
4199 (finalize_pic): Rename to...
4200 (load_pic_register): ...this function.
4201 Don't look for nonlocal_goto_receivers and emit pic setup code
4202 directly. Don't check current_function_uses_pic_offset_table.
4203
7584b89f
RE
42042000-10-13 Richard Earnshaw <rearnsha@arm.com>
4205
4206 * tree.h (struct obstack): Declare.
4207
1f8f4a0b
MM
42082000-10-12 Mark Mitchell <mark@codesourcery.com>
4209
b8dad04b 4210 Remove obstacks.
1f8f4a0b 4211 * Makefile.in (ggc-callbacks.o): Remove target.
b8dad04b 4212 (flow.o): Depend on GGC_H.
1f8f4a0b
MM
4213 * alias.c (init_alias_analysis):
4214 Remove ggc_p conditionals.
b8dad04b 4215 (end_alias_analysis): Likewise.
1f8f4a0b 4216 * basic-block.h (init_flow): New function.
b8dad04b 4217 (allocate_reg_life_data): Declare.
1f8f4a0b
MM
4218 * bb-reorder.c (function_obstack): Replace with ...
4219 (flow_obstack): ... new variable.
b8dad04b 4220 (fixup_reorder_chain): Use it.
1f8f4a0b 4221 * c-decl.c (ggc_p): Remove.
b8dad04b 4222 (caller-save.c): Don't call oballoc/obfree.
1f8f4a0b
MM
4223 * combine.c (struct
4224 undobuf): Remove storage.
4225 (try_combine): Don't call oballoc.
b8dad04b 4226 (undo_all): Don't call obfree.
1f8f4a0b
MM
4227 * cse.c (insert): Use xmalloc, not
4228 oballoc.
b8dad04b 4229 (cse_main): Adjust accordingly.
1f8f4a0b
MM
4230 * dwarf2out.c (save_rtx): Remove
4231 obstack code.
b8dad04b 4232 (dwarf2out_init): Remove ggc_p conditionals.
1f8f4a0b
MM
4233 * emit-rtl.c (rtl_obstack): Remove.
4234 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
4235 (make_insn_raw): Likewise.
4236 (emit_insn_before): Likewise.
4237 (emit_insn_after): Likewise.
4238 (emit_insn): Likewise.
4239 (gen_sequence): Likewise.
4240 (copy_insn_1): Remove handling of `b' RTL components.
b8dad04b 4241 (init_emit_once): Remove ggc_p conditionals.
1f8f4a0b
MM
4242 * except.c (create_rethrow_ref): Don't fool with obstacks.
4243 (add_partial_entry): Likewise.
4244 (call_get_eh_context): Likewise.
4245 (begin_protect_partials): Likewise.
b8dad04b 4246 (protect_with_terminate): Likewise.
1f8f4a0b 4247 * explow.c
b8dad04b 4248 (plus_constant_wide): Likewise.
1f8f4a0b
MM
4249 * expr.c (init_expr_once):
4250 Likewise.
4251 (emit_block_move): Likewise.
4252 (clear_storage): Likewise.
b8dad04b 4253 (expand_expr): Likewise.
1f8f4a0b
MM
4254 * flow.c (function_obstack): Remove.
4255 (flow_obstack): New variable.
4256 (flow_firstobj): Likewise.
4257 (create_base_block): Use the flow_obstack.
4258 (split_block): Likewise.
4259 (split_edge): Likewise.
4260 (calculate_global_regs_live): Likewise.
4261 (allocate_bb_life_data): Make it static. Likewiwse.
4262 (init_flow): New function.
b8dad04b 4263 (size_int_type_wide): Remove ggc_p conditionals.
1f8f4a0b
MM
4264 * function.c
4265 (push_function_context_to): Don't call save_tree_status.
4266 (pop_function_context_from): Or restore_tree_status.
4267 (assign_stack_local_1): Don't call push_obstacks.
4268 (find_fixup_replacement): Use xmalloc.
4269 (fixup_var_refs_insns): Free the storage.
4270 (insns_for_mem_walk): Don't mess with obstacks.
4271 (instantiate_decls): Likewise.
4272 (trampoline_address): Likewise.
b8dad04b 4273 (expand_function_end): Likewise.
1f8f4a0b
MM
4274 * function.h (sturct function):
4275 Remove obstack-related variables.
4276 (save_tree_status): Don't declare.
b8dad04b 4277 (restore_tree_status): Likewise.
1f8f4a0b 4278 * gcse.c (compute_can_copy):
b8dad04b 4279 Don't call oballoc/obfree.
1f8f4a0b
MM
4280 * genattrtab.c (operate_exp): Remove
4281 ggc_p conditionals.
4282 (simplify_cond): Likewise.
4283 (simplify_test_exp): Don't mess with obstacks.
b8dad04b 4284 (optimize_attrs): Likewise.
1f8f4a0b 4285 * gengenrtl.c (gendef): Don't include
b8dad04b
ZW
4286 ggc_p conditionals.
4287 * ggc-callbacks.c (ggc_p): Remove.
4288 * ggc-none.c (ggc_p): Remove.
4289 * ggc.h (ggc_p): Don't declare.
265dab10 4290 * integrate.c (save_for_inline): Don't mess with obstacks.
1f8f4a0b 4291 (integrate_decl_tree): Likewise.
b8dad04b 4292 (output_inline_function): Likewise.
1f8f4a0b 4293 * lists.c
b8dad04b 4294 (init_EXPR_INSN_LIST_cache): Likewise.
1f8f4a0b
MM
4295 * loop.c (temp_obstack):
4296 Remove.
4297 (rtl_obstack): Likewise.
4298 (init_loop): Don't mess with obstacks.
4299 (reg_address_cost): Free BIVs and GIVs.
4300 (check_insns_for_bivs): Use xmalloc, not oballoc.
4301 (find_mem_givs): Likewise.
4302 (record_biv): Likewise.
4303 (general_induction_var): Likewise.
b8dad04b 4304 (product_cheap_p): Likewse.
1f8f4a0b 4305 * optabs.c (init_one_libfunc): Remove
b8dad04b 4306 ggc_p conditional.
1f8f4a0b
MM
4307 * print-tree.c (debug_tree): Don't use
4308 oballoc/obfree.
b8dad04b 4309 (print_node): Likewise.
1f8f4a0b 4310 * profile.c (output_func_start_profiler):
b8dad04b 4311 Remove call to temporary_allocation.
1f8f4a0b 4312 * reload1.c
b8dad04b 4313 (eliminate_regs_in_insn): Don't mess with obstacks.
1f8f4a0b
MM
4314 * resource.c
4315 (mark_target_live_regs): Use xmalloc.
b8dad04b 4316 (free_resource_info): Free the memory.
1f8f4a0b
MM
4317 * rtl.c (rtl_obstack):
4318 Remove.
4319 (rtvec_alloc): Don't mess with obstacks.
4320 (rtx_alloc): Likewise.
4321 (rtx_free): Remove.
4322 (copy_rtx): Don't handle `b' cases.
b8dad04b 4323 (read_rtx): Use a local rtl_obstack.
1f8f4a0b
MM
4324 * rtl.h (oballoc): Remove.
4325 (obfree): Likewise.
4326 (pop_obstacks): Likewise.
4327 (push_obstacks): Likewise.
4328 (allocate_bb_life_data): Likewise.
4329 (allocate_reg_life_data): Likewise.
b8dad04b 4330 (rtx_free): Likewise.
1f8f4a0b 4331 * sdbout.c (sdbout_queue_anonymous_type):
b8dad04b 4332 Use tree_cons, not saveable_tree_cons.
1f8f4a0b 4333 * simplify-rtx.c
b8dad04b 4334 (cselib_init): Don't mess with obstacks.
1f8f4a0b
MM
4335 * stmt.c
4336 (mark_block_nesting): Mark the label_chain.
4337 (epxand_label): Use ggc_alloc, not oballoc.
4338 (clear_last_expr): Don't mess with obstacks.
4339 (expand_decl_cleanup): Likewise.
4340 (expand_dcc_cleanup): Likewise.
4341 (expand_dhc_cleanup): Likewise.
4342 (expand_anon_union_decl): Likewise.
4343 (add_case_node): Use xmalloc, not oballoc.
4344 (free_case_nodes): New function.
b8dad04b 4345 (expand_end_case): Call it.
1f8f4a0b
MM
4346 * stor-layout.c (layout_type): Don't
4347 mess with obstacks.
b8dad04b 4348 (layout_type): Likewise.
1f8f4a0b
MM
4349 * toplev.c (wrapup_global_declarations):
4350 Likewise.
4351 (compile_file): Remove ggc_p conditionals.
4352 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
b8dad04b 4353 (decode_f_option): Remove ggc_p conditionals.
1f8f4a0b
MM
4354 * tree.c
4355 (function_maybepermanent_obstack): Remove.
4356 (maybepermanent_obstack): Likewise.
4357 (function_obstack): Likewise.
4358 (tmeporary_obstack): Likewise.
4359 (momentary_obstack): Likewise.
4360 (temp_decl_obstack): Likewise.
4361 (saveable_obstack): Likewise.
4362 (rtl_obstack): Likewise.
4363 (current_obstack): Likewise.
4364 (expression_obstack): Likewise.
4365 (struct obstack_stack): Likewise.
4366 (obstack_stack): Likewise.
4367 (obstack_stack_obstack): Likewise.
4368 (maybepermanent_firstobj): Likewise.
4369 (temporary_firstobj): Likewise.
4370 (momentary_firstobj): Likewise.
4371 (temp_decl_firstobj): Likewise.
4372 (momentary_function_firstobj): Likewise.
4373 (all_types_permanent): Likewise.
4374 (struct momentary_level): Likewise.
4375 (momentary_stack): Likewise.
4376 (init_obstacks): Remove initialization of removed obstacks.
4377 (save_tree_status): Remove.
4378 (restore_tree_status): Likewise.
4379 (temporary_allocation): Liekwise.
4380 (end_temporary_allocation): Liekwise.
4381 (resume_temporary_allocation): Likewise.
4382 (saveable_allocation): Likewise.
4383 (push_obstacks): Likewise.
4384 (push_obstacks_nochange): Likewise.
4385 (pop_obstacks): Likewise.
4386 (allocation_temporary_p): Likewise.
4387 (permanent_allocation): Likewise.
4388 (preserve_data): Likewise.
4389 (preserve_initializer): Likewise.
4390 (rtl_in_current_obstack): Likewise.
4391 (rtl_in_saveable_obstack): Likewise.
4392 (oballoc): Likewise.
4393 (obfree): Likewise.
4394 (savealloc): Likewise.
4395 (expralloc): Likewise.
4396 (print_obstack_name): Likewise.
4397 (debug_obstack): Likewise.
4398 (object_permanent_p): Likewise.
4399 (push_momentary): Likewise.
4400 (perserve_momentary): Likewise.
4401 (clear_momentary): Likewise.
4402 (pop_momentary): Likewise.
4403 (pop_momentary_nofree): Likewise.
4404 (suspend_momentary): Likewise.
4405 (resume_momentary): Likewise.
4406 (make_node): Don't set TREE_PERMANENT.
4407 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
4408 Don't set TREE_PERMANENT.
4409 (get_identifier): Remove ggc_p conditionals.
4410 (build_string): Likewise.
4411 (make_tree_vec): Likewise.
4412 (build_decl_list): Remove.
4413 (build_expr_list): Likewise.
4414 (tree_cons): Remove ggc_p conditionals.
4415 (decl_tree_cons): Remove.
4416 (expr_tree_cons): Likewise.
4417 (perm_tree_cons): Likewise.
4418 (temp_tree_cons): Likewise.
4419 (saveable_tree_cons): Likewise.
4420 (build1): Remove ggc_p conditionals.
4421 (build_parse_node): Likewise.
4422 (build_type_attribute_variant): Don't mess with obstacks.
4423 (build_type_copy): Likewise.
4424 (type_hash_canon): Likewise.
4425 (build_pointer_type): Likewise.
4426 (build_reference_type): Likewise.
4427 (build_index_type): Likewise.
4428 (build_range_type): Likewise.
b8dad04b 4429 (dump_tree_statistics): Don't print obstack information.
1f8f4a0b
MM
4430 * tree.h
4431 (struct tree_common): Remove permanent_flag.
4432 (TREE_PERMANENT): Remove.
4433 (TREE_SET_PERMANENT): Likewise.
4434 (TYPE_OBSTACK): Likewise.
4435 (struct tree_type): Remove obstack.
4436 (oballoc): Remove.
4437 (savealloc): Likewise.
4438 (build_decl_list): Likewise.
4439 (build_expr_list): Likewise.
4440 (perm_tree_cons): Likewise.
4441 (temp_tree_cons): Likewise.
4442 (saveable_tree_cons): Likewise.
4443 (decl_tree_cons): Likewise.
4444 (expr_tree_cons): Likewise.
4445 (suspend_momentary): Likewise.
4446 (allocation_temporary_p): Likewise.
4447 (resume_momentary): Likewise.
4448 (push_obstacks_nochange): Likewise.
4449 (permanent_allocation): Likewise.
4450 (push_momentary): Likewise.
4451 (clear_momentary): Likewise.
4452 (pop_momentary): Likewise.
4453 (end_temporary_allocation): Likewise.
4454 (pop_obstacks): Likewise.
4455 (push_obstacks): Likewise.
4456 (pop_momentary_nofree): LIkewise.
4457 (preserve_momentary): Likewise.
4458 (saveable_allocation): Likewise.
4459 (temporary_allocation): Likewise.
4460 (resume_temporary_allocation): Likewise.
4461 (perserve_initializer): Likewise.
4462 (debug_obstack): Likewise.
4463 (rtl_in_current_obstack): Likewise.
4464 (rtl_in_saveable_obstack): Likewise.
b8dad04b 4465 (obfree): Likewise.
1f8f4a0b
MM
4466 * varasm.c (current_obstack): Remove.
4467 (saveable_obstack): Remove.
4468 (rtl_obstack): Remove.
4469 (immed_double_const): Don't mess with obstacks.
4470 (immed_real_cons): Likewise.
4471 (output_constant_def): Likewise.
4472 (init_varasm_status): Use xcalloc.
4473 (mark_pool_constant): Mark the pool constant itself.
4474 (free_varasm_status): Free memory.
4475 (decode_rtx_const): Call bzero directly, rather than expanding it
4476 inline.
4477 (record_rtx_const): Don't mess with obstacks.
4478 (force_const_mem): Likewise.
4479 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
4480 conditionals.
4481 (aof_pic_entry): Likewise.
4482 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4483 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
4484 * config/pa/pa.c (saveable_obstack): Remove.
4485 (rtl_obstack): Likewise.
4486 (current_obstack): Likewise.
4487 (output_call): Don't mess with obstacks.
4488 (hppa_encode_label): Remove ggc_p conditionals.
4489 * config/romp/romp.c (get_symref): Don't mess with obstacks.
4490 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
4491 (rs6000_encode_section_info): Likewise.
4492 * config/sh/sh.c (get_fpscr_rtx): Likewise.
b8dad04b 4493
9dcbdc7e
JH
4494Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
4495
4496 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
4497 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
4498 (addsi3_carry): Canonicalize.
4499 (addqi_5): Remove '*'.
4500 (sbb pattern): Canonicalize.
4501
4502 * i386.md (cmp to inc/add peep2): New.
4503
74490e05
RE
45042000-10-12 Richard Earnshaw <rearnsha@arm.com>
4505
4506 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
4507 the exit block.
4508
bc87c1c8
JM
45092000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
4510
4511 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
4512 * README.TRAD, TESTS.FLUNK: Remove.
4513
9fa8f75d
JM
45142000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
4515
4516 * c-common.c (decl_attributes): Don't allow strftime formats with
4517 first_arg_num nonzero.
4518 (check_format_info): Set wanted_type and wanted_type_name to zero
4519 before they are possibly assigned and used.
4520
4831bc84
JM
45212000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
4522
4523 * c-common.c (scanf_flag_specs): Add flags ' and I.
4524 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
4525 or the ^ and # flags together.
4526 (scan_char_table): Handle the ' and I flags.
4527 (format_types): Add ' and I flags for scanf.
4528
2f7026a0
JM
45292000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
4530
4531 * c-common.c (print_char_table): Use the unpromoted type for
4532 lengths "h" and "hh" with conversions dioxXu.
4533 (check_format_types): Apply the default argument promotions where
4534 the wanted type is not a pointer target.
4535
bb58bec5 45362000-10-11 Michael Meeks <mmeeks@gnu.org>
b8dad04b 4537 Joseph S. Myers <jsm28@cam.ac.uk>
bb58bec5
JM
4538
4539 * c-typeck.c (check_modify_expr): New function.
4540 (build_modify_expr): Call it if warn_sequence_point.
4541 * c-decl.c (warn_sequence_point): New variable.
4542 (c_decode_option): Handle -Wsequence-point and
4543 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
4544 * c-tree.h (warn_sequence_point): Declare.
4545 * invoke.texi (-Wsequence-point): Document.
4546 * toplev.c (documented_lang_options): Add -Wsequence-point and
4547 -Wno-sequence-point.
4548 Original work by Michael Meeks, 16 Jun 1998.
4549
0fba7208
RK
4550Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4551
4552 * tree.c (get_narrower): Don't look at precision of field if
4553 not laid out yet.
4554
67e570ea
DC
4555Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
4556
4557 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
4558 declaration for data with "progmem" attribute.
4559
80b8585d
MM
45602000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
4561
4562 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
4563 Correct insn length if shift count is a memory operand.
4564 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
4565 (*iorhi3_clobber): Change lo8 to hi8.
4566 (zero_extendhisi2): Change %B0 to %A1.
4567 (ashlhi3, ashrhi3): Correct insn length.
4568 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
4569 from "clobber" to "set_n" in some alternatives.
4570
462561b7
JJ
45712000-10-10 Jakub Jelinek <jakub@redhat.com>
4572
4573 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
4574 remove its insn_chain structure as well.
4575
0b8833aa
DA
45762000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4577
4578 * dbxout.c (dbxout_source_line): Remove extra tab.
4579
c690f089
HPN
45802000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
4581
4582 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
4583
1854631b
RH
45842000-10-09 Richard Henderson <rth@cygnus.com>
4585
4586 * Makefile.in (LANG_LIB2FUNCS): Remove.
4587 (LIB2FUNCS): Remove _pure.
4588 (LIB2ADD): Remove LANG_LIB2FUNCS.
4589 (stage_a): Don't set LANG_LIB2FUNCS.
4590 * libgcc2.c (__terminate): Mark noreturn.
4591 (__pure_virtual): Remove.
4592 * mklibgcc.in: Remove LIB2ADD .txt processing.
4593
880c4dcb
RE
45942000-10-09 Richard Earnshaw <rearnsha@arm.com>
4595
4596 * arm.md (push_multi): Revert unintended change.
4597
5895f793
RE
45982000-10-09 Richard Earnshaw <rearnsha@arm.com>
4599
b8dad04b 4600 * arm.c: Miscellaneous white space and comment clean-ups. No
5895f793
RE
4601 functional change.
4602 * arm.md: Likewise.
4603
1092710d
KG
46042000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4605
4606 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
4607 STRING_CST by calling combine_strings.
4608
ca356f3a
RE
46092000-10-09 Richard Earnshaw <rearnsha@arm.com>
4610
4611 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
4612 (thumb_output_move_mem_multiple): Support new insn format.
4613 * arm.md (movmem12b): Use SSA compatible format.
4614 (movmem8b): Likewise.
4615
cca0a211
RE
46162000-10-09 Richard Earnshaw <rearnsha@arm.com>
4617
4618 * arm.md (predicable): New attribute, default to "no".
4619 (all patterns): Mark as predicable if appropriate.
4620 (conditional execution splits): Split using predication format.
4621 (define_cond_exec): Define.
4622 * arm.c (arm_print_operand): handle insn predicate.
b8dad04b 4623
1146cfde
GP
46242000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4625
4626 * README.NS32K: Remove file.
4627
46282000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4629
4630 * README-bugs: Remove file.
4631
4d0230e1
PT
46322000-10-08 Philipp Thomas <pthomas@suse.de>
4633 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
4634 for test.
4635 * configure: Rebuilt.
4636
9fdf713f
PT
46372000-10-08 Philipp Thomas <pthomas@suse.de>
4638 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
4639 disable catalog building if no suitable program was found.
4640 Move warning message from here
4641 (AM_GNU_GETTEXT): To here.
4642 * configure: Rebuilt.
4643
00036f5c
PT
46442000-10-08 Philipp Thomas <pthomas@suse.de>
4645 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
4646 different cache variables.
4647 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
4648 uses different cache variables.
4649 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
4650 * configure: Regenerated.
b8dad04b 4651
aefa45d3
RH
46522000-10-08 Richard Henderson <rth@cygnus.com>
4653
4654 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
4655 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
4656 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
4657 Use SHLIB_EXT.
4658
4659 * config/t-linux (SHLIB_EXT): New.
4660 (SHLIB_LINK): Use the entire build command, with substitutions.
4661 (SHLIB_LIBS): Remove.
4662 * config/alpha/t-osf4: Likewise.
4663 * config/mips/t-iris6: Likewise.
4664 * config/sparc/t-sol2: Likewise, but move shlib stuff...
4665 * config/sparc/t-slibgcc-sld: ...here.
4666 * config/sparc/t-slibgcc: New file.
4667
b15ad712
JM
46682000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
4669
4670 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
4671 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
4672 CTI_UINTMAX_TYPE.
4673 (intmax_type_node, uintmax_type_node): Define.
4674 * c-common.c (decl_attributes): If pedantic, warn if `mode'
4675 attributes create a type wider than intmax_t.
4676 (T_IM, T_UIM): Define properly.
4677 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
4678 defined.
4679 (init_decl_processing): Initialize intmax_type_node and
4680 uintmax_type_node.
4681 * c-lex.c (lex_number): When pedantic and warning for integer
4682 constants that are too large, in C99 mode warn for those that have
4683 a type wider than long long.
4684
2588e44e
JM
46852000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
4686
4687 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
4688 FMT_FLAG_FANCY_PERCENT_OK): Define.
4689 (format_char_info): Add flag "4" to comment.
4690 (format_flag_spec, format_flag_pair): New structures.
4691 (format_kind_info): Add additional fields to control format
4692 checking.
4693 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
4694 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
4695 arrays.
4696 (time_char_table): Use "4" flag to handle %Ey.
4697 (format_types): Add entries for new fields.
4698 (get_flag_spec): New function.
4699 (check_format_info): Increase size of flag_chars[] to 256.
4700 Control format checking using the new fields of a format_kind_info
4701 and the new tables; remove all conditionals on printf_format_type,
4702 scanf_format_type or strftime_format_type. Handle all details of
4703 bad combinations of flags (including width, precision and strftime
4704 modifiers) through data rather than ad hoc code. Handle all
4705 details of standard versions in which flags appeared through
4706 data. Use the "4" flag.
4707
7b7de7c0
WC
47082000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
4709
4710 * config/h8300/h8300.md: Remove the memory alternative and correct
4711 the insn lengths in the templates for sign extention and zero
4712 extention.
4713
9a1ba437
RH
47142000-10-07 Richard Henderson <rth@cygnus.com>
4715
4716 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
4717 * flow.c (make_edges): Revert last change.
4718
4719 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
4720 TREE_THIS_VOLATILE.
4721 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
4722
d38d55b4
DB
47232000-10-06 David O'Brien <obrien@dragon.nuxi.com>
4724
4725 * config/alpha/elf.h: Standardize the formatting.
4726
94984e91
DB
47272000-10-06 David O'Brien <obrien@FreeBSD.org>
4728
4729 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
4730 #undef.
4731
3e4eac3f
RH
47322000-10-06 Richard Henderson <rth@cygnus.com>
4733
4734 * function.c (diddle_return_value): Examine
4735 current_function_return_rtx instead of the DECL_RESULT.
4736 (expand_function_end): Handle reloading DECL_RESULT from memory
4737 into a hard register. Query promote_mode for sign of mismatched
4738 modes.
4739
4071f896
VM
47402000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4741
4742 * haifa-sched.c (schedule_insns): Fix typo in freeing
4743 forward_dependency_cache.
4744
eb69f95c
AO
47452000-10-06 Alexandre Oliva <aoliva@redhat.com>
4746
4747 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
4748 `TARGET_SH2' as a condition.
4749
178b88b9
VM
47502000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
4751
4752 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
4753 forward_dependency_cache): New variables.
4754 (add_dependence, remove_dependence): Use anti_dependency_cache and
4755 output_dependency_cache.
4756 (compute_block_forward_dependences): Use forward_dependency_cache.
4757 (schedule_insns): Allocate and free memory for anti/output/forward
4758 dependencies caches.
b8dad04b 4759
827bdee4
AO
47602000-10-06 Alexandre Oliva <aoliva@redhat.com>
4761
4762 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
4763 `! TARGET_SH1'. Reindent.
4764
c70eaeaf
KG
47652000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4766
4767 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
4768 Move functions from here ...
4769
4770 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
4771 ... to here.
4772 (c_expand_builtin): New function.
4773 (init_function_format_info): Don't set `check_function_format_ptr'.
4774 (c_common_nodes_and_builtins): Set built_in_class type for
4775 printf/__builtin_printf to BUILT_IN_FRONTEND.
4776 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
4777
4778 * c-common.h (build_function_call): Declare.
4779
4780 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
4781 to `lang_expand_expr' rather than `expand_builtin'.
4782
4783 * tree.c (check_function_format_ptr): Delete.
4784
4785 * tree.h (check_function_format_ptr): Likewise.
4786
f299afab
HPN
47872000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
4788
4789 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
4790 DW_OP_bregx when cfa->reg > 31.
4791
4792 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
4793 break.
4794
b313a0fe
RH
47952000-10-05 Richard Henderson <rth@cygnus.com>
4796
4797 * c-decl.c (warn_missing_noreturn): Remove.
4798 (c_expand_body): Don't set or check can_reach_end.
4799 * c-tree.h (warn_missing_noreturn): Move ...
4800 * flags.h: ... here.
4801 (can_reach_end): Remove.
4802 * flow.c (check_function_return_warnings): New.
4803 (make_edges): No edge to exit for noreturn sibcalls.
4804 * function.c (expand_function_end): Save the return value
4805 clobber instruction.
4806 (mark_function_status): Mark it.
4807 * function.h (struct function): Add x_clobber_return_insn.
4808 * jump.c (can_reach_end): Remove.
4809 (calculate_can_reach_end): Remove.
4810 (jump_optimize_1): Don't call it.
4811 * output.h (check_function_return_warnings): Declare.
4812 * toplev.c (warn_missing_noreturn): Move from c-decl.c
4813 (rest_of_compilation): Call check_function_return_warnings.
4814
83dad10c
RH
48152000-10-05 Richard Henderson <rth@cygnus.com>
4816
4817 * Makefile.in (NM_FOR_TARGET): New.
4818 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
4819 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
4820 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
4821 shared library build on that and EXTRA_MULTILIB_PARTS.
4822 * mkmap-flat.awk: New file.
4823 * mkmap-symver.awk: New file.
4824 * libgcc-std.ver: New file.
4825 * config/libgcc-glibc.ver: New file.
4826 * config/ia64/libgcc-ia64.ver: New file.
4827 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
4828 (SHLIB_LINK): Add --version-script.
4829 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
4830 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
4831 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
4832 (SHLIB_LINK): Add -M.
4833
d6eacd48
RH
48342000-10-05 Richard Henderson <rth@cygnus.com>
4835
4836 * Makefile.in (LIB2FUNCS): Add _clz.
4837 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
4838 (__clz_tab): Put in its own unit, non-static.
4839 * libgcc2.h: Always include longlong.h.
4840
29279975
RH
4841 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
4842 a zero instead of -1.
4843 (count_trailing_zeros): Likewise.
4844
c74fa144
RH
48452000-10-05 Richard Henderson <rth@cygnus.com>
4846
4847 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
4848 when second op1 is const0_rtx. Validate op0 as a register.
4849 * config/alpha/alpha.md (setcc_internal): Don't allow constants
4850 in the first argument of the compare.
4851 (setcc_swapped_internal): Likewise.
4852 (setne_internal): Likewise.
4853
c5620996
GK
48542000-10-05 Geoff Keating <geoffk@cygnus.com>
4855
4856 * tree.c (tree_size): New function split out of copy_node.
4857 (make_node): Remove obstack handling. Use tree_size.
4858 (copy_node): Use tree_size.
4859 * tree.h: Prototype tree_size.
4860
331fe257
RH
48612000-10-05 Richard Henderson <rth@cygnus.com>
4862
4863 * diagnostic.c (output_format): Add missing break.
4864
cc0cbae1
JW
48652000-10-05 Jim Wilson <wilson@cygnus.com>
4866
4867 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
4868 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
4869 sequence insn to INSN, and delete last sequence insn.
4870
f5fa9a5b
PE
48712000-10-05 Phil Edwards <pme@gcc.gnu.org>
4872
4873 * gcc.c (main): Include generated configargs.h header
4874 and use arguments in '-v' output.
4875
2296d164
RK
4876Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4877
4878 * gcc.c: Move data on prefixes forward in file and reorganize.
4879 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
4880 Always define, but make null if no value.
4881 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
4882 and "md_startfile_prefix_1".
4883 (main): Check whether md_exec_prefix and the others are the
4884 null string rather than whether the macro is defined.
4885
43d75418
R
4886Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
4887
4888 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
4889 from PSImode to SImode.
4890
e389897b
JJ
48912000-10-05 Jakub Jelinek <jakub@redhat.com>
4892
4893 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
4894 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
4895 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
4896 sizeof(long).
4897
b8fbe62c
RK
4898Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4899
4900 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
4901 negation in proper type.a
4902
50503ac8
RH
49032000-10-04 Richard Henderson <rth@cygnus.com>
4904
4905 * configure.in (enable-shared): New.
4906 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
4907 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
4908 * mklibgcc.in: Use them to link shared a libgcc.
4909 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
4910 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
4911 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
4912 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
4913
4914 * configure.in (alpha-osf*): Use t-osf and x-osf.
4915 * config/alpha/t-osf: New file.
4916 * config/alpha/t-osf4: New file.
4917 * config/alpha/x-osf: New file.
4918 * config/alpha/x-alpha: Remove file.
4919
4b606faf
WC
49202000-10-04 Will Cohen <wcohen@redhat.com>
4921
4922 * c-typeck.c (process_init_element): Added warning for zero-length
4923 array.
4924
4925 * extend.texi (Zero Length): State that static initializers for
4926 zero-length arrays are not allowed.
4927
c9b89a21
JH
4928Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
4929
4930 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
4931 to come last.
4932
81bce466
MH
49332000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4934
4935 * config/float-c4x.h: New.
4936 * configure.in (c4x-*): Set float_format to c4x.
b8dad04b 4937 * configure: Regenerate.
81bce466 4938
72882e08
KG
49392000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4940
4941 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
4942 compilation for solaris versions 2.7 and greater.
4943
ea205a52
ME
49442000-10-02 Marc Espie <espie@openbsd.org>
4945
4946 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
4947 instead of redefining from scratch.
4948
618ec0d7
DB
49492000-10-02 David O'Brien <obrien@dragon.nuxi.com>
4950
4951 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
4952
f15b9af9
MM
49532000-10-01 Mark Mitchell <mark@codesourcery.com>
4954
776749c5
MM
4955 * config/ns32k/genix.h: Remove.
4956 * config/ns32k/x-genix: Likewise.
4957 * config/ns32k/xm-genix.h: Likewise.
4958 * config/fx80: Remove all filee in directory.
4959 * config/pyr: Likewise.
4960 * config/tahoe: Likewise.
4961 * config/gmicro: Likewise.
4962 * config/spur: Likewise.
4963 * configure.in: Remove configury bits for above targets.
4964 * configure: Regenerated.
b8dad04b 4965
a7b4171a
MM
4966 * configure.in: Don't configure chill by default.
4967 * configure: Regenerated.
b8dad04b 4968
f15b9af9
MM
4969 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
4970 (lang_mark_false_label_stack): Remove.
4971 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
4972 <top level> string in GC area.
4973 (mark_splay_tree_node): New function.
4974 (mark_splay_tree): Likewise.
4975 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
4976 if it exists.
4977 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
4978 * ggc-common.c (lang_mark_false_label_stack): Change type.
4979 * ggc.h (ggc_alloc_string): Add comment.
4980 (ggc_strdup): New function.
b8dad04b 4981
51296ba0
DC
4982Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
4983
4984 * config/avr/avr.h (BRANCH_COST): Define as 0.
4985
4986 * config/pdp11/pdp11.c: #include "tree.h" added.
4987
adcd8f77
MM
49882000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
4989
4990 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
4991 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
4992 with known shift count.
4993 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
4994 New alternative for shift count 2 with no scratch register.
4995 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
4996 "set_n" for shift counts 1 and 2.
4997
e35b9579
GK
49982000-09-30 Geoff Keating <geoffk@cygnus.com>
4999
5000 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
5001 the mask value from the individual SET operations.
5002 (return_internal_si): Move the USE after the RETURN.
5003 (return_internal_di): Likewise.
5004 (return_and_restore_fpregs_si): Likewise.
5005 (return_and_restore_fpregs_di): Likewise.
5006 (return_eh_si): Likewise.
5007 (return_eh_di): Likewise.
5008 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
5009 or check, the USE.
5010 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
5011 Don't generate a PARALLEL around a single operation movsi_to_cr.
5012 Generate the RETURN first in any PARALLELs.
5013
5014 * rtlanal.c (single_set_1): Use fatal_insn to display the
5015 invalid insn. Check for more cases when a USE or CLOBBER occurs
5016 before a SET.
5017 * Makefile.in: Update dependencies for rtlanal.o.
5018
1fba7553
JM
50192000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
5020
5021 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
5022
28e6b1c2
JM
50232000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
5024
5025 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
5026 Consistently use @email for formatting email addresses.
5027
f2fa288f
RH
50282000-09-29 Richard Henderson <rth@cygnus.com>
5029
5030 * cse.c (notreg_cost): New argument outer.
5031 (COST): Pass in SET to notreg_cost
5032 (COST_IN): New.
5033 (fold_rtx): Use COST_IN. Prefer constants when costs
5034 are the same.
5035
a1c63101
DE
50362000-09-29 David Edelsohn <edelsohn@gnu.org>
5037
5038 * fixinc/inclhack.def (broken_cabs): Generalize regex.
5039 * fixinc/fixincl.x: Regenerate.
5040
70dd0f7f
FS
50412000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5042
5043 * loop.c (check_final_value): A GIV is not replaceable if used
5044 before set.
5045
0c6129af
JL
5046Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
5047
5048 * version.c: Bump to gcc-2.97.
5049
5050Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
6c698a6d
JH
5051
5052 * final.c (final_scan_insn): Remove extra extract_insn call;
5053 Use caching for constrain_operands.
5054 (cleanup_subreg_operands): Use caching for extract_insn.
5055 * recog.c (constrain_operands_cached): New.
5056 * recog.h (constrain_operands_cached): Declare.
5057 * i386.c (ix86_attr_length_immediate_default,
5058 ix86_attr_length_address_default, ix86_agi_dependant): Cache
5059 extract_insn call.
5060
5061 * recog.c (asm_noperands): Tweak.
5062 (extract_insn): Do not call asm_noperads for non-asm instructions.
5063
5064Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
5065
5066 * recog.c (recog_memoized): Rename to recog_memoized_1.
5067 * recog.h (recog_memoized): Rename to recog_memoized_1.
5068 (recog_memoized): New macro.
5069 * rtl.h (single_set): Rename to single_set_1
5070 (single_set): New macro.
5071 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
5072 to be last.
5073
5074 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
5075 Do not use match_dup of input operands at outputs.
5076 Use register_operand for memory expression.
5077 (rep_movsi): Put use last, canonicalize.
5078 Use register_operand for memory expression.
5079 (rep_movqi): Put use last.
5080 Use register_operand for memory expression.
5081 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
5082 of input operands at outputs. Use register_operand for memory
5083 expression.
5084 (rep_stossi): Put use last; canonicalize; fix match_dup in
5085 the address expression
5086 (rep_stosqi): Likewise.
5087 (memcmp expander): Update calls.
5088 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
5089 the clobbers.
5090
5091 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
5092 VOIDmode.
5093 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
5094
41e5a1f5
DB
50952000-09-28 David O'Brien <obrien@FreeBSD.org>
5096
5097 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
5098 Contains the old contents of config/i386/freebsd.h
5099 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
5100 Contains the old contents of config/i386/freebsd-elf.h
5101 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
5102 config/i386/freebsd.h.
5103 * configure.in: Adjust for above changes.
5104 * po/POTFILES.in: Likewise.
5105 * po/en_GB.po: Likewise.
5106 * po/gcc.pot: Likewise.
5107 * configure: Rebuilt.
5108
1db88ef9 51092000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
70dd0f7f 5110
1db88ef9
FS
5111 * doloop.c (doloop_modify): Prevent delete_insn() from
5112 deleting too much. Prefer loop->top over loop->start as
5113 target for the new JUMP insn.
5114 (doloop_valid_p): Ignore loop with exit_count != 0.
5115
6a07a77f
PT
51162000-09-28 Philipp Thomas <pthomas@suse.de>
5117
5118 * invoke.texi (i386 Options): Add athlon to table of possible
5119 choices for -mcpu=.
5120
b5dd2c76
GDR
51212000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
5122
5123 * diagnostic.h (output_clear_message_text): New function.
5124 (output_message_text): New macro.
5125
5126 * diagnostic.c (clear_text_info): Rename to
b8dad04b 5127 output_clear_message_text.
b5dd2c76
GDR
5128 (output_clear): Adjust.
5129 (output_finish): Rename to output_finalize_message. Tweek.
b8dad04b 5130 (output_to_stream): Adjust.
b5dd2c76 5131
d8090680
NB
51322000-09-28 Neil Booth <neilb@earthling.net>
5133
5134 * cpperror.c (_cpp_begin_message): Do the test for suppression
b8dad04b
ZW
5135 of warnings and pedantic warnings before the "is a warning an
5136 error" tests.
d8090680
NB
5137 * cppinit.c (cpp_handle_option): Remove surplus \n.
5138 * cpplex.c (ON_REST_ARG): Delete.
5139 (skip_block_comment): Initialise prevc.
5140 (parse_args): Improve error messages.
5141 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
5142 than ON_REST_ARG.
5143 * cpplib.c (cpp_push_buffer): Fix grammar in message.
5144 * cppmain.c (main): Set callbacks for #ident and #pragma
5145 only if no_output option is false.
5146 (do_pragma_implementation): Only call the #pragma handler
5147 if it is set in the cpp_reader structure.
5148
e93eff94
DL
5149Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
5150
5151 * integrate.c (copy_insn_list): if an ignored return value
5152 is being clobbered, skip cloning that into the inline copy.
5153
59c5d27a
JM
51542000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
5155
5156 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
5157 use @uref for formatting URLs.
5158
15ca066d
ME
51592000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
5160
5161 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
5162 name and prefix.
5163
5a8e2650
NB
5164Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
5165
5166 * gcc.c (cpp_options): Add spec for -ftabstop=.
5167 (invoke_as): New spec that handles invoking as.
5168 Update specs to handle -save-temps and -traditional.
5169 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
5170 Use invoke_as.
5171 * cp/lang-specs.h, objc/lang-specs.h: Update to use
5172 invoke_as, and handle -save-temps and -traditional (if
5173 appropriate).
5174
380f6ad3
JJ
51752000-09-26 Jakub Jelinek <jakub@redhat.com>
5176
5177 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
5178 op0 is a SUBREG.
5179 (function_arg_slotno): Accept TImode/CTImode.
5180 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
5181 to UNITS_PER_WORD.
5182
ef120fc0
MH
51832000-09-26 Michael Hayes <mhayes@cygnus.com>
5184
5185 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
5186 from entry block.
5187
cf606f45
JW
51882000-09-25 Jim Wilson <wilson@cygnus.com>
5189
5190 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
5191 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
5192 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
5193 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
5194
a94c1199
NB
5195Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
5196
b8dad04b 5197 * cpplex.c (parse_args): Don't set VOID_REST flag.
a94c1199
NB
5198 (CONTEXT_VARARGS): New flag.
5199 (maybe_paste_with_next): Set context earlier in loop. Use
5200 it. Do varargs test with CONTEXT_VARARGS flag.
5201 (push_arg_context): Set CONTEXT_VARARGS flag if we're
5202 pushing an argument context for a varargs argument.
5203 * cpplib.h (VOID_REST): Delete.
b8dad04b 5204 * gcc.dg/cpp/vararg1.c: Add test case.
a94c1199 5205
317639a8
BC
52062000-09-25 Branko Cibej <branko.cibej@hermes.si>
5207
b8dad04b
ZW
5208 * flags.h: Declare warning flag warn_system_headers.
5209 * toplev.c: Define it.
5210 (W_options): Add option -Wsystem-headers.
5211 * diagnostic.c (count_error): Test warn_system_headers.
5212 * invoke.texi: Add description for -Wsystem-headers.
317639a8
BC
5213 * cpplib.h (cpp_options): New member warn_system_headers.
5214 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
5215 CPP_IN_SYSTEM_HEADER.
5216 * cpplib.c (do_import, do_pragma_once): Likewise.
5217 * cpperror.c (_cpp_begin_message): Test warn_system_headers
5218 and CPP_IN_SYSTEM_HEADER.
5219 * cppinit.c (handle_option): Recognize -Wsystem_headers.
5220 (print_help): Describe -Wsystem_headers.
5221 * cpplex.c (lex_line): Reorganize condition so that warnings
5222 about C++ comments in system headers can be enabled. Remove
5223 label do_line_comment.
5224
1c6d33ef
NB
5225Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
5226
5227 * cpplex.c (save_comment): Only store the initial '/'
5228 now.
5229 (lex_token): Combine handling of the two comment types.
b8dad04b 5230 Pass everything but the initial '/' to save_comment.
1c6d33ef 5231
7de4d004
NB
5232Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
5233
5234 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
5235 _cpp_can_paste): New library-internal prototypes.
5236 * cpplex.c (dump_param_spelling, output_line_command,
5237 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
5238 cpp_printf, cpp_output_list): Move to cppoutput.c.
5239 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
5240 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
5241 cppoutput.c.
5242 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
5243 dump_param_spelling, output_line_command, cpp_scan_buffer,
5244 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
5245 from elsewhere.
5246 * Makefile.in: Add cppoutput.c.
5247 * po/POTFILES.in: Add cppoutput.c.
5248
66db6b45
RH
52492000-09-25 Richard Henderson <rth@cygnus.com>
5250
5251 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
5252 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
5253 split until after reload.
5254 (rotlsi3, rotldi3): New.
5255
4b40f758
GDR
52562000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
5257
5258 * diagnostic.c (output_last_position): Define.
5259 (set_real_maximum_length): Tweek.
5260 * diagnostic.h (output_last_position): Declare.
5261
0f290768
KH
52622000-09-25 Kazu Hirata <kazu@hxi.com>
5263
5264 * config/i386/i386.c: Fix formatting.
5265
90e9ee6c
AL
52662000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
5267
5268 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
5269 UNITS_PER_WORD is small.
5270
0e00b68b
JM
52712000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
5272
5273 * c-common.c (format_char_info): Add flags2; update comments.
5274 (print_char_table, scan_char_table, time_char_table): Split some
5275 flags out into flags2.
5276 (check_format_info): Use flags2 for those flags, for identifying
5277 the initial character of a scanf scanset, and for identifying
5278 printf formats where the '0' flag is ignored with precision.
5279
0a3e1f45
HPN
52802000-09-25 Hans-Peter Nilsson <hp@axis.com>
5281
5282 Changes below marked "here" add TABs on either or both sides,
5283 covering start of line, up to any operand for all noted .*ASM.*_OP
e8638df0 5284 definitions. All callers changed.
047c1c92
HPN
5285 * tm.texi: Make documented *_ASM.*_OP:s include spacing
5286 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
5287 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
5288 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
5289 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
5290 Fix typos in description for LONG_LONG_TYPE_SIZE and
5291 FINI_SECTION_ASM_OP.
0a3e1f45
HPN
5292 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
5293 why these defaults don't have leading spacing.
5294 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
5295 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5296 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
5297 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
5298 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
5299 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
5300 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
5301 * varasm.c (ASM_STABS_OP): Here.
5302 * xcoffout.h (ASM_STABS_OP): Here.
e662a129
HPN
5303 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
5304 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
5305 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
5306 STRING_ASM_OP): Here.
5307 * config/freebsd.h (IDENT_ASM_OP): Here.
5308 * config/linux-aout.h (SET_ASM_OP): Here.
5309 * config/linux.h (SET_ASM_OP): Here.
5310 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5311 INT_ASM_OP): Here.
5312 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
5313 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
5314 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
5315 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5316 INT_ASM_OP): Here.
5317 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
5318 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
5319 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
5320 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
5321 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
5322 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5323 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
8c13c7b3
HPN
5324 * config/a29k/udi.h (INT_ASM_OP): Here.
5325 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
5326 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
5327 SET_ASM_OP): Here.
5328 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
5329 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5330 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5331 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
5332 ASM_STABD_OP): Here.
5333 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
5334 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
5335 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5336 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
5337 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
5338 SIZE_ASM_OP, STRING_ASM_OP): Here.
5339 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
5340 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
5341 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
5342 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
8202cda0 5343 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
8c13c7b3
HPN
5344 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
5345 Here.
5346 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5347 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
5348 * config/arm/coff.h (INT_ASM_OP): Here.
5349 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
5350 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
5351 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
5352 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
5353 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
5354 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5355 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
5356 STRING_ASM_OP): Here. Update documentation copy in comments.
4e8aa65c
HPN
5357 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
5358 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
5359 DATA_SECTION_ASM_OP): Here.
5360 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
5361 Here.
5362 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
5363 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
5364 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5365 BSS_SECTION_ASM_OP): Here.
5366 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5367 BSS_SECTION_ASM_OP): Here.
5368 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5369 Here.
5370 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
5371 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
5372 * config/h8300/h8300.h (ASM_WORD_OP): Here.
71d48a01
HPN
5373 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5374 BSS_SECTION_ASM_OP): Here.
5375 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
5376 * config/i386/bsd.h (ASM_BYTE_OP): Here.
5377 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
5378 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
5379 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
5380 Here.
5381 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
5382 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
5383 Here.
5384 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
5385 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5386 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
5387 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
5388 SET_ASM_OP): Here.
5389 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
5390 * config/i386/netbsd.h (INT_ASM_OP): Here.
5391 * config/i386/openbsd.h (INT_ASM_OP): Here.
5392 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
5393 IDENT_ASM_OP): Here.
5394 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
5395 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
5396 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
5397 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
5398 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
5399 SHARED_BSS_SECTION_ASM_OP): Here.
5400 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
5401 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
5402 DATA_SECTION_ASM_OP): Here.
5403 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5404 CONST_SECTION_ASM_OP): Here.
5405 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
5406 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5407 BSS_SECTION_ASM_OP): Here.
de323aa1
HPN
5408 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
5409 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
5410 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
5411 BSS_ASM_OP): Here, but use trailing spaces.
5412 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
5413 DATA_SECTION_ASM_OP): Here.
5414 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
5415 Here.
5416 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
5417 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
5418 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5419 TDESC_SECTION_ASM_OP): Here.
5420 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
5421 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5422 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5423 Here.
5424 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5425 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
5426 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5427 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
5428 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
5429 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
5430 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5431 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
6e7b07a7
HPN
5432 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
5433 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
5434 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
5435 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
5436 SET_ASM_OP): Here.
5437 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
5438 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5439 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
5440 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
5441 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
5442 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
5443 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
5444 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5445 GLOBAL_ASM_OP): Here.
5446 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
5447 BSS_SECTION_ASM_OP): Here.
5448 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
5449 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5450 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
5451 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
5452 SKIP_ASM_OP): Here.
5453 * config/m68k/newsgas.h (SET_ASM_OP): Here.
5454 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
5455 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
5456 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
5457 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
5458 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
5459 but use trailing spaces.
5460 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
5461 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
5462 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
5463 Here.
5464 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
5465 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
5466 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5467 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
5468 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5469 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
5470 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
5471 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
5472 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
5473 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
5474 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5475 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
5476 ASM_BYTE_OP): Here.
5477 * config/m88k/openbsd.h (SET_ASM_OP): Here.
5478 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5479 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
78d057d8
HPN
5480 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
5481 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
5482 DTORS_SECTION_ASM_OP): Here.
5483 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
5484 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5485 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
5486 BSS_SECTION_ASM_OP): Here.
5487 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
5488 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
5489 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
5490 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
5491 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
5492 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
5493 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
5494 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
5495 Here.
5496 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
5497 Here.
5498 * config/mips/osfrose.h (SET_ASM_OP): Here.
5499 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
76bbee81
HPN
5500 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
5501 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
5502 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5503 Here.
5504 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
5505 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
5506 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
5507 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
5508 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
5509 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5510 Here.
5511 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5512 Here.
5513 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
5514 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
5515 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
5516 Here.
471b6f1b
HPN
5517 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
5518 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
5519 * config/sparc/linux.h (COMMON_ASM_OP): Here.
5520 * config/sparc/linux64.h (COMMON_ASM_OP,
5521 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
5522 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
5523 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5524 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
5525 * config/sparc/pbd.h (ASM_INT_OP): Here.
5526 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
5527 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
5528 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
5529 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
5530 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
5531 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
5532 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
5533 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
5534 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
5535 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5536 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5537 EH_FRAME_SECTION_ASM_OP): Here.
5538 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
5539 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5540 Here.
5541 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5542 Here.
5543 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
5544 TCOMMON_ASM_OP): Here.
5545 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5546 Here.
5547 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5548 ASM_BYTE_OP): Here.
0a3e1f45 5549
ea9ea008
RH
55502000-09-25 Richard Henderson <rth@cygnus.com>
5551
5552 * expmed.c (store_bit_field): Adjust last change to not consider
5553 any word-sized field naturally aligned.
5554
9e495700
RH
55552000-09-24 Richard Henderson <rth@cygnus.com>
5556
5557 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
5558 TFmode unordered compares properly. Revalidate integer compare
5559 operands.
5560 (alpha_emit_setcc): New.
5561 (alpha_emit_conditional_move): Revalidate integer compare operands.
5562 * config/alpha/alpha-protos.h: Update.
5563 * config/alpha/alpha.md (cmpdi): Allow general operands.
5564 (sne): Use alpha_emit_setcc.
5565 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
5566 (sunordered, sordered): New.
5567
2ed4af6f
RH
55682000-09-24 Richard Henderson <rth@cygnus.com>
5569
5570 * config/ia64/ia64-protos.h: Update.
5571 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
5572 (ia64_expand_call): New.
5573 (ia64_expand_prologue): Emit an alloc if we need extra input
5574 registers.
5575 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
5576 instruction if true.
5577 (struct reg_flags): Add is_sibcall.
5578 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
5579 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
5580 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
5581 * config/ia64/ia64.h (PREDICATE_CODES): Update.
5582 * config/ia64/ia64.md (call): Use ia64_expand_call.
5583 (call_value): Likewise.
5584 (sibcall, sibcall_value): New.
5585 (call patterns): Remove extra expanders; tidy.
5586 (sibcall_epilogue): New.
5587 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
5588
e1389cac
RH
55892000-09-24 Richard Henderson <rth@cygnus.com>
5590
5591 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
5592
fd442cef
RH
5593 * sibcall.c (skip_pic_restore): New.
5594 (identify_call_return_value): Use it.
5595
c06aa51e
MM
55962000-09-24 Mark Mitchell <mark@codesourcery.com>
5597
5598 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
5599 functions. Generalize to handle both C and C++.
5600 * Makefile.in (c-tree.info): New target.
5601 (info): Add c-tree.info.
b8dad04b 5602
bd5dab53
RK
5603Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5604
5605 * expr.c (store_field): If BITSIZE is negative, use size of type.
5606 (expand_expr, case COMPONENT_EXPR): Likewise.
5607
838f313b
NB
5608Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
5609
5610 * cpplex.c: Update TODO comment.
5611 * cpplib.c (do_error, do_warning): Merge common code of
5612 do_error and do_warning into do_diagnostic. Use it.
5613 (do_diagnostic): New function.
5614 * cpplib.h: Fix comment typo.
5615
c5412f06
JM
56162000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
5617
5618 * c-common.c (check_format_info): Warn for a wide character string
5619 used as a non-wide format argument.
5620
1c44c45d
JM
56212000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
5622
5623 * builtins.def (BUILT_IN_LLABS): Add.
5624 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
5625 * c-common.c (c_common_nodes_builtins): Create builtin functions
5626 __builtin_llabs, and plain llabs unless no_nonansi_builtins
5627 outside of C99 mode.
5628 (expand_tree_builtin): Handle BUILT_IN_LLABS.
5629
cbcff6df
NB
5630Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
5631
5632 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
5633 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
5634 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
5635 _cpp_free_toklist): No need to worry about extra dummy token
5636 at the start of token lists any more.
5637 (trigraph_ok): Only warn outside comments.
5638 (skip_block_comment): Set and clear lexing_comment.
5639 (skip_line_comment): Take a cpp_reader not cpp_buffer.
5640 Set and clear lexing_comment.
5641 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
5642 (check_long_token): Delete.
5643 (lex_percent, lex_dot): New subroutines of lex_token to
5644 handle lexing of '.' and '%' without lookback.
5645 (lex_token): Use lex_dot and lex_percent.
5646 (lex_line): Don't check for LIST_OFFSET.
5647 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
5648 * cpplib.c (_cpp_parse_assertion): Similarly.
5649 (cpp_push_buffer): Initialize extra_char.
5650 * cpplib.h (LIST_OFFSET): Delete.
5651 (struct cpp_buffer): New member extra_char.
5652 (struct lexer_state): New members lexing_comment and seen_dot.
5653
2abdcaee
JM
56542000-09-23 Jason Merrill <jason@redhat.com>
5655
5656 * config/rs6000/x-aix41 (CLIB): Define here.
5657 * config/rs6000/t-aix43: Not here.
5658 * config/rs6000/t-aix41: Or here. Remove.
5659 * configure.in: Don't use it.
5660
981d4858
JM
56612000-09-22 Jason Merrill <jason@redhat.com>
5662
2abdcaee
JM
5663 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
5664 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
5665 * config.in: Regenerate.
5666
981d4858
JM
5667 * configure.in: Fix checks for assembler features when using a
5668 one-tree assembler that has not yet been built.
5669 Fix --disable-threads.
5670
afa223c6
GK
56712000-09-19 Geoff Keating <geoffk@cygnus.com>
5672
5673 * stmt.c (expand_asm_operands): Allow # in constraints.
5674
a3a834aa
JM
56752000-09-22 Jason Merrill <jason@redhat.com>
5676
5677 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
5678
5679 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
5680 function-local names.
5681
18424ae1
BL
56822000-09-22 Brad Lucier <lucier@math.purdue.edu>
5683 Mark Mitchell <mark@codesourcery.com>
5684
b8dad04b
ZW
5685 * toplev.c (warn_disabled_optimization): Declare new warning flag.
5686 * flags.h (warn_disabled_optimization): Add it here.
5687 * gcse.c (gcse_main): Add warning when disabled.
5688 * invoke.texi: Document -Wdisabled-optimization.
18424ae1 5689
1bfb5f8f
JM
56902000-09-21 Jason Merrill <jason@redhat.com>
5691
5692 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
5693
5694 * dwarf2out.c (tree_add_const_value_attribute): New fn.
5695 (gen_variable_die): Call it for non-definitions.
5696
5697 * dwarf2out.c (die_struct): Add die_mark field.
5698 (mark_dies, unmark_dies): New fns.
5699 (clear_die_sizes): Remove.
5700 (print_die): Check die_symbol rather than die_offset.
5701 (build_abbrev_table, output_pubnames, output_aranges): Check
5702 die_mark rather than die_offset.
5703 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
5704 Call mark_dies.
5705
2047e26f
NB
5706Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
5707
5708 * cppfiles.c (lookup_include_file): Rename to open_file.
5709 Always create a splay tree value, even on syscall failures.
5710 Negative entries indicated by fd == -2.
5711 Re-open files closed in the meantime.
5712 (_cpp_fake_include): Create a negative splay tree entry.
5713 (find_include_file, cpp_read_file): Update for function name
5714 change.
5715 * gcc.gd/cpp/mi4.c: Testcase.
5716
f27cd94d
NC
57172000-09-21 Nick Clifton <nickc@redhat.com>
5718
2359a5e1
NC
5719 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
5720 ARM and THUMB modes.
5721
f27cd94d 5722 * config/mcore/mcore.c: Fix compile time warnings.
b8dad04b 5723 * config/mcore/mcore-protos.h: Fix compile time warnings.
f27cd94d 5724
7373064a
DA
57252000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5726
5727 * configure.in: Correct test of gcc_cv_glibc.
5728 * configure: Rebuilt.
5729 * config.in: Rebuilt.
5730
07328167
KG
57312000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5732
5733 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
5734 (expand_builtin): Handle BUILT_IN_FWRITE.
5735
5736 * builtins.def (BUILT_IN_FWRITE): New entry.
5737
5738 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
5739
5fa7c8ce
RK
5740Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5741
dc36ec2c
RK
5742 * gcc.c (modify_target): New variable and struct.
5743 (process_command): Handle MODIFY_TARGET_NAME.
5744 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
5745 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
5746
5fa7c8ce
RK
5747 * c-decl.c (finish_decl): Add else's to avoid referencing
5748 TYPE_DOMAIN of an ERROR_MARK.
5749
155b14a8
DC
5750Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
5751
5752 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
5753 `reload_in*' insns.
5754
57552000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
5756
5757 * config/avr/avr.md (neghi2): Add alternative for input and output
5758 operands in different registers, as in negsi2.
5759 (*negsi2): Remove '*' from the name. Use "movw" if available.
5760
fd09c61f
JW
57612000-09-19 Jim Wilson <wilson@cygnus.com>
5762
5763 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
5764 HAVE_GAS_HIDDEN macro.
5765
7eea5554
NB
5766Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
5767
5768 * cpplex.c (lex_line): Drop the EOF token for unknown
5769 directives in assembler.
5770
a473fe45
DE
57712000-09-19 David Edelsohn <edelsohn@gnu.org>
5772
5773 * configure.in: Allow enable_threads_flag value of "aix". Define
fd60bf96 5774 thread_file as "aix" for AIX 4.3 and above.
a473fe45 5775 * configure: Regenerated.
fd60bf96
DE
5776
5777 * gthr-aix.h: New file.
5778
a473fe45
DE
5779 * rs6000/t-aix43: Replace soft-float multilib with pthread.
5780 Remove 403 processor multilib match. Fix rios2 processor multilib
5781 match.
5782
fd60bf96
DE
5783 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
5784 to return to appropriate csect.
5785
ad3fd36f
KG
57862000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5787
5788 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
5789 functions.
5790 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
5791 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
5792 BUILT_IN_PRINTF.
5793
5794 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
5795 New entries.
5796
5797 * c-common.c (init_function_format_info): Handle __builtin_printf.
5798 Set `check_function_format_ptr'.
5799 (c_common_nodes_and_builtins): Set `puts_ftype' and
5800 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
5801 __builtin_printf and printf.
5802
5803 * tree.c, tree.h (check_function_format_ptr): Declare.
5804
6f3d20a0
NB
5805Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
5806
b8dad04b 5807 * cppfiles.c (read_include_file): Take no special action for
6f3d20a0
NB
5808 zero-length files.
5809
b4f75276
BS
58102000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
5811
afc6898e
BS
5812 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
5813 rather than that of branch.
5814 (shorten_branches): Don't increment insn_current_address twice.
5815
b4f75276
BS
5816 Undo most of the Wed Jan 27 23:39:53 1999 patch:
5817 * loop.h (struct induction): Delete members derived, ix and last_use.
5818 (struct loop_ivs): Delete members first_increment_giv and
5819 last_increment_giv.
5820 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
5821 recombine_givs): Delete functions.
5822 (find_and_verify_loops): Don't initialize cont_dominator.
5823 (strength_reduce): Lose code to try to find bivs that can be
5824 expressed as givs of another biv, and to convert biv increments
5825 into givs.
5826 Lose loop_scan_start variable, always use loop->scan_start.
5827 Don't call recombine_givs. Don't handle derived givs.
5828 (record_giv): Don't initialize derived and last_use fields.
5829 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
5830 givs.
5831 * unroll.c (derived_regs): Delete static variable.
5832 (unroll_loop): Don't initialize it.
5833 (copy_loop_body): Lose code to handle derived givs.
5834 (find_splittable_givs): Don't check for givs made from biv
5835 increments.
5836 Don't set derived_regs.
5837
0f805606
BS
5838 Fix misapplied earlier patch:
5839 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
5840 to fpul.
5841 (floatsisf2): Generate floatsisf_ie by default.
5842 (floatsisf_i4): Conditional on TARGET_SH4.
5843
5844 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
5845 predicate for the expanders.
5846
8aa0e194
RH
58472000-09-19 Richard Henderson <rth@cygnus.com>
5848
0d97fd9e
RH
5849 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
5850 in addition to pentium and pentiumpro symbols.
5851 (CPP_CPU_DEFAULT_SPEC): Likewise.
5852
39b726dd
RH
5853 * c-typeck.c (c_expand_asm_operands): Restore the output tree
5854 after expanding.
5855
9790cefd
RH
5856 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
5857 if the tree has side effects.
5858 (warn_if_unused_value): Do not warn about void constructs.
5859
8e5a0fcb
RH
5860 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
5861
8aa0e194
RH
5862 * unroll.c (copy_loop_body): Update LABEL_NUSES before
5863 calling invert_jump.
5864
62f7f1f5
GK
58652000-09-18 Geoff Keating <geoffk@cygnus.com>
5866
5867 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
5868 into anything.
5869
3f80e6ac
KG
58702000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5871
5872 * Makefile.in (c-common.o): Depend on diagnostic.h.
5873
5874 * c-common.c: Include diagnostic.h.
5875 (tfaff): Delete.
5876 (status_warning): New function.
5877 (check_format_info, maybe_read_dollar_number, check_format_types,
5878 finish_dollar_format_checking, check_function_format): Accept a
5879 `status' parameter. All callers changed.
5880
5881 * c-common.h (check_function_format): Accept a `status' parameter.
5882
5883 * c-typeck.c: Update call to `check_function_format'.
5884
cfbd829c
RH
58852000-09-18 Richard Henderson <rth@cygnus.com>
5886
5887 * c-decl.c (c_expand_body): Call mark_varargs before
5888 expand_function_start.
5889
c21d86e1
GK
58902000-09-18 Geoff Keating <geoffk@cygnus.com>
5891
5892 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
5893 * config/rs6000/eabi-ci.asm: Likewise.
5894
f0417c82
RH
58952000-09-18 Richard Henderson <rth@cygnus.com>
5896
5897 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
5898 for BImode.
5899
226ed43f
JW
59002000-09-18 Jim Wilson <wilson@cygnus.com>
5901
5c3c320e
JW
5902 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
5903 before passing it to fold_rtx_mult_add.
5904
ec919c98
JW
5905 * unroll.c (final_giv_value): Pass increment through
5906 extend_value_for_giv before passing it to emit_iv_add_mult.
5907
226ed43f
JW
5908 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
5909 paradoxical subreg, then directly substitute the replacement and
5910 return.
5911
b542c0fb
NB
5912Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
5913
b4f75276 5914 * cpp.texi: Update documentation, including some clarifications,
b542c0fb
NB
5915 the treatment of various newline combinations, and space between
5916 backslash and newline.
5917
800a6a0c
R
5918Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
5919
5920 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
5921 Replace ASM_OUTPUT_LABELREF with assemble_name.
5922
50ceefc2
R
5923Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
5924
5925 * sh.c (addsubcosts): CONST is not cheap.
5926 (find_barrier): For Sh1, take alignment after jumps into account.
5927
659e47fb
AH
59282000-09-15 Andrew Haley <aph@redhat.com>
5929
5930 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
5931 remove all SETs of SUBREGs of hard registers.
7373064a 5932 * function.c (purge_hard_subreg_sets): New function.
659e47fb
AH
5933 (purge_single_hard_subreg_set): New function.
5934 * rtl.h: (purge_hard_subreg_sets): New function.
5935
f2f90c63
RH
59362000-09-18 Richard Henderson <rth@cygnus.com>
5937
5938 * config/ia64/ia64-protos.h: Update.
5939 * config/ia64/ia64.c (signed_inequality_operator): New.
5940 (ia64_expand_compare): New.
5941 (ia64_register_move_cost): Handle PR_REGS moves.
5942 (ia64_secondary_reload_class): Require a GR when moving to a PR.
5943 (struct reg_write_state): Add written_by_and/or.
5944 (struct reg_flags): Add is_and/or.
5945 (rws_update): Set them.
5946 (rws_access_regno): Test them to allow parallel comparisons.
5947 (rtx_needs_barrier): Recognize parallel comparisons.
5948 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
5949 Call recog_memoized; ignore pred_rel_mutex.
5950 (emit_predicate_relation_info): Don't call find_basic_blocks here.
5951 (ia64_reorg): Do it here instead.
5952 * config/ia64/ia64.h: s/CCmode/BImode/g
5953 (MODES_TIEABLE_P): Don't tie BImode.
5954 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
5955 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
5956 (RTX_COSTS): Make multiply 4 insns.
5957 (MEMORY_MOVE_COST): New.
5958 (PREDICATE_CODES): Update.
5959 * config/ia64/ia64.md: s/CCmode/BImode/g
5960 (movcci, movbi): New.
5961 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
5962 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
5963 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
5964 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
5965 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
5966 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
5967 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
5968 (mulsi, muldi): Use xmpy not xma.
5969 (cmpbi): New.
5970 (movcc, movcc_internal): Remove.
5971 (branch expanders): Use ia64_expand_compare.
5972 (setcc expanders): Likewise.
5973 (cmov insns): Use move_operand and ia64_move_ok.
5974 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
5975 scheduler from moving it past a use.
5976 * config/ia64/build.hacks: Remove.
5977
0d9f234d
NB
5978Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
5979
5980 * cpphash.h (HASHSTEP): Take character rather than pointer
5981 to character.
5982 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
5983
5984 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
5985
5986 * cpplex.c (auto_expand_name_space, trigraph_replace,
5987 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
5988 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
5989 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
5990 KNOWN_DIRECTIVE): Delete.
5991
5992 (handle_newline, check_long_token, skip_escaped_newlines,
5993 unterminated): New functions.
5994 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
5995
5996 (parse_identifier): Was parse_name, new implementation.
5997 (skip_line_comment, skip_block_comment, skip_whitespace,
5998 parse_number, parse_string, trigraph_ok, save_comment,
5999 adjust_column, _cpp_get_line): New implementations.
6000
6001 (lex_token): New function. Lexes a token at a time, looking
6002 forwards. Contains most of the guts of the old lex_line.
6003 (lex_line): New implementation, using lex_token to obtain
6004 individual tokens.
6005 (cpp_scan_buffer): Use the token's line, not the list's line.
6006
6007 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
6008 New implementations.
6009 (do_assert): Don't bother setting the answer's list's line.
6010 (cpp_push_buffer): Initialise new pfile and read_ahead members
6011 of struct cpp_buffer.
6012
6013 * cpplib.h (cppchar_t): New typedef.
6014 (struct cpp_buffer): read_ahead, pfile and col_adjust are
6015 new members.
6016 (struct lexer_state): New structure that determines the state
6017 and behaviour of the lexer.
6018 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
6019 (struct cpp_reader): New member "state". Rename
6020 multiline_string_line and multiline_string_column. Delete
6021 col_adjust, in_lex_line members.
6022 (CPP_BUF_COLUMN): Update.
6023
a191f0ee
RH
60242000-09-18 Richard Henderson <rth@cygnus.com>
6025
9f8e169e
RH
6026 * combine.c (simplify_comparison): Shift a NOT out of a single
6027 bit test.
6028
1f3f36d1
RH
6029 * combine.c (if_then_else_cond): Canonicalize BImode true to
6030 STORE_FLAG_VALUE.
6031 * explow.c (trunc_int_for_mode): Likewise.
6032
5bd60ce6
RH
6033 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
6034 the NOT for De Morgan's rule.
6035 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
6036 of a comparison to the reverse comparison.
6037
d340408c
RH
6038 * combine.c (try_combine): Allow split to create a single insn.
6039
a191f0ee
RH
6040 * machmode.def: Add BImode. Add a column for bitsize.
6041 * machmode.h (DEF_MACHMODE): Adjust for extra column.
6042 (GET_MODE_BITSIZE): Use it.
6043 * rtl.c (DEF_MACHMODE): Adjust for extra column.
6044 (mode_bitsize): New.
6045 (mode_mask_array): Use bitsize.
6046 * combine.c (combine_simplify_rtx): Require inner and outer
6047 modes to match on nonzero_bits optimizations.
6048
5d77a50c
BS
60492000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
6050
6051 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
6052 its entry in spill_reg_store.
0fb8cb90 6053 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
2e361e59
BS
6054 * sh.c (reg_no_subreg_operand): New function.
6055 * sh-protos.h (reg_no_subreg_operand): Declare it.
6056 * sh.h (PREDICATE_CODES): Add it.
6057 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
6058 input operand that needs to be in fpul.
6059 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
42d5d0f1
BS
6060 * sh.c (find_barrier): Take into account that machine_dependent_reorg
6061 might add new insns.
5d77a50c 6062
55eec660
AO
60632000-09-18 Alexandre Oliva <aoliva@redhat.com>
6064
40fc375d
AO
6065 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
6066 MAYBE_DEAD.
6067 (sh_expand_epilogue): Take the PIC register into account when
6068 computing the frame size.
6069
55eec660
AO
6070 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
6071 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
6072 LABEL_REFs with a PIC-safe unspec.
6073
fc6df7e1
JM
60742000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
6075
6076 * c-common.c (check_format_info): Properly save the argument
6077 number and parameter for $ operand number formats in case width
6078 and precision arguments are also used. Allow printf width and
6079 precision arguments to have operand numbers even if none was
6080 specified for the main format, since this is OK for %*.*m. Only
6081 object to missing $ operand number if the format used requires an
6082 argument.
6083
effa5541
JM
60842000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
6085
6086 * c-common.c (format_char_info): Add 'W' flag to comment.
6087 (print_char_table, scan_char_table): Use it.
6088 (check_format_info): Use the 'W' flag to determine whether a
6089 format argument is written into.
6090
99303ae4
JM
60912000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
6092
6093 * c-common.c (check_format_types): Reorganise and clean up,
6094 checking earlier for ERROR_MARKs and making cur_type into its
6095 TYPE_MAIN_VARIANT where convenient.
6096
9231abf2
JM
60972000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
6098
6099 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
6100
cf67d231
BS
61012000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
6102
6103 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
6104
bd793c65
BS
6105 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
6106 * i386.c (struct builtin_description): New.
6107 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
6108 (mmx_reg_operand): Declare MODE arg as unused.
6109 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
6110 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
6111 ix86_expand_binop_builtin, ix86_expand_store_builtin,
6112 ix86_init_builtins, ix86_expand_builtin): New functions.
6113 * i386.h (ix86_builtins): New enumeration.
6114 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
6115 * i386.md (attr length_immediate): 0 for mmx/sse types.
6116 (attr prefix_0f): 1 for mmx/sse types.
6117 (setcc_2): Remove "*" so we get gen_setcc_2.
6118 (emms): Account for changed register numbering. Set "memory" attr
6119 to unknown.
6120 (sfence): Set "memory" attr to unknown.
6121
4070d885
AJ
61222000-09-18 Andreas Jaeger <aj@suse.de>
6123
6124 * configure.in: Define _GNU_SOURCE only when using the GNU C
6125 Library.
a191f0ee
RH
6126 * configure: Regenerated.
6127 * config.in: Regenerated.
4070d885 6128
2ac86f90
MM
61292000-09-17 Mark Mitchell <mark@codesourcery.com>
6130
31a1fdad
MM
6131 * cppinit.c (cpp_init): Don't use ANSI prototypes.
6132 * flow.c (flow_dump_loop): Likewise.
6133 (flow_loops_dump): Likewise.
6134
2ac86f90
MM
6135 * c-typeck.c (c_start_case): Fix typo.
6136
60e9d01c
JM
61372000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
6138
6139 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
6140 to int for plain complex which defaults to complex double. Do
6141 warn about defaulting to complex double if pedantic. Warn about
6142 complex integer types if pedantic. Warn about complex types if
6143 pedantic and not in C99 mode.
6144 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
6145 for complex conjugation.
6146
bc5006c7
JM
61472000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
6148
6149 * contrib.texi: Update my entry.
6150
7e3bd81e
DC
6151Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
6152
23cb1766
RK
6153 * config/avr/avr.md (mcu_enhanced): New attribute.
6154 (mcu_mega): Likewise.
6155 (extendhisi2): Use mcu_enhanced.
6156 (zero_extendhisi2): Likewise.
6157 (call_insn): Use mcu_enhanced and mcu_mega.
6158 (call_value_insn): Likewise.
6159 (*sbrx_branch): Use mcu_mega.
6160 (*sbrx_and_branchsi): Likewise.
6161 (*sbrx_and_branchhi): Likewise.
6162 (*tablejump_lib): Likewise.
7e3bd81e 6163
6a51f4a0
RK
6164Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6165
ec569656
RK
6166 * alias.c (true_dependence): Allow non-unchanging read to conflict
6167 with unchanging write.
6168
23cb1766
RK
6169 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
6170 (store_constructor): Pass alias_set to it.
6171
a52fb89b
RK
6172 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
6173 TYPE_MAIN_VARIANT of ERROR_MARK.
6174 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
6175
6a51f4a0
RK
6176 * simplify-rtx.c (simplify_unary_operation): Add cases
6177 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
6178
ebb1b59a
BS
61792000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
6180
a191f0ee 6181 * expr.h (emit_library_call, emit_library_call_value): Delete
ebb1b59a
BS
6182 declarations.
6183 * rtl.h (enum libcall_type): New.
6184 (emit_library_call, emit_library_call_value): Change fn_type arg to
a191f0ee 6185 be of type enum libcall_type.
ebb1b59a
BS
6186 * calls.c: Likewise for the function definitions. Several callers
6187 throughout changed to use the new enumeration appropriately.
6188 (emit_library_call_value_1): Likewise. Put back code to make libcall
a191f0ee 6189 blocks of equal form, but only use it for the two new higher
ebb1b59a
BS
6190 enumeration values.
6191
8f17b5c5
MM
61922000-09-16 Mark Mitchell <mark@codesourcery.com>
6193
6194 Convert the C front-end to use function-at-a-time mode.
6195 * c-common.h: Include splay-tree.h.
6196 (C_DECLARED_LABEL_FLAG): New macro.
6197 (struct language_function): Add x_scope_stmt_stack and
6198 x_function_name_declared_p.
6199 (RECHAIN_STMTS): Move definition.
6200 (lang_statment_code_p): Likewise.
6201 (lang_expand_stmt): Likewise.
6202 (lang_expand_decl_stmt): New variable.
6203 (lang_expand_function_end): Likewise.
6204 (current_scope_stmt_stack): New function.
6205 (add_decl_stmt): Likewise.
6206 (add_scope_stmt): Likewise.
6207 (mark_stmt_tree): Likewise.
6208 (struct c_lang_decl): New structure.
6209 (DECL_SAVED_TREE): Define.
6210 (c_mark_lang_decl): New function.
6211 (c_expand_start_cond): Change prototype.
6212 (c_finish_then): New function.
6213 (c_finish_else): Likewise.
6214 (current_function_name_declared): Remove.
6215 (set_current_function_name_declared): Likewise.
6216 (mark_c_language_function): Declare.
6217 (case_compare): Likewise.
6218 (c_add_case_label): Likewise.
6219 (c_expand_expr): Likewise.
6220 (c_safe_from_p): Likewise.
6221 * c-common.c (lang_expand_function_end): New variable.
6222 (struct if_elt): Add if_stmt.
6223 (c_expand_start_cond): Add the if-statement to the statement-tree,
6224 rather than generating RTL.
6225 (c_finish_then): New function.
6226 (c_expand_start_else): Don't generate RTL.
6227 (c_finish_else): New function.
6228 (c_expand_expr_stmt): Don't generate RTL.
6229 (statement_code_p): Add SCOPE_STMT.
6230 (case_compare): New function.
6231 (c_add_case_label): Likewise.
6232 (mark_stmt_tree): Likewise.
6233 (c_mark_lang_decl): Likewise.
6234 (mark_c_language_function): Likewise.
6235 (c_expand_expr): Likewise.
6236 (c_safe_from_p): Likewise.
6237 * c-decl.c (c_stmt_tree): New variable
6238 (c_scope_stmt_stack): Likewise.
6239 (c_function_name_declared_p): Likewise.
6240 (lang_expand_expr_stmt): Remove.
6241 (poplevel): Don't call output_inline_function for nested
6242 functions.
6243 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
6244 `extern' function.
6245 (redeclaration_error_message): Change means of computing whether
6246 or not a function is nested.
6247 (lookup_label): Don't call label_rtx.
6248 (init_decl_processing): Add more GC roots.
6249 (start_decl): Add DECL_STMTs to the statement-tree, rather than
6250 calling rest_of_decl_compilation.
6251 (finish_decl): Don't call expand_decl.
6252 (store_parm_decls): Begin the statement-tree, but don't generate
6253 RTL.
6254 (finish_function): Tie off the statement-tree. Call c_expand_body
6255 if appropriate.
6256 (c_expand_body): New function.
6257 (push_c_function_context): Save more information.
6258 (pop_c_function_contxt): Likewise.
6259 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
6260 (lang_mark_tree): Mark it.
6261 (current_stmt_tree): Adjust.
6262 (current_scope_stmt_stack): New function.
6263 (do_case): Remove.
6264 (set_current_name_declared): Likewise.
6265 (c_begin_compound_stmt): Define.
6266 (c_expand_decl_stmt): Likewise.
6267 * c-lang.c: Include rtl.h and expr.h.
6268 (lang_init): Set more language-specific hooks.
6269 * c-lex.c: Include expr.h.
6270 * c-parse.in: Changes throughout to add statements to the
6271 statement-tree, rather than generating RTL after every statement.
6272 * c-semantics.c (lang_expand_decl_stmt): Define.
6273 (add_decl_stmt): New function.
6274 (add_scope_stmt): Likewise.
6275 (finish_stmt_tree): Tweak.
6276 (genrtl_expr_stmt): Likewise.
6277 (genrtl_decl_stmt): Handle local labels, and call
6278 lang_expand_decl_stmt if required.
6279 (genrtl_for_stmt): Fix line-number handling.
6280 (genrtl_case_label): Handle cleanups.
6281 (genrtl_asm_stmt): Don't call combine_strings.
6282 (genrtl_compound_stmt): Simplify.
6283 (expand_stmt): Handle SCOPE_STMTs.
6284 * c-tree.h (struct lang_decl): New structure.
6285 (C_DECLARED_LABEL_FLAG): Remove.
6286 (c_begin_compound_stmt): Declare.
6287 (c_expand_decl_stmt): Likewise.
6288 (c_expand_start_case): Rename to c_start_case.
6289 (c_finish_case): New function.
6290 * c-typeck.c (start_init): Tweak setting of
6291 constructor_incremental.
6292 (c_expand_asm_operands): Tweak error-handling. Add to the
6293 statement-tree.
6294 (c_expand_return): Add to the statement-tree.
6295 (c_expand_start_case): Rename to ...
6296 (c_start_case): ... this.
6297 (struct c_switch): New type.
6298 (switch_stack): New variable.
6299 (do_case): Simplify.
6300 (c_finish_case): New function.
6301 * dependence.c: Include expr.h.
6302 (enum dependence_type): Change spelling of enumerals.
6303 (check_node_dependence): Adjust.
6304 * expr.h (lang_safe_from_p): Declare.
6305 (safe_from_p): Likewise.
6306 * expr.c (lang_safe_from_p): New variable.
6307 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
6308 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
6309 * toplev.c (rest_of_decl_compilation): Robustify.
6310 * tree.c (contains_placeholder_p): Likewise.
6311 * Makefile.in: Update dependencies.
6312 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
6313 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
6314 (objc_expand_function_end): New function.
6315 (finish_method_def): Use it.
6316 (init_objc): Initialize more language-specific hooks.
6317 * objc/Make-lang.in: Update dependencies.
7373064a 6318
4797e955
GK
63192000-09-16 Geoffrey Keating <geoffk@cygnus.com>
6320
6321 * configure.in: Define macros that affect features before
6322 testing for features. Don't define _XOPEN_SOURCE.
6323 * configure: Regenerated.
6324 * config.in: Regenerated.
6325
ae0fb1b9
JW
6326Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
6327
6328 * rtlanal.c (rtx_varies_p): Volatile asms vary.
6329 (rtx_unstable_p): Restructure code. Volatile asms
6330 are unstable.
6331
5748b2cb 6332Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
ae0f4dee 6333
87c31d6b
RK
6334 * function.h (no_debugging_symbols): New field.
6335 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
6336 Initialize no_debugging_symbols.
6337 (output_inline_function): Save and restore write_symbols and set from
6338 no_debugging_symbols.
6339 * toplev.c (rest_of_compilation): Call save_for_inline.
6340 * tree.h: Update comment.
7373064a 6341
5748b2cb
RK
6342 * stor-layout.c (place_field): Don't do anything if field or
6343 its type are ERROR_MARK.
6344
6345Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
6346
6347 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
6348 (read_include_file): Ensure inc->mmaped is initialized.
ae0f4dee 6349
6f84c9bd
RH
63502000-09-16 Richard Henderson <rth@cygnus.com>
6351
6352 * cppiles.c (purge_cache): Use PTR not caddr_t.
6353
50c57e7b
HPN
63542000-09-16 Hans-Peter Nilsson <hp@axis.com>
6355
6356 * gcc.c: In description for %{<S}, say the option removed is -S.
6357 * invoke.texi (Spec Files): Ditto.
6358
dd745546
AJ
63592000-09-16 Andreas Jaeger <aj@suse.de>
6360
6361 * configure.in: Always define _GNU_SOURCE to make interfaces
6362 visible that were hidden by only defining _GNU_SOURCE.
6363 * configure: Regenerated.
6364
08ebc1c5
NB
6365Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
6366
6367 * cpplex.c (push_macro_context): Set an argument's level after
6368 calling parse_args. We could loop infinitely otherwise.
6369
16abe34a
TT
63702000-09-15 Tom Tromey <tromey@cygnus.com>
6371
6372 * configure, config.in: Rebuilt.
6373 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
6374
61c16b10
GM
63752000-09-15 Greg McGary <greg@mcgary.org>
6376
6377 * cppmacro.c (check_trad_stringification): Check token
6378 text pointers against limit before dereferencing.
6379
6a357625
JM
63802000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
6381
6382 * c-common.c (format_wanted_type): New structure.
6383 (check_format_types): New function.
6384 (check_format_info): Pass all checking of types of format
6385 arguments, including width and precision arguments, to this new
6386 function.
6387
6a1d1088
GP
63882000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6389
6390 * BUGS: Remove file.
6391
a3b815cb
JJ
63922000-09-15 Jakub Jelinek <jakub@redhat.com>
6393
54f5c4b0
JJ
6394 * config/alpha/alpha.c (override_options): ev6 cache latencies
6395 from Richard Henderson. Don't allow -mmemory-latency=L0.
6396
a3b815cb
JJ
6397 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
6398 (TARGET_OPTIONS): Add tune=.
6399 (alpha_tune_string): Declare.
6400 * config/alpha/alpha.c (override_options): Add cpu_table.
6401 Use alpha_cpu_string first to set both alpha_cpu and target_flags
6402 and then alpha_tune_string to set alpha_cpu only.
6403 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
6404 * config/alpha/elf.h (ASM_FILE_START): Likewise.
6405 * config/alpha/osf.h (ASM_FILE_START): Likewise.
6406 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
6407
9076b9c1
JH
6408Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
6409
6410 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
6411 Remove.
6412 (ix86_comparison_operator, ix86_cc_mode): Declare
6413 * i386.h (CCGC, CCGCO): New modes.
6414 (SELECT_CC_MODE): Move offline to ....
6415 * i386.c (ix86_cc_mode): .... here; use new modes.
6416 (ix86_comparison_operator): New.
6417 (fcmov_comparison_operator): Ensure proper mode.
6418 (put_condition_mode): More sanity checking.
6419 (ix86_match_ccmode): Handle new modes.
6420 (ix86_expand_fp_compare): GEU requires CCmode.
6421 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
6422 doing it by hand.
6423 * i386.md (cmp?i_ccz_1): Remove
6424 (cmp?i_ccno_1): Use ix86_match_ccmode.
6425 (cmp?i_minus_1): New.
6426 (cmpsi_1): New expander.
6427 (cmpqi_ext_1): Use match_ccmode
6428 (cmpqi_ext_3): New expander.
6429 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
6430 (cmpqi_ext_4): Use match_ccmode.
6431 (add?i_?): Use match_ccmode.
6432 (add?i_6): New.
6433 (test?i_ccz_1): Remove
6434 (test?i_1): New.
6435 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
6436 (testqi_ext_0): Use ix86_match_ccmode.
6437 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
6438 (xorqi_cc_ext_1): New expander.
6439 (shift patterns): Use CCGOCmode for all shifts except for sar.
6440 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
6441 (setcc_3, jcc_3, miv?icc_c): Remove.
6442
3724ec07
WC
64432000-09-15 Will Cohen <wcohen@redhat.com>
6444
6445 * dwarf2out.c (add_const_value_attribute): Changed array into a
6446 xmalloced object, so it exists after function exit.
6447 (free_AT): Added case for dw_val_class_float to free allocated
6448 memory.
6449
182a4620
KH
64502000-09-15 Kazu Hirata <kazu@hxi.com>
6451
6452 * config/i386/i386.md: Fix a comment typo.
d25a45d4 6453 * gcc.c: Fix formatting.
182a4620 6454
aff2c2d3
BS
64552000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
6456
6457 * optabs.c (emit_libcall_block): If target is a user variable,
6458 copy to a temporary first.
642dfa8b
BS
6459 * expr.c (convert_move): When generating a libcall, make a libcall
6460 block.
188c5e6c
BS
6461 * calls.c (emit_library_call_value_1): Don't create a libcall
6462 sequence here; our caller will in most cases do it.
aff2c2d3 6463
0c4c9b16
BS
6464 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
6465 MACH into FPUL.
6466 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
6467 * sh.md (reload_outsf): Generate recognizable patterns for
6468 TARGET_SH3E.
6469 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
6470 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
6471 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
6472 truncdfsf2_i4): Change not to use explicit references to fpul.
6473 (floatsisf2_ie): Remove USE of fpscr.
6474 (floatsisf2): Change default expansion to match this.
6475 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
6476 unused patterns.
6477
308ecea0
RH
64782000-09-15 Richard Henderson <rth@cygnus.com>
6479
6480 * expmed.c (store_bit_field): Consider naturally aligned
6481 memory for direct reference.
6482
e01acbb1
RH
64832000-09-15 Richard Henderson <rth@cygnus.com>
6484
6485 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
6486 AND addresses into alias set 0.
6487 (alpha_expand_unaligned_store): Likewise.
6488 (alpha_expand_unaligned_load_words): Likewise.
6489 (alpha_expand_unaligned_store_words): Likewise.
6490
c363a0c0
BS
64912000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
6492
6493 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
6494 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
6495 is defined.
dd193c79
BS
6496 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
6497 rsize of UNITS_PER_WORD.
c363a0c0 6498
ff94c747
NB
6499Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
6500
6501 * cpplex.c (ON_REST_ARG): Correct the test.
6502 (maybe_paste_with_next): Duplicate a token that fail pasting,
6503 and clear its PASTE_LEFT flag, so that nested pasting attempts
6504 do not occur.
6505
b437f1a7
RH
65062000-09-14 Richard Henderson <rth@cygnus.com>
6507
6508 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
6509 * cse.c (rtx_cost): Likewise.
6510 * optabls.c (expand_binop): Likewise.
6511 (expand_twoval_binop, prepare_cmp_insn): Likewise.
6512 * regclass.c (copy_cost): Likewise.
6513 * reload1.c (reload_cse_move2add): Likewise.
6514
d9dbd9b1
JM
65152000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
6516
6517 * c-parse.in (reswords): Add _Complex.
6518
9207d3b1
DA
65192000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6520
6521 * gcc.1: Delete documentation for -undef preprocessor option.
6522
395a451c
AO
65232000-09-14 Alexandre Oliva <aoliva@redhat.com>
6524
6525 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6526 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
6527 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
6528 Remove undefine before config/elfos.h.
6529 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
6530
17f0f8fa
KH
65312000-09-14 Kazu Hirata <kazu@hxi.com>
6532
6533 * invoke.texi (H8/300 Options): Add -ms2600.
6534 * config/h8300.c (h8300_init_once): Output an error when -ms2600
6535 is used without -ms.
6536 * config/h8300.h (TARGET_MAC): New.
6537 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
6538 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
6539 machine other than H8/S2600.
6540 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
6541 of the H8/S2000.
6542
9e8f528c
AO
65432000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
6544
6545 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
6546 pseudos that refer to the original pseudos, not only to their
6547 equivalent memory locations.
6548
9985f210
RK
6549Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6550
fe7a8445
RK
6551 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
6552 when making new MEM.
6553
9985f210
RK
6554 * Makefile.in (LN): Remove duplicate definition.
6555
2f93c5c3
BS
65562000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
6557
6558 From Joern Rennecke:
6559 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
6560 on an insn and function_invariant_p returns nonzero for the source,
6561 add a REG_EQUAL note.
6562
b24ea077
JW
6563Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
6564
6565 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
6566 conflict with frame_pointer_rtx.
6567
fd5d5b07
KH
65682000-09-13 Kazu Hirata <kazu@hxi.com>
6569
6570 * loop.c: Fix formatting.
6571 * loop.h: Likewise.
6572
26102535
RH
65732000-09-13 Richard Henderson <rth@cygnus.com>
6574
6575 * config/ia64/ia64.md (divsf3): New.
6576 (divsf3_internal_lat, divsf3_internal_thr): New.
6577 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
6578 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
6579 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
6580 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
6581 (nmadddf4_alts, nmadddf4_trunc): New.
6582 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
6583 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
6584 (multf3_truncsf_alts, multf3_truncdf_alts): New.
6585 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
6586 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
6587 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
6588 (nmaddtf4_truncdf_alts): New.
6589 (recip_approx): Don't predicate.
6590
938566fb
RH
65912000-09-13 Richard Henderson <rth@cygnus.com>
6592
6593 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
6594
c349e40b
SC
65952000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6596
6597 * flags.h (flag_dump_rtl_in_asm): Declare.
6598 * toplev.c (flag_dump_rtl_in_asm): Define.
6599 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
6600 if -dP is specified.
6601 * rtl.h (print_rtx_head): Declare.
6602 * print-rtl.c (print_rtx_head): Define.
6603 (print_rtx): Print the string pointed to by print_rtx_head
6604 at beginning of each dump line.
6605 (print_rtl): Likewise.
6606 (print_rtl_single): Likewise.
6607 * final.c (final_scan_insn): Dump the insn in the assembly
6608 file for debugging.
6609 * gcc.1: Document -dP option.
6610 * invoke.texi (Debugging Options): Likewise.
6611
2856c3e3
SC
66122000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6613
6614 * md.texi (Machine Constraints): Document the 68HC11 constraints.
6615 * install.texi (Configurations): Document the 68HC11&68HC12 port.
6616 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
6617
1ca04dc8
DC
6618Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
6619
6620 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
6621 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
6622 (*clrstrqi): Likewise.
6623 (xorhi3,xorsi3,absqi2): Likewise.
6624 (one_cmplhi2,one_cmplsi2): Likewise.
6625 (addsi3): Two stupid constraint alternatives removed.
6626 (extendhisi2): Use `movw' for enhanced avr cores.
6627 (zero_extendhisi2): Likewise.
6628
bb07060a
JW
6629Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
6630
6631 * alias.c (find_base_term): Use frame_pointer_rtx
6632 when handling an ADDRESSOF.
6633
6634 * cse.c (canon_hash): Handle USE of BLKmode memory.
6635 (cse_insn): Outgoing arguments for a libcall don't
6636 affect any recorded expressions.
6637
d21445e7
TT
66382000-09-12 Tom Tromey <tromey@cygnus.com>
6639
6640 * configure, config.in: Rebuilt.
6641 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
6642
5c80f6e6
JJ
66432000-09-12 Jakub Jelinek <jakub@redhat.com>
6644
6645 * c-lex.c (lex_string): Use charwidth to compute bytemask.
6646 * expr.c (expand_expr): Don't optimize constant array references
6647 initialized with wide string constants.
6648
635a2a90
MH
66492000-09-13 Michael Hayes <mhayes@cygnus.com>
6650
a191f0ee 6651 * loop.c (note_set_pseudo_multiple_uses): Correct.
635a2a90 6652
cc2999aa
JW
66532000-09-12 Jim Wilson <wilson@cygnus.com>
6654
6655 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
6656 else block, and X has side-effects, then fail.
6657
a0b6cdee
GM
66582000-09-12 Greg McGary <greg@mcgary.org>
6659
6660 * config/mips/mips-protos.h
6661 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
6662 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
6663 (PREDICATE_CODES): Add "trap_cmp_op".
6664 * config/mips/mips.c
6665 (trap_cmp_op, mips_gen_conditional_trap): New functions.
6666 * config/mips/mips.md (trap, conditional_trap): New patterns.
6667
24948ccc
BS
66682000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
6669
6670 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
6671 pointer.
6672
3ff5f682
KG
66732000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6674
6675 * builtins.c (built_in_decls): New array.
6676 (expand_builtin_fputs): New function.
6677 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
6678
6679 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
6680
6681 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
6682
6683 * tree.h (built_in_decls): New array.
6684
208b0ab1
JL
6685Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
6686
6687 * convex.md: Use "+" instead of "=" for outputs wrapped in a
6688 STRICT_LOW_PART.
6689 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
6690
a86dc4a3
KH
66912000-09-12 Kazu Hirata <kazu@hxi.com>
6692
7a403706
KH
6693 * haifa-sched.c: Fix formatting.
6694
c9541287
KH
6695 * genattrtab.c: Fix formatting.
6696
a86dc4a3
KH
6697 * unroll.c: Fix formatting.
6698
3af556f7
BK
66992000-09-12 Bruce Korb <bkorb@gnu.org>
6700
6701 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
6702 remove obsolete code
6703 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
6704 * fixinc/fixincl.tpl: make non-exported arrays static scope
6705 * fixinc/fixincl.x: regenerate
6706 * fixinc/fixlib.h: Use PARAMS, not _P_
6707 * fixinc/fixtests.c: make a type for the test proc & use it
6708 * fixinc/server.h: Use PARAMS, not _P_
6709
32892c52
KG
67102000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6711
6712 * c-typeck.c (process_init_element): Avoid union init warnings on
6713 floating point zero. Don't crash on unions containing structs.
6714
ae0a1c23
AO
67152000-09-12 Alexandre Oliva <aoliva@redhat.com>
6716
6717 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
6718 general_movsrc_operand, and remove CONST_INT from
6719 general_movdst_operand.
6720
f1c1dfc3
BS
67212000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
6722
6723 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
6724 if a reference to non-fixed hardreg is seen. Otherwise, count hard
6725 regs with a higher cost.
6726 (preferrable): Deal with cases where either cost or regcost is
6727 MAX_COST.
6728 (cse_insn): Use MAX_COST rather than 10000. Always initialize
6729 regcost values.
6730 (COSTS_N_INSNS): Move definition...
6731 * rtl.h: ...here.
6732 (MAX_COST): New macro.
6733 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
6734 constant.
6735
f444e36b
MM
67362000-09-11 Mark Mitchell <mark@codesourcery.com>
6737
6738 * c-common.h (genrtl_clear_out_block): Remove.
6739 * c-semantics.c (genrtl_clear_out_block): Remove.
6740 (genrtl_while_stmt): Don't call it.
6741 (genrtl_for_stmt): Likewise.
6742
a58d32c2
ZW
67432000-09-11 Zack Weinberg <zack@wolery.cumb.org>
6744
6745 * cppfiles.c: Move all default-#defines to top of file.
6746 (open_include_file): Replace by lookup_include_file.
6747 (read_with_read, read_file): Merged into read_include_file.
6748 (stack_include_file, purge_cache): New functions.
6749 (close_cached_fd): Delete.
dd745546 6750 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
a58d32c2
ZW
6751 Cache the in-memory buffer, not the file descriptor.
6752
6753 * cpphash.h (struct include_file): Add buffer, st, refcnt,
6754 mapped fields.
6755 (xcnew): New utility macro.
6756 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
6757 * cpplib.h (struct cpp_buffer): Remove mapped field.
6758
67592000-09-11 Zack Weinberg <zack@wolery.cumb.org>
6760
6761 * cpplex.c (parse_string): Accept backslash space newline as a
6762 line continuation.
6763 (lex_line): Likewise.
6764 (_cpp_get_token): Remove hard limit on macro nesting.
6765
bfa29b63
PT
67662000-09-12 Philipp Thomas <pthomas@suse.de>
6767
6768 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
6769 * configure: Rebuilt.
6770
97ca9316
MH
67712000-09-13 Michael Hayes <mhayes@cygnus.com>
6772
6773 * flow.c (split_block): Fix update of registers live at
6774 end of split block.
6775
d90ffc8d
JH
6776Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
6777
6778 * i386.md (add?i_3, add?i_5): New.
6779 (add?i_4): Rename from add?i_3; Fix compare pattern.
6780 (sub?i_3, xor?i_3, ior?i_3): New.
6781
6782 * genrecog.c (write_tree): Output code to clear insn_extract cache.
6783 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
6784 instead of extract_insn and extract_constrain_insn_cache instead of
6785 extract_insn and constrain_operands.
6786 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
6787 New functions.
6788 (extract_insn): Clear which_alternative.
6789 (constrain_operands): Set which_alternative to -1 when failed.
6790 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
6791 Declare.
6792
4843bda9
MH
67932000-09-11 Matthew Hiller <hiller@redhat.com>
6794
6795 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
6796 on operand 0 to '+'.
6797 (movstricthi): Likewise.
6798
ed5bb68d
MH
67992000-09-12 Michael Hayes <mhayes@cygnus.com>
6800
6801 * loop.h (LOOP_IVS): New macro.
6802 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
6803 (struct loop_ivs): New.
6804 (struct loop_info): Add ivs field.
6805 (reg_iv_type, reg_iv_info): Delete prototype.
6806 (reg_biv_class, loop_iv_list): Likewise.
6807 * loop.c (record_biv, find_life_end): Pass loop argument.
6808 (reg_iv_type): Remove global array and use
6809 field in loop_regs structure within loop_ivs structure.
6810 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
6811 (first_increment_giv, last_increment_giv): Use entry in
6812 loop_ivs structure.
6813 (record_initial): Pass ivs pointer.
6814 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
6815
1ecd860b
MH
68162000-09-12 Michael Hayes <mhayes@cygnus.com>
6817
6818 * loop.h (LOOP_REGS): New macro.
6819 (struct loop_regs): New.
6820 (struct loop_info): Add regs field.
dd745546 6821 * loop.c (set_in_loop): Remove global array and store
1ecd860b
MH
6822 in loop_regs structure as part of loop_info structure.
6823 (n_times_set, may_not_optimize): Likewise.
6824 (reg_single_usage, moved_once): Likewise.
6825 (count_one_set): Add regs argument.
6826 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
6827 (set_pseudo_multiple_uses): Pass regs pointer.
6828
0a5b41f2
MH
68292000-09-12 Michael Hayes <mhayes@cygnus.com>
6830
6831 * unroll.c (iteration_info): Subsume into loop_iterations.
6832 * loop.h (loop_info): New field iv.
6833
5d6a16e2
MH
68342000-09-12 Michael Hayes <mhayes@cygnus.com>
6835
6836 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
6837 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
6838 (flow_loops_update): New prototype.
6839 (flow_loops_find): Add flags to prototype.
6840 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
6841 * flow.c (flow_loop_pre_header_scan): New.
6842 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
6843 (flow_loop_free): Free pre-header root and trace and exit dominators.
6844 (flow_loops_find): New argument flags.
6845 (flow_loops_update): New function.
6846 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
6847
c586192c
MH
68482000-09-12 Michael Hayes <mhayes@cygnus.com>
6849
6850 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
6851 * flow.c (split_block, update_bb_for_insn): New functions.
6852
a5e5cf67
RH
68532000-09-11 Richard Henderson <rth@cygnus.com>
6854
6855 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
6856
655f2eb9
RH
68572000-09-11 Richard Henderson <rth@cygnus.com>
6858
6859 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
6860 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
6861 (ia64_override_options): Prevent optimizing division for both
6862 latency and throughput.
6863 (rtx_needs_barrier): Handle frcpa.
6864 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
6865 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
6866 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
6867 (TARGET_SWITCHES): Add -minline-divide-min-latency and
6868 -minline-divide-max-throughput.
6869 (PREDICATE_CODES): Update.
6870 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
6871 (zero_extendsidi2): Likewise. Fix typo in f case insn.
6872 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
6873 (extendsftf2): Likewise.
6874 (extenddftf2): Likewise.
6875 (fix_trunctfdi2_alts): New.
6876 (fixuns_trunctfdi2_alts): New.
6877 (madd*4): Rename from madd*3.
6878 (divsi3, modsi3, udivsi3, umodsi3): New.
6879 (divsi3_internal): New.
6880 (divdi3, moddi3, udivdi3, umoddi3): New.
6881 (divdi3_internal_lat, divdi3_internal_thr): New.
6882 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
6883 (recip_approx): New.
6884
b5d7770c
AO
68852000-09-11 Alexandre Oliva <aoliva@redhat.com>
6886
6887 * print-rtl.c (debug_call_placeholder_verbose): New variable.
6888 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
6889 set.
6890 * integrate.c (copy_rtx_and_substitute): Don't share
6891 LEAF_REG_REMAPpable registers with the inlined function. Don't
6892 share the function value with calling sequences.
6893
6ff85fd8
JJ
68942000-09-11 Jakub Jelinek <jakub@redhat.com>
6895
2a1da89b
JJ
6896 * c-decl.c (do_case): Fix a typo.
6897
6ff85fd8
JJ
6898 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
6899 to a if the comparison is floating mode and not -ffast-math.
6900 * simplify-rtx.c (simplify_ternary_operation): Likewise.
6901
4102c782
R
6902Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
6903
6904 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
6905 gen_ic_invalidate_line.
6906
52a21fc6
PB
69072000-09-11 Philip Blundell <pb@futuretv.com>
6908
6909 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
6910
669ed2b1
UD
6911Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
6912
6913 * install.texi (LANGUAGES): Update to include new languages.
6914 * INSTALL: Rebuilt.
6915
50936d27
DD
69162000-09-11 DJ Delorie <dj@redhat.com>
6917
6918 * gcc.c (main): Don't warn about unused -B prefixes
6919 (unused_prefix_warnings): remove
6920
00174bdf
KH
69212000-09-11 Kazu Hirata <kazu@hxi.com>
6922
f5d927c0
KH
6923 * final.c: Fix formatting.
6924
00174bdf
KH
6925 * integrate.c: Fix formatting.
6926
b14066a9
GK
69272000-09-11 Geoff Keating <geoffk@cygnus.com>
6928
6929 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
6930
e695931e
BS
69312000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
6932
6933 * reload.c (regno_clobbered_p): Fix thinko in previous change.
6934
456aadaa
SC
69352000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6936
6937 * gcc.1: Document 68hc11 specific options.
6938
9cb8fcaf
GK
69392000-09-10 Geoff Keating <geoffk@cygnus.com>
6940
e0f7170a
GK
6941 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
6942 (TARGET_LONG_DOUBLE_128): Define.
6943 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
6944 (LONG_DOUBLE_TYPE_SIZE): Redefine.
6945 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
6946 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
6947 of __LONG_DOUBLE_128__.
6948 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
6949 passed.
6950 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
6951 (CPP_SYSV_DEFAULT_SPEC): Define.
6952 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
6953 (INIT_TARGET_OPTABS): Define.
6954
9cb8fcaf
GK
6955 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
6956 (RS6000_UITRUNC): Likewise.
6957 (INIT_TARGET_OPTABS): New macro.
6958 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
6959 (trunc_defined): Delete.
6960 (output_prolog): Don't output .extern definitions for fp->int
6961 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
6962 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
6963 (trunc_defined): Delete.
6964 (RS6000_ITRUNC): Moved to aix.h.
6965 (RS6000_UITRUNC): Likewise.
6966 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
6967 only emit a libcall.
6968 (fixuns_truncdfsi2): Delete.
6969 (trunc_call): Delete.
6970 (trunc_call_rtl): Delete.
6971
8f820299
ZW
69722000-09-10 Zack Weinberg <zack@wolery.cumb.org>
6973
6974 * varasm.c (make_decl_rtl): Restore leading star on
dd745546 6975 DECL_ASSEMBLER_NAME set for decls with an asmspec.
8f820299 6976
4337bc93
ZW
69772000-09-10 Zack Weinberg <zack@wolery.cumb.org>
6978
6979 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
6980 won't give a spurious error for '#pragma pack()'. Simplify
6981 control flow for readability. 'reset' action is not necessary.
6982
d8ea8f28
ZW
69832000-09-10 Zack Weinberg <zack@wolery.cumb.org>
6984
6985 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
6986 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
6987 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
6988 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
6989
6990 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
6991 profile.c, sdbout.c, tradcif.y, tree.c:
6992 Include defaults.h if not already included.
6993 Don't define the above macros.
6994
6995 * Makefile.in: Update dependencies.
6996
56cb9733
MM
69972000-09-10 Mark Mitchell <mark@codesourcery.com>
6998
6999 * c-common.h (add_stmt): Change prototype.
7000 (RECHAIN_STMTS): New macro.
7001 (CASE_LABEL_DECL): Likewise.
7002 (genrtl_case_label): Change prototype.
7003 (c_expand_start_case): Remove prototype.
7004 (build_case_label): Change prototype.
7005 (decl_constant_value): Declare.
7006 * c-common.c (check_case_value): Handle C++'s extensions to C
7007 semantics.
7008 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
d8ea8f28 7009 field.
56cb9733
MM
7010 * c-parse.in (stmt): Adjust handling of return statements and case
7011 laels.
7012 * c-semantics.c (add_stmt): Return the new statement.
7013 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
7014 returned expression. Directly generate RTL, rather than calling
7015 c_expand_return.
7016 (genrtl_switch_stmt): Don't call c_expand_start_case.
7017 (build_case_label): Take the LABEL_DECL as input, too.
7018 (genrtl_case_label): Just call add_case_node.
7019 (expand_stmt): Adjust calls to genrtl_return_stmt and
7020 genrtl_case_label.
7021 * c-tree.h (c_expand_start_case): Declare.
7022 * c-typeck.c (decl_constant_value): Give it external linkage.
7023 (c_expand_return): Don't call expand_return or expand_null_return;
7024 use genrtl_return_stmt instead.
7025 * stmt.c (struct nesting): Remove num_ranges field.
7026 (add_case_node): Give it external linkage.
7027 (expand_start_case): Don't set num_ranges.
7028 (expand_start_case_dummy): Don't clear it.
7029 (pushcase): Rely on add_case_node to handle `default' labels.
7030 (add_case_node): Handle `default' labels.
7031 * tree.c (tree_int_cst_compare): New function.
7032 * tree.h (tree_int_cst_compare): Declare.
7033 (add_case_node): Likewise.
7034
aac02f4e
RH
70352000-09-10 Richard Henderson <rth@cygnus.com>
7036
7037 * c-parse.in: Revert last change.
7038 (init_reswords): Do not enter disabled keywords into the ridpointers
7039 table, modulo objc weirdness.
7040 (_yylex): Return the canonical spelling for a keyword.
7041
75d8aea7
PB
70422000-09-10 Philip Blundell <philb@gnu.org>
7043
7044 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
7045 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
7046
d982e46e
JW
7047Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
7048
7049 * alias.c (find_base_term): Handle ADDRESSOF.
7050 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
7051
212d447c
DC
70522000-09-10 Denis Chertykov <denisc@overta.ru>
7053
7054 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
7055 outputting templates with many lines.
7056
a746dbf5
SC
70572000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7058
7059 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
7060 to decide whether 64-bit support must be generated.
7061
1d0f6d89
RH
70622000-09-10 Richard Henderson <rth@cygnus.com>
7063
7064 * c-parse.in (asm patterns): Fix volatile check.
7065
e1aa5140
KG
70662000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7067
7068 * cppmacro.c (check_trad_stringification): New function.
7069 (save_expansion): If -Wtraditional, warn about stringification of
7070 macro arguments.
7071
afa1738b
MH
70722000-09-11 Michael Hayes <mhayes@cygnus.com>
7073
7074 * loop.h (struct loop_mem_info): Move from loop.c
7075 (struct loop_info): Add fields store_mems, mems, mems_idx,
7076 mems_allocated, unknown_address_altered,
7077 unknown_constant_address_altered, num_mem_sets, and
7078 first_loop_store_insn.
7079
7080 * loop.c (loop_store_mems): Replace with field in loop_info struct.
7081 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
7082 (unknown_address_altered, unknown_constant_address_altered): Likewise.
7083 (num_mem_sets): Likewise.
dd745546 7084 (replace_loop_mems, replace_loop_regs): New.
afa1738b
MH
7085 (struct loop_replace_args): New.
7086 (load_mems): Use replace_loop_mems.
7087 (try_copy_prop): Use replace_loop_regs.
7088 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
7089
63883fc3
SC
70902000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7091
7092 * configure.in: Recognize m6811-elf and m6812-elf.
7093 * configure: Regenerate.
7094
808788fe
GK
70952000-09-09 Geoff Keating <geoffk@cygnus.com>
7096
7097 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
7098 to operand_subword.
7099
02055ad6
MH
71002000-09-10 Michael Hayes <mhayes@cygnus.com>
7101
7102 * loop.c (struct movables): New.
7103 (num_movables): Move into struct movables.
7104 (the_movables): Change type to struct movables.
7105 (ignore_some_movables): Change struct movable arg to struct movables.
dd745546 7106 (force_movables, combine_movables, regs_match_p): Likewise.
02055ad6
MH
7107 (rtx_equal_for_loop_p, move_movables): Likewise.
7108 (scan_loop): Change movables to be of type struct movables.
7109 Replace last_movable with field in movables structure.
7110
ae54392b
ZW
71112000-09-08 Zack Weinberg <zack@wolery.cumb.org>
7112
7113 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
7114 (init_pragma): Avoid warning if pfile happens to be unused.
7115 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
7116 define init_pragma to nothing. Always prototype
7117 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
7118
7119 * c-lex.c (process_directive): Always call dispatch_pragma.
7120 Initialize entering_c_header to 0.
7121
385c9217
SC
71222000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7123
7124 * config/m68hc11/m68hc11.md: New file, machine description for
7125 68HC11 & 68HC12.
7126 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
7127 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
7128 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
7129 * config/m68hc11/m68hc11-protos.h: New file.
7130 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
7131 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
7132 * config/m68hc11/xm-m68hc11.h: New file, target defs.
7133 * config/m68hc11/larith.asm: New file, libgcc routines.
7134
dfaf3cdb
SC
71352000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7136
7137 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
7138 (FPBIT_FUNCS): Add _usi_to_sf.
7139 * config/fp-bit.c (usi_to_float): New function.
7140 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
7141 (usi_to_float): Add appropriate #define.
7142
915119a5
BS
71432000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
7144
7145 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
7146 new functions.
7147 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
7148 * i386.md (attr "type"): Add sse and mmx types.
7149 (attr "memory"): Handle them without a crash.
7150 (movsi_1, movdi_2): Allow MMX regs.
7151 (movdi splits): Don't split moves involving MMX regs.
7152 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
7153 (movv4sf_internal, movv4si_internal, movv8qi_internal,
7154 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
7155 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
7156 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
7157 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
7158 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
7159 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
7160 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
7161 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
dd745546
AJ
7162 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
7163 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
915119a5
BS
7164 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
7165 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
7166 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
7167 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
7168 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
7169 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
7170 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
7171 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
7172 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
7173 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
7174 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
7175 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
7176 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
7177 mmx_clrdi): New patterns.
7178
8e49e00a
RE
71792000-09-08 Richard Earnshaw <rearnsha@arm.com>
7180
7181 * arm.c: Don't include tm.h directly.
7182
bd5621a3
JH
7183Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
7184
7185 * recog.c (validate_replace_rtx_1): Fix confusion about equality
7186 testing; simplify subregs of constants and nested subregs.
e65d02cf 7187
6b3783de
AO
71882000-09-08 Alexandre Oliva <aoliva@redhat.com>
7189
7190 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
7191
82be40f7
BS
71922000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
7193
7194 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
7195 VEC_CONCAT.
9af354b7
BS
7196 * rtl.texi (description of USE): Add note about possible pitfalls
7197 with this rtx.
ce701d1b
BS
7198 From Richard Henderson:
7199 * reload1.c (choose_reload_regs): Compute need_mode properly.
82be40f7 7200
4287b5f1
RH
72012000-09-07 Richard Henderson <rth@cygnus.com>
7202
7203 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
7204 (__modsi3, __umodsi3): Likewise.
7205 (__udivsi3): Likewise. Normalize the TFmode values.
7206
c5d71f39
GK
72072000-09-07 Geoff Keating <geoffk@cygnus.com>
7208
7209 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
7210 with a prototype.
7211 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
7212 warning.
7213
712646d0
R
7214Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
7215
7216 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
7217 (cmpeqdi_t): Add output pattern.
7218 (cmpeqdi_t+1): Don't split when not optimizing.
7219 Restore proper splitting operation.
7220
30acbc3e
RH
72212000-09-07 Richard Henderson <rth@cygnus.com>
7222
7223 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
7224 do not call dispatch_pragma.
7225
46146529
JW
72262000-09-07 Jim Wilson <wilson@cygnus.com>
7227
7228 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
7229 to CLASS_CANNOT_CHANGE_MODE.
7230 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
7231 mode classes are different.
7232
6db83155
ZW
72332000-09-07 Zack Weinberg <zack@wolery.cumb.org>
7234
7235 * cpplib.h (struct cpp_options): Add user_label_prefix member,
7236 left out of commit which removed cppulp.c.
7237
0d45144b
RH
72382000-09-07 Richard Henderson <rth@cygnus.com>
7239
7240 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
7241 after switch for CASE_DROPS_THROUGH.
7242
e8cb4873
RH
72432000-09-07 Richard Henderson <rth@cygnus.com>
7244
7245 * loop.c (strength_reduce): Call check_ext_dependant_givs.
7246 Properly extend the biv initial value for the giv.
7247 (record_biv): Zero ext_dependant.
7248 (record_giv): New argument ext_val. Update all callers.
7249 (general_induction_var): Likewise.
7250 (consec_sets_giv): Likewise.
7251 (simplify_giv_expr): Likewise. Fill in ext_val if we find
7252 a sign-extend, zero-extend, or truncate.
7253 (combine_givs_p): Make sure modes are compatible.
7254 (check_ext_dependant_givs): New.
7255 (extend_value_for_giv): New.
7256 * loop.h (struct induction): Add ext_dependant.
7257 * unroll.c (iteration_info): Extend the biv initial value for the giv.
7258 (find_splittable_givs): Likewise.
7259 (final_giv_value): Likewise.
7260
8b97c5f8
ZW
72612000-09-07 Zack Weinberg <zack@wolery.cumb.org>
7262
7263 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
7264 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
7265 definitions from cpplib.h.
7266 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
7267 already done it.
7268 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
7269 documentation for REGISTER_TARGET_PRAGMAS.
7270
7271 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
7272 default-pragma callback to implement -Wunknown-pragmas if
7273 USE_CPPLIB.
7274 * c-parse.in: Move all includes to top of file.
7275 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
7276 tm_p.h.
7277 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
7278 warning.
7279 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
7280
7281 * arm.h, arm-protos.h, arm.c,
7282 c4x.h, c4x-protos.h, c4x.c,
7283 h8300.h, h8300-protos.h, h8300.c,
7284 i370.h, i370-protos.h, i370.c,
7285 i960.h, i960-protos.h, i960.c,
d8ea8f28 7286 sh.h, sh-protos.h, sh.c,
8b97c5f8
ZW
7287 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
7288 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
7289
7290 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
7291 multiple include guard.
7292 * i370.md (untyped_call): Use GEN_CALL.
7293 (umodsi3): Remove unused variable.
7294 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
7295 * v850.c (output_move_single, output_move_double): Constify
7296 return value.
7297 (print_operand): Constify a char *.
7298 * v850.h (struct small_memory_info): Constify name member.
7299
1898584f
KH
73002000-09-07 Kazu Hirata <kazu@hxi.com>
7301
7302 * config/h8300.h: Fix comment typos.
7303 * config/h8300/h8300.md: Likewise.
7304 * config/h8300/lib1funcs.asm: Likewise.
7305
771c4df3
NB
7306Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
7307
7308 * Makefile.in: Remove references to cppulp.{c,o}.
7309 * cppinit.c (initialize_builtins, cpp_start_read,
7310 cpp_handle_option): Update to use cpp_options structure.
7311 * cppulp.c: Remove.
7312
2496f0b5
JM
73132000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
7314
7315 * c-common.c (time_char_table): Allow %#b and %#h.
7316
bf6302f0
HB
73172000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7318
7319 * reorg.c (find_end_label): If the basic block reorder pass moves the
7320 return insn to some other place try to locate it again and put our
7321 end_of_function_label there.
7322 * reorg.c (relax_delay_slots): Check if find_end_label created a
7323 new label that invalidates the current optimazation.
7324
4598ffe9
CM
73252000-09-07 Catherine Moore <clm@redhat.com>
7326
e8cb4873
RH
7327 * unroll.c (unroll_loop): Check for unconditional jumps
7328 to loop continuation. Delete if n_iterations is 1.
7329 (ujump_to_loop_cont): New routine.
4598ffe9 7330
ff427764
BS
73312000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
7332
7333 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
7334 MODE_VECTOR_FLOAT.
8441bc30
BS
7335 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
7336 to handle multiword modes correctly. All callers and the declaration
7337 changed.
d8ea8f28 7338
54f7877c
MM
73392000-09-06 Mark Mitchell <mark@codesourcery.com>
7340
7341 * c-common.h (prep_stmt): Declare.
7342 (lang_expand_stmt): Likewise.
7343 * c-decl.c (lang_expand_stmt): Remove.
7344 * c-semantics.c (lang_expand_stmt): Define.
7345 (prep_stmt): New function.
7346 (expand_stmt): Handle common statement types here.
d8ea8f28 7347
93ca1662
NY
73482000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
7349
7350 * configure.in (sh-*-linux*): Added.
7351 * configure: Rebuilt.
7352 * config/sh/t-linux: New file.
7353 * config/sh/sh.h (USERMODE_BIT): Define.
7354 (TARGET_USERMODE): Likewise.
7355 (TARGET_SWITCHES): New switches for the bits above.
7356 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
7357 * config/sh/linux.h: New file.
7358 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
7359 underscore on linux.
7360 (L_sdivsi3, L_udivsi3): Define for linux.
7361 (L_ic_invalidate): Define.
7362 * invoke.texi (SH Options): Document -musermode.
7363
71105114
AO
73642000-09-07 Alexandre Oliva <aoliva@redhat.com>
7365
4979c2a9
AO
7366 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
7367 CSE unless generating PIC.
7368
71105114
AO
7369 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
7370 the PIC register.
7371
d5cfb451
L
73722000-09-06 H.J. Lu (hjl@gnu.org)
7373
7374 * Makefile.in (clean_s1): Depend on stage_b.
7375 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
7376 stage2. They are used for "make compare".
7377
ae499cce
MM
73782000-09-06 Mark Mitchell <mark@codesourcery.com>
7379
7380 Move statement-tree facilities from C++ to C front-end.
7381 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
7382 (void_zero_node): New macro.
7383 (struct stmt_tree_s): New type.
7384 (stmt_tree): New typedef.
7385 (struct language_function): New type.
7386 (last_tree): New macro.
7387 (last_expr_type): Likewise.
7388 (walk_tree_fn): New typedef.
7389 (current_stmt_tree): New function.
7390 (begin_stmt_tree): Likewise.
7391 (add_stmt): Likewise.
7392 (finish_stmt_tree): Likewise.
7393 (statement_code_p): Likewise.
7394 (lang_statement_code_p): New variable.
7395 (walk_stmt_tree): New function.
7396 (STMT_IS_FULL_EXPR_P): New macro.
7397 * c-common.c (lang_statement_code_p): New variable.
7398 (c_common_nodes_and_builtins): Initialize void_zero_node.
7399 (statement_code_p): New function.
7400 (walk_stmt_tree): Likewise.
7401 * c-decl.c (language_function): Rename to ...
7402 (c_language_function): ... this. Include language_function.
7403 (push_c_function_context): Adjust accordingly.
7404 (pop_c_function_context): Likewise.
7405 (mark_c_function_context): Likewise.
7406 (current_stmt_tree): Define.
7407 * c-semantics.c (begin_stmt_tree): New function.
7408 (add_stmt): Likewise.
7409 (prune_unused_decls): Likewise.
7410 (finish_stmt_tree): Likewise.
7411
4f4b88d0
HB
74122000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7413
e8cb4873 7414 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
4f4b88d0 7415
f725a3ec
KH
74162000-09-06 Kazu Hirata <kazu@hxi.com>
7417
7418 * calls.c: Fix formatting.
7419
0806f95f
GS
74202000-09-06 Graham Stott <grahams@cygnus.co.uk>
7421
e8cb4873 7422 * config/i386/i386.h (ADDRESS_COST): Fix typo.
0806f95f 7423
0e5921e8
ZW
74242000-09-06 Zack Weinberg <zack@wolery.cumb.org>
7425
7426 Integrated preprocessor.
7427
7428 * Makefile.in: Remove all references to c-parse.gperf,
7429 c-gperf.h, and c-parse.h. Remove -d from yacc command line
7430 generating c-parse.c. Update dependencies.
7431 * c-parse.gperf, c-gperf.h: Delete.
7432
7433 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
7434 yy_lim, or yy_get_token. Don't define get_directive_line if
7435 USE_CPPLIB.
7436 * c-common.h: Add multiple include guard. Define RID values
7437 for every keyword in C, C++, and Objective C. Put all the
7438 modifiers first.
7439 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
7440 * c-decl.c (c_decode_option): Handle -lang-objc here.
7441 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
7442 (grokdeclarator): Adjust for new RID scheme.
7443 (extract_interface_info): New stub.
7444 * c-lang.c: Don't declare yy_cur or parse_options.
7445 (lang_init_options): Call cpp_init. Don't call
7446 cpp_options_init.
7447 (lang_init): Don't call check_newline if USE_CPPLIB.
7448
7449 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
7450 Elide lots of unnecessary code if USE_CPPLIB. Delete code
7451 rendered unnecessary by new architecture. Move routines not
7452 shared with C++ to c-parse.in. Maintain a local idea of the
7453 line number. Handle C++ as well as C.
7454 [USE_CPPLIB]: Declare and register callbacks for #ident and
7455 for entering/leaving files.
7456 (init_c_lex, c_lex): Are now the entry points to this file.
7457 (check_newline): Break out directive handling to
7458 process_directive.
7459 (read_ucs, is_extended_char, utf8_extend_token): Moved here
7460 from C++ front end.
7461 (readescape, parse_float): Overhaul.
7462 (lex_number, lex_string, lex_charconst): Break out of c_lex
7463 (n'ee yylex).
7464 (get_fileinfo, update_header_times, dump_one_header,
7465 dump_time_statistics): New and/or moved here from C++.
7466 Support per-file data needed by C++ and per-header timing
7467 statistics (C++ only, at the moment).
7468 * c-lex.h: Update prototypes. Add multiple include guard.
7469 * c-tree.h (struct lang_identifier): Add rid_code field.
7470 (C_IS_RESERVED_WORD, C_RID_CODE): New.
7471
7472 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
7473 reinit_parse_for_function and/or position_after_white_space.
7474 (save_filename, save_lineno): Look ahead before saving.
7475 (label -> identifier ':'): Save file and line before shifting ':'.
7476 (reservedwords): No need to call get_identifier.
7477 (init_parse, finish_parse, yyerror, yylex, yyprint,
7478 make_pointer_declarator): Are now here for C/ObjC.
7479 (rid_to_yy): Conversion table from RID constants to Yacc codes.
7480
7481 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
7482 #pragma registry. Provide dummy implementation of that
7483 interface if !USE_CPPLIB.
7484 * c-pragma.h: Update to match.
7485
7486 * flags.h: Add multiple include guard.
7487 (flag_detailed_statistics): Moved here from C++.
7488 * toplev.c: Define flag_detailed_statistics.
7489
7490 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
7491 #if USE_CPPLIB.
7492 * timevar.def (TV_CPP, TV_LEX): New.
7493 * timevar.h: Add multiple include guard.
7494
7495 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
7496 #if USE_CPPLIB.
7497 * objc/objc-act.c: Don't mention yy_cur or parse_options.
7498 Initialize cpplib properly. Force lineno to 0 after first
7499 call to check_newline. Don't handle -lang-objc here.
7500 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
7501
5638268e
DE
75022000-09-06 David Edelsohn <edelsohn@gnu.org>
7503
7504 * rs6000.md: Correct function unit definitions for cr_logical and
7505 mtjmpr.
7506 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
7507 and use portable method for >=0 and floating point >=. Remove
7508 associated matchers.
7509
44835fdd
MM
75102000-09-06 Mark Mitchell <mark@codesourcery.com>
7511
7512 * extend.texi: Mark named return value extension as deprecated.
7513
bab6226b
GK
75142000-09-06 Geoff Keating <geoffk@cygnus.com>
7515
7516 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
7517 the result.
7518
e6513023
GDR
75192000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
7520
7521 * toplev.c (display_help): Fix thinko in documentation.
7522
7523 * diagnostic.h (output_buffer::indent_skip): New fields.
7524 (output_indentation): New macro.
7525
7526 * diagnostic.c (output_indent): New function.
7527 (output_set_prefix, clear_diagnostic_info): Use.
7528 (output_emit_prefix): Predict future indentation.
7529
112c7aea
DD
75302000-09-06 DJ Delorie <dj@redhat.com>
7531
7532 * Makefile.in (stage_*): add more dependencies to ensure parallel
7533 builds build correctly
7534
1bac0fb4
MH
75352000-09-06 Manfred Hollstein <manfredh@redhat.com>
7536
7537 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
7538 not bootstrap-lean_f.
7539
f472a17c
AS
75402000-09-06 Andreas Schwab <schwab@suse.de>
7541
7542 * mklibgcc.in: Emit rule for libgcc-stage-start.
7543 * Makefile.in (stage1-start, stage2-start, stage3-start,
7544 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
7545
630c79be 75462000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
611bbf2a
BS
7547
7548 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
7549 (update_equiv_regs): Likewise, except for the mn10200 kludge.
7550 (combine_regs): Likewise.
7551
630c79be
BS
7552 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
7553 * cse.c: Include "basic-block.h".
7554 (struct table_elt): New field REGCOST.
7555 (CHEAP_REG): Delete macro.
7556 (COST): Return 0 for REGs.
7557 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
7558 (notreg_cost): Return 0 for appropriate SUBREGs.
7559 (COSTS_N_INSNS): Return N * 2.
7560 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
7561 SUBREGs.
7562 (CHEAPER): Use new function preferrable.
7563 (insert): Initialize REGCOST member.
7564 (find_best_addr): Use approx_reg_cost for estimation of register
7565 usage.
7566 (cse_insn): Likewise.
7567 * loop.c (iv_add_mult_cost): New function.
7568 (add_cost, shift_cost, mult_cost): Delete variables.
7569 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
7570 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
7571 Make code that detects autoinc opportunities slightly less optimistic.
7572 (simplify_giv_expr): If expression contains other reg that is also a
7573 giv, only increment benefit if this is the only use of that reg.
7574 (consec_sets_giv): Take that change into account.
7575 (combine_givs): Slightly more verbose output.
7576
7577 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
7578 not the cost of an equivalent shift.
7579 * sh-protos.h (addsubcosts): Declare.
7580 * sh.c (addsubcosts): New function.
7581 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
7582 (RTX_COSTS): Tweak. Use addsubcosts.
7583 (ADDRESS_COST): Return higher cost for reg+reg addressing.
7584
39a10a29
GK
75852000-09-06 Geoff Keating <geoffk@cygnus.com>
7586
7587 * config/rs6000/rs6000.c (validate_condition_mode): New function.
7588 (branch_comparison_operator): Call validate_condition_mode to
7589 abort rather than returning 0.
7590 (branch_positive_comparison_operator): New function.
7591 (scc_comparison_operator): Call validate_condition_mode to abort
7592 rather than returning 0.
7593 (ccr_bit): Call validate_condition_mode. Update for
7594 new branch scheme.
7595 (print_operand): Delete %C modifier. Update %E case
7596 to use EQ bit not SO bit.
7597 (rs6000_reverse_condition): New function.
7598 (rs6000_generate_compare): New function.
7599 (rs6000_emit_sCOND): New function.
7600 (rs6000_emit_cbranch): New function.
7601 (output_cbranch): The length of a long branch insn is
7602 now only 8 bytes. Add validate_condition_mode. Use
7603 rs6000_reverse_condition. Remove cror generation.
bab6226b 7604
39a10a29
GK
7605 * config/rs6000/rs6000.h: Update comments.
7606 (PREDICATE_CODES): Add new predicate. Update codes used
7607 by branch_comparison_operator and scc_comparison_operator.
7608 * config/rs6000/rs6000-protos.h: Add prototypes for
7609 new external functions.
7610 * config/rs6000/rs6000.md: Add new scheduling parameters
7611 for cr_logical instructions. Change length of branch
7612 instructions.
7613 (bCOND patterns): Call rs6000_emit_cbranch.
7614 (sCOND patterns): Call rs6000_emit_sCOND.
7615 (branch patterns): Change lengths to 4.
7616 (cr logical patterns): New.
7617
2a4bbffa
RH
76182000-09-06 Richard Henderson <rth@cygnus.com>
7619
7620 * config/i386/i386.md (call_pop): Fix test for setting
7621 current_function_uses_pic_offset_table.
7622 (call, call_value_pop, call_value): Likewise.
7623
eab828ba
ZW
76242000-09-06 Zack Weinberg <zack@wolery.cumb.org>
7625
7626 * timevar.c (timevar_add): Delete.
7627 (timevar_get): Also count time since the selected timer was
7628 last updated. Do not examine the timevar stack if the
7629 selected timer is standalone.
7630
f1d6a533
DA
76312000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7632
7633 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
7634
53c5b5d7
JM
76352000-09-05 Jason Merrill <jason@redhat.com>
7636
7637 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
7638 for 'extern' arrays.
7639
3392dafc
RH
76402000-09-05 Richard Henderson <rth@cygnus.com>
7641
7642 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
7643 Eliminate final copy from non-trapping case.
7644 (__divdf3, __divsf3): Likewise.
7645
2a7ffc85
RH
76462000-09-05 Richard Henderson <rth@cygnus.com>
7647
7648 * config/ia64/ia64.md (mulhi3): Fix typo last change.
7649 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
7650
204093e6
DT
76512000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
7652
7653 * Makefile.in: Restructure bootstrap stages to allow clean
7654 restart after failure.
7655
514f96e6
RH
76562000-09-05 Richard Henderson <rth@cygnus.com>
7657
7658 * config/ia64.md (movsi and movdi patterns): Allow moves from
7659 8-bit constants to AR registers.
7660
cf1f6ae3
RH
76612000-09-05 Richard Henderson <rth@cygnus.com>
7662
7663 * config/ia64/ia64.md (mulhi3): New.
7664
d8d7a286
RH
76652000-09-05 Richard Henderson <rth@cygnus.com>
7666
7667 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
7668 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
7669 Optimization Guide, minimum latency alternative.
7670 (__moddi3, __udivdi3, __umoddi3): Likewise.
7671 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
7672
a6efbece
BK
76732000-09-05 Bruce Korb <bkorb@gnu.org>
7674
0e5921e8
ZW
7675 * fixinc/fixincl.c (load_file): always read header files
7676 with sizes that are a multiple of the page size.
dc46505a 7677 & use libiberty's getpagesize for determining that.
a6efbece 7678
c0712acb
AO
76792000-09-05 Alexandre Oliva <aoliva@redhat.com>
7680
7681 * gcse.c (hash_string_1): Add prototype.
7682 * cse.c (canon_hash_string): Likewise.
7683
af7f0fde
CN
76842000-09-04 Craig Newell <CraigN@ieee.org>
7685
7686 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
7687
4993ddc1
AS
76882000-09-04 Andreas Schwab <schwab@suse.de>
7689
7690 * Makefile.in (STAGESTUFF): Remove libgcc.
7691 (stage1-start, stage2-start, stage3-start): Copy the contents of
7692 the libgcc directory explicitly.
7693 (mostlyclean): Clean libgcc.
7694
5e640c56
AH
76952000-09-04 Andrew Haley <aph@redhat.com>
7696
7697 * dwarf2out.c: (stack_adjust_offset): New prototype.
7698
25ffb1f6
JH
7699Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
7700
7701 * combine.c (make_extraction): Fix rtx_cost comparison to
7702 match the comment.
7703
7704Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
7705
0e5921e8 7706 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
25ffb1f6
JH
7707 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
7708 Add '*' to insn pattern name.
7709
29844fa7
JJ
77102000-09-04 Jakub Jelinek <jakub@redhat.com>
7711
7712 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
7713 use posn - 1 to index into tokens array.
7714 (maybe_paste_with_next): Adjust caller.
7715
0d86f538
GK
77162000-09-03 Geoff Keating <geoffk@cygnus.com>
7717
bff46771
GK
7718 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
7719
0d86f538
GK
7720 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
7721 (REGNO_REG_CLASS): Use symbolic register
7722 names.
7723
4e67550b
RE
77242000-09-03 Richard Earnshaw <rearnsha@arm.com>
7725
0e5921e8 7726 * arm.c (final_prescan_insn): If the form of a jump insn isn't
4e67550b
RE
7727 recognized, don't try to conditionally execute it.
7728
150f4100
DC
7729Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
7730
7731 * config/avr/avr.md ("*tablejump_lib"): New pattern.
7732 (call_value_insn): Right length claculation.
7733 (call_insn): Likewise.
7734
5fecfd8d
MM
77352000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
7736
7737 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
7738 gas_output_limited_string, gas_output_ascii, output_movqi,
7739 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
7740 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
7741 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
7742 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
7743 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
7744 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
7745 Add "const" as needed to remove warnings.
7746
7747 * config/avr/avr.c (avr_override_options, avr_init_once,
7748 function_prologue, function_epilogue, frame_pointer_required_p,
7749 class_likely_spilled_p, order_regs_for_local_alloc,
7750 avr_address_cost, avr_ret_register): Use K&R style arguments.
7751 (initial_elimination_offset, gas_output_limited_string):
7752 Remove ATTRIBUTE_UNUSED from the used arguments.
7753 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
7754 Use local variables src, dest, base to access operands[].
7755 Rename reg_dest to reg_src if that's what it is.
7756 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
7757 constants to LD_REGS if reg_was_0.
7758 (output_reload_insisf): Change arg 3 to insn length and set it.
7759 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
7760 access to 16-bit I/O register pairs.
7761 (avr_address_cost): Lower cost for the above case.
7762 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
7763 may be clobbered, also for LD_REGS.
7764 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
7765 with a CONST_INT.
7766
7767 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
7768
7769 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
7770 macro to test_hard_reg_class function.
7771 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
7772 for loading immediate constants to LD_REGS.
7773 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
7774
7775
bad3869a
MM
7776Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
7777
7778 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
7779 * config/avr/libgcc.S: Lost part of the previous patch.
7780
802a8181
DA
77812000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7782
7783 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
7784 object before calling pthread_mutex_init.
7785
1a66cd67
AO
77862000-09-02 Alexandre Oliva <aoliva@redhat.com>
7787
7788 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
7789 config/sh/crtn.asm: New files.
7790 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
7791 (crt1.o, crti.o, crtn.o): New targets.
7792 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
7793 sh/t-elf.
7794 * configure: Rebuilt.
7795 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
7796 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
7797 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
7798 Undefine for config/elfos.h to redefine.
7799 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
7800
78012000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
7802
7803 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
7804 legitimize_pic_address, output_pic_addr_const): Declare.
7805 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
7806 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
7807 (TARGET_SWITCHES): New switch -mprefergot.
7808 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
7809 (PIC_OFFSET_TABLE_REGNUM): Define.
7810 (GOT_SYMBOL_TABLE): Likewise.
7811 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
7812 (ENCODE_SECTION_INFO): Define.
7813 (FINALIZE_PIC): New macros.
7814 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
7815 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
7816 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
7817 (prepare_move_operands): Call emit_pic_move or
7818 emit_pic_const_move if appropriate.
7819 (output_far_jump): For PIC, use braf and output long offset.
0e5921e8 7820 (machine_dependent_reorg):
1a66cd67
AO
7821 (sh_expand_prologue): Save and initialize the PIC register.
7822 (sh_expand_epilogue): Restore it.
7823 (initial_elimination_offset): Account for it.
7824 (nonpic_symbol_mentioned_p): New function.
7825 (legitimize_pic_address): Likewise.
7826 (output_pic_addr_const): Likewise.
7827 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
7828 (call, call_value): Use them.
7829 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
7830 symPLT_label2reg): New expands.
7831 * invoke.texi (SH Options): Document -mprefergot.
7832
6462bb43
AO
78332000-09-01 Alexandre Oliva <aoliva@redhat.com>
7834
7835 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
7836 * gcse.c (hash_string_1): New function.
7837 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
7838 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
7839 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
7840 (canon_hash_string): New function.
7841 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
7842 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
7843 (fold_rtx): Use ASM_OPERANDS accessor macros.
7844 * emit-rtl.c (copy_insn_1): Likewise.
7845 * integrate.c (copy_rtx_and_substitute): Likewise.
7846 * stmt.c (expand_asm_operands): Likewise. Give an
7847 ASM_OPERANDS rtx the mode of the output reg being set from it.
7848
1b4f90cd
FF
78492000-09-01 Fred Fish <fnf@be.com>
7850
7851 * fix-header.c (write_rbrac): Add putc and getc to list of
7852 functions to protect against prior definition as a macro.
0e5921e8 7853
3c786c69
JM
78542000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
7855
7856 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
7857 (c_size_type_node): Define.
7858 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
7859 * c-common.c (enum format_lengths, enum format_std_version,
7860 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
7861 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
7862 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
7863 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
7864 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
7865 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
7866 format_types): Define.
7867 (format_char_info, print_char_table, scan_char_table,
7868 time_char_table): Rearrange for new organization of information
7869 about format length modifiers and standard versions.
7870 (T_ST): Redefine to use c_size_type_node.
7871 (check_format_info): Obtain information about length modifiers and
7872 standard versions from tables. Adjust warning message wordings.
7873 Use the name from the user's program for `ll' and `hh' length
7874 modifiers in warning messages. Use more informative names for
7875 wanted types where available (for wchar_t, wint_t, size_t, signed
7876 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
7877
8a09bb27
JW
78782000-09-01 Jim Wilson <wilson@cygnus.com>
7879
ca3920ad
JW
7880 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
7881 * combine.c (distribute_notes): Handle REG_NORETURN.
7882 * rtl.c (reg_note_name): Add REG_NORETURN.
7883 * rtl.h (enum reg_note): Likewise.
7884
7885 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
7886 ia64_file_start.
7887 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
7888 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
7889 (emit_predicate_relation_info): Handle conditional calls with
7890 REG_NORETURN.
7891 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
7892 instead of ia64_file_start.
7893 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
7894 * config/ia64/ia64.md (safe_across_calls_all,
7895 save_across_calls_normal): New patterns.
7896
8a09bb27
JW
7897 * loop.c (check_final_value): Check for biv use before checking for
7898 giv use. Check for both biv and giv uses. Always set last_giv_use
7899 if there is a giv use.
7900
11a13704
RH
79012000-09-01 Richard Henderson <rth@cygnus.com>
7902
7903 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
7904 (madddi3): Likewise.
7905 (maddsi3): New.
7906
6324d2bb
RK
7907Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7908
fcf1b822
RK
7909 * expr.c (clear_storage): Don't use emit_move_insn unless
7910 either BLKmode or proper size.
7911 (store_constructor): Don't call clear_storage if REG of wrong size.
7912
6324d2bb
RK
7913 * flow.c (init_propagate_block_info): Don't mark frame dead at end
7914 of function if returns wiht stack pointer depressed.
7915
1ba5ae8f
AH
79162000-09-01 Andrew Haley <aph@redhat.com>
7917
0e5921e8
ZW
7918 * dwarf2out.c (stack_adjust_offset): New function.
7919 (dwarf2out_stack_adjust): Break out stack adjust logic into
7920 new stack_adjust_offset function. Look inside parallels and
7921 sequences for stack adjustments.
1ba5ae8f 7922
893f3d5b
JL
79232000-08-31 Jeff Law <law@cygnus.com>
7924
94c51f7a
JL
7925 * arm.md: Use no_new_pseudos to determine when it is safe
7926 to create new pseudo registers.
7927
0e5921e8
ZW
7928 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
7929 when we can safely allocate new registers.
893f3d5b 7930
1b3d8f8a
GK
79312000-08-31 Geoffrey Keating <geoffk@cygnus.com>
7932
7933 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
7934 so that CONCATs are not generated for ASMs.
7935 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
7936 not generating_concat_p.
7937 * function.c (pop_function_context_from): Reset
7938 generating_concat_p.
7939 (prepare_function_start): Likewise.
7940 * rtl.c (generating_concat_p): Define.
7941 * rtl.h (generating_concat_p): Declare.
7942 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
7943
4e8bd75f 79442000-08-22 Philipp Thomas <pthomas@suse.de>
0e5921e8 7945 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
4e8bd75f
PT
7946
7947 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
7948 for translation.
7949
b145ee27
GM
79502000-08-30 Greg McGary <greg@mcgary.org>
7951
7952 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
7953 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
7954 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
7955
2afaa41c
GM
79562000-08-30 Greg McGary <greg@mcgary.org>
7957
7958 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
7959 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
7960 (TREE_INT_CST): New macro.
7961 * varasm.c (const_hash, compare_constant_1, record_constant_1):
7962 Use new macro TREE_INT_CST.
7963
1d92b3e1
NB
7964Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
7965
7966 * contrib.texi: Add self.
7967
b23ca156
AO
79682000-08-30 Alexandre Oliva <aoliva@redhat.com>
7969
7970 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
7971 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
7972 and labels.
7973
aef9fbbf
DA
79742000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7975
7976 * fixinc/gnu-regex.c: Don't define `const'.
7977
85f3d674
RK
7978Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7979
7980 * expr.c (store_constructor): Allow variable bounds of array type.
7981 (expand_expr): Don't blow up if type is ERROR_MARK.
7982 * varasm.c (output_constructor): Don't access lower bound of array
7983 type unless need it if index is supplied (so it can be a variable
7984 if no index is supplied).
7985 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
7986 Other minor cleanups.
7987
5b67ad6f
DA
79882000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7989
7990 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
7991 for compilations in stage 1 and subsequent stages, respectively.
7992 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
7993 * configure: Rebuilt.
7994 * x-vax, x-vax-gcc: Deleted.
7995
63ad61ed
ZW
79962000-08-29 Zack Weinberg <zack@wolery.cumb.org>
7997
7998 * c-common.c (declare_function_name): Use func_id_node,
7999 function_id_node, and pretty_function_id_node. Do not make
0e5921e8 8000 __func__ visible at file scope.
63ad61ed
ZW
8001 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
8002 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
8003 (function_id_node, pretty_function_id_node, func_id_node): New
8004 macros.
8005 * c-decl.c (init_decl_processing): Initialize function_id_node,
8006 pretty_function_id_node, and func_id_node.
8007 (c_make_fname_decl): Correct comment.
8008
8009 * tree.h (struct tree_identifier): Constify pointer member.
8010
8011 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
8012 * c-pragma.h (struct weak_syms): Constify name and value members.
0e5921e8 8013 (add_weak): Constify arguments.
63ad61ed
ZW
8014
8015 * calls.c (special_function_p): Constify a char *.
8016 (expand_call): Remove variable which is initialized and then
8017 never used.
8018 * dependence.c (struct def_use, struct induction, struct subscript):
8019 Constify 'variable' member.
8020 (get_low_bound, have_induction_variable): Constify char * argument.
8021 (find_induction_variable): Add braces to avoid dangling else.
8022 (classify_dependence): Constify char * arrays.
8023 * profile.c (output_func_start_profiler): Constify a char *.
8024 * stor-layout.c (finalize_record_size): Constify a char *.
8025 * tree.c (is_attribute_p): Constify a char *.
8026 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
8027
8028 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
8029 for comprehensibility. Do not call get_identifier if we did
8030 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
8031 create temporary string constants, not ggc_alloc_string. No
8032 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
8033 char * to hold IDENTIFIER_POINTERs.
8034
cee58bc0
RH
80352000-08-29 Richard Henderson <rth@cygnus.com>
8036
8037 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
8038 for the inputs.
8039
94aaab7a
RH
80402000-08-29 Richard Henderson <rth@cygnus.com>
8041
8042 * reload.c (push_secondary_reload): Allow class == reload_class
8043 if we're using a reload_in/out pattern.
8044
60a3c181
RH
8045 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
8046 the half that does not conflict with the reload register.
8047 (reload_outti): Likewise.
8048
9218435e
KH
80492000-08-29 Kazu Hirata <kazu@hxi.com>
8050
4381f7c2
KH
8051 * reload.c: Fix formatting.
8052
8053 * stmt.c: Fix formatting.
8054
9218435e
KH
8055 * gcc.c: Fix formatting.
8056
fba0bfd4
ZW
80572000-08-29 Zack Weinberg <zack@wolery.cumb.org>
8058
8059 * flags.h (time_report, mem_report): New global flags.
8060 * toplev.c: Define time_report and mem_report.
8061 (f_options): Add -ftime-report and -fmem-report.
8062 (compile_file): Turn on time_report if quiet_flag is off.
8063 Call ggc_print_statistics at very end if mem_report is on.
8064 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
8065
8066 * ggc-common.c (ggc_print_statistics): Rename to
8067 ggc_print_common_statistics; all callers changed. Scale
8068 quantities above 10K to kilobytes and above 10M to megabytes.
8069 * ggc-page.c (ggc_page_print_statistics): Rename to
8070 ggc_print_statistics. Report memory consumed by internal data
8071 structures for each allocation bucket. Scale quantities above
8072 10K to kilobytes and above 10M to megabytes.
8073 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
8074 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
8075 Define tally_leaves always.
8076 (ggc_print_statistics): New function.
8077 * ggc.h: Adjust for renamed functions.
8078
612105a6
DC
8079Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
8080
8081 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
8082 output_movsisf instead of which_alternative.
8083
8084 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
8085
6bec29c9
DC
8086Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
8087
8088 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
8089 (avr_progmem_p): New prototype.
8090 (output_movsisf): Prototype declaration changed.
8091 (output_movqi): New prototype.
8092 (output_movhi): New prototype.
8093 (call_insn_operand): Likewise.
0e5921e8 8094 (final_prescan_insn): Likewise.
6bec29c9
DC
8095 (avr_simplify_comparision_p): Likewise.
8096 (avr_normalize_condition): Likewise.
8097 (compare_eq_p): Likewise.
8098 (out_shift_with_cnt): Likewise.
8099 (const_int_pow2_p): Likewise.
8100 (output_reload_inhi): Prototype declaration changed.
8101
8102 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
8103 (ldi_reg_rtx): New. rtx for r31.
8104 (avr_init_stack): Initialize as "__stack".
8105 (function_prologue): Use it.
8106 Replace all TARGET_ENHANCED with AVR_ENHANCED.
8107 (avr_mcu_name): Initialize as "avr2".
8108 (avr_enhanced_p, avr_mega_p): New variables.
8109 (mcu_types, avr_override_options): Handle all known MCU types.
8110 Also handle avr1 (only preprocess, assemble and link).
8111 (print_operand): Using of `%K' in output template removed.
8112 (out_movqi_r_mr): Optimized.
8113 (out_movhi_r_mr): Likewise.
8114 (output_movqi): New function.
8115 (output_movhi): Likewise.
8116 (out_movsi_r_mr): Optimized.
8117 (output_movsisf): Compute insn length for `adjust_insn_length'
8118 (out_movqi_mr_r): Optimized.
8119 (out_movhi_mr_r): Optimized.
8120 (adjust_insn_length): Use output_movsisf, output_movqi,
8121 output_movhi for insn length adjusting.
8122 (reg_unused_after): Use dead_or_set_p.
8123 (preferred_reload_class): Now havn't any restriction.
8124 (reg_was_0): New function.
8125 (io_address_p): Likewise.
8126 (const_int_pow2_p): Likewise.
8127 (output_reload_inhi): Likewise.
8128 (output_reload_insisf): Likewise.
8129
8130 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
8131 (LIB_SPEC): Use -lc for all supported devices.
8132 (LIBGCC_SPEC): Use -lgcc for all supported devices.
8133 (AVR_MEGA): Define as avr_mega_p.
8134 (AVR_ENHANCED): New, define as avr_enhanced_p.
8135 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
8136 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
8137 (CRT_BINUTILS_SPECS): Handle all known MCU types.
8138 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
8139 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
8140 (ASM_SPEC): Pass -mmcu=... to the assembler.
8141 Change all -DAVR_* to -D__AVR_*__.
8142 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
8143 Rename library functions to start with two underscores.
8144 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
8145 alignment.
8146 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
8147 (SUPPORTS_WEAK): Likewise.
8148 (LDI_REG_REGNO): New. Register r31 will be used as temporary
8149 register for loading constants to r0-r14.
8150
8151 * config/avr/avr.md: Replace all TARGET_ENHANCED with
8152 AVR_ENHANCED.
8153 (*mov_r_sp): Removed. Handled by output_movhi.
8154 (*mov_sp_r): Likewise.
8155 (*mov_sp_r_no_interrupts): Likewise
8156 (*mov_sp_r_tiny): Likewise.
8157 (*movqi): Use output_movqi.
8158 (*reload_inqi): New.
8159 (*movhi): Use output_movhi.
8160 (*reload_inhi): New.
8161 (*negsi2): Optimized.
8162 (*negsf2): Likewise.
8163 Added peepholes (define_peephole2) for loading constants to r0-r14
8164 and for using `cpse' command.
8165
8166 * config/avr/libgcc.S: Rename library functions to start with two
8167 underscores.
8168 Add support for enhanced core.
8169 (_moqhi3): Fix typo, now _modqi3.
8170 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
8171 (__prologue_saves__): Remove test for stack adjust by 0.
8172 (__tablejump__): New.
8173
8174 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
8175 Add multilib support.
8176
20bd7bfa
JW
8177Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
8178
8179 * loop.c (prescan_loop): Don't check unknown_address_altered
8180 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
8181 to loop_store_mems as necessary.
8182 (loop_invariant_p): Don't check unknown_address_altered
8183 or unknown_constant_address_altered.
8184
76f941a8
DA
81852000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8186
8187 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
8188
2c8f0515
ZW
81892000-08-29 Zack Weinberg <zack@wolery.cumb.org>
8190
8191 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
8192 print just the filename.
8193 * cpplex.c (_cpp_run_directive): Add additional argument, the
8194 name to give the synthetic buffer. This defaults to
8195 translated "<command line>".
8196 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
8197 Adjust to match.
8198 (_cpp_define_builtin): New function.
8199 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
8200 * cpphash.h: Update prototypes.
8201
8202 * tradcpp.c (main): Process -D and -U simultaneously, in the
8203 order they appeared on the command line.
8204
6ad79f1b
KG
82052000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8206
8207 * c-decl.c (define_label): Call warning_with_file_and_line and
8208 error_with_file_and_line instead of plain warning or error.
8209
8210 * c-parse.in (label): Use save_filename/save_lineno to ensure
8211 correct values for calls to define_label.
8212
4361b41d
MM
82132000-08-29 Mark Mitchell <mark@codesourcery.com>
8214
8215 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
8216 away.
8217 * expr.c (expand_expr, case TARGET_EXPR): Don't call
8218 mark_addressable.
8219 * tree.h (get_file_function_name): Remove two duplicate
8220 declarations.
8221
abf9af02
KH
82222000-08-28 Kazu Hirata <kazu@hxi.com>
8223
dc478a5d
KH
8224 * tree.c: Fix formatting.
8225
abf9af02
KH
8226 * xcoffout.c: Fix formatting.
8227
5f632b5e
JM
82282000-08-28 Jason Merrill <jason@redhat.com>
8229
8230 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
8231
82322000-08-28 Daniel Berlin <dberlin@redhat.com>
8233
8234 * dwarf2out.c (dwarf2out_finish): Don't bother calling
8235 break_out_includes if it won't do anything.
8236
38323cc3
RH
82372000-08-28 Richard Henderson <rth@cygnus.com>
8238
8239 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
8240 (find_reloads): Likewise.
8241 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
8242 (reload_inhi): Likewise.
8243
e1ff012c
RH
82442000-08-28 Richard Henderson <rth@cygnus.com>
8245
8246 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
8247 (call_insn_operand): Don't expect a surrounding mem.
8248 (constant_call_address_operand): Likewise.
8249 * config/i386/i386.h (PREDICATE_CODES): Update.
8250 * config/i386/i386.md (call patterns): Move the match_operand
8251 for the call destination inside the mem.
8252
c2cba7a9
RH
82532000-08-28 Richard Henderson <rth@cygnus.com>
8254
8255 * local-alloc.c (requires_inout): Don't use reserved range for
8256 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
8257 * recog.c (asm_operand_ok): Likewise.
8258 (preprocess_constraints, constrain_operands): Likewise.
8259 * regclass.c (record_reg_classes): Likewise.
8260 * reload.c (find_reloads): Likewise.
8261 * reload1.c (maybe_fix_stack_asms): Likewise.
8262 (reload_cse_simplify_operands): Likewise.
8263 * stmt.c (expand_asm_operands): Likewise.
8264
8265 * md.texi: Update constraints documentation.
8266 * tm.texi (EXTRA_CONSTRAINT): Update.
8267
5f632b5e
JM
82682000-08-28 Daniel Berlin <dberlin@redhat.com>
8269
8270 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
8271 (print_die): If we don't know the offset of the
8272 target die, try the symbol. Add a trailing newline.
8273 (reverse_all_dies): New fn.
8274 (dwarf2out_finish): Call it.
8275 (break_out_includes): Reorganize for clarity.
8276 (add_sibling_attributes): Don't call reverse_die_lists.
8277 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
8278 primary CU, too.
8279 * flags.h: Add flag_eliminate_dwarf2_dups.
8280 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
8281
5de0e8d4
JM
82822000-08-28 Jason Merrill <jason@redhat.com>
8283
5f632b5e
JM
8284 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
8285 * dwarf2out.c: #include "md5.h".
8286 (DIE_LABEL_PREFIX): New macro.
8287 (dw_val_struct): Add 'external' flag to val_die_ref.
8288 (add_AT_die_ref, AT_ref): Adjust.
8289 (AT_ref_external, set_AT_ref_external): New fns.
8290 (build_abbrev_table): Call set_AT_ref_external.
8291 (value_format): Call AT_ref_external.
8292 (die_struct): Add die_symbol field.
8293 (new_die): Clear it.
8294 (dwarf_tag_name): Handle BINCL/EINCL.
8295 (dwarf2out_start_source_file): Add BINCL DIE.
8296 (dwarf2out_end_source_file): Add EINCL DIE.
8297 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
8298 (loc_checksum, attr_checksum, die_checksum): New fns.
8299 (is_type_die, is_comdat_die, is_symbol_die): New fns.
8300 (compute_section_prefix, assign_symbol_names): New fns.
8301 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
8302 (output_die): Call output_die_symbol and AT_ref_external.
8303 (output_comdat_comp_unit): New fn, split out from...
0e5921e8 8304 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
5f632b5e
JM
8305 secondary CUs.
8306 (output_pubnames, output_aranges): Abort if we see entries from
8307 secondary CUs.
8308 * toplev.h: Declare file_name_nondirectory.
8309 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
8310 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
8311 (debug_start_source_file): Call dwarf2out_start_source_file
8312 regardless of debug verbosity.
8313 (debug_end_source_file): Similarly.
8314 * tree.h: Declare clean_symbol_name.
8315 * tree.c (clean_symbol_name): Split out from...
8316 (get_file_function_name_long): ...here.
8317
5de0e8d4
JM
8318 * dwarf2out.c (new_loc_descr): Use calloc.
8319 (splice_child_die): Remove the die from the right parent.
8320 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
8321
04324727
RK
8322Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8323
8324 * toplev.c (decode_g_option): Don't give warning for unknown -g
8325 option; return 0 instead.
8326 (main): If -g option is not recognized by front end or
8327 language-independent code, give warning.
8328
9e3e266c
GM
83292000-08-28 Greg McGary <greg@mcgary.org>
8330
8331 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
8332 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
8333 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
8334
a0bff95f
GM
83352000-08-27 Greg McGary <greg@mcgary.org>
8336
8337 * cpplex.c (parse_string): Don't look for backslash
8338 before first char in `namebuf'.
8339 * loop.c (strength_reduce): Skip NOTEs.
8340
edb4c415
JM
83412000-08-27 Jason Merrill <jason@redhat.com>
8342
8343 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
8344 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
8345 TREE_ASM_WRITTEN, either.
8346 (finish_decl): Adjust.
8347
6e88e75c
PT
83482000-08-28 Philipp Thomas <pthomas@suse.de>
8349
8350 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
8351 they have been incorporated into the gettext CVS. Change the text to
8352 reflect the current status of NLS. Add instructions for accessing
8353 the gettext CVS and add the patch from Martin v. Loewis.
8354
e53ca51f
GK
83552000-08-27 Geoff Keating <geoffk@cygnus.com>
8356
8357 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
8358 by using gen_lowpart_common.
8359 (movdi_internal64+6): Likewise.
8360
a0a6fdc8
AO
83612000-08-26 Alexandre Oliva <aoliva@redhat.com>
8362
1b2dd04a
AO
8363 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
8364 Document.
8365
a0a6fdc8
AO
8366 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
8367 numbers to the ranges used by GDB.
8368
26a110f5
RH
83692000-08-25 Richard Henderson <rth@cygnus.com>
8370
8371 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
8372 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
8373 (ia64_expand_prologue): Likewise.
8374 (ia64_setup_incoming_varargs): Set it. Properly skip the current
8375 argument for stdargs.
8376
ecff20d4
JM
83772000-08-25 Jason Merrill <jason@redhat.com>
8378
8379 * integrate.c (expand_inline_function): Pull out the original decl.
8380
caa511fd
JW
83812000-08-25 Jim Wilson <wilson@cygnus.com>
8382
d51ff7cb
JW
8383 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
8384
caa511fd
JW
8385 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
8386
9a56f4f6
GM
83872000-08-25 Greg McGary <greg@mcgary.org>
8388
8389 * flow.c (dump_edge_info): Use ARRAY_SIZE.
8390 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
8391
31448271
RE
83922000-08-25 Richard Earnshaw <rearnsha@arm.com>
8393
8394 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
8395
b949ea8b
JW
8396Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
8397
8398 * i386.c (ix86_find_base_term): New.
8399 * i386-protos.h (ix86_find_base_term): Prototype.
8400 * i386.h (FIND_BASE_TERM): Define.
8401 * alias.c (find_base_term): Use it.
8402 * tm.texi (FIND_BASE_TERM): Document it.
8403
8404 * alias.c (true_dependence, write_dependence_p): Unchanging
8405 memory can't conflict with non-unchanging memory.
8406
8407 * alias.c (memrefs_conflict_p): A BLKmode reference
8408 to a symbol (or CONST_INT address) always conflicts
8409 with a reference to another symbol.
8410
343b7260
JM
84112000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
8412
8413 * c-common.c (time_char_table): Don't allow width and flags with
8414 "z" format.
8415
1f9124e4
JJ
84162000-08-25 Jakub Jelinek <jakub@redhat.com>
8417
8418 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
8419 way as LT and LTU when the second operand has 0 in low word.
8420
6057c0e6
MH
84212000-08-26 Michael Hayes <mhayes@cygnus.com>
8422
135ebc36
MH
8423 * basic-block.h (struct loop): Rename `exits' field to
8424 `exit_edges'. Add `entry_edges' and `num_entries' fields.
8425
8426 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
8427 (flow_loop_entry_edges_find): Add.
8428 (flow_edge_list_print): Rename from flow_exits_print.
8429 (flow_loops_find): Call flow_loop_entry_edges_find.
8430 (flow_loop_dump): Dump entry_edges list.
8431 (flow_loops_free): Free entry_edges.
0e5921e8 8432
135ebc36 84332000-08-26 Michael Hayes <mhayes@cygnus.com>
0e5921e8 8434
6057c0e6
MH
8435 * loop.c (loop_dump_aux, debug_loop): New functions.
8436 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
8437
8438 * flow.c (flow_loops_dump): Add callback parameter.
8439 (flow_loop_dump): Add callback parameter and call it. Move
8440 loop note debugging code to loop_dump_aux.
8441
8442 * basic-block.h (flow_loop_dump): Add callback parameter
8443 (flow_loops_dump): Likewise.
8444
8445 * toplev.c (rest_of_compilation): Add NULL callback function pointer
8446 to call to flow_loops_dump.
0e5921e8 8447
028fc6e7
MH
84482000-08-26 Michael Hayes <mhayes@cygnus.com>
8449
8450 * loop.c (count_loop_regs_set): Replace start and end arguments
8451 with loop argument. All callers udated.
0e5921e8 8452
371502a8 84532000-08-26 Michael Hayes <mhayes@cygnus.com>
0e5921e8 8454
371502a8
MH
8455 * loop.c (constant_high_bytes): Delete.
8456
e375c819
MH
84572000-08-26 Michael Hayes <mhayes@cygnus.com>
8458
8459 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
8460 and NOTE_INSN_LOOP_VTOP to...
8461 (find_and_verify_loops) ...here.
8462
036cfb36
AO
8463Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
8464
8465 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
8466 (fini_dummy, init_dummy): Use it.
8467
c2e20542
NB
8468Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
8469
8470 * cpplex.c (is_macro_disabled): Caller has already checked
8471 that we're not a preprocessed file.
8472
83bab8db
MM
84732000-08-24 Mark Mitchell <mark@codesourcery.com>
8474
8475 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
8476 (c-iterate.o): Remove target.
8477 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
8478 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
8479 (finish_decl): Don't handle iterators.
8480 (grokdeclarator): Likewise.
8481 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
8482 * gcc/c-gperf.h: Regenerated.
8483 * gcc/c-iterate.c: Removed.
8484 * gcc/c-lex.c (init_lex): Don't handle iterators.
8485 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
8486 (compstmt_primary_start): Remove push_iterator_stack call.
8487 (stmt): Don't allow iterator statements. Replace iterator_expand
8488 with expand_expr_stmt.
8489 (all_iter_stmt): Remove.
8490 (all_iter_stmt_simple): Likewise.
8491 (all_iter_stmt_with_decl): Likewise.
8492 * gcc/c-tree.h (ITERATOR_P): Remove.
8493 (ITERATOR_BOUND_P): Likewise.
8494 (init_iterators): Remove declaration.
8495 (iterator_expand): Likewise.
8496 (iterator_for_loop_start): Likewise.
8497 (iterator_for_loop_end): Likewise.
8498 (iterator_for_loop_record): Likewise.
8499 (push_iterator_stack): Likewise.
8500 (pop_iterator_stack): Likewise.
8501 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
8502 (readonly_warning): Likewise.
8503 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
0e5921e8 8504
aee3c6b0
JW
85052000-08-24 Jim Wilson <wilson@cygnus.com>
8506
8507 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
8508 Copy type in a TYPE_DECL, just like pushdecl does.
8509
58d8c980
RH
85102000-08-24 Richard Henderson <rth@cygnus.com>
8511
8512 * toplev.c (main): Enable flag_reorder_blocks at -O2.
8513
054f5e69
ZW
85142000-08-24 Zack Weinberg <zack@wolery.cumb.org>
8515
0e5921e8 8516 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
054f5e69
ZW
8517 asked for one page, allocate GGC_QUIRE_SIZE of them and put
8518 the extras on the free list.
8519 (release_pages): Clean up.
8520 (ggc_set_mark): Don't adjust G.allocated here...
8521 (sweep_pages): ... do it here.
8522
85232000-08-24 Zack Weinberg <zack@wolery.cumb.org>
8524
8525 * cppfiles.c (read_include_file): Rearrange initializations.
8526
0551c32d
RH
85272000-08-24 Richard Henderson <rth@cygnus.com>
8528
8529 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
8530
8531 * config/ia64/ia64-protos.h: Update.
8532 * config/ia64/ia64.c (gr_register_operand): New.
8533 (fr_register_operand, grfr_register_operand): New.
8534 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
8535 (grfr_reg_or_8bit_operand): New.
0e5921e8 8536 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
0551c32d
RH
8537 use gr_register_operand.
8538 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
8539 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
8540 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
8541 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
8542 (fr_reg_or_fp01_operand): Likewise.
8543 (not_postinc_memory_operand): New.
8544 (ia64_split_timode): Remove unused variables.
8545 (rtx_needs_barrier): Check arguments to cmpxchg.
8546 (builtin_description): Remove.
8547 (bdesc_2argsi, bdesc_2argdi): Remove.
8548 (ia64_init_builtins): Declare all builtins directly.
8549 (ia64_expand_fetch_and_op): Rewrite to be called from
8550 ia64_expand_builtin directly. Use expand_binop and co.
8551 (ia64_expand_op_and_fetch): Likewise.
8552 (ia64_expand_compare_and_swap): Likewise.
8553 (ia64_expand_binop_builtin): Remove.
8554 (ia64_expand_lock_test_and_set): New.
8555 (ia64_expand_lock_release): New.
8556 (ia64_expand_builtin): Use them.
8557 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
8558 (EXTRA_CONSTRAINT): Use it.
8559 (PREDICATE_CODES): Update.
8560 * config/ia64/ia64.md (*): Use gr_register_operand and co.
8561 (mf): Indicate that we set memory as well as use it.
8562 (fetchadd_acq_si): Show memory being modified as well.
0e5921e8 8563 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
0551c32d
RH
8564 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
8565 (lock_test_and_set_si, lock_test_and_set_di): Remove.
8566 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
8567 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
8568 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
8569 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
8570 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
8571 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
8572 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
8573 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
8574 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
8575 return type. Pretty print definitions.
8576
7c866fb5
JW
85772000-08-24 Jim Wilson <wilson@cygnus.com>
8578
8579 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
8580 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
8581
40e8cc95
JM
85822000-08-24 Jason Merrill <jason@redhat.com>
8583
8584 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
8585 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
0e5921e8 8586 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
40e8cc95
JM
8587 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
8588
b6a1cbae
GM
85892000-08-24 Greg McGary <greg@mcgary.org>
8590
8591 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
8592 and extendtab within their proper array boundaries.
8593 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
8594 for the entire array.
8595
8596 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
8597 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
8598 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
8599 * config/fr30/fr30.c (fr30_print_operand): Likewise.
8600 * config/i386/dgux.c (output_options): Likewise.
8601 * config/i386/dgux.h (ASM_FILE_START): Likewise.
8602 * config/m88k/m88k.c (output_options): Likewise.
8603 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
8604 * config/mcore/mcore.c (mcore_output_inline_const_forced,
8605 layout_mcore_frame, handle_structs_in_regs): Likewise.
8606 * config/mips/mips.c (output_block_move): Likewise.
8607 * config/rs6000/rs6000.c (rs6000_override_options,
8608 rs6000_file_start): Likewise.
8609 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
8610 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
8611 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
8612 * builtins.c (expand_builtin_setjmp): Likewise.
8613 * expr.c (safe_from_p): Likewise.
8614 * flow.c (life_analysis): Likewise.
8615 * fold-const.c (size_int_type_wide): Likewise.
8616 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
8617 * genattrtab.c (make_length_attrs): Likewise.
8618 * genopinit.c (gen_insn): Likewise.
8619 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
8620 * global.c (global_alloc): Likewise.
8621 * local-alloc.c (find_free_reg): Likewise.
8622 * mips-tdump.c (print_symbol): Likewise.
8623 * mips-tfile.c (parse_def, parse_input): Likewise.
8624 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
8625 * stmt.c (expand_nl_goto_receiver): Likewise.
8626 * stor-layout.c (set_sizetype): Likewise.
8627 * varasm.c (decode_reg_name): Likewise.
8628 * toplev.c (decode_f_option, decode_W_option,
8629 set_target_switch, print_switch_values): Likewise.
8630 (NUM_ELEM): Remove macro.
8631 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
8632
5b47282c
GM
86332000-08-24 Greg McGary <greg@mcgary.org>
8634
8635 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
8636 (MAIN_NAME_P, main_identifier_node): New macros.
8637 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
8638 * c-decl.c (start_decl, grokdeclarator, start_function,
8639 store_parm_decls, finish_function): Use MAIN_NAME_P.
8640 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
8641 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
8642 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
8643 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
8644
87ae0c74
GM
86452000-08-24 Greg McGary <greg@mcgary.org>
8646
8647 * cppfiles.c (actual_directory): Don't write beyond `dir'
8648 when it contains "".
8649 * real.c (asctoeg): Stay within bounds of etens[][].
8650
b148aeaa
KG
86512000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8652
8653 * dependence.c (dependence_string, direction_string,
8654 dump_one_node, dump_node_dependence): Hide unused identifiers.
8655 (get_low_bound, normalize_coefficients): Match definition to
8656 static prototype.
8657 (get_one_coefficient): Initialize variables `value0_is_idx' and
8658 `value1_is_idx'.
8659 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
8660 (ziv_test): Delete variable `idx', use parameter `sub' instead.
8661 (direction_merge): Avoid automatic aggregate initialization.
8662 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
8663 Initialize variables `dest_idx' and `src_idx'.
8664 (end_dependence_analysis): Avoid C89 style function definition.
8665
4894ecce
JM
86662000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
8667
8668 * c-common.c (time_char_table): Don't allow width with %F.
8669 (check_format_info): Don't allow "Z" length with scanf.
8670
2ab99c46
GDR
86712000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
8672
8673 * diagnostic.c (finish_diagnostic): Define.
8674 (output_do_printf): Use wrap_text instead of output_add_string.
8675 (default_print_error_function): Avoid embedded '\n'.
8676
8677 * diagnostic.h (flush_diagnostic_buffer): Declare.
8678
335e59bd
AO
86792000-08-23 Alexandre Oliva <aoliva@redhat.com>
8680
8681 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
8682
d9fe00bb
HPN
86832000-08-23 Hans-Peter Nilsson <hp@axis.com>
8684
8685 * Makefile.in (GCC_PASSES): Add specs.
8686
b97644fc
JW
86872000-08-23 Jim Wilson <wilson@cygnus.com>
8688
8689 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
8690 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
8691 EHANDLER nor UHANDLER bit is set.
8692 (__get_except_table): Likewise.
8693
64a7723d
NC
86942000-08-23 Nick Clifton <nickc@redhat.com>
8695
02689e18
NC
8696 * config/arm/lib1funcs.asm: Replace upper case condition codes
8697 with lower case versions.
8698
64a7723d
NC
8699 * config/arm/arm.h (STRUCT_VALUE): Define.
8700 (STRUCT_VALUE_REGNUM): Delete.
8701
bbdac7d0
ZW
87022000-08-23 Zack Weinberg <zack@wolery.cumb.org>
8703
8704 * cpphash.h (IN_I): New flag for directive table.
8705 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
8706 #pragma with IN_I.
8707 (_cpp_check_directive): If -fpreprocessed, execute directives
8708 marked with IN_I. Issue no warnings in this case.
8709 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
8710
d8eceea4
JM
87112000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
8712
8713 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
8714 %u.
8715 (check_format_info): Support printf 'I' flag; warn about it with
8716 -pedantic.
8717
e04c2d6c
RE
87182000-08-23 Richard Earnshaw (rearnsha@arm.com)
8719
8720 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
8721 barrier can't be ignored by the alias analysis code.
8722
f4306baa
EZ
87232000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
8724
8725 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
8726 works inside fixincl.
8727
95d0e5f1
AO
8728Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
8729
8730 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
8731 simplify_relational_operation() unless both operands are of
8732 VOIDmode.
8733 * cse.c (fold_rtx): Likewise.
8734
55efb413
JW
8735Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
8736
8737 * rtlanal.c (rtx_unstable_p): The pic register is stable
8738 (within one function) and the actual rtx should be used
8739 when checking the registers.
8740 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
8741
8742 * alias.c (true_dependence, write_dependence_p): Fix
8743 bug in previous patch.
8744
8745 * i386.c (ix86_GOT_alias_set): New.
8746 (legitimize_pic_address): Use it.
8747
8748 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
8749 only stable if its address is stable.
8750 (rtx_varies_p): An unchanging MEM can't vary if
8751 its address doesn't vary.
8752
aac625ac
KG
87532000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8754
8755 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
8756
62432849
DA
87572000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8758
8759 * vax.h (ASM_SPEC): Pass `-J' to assembler.
8760 * x-vax-gcc: New file for bootstrapping with gcc.
dd745546 8761 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
62432849
DA
8762 * configure.in: Use x-vax-gcc with gcc.
8763 * configure: Rebuilt.
8764
1eb994b7
R
8765Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8766
8767 * toplev.c (rest_of_compilation): Rebuild label notes after
8768 post-reload splitting pass if new labels have been created.
8769
f6a542de
GDR
87702000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
8771
8772 * diagnostic.h (output_buffer_state): New macro.
8773 * diagnostic.c (diagnostic_for_decl, sorry,
8774 default_print_error_function, output_do_verbatim,
8775 report_diagnostic, report_problematic_module): Use it.
8776 (wrap_text): Tweak.
8777 (output_format): Use wrap_text instead of maybe_wrap_text.
8778
888e552f
NC
87792000-08-22 Nick Clifton <nickc@redhat.com>
8780
8781 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
8782 Common code for ARM divide and modulus functions.
8783 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
8784 ARM_DIV_MOD_BODY.
8785 (FUNC_END): New macro: Common code at the end of the division and
8786 modulo functions.
8787 (THUMB_FUNCTION_START): New macro: Common code at the start of
8788 Thumb functions.
8789 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
0e5921e8 8790
89e43e33
KK
8791Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8792
8793 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
8794
8795 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
8796 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
8797 const0_rtx.
8798
7405dc37
NC
87992000-08-22 Nick Clifton <nickc@redhat.com>
8800
8801 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
8802 restorative additions, test for bottom bits of IP being set,
8803 rather than relying upon the RORs not matching.
8804 (__modsi3): Ditto.
8805
9861b0c9
DE
88062000-08-22 David Edelsohn <edelsohn@gnu.org>
8807
8808 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
60a3c181 8809 text_section() as appropriate instead of emitting text csect
9861b0c9
DE
8810 pseudo-op directly.
8811 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
8812 (UNIQUE_SECTION): Define macro.
8813 (ASM_OUTPUT_SECTION_NAME): Define macro.
8814 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
60a3c181 8815 on AIX if debugging and -fdata-sections always.
9861b0c9
DE
8816
88172000-08-22 Steven King <sxking@uswest.net>
df3a88f0
SK
8818
8819 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
8820 machinery.
8821 (LDBL_MAX): Same here.
8822
b578dbd7
RH
88232000-08-22 Richard Henderson <rth@cygnus.com>
8824
8825 * flow.c (tidy_fallthru_edge): Update b->end properly.
8826
d061bc1e
SC
88272000-08-22 Stan Cox <scox@redhat.com>
8828
60a3c181
RH
8829 * Makefile.in (OBJS): Add dependence.o.
8830 * dependence.c: New file.
0e5921e8 8831
23d16877 88322000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
3cadd778 8833
d60eab50
AO
8834 * calls.c (check_sibcall_argument_overlap_1): Adjust for
8835 ARGS_GROW_DOWNWARD.
8836 (check_sibcall_argument_overlap): Likewise.
8837
23d16877
AO
88382000-08-22 Alexandre Oliva <aoliva@redhat.com>
8839
3cadd778
AO
8840 * invoke.texi (SH Options): Document -m4-nofpu,
8841 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
8842 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
8843
23e4d028
JM
88442000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
8845
8846 * c-common.c (check_format_info): Give the 'some locales' warning
8847 for strftime %Ey rather than the unconditional 'only last 2 digits
8848 of year' one.
8849
bc82c87c
RH
88502000-08-22 Richard Henderson <rth@cygnus.com>
8851
8852 * alias.c (init_alias_analysis): Do not register
8853 struct_value_incoming_rtx or static_chain_rtx as pointing
8854 to stack memory.
8855
7db9125f
JL
8856Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
8857
8858 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
8859
b413d64d
GDR
88602000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
8861
8862 * diagnostic.h (report_problematic_module): Declare.
8863 * diagnostic.c (report_problematic_module): New function.
8864 (report_error_function): Tweak.
8865
c4a6c0f3
RK
8866Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8867
8868 * stmt.c (expand_goto_internal, fixup_gotos): Only check
8869 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
8870
770a7feb
RH
88712000-08-21 Richard Henderson <rth@cygnus.com>
8872
8873 * flow.c (calculate_global_regs_live): Mark frame pointer live
8874 everywhere before reload.
8875
280db205
JW
88762000-08-21 Jim Wilson <wilson@cygnus.com>
8877
8878 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
8879 INTEL_EXTENDED_IEEE_FORMAT.
8880 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
8881 clear last two bytes of output FP value.
8882
94c21c17
GS
88832000-08-21 Graham Stott <grahams@cygnus.co.uk>
8884
8885 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
8886
6315f068
JJ
88872000-08-21 Jakub Jelinek <jakub@redhat.com>
8888
8889 * unroll.c (loop_find_equiv_value): If ret is modified between
8890 insn and loop_start, ret might not be equivalent to reg.
8891
5804a754
JM
88922000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
8893
8894 * c-common.c (init_dollar_format_checking,
8895 maybe_read_dollar_number, finish_dollar_format_checking): New
8896 functions.
8897 (dollar_arguments_used, dollar_arguments_count,
8898 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
8899 New variables.
8900 (check_format_info): Support $ formats for scanf and printf width
8901 and precision. Always increment format_chars to advance past the
8902 '*' of precision, not just when the format parameters are
8903 available to check.
8904
95adab8e
KG
89052000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8906
8907 * mips.c (block_move_loop, expand_block_move,
8908 function_arg_partial_nregs, save_restore_insns, function_prologue,
8909 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
8910 constant suffix.
8911 (function_arg_advance, function_arg): Match argument to format
8912 specifier `%p'.
8913
49009afd
JL
89142000-08-21 Nix <nix@esperi.demon.co.uk>
8915
8916 * gcc.c (do_spec_1): Implement %j spec flag.
8917 Remove dead comment.
8918
8919 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
60a3c181
RH
8920 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
8921 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
8922 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
49009afd 8923
60a3c181 8924 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
49009afd
JL
8925 writable) instead of hardcoded value.
8926
8927 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
8928
60a3c181
RH
8929 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
8930 MKTEMP_EACH_FILE.
49009afd 8931
60a3c181 8932 * gcc.c (cc1_options): Do not process -o or run the assembler if
49009afd 8933 -fsyntax-only.
05a3d06e 8934 * objc/lang-spec.h: Likewise.
49009afd
JL
8935
89362000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
dc13bad7
EZ
8937
8938 * fixinc/fixincl.c (fix_with_system): Pipe the output of
8939 "external" fixes through `cat', to avoid truncating the input
8940 file by redirection.
8941
cb694d2c
JJ
89422000-08-21 Jakub Jelinek <jakub@redhat.com>
8943
8944 * config/i386/i386.md (lea_general_1): Copy insn condition to split
8945 condition.
8946 (lea_general_2, lea_general_3): Likewise.
8947
cde6e684
KG
89482000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8949
8950 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
8951 warnings to user code.
8952
8953 * c-lex.c (readescape, yylex): Likewise.
8954
8955 * c-typeck.c (store_init_value, process_init_element): Likewise
8956 (c_expand_start_case): Format.
8957
120dc6cd
MR
89582000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8959
8960 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
8961
8962 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
0e5921e8 8963 and linker_endian_spec to endian_spec.
120dc6cd
MR
8964 (ENDIAN_SPEC): Add %{EB} and %{EL}.
8965 (LINK_SPEC): Remove %{EB} and %{EL}.
0e5921e8 8966 (ASM_SPEC): Likewise. Use %(endian_spec).
120dc6cd 8967
93e2382f
JM
89682000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
8969
8970 * c-tree.h (flag_hosted): Move declaration from here...
8971 * c-common.h (flag_hosted): ... to here.
8972 (flag_noniso_default_format_attributes): New declaration.
8973 * c-decl.c (flag_noniso_default_format_attributes): New variable.
8974 (c_decode_option): Set it appropriately for options choosing
8975 language standard variant.
8976 * c-common.c (init_function_format_info): Only provide default
8977 format attributes if flag_hosted. Only provide the gettext
8978 formats if flag_noniso_default_format_attributes. Update
8979 comments.
8980 (check_format_info): Disable treatment of %a as a scanf flag in
8981 C99 mode.
8982
f3d360aa
JM
89832000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
8984
8985 * c-common.c (scan_char_table): Add 'w' to flags for all formats
8986 except 'n'.
8987 (check_format_info): Set 'wide' for scanf format widths. Warn for
8988 a zero scanf width. Make the check for writing into a constant
8989 object at the first level of indirection; at later levels, warn if
8990 any type qualifiers are encountered.
8991
e04ca094
JL
8992Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
8993
e6ea3b5f
JL
8994 * reload.c (reload_inner_reg_of_subreg): New function broken out of
8995 push_reload.
8996 (push_reload): Use reload_inner_reg_of_subreg.
8997 (combine_reloads): Do not combine reloads if the input reload
8998 is a SUBREG in which the inner part will need reloading.
8999
e04ca094
JL
9000 * global.c (global_alloc): Avoid passing dumpfile argument to
9001 reload routines.
9002 * toplev.c (rest_of_compilation): Likewise.
9003 * reload.h (reload): Remove dumpfile argument. Callers changed.
9004 (debug_reload, debug_reload_to_stream): Move prototypes here.
9005 * rtl.h (reload): Remove dumpfile argument.
9006 * reload.c (debug_reload): Remove prototype.
9007 (debug_reload_to_stream): Likewise.
9008 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
9009 instead.
9010
24805e80
GDR
90112000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
9012
9013 * diagnostic.c (context_as_prefix): Export.
9014 (need_error_newline): Remove.
9015 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
9016 (error_module_changed, record_last_error_module,
9017 error_function_changed, record_last_error_function): New functions.
9018 (initialize_diagnostics): Default intialize
9019 lang_diagnostic_starter, lang_diagnostic_finalizer.
9020 (init_output_buffer): Tweak.
9021 (file_name_as_prefix): New function.
9022 (announce_function, default_print_error_function,
9023 report_error_function, set_diagnostic_context): Tweak.
9024
056b6841
RE
90252000-08-21 Richard Earnshaw <rearnsha@arm.com>
9026
9027 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
9028 condition expression.
9029
7171b491
RH
90302000-08-20 Richard Henderson <rth@cygnus.com>
9031
9032 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
9033
3cb553b4
ZW
90342000-08-20 Zack Weinberg <zack@wolery.cumb.org>
9035
9036 * cppinit.c (cpp_init): Set global flag when called.
9037 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
9038
9861b0c9 9039Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
3cb553b4 9040
60a3c181
RH
9041 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
9042 before `process_directive' so that newlines won't be missed
9043 for directives.
9044 (cpp_printf): Increment `print->lineno' when newline is emitted.
3cb553b4 9045
60a3c181
RH
9046 * cppmain.c (cb_ident): Likewise.
9047 (cb_define): Likewise.
9048 (cb_undef): Likewise.
9049 (cb_include): Likewise.
9050 (cb_def_pragma): Likewise.
9051 (dump_macros_helper): Likewise.
3cb553b4 9052
9c668921
RH
90532000-08-20 Richard Henderson <rth@cygnus.com>
9054
9055 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
9056 assigned before a loop.
9057
9058 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
9059 (ashrsi3, lshrsi3): Likewise.
9060
4e1e6a01
GDR
90612000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
9062
9063 * c-lang.c: #include diagnostic.h
9064 (c_tree_printer): New function.
9065 (lang_init): Initialize lang_printer.
9066
9067 * Makefile.in (c-lang.o): Depends on diagnostic.h
9068
e2840263
GDR
90692000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
9070
9071 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
9072
9073 * diagnostic.c (default_diagnostic_starter,
9074 default_diagnostic_finalizer): New functions.
9075 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
9076 (pedwarn, pedwarn_with_file_and_line, error,
9077 error_with_file_and_line, fatal, warning,
9078 warning_with_file_and_line): Adjust call to report_diagnostic.
9079 (report_diagnostic): Rework.
9080 (set_diagnostic_context): New function.
9081
9082 * diagnostic.h (struct diagnostic_context): New data structure.
9083 (diagnostic_message, diagnostic_argument_list,
9084 diagnostic_file_location, diagnostic_line_location,
9085 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
9086 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
9087 (set_diagnostic_context): Declare.
9088 (report_diagnostic): Change prototype.
9089
574f7425
NB
9090Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
9091
9092 * fix-header.c (main): Initialize cpplib.
9093
f1e42c81
MM
90942000-08-19 Michael Meissner <meissner@redhat.com>
9095
34c9e848
MM
9096 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
9097 instructions in it before checking for indirect jumps.
9098
f1e42c81
MM
9099 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
9100 in a indirect jump as a potential for conditional execution.
9101
9102 * d30v.h (d30v_init_expanders): Don't declare here.
9103 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
9104 prototype.
9105
9d6c2770
NB
9106Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
9107
9108 * cpp.texi: Add @section for assertions.
9109
e76d9acb
JW
9110Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
9111
9112 * loop.c (scan_loop): Use CONST_CALL_P instead of
9113 checking for REG_LIBCALL / REG_RETVAL.
9114
f49957d6
JL
9115Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
9116
850aac53
JL
9117 * reload1.c (reload_as_needed): Accept dumpfile argument,
9118 pass it to emit_reload_insns.
9119 (emit_reload_insns): Add new dumpfile argument. If non-null
9120 then dump the reloads for each insn into the dumpfile.
9121 (reload): Pass dumpfile to reload_as_needed.
9122
f49957d6
JL
9123 * invoke.texi: Clean up linux-gnu vs linux comments.
9124
041f25e6
RH
91252000-08-19 Richard Henderson <rth@cygnus.com>
9126
9127 * config/ia64/ia64.c (reg_or_5bit_operand): New.
9128 (ia64_depz_field_mask): New.
9129 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
9130 (PREDICATE_CODES): Update.
9131 * config/ia64/ia64.md: Update commentary.
9132 (depz_internal): New.
9133 (ashlsi3): Implement directly.
9134 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
9135 (ashldi3): Use shladd.
9136 * config/ia64/ia64-protos.h: Update.
9137
319ea138
ZW
91382000-08-18 Zack Weinberg <zack@wolery.cumb.org>
9139
9140 * toplev.c (independent_decode_option): Always process -g.
9141 Remove third argument, now unused. Adjust caller to match.
9142
8231ad94
RH
91432000-08-18 Richard Henderson <rth@cygnus.com>
9144
9145 * combine.c (make_compound_operation): Break after creating
9146 the extraction.
9147
6e19bb38
ZW
91482000-08-18 Zack Weinberg <zack@wolery.cumb.org>
9149
9150 * cpplib.c (cpp_register_pragma_space): Just return if the
9151 namespace is already registered.
9152
477d303f
RE
91532000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
9154
9155 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
9156 constant amount. Do not generate ROTL instruction.
9157
ffe51c8a
AO
9158Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
9159
9160 * config/sh/elf.h: Do not include sh/sh.h.
9161 * config/sh/rtems.h: Likewise.
9162 * config/sh/rtemself.h: Do not include sh/elf.h.
9163 * configure.in: Get them included with `tm_file's.
9164 * configure: Rebuilt.
9165
8845e874
AO
9166 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
9167 * config/sh/sh.c (fpscr_set_from_mem): Use them.
9168
3f546a53
RK
9169Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9170
7d2950e5
RK
9171 * stor-layout.c (compute_record_type): Don't use mode of single
9172 field as mode of record if not integer mode of same type.
9173
a1c1fdd0
RK
9174 * regmove.c (perhaps_ends_bb_p): New function.
9175 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
9176 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
9177 (fixup_match_1): Likewise.
9178 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
9179 avoid signed/unsigned warnings.
0e5921e8 9180
3f546a53
RK
9181 * function.c (fixup_var_refs_1, case MEM): Update CODE after
9182 updating X.
9183
61d0346d
NB
9184Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
9185
9186 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
9187 (_cpp_trigraph_map): Declaration moved from cpplex.c
9188
9189 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
9190 instead of 256. Use consistent test for designated initializers.
9191 (cpp_init): Initialize trigraph_map.
9192 (initialize_standard_includes, parse_option): Use memcmp
9193 instead of strncmp.
9194
9195 * cpplex.c (init_trigraph_map): Remove.
9196 (trigraph_ok, trigraph_replace, lex_line): Refer to
9197 _cpp_trigraph_map.
9198
9199 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
9200 (do_unassert): Remove unused "next" local.
9201
9202 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
9203
ef42b1dd
EM
92042000-08-18 Emmanuel Marty <emarty@suntech.fr>
9205
9206 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
9207 insn.
9208
bc08aefe
RH
92092000-08-17 Richard Henderson <rth@cygnus.com>
9210
9211 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
9212 the first insn in a sequence.
9213
49982682
JW
9214Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
9215
9216 * alias.c (true_dependence, write_dependence_p): A read
9217 involving a label_ref or the constant pool doesn't create
9218 a dependency.
9219
9220 * rtl.h (unchanging): Improve documentation.
9221
889e5964
RB
92222000-08-17 Rodney Brown <RodneyBrown@mynd.com>
9223
9224 * cse.c (insert_regs): Remove unused `regno'.
9225
dd69c71b
NB
92262000-08-17 Neil Booth <NeilB@earthling.net>
9227
9228 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
9229 remove_dup_dirs. If qtail == brack, remove brack not
9230 qtail.
9231 (remove_dup_dir, remove_dup_dirs): New functions.
9232
709e9e50
NB
92332000-08-17 Neil Booth <NeilB@earthling.net>
9234
9235 * cppinit.c (cpp_cleanup): Free include dir chains.
9236 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
9237 (do_unassert): Free the assert with _cpp_free_definition.
9238 * cppmacro.c (_cpp_free_definition): Free memory allocated for
9239 assertions. Make the node a T_VOID node.
9240
e33f6253
NB
92412000-08-17 Neil Booth <NeilB@earthling.net>
9242
9243 * cppinit.c (path_include, append_include_chain):
9244 Remove 2nd parameter (struct cpp_pending *).
9245 (path_include, initialize_standard_includes, cpp_handle_option):
9246 Update callers appropriately.
9247 (cpp_handle_option): Use pend.
9248
c154ba66
NB
92492000-08-17 Neil Booth <NeilB@earthling.net>
9250
9251 * cppinit.c (sort_options): Remove, put functionality in
9252 cpp_init.
9253 (cpp_init): New.
9254 (initialize_builtins): Free memory.
9255 (cpp_start_read): Move init_IStable to cpp_init.
9256
9257 * cpplib.h (cpp_init): New prototype.
9258 * cppmain.c (main): Call cpp_init.
9259
9c82ac6b
JW
9260Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
9261
9262 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
9263 (rtx_unstable_p, rtx_varies_p): Process vectors.
9264
acd50a92
NY
92652000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
9266
9267 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
9268 references to GLOBAL symbols. Use LOCAL where appropriate.
9269
cfedbb1f
KG
92702000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9271
9272 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
9273 use t-aix41 when host == target.
9274
31989264
RH
92752000-08-16 Richard Henderson <rth@cygnus.com>
9276
9277 * reload.c (push_secondary_reload): Revert last change.
9278 If we use a reload_in/out pattern, make the when the same
9279 as the primary reload.
9280 (find_reloads): Likewise.
9281
d84c5634
MH
92822000-08-16 Manfred Hollstein <manfredh@redhat.com>
9283
9284 * configure.in (libstdcxx-v3): Fix test.
9285 * configure: Regenerate.
9286
43db0363
RK
9287Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9288
9289 * calls.c (calls_function_1, expand_call): Only test
9290 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
9291 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9292
853d8828
RH
92932000-08-16 Richard Henderson <rth@cygnus.com>
9294
9295 * combine.c (simplify_shift_const): Revert previous two
9296 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
9297 before the main loop.
9298
3e626beb
RH
92992000-08-15 Richard Henderson <rth@cygnus.com>
9300
9301 * combine.c (simplify_shift_const): Bound shift count when
9302 combining shifts.
9303
f507188a
RK
9304Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9305
7393c642
RK
9306 * calls.c (ECF_SP_DEPRESSED): New macro.
9307 (calls_function_1): Treat calling sp-depressed function as alloca.
9308 (emit_call_1): Don't adjust SP if calling sp-depressed function.
9309 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
9310 If sp-depressed, ensure block saves and restores SP.
9311 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
9312 for INTEGER_TYPE.
9313 * function.c (keep_stack_depressed): New function.
9314 (thread_prologue_and_epilogue_insns): Call it.
9315 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
9316 to print DECL_OFFSET_ALIGN.
9317 Print no-force-blk and transparent-union flags properly.
9318 * stmt.c (expand_goto_internal): Don't restore stack if last block
9319 and function returns with sp depressed.
9320 (fixup_gotos): Likewise.
9321 (save_stack_pointer): New function, from code in expand_decl.
9322 (expand_decl): Call new function.
9323 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
9324 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
9325 (save_stack_pointer): New declaration.
9326
f507188a
RK
9327 * diagnostic.c (fatal_function): New variable.
9328 (set_fatal_function): New function.
9329 (fatal): Call it.
9330 * diagnostic.h (set_fatal_function): New declaration.
9331
56847207
WC
93322000-08-15 William Cohen <wcohen@redhat.com>
9333
9334 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
9335 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
9336 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
9337
7791b7f9
RH
93382000-08-15 Richard Henderson <rth@cygnus.com>
9339
9340 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
9341
f99fce0c
RE
93422000-08-15 Richard Earnshaw <rearnsha@arm.com>
9343
9344 * arm.c (arm_function_ok_for_sibcall): New function.
9345 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
9346 * arm.md (call expanders): Don't check here for calls that can't
9347 be sibling calls.
9348
74da3101
RE
93492000-08-15 Richard Earnshaw <rearnsha@arm.com>
9350
9351 * arm.md (splits generating cond_exec): Disable.
9352
2c210617
RE
93532000-08-15 Richard Earnshaw <rearnsha@arm.com>
9354
9355 * arm/linux-elf.h (text_section): Delete declaration.
9356
05ed98a1
RE
93572000-08-15 Richard Earnshaw <rearnsha@arm.com>
9358
9359 ARM support for unordered FP operations.
9360 * arm-protos.h (arm_comparison_operator): Declare.
9361 * arm.c (arm_comparison_operator): New function.
9362 (arm_select_cc_mode): Add unordered comparison codes.
9363 (get_arm_condition_code): Likewise.
9364 (arm_final_prescan_insn): Can't handle unordered jumps that can't
9365 be done in one insn.
9366 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
9367 * arm.md (all uses of comparison_operator): Replace with
9368 arm_comparison_operator.
9369 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
9370 expands.
9371 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
9372 patterns.
0e5921e8 9373
ed78c862
OP
9374Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
9375
9376 * gthr-posix.h: Conditionally include <sched.h>; include
9377 <config.h> from libobjc/.
9378
4859dd36
RH
93792000-08-14 Richard Henderson <rth@cygnus.com>
9380
9381 * config/i386/i386.c (legitimize_pic_address): Use Pmode
9382 for all CONSTs.
9383
3f622353
RH
93842000-08-14 Richard Henderson <rth@cygnus.com>
9385
9386 * configure.in (ia64-*): Set float_format for i386 long double.
9387
9388 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
9389 as we would for i386 XFmode.
9390 (PUT_REAL): Likewise.
9391 (endian, ereal_atof, real_value_truncate): Likewise.
9392 (ereal_isneg, toe64, etens, make_nan): Likewise.
9393 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
9394
9395 * config/ia64/ia64-protos.h: Update.
9396 * config/ia64/ia64.c (general_tfmode_operand): New.
9397 (destination_tfmode_operand): New.
9398 (tfreg_or_fp01_operand): New.
9399 (ia64_split_timode): New.
9400 (spill_tfmode_operand): New.
9401 (ia64_expand_prologue): Use TFmode not XFmode.
9402 (ia64_expand_epilogue): Likewise.
9403 (ia64_function_arg): Likewise.
9404 (ia64_function_arg_advance): Likewise.
9405 (ia64_return_in_memory): Likewise.
9406 (ia64_function_value): Likewise.
9407 (ia64_print_operand): Likewise.
9408 (ia64_register_move_cost): Set GR<->FR to 5.
9409 (ia64_secondary_reload_class): Get GR for TImode memory op.
9410 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
9411 (ROUND_TYPE_ALIGN): Remove.
9412 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
9413 (INTEL_EXTENDED_IEEE_FORMAT): Define.
9414 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
9415 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
9416 (MODES_TIEABLE_P): Use TFmode, not XFmode.
9417 (CLASS_MAX_NREGS): Likewise.
9418 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
9419 (PREDICATE_CODES): Update.
9420 * config/ia64/ia64.md (movti): New.
9421 (movti_internal): Use a clobber for memory alternatives.
9422 (reload_inti, reload_outti): New.
9423 (movsfcc_astep): Predicate properly.
9424 (movdfcc_astep): Likewise.
9425 (movxf): Remove.
9426 (movtf): New.
9427 (extendsftf2, extenddftf2): New.
9428 (trunctfsf2, trunctfdf2): New.
9429 (floatditf2, fix_trunctfdi2): New.
9430 (floatunsditf2, fixuns_trunctfdi2): New.
9431 (addtf3, subtf3, multf3, abstf2): New.
9432 (negtf2, nabstf2, mintf3, maxtf3): New.
9433 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
9434 (cmptf): New.
9435 (fr_spill): Use TFmode, not XFmode.
9436 (fr_restore): Likewise.
9437 * config/ia64/lib1funcs.asm (__divtf3): New.
9438 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
9439
e49a1d2e
KG
94402000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9441
9442 * cse.c (fold_rtx): Avoid empty body in an if-statement.
0e5921e8 9443
e49a1d2e
KG
9444 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
9445 `U' integer constant suffix.
9446
9447 * dwarf2out.c (add_subscript_info): Avoid empty body in an
9448 else-statement.
9449
9450 * sparc/sol2.h (__enable_execute_stack): Prototype.
9451
78fbdbf7
DE
94522000-08-14 David Edelsohn <edelsohn@gnu.org>
9453
9454 * collect2.c: Remove use of AIX import file.
9455
9456 * longlong.h: Test ARCH_PWR not ARCH_POWER.
9457
9458 * rs6000.c (print_operand, case 'E'): Add else.
9459
9a89adb8
RH
94602000-08-14 Richard Henderson <rth@cygnus.com>
9461
9462 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
9463 (movdi_symbolic): New.
9464
00e149c7
JW
94652000-08-14 Jim Wilson <wilson@cygnus.com>
9466
9467 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
9468 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
9469 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
9470 to GNU as.
9471
2ee5437b
RH
94722000-08-14 Richard Henderson <rth@cygnus.com>
9473
9474 * expr.c (emit_group_load): Don't force constants into registers.
9475 Special case source already in the correct mode.
9476
57119aa9
ZW
94772000-08-14 Zack Weinberg <zack@wolery.cumb.org>
9478
9479 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
9480 * fixinc/inclhack.def: Likewise.
0e5921e8 9481 * fixinc/mkfixinc.sh: Likewise.
57119aa9
ZW
9482 * configure: Regenerate.
9483 * fixinc/fixincl.x: Regenerate.
9484 * install.texi: Document equivalence of linux and linux-gnu.
9485
d9f20424
R
9486Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9487
9488 * cse.c (insert_regs): Also in REG case: When finding an invalid
9489 value, and we make a new quantity, make sure that it won't be
9490 mistaken by for a valid one by mention_regs.
9491
c8fa6556
RG
9492