]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
Daily bump.
[gcc.git] / gcc / ChangeLog
CommitLineData
d97371e0
NB
12002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
2
3 * cpplib.c (dtable): Update.
4 (end_directive): Decrement expansion prevention count.
5 Clear state.in_expression.
6 (prepare_directive_trad): Set state.in_expression.
7 Increment expansion prevention count.
8 * cpptrad.c (enum ls): New.
9 (_cpp_overlay_buffer): Set overlaid_buffer.
10 (_cpp_remove_overlay): Use overlaid_buffer.
11 (_cpp_read_logcial_line_trad): Update buffer when it might
12 have changed.
13 (scan_out_logical_line): Handle state transitions for assertions
14 and defined() in #if, and for funlike invocations including the
15 directive case. Handle '<' and '>' as a quote mechanism in
16 #include. Warn about unterminated macro invocations.
17 * cpphash.h (struct lexer_state): New member in_expression.
18 (struct cpp_reader): New member overlaid buffer.
19
807b20b0
HPN
202002-06-18 Hans-Peter Nilsson <hp@axis.com>
21
22 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
23 __always_inline__.
24
8a09a7e5
AM
252002-06-18 Alan Modra <amodra@bigpond.net.au>
26
147d5f6f
AM
27 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
28
8a09a7e5
AM
29 * doloop.c (doloop_optimize): Extract pattern from insn.
30
390de769
MK
312002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
32
33 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
34
912ce297
JL
352002-06-17 Jeff Law <law@redha.com>
36
37 * libgcc2.c: Do not include symcat.h or machmode.h.
38
5c45425b
RH
392002-06-17 Richard Henderson <rth@redhat.com>
40
41 PR target/6922
42 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
43
9aa497ae
TT
442002-06-17 Tom Tromey <tromey@redhat.com>
45
46 * dwarfout.c: Include function.h.
47
7f11f1f9
AS
482002-06-17 Andreas Schwab <schwab@suse.de>
49
50 * print-rtl.c (print_rtx): Print space before vector, not after.
51 (debug_rtx): Clear sawclose before printing.
52 (debug_rtx_list): Print newline after each list element.
53 (debug_rtx_range): Likewise.
54
df696a75
RH
552002-06-17 Richard Henderson <rth@redhat.com>
56
57 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
58 (current_function_funcdef_no): Similarly.
59 * function.c (funcdef_no): Similarly.
60 (prepare_function_start): Set current_function_funcdef_no.
61 (expand_function_start): Don't set current_function_profile_label_no.
62 * dwarf2out.h (current_funcdef_number): Remove.
63 * dwarf2out.c (current_funcdef_number): Remove. Replace with
64 current_function_funcdef_no throughout.
65 * dwarfout.c, vmsdbgout.c: Similarly.
66 * except.c (sjlj_funcdef_number): Remove.
67 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
68 (output_function_exception_table): Likewise.
69 * final.c (profile_function): Use current_function_funcdef_no
70 instead of current_function_profile_label_no.
71
97272202
VM
722002-06-17 Vladimir Makarov <vmakarov@redhat.com>
73
74 * sched-ebb.c (init_ready_list): Check INSN_P first.
75
8bccce2d
R
76Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
77
78 * sh.md (divsi3): Update way how to find insns in a sequence.
dec0798e
R
79
80 * reload1.c (merge_assigned_reloads): Don't change reloads
81 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
82 to RELOAD_OTHER when there are conflicting input reloads.
83
0af5c896
RE
842002-06-17 Richard Earnshaw (rearnsha@arm.com)
85
86 * function.c (epilogue_done): Correctly build a sequence of insns for
87 a sibcall epilogue.
88
9d0fa9d6
NC
892002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
90
845b1456
NC
91 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
92 #define.
93
9d0fa9d6
NC
94 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
95
e83f3cff
RH
962002-06-16 Richard Henderson <rth@redhat.com>
97
98 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
99 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
100
caecc099
RH
1012002-06-16 Richard Henderson <rth@redhat.com>
102
103 PR opt/6722
104 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
105
3d05b15f
NB
1062002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
107
caecc099
RH
108 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
109 * config/i386/i386-aout.h, config/i386/i386elf.h,
110 config/i386/sysv4.h: Remove CPP_PREDEFINES.
111 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
112 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
113 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
114 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3d05b15f 115 CPP_PREDEFINES and part of CPP_SPEC.
caecc099 116 * config/i386/sysv4-cpp.h: New.
3d05b15f 117
8370aa3a
RH
1182002-06-16 Richard Henderson <rth@redhat.com>
119
65a90f3c 120 PR c/7030
8370aa3a
RH
121 * dwarf2out.c (modified_type_die): Don't assign the qualified die
122 to the unqualified type.
123
e932b21b
JH
124Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
125
126 * i386-protos.h (x86_field_alignment): Declare.
127 * i386.c (x86_field_alignment): Define.
128 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
129 (BIGGEST_FIELD_ALIGNMENT): Kill.
130
7ee02381
RH
1312002-06-16 Richard Henderson <rth@redhat.com>
132
133 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
134
750491fc
RH
1352002-06-16 Richard Henderson <rth@redhat.com>
136
137 * c-common.c (flag_ms_extensions): Move from c++ front end.
138 * c-common.h (flag_ms_extensions): Declare.
139 * c-decl.c (c_decode_option): Add -fms-extensions.
140 (grokfield): Don't accept anonymous structures in ISO C mode;
141 accept only unnamed anonymous structures in GNU C mode; accept
142 Plan 9 extensions in MS mode.
143 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
144 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
145 (extension): Clear flag_iso.
146 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
147
c134da6b
HPN
1482002-06-16 Hans-Peter Nilsson <hp@axis.com>
149
150 PR target/7042
151 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
152 early if current_function_epilogue_delay_list is non-empty.
153 * config/cris/cris.md ("return"): Add sanity check asserting that
154 current_function_epilogue_delay_list is empty.
155
038c7976
JL
1562002-06-16 Jeff Law <law@redhat.com>
157
006a94b0
JL
158 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
159 sharing of hard registers.
160
161 * toplev.c (rest_of_compilation): Remove redundant conditional.
162
038c7976
JL
163 * toplev.c (rest_of_compilation): Perform a simpler, less costly
164 cleanup of the CFG when not optimizing.
165
0797741a
AM
1662002-06-16 Alan Modra <amodra@bigpond.net.au>
167
168 * gcc.c (main): Correct startfile_prefix_spec check.
169
a6e2e53e
GK
1702002-06-12 Geoffrey Keating <geoffk@redhat.com>
171
172 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
173 include both darwin.o and rs6000-c.o.
174
129e0ee8
RS
1752002-06-15 Roger Sayle <roger@eyesopen.com>
176
177 * expr.c (compare_from_rtx): Call simplify_relational_operation
178 on all comparisons, not just those between integer constants,
179 with the correct (possibly unsigned) comparison code.
180 (do_compare_rtx_and_jump): Likewise.
181
d5355cb2
JDA
1822002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
183
184 * Makefile.in (tm_defines): New configuration variable.
185 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
186 Pass tm_defines in TM_DEFINES.
187 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
188 * config.gcc (tm_defines): New configuration variable.
189 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
190 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
191 * configure.in: Substitute tm_defines.
192 * configure: Rebuilt.
193 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
194 * doc/install.texi: Update.
195 * pa/pa-700.h: Delete file.
196 * pa/pa-7100.h: Delete file.
197
8dcb27ed
RS
1982002-06-15 Roger Sayle <roger@eyesopen.com>
199
200 * fold-const.c (comparison_to_compcode): New function to convert
201 an comparison TREE CODE into a bit-based representation.
202 (compcode_to_comparison): New function to convert from this bit
203 based representation back to a comparison TREE CODE.
204 (fold_truthop): Simplify (x<y) && (x==y) and related composite
205 comparisons.
206
182e515e
AH
2072002-06-15 Aldy Hernandez <aldyh@redhat.com>
208
209 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
210
211 * stor-layout.c (compute_record_mode): Remove check for
212 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
213 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
214 MEMBER_TYPE_FORCES_BLK.
215
216 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
217
218 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
219
8773135d
JS
2202002-06-14 Jeff Sturm <jsturm@one-point.com>
221
222 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
223
893a047c
SE
2242002-06-14 Steve Ellcey <sje@cup.hp.com>
225
226 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
227 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
228 * configure, config.in: Regenerate.
229
045d7161
EB
2302002-06-14 Eric Botcazou <ebotcazou@multimania.com>
231
232 * loop.c (check_final_value): Use v->always_executed
233 instead of v->always_computable.
234 * unroll.c (final_giv_value): Don't calculate the final
235 value as a function of the biv if the giv is not computed
236 for every loop iteration.
237
048c8616
EB
2382002-06-14 Eric Botcazou <ebotcazou@multimania.com>
239
240 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
241
43e4a9d8
EB
2422002-06-14 Eric Botcazou <ebotcazou@multimania.com>
243
52689a98 244 PR c/6677
43e4a9d8
EB
245 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
246 the truncation down when the target type is signed.
247 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
248 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
249 the conversion if the target type is a smaller type.
250
fa4a5557
RH
2512002-06-14 Richard Henderson <rth@redhat.com>
252
253 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
254 earlier. Re-factor comparisons vs extrema.
255
d95eb49f
RH
2562002-06-14 Richard Henderson <rth@redhat.com>
257
258 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
259
be202ec2
FS
2602002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
261
262 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
263 * sched-deps.c (add_dependence): Likewise.
264 (group_leader): Likewise.
265 * sched-rgn.c (init_ready_list): Likewise.
266 * doc/rtl.texi: Adjust accordingly.
267
e56c4463
JL
2682002-06-13 Jeffrey Law <law@redhat.com>
269
99a15921
JL
270 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
271 null pointer checks were eliminated. Update prototype.
272 (delete_null_pointer_checks): Similarly.
273 * rtl.h (delete_null_pointer_checks): Update prototype.
274 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
275 delete_null_pointer_checks deletes one or more null
276 pointer checks. Do not run cleanup_cfg before gcse, the
277 CFG is accurate and optimized at that point..
278
e56c4463
JL
279 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
280 of hard registers.
281
556b821e
UW
2822002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
283
284 * Makefile.in (libgcc.mk): Depend on specs.
285
fa60f36d
R
286Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
287
288 * sh.md (mulsi3): Update way how to find insns in a sequence.
289
03b8ec29
DD
290Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
291
292 * sh.h: Define HARD_REGNO_RENAME_OK
293 * sh.c: sh_hard_regno_rename_ok: New. If current function has
294 interrupt_handler attribute, only registers saved on stack are OK.
295 * sh-protos.h: Declare sh_hard_regno_rename_ok.
296
8e831557
KK
2972002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
298
299 * config/sh/sh.md (jump): Emit jump insn.
300 (call_pcrel): Get pattern of the result of gen_call_site.
301 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
302
bf9d5852
NB
3032002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
304
305 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
306 * cpptrad.c: Update comments.
307 (skip_whitespace, copy_comment): Take a new parameter.
308 (skip_escaped_newlines): Don't duplicate escaped newline test.
309 (copy_comment): Different location for CUR, decide here how
310 to copy / replace the comment.
311 (skip_whitespace): Copy whitespace.
312 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
313 (scan_out_logical_line): Let copy comment handle keeping or
314 replacing comments.
315 (scan_parameters, _cpp_create_trad_definition): Update.
316
57292ec3
AL
3172002-06-13 Alan Lehotsky <apl@alum.mit.edu>
318
319 * reload.c (get_secondary_mem,find_reloads_address,
320 find_reloads_address_1): Pass reference to MEM to find_reloads_address
321 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
322
a6f5e048
RH
3232002-06-13 Jessica Han <jessica@cup.hp.com>
324
325 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
326 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
327 * doc/tm.texi: Document them.
328 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
329 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
330 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
331 (ASM_OUTPUT_FDESC): Likewise.
332
3aafa0bb
EC
3332002-06-13 Eric Christopher <echristo@redhat.com>
334
335 * diagnostic.c (output_format): Fix thinko.
336
8e581963
R
337Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
338
339 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
340 (DWARF2_UNWIND_INFO): Define to 0.
9d7ed806
R
341
342 * config/sh/sh.c (calc_live_regs): Don't use initial_value
343 optimization for PR_MEDIA_REG.
344
b66377c1
NB
3452002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
346
347 * cpphash.h (_cpp_lex_identifier_trad): Remove.
348 * cpplib.c (end_directive): Don't skip, always remove overlay
349 apart from #define.
350 (prepare_directive_trad): Handle NULL pfile->directive.
351 (_cpp_handle_directive): Always call prepare_directive_trad
352 if traditional.
353 * cppmain.c (check_multiline_token): Rename account_for_newlines,
354 generalize inputs.
355 (scan_translation_unit_trad): Use it.
356 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
357 output, get escaped newline in comment close correct.
358 (check_output_buffer, skip_whitespace): Update.
359 (_cpp_lex_identifier_trad): Remove.
360 (scan_out_logical_line): Handle -C and comments in directives
361 properly.
362
8bc6e101
R
363Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
364
365 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
366 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
367 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
368 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
369 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
370 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
371 (SELECT_SH5_COMPACT_NOFPU): Likewise.
372 (TARGET_SWITCHES): Use them.
373 (TARGET_CPU_DEFAULT): Define if not already defined.
374 (TARGET_DEFAULT): Use it.
375 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
376 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
377 * config/sh/t-monolib: New file.
378
2181005d
RS
3792002-06-13 Roger Sayle <roger@eyesopen.com>
380
381 * toplev.c (rest_of_compilation): Simplify (and correct) the
382 logic of the first delete-null-pointer-checks pass.
383
aaae0bb9
JH
384Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
385
386 * i386.c (ix86_expand_movstr): Fix pasto.
387
388Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
b80cb6e2
JH
389
390 * reload.c (find_valid_class): Fix thinko in my previous patch.
391
dd3fbd93
UW
3922002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
393
394 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
395 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
396 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
397 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
398
0d0f605c
GDR
3992002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
400
401 * tree-inline.c (expand_call_inline): Don' mess with _DECL
3aafa0bb 402 fields.
0d0f605c 403
c92bcccb
GDR
4042002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
405
406 * diagnostic.c (output_format): Recognize "%H" as a format
407 specifier for a location_t.
408 (text_specifies_location): New function.
409 (diagnostic_set_info): Use it.
410
7f243674
JL
4112002-06-13 Jeffrey Law <law@redhat.com>
412
6cde4876
JL
413 * emit-rtl.c (static_regno_reg_rtx): Define.
414 (init_emit_once): Initialize static_regno_reg_rtx.
415 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
416 of building new hard reg objects once per function.
417 (gen_rtx_REG): Try to share hard regs.
418 * regclass.c (init_fake_stack_mems): New function broken out from
419 init_regs.
420 * rtl.h (init_fake_stack_mems): Declare.
421 * toplev.c (lang_independent_init): Call init_regs before
422 init_emit_once. Call init_fake_stack_mems after init_emit_once.
423
110b3faa
JL
424 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
425
7f243674
JL
426 * alias.c (argument_registers): Remove.
427 (init_alias_once): Initialize static_reg_base_value here. Remove
428 initialization of argument_registers.
429 (init_alias_once_per_function): Remove.
430 (init_alias_analysis): Copy all the entries from static_reg_base_value
431 into new_reg_base_value all at once.
432 * rtl.h (init_alias_once_per_function): Remove declaration.
433 * function.c (prepare_function_start): Do not call
434 init_alias_once_per_function.
435
436 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
437 starting a sequence and emitting an INSN.
438
a336f2e5
RS
4392002-06-13 Richard Sandiford <rsandifo@redhat.com>
440
441 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
442
2acf0fa9
DM
4432002-06-13 David S. Miller <davem@redhat.com>
444
445 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
446
974c43f1
NB
4472002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
448
449 * cpplib.c (end_directive): Handle line skipping. Only remove
450 the rest of the line if the directive was valid.
451 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
452 expanding a traditional macro.
453 * cpptrad.c (recursive_macro): New.
454 (read_logical_line_trad): Handle skipping.
455 (scan_out_logical_line): Continue after a successful directive.
456 Don't expand macros whilst skipping, or if recursing.
457 (_cpp_create_trad_definition): scan_out_logical_line now sets
458 the output current position.
459
12bf26b6
EC
4602002-06-12 Eric Christopher <echristo@redhat.com>
461
462 From Chris Demetriou <cgd@broadcom.com>
463 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
464 comment.
465 (ISA_HAS_MADD_MSUB): Ditto.
466 (ISA_HAS_NMADD_NMSUB): Ditto.
467
be95b8a5
EC
4682002-06-12 Eric Christopher <echristo@redhat.com>
469
470 * config.gcc: Consolidate little endian handling and
471 little/big endian targets.
472 * config/mips/elfl.h: Remove file.
473 * config/mips/elfl64.h: Ditto.
474 * config/mips/ecoffl.h: Ditto.
475 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
476
e03856fe
GK
4772002-06-12 Geoffrey Keating <geoffk@redhat.com>
478
479 * gengtype.h (xvasprintf): New prototype.
480 (xasprintf): New prototype.
481 (struct outf): New.
482 (get_output_file): Return an outf_p.
483 (header_file): Is now an outf_p.
484 (base_files): Now are outf_p.
485 (oprintf): New.
486 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
487 rather than stdio operations. Use xasprintf in a few places,
488 when appropriate.
489 (xvasprintf): New.
490 (xasprintf): New.
491 (struct filemap): Delete.
492 (files): Delete.
493 (output_files): New.
494 (oprintf): New.
495 (create_file): Create an outf_p. Add parameter to indicate output
496 file name, change all callers.
497 (open_base_files): Create gtype-desc.c here.
498 (get_output_file_with_visibility): Rewrite.
499 (get_output_file_name): Just look at 'name' field in struct outf.
500 (close_output_files): Rewrite.
501
ec01703c
JT
5022002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
503
504 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
be95b8a5 505 (MASK_G_FLOAT): Define.
ec01703c
JT
506 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
507 (TARGET_SWITCHES): Likewise.
508 (TARGET_DEFAULT): Likewise.
509
8b0397a6
DJ
5102002-06-12 Daniel Jacobowitz <drow@mvista.com>
511
512 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
513 * config/mips/mips.c (mips_output_filename): Don't print a
514 ".file" directive if we are using DWARF-2.
515 (mips_output_function_prologue): Do not emit source file
516 name for TARGET_GAS.
517
495333a6
JH
518Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
519
520 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
521 decide whether emit the short opcode.
522 * i386.h (x86_shift1): Declare.
523 (TARGET_SHIFT1): New macro.
524 * i386.c (x86_shift1): New global variable.
525
8b0397a6
DJ
526 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
527 unconditionally; make loop to rebuild CFG; kill unnecesary
528 find_basic_block calls; kill compute_bb_for_insn call.
495333a6
JH
529 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
530 * haifa-sched.c (sched_init): Likewise.
531 * ssa-ccp.c (ssa_const_prop): Likewise.
532 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
533
d11cea13
DM
5342002-06-11 David S. Miller <davem@redhat.com>
535
536 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
537 active_insn_p.
538
676997cf
RH
5392002-06-11 Richard Henderson <rth@redhat.com>
540
541 * c-common.c (builtin_define_type_max): New.
542 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
543 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
544
545 From Joseph S. Myers:
546 * glimits.h: Rewrite to expect the double underscore definitions
547 from the compiler.
548
549 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
550 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
551 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
552 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
553 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
554 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
555 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
556 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
557
116b7a5e
RH
5582002-06-11 Richard Henderson <rth@redhat.com>
559
560 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
561 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
562 (code_for_builtns): Update.
563 (alpha_init_builtins): Add __builtin_thread_pointer and
564 __builtin_set_thread_pointer.
565 (alpha_expand_builtin): Handle void builtins.
566 * doc/extend.texi (Alpha Built-in Functions): Update.
567
0cec6af1
HPN
5682002-06-11 Hans-Peter Nilsson <hp@axis.com>
569
570 PR target/6997
571 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
572
1c0ca89d
ZW
5732002-06-11 Zack Weinberg <zack@codesourcery.com>
574
575 * config.gcc: Make the name of the extra-modes file adjustable
576 by target stanzas.
577 (s390x, strongarm, xscale stanzas): Use this facility.
578 * configure.in: Update to match.
579 * configure: Regenerate.
580
5dc8d536
AH
5812002-06-11 Aldy Hernandez <aldyh@redhat.com>
582
1c0ca89d
ZW
583 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
584 max/mins as unsigned GE compares.
5dc8d536 585
169274cd
JT
5862002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
587
1c0ca89d 588 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
169274cd
JT
589 * config/vax/bsd.h: New file.
590 * config/vax/netbsd.h: Add missing notice.
1c0ca89d
ZW
591 (CPP_PREDEFINES): Remove.
592 (TARGET_OS_CPP_BUILTINS): Define.
593 (CPP_SPEC): Use NETBSD_CPP_SPEC.
169274cd
JT
594 * config/vax/openbsd.h: Update copyright years.
595 (CPP_PREDEFINES): Remove.
596 (TARGET_OS_CPP_BUILTINS): Define.
597 * config/vax/ultrix.h: Likewise.
598 * config/vax/vaxv.h: Likewise.
599 * config/vax/vms.h: Likewise.
600 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
601 (CPP_PREDEFINES, CPP_SPEC): Remove.
602
2f41793e
JH
603Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
604
605 * i386.md (addqi_1_slp, subqi_1_slp
606 (andqi_ext0, testqi_ext0): Remove unnecesary check.
607 (addhi*, addqi*): Simplify "dec" condition.
608 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
609 (and, or, xor to QImode splitters): New.
610 (iorqi_ext*): New.
611 (xorqi_ext_0): New.
612 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
613 (andqi_ext_1_rex64): New.
614 (ashrqi*_slp): New.
615 (ashlqi*_slp): New.
616 (lshlqi*_slp): New.
617 (rotrqi3*_slp): New.
618 (rotlqi3*_slp): New.
619
fc5c400a
GK
6202002-06-11 Geoffrey Keating <geoffk@redhat.com>
621
4c4eb375
GK
622 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
623 softfloat.h.
624 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
625 (CPP_ENDIAN_LITTLE_SPEC): Delete.
626 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
627 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
628 __LONG_DOUBLE_128__ setting, _CALL_* setting.
629 (CPP_DEFAULT_SPEC): Delete.
630 (CPP_FLOAT_DEFAULT_SPEC): Delete.
631 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
632 (CPP_SYSV_DEFAULT_SPEC): Delete.
633 (CPP_ENDIAN_BIG_SPEC): Delete.
634 (CPP_ENDIAN_LITTLE_SPEC): Delete.
635 (CPP_ENDIAN_SPEC): Delete.
636 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
637 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
638 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
639 cpp_longdouble_default.
640 * config/rs6000/softfloat.h: Delete.
641 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
642 (EXTRA_SPECS): Delete cpp_cpu.
643 (TARGET_CPU_CPP_BUILTINS): New.
644 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
645 prototype.
646 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
647 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
648 (CPP_DEFAULT_SPEC): Delete.
649 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
650 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
651 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
652 (CPP_DEFAULT_SPEC): Delete.
653 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
654 (CPLUSPLUS_CPP_SPEC): Likewise.
655 (CPP_CPU_SPEC): Delete.
656 (CPP_DEFAULT_SPEC): Delete.
657 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
658 (CPLUSPLUS_CPP_SPEC): Likewise.
659 (CPP_CPU_SPEC): Delete.
660 (CPP_DEFAULT_SPEC): Delete.
661 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
662 (CPP_DEFAULT_SPEC): Delete.
663 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
664 (CPP_DEFAULT_SPEC): Delete.
665
fc5c400a
GK
666 * doc/gty.texi: Small updates.
667
13f0d49c
GDR
6682002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
669
670 * objc/objc-act.c (warn_with_ivar): Adjust calls to
671 diagnostic_count_error.
672 (warn_with_method): Likewise.
673
674 * diagnostic.h (warnings_are_errors_message): New field of
675 diagnostic_context.
676 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
677 match semantics.
678 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
679 (diagnostic_count_diagnostic): Make aware of other kinds of
1c0ca89d 680 diagnostics.
13f0d49c
GDR
681 (diagnostic_initialize): Initialize warnings_are_errors_message field.
682
0797e472
TT
6832002-06-11 Tom Tromey <tromey@redhat.com>
684
685 For PR java/6520:
686 * fold-const.c (fold_convert): Don't modify existing tree's type.
687
f288d4aa
GK
6882002-06-11 Geoffrey Keating <geoffk@redhat.com>
689
690 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
691
d27bab4c
RH
6922002-06-11 Richard Henderson <rth@redhat.com>
693
694 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
695
bc2a8f08
RH
6962002-06-11 Richard Henderson <rth@redhat.com>
697
1c0ca89d 698 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
bc2a8f08
RH
699 DWARF2_UNWIND_INFO is false.
700
b217ec1b
BW
7012002-06-11 Bob Wilson <bob.wilson@acm.org>
702
703 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
704
11819f80
UW
705 * config/s390/s390.c (emit_prologue): gen_store_multiple
706 returns an insn now, not a pattern.
707
c2727579
RO
7082002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
709
710 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
711 $(TEXI2DVI) -o.
712
285464d0
JH
713Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
714
715 * i386.c (x86_promote_QImode): Set for Athlon
716 (x86_fast_prefix): New global variable.
717 (x86_arch_always_fancy_math_387): Fix formating.
718 * i386.h (x86_fast_prefix): Declare
719 (TARGET_FAST_PREFIX): define.
720 * i386.md (and to strict_low_part, HI to SI
721 promoting splitter): Use new macro.
722
723 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
724
1bb1f121
ZW
7252002-06-11 Zack Weinberg <zack@codesourcery.com>
726
727 * Makefile.in (distclean): Delete junk left in testsuite
728 directory, too.
729
88c65786
JL
7302002-06-11 Jeffrey Law <law@redhat.com>
731
c6a3fcf0
JL
732 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
733 last insn created by the splitter.
734
0db79a6b
JL
735 * caller-save.c (init_caller_save): Move creation of SAVEINSN
736 and RESTINSN into into the scope of the sequence.
737
47eb2ca8
JL
738 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
739 RETURN insns.
740
603b4b92
JL
741 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
742
88c65786
JL
743 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
744 not the pattern. So extract the pattern from the insn.
882c7223
JL
745
746 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
747
df14489a
UW
7482002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
749
750 * config/s390/s390.md (movsi): Only use floating point
751 register alternatives when operands are already fprs.
752 (movdi_31, movdi_64): Likewise.
753
6f9703af
DM
7542002-06-11 David S. Miller <davem@redhat.com>
755
756 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
757 Only run RTX equality checks on INSN_P rtl.
758
b2ccb744
UW
7592002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
760
761 * config/s390/s390.md (reload_base, ltorg): Remove.
1c0ca89d 762 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
b2ccb744 763 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1c0ca89d 764 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
b2ccb744
UW
765 s390_asm_output_pool_prologue): Likewise.
766 * s390.h (s390_pool_start_insn): Likewise.
767
1c0ca89d 768 * s390.c (s390_output_symbolic_const): Remove support for
b2ccb744
UW
769 old-style pool chunks.
770 (s390_function_epilogue): Likewise.
1c0ca89d 771 (s390_output_constant_pool): Likewise. Also, fix incorrect
b2ccb744
UW
772 alignment for 64-bit literal pools.
773 (print_operand_address): Remove 'y' and 'Y' format flags.
1c0ca89d 774 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
b2ccb744
UW
775 old-style pool chunks.
776 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
777 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
778 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
779
780 * s390.c (consttable_operand): New function.
781 * s390-protos.h (consttable_operand): Declare it.
782 * s390.h (PREDICATE_CODES): Add consttable_operand.
1c0ca89d
ZW
783 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
784 consttable_sf, consttable_df, pool_start_31, pool_end_31,
b2ccb744
UW
785 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
786 * s390.c (struct constant, struct constant_pool): New data types.
787 (constant_modes, gen_consttable): New variables.
1c0ca89d 788 (s390_start_pool, s390_end_pool, s390_add_pool,
b2ccb744 789 s390_dump_pool, s390_free_pool): New functions.
1c0ca89d 790 (s390_chunkify_pool): Completely reimplement literal pool
b2ccb744
UW
791 overflow handling.
792
793 * s390.c (s390_pool_overflow): New variable.
794 * s390.h (s390_pool_overflow): Declare it.
1c0ca89d 795 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
b2ccb744
UW
796 jumps in literal pool overflow situations.
797
798 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1c0ca89d 799 (s390_frame_info): Account for possible use of RETURN_REGNUM
b2ccb744
UW
800 by new literal pool overflow code.
801 (s390_emit_prologue): Likewise.
802
2f937369
DM
8032002-06-05 David S. Miller <davem@redhat.com>
804
805 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
806 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
807 emit_insns_before_scope, emit_insns_after,
808 emit_insns_after_scope): Delete declaration.
809 * ada/misc.c (insert_code_for): Use emit_insn* instead of
810 emit_insns_foo.
811 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
812 (alpha_set_memflags): Fix comment.
813 (set_frame_related_p): Use get_insns instead of gen_sequence.
814 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
815 emitting no insns.
816 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
817 gen_sequence.
818 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
819 * config/fr30/fr30.c (fr30_move_double): Likewise.
820 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
821 Likewise.
822 * config/ia64/ia64.c (spill_restore_mem): Likewise.
823 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
824 no insns.
825 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
826 instead of gen_sequence.
827 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
828 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
829 * config/sh/sh.c (sh_need_epilogue): Likewise.
830 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
831 attributes.
832 (setjmp pattern and split): Use them to avoid splitter which emits
833 no RTL.
834 * genattrtab.c (main): Emit include of function.h
835 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
836 get_insns instead of gen_sequence.
837 * config/cris/cris.c (cris_split_movdx): Likewise.
838 * emit-rtl.c (emit_insns*): Kill.
839 (try_split): Expect insn list instead of SEQUENCE.
840 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
841 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
842 Make them abort if a SEQUENCE is given and RTL checking is
843 enabled.
844 (emit_*_scope): Don't forget to set scope on final insn.
845 (gen_sequence): Move from here...
846 * ssa.c (gen_sequence): To here as private function.
847 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
848 comments.
849 (expand_builtin_return, expand_builtin_mathfn): Likewise.
850 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
851 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
852 (expand_builtin_expect_jump): Use get_insns and fix comments.
853 * calls.c (try_to_integrate): Use emit_insn_foo.
854 (expand_call, emit_library_call_value_1): Likewise.
855 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
856 (emit_move_insn_1): Use get_insns instead of gen_sequence.
857 (expand_expr): Use emit_insn_foo.
858 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
859 * except.c (build_post_landing_pads): Likewise.
860 * flow.c (attempt_auto_inc): Likewise.
861 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
862 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
863 * function.c (fixup_var_refs_insn): Use get_insns instead of
864 gen_sequence.
865 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
866 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
867 (fixup_stack_1, purge_addressof_1, expand_main_function,
868 get_arg_pointer_save_area): Likewise.
869 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
870 expand_function_end): Use emit_insn_foo.
871 (record_insns, keep_stack_depressed): Work with insn list instead
872 of SEQUENCE, fix comments.
873 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
874 noce_try_store_flag_constants, noce_try_store_flag_inc,
875 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
876 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
877 (noce_process_if_block): Use get_insns instead of gen_sequence.
878 * optabs.c (add_equal_note): Work with insn list, fix comments.
879 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
880 (expand_unop, expand_complex_abs, expand_unop_insn,
881 expand_no_conflict_block): Likewise.
882 (gen_move_insn): Use get_insns instead of gen_sequence.
883 (gen_cond_trap): Likewise.
884 * integrate.c (copy_rtx_and_substitute): Likewise.
885 (emit_initial_value_sets): Use emit_insn_foo.
886 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
887 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
888 now that RTL generators give insn lists.
889 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
890 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
891 instead of gen_sequence.
892 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
893 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
894 instead of gen_sequence.
895 * loop.c (move_movables, emit_prefetch_instructions,
896 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
897 Likewise.
898 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
899 (product_cheap_p): Likewise, and add commentary about RTL wastage
900 here.
901 * lcm.c (optimize_mode_switching): Use get_insns instead of
902 gen_sequence.
903 * profile.c (gen_edge_profiler): Likewise.
904 * regmove.c (copy_src_to_dest): Likewise.
905 * reg-stack.c (compensate_edge): Likewise and fix comment.
906 * gcse.c (process_insert_insn): Likewise.
907 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
908 * jump.c (delete_prior_computation): Update comment.
909 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
910 of gen_sequence, update comments to match.
911 * recog.c (peephole2_optimize): Work with insn lists instead of
912 SEQUENCE rtl.
913 * sched-vis.c (print_pattern): Abort on SEQUENCE.
914 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
915 Use get_insns instead of gen_sequence.
916 (copy_loop_body): Likewise and don't emit dummy NOTE.
917 * genrecog.c: Don't mention SEQUENCE rtl in comments.
918 * combine.c (try_combine): Expect insn lists from split generator.
919 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
920 hand.
1c0ca89d 921
43cf10b5
RS
9222002-06-11 Roger Sayle <roger@eyesopen.com>
923 Andreas Jaeger <aj@suse.de>
924
925 * cfgbuild.c: Update copyright years.
926
1062f15a
AS
9272002-06-11 Andreas Schwab <schwab@suse.de>
928
1c0ca89d 929 * config/m68k/m68k.h (PREDICATE_CODES): Define.
1062f15a 930
ce3649d2
EC
9312002-06-11 Eric Christopher <echristo@redhat.com>
932
933 * doc/tm.texi (Run-time Target): Add comment about flag_iso
934 and strict ANSI.
935 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
936 * config/mips/ecoffl.h: Ditto.
937 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
938 (CPP_PREDEFINES): Ditto.
939 * config/mips/elfl64.h: Ditto.
940 * config/mips/elfl.h: Ditto.
941 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
942 out until irix header consolidation.
943 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
944 with SUBTARGET_OS_CPP_BUILTINS.
945 * config/mips/iris6.h: Ditto.
946 (CPLUSPLUS_CPP_SPEC): Remove.
947 * config/mips/linux.h: Ditto.
948 * config/mips/netbsd.h: Ditto.
949 * config/mips/openbsd.h: Ditto.
950 * config/mips/rtems.h: Ditto.
951 * config/mips/rtems64.h: Ditto.
952 * config/mips/sni-svr4.h: Ditto.
953 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
954 ISA_MIPS32, ISA_MIPS64): New defines.
955 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
956 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
957 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
958 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
959 (TARGET_CPU_CPP_BUILTINS): Define.
960 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
961 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
962 (movdicc): Remove check for ISA_MIPS32.
963 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
964 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
965 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
966 sunge_sf, sunle_df, sunle_sf): New patterns.
967
bc3437ba
NB
9682002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
969
970 * Makefile.in: Update cppmain.o.
971 * cpphash.h (struct cpp_reader): Move some members to a
972 nested structure.
973 (trad_line): Rename saved_line.
974 (_cpp_read_logical_line_trad): Update.
975 (_cpp_remove_overlay): New.
976 * cppinit.c (cpp_create_reader): No need to set saved_line.
977 (cpp_destroy): Update.
978 (cpp_read_main_file): Only overlay if compiling.
979 * cpplex.c (continue_after_nul): Return false if in directive.
980 * cpplib.c (EXPAND): New.
981 (directive_table, SEEN_EOL): Update.
982 (end_directive): Remove overlay if traditional; don't skip
983 line in traditional #define.
984 (prepare_directive_trad): New.
985 (_cpp_handle_directive, run_directive): Update for traditional
986 directives.
987 (lex_macro_node): Simplify, don't use lex_identifier_trad.
988 * cpplib.h (struct options): Add preprocess_only.
989 * cppmain.c: Don't include intl.h.
990 (cpp_preprocess_file): Set options->preprocess_only.
991 (scan_translation_unit_trad): Fix, and print line numbers.
992 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
993 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
994 save_replacement_text, _cpp_create_trad_definition): Update for
995 variable renaming.
996 (_cpp_overlay_buffer): Save line number.
997 (_cpp_remove_overlay): Rename from restore_buff, restore line.
998 (_cpp_read_logical_line_trad): Don't handle overlays here.
999 (scan_out_logical_line): Process directives.
1000
b25bb36a
DS
10012002-06-11 Danny Smith <dannysmith@users.sourforge.net>
1002
1003 * gthr-win32.h: Wrap functions in extern "C".
1004 (__gthread_key_t): Typedef as unsigned long,
1005 not win32 DWORD.
1006 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
1007 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
1008 (__gthr_win32_once, __gthr_win32_key_create,
1009 __gthr_win32_key_delete, __gthr_win32_getspecific,
1010 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1011 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1012 __gthr_win32_mutex_unlock): Declare.
1013 (__gthread_once,__gthread_key_create,
1014 __gthread_key_delete, __gthread_getspecific,
1015 __gthread_setspecific, __gthread_mutex_init_function,
1016 __gthread_mutex_lock,__gthread_mutex_trylock,
1017 __gthread_mutex_unlock): Call corresponding
1018 __gthr_win32_* extern implementations if #defined
1019 __GTHREAD_HIDE_WIN32API.
1020 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
ce3649d2 1021 $(srcdir)/config/i386/gthr-win32.c
b25bb36a
DS
1022 * config/i386/gthr-win32.c: New implementation file.
1023 (__gthr_win32_once, __gthr_win32_key_create,
1024 __gthr_win32_key_delete, __gthr_win32_getspecific,
1025 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1026 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1027 __gthr_win32_mutex_unlock): New functions, based on
1028 static inlines in gthr-win32.h.
1029
a69c385e
BW
10302002-06-10 Bob Wilson <bob.wilson@acm.org>
1031
1032 * config/xtensa/xtensa.c (override_options): Don't warn about
1033 using -fpic or -fPIC when PIC is enabled by default.
1034
e654730d
RS
10352002-06-10 Roger Sayle <roger@eyesopen.com>
1036
1037 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
1038
a5381466
ZW
10392002-06-10 Zack Weinberg <zack@codesourcery.com>
1040
1041 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
ce3649d2 1042 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
a5381466
ZW
1043 exists, substitute its pathname as @extra_modes_file@, define
1044 EXTRA_MODES_FILE to be an appropriate string to #include it
1045 with, and define EXTRA_CC_MODES to 1.
1046
1047 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
1048 it's defined. Get rid of redundancy in calling sequence for
1049 CC; don't use it to define CCmode, to avoid a warning.
1050 * libgcc2.c: Include symcat.h for the sake of machmode.def.
1051
1052 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
1053 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
1054 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
1055 New files.
1056 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
1057 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
1058
1059 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
1060 defining extra CC modes.
1061
852c6ec7
RS
10622002-06-10 Roger Sayle <roger@eyesopen.com>
1063 Andreas Jaeger <aj@suse.de>
1064
1065 * cfgrtl.c (create_basic_block_structure): Remove index argument
1066 and use last_basic_block++ instead. (create_basic_block): Update.
1067 * cfgbuild.c (find_basic_blocks_1): Likewise.
1068
1069 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
1070 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
1071 * sched-ebb.c (schedule_ebbs): Likewise.
1072 * sched-rgn.c (schedule_insns): Likewise.
1073 * ssa-ccp.c (ssa_const_prop): Likewise.
1074 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
1075 * toplev.c (rest_of_compilation): Likewise.
1076 * config/ia64/ia64.c (ia64_reorg): Likewise.
1077
60c86d4e
RS
10782002-06-10 Roger Sayle <roger@eyesopen.com>
1079
1080 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
1081 of matching registers.
1082
9543a9d2
RS
10832002-06-10 Roger Sayle <roger@eyesopen.com>
1084
1085 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
1086 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
1087
38e18619
HPN
10882002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
1089
1090 * config/mmix/mmix.h: Improve comments.
1091 (CPP_SPEC, CPP_PREDEFINES): Don't define.
1092 (TARGET_CPU_CPP_BUILTINS): Define.
1093 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
1094 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
1095 unused predicate.
1096 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
1097 compiler warning.
1098 (mmix_constant_address_p): Remove another
1099 redundant test before case.
1100 (mmix_canonicalize_comparison): Remove unused function.
1101 (mmix_print_operand_address): Don't test and adjust for operand in
1102 non-canonical format.
1103 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
1104 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
1105
ac17cd8f
ZW
11062002-06-10 Zack Weinberg <zack@codesourcery.com>
1107
1108 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
1109 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
1110 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
1111 (gen_compare): Use CCmode unconditionally.
1112
7b668f9e
JJ
11132002-06-10 Jakub Jelinek <jakub@redhat.com>
1114
1115 PR optimization/6759
1116 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
1117 the REQ_EQUAL note.
1118
85d49058
JJ
11192002-06-10 Jakub Jelinek <jakub@redhat.com>
1120
1121 PR c/6660
1122 * c-decl.c (grokfield): Allow user defined types if they declare
1123 structs or unions for unnamed fields.
1124
50f30e6b
JJ
11252002-06-10 Jakub Jelinek <jakub@redhat.com>
1126
1127 PR c/6809
1128 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
1129
156755ac
JJ
11302002-06-10 Jakub Jelinek <jakub@redhat.com>
1131
1132 PR optimization/6842
1133 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
1134 operand subreg cannot be simplified.
1135
5d056e9b
JJ
11362002-06-10 Jakub Jelinek <jakub@redhat.com>
1137
1138 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
1139 (compare_constant): Likewise.
1140 (output_addressed_constants): Likewise.
1141
2bf87216
JJ
11422002-06-10 Jakub Jelinek <jakub@redhat.com>
1143
1144 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
1145 merge bb with itself.
1146
135fd2d8
RH
11472002-06-10 Richard Henderson <rth@redhat.com>
1148
1149 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
1150 (builtin_zapnot): Likewise.
1151
1152 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
1153 reservation.
1154
fce5a9f2
EC
11552002-06-10 Eric Christopher <echristo@redhat.com>
1156
1157 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
1158 prototype and function.
1159 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
1160 (call_insn_operand): Remove half pic references.
1161 (legitimate_address_p): Ditto.
1162 * config/i386/i386.h: Remove half pic defines.
1163
95b1627e
EC
11642002-06-10 Eric Christopher <echristo@redhat.com>
1165
1166 * doc/extend.texi (Return Address): Add note explaining the side-
1167 effects of inlining on __builtin_return_address.
1168
aea185b3
TT
11692002-06-10 Tom Tromey <tromey@redhat.com>
1170
1171 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
1172 (c-common.o): Depend on langhooks.h.
1173
afb03408
NB
11742002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1175
1176 * cpphash.h (_cpp_read_logical_line_trad,
1177 _cpp_expansions_different_trad): Update prototypes.
1178 * cpplex.c (continue_after_nul): New.
1179 * cppmain.c: Include cpphash.h.
1180 (scan_translation_unit_trad): New.
1181 (cpp_preprocess_file): Call it.
1182 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
1183 overlay.
1184 (_cpp_expansions_different_trad): Update prototype.
1185
2754d3c5
R
1186Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1187
1188 Fix cfi generation for SH[1-4]:
1189
1190 * sh.c (frame_insn): New function.
1191 (output_stack_adjust): Add parameter emit_fn. All callers changed.
1192 (push): Now returns rtx. Use frame_insn.
1193 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
1194 of a DF register.
1195 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
1196
ad854f24
ZW
11972002-06-10 Zack Weinberg <zack@codesourcery.com>
1198
1199 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
1200 and gtype-desc.c.
1201 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
1202 (distclean): ... not here. But do delete all testsuite/*.log,
1203 testsuite/*.sum files here. Delete mkheaders. Delete
1204 po/*.gmo and the testsuite directory in a split tree build.
1205
bf1660a6
JL
12062002-06-10 Jeffrey Law <law@redhat.com>
1207
1208 * alias.c (static_reg_base_value): New to hold RTL for
1209 items allocated once per function for the aliasing code.
1210 (init_alias_once_per_function): Initialize static_reg_base_value.
1211 (init_alias_analysis): Avoid throw-away allocations of RTL by
1212 using pre-computed values in static_reg_base_value.
1213 * function.c (prepare_function_start): Call
1214 init_alias_once_per_function appropriately.
1215 * rtl.h (init_alias_once_per_function): Declare.
1216 * caller-save (init_caller_save): Restructure slightly to
1217 avoid lots of silly RTL generation.
1218 * expr.c (init_expr_once): Likewise.
1219 * reload1.c (reload_cse_regs_1): Allocate throw-away register
1220 RTL object here. Pass it into children.
1221 (reload_cse_simplify_operands): Use passed-in register RTL
1222 object.
1223 (reload_cse_simplify): Pass through throw-away register
1224 RTL object.
1225
8dc58484 12262002-06-10 Daniel Berlin <dberlin@dberlin.org>
ad854f24 1227
8dc58484
DB
1228 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
1229
ea16b5ee
RS
12302002-06-10 Richard Sandiford <rsandifo@redhat.com>
1231
1232 * gcc.c (process_command): Avoid assignment to read-only location.
1233 Fix sizeof calculation.
1234
6618c5d4
NB
12352002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1236
1237 * cpphash.h (struct cpp_macro): Put comments on their own lines.
1238 (_cpp_expansions_different_trad): New.
1239 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
1240 * cpptrad.c (canonicalize_text): New.
1241 (scan_out_logical_line): Handle no arguments correctly.
1242 (save_replacement_text): Commit memory when finished.
1243 (_cpp_expansions_different_trad): New.
1244
96e3ac4f
TJ
12452002-06-10 Tim Josling <tej@melbpc.org.au>
1246
1247 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
1248 TREELANG and COBOL.
1249 (lang_names): Add treelang and cobol.
1250 (get_file_basename): Add code to support treelang and cobol as
1251 4th and 5th users of c-common.c.
1252
37a4aa31
GK
12532002-06-09 Geoffrey Keating <geoffk@redhat.com>
1254
1255 * Makefile.in (install-driver): Install driver as
1256 $(target_alias)-gcc-$(version).
1257 * gcc.c (spec_version): Make const.
1258 (process_command): Handle -V and -b by using exec.
1259 * doc/invoke.texi (Target Options): Restore -V option,
1260 update docs for -b option.
1261
02ef40d9
TJ
12622002-06-10 Tim Josling <tej@melbpc.org.au>
1263
ad854f24
ZW
1264 * configure.in (remaining_languages_check):
1265 Added check that all languages specified were found.
02ef40d9
TJ
1266 Exit if not found. Previous behaviour was silent failure.
1267 * configure: Regenerated.
1268
b38b97c4 12692002-06-10 Tim Josling <tej@melbpc.org.au>
ad854f24 1270
1c0ca89d 1271 First steps to making treelang documentation compliant, based on
b38b97c4
TJ
1272 instructions in sourcebuild.texi. Also add to gcc.c list of
1273 default languages.
ad854f24 1274
b38b97c4
TJ
1275 * doc/contrib.texi: Add self as contributor of treelang.
1276
1277 * doc/frontends.texi: Add mention of treelang.
1278
1279 * doc/invoke.texi (Overall Options): Add mention of treelang.
1280
1281 * doc/standards.texi: Add mention of treelang.
1282
ae9dbf1f
HPN
12832002-06-09 Hans-Peter Nilsson <hp@axis.com>
1284
1285 * config/cris/cris.c: Include ggc.h
1286
1ce676a0
NB
12872002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
1288
1289 * cpphash.h (_cpp_push_text_context): Update.
1290 (_cpp_arguments_ok): New.
1291 * cppmacro.c (_cpp_arguments_ok): New, split out from...
1292 (collect_args): ...here.
1293 (_cpp_push_text_context): Change inputs.
1294 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
1295 replace_args_and_push): New.
1296 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
1297 Don't use IS macros directly.
1298 (scan_out_logical_line): Handle function-like macro argument
1299 collection.
1300 (push_replacement_text): Update.
1301 (replacement_length): Remove.
1302 (_cpp_create_trad_definition): Don't skip whitespace before
1303 checking for '('.
1304
25f2e176
MM
13052002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1306
1307 * config/avr/avr.c (avr_mcu_types): Update for new devices.
1308 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
1309 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
1310 * config/avr/avr.md ("type" and "length" attributes): New type
1311 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
1312 output a single "call" or "rcall" insn depending on device size.
1313 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
1314
309323c2
DE
13152002-06-09 David Edelsohn <edelsohn@gnu.org>
1316
1317 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
1318 synonym for 630. Add power4. Remove embedded processors. Use -m604
1319 assembler option.
1320 (CPP_CPU_SPEC): Add power3 and power4.
1321 (PROCESSOR_DEFAULT): Change to 604e.
1322 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
1323 (CPP_CPU_SPEC): Similar additions.
1324 (enum process_type): Add POWER4.
1325 (RTX_COSTS): Add POWER4.
1326 (CPP_CPU_SPEC): Similar additions.
1327 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6ef0903d 1328 (PROCESSOR_DEFAULT64): Define.
309323c2
DE
1329 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
1330 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
1331 branch adjustment.
1332 (rs6000_issue_rate): Add Power4.
1333 * config/rs6000/rs6000.md (cpu attr): Add power4.
1334 (iu compare): Remove 604, 604e, 620, 630.
1335 Add basic Power4 scheduling information.
1336 (mfcr/mtcrf): Change type attribute to cr_logical.
1337
1f8e4682
KG
13382002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1339
57d80297
KG
1340 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
1341 ATTRIBUTE_PRINTF_2.
1342 * gengtype-lex.l: Fix format specifier warning.
1343
1f8e4682
KG
1344 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
1345 not isspace.
1346 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
1347 lieu of isspace/IDchar.
1348 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
1349 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
1350 ISSPACE.
1351
5a9ee623
ZW
13522002-06-08 Zack Weinberg <zack@codesourcery.com>
1353
1354 * Makefile.in (LIBCPP_OBJS): Take out version.o.
1355 * cpphash.h (cpp_reader): Take out print_version member.
1356 * cppinit.c: (cpp_handle_option): Don't do anything with
1357 -version. Just set help_only for --version, --target-help.
1358 Just set verbose option for -v.
1359 (cpp_post_options): Don't print a version string.
1360
c16e5a35
MM
13612002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1362
1363 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
1364 (avr_section_type_flags): New, handle .noinit* sections.
1365
79bc889e
JT
13662002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1367
1368 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
1369 and include netbsd_entry_point.
1370 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1371 (NETBSD_ENTRY_POINT): Define.
1372
6a79bb0a
JT
13732002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1374
1375 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5a9ee623 1376 if not already defined.
6a79bb0a
JT
1377 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
1378
e52b6b63
MM
13792002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1380
1381 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
1382 in a noreturn function.
1383 (avr_output_function_prologue, avr_output_function_epilogue):
1384 Correct function size calculation. Do not crash on empty function.
1385 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
1386
1569d670
JT
13872002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1388
1389 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1390 netbsd_link_spec and netbsd_entry_point.
1391 (LINK_SPEC): Use %(netbsd_link_spec).
1392 (NETBSD_ENTRY_POINT): Define.
1393
cfb06024
JT
13942002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1395
1396 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
1397 linker emulation.
1398 (LINK_ARCH64_SPEC): Likewise.
1399 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
1400 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
1401
5a9ee623
ZW
14022002-06-08 Marc Espie <espie@openbsd.org>
1403
1404 * lists.c (free_list): Fix typo in comment.
e3623158 1405
272cdf58
AJ
14062002-06-08 Andreas Jaeger <aj@suse.de>
1407
1408 * lcm.c (optimize_mode_switching): Add unused attribute for
1409 variable.
1410
1411 * sched-deps.c (sched_analyze): Remove unused variable.
1412
bf3f2a12
GDR
14132002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
1414
1415 * diagnostic.def: Don't capitalize diagnostict descriptors.
1416
523a5f2f
JT
14172002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1418
1419 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
1420 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1421 (NETBSD_ENTRY_POINT): Define.
1422
a3e944f9
JT
14232002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1424
1425 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
1426 NETBSD_LINK_SPEC_ELF.
1427 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
1428 (NETBSD_ENTRY_POINT): Define.
1429 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
1430 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
1431 netbsd_entry_point.
1432 (NETBSD_ENTRY_POINT): Define.
1433
854928a0
JT
14342002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1435
1436 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1437 netbsd_link_spec and netbsd_entry_point.
1438 (LINK_SPEC): Use %(netbsd_link_spec).
1439 (NETBSD_ENTRY_POINT): Define.
1440
6bb5d2e7
JT
14412002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1442
1443 * config/netbsd-elf.h (LINK_SPEC): Rename to...
1444 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
1445 to specify program entry point.
1446
e50126e8
JL
14472002-06-07 Jeff Law <law@redhat.com
1448
1449 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
272cdf58 1450 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
e50126e8
JL
1451 than creating a new register.
1452 (distribute_notes): Likewise.
1453 * df.c (df_reg_use_gen): Likewise.
1454 (df_reg_clobber_gen): Likewise.
1455 (df_ref_record): Likewise.
1456 * expr.c (use_regs): Likewise.
1457 * flow.c (propagate_one_insn): Likewise.
1458 (mark_set_1): Likewise.
1459 (mark_used_reg): Likewise.
1460 * reload.c (emit_reload_insns): Likewise.
1461
bc9c18c3
RS
14622002-06-07 Roger Sayle <roger@eyesopen.com>
1463
1464 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
1465 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
1466 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
1467 comparison code comp can be reversed.
1468
437f1df1
RS
14692002-06-07 Roger Sayle <roger@eyesopen.com>
1470
1471 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
1472 constants last in comparisons. Optimize (x+1.0)>0.0 into the
1473 equivalent x > -1.0 when -ffast-math.
1474
cd24b8a4
JT
14752002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1476
1477 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
1478 * config/mips/t-netbsd: New file.
1479
09e77dee
ZW
14802002-06-07 Zack Weinberg <zack@codesourcery.com>
1481
1482 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
1483 options their own entries.
1484 (parse_option): Clarify comment.
1485 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
1486 special case. Replace if/strcmp chain for -W options with
1487 use of new OPT_* entries for them.
1488 (cpp_handle_options): Update to match.
1489 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
1490 * c-decl.c: Update call to cpp_handle_option.
1491
942030dc
AD
14922002-06-07 Akim Demaille <akim@epita.fr>
1493
1494 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
1495 Whitespace changes.
1496
f2846820
JL
14972002-06-07 Jeffrey Law <law@redhat.com>
1498
1499 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
1500 on empty lists.
1501
4bafaa6f
L
15022002-06-07 H.J. Lu (hjl@gnu.org)
1503
1504 * configure.in: Add --enable-__cxa_atexit.
1505 * configure: Regenerated.
1506 * config.in: Likewise.
1507
1508 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
1509 not defined.
1510
caef5b46
GDR
15112002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
1512
1513 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
1514
ac64a17c
JT
15152002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1516
1517 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
1518
97459791
JM
15192002-06-07 Jason Merrill <jason@redhat.com>
1520
1521 * cppexp.c (num_equality_op): Use a temporary variable to work
1522 around gcc 3.0.4 bug.
1523
4b1d52c7
GDR
15242002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
1525
1526 * diagnostic.c (diagnostic_build_prefix): Tidy.
1527
c70f6ed3
NB
15282002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
1529
1530 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
1531 scan_parameters, save_replacement_text, replacement_length): New.
1532 (scan_out_logical_line): Take a macro and save parameters if
1533 non-NULL.
1534 (_cpp_logical_line_trad): Update.
1535 (_cpp_create_trad_definition): Update to handle function-like
1536 macros.
1537 * cpplex.c (new_buff): Update.
1538 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
1539 * cpphash.h: ...here.
1540 (CPP_ALIGN2, _cpp_save_parameter): New.
1541 * cppmacro.c (save_parameter): Rename, export.
1542 (parse_params): Update.
1543
aec2ac46
AJ
15442002-06-07 Andreas Jaeger <aj@suse.de>
1545
1546 * config/mmix/mmix.c: Remove extra broken prototype for
1547 mmix_init_machine_status.
1548
9f313342
GK
15492002-06-06 Geoffrey Keating <geoffk@redhat.com>
1550
1551 * gengtype.c: Add comments before all the routines.
1552
3fa1b448
JT
15532002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1554
1555 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
1556 from and add t-sh64 to ${tmake_file}.
1557 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
1558 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
1559 * config/sh/t-netbsd-sh5-32: Remove.
1560 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
1561 MULTILIB_ENDIAN.
1562 (MULTILIB_DIRNAMES): Define.
1563
0d682900
JH
1564Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
1565
1566 * i386.md (and promoting splitters): Disable QI to SImode promoting
1567 when doing so changes immediate to be 32bit.
1568
1569 * rtl.h (emit_*_scope): Declare.
1570 * emit-rtl.c (emit_*_scope): New global functions.
1571 (try_split): Copy scope.
1572 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1573 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1574 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1575 noce_process_if_block, find_cond_trap): Copy scopes.
1576 * recog.c (peephole2_optimize): likewise.
1577
c991649c
JL
15782002-06-06 Jeffrey Law <law@redhat.com>
1579
1580 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
1581
8a5d66c4
R
1582Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
1583
1584 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
1585
d7f8491b
RO
15862002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1587
1588 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
1589 ($(docdir)/gccinstall.info): New target.
1590 (info): Depend on it.
1591 (gccinstall.dvi): New target.
1592 (dvi): Depend on it.
1593 * doc/.cvsignore: Ignore new info files.
1594 * doc/install.texi (@setfilename): Reflect new info filename.
1595
eaeb7de8
R
1596Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
1597
1598 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
1599 on an UNSPEC.
1600
0c7aeb88
NP
1601Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
1602
1603 PR objc/6834
1604 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
1605 c_common_get_alias_set.
aec2ac46 1606 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
0c7aeb88 1607
2a496e8b
JDA
16082002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1609
1610 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
1611 functions.
1612 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
1613 * avr/avr.c (avr_output_function_epilogue): Use above to determine
1614 function size.
1615 * pa/pa.c (pa_output_function_prologue): Likewise.
1616
2ff581c3
DM
16172002-06-05 David S. Miller <davem@redhat.com>
1618
1619 * integrate.c (subst_constants): Handle 'B' RTL format.
1620
b2e2d0cc
EC
16212002-06-05 Eric Christopher <echristo@redhat.com>
1622
1623 * varasm.c (make_decl_rtl): Fix comment for removed
1624 halfpic.c.
1625
0f81faf6
EC
16262002-06-05 Eric Christopher <echristo@redhat.com>
1627
1628 * Makefile.in: Remove missed halfpic bits.
1629
33005162
EC
16302002-06-05 Eric Christopher <echristo@redhat.com>
1631
1632 * toplev.c: Remove half-pic.
1633 * config/mips/mips.c: Ditto.
1634 * config/mips/mips.h: Ditto. Remove unused defines.
1635 * config/mips/openbsd.h: Update comment to reflect above.
1636 * config/mips/mips.md: Remove half-pic constraints.
1637 * halfpic.h: Delete.
1638 * halfpic.c: Ditto.
1639
80081028
JL
16402002-06-05 Jeffrey Law <law@redhat.com>
1641
5a9ee623
ZW
1642 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
1643 rejects (mem (lo_sum (reg) (unspec))), but will allow
1644 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
80081028 1645
cbc69f84
NB
16462002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
1647
1648 * cpphash.h (_cpp_create_definition): Update prototype.
1649 (_cpp_push_text_context, _cpp_create_trad_definition): New.
1650 ( cpp_lex_identifier_trad): New.
1651 (_cpp_set_trad_context): New.
1652 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
1653 * cpplib.c (SEEN_EOL): Update.
1654 (lex_macro_node): Update for -traditional.
1655 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
1656 * cppmacro.c (_cpp_create_definition): Split into
1657 create_iso_definition() and _cpp_create_trad_definition().
1658 (warn_of_redefinition): Update prototype; handle traditional
1659 macros.
1660 (_cpp_push_text_context): New.
1661 * cpptrad.c (skip_whitespace, push_replacement_text): New.
1662 (lex_identifier): Call ht_lookup with correct start.
1663 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
1664 _cpp_set_trad_context): New.
1665 (scan_out_logical_line): Update to handle changing contexts.
1666
dbf87f32
R
1667Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
1668
1669 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
1670 (shl*-*-elf*): Add.
1671 * config/sh/t-be (MULTILIB_ENDIAN): Set.
1672 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
1673 * t-sh (MULTILIB_ENDIAN): Set.
1674 (MULTILIB_OPTIONS): Use it.
1675 * t-sh64 (MULTILIB_OPTIONS): Likewise.
1676 (MULTILIB_DIRNAMES): Likewise.
1677
47b69537
GDR
16782002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
1679
1680 * toplev.h (report_error_function): Remove.
1681
1682 * diagnostic.h (location_t): New datatype.
1683 (text_info): Likewise.
1684 (diagnostic_info): Likewise.
1685 (output_prefix): New macro.
1686 (diagnostic_last_function_changed): Likewise.
1687 (diagnostic_set_last_function): Likewise.
1688 (diagnostic_last_module_changed): Likewise.
1689 (diagnostic_set_last_module): Likewise.
1690 (report_diagnostic): Now macro.
1691 (diagnostic_set_info): Declare.
1692
1693 * diagnostic.c (report_problematic_module): Rename to
33005162 1694 diagnostic_repor_current_module.
47b69537
GDR
1695 (set_diagnostic_context): Remove.
1696 (count_error): Rename to diagnostic_error_count.
1697 (error_function_changed): Remove.
1698 (record_last_error_function): Likewise.
1699 (error_module_changed): Likewise.
1700 (record_last_error_module): Likewise.
1701 (context_as_prefix): Rename to diagnostic_build_prefix.
1702 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
1703 (diagnostic_set_info): New function.
1704
1705 * objc/objc-act.c: #include diagnostic.h
1706 (error_with_ivar): Adjust call to count_error.
1707 (warn_with_method): Likewise.
1708 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
1709
540eaea8
BW
17102002-06-05 Bob Wilson <bob.wilson@acm.org>
1711
1712 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
1713 lang_hooks.types.make_type instead of make_node; set up
1714 __va_list_tag type decl.
1715 (xtensa_builtin_saveregs): Remove broken use of
1716 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
1717 for saved registers; add varargs alias set.
1718
f23a084d
NB
17192002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
1720
1721config:
1722 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
1723 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1724 CPP_PREDEFINES and part of CPP_SPEC.
1725 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
1726 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
1727
3fe3a596
JH
1728Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
1729
1730 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
1731
1fd9ba59
AM
17322002-06-05 Alan Modra <amodra@bigpond.net.au>
1733
1734 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
1735
cea554e0
ZW
17362002-06-04 Zack Weinberg <zack@codesourcery.com>
1737
1738 * gengtype-yacc.y: Make sure all rules end with a semicolon.
1739
07232638
BW
17402002-06-04 Bob Wilson <bob.wilson@acm.org>
1741
1742 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
1743 typo in function prototype and include "ggc.h" header.
1744
c4b50f1a
RH
17452002-06-04 Richard Henderson <rth@redhat.com>
1746
1747 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
1748 (print_operand) ['U']: Likewise.
1749 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
1750 (alpha_expand_unaligned_store_words): Likewise.
1751 (alpha_expand_builtin_vector_binop): Fix typo.
1752 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
1753 umulh, and cix insns.
1754 (one_arg_builtins): Add cix builtins.
1755 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
1756 (alpha_expand_builtin): Fix typo in arity.
1757 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
1758 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
1759 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
1760 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
1761 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
1762 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
1763 builtin_ctlz, builtin_ctpop): New.
1764 * doc/extend.texi (Alpha Built-in Functions): Update.
1765
aaab35ae
GK
17662002-06-04 Geoffrey Keating <geoffk@redhat.com>
1767
afb0f770
GK
1768 * gengtype.c (write_gc_root): Don't unnecessarily prevent
1769 global variable-length arrays being roots.
1770
aaab35ae
GK
1771 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
1772 * configure.in (config_gtfiles): New variable.
1773 (all_gtfiles): Initialise from config_gtfiles.
1774 * configure: Regenerate.
1775
1ba7b414
NB
17762002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
1777
1778config/i386:
1779 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
1780 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
1781 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
1782 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
1783 win32.h (CPP_SPEC): Remove cpp_cpu.
1784 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
1785 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
1786
135ca7b2
JJ
17872002-06-04 Janis Johnson <janis187@us.ibm.com>
1788
1789 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
1790
85d69216 17912002-06-04 Jeff Law <law@redhat.com.
5a9ee623
ZW
1792 David Edelsohn <edelsohn@gnu.org>
1793 Michael Matz <matz@kde.org>
85d69216
JL
1794
1795 * sched-int.h (struct deps): New field libcall_block_tail_insn.
1796 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
1797 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
1798 is set, then mark the current insn as being part of a libcall
1799 scheduling group.
1800 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
1801
1802 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
1803 insns against the issue rate.
1804
63f4a88e
JH
1805Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
1806
1807 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
1808 * final.c (final_scan_insn): Likewise.
1809 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
1810 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
1811 * haifa-sched.c (unlink_other_notes): Likeewise.
1812 (reemit_notes): Likewise.
1813 * print-rtl.c (print_rtx): Likewise.
1814 * sched-deps (sched-analyze): Likewise.
1815 * rtl.c (note_insn_name): Likewise.
1816 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
1817 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
1818 (RANGE_*): Kill.
1819
a5d1f75b
JT
18202002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1821
1822 * varasm.c (mark_constants): Handle RTX format 'B'.
1823
82eda77e
NB
18242002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
1825
1826 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
1827 (struct cpp_context): Add traditional fields.
1828 * cppmacro.c (paste_all_tokens, push_ptoken_context,
1829 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
1830 * cpptrad.c (skip_comment, lex_identifier,
1831 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
1832
589005ff
KH
18332002-06-04 Kazu Hirata <kazu@cs.umass.edu>
1834
1835 * gbl-ctors.h: Fix formatting.
1836 * gcc.c: Likewise.
1837 * gccspec.c: Likewise.
1838 * gcov.c: Likewise.
1839 * gcov-io.h: Likewise.
1840 * gcse.c: Likewise.
1841 * ggc-common.c: Likewise.
1842 * ggc.h: Likewise.
1843 * ggc-page.c: Likewise.
1844 * ggc-simple.c: Likewise.
1845 * global.c: Likewise.
1846 * graph.h: Likewise.
1847 * gthr-dce.h: Likewise.
1848 * gthr.h: Likewise.
1849 * gthr-posix.h: Likewise.
1850 * gthr-rtems.h: Likewise.
1851 * gthr-solaris.h: Likewise.
1852 * gthr-win32.h: Likewise.
1853
e2500fed
GK
18542002-06-03 Geoffrey Keating <geoffk@redhat.com>
1855
1856 Merge from pch-branch:
33005162 1857
e2500fed
GK
1858 * gengtype.h (UNION_OR_STRUCT_P): New macro.
1859 * gengtype.c (write_gc_structure_fields): Use it.
1860 (write_gc_root): Use it here too.
1861
1862 * gengtype.c (write_gc_structure_fields): Assume that lengths
1863 of typenames fit into an 'int'; don't pass a size_t to "%d" in
1864 printf.
1865 (write_gc_marker_routine_for_structure): Likewise.
1866 (write_gc_types): Likewise.
1867 (write_gc_root): Likewise.
1868
1869 * varray.h (VARRAY_CLEAR): New.
1870 (varray_clear): Prototype.
1871 * varray.c (varray_clear): New.
1872 * cselib.c (reg_values_old): New.
1873 (used_regs_old): New.
1874 (cselib_init): Use cached varrays if available to avoid
1875 generating large amounts of garbage.
1876 (cselib_finish): Don't throw away old varrays.
1877
1878 * final.c (insn_addresses_): Move out of ifdef.
1879
1880 * varray.c (uses_ggc): Make more varray kinds GCable.
1881 * varray.h (union varray_data_tag): Let gengtype see
1882 fields 'generic' and 'te'.
1883 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
1884 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
1885 (reg_to_stack): Don't call VARRAY_FREE.
1886 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
1887 (insn_addresses_): Use gengtype to mark.
1888 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
1889 pointers; handle generic pointers in unused union fields.
1890 (get_output_file_with_visibility): Include cselib.h,
1891 insn-addr.h in gtype-desc.c.
1892 * function.c (prologue): Use gengtype to mark.
1893 (epilogue): Likewise.
1894 (sibcall_epilogue): Likewise.
1895 * dependence.c: Include gt-dependence.h, ggc.h.
1896 (struct def_use): Use gengtype to mark.
1897 (struct loop): Likewise.
1898 (struct induction): Likewise.
1899 (struct dependence): Likewise.
1900 (def_use_chain): Likewise.
1901 (dep_chain): Likewise.
1902 (loop_chain): Likewise.
1903 (induction_chain): Likewise.
1904 (init_dependence_analysis): Don't free anything, just clear pointers.
1905 (build_def_use): Use GGC to allocate def_use.
1906 (add_loop): Use GGC to allocate loop.
1907 (find_induction_variable): Use GGC to allocate induction.
1908 (check_node_dependence): Use GGC to allocate induction, dependence.
1909 (dump_node_dependence): Don't free varrays.
1910 (end_dependence_analysis): Likewise.
1911 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
1912 (struct elt_loc_list): Likewise.
1913 (struct elt_list): Likewise.
1914 * cselib.c: Don't include obstack.h.
1915 (hash_table): Use gengtype to mark.
1916 (reg_values): Use gengtype to mark.
1917 (used_regs): Use gengtype to mark.
1918 (cselib_obstack): Delete.
1919 (cselib_startobj): Delete.
1920 (empty_vals): Mark as deletable.
1921 (empty_elt_lists): Mark as deletable.
1922 (empty_elt_loc_lists): Mark as deletable.
1923 (new_elt_list): Use GGC to allocate struct elt_list.
1924 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
1925 (clear_table): Don't delete obstack; don't unnecessarily clear
1926 deletable variables.
1927 (new_cselib_val): Use GGC to allocate struct cselib_val.
1928 (cselib_init): Don't set up obstacks. Use GGC to allocate
1929 hash table.
1930 (cselib_finish): Just clear variables, don't free anything.
1931 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
1932 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
1933 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
1934 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
1935 (gt-reg-stack.h): New rule.
1936 (gt-dependence.h): New rule.
1937 (gtype-desc.o): Add cselib.h, insn-addr.h.
1938
1939 * varray.c: Use only necessary headers.
1940 (element_size): New.
1941 (uses_ggc): New.
1942 (varray_init): Take type, not size. Use GGC if appropriate.
1943 (varray_grow): Update for change to struct varray_head_tag.
1944 Use GGC if appropriate.
1945 * varray.h (struct const_equiv_data): Use gengtype.
1946 (enum varray_data_enum): New.
1947 (union varray_data_tag): Use gengtype.
1948 (struct varray_head_tag): Use gengtype. Replace size field with
1949 enum varray_data_enum.
1950 (varray_init): Update prototype.
1951 (VARRAY_SCHED_INIT): Delete.
1952 (VARRAY_*_INIT): Update for change to varray_init.
1953 (VARRAY_SCHED): Delete.
1954 (VARRAY_PUSH_SCHED): Delete.
1955 (VARRAY_TOP_SCHED): Delete.
1956 * tree.h: Update for change to length specifier.
1957 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
1958 (clone_body): Likewise.
1959 * ssa.h (ssa_definition): Use gengtype to mark.
1960 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
1961 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
1962 * rtl.h (struct rtvec_def): Update for change to length specifier.
1963 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
1964 (struct initial_value_struct): Update for change to length specifier.
1965 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
1966 (ggc_add_tree_varray_root): Delete prototype.
1967 (ggc_mark_rtx_varray): Delete prototype.
1968 (ggc_mark_tree_varray): Delete prototype.
1969 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
1970 (ggc_add_tree_varray_root): Delete.
1971 (ggc_mark_rtx_varray): Delete.
1972 (ggc_mark_tree_varray): Delete.
1973 (ggc_mark_rtx_varray_ptr): Delete.
1974 (ggc_mark_tree_varray_ptr): Delete.
1975 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
1976 (create_varray): Delete prototype.
1977 * gengtype.c (varrays): Delete.
1978 (create_varray): Delete.
1979 (adjust_field_type): Detect array of string pointers.
1980 (process_gc_options): Remove code to handle varray_type option.
1981 (set_gc_used_type): Remove TYPE_VARRAY case.
1982 (output_escaped_param): New.
1983 (write_gc_structure_fields): Use output_escaped_param on all
1984 parameters. Handle 'skip' with 'use_param' option. Handle
1985 arrays of strings. Remove TYPE_VARRAY handling.
1986 (write_gc_roots): Use boolean to detect 'length' option.
1987 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
1988 (struct_fields): Call adjust_field_type on array fields.
1989 (type): Remove VARRAY_TYPE case.
1990 (type_option): Likewise.
1991 * gengtype-lex.l: Don't consider varray_type a keyword.
1992 * function.h: Update for change to length specifier.
1993 (free_eh_status): Delete prototype.
1994 * function.c (free_after_compilation): Don't call free_eh_status.
1995 (reorder_blocks): Don't use VARRAY_FREE.
1996 * except.c (struct eh_status): Update for change to length specifier.
1997 remove varray_type specifier.
1998 (free_eh_status): Delete.
1999 * dwarf2out.c: Include gt-dwarf2out.h.
2000 (used_rtx_varray): Use gengtype to mark, move
2001 outside ifdefs.
2002 (incomplete_types): Likewise.
2003 (decl_scope_table): Likewise.
33005162 2004 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
e2500fed
GK
2005 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
2006 * c-tree.h (struct lang_type): Update for change to length specifier.
2007 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
2008 * c-objc-common.c: Include gt-c-objc-common.h.
2009 (deferred_fns): Mark for gengtype.
2010 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
2011 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
2012 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
2013 (gtype-desc.o): Update dependencies.
2014 (dwarf2out.o): Add gt-dwarf2out.h.
2015 (varray.o): Update dependencies.
2016 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
2017 (gt-c-objc-common.h): New rule.
2018 (gt-dwarf2out.h): New rule.
2019 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
2020
2021 * doc/gty.texi (GTY Options): Correct spelling.
2022 (GGC Roots): Likewise.
2023 * Makefile.in (TEXI_CPP_FILES): New.
2024 (TEXI_GCC_FILES): New.
2025 (TEXI_GCCINT_FILES): New.
2026 (TEXI_CPPINT_FILES): New.
2027 ($(docdir)/cpp.info): Use new macros.
2028 ($(docdir)/gcc.info): Likewise.
2029 ($(docdir)/gccint.info): Likewise.
2030 ($(docdir)/cppinternals.info): Likewise.
2031 (cpp.dvi): Likewise.
2032 (gcc.dvi): Likewise.
2033 (gccint.dvi): Likewise.
2034 (cppinternals.dvi): Likewise.
2035
2036 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
2037 * doc/gccint.texi (Top): Include gty.texi.
2038 * doc/gty.texi: New file.
2039
2040 * bitmap.c: Include ggc.h, gt-bitmap.h.
2041 (bitmap_ggc_free): New.
2042 (bitmap_elem_to_freelist): New.
2043 (bitmap_element_free): Use bitmap_elem_to_freelist.
2044 (bitmap_element_allocate): Allow use of GGC.
2045 (bitmap_clear): Use bitmap_elem_to_freelist.
2046 (bitmap_copy): Update for change to bitmap_element_allocate.
2047 (bitmap_set_bit): Likewise.
2048 (bitmap_operation): Update for changes elsewhere.
2049 (bitmap_initialize): Allow to create bitmaps that will use GGC.
2050 * bitmap.h (struct bitmap_element_def): Use gengtype.
2051 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
2052 (bitmap_initialize): Add extra parameter.
2053 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
2054 (BITMAP_ALLOCA): Delete.
2055 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
2056 (BITMAP_GGC_ALLOC): New.
2057 * Makefile.in (gtype-desc.o): Add bitmap.h.
2058 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
2059 (GTFILES): Add bitmap.c.
2060 (gt-bitmap.h): New rule.
2061 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
2062 * basic-block.h: Update for changes to bitmap_initialize.
2063 * except.c (exception_handler_label_map): Move into...
2064 (struct eh_status): Here.
2065 (struct eh_region): Make 'aka' GCable.
2066 (free_eh_status): Don't need to specially handle
2067 exception_handler_label_map.
2068 (add_ehl_entry): Update for changes to exception_handler_label_map.
2069 (find_exception_handler_labels): Likewise.
2070 (remove_exception_handler_label): Likewise.
2071 (maybe_remove_eh_handler): Likewise.
2072 (for_each_eh_label): Likewise.
2073 (remove_eh_handler): Allocate 'aka' using GGC.
2074 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
2075 to list of includes.
2076
2077 * gengtype.c (write_gc_marker_routine_for_structure): Name
33005162 2078 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
e2500fed
GK
2079 (write_gc_types): Arrange for the tests with NULL to be inlined.
2080 (write_gc_roots): Update uses of procedure pointers.
2081 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
2082
2083 * Makefile.in (explow.o): Add dependency on gt-explow.h.
2084 (sdbout.o): Add dependency on gt-sdbout.h.
2085
2086 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
2087 (mem_attrs_htab): Likewise.
2088 (init_emit_once): Don't call ggc_add_deletable_htab.
2089 * fold-const.c (size_htab): Use gengtype to clear unused entries.
2090 (size_int_type_wide): Don't call ggc_add_deletable_htab.
2091 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
2092 parameters, use them, change callers.
2093 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
2094 (write_gc_roots): Handle 'if_marked' option.
2095 (main): Don't need to call set_gc_used_type any more.
2096 * ggc.h (ggc_htab_marked_p): Delete.
2097 (ggc_htab_mark): Delete.
2098 (struct ggc_cache_tab): New.
2099 (gt_ggc_cache_rtab): New declaration.
2100 * ggc-common.c (struct d_htab_root): Delete.
2101 (d_htab_roots): Delete.
2102 (ggc_add_deletable_htab): Delete.
2103 (ggc_htab_delete): Handle new htab-deleting mechanism.
2104 (ggc_mark_roots): Use new htab-deleting mechanism.
2105 * tree.c (type_hash_table): Use gengtype to clear unused entries.
2106 Make static.
2107 (init_obstacks): Don't call ggc_add_deletable_htab.
2108
2109 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
2110 (struct hashed_entry): Likewise.
2111 (nst_method_hash_list): Likewise.
2112 (cls_method_hash_list): Likewise.
2113 (HASH_ALLOC_LIST_SIZE): Delete.
2114 (ATTR_ALLOC_LIST_SIZE): Delete.
2115 * objc/objc-act.c (hash_init): Use ggc to allocate
2116 nst_method_hash_list, cls_method_hash_list.
2117 (hash_enter): Use ggc to allocate; allocate one entry at a time.
2118 (hash_add_attr): Likewise.
2119 (ggc_mark_hash_table): Delete.
2120 (objc_act_parse_init): Delete.
2121 (objc_init): Delete reference to objc_act_parse_init.
2122 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
2123 obstack.h. Replace references to 'struct hash_table' with htab_t.
2124 (struct symbol_hash_entry): Replace hash header with key field.
2125 (struct file_hash_entry): Replace hash header with key field.
2126 (struct demangled_hash_entry): Replace hash header with key field.
2127 (hash_string_eq): New.
2128 (hash_string_hash): New.
2129 (symbol_hash_newfunc): Delete.
2130 (symbol_hash_lookup): Modify to use htab_t.
2131 (file_hash_newfunc): Delete.
2132 (file_hash_lookup): Modify to use htab_t.
2133 (demangled_hash_newfunc): Delete.
2134 (demangled_hash_lookup): Modify to use htab_t.
2135 (tlink_init): Modify to use htab_t.
2136 * hash.h: Delete.
2137 * hash.c: Delete.
2138 * ggc.h: Delete forward structure declarations.
2139 Delete prototypes for deleted functions.
2140 * ggc-common.c: Don't include hash.h.
2141 (ggc_add_tree_hash_table_root): Delete.
2142 (ggc_mark_tree_hash_table_entry): Delete.
2143 (ggc_mark_tree_hash_table): Delete.
2144 (ggc_mark_tree_hash_table_ptr): Delete.
2145 * gengtype.c (write_gc_structure_fields): Allow param_is option.
2146 (write_gc_marker_routine_for_structure): Use visibility of
2147 the parameter if there is one.
2148 * function.c: Replace hash.h with hashtab.h. Replace references
2149 to 'struct hash_table *' with htab_t.
2150 (struct insns_for_mem_entry): Include a plain key.
2151 (fixup_var_refs_insns_with_hash): Update to use htab_t.
2152 (insns_for_mem_newfunc): Delete.
2153 (insns_for_mem_hash): Update to use htab_t.
2154 (insns_for_mem_comp): Likewise.
2155 (insns_for_mem_walk): Likewise.
2156 * c-lang.c: Include ggc.h.
2157 * Makefile.in (OBJS): Remove hash.o.
2158 (c-lang.o): Add GGC_H.
2159 (COLLECT2_OBJS): Remove hash.o.
2160 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
2161 (ggc-common.o): Remove hash.h.
2162 (function.o): Remove hash.h, add HASHTAB_H.
2163 (genautomata.o): Remove hash.h, add HASHTAB_H.
2164
2165 * varasm.c (mark_const_str_htab_1): Delete.
2166 (mark_const_str_htab): Delete.
2167 (const_str_htab_del): Delete.
2168 (const_str_htab): Use gengtype to mark.
2169 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
2170 allocate them.
2171 * tree.c (mark_tree_hashtable_entry): Delete.
2172 (mark_tree_hashtable): Delete.
2173 * tree.h (mark_tree_hashtable): Delete prototype.
2174 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
2175 (ggc_mark): Likewise.
2176 (ggc_calloc): New.
2177 (htab_create_ggc): New.
2178 * ggc-common.c (ggc_calloc): New.
2179 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
2180 (struct type): Add param_struct structure.
2181 * gengtype.c (param_structs): New.
2182 (adjust_field_type): Handle param_is option.
2183 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
2184 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
2185 (write_gc_structure_fields): Add new PARAM parameter. Update
2186 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
2187 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
2188 Use it to generate function name. Update callers.
2189 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
2190 Process them.
2191 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
2192 option.
2193 (main): Define PTR as pointer-to-scalar. Don't specially
2194 mark deferred_string or ehl_map_entry.
2195 * gengtype-yacc.y (PARAM_IS): Add new token.
2196 (externstatic): Use adjust_field_type.
2197 (type_option): Add PARAM_IS.
2198 * gengtype-lex.l: Add rule for typedef of function pointers.
2199 Add rule for PARAM_IS.
2200 (IWORD): Add size_t.
2201 * except.c (exception_handler_label_map): Use gengtype to mark.
2202 (type_to_runtime_map): Likewise.
2203 (mark_ehl_map_entry): Delete.
2204 (mark_ehl_map): Delete.
2205 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
2206 (t2r_mark_1): Delete.
2207 (t2r_mark): Delete.
2208 * Makefile.in (gtype-desc.o): Correct dependencies.
2209 (GTFILES): Add hashtab.h.
2210 (genautomata.o): Actually uses hashtab.h.
2211
2212 * Makefile.in (stringpool.o): Add $(GGC_H).
2213 (dwarf2asm.o): Likewise.
2214 (GTFILES): Add hashtable.h.
2215 * c-common.h (struct c_common_identifier): Use gengtype.
2216 * c-decl.h (c_mark_tree): Delete.
2217 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2218 * c-tree.h (struct lang_identifier): Use gengtype.
2219 (union lang_tree_node): New.
2220 (c_mark_tree): Delete prototype.
33005162 2221 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
e2500fed
GK
2222 dwarf2_debug_hooks.
2223 * gengtype-lex.l (IWORD): Allow 'bool'.
2224 (ptr_alias): Match.
2225 * gengtype-yacc.y (ALIAS): New token.
2226 (type_option): New rule.
2227 (option): Use type_option.
2228 * gengtype.c (process_gc_options): New.
2229 (set_gc_used_type): Use it.
2230 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
2231 Add new variable 't' to hold the type of the field being processed.
2232 Add more error checking. Use UNION_P when looking at 'desc' option.
2233 Handle language-specific structures containing other
2234 language-specific structures.
2235 (write_gc_types): Handle 'ptr_alias' option.
2236 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
2237 * ggc-common.c (ggc_pending_trees): Delete.
2238 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
2239 (ggc_mark_trees): Delete.
2240 (gt_ggc_m_tree_node): Delete.
2241 * ggc.h (ggc_pending_trees): Delete.
2242 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
2243 * hashtable.h (ht_identifier): Use gengtype.
2244 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
2245 * langhooks.h (struct lang_hooks): Delete mark_tree.
2246 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
2247 anyway.
2248 * system.h: Poison LANG_HOOKS_MARK_TREE.
2249 * tree.c (tree_node_structure): New.
2250 * tree.h (struct tree_common): Use gengtype.
2251 (struct tree_int_cst): Likewise.
2252 (struct tree_real_cst): Likewise.
2253 (struct tree_string): Likewise.
2254 (struct tree_complex): Likewise.
2255 (struct tree_vector): Likewise.
2256 (struct tree_identifier): Likewise.
2257 (struct tree_list): Likewise.
2258 (struct tree_vec): Likewise.
2259 (struct tree_exp): Likewise.
2260 (struct tree_block): Likewise.
2261 (struct tree_type): Likewise.
2262 (struct tree_decl): Likewise.
2263 (enum tree_structure_enum): New.
2264 (union tree_node): Use gengtype, with an alias.
2265 (tree_node_structure): Prototype.
2266 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2267
2268 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
2269 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
2270 to LANG_HOOKS_FUNCTION_FINAL.
2271 * Makefile.in (GTFILES): Add bitmap.h.
2272 * except.c (struct eh_region): Mark field 'aka' to be skipped.
2273
2274 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
2275 (alpha_init_machine_status): Give proper type.
2276 * Makefile.in (c-lang.o): Depend on gtype-c.h.
2277 (optabs.o): Depend on gt-optabs.h.
2278 (GTFILES): Add optabs.o.
2279 (gt-optabs.h): Add rule.
2280 * optabs.c: Include gt-optabs.h.
2281
2282 * gengtype.c (set_gc_used_type): Correct some errors in last change.
2283 (write_gc_structure_fields): If a field which should be NULL is
2284 not, abort.
2285 * c-pragma.c: Move struct align_stack and variable alignment_stack
2286 out from the ifdef.
2287
2288 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
2289 * config/xtensa/xtensa.c: Include gt-cris.h.
2290 (struct machine_function): Use gengtype to mark.
2291 * config/mmix/mmix.h (struct machine_function): Use gengtype
2292 to mark.
2293 * config/cris/t-cris: Add dependencies for gt-cris.h.
2294 * config/cris/cris.c: Include gt-cris.h.
2295 (struct machine_function): Use gengtype to mark.
2296 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
2297 to mark.
2298 * doc/tm.texi (Per-Function Data): Delete references to
2299 mark_machine_status.
2300 * config/ia64/ia64.c (ia64_override_options): Don't set
2301 mark_machine_status.
2302 * config/i386/i386.c (override_options): Likewise.
2303 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
2304 * config/arm/arm.c (arm_init_expanders): Likewise.
2305 * config/alpha/alpha.c (override_options): Likewise.
33005162 2306 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
e2500fed
GK
2307 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
2308 (write_gc_structure_fields): Don't handle 'really' option.
2309 Handle 'maybe_null' option.
2310 (write_gc_types): Handle 'maybe_null' option.
2311 * function.h (struct function): Don't use "really".
2312 (mark_machine_status): Delete declaration.
2313 (mark_lang_status): Delete declaration.
2314 (gt_ggc_mr_machine_function): Delete prototype.
2315 (gt_ggc_mr_language_function): Delete prototype.
2316 * function.c (mark_machine_status): Delete.
2317 (mark_lang_status): Delete.
2318 (gt_ggc_mr_machine_function): Delete.
2319 (gt_ggc_mr_language_function): Delete.
2320 * c-tree.h (mark_c_function_context): Delete prototype.
2321 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
2322 * c-decl.c (struct language_function): Rename from struct
2323 c_language_function. Update uses. Use gengtype to mark.
2324 (mark_c_function_context): Delete.
2325 * c-common.h (struct c_language_function): Rename from struct
2326 language_function.
2327 (mark_stmt_tree): Delete prototype.
2328 (c_mark_lang_decl): Delete prototype.
2329 (mark_c_language_function): Delete prototype.
2330 * c-common.c (mark_stmt_tree): Delete.
2331 (c_mark_lang_decl): Delete.
2332 (mark_c_language_function): Delete.
2333
2334 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
2335 (lang_bitmap): New typedef. Use where appropriate.
2336 (struct type): Add gc_used field, lang_struct field.
2337 (UNION_P): New macro.
2338 (new_structure): New prototype.
2339 (find_structure): Remove 'pos' parameter. Change all callers.
2340 * gengtype-lex.l: Update for changes to find_structure.
2341 * gengtype-yacc.y (typedef_struct): Use new_structure.
2342 (yacc_ids): Suppress warning.
2343 (type): Use new_structure.
2344 * gengtype.c (string_type): Update for changes to struct type.
2345 (find_structure): Just find a structure, don't worry about
2346 creating one.
2347 (new_structure): New.
2348 (note_yacc_type): Use new_structure.
2349 (set_gc_used_type): New.
2350 (set_gc_used): New.
2351 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
2352 (write_gc_types): Handle TYPE_LANG_STRUCT.
2353 (write_gc_marker_routine_for_structure): New.
2354 (main): Call set_gc_used. Add some calls to set_gc_used_type
2355 for places where GCC doesn't use gengtype properly yet.
2356 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
2357 (gt_ggc_m_tree_node): Likewise.
2358
2359 * varasm.c (copy_constant): Call expand_constant if we hit
2360 something we can't recognise.
2361
2362 * ggc-common.c (ggc_mark_rtvec_children): Delete.
2363 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
2364 (lang_mark_false_label_stack): Delete.
2365 * rtl.h (struct rtvec_def): Use gengtype to mark.
2366 * ggc.h (ggc_mark_rtvec): Delete.
2367 (gt_ggc_m_rtvec_def): Delete.
2368 (ggc_mark_nonnull_tree): Delete.
2369 (ggc_mark_rtvec_children): Delete prototype.
2370 (lang_mark_false_label_stack): Delete declaration.
2371
2372 * gengtype.h (note_yacc_type): Add prototype.
2373 * gengtype.c (note_yacc_type): New function.
2374 * gengtype-lex.l: Add lexer support for yacc files.
2375 * gengtype-yacc.y (start): Extract union from yacc files.
2376 (yacc_union): New rule.
2377 (yacc_typematch): New rule.
2378 (yacc_ids): New rule.
2379 (enum_items): Tweak for efficiency.
2380 (optionseq): Likewise.
2381
2382 * c-common.h (struct language_function): Use gengtype.
2383 (struct c_lang_decl): Likewise.
2384 * c-tree.h (struct lang_decl): Likewise.
2385 (struct lang_type): Likewise.
2386 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
2387 tree language substructures.
2388
2389 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
2390 ggc_mark_tree.
2391 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
2392
2393 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
2394
2395 * stmt.c (struct nesting): Add discriminator. Use gengtype to
2396 mark. Remove 'data.block.cleanup_ptr' field.
2397 (struct stmt_status): Use usual technique to mark struct nesting.
2398 (gt_ggc_mr_nesting_cond): Delete.
2399 (gt_ggc_mr_nesting_loop): Delete.
2400 (gt_ggc_mr_nesting_block): Delete.
2401 (gt_ggc_mr_nesting_case_stmt): Delete.
2402 (expand_start_cond): Set discriminator.
2403 (expand_start_loop): Likewise.
2404 (expand_start_null_loop): Likewise.
2405 (expand_start_bindings_and_block): Set discriminator. Don't set
2406 deleted fields.
2407 (expand_decl_cleanup): Replace 'cleanup_ptr' with
2408 &thisblock->data.block.cleanups.
2409 (expand_start_case): Set discriminator.
2410 (expand_start_case_dummy): Set discriminator.
2411
2412 * ggc-callbacks.c: Remove.
2413
2414 * gengtype.h (struct type): Add 'u.s.bitmap' field.
2415 (find_structure): Add 'pos' parameter.
2416 * gengtype-lex.l: Update callers to find_structure.
2417 * gengtype-yacc.y: Likewise.
2418 * gengtype.c (find_structure): Allow for structures to be defined
2419 in multiple language backends.
2420 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
2421 (counter): Rename to gc_counter.
2422 (write_gc_structure_fields): Fail when writing out fields for
2423 an incomplete structure. Ignore arrays of scalars. Handle
2424 'tree_vec' special.
2425 (write_gc_types): Reset counter for each procedure written.
2426
2427 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
2428 (free_case_nodes): Delete.
2429 (expand_end_case_type): Delete call to free_case_nodes.
2430
2431 * Makefile.in (cselib.o): Include gt-<filename>.h.
2432 (gcse.o): Likewise.
2433 (profile.o): Likewise.
2434 (alias.o): Likewise.
2435 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
2436 alphabetize backend files.
2437 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
2438 * alias.c: Use gengtype for roots.
2439 * c-common.h (struct stmt_tree_s): Use gengtype.
2440 * c-decl.c: Use gengtype for roots.
2441 * cselib.c: Use gengtype for roots.
2442 * expr.c: Use gengtype for roots.
2443 * fold-const.c: Use gengtype for roots.
2444 * gcse.c: Use gengtype for roots.
2445 * gengtype-lex.l: Handle typedefs of function types.
2446 Allow for empty array bounds.
2447 Allow processing to stop on initialisers.
2448 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
2449 (semiequal): New rule.
2450 * gengtype.c (create_file): Tidy output files.
2451 (get_output_file_with_visibility): Fix paren warning. Fix bug
2452 involving multiple input files mapping to one output file.
2453 (write_gc_structure_fields): Skip arrays of scalars.
2454 (write_gc_types): Tidy output files.
2455 (write_gc_root): New function.
2456 (write_gc_roots): Fix bugs, add support for roots that are
2457 structures.
2458 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
2459 (ggc_mark_tree_ptr): Delete.
2460 (ggc_add_rtx_root): Delete.
2461 (ggc_add_tree_root): Delete.
2462 (ggc_del_root): Delete.
2463 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
2464 allocate struct initial_value_struct.
2465 * profile.c: Use gengtype for roots.
2466 * sdbout.c: Use gengtype for roots.
2467 * varasm.c (mark_weak_decls): Delete unused prototype.
2468 (mark_const_hash_entry): Delete unused function.
2469 * config/darwin-protos.h: Use gengtype for roots.
2470 (machopic_add_gc_roots): Delete.
2471 * config/arm/arm.c: Use gengtype for roots.
2472 * config/arm/arm.h: Use gengtype for roots.
2473 * config/c4x/c4x-protos.h: Use gengtype for roots.
2474 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
2475 * config/d30v/d30v-protos.h: Use gengtype for roots.
2476 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
2477 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
2478 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
2479 * config/ia64/ia64-protos.h: Use gengtype for roots.
2480 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
2481 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
2482 * config/m68hc11/m68hc11.c (z_reg): Make global.
2483 (z_reg_qi): Make global.
2484 (m68hc11_add_gc_roots): Delete.
2485 * config/mcore/mcore-protos.h: Use gengtype for roots.
2486 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
2487 * config/mips/mips.c (mips_add_gc_roots): Delete.
2488 * config/mips/mips.h: Use gengtype for roots.
2489 * config/mmix/mmix.c (override_options): Use gengtype for roots.
2490 * config/mmix/mmix.h: Use gengtype for roots.
2491 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
2492 * config/mn10200/mn10200.h: Use gengtype for roots.
2493 * config/pa/pa.c: Use gengtype for roots, marking.
2494 (struct deferred_plabel): Use GGC, gengtype.
2495 (pa_add_gc_roots): Delete.
2496 (mark_deferred_plabels): Delete.
2497 * config/pj/pj-protos.h: Use gengtype for roots.
2498 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
2499 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
2500 machopic_add_gc_roots.
2501 * config/rs6000/rs6000.h: Use gengtype for roots.
2502 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
2503 (gt-darwin.h): Add rule.
2504 * config/sh/sh.c: Use gengtype for roots.
2505 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
2506 (gt-sh.h): Add rule.
2507 * config/sparc/sparc.c: Use gengtype for roots.
2508 (sparc_add_gc_roots): Delete.
2509 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
2510 (mark_ultrasparc_pipeline_state): Delete.
2511 * config/sparc/sparc.h: Use gengtype for roots.
2512
2513 * Makefile.in (c-parse.o): Update dependencies.
2514 (c-common.o): Likewise.
2515 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
2516 Add dependencies for the files they generate.
2517 * c-common.c: Replace ggc_add_* uses with GTY annotations.
2518 * c-common.h: Likewise.
2519 * c-decl.c: Likewise.
2520 (gt_ggc_mp_binding_level): Delete.
2521 * c-lang.c: Include gtype-c.h.
2522 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
2523 gt-c-parse.h.
2524 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
2525 (gt_ggc_mp_align_stack): Delete.
2526 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
2527 * function.c: Replace ggc_add_* uses with GTY annotations.
2528 (gt_ggc_mp_function): Delete.
2529 * function.h: Replace ggc_add_* uses with GTY annotations.
2530 * gengtype.c (lang_names): New.
2531 (NUM_BASE_FILES): New.
2532 (open_base_files): Create language base files.
2533 (startswith): New.
2534 (get_file_basename): New.
2535 (get_base_file_bitmap): New.
2536 (get_output_file_with_visibility): Rename from get_output_file.
2537 Add more mappings for various C/Objc filenames.
2538 (finish_root_table): New.
2539 (write_gc_roots): Handle dependencies and scoping properly.
2540 * gengtype.h: Add prototypes for new functions.
2541 * ggc-common.c (struct deletable_root): Delete.
2542 (deletables): Delete.
2543 (ggc_add_deletable_root): Delete.
2544 (ggc_mark_roots): No need to deal with deleted functionality.
2545 * ggc.h (ggc_add_deletable_root): Delete prototype.
2546 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
2547 (gtype-objc.h): Add rule to create.
2548 * objc/config-lang.in (gtfiles): New.
2549 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
2550 ggc_add_* with GTY markers. Include gtype-objc.h.
2551 (ggc_mark_imp_list): Delete.
2552 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
2553 * objc/objc-lang.c: Random Whitespace Change.
2554
2555 * except.h (exception_handler_labels): Delete.
2556 (get_exception_handler_labels): New.
2557 * except.c (exception_handler_labels): Delete.
2558 (struct eh_status): Add exception_handler_labels field.
2559 (doing_eh): Don't add exception_handler_labels as root.
2560 (free_eh_status): Don't need to free exception_handler_labels.
2561 (get_exception_handler_labels): New.
2562 (find_exception_handler_labels): Update for move of
2563 exception_handler_labels.
2564 (remove_exception_handler_label): Likewise.
2565 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
2566 * jump.c (rebuild_jump_labels): Likewise.
2567 * loop.c (find_and_verify_loops): Likewise.
2568 * sched-rgn.c (is_cfg_nonregular): Likewise.
2569
2570 * gengtype.c (write_gc_structure_fields): Handle variable-length
2571 TYPE_ARRAYs.
2572
2573 * varasm.c (struct weak_syms): Use GGC, gengtype.
2574 (mark_weak_decls): Delete.
2575 (weak_decls): Likewise.
2576 (add_weak): Likewise.
2577 (remove_from_pending_weak_list): Likewise.
2578 (init_varasm_once): Likewise.
2579
2580 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
2581 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
2582 stor-layout.c, regclass.c, and lists.c.
2583 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
2584 gt-regclass.h and gt-lists.h on s-gtype.
2585 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
2586 * except.c: Use gengtype for roots.
2587 * explow.c: Use gengtype for roots. Include gt-explow.h.
2588 * expr.h (init_stor_layout_once): Delete prototype.
2589 * function.c: Use gengtype for roots.
2590 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
2591 * gengtype-yacc.y (start): Can also be an externstatic.
2592 (externstatic): New production.
2593 (struct_fields): Correct array bounds inversion for 2-d arrays.
2594 * gengtype.c (variables): New variable.
2595 (note_variable): New function.
2596 (get_output_file): Include libfuncs.h into gtype-desc.c.
2597 (get_output_file_name): New function.
2598 (write_gc_structure_fields): Suppress warnings.
2599 (write_gc_types): Make static.
2600 (put_mangled_filename): New function.
2601 (write_gc_roots): New function.
2602 (main): Call write_gc_roots.
2603 * gengtype.h (note_variable): Prototype.
2604 (get_output_file_name): Prototype.
2605 (write_gc_types): Delete prototype.
2606 * ggc.h: Clean up unnecessary structure predefinitions.
2607 (struct ggc_root_tab): Define.
2608 (gt_ggc_m_rtx_def): Make function, not macro.
2609 (gt_ggc_m_tree_node): Likewise.
2610 * libfuncs.h: Use gengtype for roots.
2611 * lists.c: Use gengtype for roots. Include gt-lists.h.
2612 (init_EXPR_INSN_LIST_cache): Delete.
2613 * optabs.c: Use gengtype for roots.
2614 (gt_ggc_mp_optab): Delete.
2615 * optabs.h: Use gengtype for roots.
2616 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
2617 * rtl.h: Use gengtype for roots.
2618 (init_EXPR_INSN_LIST_cache): Delete prototype.
2619 * stor-layout.c: Use gengtype for roots.
2620 Include gt-stor-layout.h.
2621 (init_stor_layout_once): Delete.
2622 * toplev.c: Use gengtype for roots. Delete calls to deleted
2623 routines.
2624 * tree.c: Use gengtype for roots.
2625 * tree.h: Use gengtype for roots.
2626 * varasm.c: Use gengtype for roots.
33005162 2627
e2500fed
GK
2628 * Makefile.in (GTFILES): Add @all_gtfiles@.
2629 * configure: Regenerate.
2630 * configure.in: Construct all_gtfiles from the gtfiles definitions
2631 in config-lang.in.
2632 * gengtype-yacc.y (type): Warn about duplicate structure names.
2633 * gengtype.c (get_output_file): Handle .c files in language
2634 subdirectories.
2635
2636 * Makefile.in (GTFILES): Run gengtype on all the config files
2637 and on the target .c file.
2638 * except.c (mark_eh_region): Delete.
2639 (init_eh_for_function): Use GGC on struct eh_status.
2640 (mark_eh_status): Delete.
2641 (free_eh_status): Use GGC.
2642 (expand_eh_region_start): Use GGC to
2643 (collect_eh_region_array): Allocate last_region_number using GGC.
2644 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
2645 (remove_eh_handler): Let GGC free struct eh_region.
2646 (add_call_site): Use GGC to reallocate call_site_record array.
2647 * function.c (init_machine_status): Update calling sequence.
2648 (mark_machine_status): Likewise.
2649 (mark_lang_status): Likewise.
2650 (prepare_function_start): Update init_machine_status call.
2651 (mark_function_status): Delete.
2652 (maybe_mark_struct_function): Delete.
2653 (ggc_mark_struct_function): Delete.
2654 (gt_ggc_mp_function): New.
2655 (gt_ggc_mr_machine_function): New.
2656 (gt_ggc_mr_language_function): New.
2657 (init_function_once): Use canonical names.
2658 * function.h (struct function): Use gengtype.
2659 (init_machine_status): Return the structure.
2660 (mark_machine_status): Take a 'void *'.
2661 (mark_lang_status): Likewise.
2662 * ggc-common.c (ggc_mark_trees): Use canonical name for
2663 ggc_mark_struct_function.
2664 * tree.h (ggc_mark_struct_function): Delete prototype.
2665 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
2666 (alpha_init_machine_status): Likewise.
2667 (override_options): Use canonical name for alpha_mark_machine_status.
2668 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
2669 * config/arm/arm.h (struct machine_function): Use gengtype.
2670 * config/arm/arm.c (arm_mark_machine_status): Delete.
2671 (arm_init_machine_status): Update calling sequence.
2672 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
33005162 2673 * config/cris/cris.c (cris_init_machine_status): Update
e2500fed
GK
2674 calling sequence.
2675 * config/d30v/d30v.h (struct machine_function): Use gengtype.
33005162 2676 * config/d30v/d30v.c (d30v_init_machine_status): Update
e2500fed
GK
2677 calling sequence.
2678 (d30v_mark_machine_status): Delete.
2679 * config/i386/i386.c: Include gt-i386.h.
2680 (struct machine_function): Use gengtype.
2681 (ix86_init_machine_status): Update calling sequence.
2682 (ix86_mark_machine_status): Delete.
2683 (override_options): Use canonical namke for ix86_mark_machine_status.
2684 * config/ia64/ia64.h (struct machine_function): Use gengtype.
33005162 2685 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
e2500fed
GK
2686 sequence.
2687 (ia64_mark_machine_status): Delete.
33005162 2688 (ia64_override_options): Use canonical name for
e2500fed 2689 ia64_mark_machine_status.
33005162 2690 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
e2500fed
GK
2691 sequence.
2692 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
2693 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2694 * gengtype.c (get_output_file): Fix warning.
2695 (main): Add prototype to suppress warning.
2696 * tree.c: Remove tree_hash_mark prototype.
2697
2698 * tree.h (init_stmt): Delete prototype.
2699 * toplev.c (lang_independent_init): Don't call init_stmt.
2700 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
2701 (stmt_obstack): Delete.
2702 (POPSTACK): No need to free 'struct nesting'.
2703 (gt_ggc_mr_nesting_cond): Use canonical names.
2704 (gt_ggc_mr_nesting_loop): Use canonical names.
2705 (gt_ggc_mr_nesting_block): Use canonical names.
2706 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
2707 (mark_stmt_status): Delete.
2708 (init_stmt): Delete.
2709 (clear_last_expr): Clear both last_expr_type and last_expr_value.
2710 Use it everywhere that last_expr_type was cleared.
2711 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
2712 (zap_lists): Delete.
2713 * ggc.h (ggc_add_deletable_root): Prototype.
2714 (mark_stmt_status): Remove prototype.
2715 * ggc-common.c (ggc_add_deletable_root): New.
2716 (ggc_mark_roots): Handle deletable roots.
2717 * function.c (ggc_mark_struct_function): Use canonical name
2718 for mark_stmt_status.
2719 * emit-rtl.c (free_sequence_stack): New.
2720 (start_sequence): Use a freelist for sequences.
2721 (end_sequence): Likewise.
2722 (init_emit_once): Add free_sequence_stack as a deleteable root.
2723 * c-pragma.c Include gt-c-pragma.h.
2724 (struct align_stack): Use gengtype.
2725 (push_alignment): Use GGC for struct align_stack.
2726 (mark_align_stack): Delete.
2727 (gt_ggc_mp_align_stack): New.
2728 (init_pragma): Use canonical name for mark_align_stack.
2729 * c-decl.c: Include gt-c-decl.h.
2730 (struct binding_level): Use gengtype.
2731 (make_binding_level): Use GGC; handle the freelist here.
2732 (pop_binding_level): New.
2733 (pushlevel): Move code into make_binding_level.
2734 (push_label_level): Likewise.
2735 (poplevel): Move code into pop_binding_level.
2736 (pop_label_level): Likewise.
2737 (mark_binding_level): Delete.
2738 (gt_ggc_mp_binding_level): New.
2739 (c_init_decl_processing): Use canonical name for mark_binding_level.
2740 Add free_binding_level as deletable root.
2741 (mark_c_function_context): Use canonical name for mark_binding_level.
2742 * Makefile.in (c-decl.o): Add gt-c-decl.h.
2743 (c-pragma.o): Add gt-c-pragma.h.
2744 (GTFILES): Add c-decl.c and c-pragma.c.
2745 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
2746
2747 * tree.c (struct type_hash): Use gengtype.
2748 (init_obstacks): Use canonical name for type_hash_mark.
2749 (type_hash_mark): Delete.
2750 Include gt-tree.h.
2751 * rtl.h (struct mem_attrs): Use gengtype.
2752 * optabs.h (struct optab): Use gengtype.
2753 * optabs.c (expand_binop): Squish signed/unsigned warning.
2754 (mark_optab): Make local, use canonical name, use autogenerated
2755 marker procedure.
2756 (init_optabs): Use canonical name for mark_optab.
2757 (new_optab): Use GGC to allocate optabs.
2758 * ggc.h: Delete mark_optab prototype.
2759 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
2760 mem_attrs marker procedure.
2761 * gengtype.c (get_output_file): Include headers in gtype-desc.c
2762 explicitly rather than deducing them from file names.
2763 (write_gc_structure_fields): Handle arrays of structures.
2764 (main): Return non-zero exit code if errors occur during output.
2765 * emit-rtl.c (mem_attrs_mark): Delete.
2766 (init_emit_once): Use canonical name for mem_attrs marker procedure.
2767 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
2768 (tree.o): Depend on gt-tree.h.
2769 (GTFILES): Add rtl.h, optabs.h, tree.c.
2770 (gt-tree.h): Add it to s-gtype rule.
2771
2772 * .cvsignore: Ignore gengtype flex/bison generated files.
2773 * Makefile.in (GGC_H): Add gtype-desc.h.
2774 (OBJS): Add gtype-desc.o.
2775 (GEN): Add gengtype.
2776 (STAGESTUFF): Add gengtype.
2777 (varasm.o): Add gt-varasm.h.
2778 (stmt.o): Add gt-stmt.h.
2779 (except.o): Add gt-except.h.
2780 (integrate.o): Add gt-integrate.h.
2781 (GTFILES): New.
2782 Add new rules for new files.
2783 * configure: Regenerate.
2784 * configure.in: Correct defaults.h paths.
2785 * emit-rtl.c (mark_sequence_stack): Delete.
2786 (mark_emit_status): Delete.
2787 (start_sequence): Allocate sequence structures using GGC.
2788 (end_sequence): Allocate sequence structures using GGC.
2789 * except.c: Use gengtype for various structures. Include
2790 gt-except.h.
2791 * expr.c (mark_expr_status): Delete.
2792 * function.c: Use gengtype for various structures. Include
2793 gt-function.h.
2794 (mark_function_status): Use standard gt_ggc names for marker functions.
2795 (ggc_mark_struct_function): Likewise.
2796 * function.h: Use gengtype for various structures.
2797 * gengtype-lex.l: New file.
2798 * gengtype-yacc.y: New file.
2799 * gengtype.c: New file.
2800 * gengtype.h: New file.
2801 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
2802 the standard names. Remove some now-unnecessary prototypes.
2803 * integrate.c: Use gengtype for various structures. Include
2804 gt-integrate.h.
2805 (mark_hard_reg_initial_vals): Delete.
2806 * integrate.h (mark_hard_reg_initial_vals): Delete.
2807 * stmt.c: Use gengtype for various structures. Include
2808 gt-stmt.h.
2809 (mark_case_node): Delete.
2810 (mark_goto_fixup): Delete.
2811 (mark_stmt_status): Use standard gt_ggc names for marker functions.
2812 * system.h: Define GTY to empty. In flex/bison files,
2813 don't poison malloc or realloc, instead just define them to
2814 xmalloc and xrealloc.
2815 * varasm.c: Use gengtype for various structures. Include
2816 gt-varasm.h. Use standard gt_ggc names for marker functions.
2817 (mark_pool_constant): Delete.
2818 (mark_varasm_status): Delete.
2819 (decode_rtx_const): #if 0 out non-typesafe hack.
2820
2821 * function.h (free_lang_status): Mark as obsolete.
2822 * function.c (free_lang_status): Mark as obsolete.
2823 * c-decl.c (push_c_function_context): Use GC to allocate and free
2824 struct language_function.
2825 (pop_c_function_context): Likewise.
2826 * c-common.c (mark_c_language_function): Mark struct
2827 language_function.
2828
2829 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
2830 Document that the machine_function structures must be allocated
2831 using GC. Update mark_machine_status documentation.
2832 * function.h: Don't declare free_machine_status.
33005162 2833 * function.c (free_machine_status): Don't define.
e2500fed
GK
2834 (free_after_compilation): Don't call free_machine_status.
2835 (ggc_mark_struct_function): Mark f->machine. Call
2836 mark_machine_status only on non-NULL pointers.
2837 * system.h: Poison free_machine_status.
2838 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
2839 struct machine_function.
2840 (xtensa_free_machine_status): Delete.
2841 (override_options): Don't set free_machine_status.
2842 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2843 free_machine_status.
2844 (rs6000_init_machine_status): Use GC on struct machine_function.
2845 (rs6000_free_machine_status): Delete.
2846 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
2847 machine_function.
2848 (ia64_mark_machine_status): Likewise.
2849 (ia64_free_machine_status): Delete.
2850 (ia64_override_options): Don't set free_machine_status.
2851 * config/i386/i386.c (override_options): Don't set
2852 free_machine_status.
2853 (ix86_init_machine_status): Use GC on struct machine_function.
2854 (ix86_mark_machine_status): Likewise.
2855 (ix86_free_machine_status): Delete.
2856 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
2857 machine_function.
2858 (d30v_mark_machine_status): Likewise.
2859 (d30v_free_machine_status): Delete.
2860 (d30v_init_expanders): Don't set free_machine_status.
2861 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
2862 machine_function.
2863 (arm_init_machine_status): Likewise.
2864 (arm_free_machine_status): Delete.
2865 (arm_init_expanders): Don't set free_machine_status.
2866 * config/alpha/alpha.c (override_options): Don't set
2867 free_machine_status.
2868 (alpha_init_machine_status): Use GC on struct machine_function.
2869 (alpha_mark_machine_status): Likewise.
2870 (alpha_free_machine_status): Delete.
2871
2872 * varasm.c (compare_constant): Fix typo.
2873
2874 * varasm.c: Don't include obstack.h.
2875 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
2876 (struct rtx_const): Give substructures names, improve formatting.
2877 (struct constant_descriptor): Delete.
2878 (struct constant_descriptor_tree): New, based on constant_descriptor.
2879 (const_hash_table): Is a hash table of trees.
2880 (mark_const_hash_entry): Is used for hashes of trees. Mark
2881 constant_descriptor_tree structure.
2882 (mark_const_str_htab_1): Mark deferred_string structure.
2883 (compare_constant): Rewrite to compare trees.
2884 (compare_constant_1): Delete.
2885 (record_constant): Delete.
2886 (record_constant_1): Delete.
2887 (output_constant_def): Use struct constant_descriptor_tree.
2888 Don't duplicate trees twice.
2889 (struct constant_descriptor_rtx): New.
2890 (struct pool_constant): Used for rtx constants.
2891 (init_varasm_status): Update for change to struct varasm_status.
2892 (mark_varasm_status): Likewise.
2893 (free_varasm_status): Delete.
2894 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
2895 (record_constant_rtx): Likewise.
2896 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
2897 (force_const_mem): Likewise.
2898 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
2899 * function.c (free_after_compilation): Don't use free_varasm_status.
2900 * function.h: Don't prototype free_varasm_status.
2901
2902 * ggc-common.c (ggc_realloc): Handle X being NULL.
2903
2904 * ggc-common.c (ggc_realloc): New function.
2905 * ggc.h: Prototype it.
2906 * emit-rtl.c (free_emit_status): Delete.
2907 (init_emit): Allocate emit subarrays using GC.
2908 (gen_reg_rtx): Reallocate subarrays using GC.
2909 (init_emit): Use GC to allocate 'struct emit_status' and its
2910 subarrays.
2911 (mark_emit_status): Mark structure and its subarrays.
2912 * stmt.c (free_stmt_status): Delete.
2913 * expr.c (free_expr_status): Delete.
2914 * function.h: Remove prototypes for deleted functions.
2915 * function.c (free_after_compilation): Don't use deleted functions.
2916 Don't call free() on x_parm_reg_stack_loc.
2917 (free_after_parsing): Don't use free_stmt_status.
2918 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
2919 (mark_function_status): Mark x_parm_reg_stack_loc.
2920
2921 * varasm.c (init_varasm_status): Use GC to allocate
2922 'struct varasm_status' and its fields x_const_rtx_hash_table
2923 and x_const_rtx_sym_hash_table.
2924 (mark_varasm_status): Mark them.
2925 (free_varasm_status): Use GC to free them.
2926 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
2927 (mark_expr_status): Mark the structure itself.
2928 (free_expr_status): Use GC to free the structure.
2929 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
2930 (mark_stmt_status): Mark the 'struct stmt_status' itself.
2931 (init_stmt_for_function): Allocate the structure for GC.
2932
2933 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
2934 (equate_type_number_to_die): Likewise.
2935 * tree.h (TYPE_SYMTAB_DIE): New macro.
2936 (struct die_struct): Predeclare.
2937 (struct tree_type): Add field symtab.die. Add a tag
2938 to the union type of field symtab.
2939
2940 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
2941 'struct rtvec_def *', not 'struct rtvec_def'.
2942
2943 * function.h (original_arg_vector): Make a real rtvec.
2944 * function.c (ggc_mark_struct_function): Adjust.
2945 * integrate.c (expand_inline_function): Adjust.
2946
b655555e
JT
29472002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2948
2949 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
2950 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
2951 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
2952 (TARGET_VERSION_CPU): Define according to the
2953 default target.
2954 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
2955 TARGET_VERSION_CPU.
2956 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
2957 if TARGET_SHMEDIA64.
2958 (LINK_DEFAULT_CPU_EMUL): Define according to the
2959 default target.
2960 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
2961 (SUBTARGET_LINK_SPEC): Define.
2962 (LINK_SPEC): Use SH_LINK_SPEC.
2963 (ASM_SPEC): Remove.
2964 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2965 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
2966 and TARGET_SHMEDIA64 which abort, for now.
2967 * config/sh/t-netbsd-sh5: New file.
2968 * config/sh/t-netbsd-sh5-32: New file.
2969 * config/sh/t-netbsd-sh5-64: New file.
2970
6d8fd7bb
RH
29712002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2972 Richard Henderson <rth@redhat.com>
2973
2974 * config/alpha/alpha.c (reg_or_const_int_operand): New.
2975 (some_operand, input_operand): Accept CONST_VECTOR.
2976 (alpha_extra_constraint): Add 'W'.
2977 (alpha_expand_zap_mask): New.
2978 (alpha_expand_builtin_vector_binop): New.
2979 (enum alpha_builtin): New.
2980 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
2981 (alpha_init_builtins, alpha_expand_builtin): New.
2982 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
2983 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
2984 (PREDICATE_CODES): Update.
2985 * config/alpha/alpha-protos.h: Update.
2986 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
2987 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
2988 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
2989 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
2990 (movv2si, movv2si_fix, movv2si_nofix): New.
2991 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
2992 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
2993 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
2994 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
2995 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
2996 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
2997 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
2998 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
2999 builtin_unpkbw, unpkbw): New.
3000 * doc/extend.texi (Alpha Built-in Functions): New.
3001
618939de
RH
30022002-06-03 Richard Henderson <rth@redhat.com>
3003
3004 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
3005 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
3006
73db7137
RH
30072002-06-03 Richard Henderson <rth@redhat.com>
3008
6933647a
RH
3009 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
3010
73db7137
RH
3011 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
3012 (const0_operand): New.
3013 (reg_or_fp0_operand, fp0_operand): Remove.
3014 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3015 * config/alpha/alpha-protos.h: Update.
3016 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
3017 and fp0_operand with reg_or_0_operand and const0_operand.
3018
a6f7c915
DN
30192002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3020
3021 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
3022
b2f02503
RS
30232002-06-03 Roger Sayle <roger@eyesopen.com>
3024
3025 * gcse.c (cprop_jump): Use single_set to get the pattern
3026 from the setcc argument.
3027
4fcc2065
GDR
30282002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
3029
33005162 3030 * diagnostic.h (diagnostic_count): Move from output_buffer to
4fcc2065
GDR
3031 diagnostic_context.
3032 (diagnostic_kind_count): Adjust definition.
3033
5204d665
JH
3034Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
3035
3036 * except.c (except.c): Do not rebuild CFG.
3037 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
3038 optimization.
3039
0478a14c
JH
3040Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3041
3042 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
3043 * toplev.c: Include cfglahout.h
3044 * Makefile.in (toplev.c): Add dependnecy.
3045
30efe578
NB
30462002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
3047
3048 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
3049 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
3050 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
3051
a782515b
JT
30522002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3053
3054 * config/ns32k/netbsd.h: Update copyright years.
3055 (TARGET_OS_CPP_BUILTINS): Define.
3056 (CPP_PREDEFINES): Remove.
3057 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
3058 (TARGET_CPU_CPP_BUILTINS): Define.
3059
0fb7aeda
KH
30602002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3061
589005ff 3062 * emit-rtl.c: Fix formatting.
0fb7aeda
KH
3063 * errors.h: Likewise.
3064 * except.c: Likewise.
3065 * explow.c: Likewise.
3066 * expmed.c: Likewise.
3067 * expr.c: Likewise.
3068 * expr.h: Likewise.
3069
1c8ec18b
KH
30702002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3071
3072 * config/h8300/elf.h: Fix formatting.
3073 * config/h8300/rtems.h: Likewise.
3074
86cb04f6
JT
30752002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3076
3077 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
3078
5d83269d
TT
30792002-06-02 Tom Tromey <tromey@redhat.com>
3080
3081 * fixinc/fixincl.x: Rebuilt.
3082 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
3083
62f6a494
NB
30842002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3085
3086config/i370:
3087 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
3088 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
3089 * mvs.h: Similarly.
3090 * oe.h: Similarly.
3091
0acb0203
JH
3092Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
3093
3094 * final.c (final): Allow notes to not have computed addresses;
3095 kill no longer needed STACK_REGS ifdef.
3096
ada8d98a
RH
30972002-06-02 Richard Henderson <rth@redhat.com>
3098
3099 * gcse.c (bypass_conditional_jumps): Fix typo last change.
3100
ba4f7968
JH
3101Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3102
ada8d98a
RH
3103 * loop.c (emit_prefetch_instructions): Properly place the address
3104 computation.
ba4f7968
JH
3105
3106Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
3107
3108 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
3109 (set_block_for_insn): Turn into macro.
3110 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
3111 * cfglayout.c (insn_scopes): Kill.
3112 (scope_to_insns_initialize): Do not use insn_scopes.
3113 (scope_to_insns_finalize): Likewise.
3114 (duplicate_insn_chain): Likewise.
3115 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
3116 * cfgrtl.c (basic_block_for_insn): Kill.
3117 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
3118 (create_basic_block_structure): Use reorder_insns.
3119 (compute_bb_for_insn): Do not use basic_block_for_insn.
3120 (merge_blocks_nomove): Likewise.
3121 (update_bb_for_insn): Likewise.
3122 (verify_flow_info): Likewise.
3123 (set_block_for_insn): Kill.
3124 * combine.c (try_combine): Update gen_rtx_INSN call.
3125 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
3126 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
3127 scopes and BBs.
3128 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
3129 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
3130 Clear BB.
3131 (emit_insns_after): Simplify.
3132 (emit_copy_of_insn_after): Copy scope.
3133 * final.c (final_start_function): Lower scopes.
3134 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
3135 * integrate.c (copy_insn_list): Cope scopes.
3136 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
3137 * loop.c (loop_optimize): Do not care block notes.
3138 * print-rtl.c (print_rtx): Print BB.
3139 * recog.c (apply_change_group): Simplify.
3140 * rtl.c (copy_rtx): Handle 'B'.
3141 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
3142 * rtl.h (Field accessors): Update indexes.
3143 * sched-ebb.c (schedule_ebbs): Do not lower notes.
3144 * sched-rgn.c (schedule_insns): Likewise.
3145 * toplev.c (rest_of_compilation): Lower notes.
3146 * unroll.c (unroll_loop): Do not care scoping notes.
3147 (copy_loop_body): Copy scopes.
3148
537fc532
NB
31492002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3150
3151config/h8300:
3152 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3153 SUBTARGET_SPEC.
3154 * rtems.h: Similarly.
3155 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
3156 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3157 (TARGET_CPU_CPP_BUILTINS): Use.
3158
ab780373
RH
31592002-06-02 Richard Henderson <rth@redhat.com>
3160
3161 * alias.c: Include target.h.
3162 (mark_constant_function): Use targetm.binds_local_p instead
3163 of checking TREE_PUBLIC ourselves.
3164 * Makefile.in (alias.o): Add TARGET_H.
3165
b9305c66
NB
31662002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3167
3168 * c-lex.c: Update copyright and file description.
3169
0ac3e0c4
NB
31702002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3171
3172 * config/fr30/fr30.h: Update to new CPP macros.
3173
be3a1d46
NB
31742002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3175
3176 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
3177
ceeedfc1 31782002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
a8fd5963 3179 Zack Weinberg <zack@codesourcery.com>
ceeedfc1
NB
3180
3181 * c-common.c (c_common_init): Override cpplib's default
3182 warn_long_long setting.
3183 * c-lex.c (lex_number): Replace with interpret_integer,
3184 interpret_float, narrowest_unsigned_type and
3185 narrowest_signed_type, taking advantage of the new
3186 cpplib functionality.
3187 * cpperror.c (_cpp_begin_message): If a warning is turned
3188 into an error, avoid printing "warning:".
3189 * cppexp.c (cpp_num_sign_extend): New.
3190 * cppinit.c: Update comment.
3191 * cpplib.h (cpp_num_sign_extend): New.
3192 * tree.h: Update comment.
3193
27e511e0
GDR
31942002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3195
3196 * diagnostic.h (struct diagnostic_context): Add new member
33005162 3197 internal_error.
27e511e0
GDR
3198 (internal_error_function): Remove declaration.
3199 * diagnostic.c (internal_error_function): Remove definition..
3200 (internal_error): Adjust use.
3201
818b6b7f
RH
32022002-06-02 Richard Henderson <rth@redhat.com>
3203
3204 * rtl.h (CC0_P): New.
3205 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
3206 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
3207 (bypass_block): Save old dest block for dump text.
3208 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
3209 Allow only true SET insns, not single_set.
3210
167143a0
GDR
32112002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3212
3213 * diagnostic.c (diagnostic_finish): Rename to output_flush.
3214 (clear_disgnostic_info): Rename to output_clear_data. Use false
3215 instead of 0 for boolean value.
3216 Adjust function call throughout.
3217
eae4bc56
JH
3218Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3219
3220 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
3221 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
3222
9eb404a0
NB
32232002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3224
3225 * d30v.h (CPP_PREDEFINES): Replace with
3226 (TARGET_CPU_CPP_BUILTINS): New.
3227
53e8b0b8
RS
32282002-06-02 Roger Sayle <roger@eyesopen.com>
3229
3230 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
3231
92e34b67
JH
3232Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
3233
3234 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
3235
e7e9d242
RH
32362002-06-02 Richard Henderson <rth@redhat.com>
3237
3238 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
3239
9af145ae
MM
32402002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
3241
3242 Support for C++ constructors/destructors.
3243 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
3244 instead of looping if main() returns.
3245 (asm_file_start): Output global symbols that cause .data and .bss
3246 initialization code to be linked in, unconditionally for now.
3247 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
3248 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
3249 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3250 (LIBSTDCXX): New.
3251 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
3252 (__tablejump__): New.
3253 (__do_copy_data, __do_clear_bss): New.
3254 (__do_global_ctors, __do_global_dtors): New.
3255 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
3256 _ctors, _dtors.
3257
0d66ad57
NB
32582002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3259
3260 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
3261 (CPP_SPEC, CPP_PREDEFINES): Kill.
3262 * c4x/rtems.h (CPP_PREDEFINES): Kill.
3263 (TARGET_OS_CPP_BUILTINS): New.
3264
5c856b23
JH
3265Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
3266
3267 * Makefile.in (tracer.o): New.
3268 * params.def (TRACER_*): New options.
3269 * rtl.h (tracer): Declare.
3270 * timevar.def (TV_TRACER): New.
3271 * toplev.c (dump_file_index): Add DFI_tracer.
3272 (dump_file_info): Add tracer.
3273 (flag_tracer): New.
3274 (lang_indepdenent_options): Add tracer.
3275 (rest_of_compilation): Call tracer.
3276 * tracer.c: New file.
3277 * invoke.texi (-ftracer): Document.
3278 (--param tracer-*): Document.
3279
e2405951
DB
32802002-06-01 Daniel Berlin <dberlin@dberlin.org>
3281
3282 * tree-inline.c (expand_call_inline): Make the statement
33005162 3283 expression we generate have a COMPOUND_STMT.
e2405951 3284
0e3f0221
RS
32852002-06-01 Roger Sayle <roger@eyesopen.com>
3286
3287 * gcse.c (cprop_cc0_jump): Function deleted.
3288 (cprop_jump): Take an additional argument which is the possibly
3289 NULL cc setting insn immediately before the conditional jump.
3290 When a MODE_CC set is present, substitute it into the JUMP_INSN
3291 before attempting the constant propagation.
3292 (cprop_insn): Recognize cc setters followed by conditional jumps
3293 as a special case. Use cprop_jump instead of cprop_cc0_jump.
3294 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
3295 (find_bypass_set): New function based upon find_avail_set used by
3296 cprop, but finds constant expressions available at the end of
3297 basic blocks.
3298 (bypass_block): New function. Given a basic block that begins
3299 with a conditional jump and multiple incoming edges, perform
3300 the jump bypass optimization.
3301 (bypass_conditional_jumps): New function. Call bypass_block with
3302 each suitable basic block in the CFG using a simple single pass.
3303
378393da
RS
33042002-06-01 Roger Sayle <roger@eyesopen.com>
3305
3306 * tree.c (real_minus_onep): New function to test for -1.0.
3307 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
3308
01c58f26
RS
33092002-06-01 Roger Sayle <roger@eyesopen.com>
3310
3311 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
3312 and "!p && !q" into "(p|q) == 0" under suitable conditions.
3313
91b12472
AJ
33142002-06-01 Andreas Jaeger <aj@suse.de>
3315
3316 * cppexp.c (cpp_classify_number): Cast precission to int for
3317 correct printf format.
3318
01e9ae86
MM
33192002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
3320
3321 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
3322 expected, but don't really exist: atmega83, atmega85, attiny10.
3323 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
3324 emulations for all devices.
3325 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
3326 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
3327
be1e06df
KH
33282002-06-01 Kazu Hirata <kazu@cs.umass.edu>
3329
3330 * config/h8300/h8300-protos.h: Add a prototype for
3331 h8300_shift_needs_scratch_p.
3332 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
3333 * config/h8300/h8300.h (OK_FOR_R): New.
3334 (OK_FOR_S): Likewise.
3335 (OK_FOR_T): Likewise.
3336 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
3337 * config/h8300/h8300.md (anonymous shift patterns): Use
3338 constraints R, S, and T.
3339
2ecfd709
ZD
3340Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3341
3342 * basic-block.h (struct basic_block_def): New field loop_father.
3343 (BB_VISITED): New flag.
3344 (struct loop): New field pred, removed field shared.
3345 (struct loops): New field parray.
3346 (LOOP_EXITS_DOMS): Removed.
3347 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
3348 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
3349 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
3350 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
3351 verify_loop_structure): Declare.
3352 * cfg.c (entry_exit_blocks): Initialize loop_father field.
3353 * cfganal.c (dfs_enumerate_from): New function.
3354 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
3355 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3356 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
3357 flow_loop_dump, flow_loops_dump, flow_loops_free,
3358 flow_loop_tree_node_add, flow_loop_level_compute,
3359 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
3360 flow_loop_outside_edge_p): Modified for new infrastructure.
3361 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
3362 redirect_edge_with_latch_update, flow_loop_free): New static functions.
3363 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
3364 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
3365 find_common_loop, verify_loop_structure, loop_latch_edge,
3366 loop_preheader_edge): New functions.
3367 (flow_loops_cfg_dump): Do not show dominators, as this information
3368 does not remain up to date long.
3369 (flow_loops_find): Store results in new format.
3370 * predict.c (propagate_freq, estimate_probability,
3371 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
3372 infrastructure.
3373
d9763749 33742002-06-01 Alan Lehotsky <apl@alum.mit.edu>
91b12472 3375
d9763749
AL
3376 * except.c (nothrow_function_p): Walk epilogue delay list
3377 checking the insn, not the chain for potential throws.
91b12472 3378
1e730c5c
ZW
33792002-05-31 Zack Weinberg <zack@codesourcery.com>
3380
3381 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
3382 (install): Refer to install-cpp directly.
3383 (uninstall-cpp): Folded into uninstall rule.
3384 * configure.in: Delete all code relating to --disable-cpp.
3385 * configure: Regenerate.
3386 * config/t-install-cpp: Delete.
3387
6f9b006d
RH
33882002-05-31 Richard Henderson <rth@redhat.com>
3389
3390 * configure.in (HAVE_AS_TLS): Add alpha tests.
3391 * configure: Rebuild.
3392 * config/alpha/alpha.c (TARGET_AS_TLS): New.
3393 (alpha_tls_size, alpha_tls_size_string): New.
3394 (overide_options): Set it. Always install machine_status hooks.
3395 (input_operand): Accept got tls predicates.
3396 (local_symbol_p): Merge into ...
3397 (local_symbolic_operand): ... here. Reject tls symbols.
3398 (global_symbolic_operand): Likewise.
3399 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
3400 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
3401 (tp16_symbolic_operand, tp32_symbolic_operand): New.
3402 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
3403 (alpha_encode_section_info): Handle TLS symbols.
3404 (alpha_strip_name_encoding): Likewise.
3405 (alpha_legitimate_address_p): Likewise.
3406 (alpha_legitimize_address): Likewise.
3407 (alpha_expand_mov): Early exit to avoid nop moves.
3408 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
3409 (alpha_init_machine_status, alpha_mark_machine_status,
3410 alpha_free_machine_status): Always define.
3411 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
3412 (print_operand, print_operand_address): Add TLS relocs.
3413 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
3414 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
3415 (TARGET_SWITCHES): Add -mtls-kernel.
3416 (alpha_tls_size, alpha_tls_size_string): New.
3417 (TARGET_OPTIONS): Add -mtls-size=.
3418 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3419 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
3420 (ASM_OUTPUT_LABELREF): Skip %.
3421 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
3422 (PREDICATE_CODES): Update.
3423 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
3424 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
3425 UNSPEC_TP, UNSPECV_SET_TP): New.
3426 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
3427 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
3428 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
3429 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
3430 (call_value_osf_2_er): Accept anything as op4.
3431 * config/alpha/alpha-protos.h: Update.
3432 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
3433
39e5db1a
ZW
34342002-05-31 Zack Weinberg <zack@codesourcery.com>
3435
3436 * cppinit.c (append_include_chain): Always pay attention to
3437 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
3438 marker on argument.
3439
41077ce4
KH
34402002-05-31 Kazu Hirata <kazu@cs.umass.edu>
3441
3442 * target.h: Fix formatting.
3443 * timevar.h: Likewise.
3444 * tlink.c: Likewise.
3445 * toplev.c: Likewise.
3446 * toplev.h: Likewise.
3447 * tree.c: Likewise.
3448 * tree-dump.h: Likewise.
3449 * tree.h: Likewise.
3450 * tree-inline.h: Likewise.
3451 * unroll.c: Likewise.
3452 * unwind-dw2.c: Likewise.
3453 * unwind-dw2-fde.c: Likewise.
3454 * unwind-dw2-fde-glibc.c: Likewise.
3455 * unwind-dw2-fde.h: Likewise.
3456 * unwind.h: Likewise.
3457 * unwind-sjlj.c: Likewise.
3458 * varasm.c: Likewise.
3459 * varray.h: Likewise.
3460 * vmsdbg.h: Likewise.
3461 * vmsdbgout.c: Likewise.
3462 * xcoffout.h: Likewise.
3463
b2e426a0
IS
34642002-05-31 Igor Shevlyakov <igor@microunity.com>
3465
1e730c5c 3466 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
b2e426a0
IS
3467 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
3468
8b968bd1
MW
34692002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
3470
3471 * gcc.c (cpp_unique_options): Remove "-d" options.
3472 (cpp_debug_options): New spec string.
3473 (default_compilers): Use it.
3474 * objc/lang-specs.h: Likewise.
3475
5c35940c
NN
34762002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
3477
1e730c5c 3478 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5c35940c
NN
3479 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
3480 * gcc/mklibgcc.in: Likewise.
3481 * gcc/config/arc/t-arc: Likewise.
3482 * gcc/configure.in: Likewise.
3483 * gcc/configure: Regenerate.
3484
8b496ceb
SS
34852002-05-31 Stan Shebs <shebs@apple.com>
3486 Turly O'Connor <turly@apple.com>
3487
3488 * c-decl.c (struct binding_level): Change int field n_incomplete
3489 to tree list incomplete_list.
3490 (clear_binding_level): Init field with NULL.
3491 (pushdecl): Add incomplete type to list.
3492 (mark_binding_level): Mark the incomplete list.
3493 (finish_struct): Scan the incomplete list for types instead
3494 of all decls in the current binding level.
3495
4722213d
JDA
34962002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3497
3498 * pa.c (output_millicode_call): Add missing '%' characters.
3499 (output_call): Likewise.
3500
1086fcb1
DE
35012002-05-31 David Edelsohn <edelsohn@gnu.org>
3502
3503 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
3504 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3505
afdfb380 35062002-05-31 Alan Lehotsky <apl@alum.mit.edu>
91b12472 3507
afdfb380
AL
3508 * varasm.c (mark_constant_pool): Walk epilogue delay list
3509 checking the insn, not the chain for potential constants.
1e730c5c 3510
f2df45f6
R
3511Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
3512
3513 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
3514
91ea38f9
JH
3515Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
3516
3517 * i386.c (classify_argument): Properly handle base types.
3518
3519 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
3520 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
3521 registers.
3522
10d1bb36
JH
3523Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3524
3525 * gcse.c (gcse_emit_move_after): New.
3526 (pre_delete, hoist_store): Use it.
3527
3528 * reload1.c (emit_input_reload_insns): Use constrain_operands
3529 instead of constraint_accepts_reg_p to verify optimization.
3530 (constraint_accepts_reg_p): Kill
3531
3532 * reload1.c (reload_cse_delete_noop_set): Kill.
3533 (reload_cse_simplify): use delte_insn_and_edges.
3534
8a72fb76
ZD
35352002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3536
3537 * cfgloop.c (flow_loops_find): Initialize first and last fields
3538 correctly.
3539
a9da2e5b
NB
35402002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
3541
3542 * c-common.c (builtin_define_std): Correct logic.
3543
6248c4dd
JDA
35442002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3545
3546 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
3547 (output_call): Likewise.
3548
d499455b
JDA
35492002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3550
3551 * pa.c: Move output.h include after tree.h include.
3552 (pa_asm_output_mi_thunk): Constify identifier lab.
3553
2eb2901a
JT
35542002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3555
3556 * config/ns32k/ns32k.h: Define named constants for the
3557 bits in target_flags and use them.
3558 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
3559
806bf413
JDA
35602002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3561
3562 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
3563 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
3564 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
3565 default scheduling model.
3566 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
3567 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
3568 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
3569 * doc/install.texi (hppa*-*-*): Document default scheduling.
3570
6d8d2bbc
JDA
35712002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3572
3573 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
3574
c8eb9785
JT
35752002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3576
3577 * config.gcc (ns32k-*-netbsd*): Set tm_file to
3578 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
3579 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
3580 netbsd.h, or netbsd-aout.h.
3581
6e2e5b6a
JT
35822002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3583
3584 * longlong.h (count_trailing_zeros): Add missing \, and clean up
3585 whitespace in __ns32000__ case.
3586
00182e1e
AH
35872002-05-31 Aldy Hernandez <aldyh@redhat.com>
3588
1e730c5c
ZW
3589 * expr.c (expand_expr): Output partially zeroed out vectors with
3590 output_constant_def.
00182e1e 3591
b4eb03fe
JT
35922002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3593
3594 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
3595 (sh-*-netbsdelf*)
3596 (shl*-*-netbsdelf*): New targets.
3597 * config/sh/netbsd-elf.h: New file.
8fd0df91 3598 * config/sh/t-netbsd: New file.
b4eb03fe 3599
261376e7
RH
36002002-05-30 Richard Henderson <rth@redhat.com>
3601 Eric Botcazou <ebotcazou@multimania.com>
3602
3603 PR optimization/6822
3604 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
3605 to unsigned int for op1 comparisons. Use gen_int_mode.
3606
ce60bf25
EB
36072002-05-30 Eric Botcazou <ebotcazou@multimania.com>
3608
3609 * expmed.c (const_mult_add_overflow_p): New.
3610 * expr.h: Declare it.
3611 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
3612 Don't eliminate the biv if the giv has a constant multiplier and
3613 the rhs argument of the comparison does satisfy the predicate.
3614 Use expand_mult_add to compute the replacement constant.
3615
d18b1ed8
OS
36162002-05-30 Osku Salerma <osku@iki.fi>
3617
3618 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
3619 (c_common_get_alias_set): Handle it.
3620 * doc/extend.texi: Document it.
3621
a7943381
RH
36222002-05-30 Richard Henderson <rth@redhat.com>
3623
3624 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3625 * toplev.c (process_options): Don't check it.
3626 * doc/tm.texi: Don't document it.
3627 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
3628 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3629 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
3630 frame pointer optimization if current_function_profile.
3631
e11e816e
KH
36322002-05-30 Kazu Hirata <kazu@cs.umass.edu>
3633
3634 * langhooks.c: Fix formatting.
3635 * langhooks.h: Likewise.
3636 * lcm.c: Likewise.
3637 * libgcc2.c: Likewise.
3638 * lists.c: Likewise.
3639 * local-alloc.c: Likewise.
3640 * loop.c: Likewise.
3641 * loop.h: Likewise.
3642
36432002-05-30 Marc Espie <espie@openbsd.org>
3644
3645 * config.gcc (sparc64-*-openbsd*): New.
3646 * config/sparc/openbsd1-64.h: New.
3647 * config/sparc/openbsd64.h: New.
91f0fcee 3648
d35dfca9
JL
36492002-05-30 Jeff Law <law@redhat.com>
3650
3651 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
3652 a dead insn with a REG_RETVAL note when the entire libcall is not
3653 dead and remove the associated REG_LIBCALL note at the same time.
3654
81b40b72
R
3655Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3656
3657 * lcm.c (output.h): #include.
3658 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
3659 as an ordinary block.
3660 (optimize_mode_switching): Don't pretend that the exit block is
3661 an ordinary block, or handle sucessors of entry block specially.
3662 Instead, split edges from entry block and to exit block, and
3663 put a computing definition on the thus gained post-entry-block,
3664 and a need on the pre-exit-block.
3665
c8ea9a0f
JH
3666Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3667
3668 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
3669 * rtl.texi: Document 'B'
3670
348f0869
JT
36712002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3672
3673 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
3674 at run-time.
3675 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
3676
9a171fcd
AH
36772002-05-30 Aldy Hernandez <aldyh@redhat.com>
3678
1e730c5c
ZW
3679 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3680 const0_rtx instead of NULL_RTX when in error.
3681 (altivec_expand_abs_builtin): Same.
3682 (rs6000_expand_binop_builtin): Same.
3683 (altivec_expand_predicate_builtin): Same.
3684 (altivec_expand_stv_builtin): Same.
3685 (rs6000_expand_ternop_builtin): Same.
3686 (altivec_expand_builtin): Same.
9a171fcd 3687
62a35e60
DM
36882002-05-29 David S. Miller <davem@redhat.com>
3689
3690 * rtl.h (clear_emit_caches): Delete.
3691 * integrate.c (output_inline_function): Don't call it.
3692 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
3693 (clear_emit_caches): Delete definition.
3694 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
3695
cbc39da8
HPN
36962002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
3697
3698 * config/mmix/mmix.c: Include real.h.
3699 (mmix_constant_address_p): Remove redundant test before switch.
3700
50efa737
JT
37012002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3702
3703 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
3704 only if not already defined.
3705
2e760b15
KH
37062002-05-29 Kazu Hirata <kazu@cs.umass.edu>
3707
3708 * config/h8300/h8300-protos.h: Remove prototypes for
3709 ok_for_bclr and small_power_of_two.
3710 * config/h8300/h8300.c (small_power_of_two): Remove.
3711 (ok_for_blcr): Likewise.
3712 (fix_bit_operand): Make WHAT deal with an integer instead of a
3713 constraint character.
3714 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
3715 (CONST_OK_FOR_P): Likewise.
3716 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
3717 CONST_OK_FOR_P any more.
3718 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
3719 of fix_bit_operand.
3720 (iorqi3): Likewise.
3721 (xorqi3): Likewise.
3722
e1c293ae
JT
37232002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3724
3725 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3726 (CPP_PREDEFINES): Make sure this is undefined.
3727 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
3728 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
3729 or -U__MIPSEB__ before defining one or the other. Instead,
3730 use %(subtarget_endian_default) if neither -EB nor -EL are
3731 specified.
3732 (SUBTARGET_EXTRA_SPECS): Define.
3733 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
3734 %(netbsd_cpp_spec).
3735
fde6d81f
HPN
37362002-05-29 Hans-Peter Nilsson <hp@axis.com>
3737
3738 * doc/md.texi (Patterns): Note pattern condition pitfall
3739 for unnamed insn.
3740
92898235
AH
37412002-05-29 Aldy Hernandez <aldyh@redhat.com>
3742
1e730c5c
ZW
3743 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
3744 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
3745 ternary operations from here...
3746 (rs6000_expand_builtin): ...to here.
3747 New argument expandedp.
3748 Change all instances of altivec_expand_binop_builtin to
3749 rs6000_expand_binop_builtin.
3750 (altivec_expand_unop_builtin): Rename to
3751 rs6000_expand_unop_builtin.
3752 (altivec_expand_binop_builtin): Rename to
3753 rs6000_expand_binop_builtin.
3754 (altivec_expand_ternop_builtin): Rename to
3755 rs6000_expand_ternop_builtin.
92898235 3756
67adf6a9
RH
37572002-05-29 Richard Henderson <rth@redhat.com>
3758
3759 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
3760 (TARGET_BI_ARCH): Likewise.
3761 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
3762 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
3763 (TARGET_64BIT_DEFAULT): Default to 0.
3764 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
3765
145aacc2
RH
37662002-05-29 Richard Henderson <rth@redhat.com>
3767
3768 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
3769 (get_pc_thunk_name): New.
3770 (output_set_got): Use it.
3771 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
3772 into linkonce sections.
3773
a5b49bbc
JT
37742002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3775
3776 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3777 (CPP_PREDEFINES): Make sure this is undefined.
3778 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
3779 (CPP_SUBTARGET_SPEC): Don't provide different versions for
3780 default-32 and default-64. Just always use %(netbsd_cpp_spec).
3781 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
3782 cpp_subtarget_spec64. Add netbsd_cpp_spec.
3783 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3784 (CPP_PREDEFINES): Make sure this is undefined.
3785 (SUBTARGET_EXTRA_SPECS): Define.
3786 (CPP_SPEC): Use %(netbsd_cpp_spec).
3787
54374491
JL
37882002-05-29 Jeff Law <law@redhat.com>
3789
ae02eae8
JL
3790 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
3791
b862c2aa
JL
3792 * flow.c (propagate_one_insn): Do not remove a dead insn if it
3793 contains a REG_RETVAL note.
3794
d10791ba
JL
3795 * haifa-sched (sched_analyze): Remove another useless clearing
3796 of SCHED_GROUP_P I missed yesterday.
3797
54374491
JL
3798 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
3799 * pa.c (pa_asm_output_mi_thunk): New function.
3800 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
3801
92c392e6
NB
38022002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3803 Marek Michalkiewicz <marekm@amelek.gda.pl>
3804
3805 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
3806 (avr_asm_only_p): Make non-static.
3807 (enum avr_arch): Remove.
3808 (avr_arch_types): New.
3809 (avr_mcu_types): Update.
3810 (avr_override_options): Use avr_arch_types table instead of switch.
3811 * avr.h (CPP_PREDEFINES): Die.
3812 (avr_base_arch_macro, avr_extra_arch_macro): New.
3813 (TARGET_CPU_CPP_BUILTINS): New.
3814 (CPP_SPEC, EXTRA_SPECS): Simplify.
3815 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
3816 CPP_AVR5_SPEC): Die.
3817
4528173e
JT
38182002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3819
3820 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3821 NETBSD_OS_CPP_BUILTINS_AOUT.
3822 (SUBTARGET_EXTRA_SPECS): Define.
3823 (CPP_SPEC): Use %(netbsd_cpp_spec).
3824
bd09bdeb
RH
38252002-05-29 Richard Henderson <rth@redhat.com>
3826
3827 * config/i386/i386.c (ix86_output_function_epilogue): New.
3828 (TARGET_ASM_FUNCTION_EPILOGUE): New.
3829 (pic_label_name): Remove.
3830 (pic_labels_used): New.
3831 (ix86_asm_file_end): Emit one pc load stub for each register used.
3832 (output_set_got): Generate deep pc load to any register.
3833 (ix86_select_alt_pic_regnum): New.
3834 (ix86_save_reg): Don't save pic register if we can find a valid
3835 call-clobbered replacement.
3836 (ix86_expand_prologue): If we found a valid replacement, renumber
3837 pic_offset_table_rtx.
3838 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
3839 pic_offset_table_rtx after reload.
3840 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
3841 * config/i386/i386.md (set_got): Make insn, not expander.
3842 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
3843
002ff5bc
RH
38442002-05-29 Richard Henderson <rth@redhat.com>
3845
3846 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
3847 alignment for alloca.
3848
edfe8595
RH
38492002-05-29 Richard Henderson <rth@redhat.com>
3850
3851 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
3852 (print_operand_address): Only add rip for symbolic addresses
3853 for which we do not have another relocation type.
3854
cd7714ee
JT
38552002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3856
3857 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3858 (EXTRA_SPECS): Add netbsd_cpp_spec.
3859 (CPP_SPEC): Use %(netbsd_cpp_spec).
3860 (CPP_PREDEFINES): Remove.
3861 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3862 (EXTRA_SPECS): Define.
3863 (CPP_SPEC): Use %(netbsd_cpp_spec).
3864 (CPP_PREDEFINES): Remove.
3865
8dc901de
NB
38662002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3867
3868 PR preprocessor/6844
3869 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
3870 NUL.
3871
2274b31a
EC
38722002-05-29 Eric Christopher <echristo@redhat.com>
3873
3874 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
3875 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
3876
5c7666c1
NC
38772002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
3878
3879 * config/fr30/fr30.md: Remove previous restriction on splits.
3880 Enforce conformance through gen_lowpart and cont_int_operand.
1e730c5c 3881 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5c7666c1
NC
3882 as the assembler does not support ".bss".
3883
45beef47
JT
38842002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3885
3886 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3887 (CPP_PREDEFINES): Remove.
3888 (SUBTARGET_EXTRA_SPECS): Define.
3889 (CPP_SPEC): Use %(netbsd_cpp_spec).
3890 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3891 (CPP_PREDEFINES): Remove.
3892 (SUBTARGET_EXTRA_SPECS): Define.
3893 (CPP_SPEC): Use %(netbsd_cpp_spec).
3894 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
3895 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
3896 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
3897 Add netbsd_cpp_spec.
3898 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
3899
cd7ab83f
NB
39002002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3901 Zack Weinberg <zack@codesourcery.com>
3902
3903 * cppexp.c (cpp_num): Move to cpplib.h.
3904 (CPP_ERROR): Remove.
3905 (interpret_float_suffix, interpret_int_suffix): New.
3906 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
3907 (cpp_classify_number, cpp_interpret_integer): New.
3908 (interpret_number): Remove.
3909 (eval_token): Update to use new routines.
3910 * cpphash.h (cpp_num_part): Move to cpplib.h.
3911 * cppinit.c (cpp_post_options): Set warn_long_long.
3912 * cpplib.h (struct cpp_options): Add warn_long_long.
3913 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
3914 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
3915 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
3916 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
3917 cpp_interpret_integer): New.
3918
61a8515c
JS
39192002-05-29 Joel Sherrill <joel@OARcorp.com>
3920
3921 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
3922
53a428b5
JT
39232002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3924
3925 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2274b31a
EC
3926 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
3927 (CPP_SUBTARGET_SPEC): Define.
3928 (SUBTARGET_EXTRA_SPECS): Define.
53a428b5
JT
3929 (CPP_SPEC): Remove.
3930
45b1f7c7
CL
39312002-05-29 Chris Lattner <sabre@nondot.org>
3932
1e730c5c
ZW
3933 * ssa.c (rename_insn_1): Rename uses of undefined registers to
3934 prevent confusion if/when the register is defined.
45b1f7c7 3935
049746c2
HPN
39362002-05-29 Hans-Peter Nilsson <hp@axis.com>
3937
3938 PR target/6838
3939 * config/cris/cris.md: Fix typos and thinkos in comments.
3940 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
3941 second alternative.
3942 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
3943 ("*mov_sideqi_mem"): Similar, but for operand 3.
3944 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
3945 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
3946 Remove spurious mode specifier on operand 2.
3947
4d4d89e2
KH
39482002-05-29 Kazu Hirata <kazu@cs.umass.edu>
3949
3950 * config/h8300/h8300-protos.h: Remove the prototype for
3951 o_operand.
3952 Add prototypes for single_one_operand and single_zero_operand.
3953 * config/h8300/h8300.c (o_operand): Remove.
3954 (single_one_operand): New.
3955 (single_zero_operand): Likewise.
3956 (print_operand): For 'V' operand, and the operand with 0xff.
3957 For 'V' and 'W' operands, do not and the bit position with 7.
3958 * config/h8300/h8300.md (various anonymous patterns): Replace
3959 use of exact_log2 with single_one_operand/single_zero_operand.
3960
abd6ddec
UW
39612002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
3962
3963 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3964
da06d85a
UW
39652002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
3966
3967 * config/s390/s390.c (legitimate_pic_operand_p): Do not
3968 accept symbolic LARL operands.
2274b31a 3969 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
da06d85a 3970 epilogue insns.
2274b31a 3971
f8766020
HP
39722002-05-29 Hartmut Penner <hpenner@de.ibm.com>
3973
3974 * config/s390/s390.md (cmpstr_64/31): Mark whole
2274b31a 3975 input registers as used.
f8766020 3976
66edd3b4
RH
39772002-05-28 Richard Henderson <rth@redhat.com>
3978
3979 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
3980 not current_function_uses_pic_offset_table and
3981 current_function_uses_const_pool; examine current_function_profile.
3982 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
3983 input to blockage if needed.
3984 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
3985 (legitimize_pic_address): Likewise. Set regs_ever_live for
3986 pic_offset_table_rtx when invoked during reload.
3987 * config/i386/i386.h (FINALIZE_PIC): Remove.
3988 * config/i386/i386.md (tablejump): Reformat. Do not set
3989 current_function_uses_pic_offset_table.
3990 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
3991 (blockage): Accept anything as operand 0.
3992
52f4fff6
JT
39932002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3994
3995 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
3996 common CPP built-ins for all NetBSD a.out targets.
3997 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
3998 common CPP built-ins for all NetBSD ELF targets.
3999 * config/netbsd.h: Add missing notice.
4000 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4001 for all NetBSD targets.
4002 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4003 for all NetBSD targets using an LP64 code model.
4004 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
4005 NetBSD targets.
4006
e0e577a2
RH
40072002-05-28 Richard Henderson <rth@redhat.com>
4008
4009 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
4010 update if UPDATE_LIFE_LOCAL.
4011
40122002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
62526ec3
TM
4013
4014 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
4015
f1a58d92 4016Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1e730c5c 4017 Jason R. Thorpe <thorpej@wasabisystems.com>
f1a58d92
R
4018
4019 config/sh reorganization to factor out endianness and coff:
4020
4021 * config/sh/little.h: New file.
1e730c5c
ZW
4022 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
4023 defined, define to 0 to select big-endian.
f1a58d92 4024 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1e730c5c
ZW
4025 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4026 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4027 * config/sh/t-be: New file.
4028 * config/sh/t-le: New file.
f1a58d92
R
4029
4030 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
4031 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
4032 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
4033 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
4034 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4035 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4036 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
4037 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
4038 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
4039 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
4040 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
4041 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
4042 (LINK_SPEC): Define to SH_LINK_SPEC.
4043 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
4044 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
4045 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4046 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
4047 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
4048 * config/sh/coff.h: New file.
4049 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
4050 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4051 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
4052 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
4053 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
4054 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
4055 (PTRDIFF_TYPE): Likewise.
4056 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
4057 (CPP_PREDEFINES): Don't define.
4058 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4059 (LINK_SPEC): Define to SH_LINK_SPEC.
4060 (LINK_EMUL_PREFIX): Redefine.
4061 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
4062 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
4063 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
4064 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
4065 (TARGET_OS_CPP_BUILTINS): Define.
4066 (TARGET_DEFAULT): Redefine.
4067 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4068 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
4069 (LINK_SPEC): Don't redefine.
4070 (LINK_DEFAULT_CPU_EMUL): Redefine.
4071 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4072 * sh.c (sh_asm_named_section): Don't declare / define.
4073 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
4074 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
4075 (sh64-*-elf* tm_file): Likewise.
4076 (sh-*-rtemself* tm_file): Likewise.
4077 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
4078 (sh-*-linux* tmake_file): Add sh/t-le.
4079 (sh-*-rtems* tm_file): Add sh/coff.h
4080 (sh-*-* tm_file): Likewise.
4081
4082Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4083
4084 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
4085 CONSTANT_POOL_ADDRESS_P.
4086
4087 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
4088
d10791ba 40892002-05-28 David Edelsohn <edelsohn@gnu.org>
33a3dfc4
DE
4090 Jeff Law <law@redhat.com>
4091
64de6c0a
DE
4092 * optabs.c (expand_binop): Fix nwords sign warnings.
4093 generate pseudo for add_optab.
4094
33a3dfc4
DE
4095 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
4096 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
4097
972957ba 40982002-05-28 Marc Espie <espie@openbsd.org>
33a3dfc4 4099
2274b31a 4100 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
972957ba
ME
4101 inherited from gas.h.
4102 (ASM_QUAD): Undef. OpenBSD does not support it.
4103
cc92b8ab
DS
41042002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
4105
4106 * doc/install.texi (binaries): Change mingw binaries
4107 link to www.mingw.org.
4108
f8088d55
ZD
41092002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4110
4111 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
4112
0b7ae565
RH
41132002-05-28 Richard Henderson <rth@redhat.com>
4114
4115 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
4116 bottom alignment for leaf functions.
4117
16069d69
ZW
41182002-05-28 Zack Weinberg <zack@codesourcery.com>
4119
4120 * config/pa/milli32.S, config/pa/lib1funcs.asm,
4121 config/sparc/sol2-g1.asm: Delete unused files.
4122
04653686
RH
41232002-05-28 Richard Henderson <rth@redhat.com>
4124
4125 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
4126
f3ea5f6a
RH
4127 * flow.c (calculate_global_regs_live): Rename call_used to
4128 invalidated_by_call. Initialize from regs_invalidated_by_call
4129 instead of call_used_regs.
4130
923c7cdf
RH
4131 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
4132 DECL_EXTERNAL.
4133
11ad4784
ZW
41342002-05-28 Zack Weinberg <zack@codesourcery.com>
4135
8abbd76a
ZW
4136 * tree.h: Don't include real.h.
4137 Forward-declare struct realvaluetype.
11ad4784
ZW
4138 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
4139 contain it.
4140 (TREE_REAL_CST_PTR): New accessor.
4141 (TREE_REAL_CST): Update.
4142 * real.h: Include machmode.h.
2274b31a 4143 (realvaluetype): Make it struct realvaluetype, not a typedef.
11ad4784
ZW
4144 (build_real): Prototype here.
4145
4146 * tree.c: Include real.h.
2274b31a
EC
4147 (build_real): Allocate the REAL_VALUE_TYPE as a separate
4148 object in GC memory, set TREE_REAL_CST_PTR to point to it.
11ad4784
ZW
4149 (build_real_from_int_cst): Use build_real.
4150 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
4151 REAL_CST.
4152
4153 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
4154 fold-const.c, print-tree.c, real.c: Include real.h.
4155 * Makefile.in: Update dependency lists.
4156
bf77398c
ZD
41572002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4158
4159 * basic-block.h (last_basic_block): Declare.
4160 (expunge_block_nocompact): Declaration removed.
4161 (compact_blocks): Declare.
4162 * cfg.c (last_basic_block): New variable.
4163 (expunge_block_nocompact): Removed.
4164 (expunge_block): Do not compact basic blocks.
4165 (compact_blocks): New.
4166 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
4167 longer change.
4168 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
4169 last_basic_block.
4170 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
4171 real positions of blocks.
4172 (delete_unreachable_blocks): Simplified -- quadratic behavior now
4173 cannot occur.
4174 (cleanup_cfg): Compact blocks.
4175 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
4176 basic_block_info varray.
4177 (flow_delete_block): Comment update.
4178 (back_edge_of_syntactic_loop_p): Modify position check code.
4179 (verify_flow_info): Update checking.
4180 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
4181 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4182 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
4183 indices no longer change.
4184 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
4185 last_basic_block.
4186 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
4187 * profile.c (branch_prob): Compact blocks.
4188 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
4189 last_basic_block.
4190
ae12a094
KH
41912002-05-28 Kazu Hirata <kazu@cs.umass.edu>
4192
4193 * config/h8300/h8300.md (two anonymous patterns): New.
4194
c6172f14
DM
41952002-05-28 David S. Miller <davem@redhat.com>
4196
4197 * config/sparc/sparc.md (cpu): Tidy.
4198 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
4199 'trap'.
4200 (in_call_delay): Delete reference to 'return' type.
4201 (eligible_for_return_delay, in_return_delay, define_delay
4202 referencing those): Delete.
4203 (rest of file): Use new type attributes as appropriate.
4204 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
4205 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
4206 * config/sparc/ultra1_2.md (us1_single): New reservation.
4207 (us1_ialuX): Likewise.
4208 * config/sparc/ultra3.md (us3_single): Likewise.
4209 (us3_ialuX): Likewise.
4210 (us3_imul, us3_idiv): Tweak.
2274b31a 4211
34a6c2ec
RH
42122002-05-28 Richard Henderson <rth@redhat.com>
4213
4214 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
4215 STRING_CST.
4216
9c075570
RH
42172002-05-28 Richard Henderson <rth@redhat.com>
4218
4219 * config.gcc: Obsolete mn10200.
4220
359b0bec
NB
42212002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
4222
4223 * cppexp.c (interpret_number): Optimize for single-digit
4224 and less-than-half-precision cases.
4225 (num_trim, num_positive, num_div_op): Cast constants.
4226
4075db8f
BT
42272002-05-27 Bo Thorsen <bo@suse.de>
4228
4229 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
4230 3.1 branch. The file was made by Jakub Jelinek.
4231 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
4232 support so multilib doesn't break. And don't define this at all
4233 when -Dinhibit_libc is used.
4234 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
4235 * config/i386/t-linux64: Implement full multilib support. Patch
4236 originally done by Andreas Jaeger and Jakub Jelinek.
4237
39f2f3c8
RS
42382002-05-27 Roger Sayle <roger@eyesopen.com>
4239
4240 * c-common.c: Add support for __attribute__((nothrow)) to specify
4241 that a function cannot throw an exception (using TREE_NOTHROW).
4242 (handle_nothrow_attribute): New function to process this attribute.
4243
4244 * doc/extend.texi: Document the new nothrow function attribute.
4245
d51b0053
L
42462002-05-27 H.J. Lu (hjl@gnu.org)
4247
4248 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
4249 (num_positive): Likewise.
4250 (num_div_op): Likewise.
4251
630363b4
NB
42522002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4253
4254 * c-common.c (c_common_init): Always use intmax_t.
4255
d94cde01
NB
42562002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4257
4258 * c-common.c (c_common_init): Use intmax_t for now.
4259
57f851a3
AH
42602002-05-24 Andrew Haley <aph@redhat.com>
4261
4262 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
4263 if T is a boolean type.
4264
d55bc081
ZD
42652002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4266
4267 * basic-block.h (last_basic_block): Defined as synonym for
4268 n_basic_blocks.
4269 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
4270 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4271 flow_dfs_compute_reverse_init): Replaced relevant occurences of
4272 n_basic_blocks with last_basic_block.
4273 * cfgbuild.c (make_edges): Likewise.
4274 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
4275 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
4276 * combine.c (combine_instructions): Likewise.
4277 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
4278 iterative_dataflow_bitmap): Likewise.
4279 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4280 calc_idoms, idoms_to_doms): Likewise.
4281 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
4282 Likewise.
4283 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
4284 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
4285 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
4286 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
4287 delete_null_pointer_checks, compute_code_hoist_vbeinout,
4288 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4289 compute_store_table, build_store_vectors): Likewise.
4290 * haifa-sched.c (sched_init): Likewise.
4291 * ifcvt.c (if_convert): Likewise.
4292 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4293 pre_edge_lcm, compute_available, compute_nearerout,
4294 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
4295 Likewise.
4296 * predict.c (estimate_probability, process_note_prediction,
4297 note_prediction_to_br_prob): Likewise.
4298 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
4299 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4300 * regrename.c (copyprop_hardreg_forward): Likewise.
4301 * resource.c (init_resource_info): Likewise.
4302 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
4303 init_regions, schedule_insns): Likewise.
4304 * ssa-ccp.c (ssa_const_prop): Likewise.
4305 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4306 * ssa.c (compute_dominance_frontiers,
4307 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
4308
4309 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
4310 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
4311 sizes consistently.
4312
71d2c5bd
JH
4313Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4314
4315 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
4316 new.
4317 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
4318 hoist_insn_after, hoist_insn_to_edge): New.
4319
5149f070
JH
4320Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
4321
4322 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
4323 (PROP_FINAL): Include.
4324 * flow.c (life_analysis, update_life_info,
4325 init_propagate_block_info, mark_set_1, mark_used_rgs):
4326 Support SCAN_DEAD_STORE.
4327
c9220e3a
NB
43282002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4329
4330 * c-common.c (c_common_init): Set CPP arithmetic precision.
4331 * cppexp.c (cpp_num_part): Move typedef ...
4332 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
4333 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
4334 (sanity_checks): Update.
4335
e34a3d31
GK
43362002-05-26 Geoffrey Keating <geoffk@redhat.com>
4337
4338 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
4339 (mkheaders): New rule.
4340 (install-mkheaders): New rule.
4341 * configure.in (all_outputs): Add mkheaders.
4342 * configure: Regenerate.
4343 * mkheaders.in: New file.
4344
9059e33c
JJ
43452002-05-26 Jakub Jelinek <jakub@redhat.com>
4346
4347 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
4348
291cc0fe
AJ
43492002-05-26 Andreas Jaeger <aj@suse.de>
4350
4351 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
4352
91318908
NB
43532002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
4354
4355 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
4356 right_shift): Remove.
4357 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
4358 HIGH_PART): New.
4359 (struct op): Use cpp_num.
4360 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
4361 num_part_mul, num_unary_op, num_binary_op, num_negate,
4362 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
4363 num_div_op, num_lshift, num_rshift, append_digit): New.
4364 (interpret_number, parse_defined, eval_token, reduce): Update
4365 for two-integer arithmetic.
4366 (binary_handler): New typedef.
4367 (optab): Update.
4368 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
4369 (_cpp_parse_expr, reduce): Update to handle two-integers.
4370 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
4371
331ca350
MM
43722002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4373
4374 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
4375 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
4376 branch insn into account, do not assume 1.
4377 (avr_out_sbxx_branch): New function. Optimize cases of skipping
4378 over single word insn. Handle upper half of I/O space too.
4379 * config/avr/avr.md (*sbrx_branch): Use it.
4380 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
4381 (*sbix_branch, *sbix_branch_bit7): Likewise.
4382 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
4383 Use RTL peepholes to optimize register operand sign tests.
4384
bcb6a2be
MM
43852002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4386
4387 * config/avr/avr.c (avr_asm_only_p): New variable.
4388 (avr_override_options): Set it here if AVR1.
4389 (asm_file_start): Test it here, report an error if set.
4390
ca7fd9cd
KH
43912002-05-26 Kazu Hirata <kazu@cs.umass.edu>
4392
4393 * alias.c: Fix formatting.
4394 * attribs.c: Likewise.
4395 * bb-reorder.c: Likewise.
4396 * bitmap.c: Likewise.
4397 * bitmap.h: Likewise.
4398 * builtins.c: Likewise.
4399
a65dc37d
JH
4400Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
4401
4402 * reload.c (find_valid_class): Accept new argument DEST,
4403 choose class accordingly.
4404 (push_reload): Update callers.
4405
9b89393b
AJ
44062002-05-26 Andreas Jaeger <aj@suse.de>
4407
4408 * combine.c (combine_instructions): Do not indent #if for
4409 traditional C.
4410
b53bb376
RH
44112002-05-25 Richard Henderson <rth@redhat.com>
4412
4413 * c-pragma.c (apply_pragma_weak): Convert value identifier to
4414 string for decl_attributes.
4415 (handle_pragma_weak): Call assemble_alias if we're modifying
4416 an existing decl.
4417
e133041b
RH
44182002-05-25 Richard Henderson <rth@redhat.com>
4419
4420 PR target/6788
4421 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
4422 using rtl instead of fprintf.
4423 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
4424 * config/sparc/sparc-protos.h: Update.
4425
81a75f0f
NB
44262002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
4427
4428 * Makefile.in (C_COMMON_H): Fix.
4429 Update other targets.
4430 * c-common.c: Don't include c-lex.h.
4431 (builtin_define_with_value): Make static and prototype.
4432 (builtin_define_std): Move from c-lex.h.
4433 * c-common.h (init_c_lex): Move from c-lex.h.
4434 * c-decl.c: Don't include c-lex.h.
4435 (make_pointer_declarator): Move from c-parse.in.
4436 * c-lex.c: Don't include c-lex.h.
4437 * c-lex.h: Remove.
4438 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
4439 (make_pointer_declarator): Move to c-decl.c.
4440 * c-pragma.c: Don't include c-lex.h.
4441 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
4442 * c-tree.h (make_pointer_declarator): New.
4443doc:
4444 * passes.texi, tm.texi: Update.
4445objc:
4446 * Make-lang.in: Update and correct.
4447 * objc-act.c: Don't include c-lex.h or cpplib.h.
4448treelang:
4449 * treetree.c: Don't include c-lex.h.
4450config:
4451 * darwin-c.c: Don't include c-lex.h.
4452 * c4x/c4x-c.c: Don't include c-lex.h.
4453 * c4x/t-c4x: Update.
4454 * i370/i370-c.c: Don't include c-lex.h.
4455 * i370/t-i370: Update.
4456 * i960/i960-c.c: Don't include c-lex.h.
4457 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
4458 * i960/t-960bare: Update.
4459 * i960/t-vxworks: Update.
4460 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
4461 * rs6000/t-darwin: Update.
4462 * rs6000/t-rs6000-c-rule: Update.
4463 * v850/v850-c.c: Don't include c-lex.h.
4464 * v850/v850.c: Don't include c-lex.h or cpplib.h.
4465
4466
04d2be8e
KH
44672002-05-25 Kazu Hirata <kazu@cs.umass.edu>
4468
4469 * tree.def: Fix typos.
4470 * doc/install.texi: Likewise.
4471
7b6e506e
RH
44722002-05-25 Richard Henderson <rth@redhat.com>
4473
4474 * configure.in (HAVE_AS_TLS): Add ia64 test.
4475 * configure: Rebuild.
4476 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
4477 (override_options): Set it.
4478 (TARGET_HAVE_TLS): New.
4479 (sdata_symbolic_operand): Look for 's'.
4480 (tls_symbolic_operand): New.
4481 (ia64_expand_load_address): Abort for tls symbols.
4482 (gen_tls_get_addr): New.
4483 (gen_thread_pointer): New.
4484 (ia64_expand_move): Split out from movdi. Handle tls symbols.
4485 (rtx_needs_barrier): Add new unspecs.
4486 (ia64_encode_section_info): Handle tls symbols.
4487 (ia64_strip_name_encoding): Strip two encoding chars.
4488 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
4489 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
4490 (TARGET_OPTIONS): Add tls-size.
4491 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
4492 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
4493 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
4494 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
4495 (movsf, movdf): Likewise.
4496 (movdi_symbolic): Use match_scratch. Don't split if we won't
4497 have a scratch availiable.
4498 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
4499 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
4500 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
4501 * config/ia64/ia64-protos.h: Update.
4502 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
4503 sdata_symbolic_operand.
4504 (ASM_OUTPUT_LABELREF): Strip two characters.
4505
8c1d52a3
KH
45062002-05-25 Kazu Hirata <kazu@cs.umass.edu>
4507
4508 * combine.c (simplify_set): Remove an unnecessary subreg.
4509
b47cae3d
MM
45102002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
4511
4512 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
4513
4514 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
4515
ce9e3a6d
GDR
45162002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
4517
4518 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
4519
fb2c6841
RS
45202002-05-25 Roger Sayle <roger@eyesopen.com>
4521
4522 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
4523 (cond (compare x y) 0) into the equivalent (cond x y).
4524
da7ac8f1
GDR
45252002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
4526
4527 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
4528
c7bdf0a6
ZW
45292002-05-24 Zack Weinberg <zack@codesourcery.com>
4530
4531 * config.gcc: Remove all stanzas for previously obsoleted
4532 systems. Where necessary, add explicit error stanzas to
4533 prevent removed systems from being misidentified as something
4534 else. Begin a fresh obsoletions list, with the systems that
4535 were reprieved last round.
4536 * doc/install.texi: Remove all mention of dead targets.
4537 * fixinc/mkfixinc.sh: Likewise.
4538
4539 * config/arm/arm.h: Bit 31 of target_flags is no longer
4540 reserved.
4541
4542 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
4543 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
4544 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
4545 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
4546 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
4547 config/alpha/osf12.h, config/alpha/osf2or3.h,
4548 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
4549 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
4550 config/clipper/clipper-protos.h, config/clipper/clipper.c,
4551 config/clipper/clipper.h, config/clipper/clipper.md,
4552 config/clipper/clix.h, config/convex/convex-protos.h,
4553 config/convex/convex.c, config/convex/convex.h,
4554 config/convex/convex.md, config/convex/fixinc.convex,
4555 config/convex/proto.h, config/elxsi/elxsi-protos.h,
4556 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
4557 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
4558 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
4559 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
4560 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
4561 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
4562 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
4563 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
4564 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
4565 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
4566 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
4567 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
4568 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
4569 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
4570 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
4571 config/m68k/altos3068.h, config/m68k/apollo68.h,
4572 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
4573 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
4574 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
4575 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
4576 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
4577 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
4578 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
4579 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
4580 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
4581 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
4582 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
4583 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
4584 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
4585 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
4586 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
4587 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
4588 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
4589 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
4590 config/mips/dec-osf1.h, config/mips/elflorion.h,
4591 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
4592 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
4593 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
4594 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
4595 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
4596 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
4597 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
4598 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
4599 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
4600 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
4601 config/ns32k/sequent.h, config/ns32k/tek6000.h,
4602 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
4603 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
4604 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
4605 config/sparc/rtems.h, config/we32k/we32k-protos.h,
4606 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
4607 Delete file.
4608
755ac5d4
RH
46092002-05-24 Richard Henderson <rth@redhat.com>
4610
4611 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
4612 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
4613 * config/i386/i386.c (tls_model_chars): Add leading space.
4614 (tls_symbolic_operand): Don't bias by 1.
4615 (legitimize_address): Don't unbias by 1.
4616
c429f12e
TM
46172002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4618
4619 * lcm.c (optimize_mode_switching): Change bb used as indices
4620 to bb->index.
4621
8beda321
RH
46222002-05-24 Richard Henderson <rth@redhat.com>
4623
4624 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
4625 of update_life_info_in_dirty_blocks.
4626
90442291
JJ
46272002-05-24 Jakub Jelinek <jakub@redhat.com>
4628
4629 PR other/6782
4630 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
4631
3620711b
NB
46322002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
4633
4634 PR preprocessor/6780
4635 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
4636
2f8d482e
JB
46372002-05-24 Jim Blandy <jimb@redhat.com>
4638
4639 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
4640 entry with a type code of zero, marking the end of the compilation
4641 unit's macro info.
4642
95bfe95f
RH
46432002-05-24 Richard Henderson <rth@redhat.com>
4644
c7bdf0a6
ZW
4645 * varasm.c (asm_output_bss): Always output one byte.
4646 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
95bfe95f 4647
7efda054
BM
46482002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4649
4650 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
4651 namespace.
4652
8a951190
AJ
46532002-05-24 Andreas Jaeger <aj@suse.de>
4654
4655 * ggc-page.c (alloc_page): Cast variables of type size_t to
4656 unsigned long, adjust printf format string.
4657 (ggc_alloc): Likewise.
4658 (ggc_print_statistics): Likewise.
4659 (ggc_print_statistics): Correct printf format string for SCALE to
4660 use unsigned long.
4661
f29e2ec0
DS
46622002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
4663
4664 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
4665
211a0cbe 46662002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
c7bdf0a6 4667 Zack Weinberg <zack@codesourcery.com>
211a0cbe
GDR
4668
4669 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
4670 quoted strings.
4671 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8a951190 4672 directive in assembly file.
211a0cbe
GDR
4673 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4674 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4675 * config/pj/pj.h (ASM_FILE_START): Likewise.
4676 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4677 * config/avr/avr.c (asm_file_end): Likewise.
4678 * toplev.c (output_quoted_string): Handle possibly signed plain
8a951190 4679 char.
211a0cbe
GDR
4680 * toplev.h (output_clean_symbol_name): Declare
4681 * toplev.c (output_clean_symbol_name): Define.
4682 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
4683 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
4684
2f0552b6
AM
46852002-05-24 Alan Modra <amodra@bigpond.net.au>
4686
4687 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
4688
b326b2c1
VM
46892002-05-23 Vladimir Makarov <vmakarov@redhat.com>
4690
4691 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
4692 of size of unsigned.
4693
f996902d
RH
46942002-05-23 Richard Henderson <rth@redhat.com>
4695
4696 * configure.in (HAVE_AS_TLS): New test.
4697 * config.in, configure: Rebuild.
4698 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
4699 (ix86_tls_dialect_string, ix86_tls_dialect): New.
4700 (override_options): Set it.
4701 (tls_model_chars, tls_symbolic_operand): New.
4702 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
4703 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
4704 (local_exec_symbolic_operand): New.
4705 (get_pic_label_name): Merge into output_set_got.
4706 (ix86_asm_file_end): Emit pic_label_name if defined.
4707 (legitimate_constant_p, constant_address_p): New.
4708 (legitimate_pic_operand_p): New.
4709 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
4710 (legitimate_address_p): Likewise.
4711 (ix86_encode_section_info): Rename from i386_; handle tls decls.
4712 (ix86_strip_name_encoding): New.
4713 (get_thread_pointer): New.
4714 (legitimize_address): Handle tls symbols.
4715 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
4716 Remove UNSPEC_PLT.
4717 (struct machine_function): Add some_ld_name.
4718 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
4719 (print_operand) [&]: Use it. Handle UNSPEC_TP.
4720 (output_addr_const_extra): New.
4721 (maybe_get_pool_constant): New.
4722 (ix86_split_to_parts): Use it.
4723 (ix86_expand_move): Handle tls symbols.
4724 (ix86_tls_get_addr): New.
4725 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
4726 (TARGET_OPTIONS): Add tls-dialect.
4727 (CONSTANT_ADDRESS_P): Use new out-of-line function.
4728 (LEGITIMATE_CONSTANT_P): Likewise.
4729 (LEGITIMATE_PIC_OPERAND_P): Likewise.
4730 (TARGET_STRIP_NAME_ENCODING): New.
4731 (ASM_OUTPUT_LABELREF): New.
4732 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4733 (OUTPUT_ADDR_CONST_EXTRA): New.
4734 (PREDICATE_CODES): Update.
4735 (ix86_tls_dialect, ix86_tls_dialect_string): New.
4736 * config/i386/i386.md: Regroup and renumber unspec constants.
4737 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
4738 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
4739 (tls_global_dynamic, tls_local_dynamic_base): New.
4740 (tls_local_dynamic_once): New.
4741 * config/i386/i386-protos.h: Update.
4742
821e35ba
RH
47432002-05-23 Richard Henderson <rth@redhat.com>
4744
4745 * genemit.c (gen_insn): Print file:lineno comment before function.
4746 (main): likewise.
4747 * gensupport.c (struct queue_elem): Add filename member.
4748 (queue_pattern): Initialize it; update all callers.
4749 (process_include): Don't free filename.
4750 (read_md_rtx): Set read_rtx_filename.
4751
0f1ffa23 47522002-05-23 Hans Boehm <Hans_Boehm@hp.com>
821e35ba
RH
4753
4754 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
0f1ffa23 4755
8e9fadc3
RH
47562002-05-23 Richard Henderson <rth@redhat.com>
4757
4758 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
4759
244c2241
RH
47602002-05-23 Richard Henderson <rth@redhat.com>
4761
4762 * doc/extend.texi (C++98 Thread-Local Edits): Update with
4763 commentary from Mark.
4764
e0082a72
ZD
47652002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4766
4767 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
4768 Use FOR_EACH_BB macros to iterate over basic block chain.
4769 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
4770 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
4771 Likewise.
4772 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
4773 find_unreachable_blocks, create_edge_list, verify_edge_list,
4774 remove_fake_edges, add_noreturn_fake_exit_edges,
4775 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
4776 Likewise.
4777 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4778 find_sub_basic_blocks): Likewise.
4779 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
4780 Likewise.
4781 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
4782 Likewise.
4783 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
4784 Likewise.
4785 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
4786 commit_edge_insertions, commit_edge_insertions_watch_calls,
4787 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
4788 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
4789 * conflict.c (conflict_graph_compute): Likewise.
4790 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4791 df_modified_p, df_refs_unlink, df_dump): Likewise.
4792 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
4793 * final.c (compute_alignments): Likewise.
4794 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
4795 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
4796 count_or_remove_death_notes): Likewise.
4797 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
4798 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
4799 classic_gcse, compute_transp, cprop, compute_pre_data,
4800 compute_transpout, invalidate_nonnull_info,
4801 delete_null_pointer_checks_1, delete_null_pointer_checks,
4802 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
4803 compute_store_table, build_store_vectors, store_motion): Likewise.
4804 * global.c (global_conflicts, mark_elimination): Likewise.
4805 * graph.c (print_rtl_graph_with_bb): Likewise.
4806 * haifa-sched.c (sched_init): Likewise.
4807 * ifcvt.c (if_convert): Likewise.
4808 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4809 compute_available, compute_nearerout, compute_rev_insert_delete,
4810 optimize_mode_switching): Likewise.
4811 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
4812 * predict.c (estimate_probability, note_prediction_to_br_prob,
4813 propagate_freq, counts_to_freqs, expensive_function_p,
4814 estimate_bb_frequencies): Likewise.
4815 * profile.c (instrument_edges, get_exec_counts,
4816 compute_branch_probabilities, compute_checksum, branch_prob,
4817 find_spanning_tree): Likewise.
4818 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4819 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
4820 Likewise.
4821 * regclass.c (scan_one_insn, regclass): Likewise.
4822 * regmove.c (mark_flags_life_zones, regmove_optimize,
4823 record_stack_memrefs): Likewise.
4824 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
4825 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
4826 * resource.c (find_basic_block): Likewise.
4827 * sched-ebb.c (schedule_ebbs): Likewise.
4828 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
4829 find_single_block_region, find_rgns, schedule_insns)
4830 * sibcall.c (optimize_sibling_and_tail_recursive_call)
4831 * ssa-ccp.c (optimize_unexecutable_edges,
4832 ssa_ccp_df_delete_unreachable_insns): Likewise.
4833 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4834 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
4835 rename_block, convert_to_ssa, compute_conservative_reg_partition,
4836 compute_coalesced_reg_partition, rename_equivalent_regs,
4837 convert_from_ssa): Likewise.
4838 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
4839 process_for_unwind_directive): Likewise.
4840
4841 * df.c (FOR_ALL_BBS): Removed.
4842 * gcse.c (struct null_pointer_info): Type of current_block field
4843 changed.
4844 (struct reg_avail_info): Type of last_bb field changed.
4845 * config/ia64/ia64.c (block_num): Removed.
4846 (need_copy_state): Type changed.
4847 (last_block): New.
4848
17645b15
NB
48492002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4850
4851 * cppinit.c (mark_named_operators): Split out from init_builtins.
4852 (cpp_finish_options): Call it from here instead.
4853
79ed7328
JT
48542002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4855
4856 * builtin-attrs.def: Update copyright years.
4857 (ATTR_NONNULL): New attribute identifier.
4858 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
4859 attribute tree lists.
4860 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
4861 format operand.
4862 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
4863 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
4864 attribute lists. Chain the appropriate nonnull attribute.
4865 * c-format.c (check_format_arg): Remove null format string
4866 warning.
4867 * testsuite/gcc.dg/format/null-1.c: New test.
4868
7d600178
RO
48692002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4870
4871 * Makefile.in (ADAC): Define.
4872 (SYSLIBS): Define.
4873 (.SUFFIXES): Move before language makefile fragments.
4874 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
4875
5ff225fc
MM
48762002-05-23 Mark Mitchell <mark@codesourcery.com>
4877
4878 * varasm.c (make_decl_rtl): Don't allow weak variables to be
4879 placed in common.
4880
0f72964f
JH
4881Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4882
4883 * cfg.c (dump_flow_info): Print results of
4884 maybe_hot/probably_never_executed predicates.
4885 * toplev.c (open_dump_file): Print function frequency.
4886
c863f8c2
DM
48872002-05-23 David S. Miller <davem@redhat.com>
4888
4889 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
4890 regsets.
4891
b34c7881
JT
48922002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4893
4894 * c-common.c (warn_nonnull): Declare.
4895 (c_common_attribute_table): Add "nonnull" attribute.
4896 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
4897 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
4898 check_function_arguments_recurse): New functions.
4899 * c-common.h (warn_nonnull): Declare extern.
4900 (check_function_arguments, check_function_arguments_recurse): New
4901 prototypes.
4902 * c-decl.c (c_decode_option): Add -Wnonnull option.
4903 * c-format.c (set_Wformat): Set warn_nonnull if enabling
4904 format checking.
4905 (format_check_context): New structure.
4906 (check_format_info_recurse): Remove recursion and rename to...
4907 (check_format_arg): ...this. Update comment.
4908 (check_format_info): Use check_function_arguments_recurse.
4909 * c-typeck.c (build_function_call): Call check_function_arguments
4910 instead of check_function_format.
4911 * doc/extend.texi: Document "nonnull" attribute.
4912 * doc/invoke.texi: Docuemnt -Wnonnull option.
4913 * testsuite/gcc.dg/nonnull-1.c: New test.
4914 * testsuite/gcc.dg/nonnull-2.c: New test.
4915
95479831
DM
49162002-05-23 David S. Miller <davem@redhat.com>
4917
4918 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
4919 * cfgcleanup.c (cleanup_cfg): If it is set do not
4920 attempt to delete trivially dead insns.
4921 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
4922 * toplev.c (rest_of_compilation): Document non-trivial aspect
4923 the RTL before optimize_save_area_alloca is run.
4924
a97d1398
NB
49252002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4926
4927 * c-lex.c (indent_level): Remove.
4928 (cb_file_change, c_lex): Remove indent level handling.
4929 * c-lex.h (indent_level): Remove.
4930 * input.h (struct file_stack): Remove indent_level.
4931 * toplev.c (push_srcloc): Remove indent_level handling.
4932
66b408f2
JJ
49332002-05-23 Jakub Jelinek <jakub@redhat.com>
4934
4935 PR target/6753
4936 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
4937 of x in constraints for clarity.
4938 (sse_mov?fcc split): abort if op2 == op3.
4939 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
4940 sse_movsfcc_const0_4): Add earlyclobber.
4941 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
4942 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
4943 Use Y instead of x in constraints.
4944
5bf0ebab
RH
49452002-05-23 Richard Henderson <rth@redhat.com>
4946
9217ef40
RH
4947 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
4948 (C++98 Thread-Local Edits): New subsection.
4949
5bf0ebab
RH
4950 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
4951 (ix86_arch): Set type to enum processor_type.
4952
8a951190 4953 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5bf0ebab
RH
4954 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
4955
4832c9e1
JJ
49562002-05-23 Jakub Jelinek <jakub@redhat.com>
4957
4958 * configure.in: Fix as version test for binutils 2.12.1 releases
4959 (without dates).
4960 * configure: Rebuilt.
4961
c8c03509
RH
49622002-05-23 Richard Henderson <rth@redhat.com>
4963
4964 * config/i386/i386.c (get_pic_label_name): New.
4965 (load_pic_register): Remove.
4966 (output_set_got): New.
4967 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
4968 * config/i386/i386.md (UNSPEC_SET_GOT): New.
4969 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
4970 (prologue_set_got, prologue_get_pc): Remove.
4971 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
4972 (builtin_setjmp_receiver): Use gen_set_got.
4973 * config/i386/i386-protos.h: Update.
4974
d51f3632
JH
4975Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4976
4977 * gcse.c (hash_expr): Do not use alias set for hashing.
4978
b0a93386
KB
49792002-05-22 Kevin Buettner <kevinb@redhat.com>
4980
4981 * dbxout.c (dbxout_class_name_qualifiers): New function.
4982 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
4983
bdee42b1
NB
49842002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4985
4986 * cpperror.c (_cpp_begin_message): No special casing
4987 of CPP_FATAL_LIMIT.
4988 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
4989 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
4990 * cpplib.c (do_include_common): Use DL_ERROR.
4991 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
4992 (DL_ICE): Renumber.
4993 * fix-header.c (read_scan_file): Update.
4994
0e07aff3
RH
49952002-05-22 Richard Henderson <rth@redhat.com>
4996
4997 * config/i386/i386.c (ix86_expand_call): New function, extracted
4998 from md call patterns. Add pic_offset_table_rtx to
4999 CALL_INSN_FUNCTION_USAGE when needed.
5000 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5001 (call_value_pop, call_value, untyped_call): Likewise.
5002 (call_exp, call_value_exp): Remove.
5003 * config/i386/i386-protos.h: Update.
5004
6f001fdf
RH
50052002-05-22 Richard Henderson <rth@redhat.com>
5006
5007 * varasm.c (default_section_type_flags): Check for VAR_DECL
5008 before using DECL_THREAD_LOCAL.
5009
cbaaba19
DE
50102002-05-22 David Edelsohn <edelsohn@gnu.org>
5011
5012 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
5013 (STARTFILE_SPEC): Delete PE crt0.o.
5014 * config/rs6000/aix51.h: Same.
5015 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
5016 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
5017 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
5018 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
5019 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
5020
c711ba8e
RH
50212002-05-22 Richard Henderson <rth@redhat.com>
5022
5023 * varasm.c (default_section_type_flags): Handle tls data and
5024 default sections.
5025 (default_unique_section): Handle tls sections.
5026
343f59d9
AM
50272002-05-23 Alan Modra <amodra@bigpond.net.au>
5028
5029 * configure.in (CROSS): Define NATIVE_CROSS.
5030 * configure: Regenerate.
5031 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
5032 (startfile_prefix_spec): New var.
5033 (static_specs): Add startfile_prefix_spec.
5034 (do_spec_2): Split out from..
5035 (do_spec): ..here.
5036 (main): Process startfile_prefix_spec.
5037 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
5038 dynamic linker.
5039 (STARTFILE_PREFIX_SPEC): Define.
5040 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
c7bdf0a6 5041 absolute paths.
343f59d9 5042
df383483
KH
50432002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5044
5045 * cpperror.c: Fix formatting.
5046 * cppexp.c: Likewise.
5047 * cppfiles.c: Likewise.
5048 * cpphash.c: Likewise.
5049 * cpphash.h: Likewise.
5050 * cppinit.c: Likewise.
5051 * cpplex.c: Likewise.
5052 * cpplib.c: Likewise.
5053 * cppmacro.c: Likewise.
5054 * cppmain.c: Likewise.
5055 * cppspec.c: Likewise.
5056
2dd36f90
JJ
50572002-05-22 Jakub Jelinek <jakub@redhat.com>
5058
5059 * combine.c (force_to_mode): Use gen_int_mode.
5060 Don't clear CONST_INT bits outside of mode.
5061
8dc02d7f
RH
50622002-05-22 Richard Henderson <rth@redhat.com>
5063
5064 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
5065 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5066
45f79783
JJ
50672002-05-22 Jakub Jelinek <jakub@redhat.com>
5068
5069 PR c/6643
5070 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
5071 if DECL_SIZE_UNIT is INTEGER_CST.
5072
19f71cd7
RH
50732002-05-22 Richard Henderson <rth@redhat.com>
5074
5075 * flow.c (life_analysis): Delete broken reg_label check.
5076
d5bcfcce
RH
50772002-05-22 Richard Henderson <rth@redhat.com>
5078
5079 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
5080 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5081
985d311b 5082Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5ff94354
R
5083
5084 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
5085 (embed-bb.c): New rule.
985d311b 5086 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5ff94354
R
5087 * config/sh/embed_bb.c: Delete.
5088
985d311b
R
5089Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
5090
5091 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
5092
f6d45746
KH
50932002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5094
5095 * config/h8300/h8300.md (*andorqi3): New.
5096
e5f3b786
NB
50972002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
5098
5099 PR preprocessor/6517
5100 * Makefile.in: Update.
5101 * c-common.c (c_common_post_options): Add preprocessor
5102 errors to the error count.
5103 * c-lang.c (c_post_options): Kill.
5104 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5105 * hooks.h: Add header guards.
5106 * langhooks-def.h: Include hooks.h.
5107 (LANG_HOOKS_POST_OPTIONS): Update.
5108 * langhooks.h (struct lang_hooks): Update post_options.
5109 * toplev.c (parse_options_and_default_flags): Update.
5110objc:
5111 * objc-lang.c (objc_post_options): Kill.
5112 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5113
4c526be3
BK
51142002-05-21 Bruce Korb <bkorb@gnu.org>
5115
5116 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
5117 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
5118 * fixinc/fixincl.x: regen.
4c526be3 5119
f87c27b4
KH
51202002-05-21 Kazu Hirata <kazu@cs.umass.edu>
5121
5122 * cfgbuild.c: Fix formatting.
5123 * cfg.c: Likewise.
5124 * cfgcleanup.c: Likewise.
5125 * cfglayout.c: Likewise.
5126 * cfgloop.c: Likewise.
5127 * cfgrtl.c: Likewise.
5128
3d78f2e9
RH
51292002-05-21 Richard Henderson <rth@redhat.com>
5130
5131 * c-common.h (enum rid): Add RID_THREAD.
5132 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
5133 (grokdeclarator): Grok __thread.
5134 * c-parse.in (reswords): Add __thread.
5135 (rid_to_yy): Add RID_THREAD.
5136
5137 * tree.h (DECL_THREAD_LOCAL): New.
5138 (struct tree_decl): Add thread_local_flag.
5139 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
5140 * tree.c (staticp): TLS variables are not static.
5141
5142 * target-def.h (TARGET_HAVE_TLS): New.
5143 * target.h (have_tls): New.
5144 * output.h (SECTION_TLS): New.
5145 * varasm.c (assemble_variable): TLS variables can't be common for now.
5146 (default_section_type_flags): Handle .tdata and .tbss.
5147 (default_elf_asm_named_section): Handle SECTION_TLS.
5148 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
5149
5150 * flags.h (flag_tls_default): Declare.
5151 * toplev.c (flag_tls_default): Define.
5152 (display_help): Display help for it.
5153 (decode_f_option): Set it.
5154
5155 * doc/extend.texi (Thread-Local): New node describing language-level
5156 thread-local storage.
5157 * doc/invoke.texi (-ftls-model): Document.
5158
5159 * fixinc/inclhack.def (thread_keyword): New.
5160 * fixinc/fixincl.x: Rebuild.
5161
a151daf0
JL
51622002-05-21 Jeffrey A Law <law@redhat.com>
5163
8a951190 5164 * optabs.c (expand_binop): For double-word integer multiplies,
c7539aa0
JL
5165 do not compute intermediate results into something that is
5166 not a register (such as a SUBREG or MEM).
5167
a151daf0
JL
5168 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
5169 (ix86_sched_reorder): Make sure to initialize scheduling
5170 data even when there's only one insn in the ready queue.
5171
96b1f73b
VM
51722002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5173
5174 * genautomata.c (reserv_sets_hash_value): Fix a typo.
5175
dceb2b75
VM
51762002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5177
5178 * genautomata.c (reserv_sets_hash_value): Define hash_value as
5179 set_el_t. Transform the hash value into unsigned.
5180 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
5181 (transform_3): Add code to process `(A,B)+(D,E)'.
5182
159d5964
NY
51832002-05-21 NIIBE Yutaka <gniibe@m17n.org>
5184
5185 * reload1.c (do_output_reload): Run delete_output_reload
5186 only if optimizing.
5187
cf5124f6
RS
51882002-05-21 Roger Sayle <roger@eyesopen.com>
5189
5190 PR middle-end/6600
5191 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
5192 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
5193 (can_store_by_pieces): ... and here to limit the largest mode used.
5194 Add a comment to document this function.
5195
380e6ade
RH
51962002-05-21 Richard Henderson <rth@redhat.com>
5197
5198 * flow.c (life_analysis): Fix test for deleted label.
5199
1f95326c
NB
52002002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
5201
5202 * doc/tm.texi: Fix typo.
5203
2a1dc0d8
ZW
52042002-05-21 Zack Weinberg <zack@codesourcery.com>
5205
5206 * c-common.c (c_common_init): Set options->unsigned_char from
5207 flag_signed_char.
5208 (cb_register_builtins): Define __STRICT_ANSI__ and
5209 __CHAR_UNSIGNED__ here...
5210 * cppinit.c (init_builtins): Not here.
5211 (cpp_create_reader): unsigned_char option defaults to 0, not
5212 !DEFAULT_SIGNED_CHAR.
5213 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
5214 and -funsigned-char.
5215
5216 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
5217 * cpphash.c (_cpp_init_hashtable): Don't set it.
5218 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
5219 directly. Clarify comment.
5220
d29146f2 52212002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 5222
f5eb2fc8
ZD
5223 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
5224 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
5225 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
5226 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 5227 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 5228 flow_preorder_transversal_compute): Too.
d29146f2 5229 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
5230 find_sub_basic_blocks): Too.
5231 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 5232 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
5233 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
5234 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
5235 * combine.c (this_basic_block): Type changed to basic_block.
5236 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
5237 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
5238 get_last_value, distribute_notes, distribute_links): Too.
5239 * final.c (compute_alignments): Too.
5240 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
5241 * function.c (thread_prologue_and_epilogue_insns): Too.
5242 * gcse.c (compute_code_hoist_vbeinout): Too.
5243 * global.c (build_insn_chain): Too.
5244 * ifcvt.c (find_if_block, find_cond_trap): Too.
5245 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
5246 * regmove.c (regmove_optimize): Too.
5247 * resource.c (find_basic_block): Too.
5248 * sched-ebb.c (schedule_ebbs): Too.
5249 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 5250
68bd6dd6
AJ
52512002-05-21 Andreas Jaeger <aj@suse.de>
5252
5253 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
5254
35a76aac
RH
52552002-05-21 Richard Henderson <rth@redhat.com>
5256
5257 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
5258 unspec names, not numbers.
5259
2870428f
JM
52602002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
5261
5262 * doc/sourcebuild.texi: Mention snapshot-README and
5263 snapshot-index.html as needing updating for new front ends.
5264
b0ad77d5
KG
52652002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5266
5267 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
5268 disabling checking, and avoid multiple evaluation of RTX.
5269
279be7c8
RE
52702002-05-21 Richard Earnshaw <rearnsha@arm.com>
5271
5272 * bitmap.c (bitmap_find_bit): Return early if we have the correct
5273 element cached.
5274
193a563a
JH
5275Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5276
5277 * profile.c (gen_edge_profiler): Set alias set before the memory is
5278 used.
5279
31825e57
DM
52802002-05-20 David S. Miller <davem@redhat.com>
5281
5282 * cselib.c (max_value_regs): New.
5283 (cselib_lookup, cselib_invalidate_regno): Initialize it when
5284 adding new entries to the REG_VALUES table and we are dealing with
5285 a hard register.
5286 (clear_table): Initialize it.
5287 (cselib_invalidate_regno): Use it to determine which hard
5288 registers to scan when mode is not VOIDmode.
5289
68bd6dd6 52902002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
5291
5292 * tradcpp.c (fixup_newlines): Use old-style function header.
5293
e0a09fda
KW
52942002-05-20 Krister Walfridsson <cato@df.lth.se>
5295
5296 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
5297
e0c13c70
L
52982002-05-20 H.J. Lu (hjl@gnu.org)
5299
5300 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
5301
5302 * config/mips/mips.h (DFMODE_NAN): Defined.
5303 (SFMODE_NAN): Likewise.
5304
4c11675d 53052002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 5306
2a1dc0d8
ZW
5307 * combine.c (cant_combine_insn_p): Back out my
5308 previous patch.
4c11675d 5309
6a4d6760
KH
53102002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5311
5312 * params.c: Fix formatting.
5313 * params.h: Likewise.
5314 * predict.c: Likewise.
5315 * prefix.c: Likewise.
5316 * print-rtl.c: Likewise.
5317 * print-tree.c: Likewise.
5318 * profile.c: Likewise.
5319
5715ca64
L
53202002-05-20 H.J. Lu (hjl@gnu.org)
5321
5322 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
5323
00b89f01
NC
53242002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
5325
5326 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
5327 switches straight on to the assembler, do not abbreviate them.
5328 * config/arm/elf.h (ASM_SPEC): As above.
5329 * config/arm/semi.h (ASM_SPEC): As above.
5330 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
5331 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
5332 -mcpu=xscale on to the assembler by default.
5333 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
5334
1441374b
RH
53352002-05-20 Richard Henderson <rth@redhat.com>
5336
5337 * cse.c (canon_hash): Reorder do_not_record test. Always
5338 allow pic_offset_table_rtx.
5339
c0fe508e
TM
53402002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
5341
5342 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
5343 (expand_binop): Ditto (3 times).
5344
f362c762
MM
53452002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
5346
5347 * Makefile.in (distclean): Remove QMTest stuff.
5348 (QMTEST_PATH): New variable.
5349 (QMTESTFLAGS): Likewise.
5350 (QMTESTRUNFLAGS): Likewise.
5351 (QMTEST): Likewise.
5352 (QMTEST_GPP_TESTS): Likewise.
5353 (QMTEST_DIR): Likewise.
5354 (QMTEST_DIR/context): New target.
5355 (qmtest-g++): Likeise.
5356 (qmtest-gui): Likewise.
5357 (QMTEST_DIR/gpp-expected.qmr): Likewise.
5358
16861f33
AH
53592002-05-19 Aldy Hernandez <aldyh@redhat.com>
5360
2a1dc0d8
ZW
5361 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
5362 an altivec register if TARGET_ALTIVEC.
16861f33 5363
2a1dc0d8
ZW
5364 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
5365 to ALTIVEC_VECTOR_MODE.
5366 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
5367 (rs6000_va_arg): Vectors may go in registers if they are not
5368 altivec vectors.
16861f33 5369
23459e15
KH
53702002-05-19 Kazu Hirata <kazu@cs.umass.edu>
5371
5372 * protoize.c: Fix formatting.
5373
174cc7d1
RH
53742002-05-19 Richard Henderson <rth@redhat.com>
5375
5376 * gensupport.c (init_include_reader): Merge into ...
5377 (process_include): ... here. Simplify composite path creation.
5378 Plug memory leaks. Fix file/line number tracking. Do not
5379 process_define_cond_exec. Return void.
5380 (process_rtx): Don't check process_include return value.
5381
918ed612
ZD
53822002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5383
5384 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
5385 fields.
5386 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5387 traversing basic block chain.
5388 (create_basic_block_structure, create_basic_block): Declaration changed.
5389 (link_block, unlink_block): Declare.
5390 * cfg.c (entry_exit_blocks): Initialize new fields.
5391 (link_block, unlink_block): New.
5392 (expunge_block_nocompact): Unlink basic block.
5393 (dump_flow_info): Print prev_bb/next_bb fields.
5394 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
5395 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
5396 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
5397 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5398 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
5399 (verify_flow_info): Check that list agrees with numbering.
5400
e0322d5c
NB
54012002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
5402
5403 * c-common.c (preprocessing_asm): New macro.
5404 * c-lex.h (builtin_define, builtin_assert): Use pfile.
5405doc:
5406 * tm.texi: Update.
5407config/alpha:
5408 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
5409 (CPP_SPEC): Simplify.
5410 (TARGET_CPU_CPP_BUILTINS): Update.
5411 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
5412 (CPP_SPEC): Simplify.
5413 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
5414 (TARGET_OS_CPP_BUILTINS): Update.
5415 * osf.h (CPP_XFLOAT_SPEC): Kill.
5416 (TARGET_OS_CPP_BUILTINS): Update.
5417 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
5418 * osf5.h (CPP_XFLOAT_SPEC): Kill.
5419 * vms.h (CPP_SUBTARGET_SPEC): Kill.
5420 (TARGET_OS_CPP_BUILTINS): Update.
5421
121f5c2c
RH
54222002-05-19 Richard Henderson <rth@redhat.com>
5423
5424 * varasm.c (default_binds_local_p): Fix typo.
5425
651c5ed9
MM
54262002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
5427
5428 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
5429 CONST_INT operand to the correct mode after adding 1 to it.
5430
bce0deb2
MM
54312002-05-19 Mark Mitchell <mark@codesourcery.com>
5432
5433 * config.gcc (powerpc-wrs-windiss*): New target.
5434
4aa74a4f
FS
54352002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5436
5437 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
5438 (ashrdi3): Use it.
5439
a15135c9
MM
54402002-05-18 Mark Mitchell <mark@codesourcery.com>
5441
5442 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
5443 alphasort.
5444 * config.in: Regenerated.
5445 * configure: Regenerated.
5446
47754fd5
RH
54472002-05-19 Richard Henderson <rth@redhat.com>
5448
5449 * target-def.h (TARGET_BINDS_LOCAL_P): New.
5450 * target.h (struct gcc_target): Move boolean fields to the end.
5451 Add binds_local_p.
5452 * varasm.c (default_binds_local_p): New.
5453 * output.h: Declare it.
5454
5455 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
5456 * config/cris/cris.c (cris_encode_section_info): Likewise.
5457 * config/i386/i386.c (i386_encode_section_info): Likewise.
5458 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
5459 * config/sh/sh.c (sh_encode_section_info): Likewise.
5460
5461 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
5462 (TARGET_BINDS_LOCAL_P): New.
5463
fc881338
RH
54642002-05-19 Richard Henderson <rth@redhat.com>
5465
5466 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
5467 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
5468 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
5469
5470 * toplev.c (display_help): Kill -a -ax help.
5471
68bd6dd6 5472 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
5473 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
5474 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
5475 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
5476 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
5477
5478 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
5479 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
5480
5481 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
5482 (ix86_output_function_block_profiler): Kill.
5483 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
5484 (m68hc11_function_block_profiler): Kill.
5485 * config/m68hc11/m68hc11-protos.h: Update.
5486 * config/m88k/m88k.c (output_block_profiler): Kill.
5487 (output_function_block_profiler): Kill.
5488 * config/m88k/m88k-protos.h: Update.
5489
772c5265
RH
54902002-05-19 Richard Henderson <rth@redhat.com>
5491
5492 * system.h (STRIP_NAME_ENCODING): Poison it.
5493 * output.h (STRIP_NAME_ENCODING): Remove.
5494 (default_strip_name_encoding): Declare.
5495 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
5496 * target.h (strip_name_encoding): New.
5497 * varasm.c (default_strip_name_encoding): New.
5498
5499 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
5500 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
5501 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
5502 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
5503 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
5504 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
5505 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
5506 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
5507 config/v850/v850.h: Use the hook, not the macro.
5508
5509 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5510 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
5511 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
5512 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
5513 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
5514 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 5515 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
5516 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
5517 config/v850/v850.c, config/v850/v850.h:
5518 Move STRIP_NAME_ENCODING to out-of-line function and add
5519 TARGET_STRIP_NAME_ENCODING.
5520
5521 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
5522 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
5523 with TARGET_STRIP_NAME_ENCODING referencing existing function;
5524 make function static.
5525
5526 * xcoffout.c: Include target.h
5527 * Makefile.in (xcoffout.o): Update.
5528
5529 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
5530 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
5531 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
5532 reloc argument unused.
5533 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
5534
5535 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
5536 STRIP_NAME_ENCODING docs.
5537
8f9eb495
AJ
55382002-05-19 Andreas Jaeger <aj@suse.de>
5539
5540 * gengenrtl.c: Add prototype for excluded_rtx.
5541
5542 * real.h: Add prototype for exact_real_truncate.
5543
fb49053f
RH
55442002-05-18 Richard Henderson <rth@redhat.com>
5545
5546 * system.h (ENCODE_SECTION_INFO): Poison it.
5547 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
5548 * target.h (encode_section_info): New.
5549 * varasm.c (make_decl_rtl, output_constant_def): Use it.
5550 * hooks.c (hook_tree_int_void): New.
5551 * hooks.h: Declare it.
5552
5553 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5554 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
5555 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
5556 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
5557 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
5558 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
5559 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5560 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
5561 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
5562 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5563 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
5564 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
5565 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
5566 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
5567 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
5568 referencing existing function. Make function static.
5569
5570 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 5571 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
5572 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
5573 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
5574 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 5575 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
5576 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
5577 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
5578 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
5579 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 5580 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
5581 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
5582 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
5583 Move ENCODE_SECTION_INFO to out-of-line function and add
5584 TARGET_ENCODE_SECTION_INFO.
5585
5586 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
5587 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5588
5589 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
5590 from SUBTARGET_*
5591 (switch_to_section): Replace in_rdata case with in_readonly_data.
5592
5593 * config/h8300/h8300.c (h8300_encode_label): Make static.
5594 * config/h8300/h8300-protos.h: Update.
5595
5596 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
5597 from rs6000_encode_section_info; make static.
5598 (rs6000_xcoff_encode_section_info): New.
5599
5600 * config/v850/v850.c (v850_encode_data_area): Make static.
5601 * config/v850/v850-protos.h: Update.
5602
5603 * config/vax/vax.c: Include flags.h.
5604 (vms_select_section): Fix typo.
5605
5606 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
5607 ENCODE_SECTION_INFO docs.
5608
9fe08fd0
RH
56092002-05-18 Richard Henderson <rth@redhat.com>
5610
5611 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
5612 REGISTER_TARGET_PRAGMAS.
5613 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
5614
410b770f
RH
5615 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
5616
b64a1b53
RH
56172002-05-18 Richard Henderson <rth@redhat.com>
5618
5619 * system.h (SELECT_RTX_SECTION): Poison.
5620 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
5621 * target.h (select_rtx_section): New.
5622 * varasm.c (output_constant_pool): Use it.
5623 (default_select_rtx_section, default_elf_select_rtx_section): New.
5624 * output.h: Declare them.
5625
5626 * config/darwin.h (SELECT_RTX_SECTION): Move ...
5627 * config/darwin.c (machopic_select_rtx_section): ... here.
5628 * config/darwin-protos.h: Update.
5629
5630 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
5631 * config/nextstep.c (machopic_select_rtx_section): ... here.
5632 (nextstep_select_section): Rename variable to avoid macro clash.
5633 * config/nextstep-protos.h: Update.
5634
5635 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
5636 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
5637 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 5638 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
5639 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
5640 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 5641 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
5642 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
5643 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
5644 (SELECT_RTX_SECTION): Remove.
5645
5646 * config/darwin.h, config/elfos.h, config/nextstep.h,
5647 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
5648 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
5649 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
5650 config/sparc/lynx.h, config/xtensa/xtensa.c
5651 (TARGET_ASM_SELECT_RTX_SECTION): New.
5652
5653 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
5654 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
5655 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
5656 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
5657 (ia64_aix_select_rtx_section): New.
5658 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
5659 redefining.
5660 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 5661 Support ELF SHF_MERGE features.
b64a1b53
RH
5662 * config/mips/mips-protos.h: Update.
5663 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
5664 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
5665 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
5666 make static, fall back to default_elf_select_rtx_section.
5667 * config/rs6000/rs6000-protos.h: Update.
5668 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
5669 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
5670 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
5671 * config/romp/romp.c (romp_select_rtx_section): New.
5672 * config/s390/s390.c (s390_select_rtx_section): New.
5673 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
5674 declarations before target macro definition.
5675 (xtensa_emit_call): Use static buffer.
5676 (xtensa_select_rtx_section): New.
5677 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
5678 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
5679 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
5680
5681 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
5682 SELECT_RTX_SECTION docs.
5683
5684Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
5685
5686 * i386.md (movsi/movdi): Fix template.
5687 (sse2 patterns): Set attributes consistently.
5688
5689 * i386.md (pushqi2, ashrqi_*): Fix constraint.
5690
6835a09c
TM
56912002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
5692
5693 * optabs.c (complex_part_zero_p): New.
5694 * (expand_cmplxdiv_straight): Use it.
5695 * (expand_cmplxdiv_wide): Ditto.
5696 * (expand_binop): Ditto.
5697
d48bc59a
RH
56982002-05-18 Richard Henderson <rth@redhat.com>
5699
5700 * final.c (HAVE_READONLY_DATA_SECTION): New.
5701 (shorten_branches): Use it instead of ifdefs.
5702 * varasm.c (enum in_section): Add in_readonly_data.
5703 (text_section, data_section): Tidy.
5704 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
5705
5706 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
5707 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
5708 (READONLY_DATA_SECTION): Don't undef.
5709
5710 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
5711 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
5712 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
5713
5714 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
5715 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
5716 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
5717 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
5718
5719 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
5720 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
5721 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5722 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
5723 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
5724 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
5725 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
5726 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
5727 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
5728
5729 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
5730 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
5731 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
5732 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
5733 config/pa/pa64-hpux.h, config/sparc/litecoff.h
5734 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5735
5736 * config/elfos.h, config/netware.h, config/svr3.h,
5737 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5738 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5739 config/h8300/h8300.h, config/i386/i386-interix.h,
5740 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5741 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
5742
5743 * config/elfos.h, config/netware.h, config/svr3.h,
5744 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5745 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
5746 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5747 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
5748
5749 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
5750 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
5751 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
5752 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
5753 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
5754 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
5755 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
5756 config/rs6000/sysv4.h, config/v850/v850.h
5757 (EXTRA_SECTIONS): Remove in_const/in_rdata.
5758 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
5759
5760 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
5761 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
5762 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
5763 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
5764 * config/alpha/alpha.c (alpha_start_function): Likewise.
5765 (alpha_write_linkage): Likewise.
5766 * config/m32r/m32r.c (m32r_select_section): Likewise.
5767 * config/m88k/m88k.c (m88k_select_section): Likewise.
5768 * config/mips/mips.c (mips_select_rtx_section): Likewise.
5769 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
5770 (rs6000_elf_select_section): Likewise.
5771 * config/v850/v850.c (v850_select_section): Likewise.
5772
5773 * config/1750a/1750a.h, config/i860/sysv3.h
5774 (READONLY_DATA_SECTION_ASM_OP): New.
5775 READONLY_DATA_SECTION_ASM_OP.
5776 * config/i386/interix.c, config/i386/winnt.c
5777 (i386_pe_unique_section): Always use .rdata prefix.
5778 * config/pa/som.h (readonly_data): Always switch to read-only section.
5779 (READONLY_DATA_SECTION): Predicate on flag_pic.
5780 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
5781 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
5782 (READONLY_DATA_SECTION): Update.
5783
e964a556
JT
57842002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
5785
5786 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 5787 is used without -Wformat.
e964a556
JT
5788 * c-common.h (warn_format_zero_length): Declare extern.
5789 * c-decl.c (warn_options): Add "format-zero-length".
5790 * c-format.c (warn_format_zero_length): Declare.
5791 (set_Wformat): Set warn_format_zero_length for -Wformat.
5792 (check_format_info): Only warn about zero-length formats if
5793 warn_format_zero_length is true. Include the format type
5794 name in the warning message.
5795 * doc/invoke.texi: Document -Wformat-zero-length.
5796 * testsuite/gcc.dg/format/zero-length-1.c: New test.
5797
d92b4486
KH
57982002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5799
5800 * timevar.c: Fix formatting.
5801 * tlink.c: Likewise.
5802 * toplev.c: Likewise.
5803 * tree-dump.c: Likewise.
5804 * tree-inline.c: Likewise.
5805
43612ffb
NB
58062002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
5807
5808 * cppinit.c (cpp_post_options): If preprocessed, turn off
5809 traditional. If traditional, turn off column numbers.
5810 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
5811 * cpptrad.c (handle_newline): Update line_base.
5812 (skip_comment): Handle -Wcomment.
5813
f24a153a
ZW
58142002-05-17 Zack Weinberg <zack@codesourcery.com>
5815
5816 * cppinit.c (struct builtin): Remove unused fields.
5817 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
5818 (operator_array): New - was second half of builtin_array.
5819 (init_builtins): Simplify loop over builtin_array/operator_array.
5820
12403335
NB
58212002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
5822
5823 * defaults.h (UNIQUE_SECTION): Remove.
5824 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
5825
1f8c3c5b
RH
58262002-05-17 Richard Henderson <rth@redhat.com>
5827
5828 * expr.c (init_expr_once): Don't use start/end_sequence.
5829 Use rtx_alloc instead of emit_insn.
5830 * toplev.c (lang_dependent_init): Run init_expr_once here ...
5831 (lang_independent_init): ... not here.
5832
4664f4c4
JT
58332002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5834
5835 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
5836
93febe68
MM
58372002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
5838
5839 * config/avr/avr.c (avr_regs_to_save): New function. Also check
5840 for fixed registers, possibly used for global register variables.
5841 (initial_elimination_offset, avr_output_function_prologue,
5842 avr_output_function_epilogue): Move common code to avr_regs_to_save.
5843
004cb263
NB
58442002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
5845
5846 * Makefile.in: Update for cpptrad.c.
5847 * cpphash.h (struct cpp_buffer): New members for buffer
5848 overlays.
5849 (struct cpp_reader): New members for traditional output.
5850 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
5851 * cppinit.c (cpp_create_reader): Set trad_line.
5852 (cpp_destroy): Free trad_out_base if used.
5853 (cpp_read_main_file): Overlay an empty buffer if traditional.
5854 (cpp_finish_options): Don't do builtins.
5855 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
5856 (cpp_handle_option): Handle it.
5857 * cpplex.c (continue_after_nul): New.
5858 (_cpp_lex_direct): Use handle_nul.
5859 * cpplib.h (struct cpp_options): New traditional option.
5860 * cpptrad.c: New file.
5861
bdcae02b
NB
58622002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
5863
5864 * c-common.c (c_common_init_options): Use C89 for Objective-C,
5865 and set the options flag.
5866 * cppinit.c (lang_flags): Remove objc.
5867 (lang_defaults): Remove OBJC and OBJCXX.
5868 (set_lang): Update.
5869 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
5870 (cpp_handle_option): Remove -+ and -lang-objc++.
5871 For ObjC, just set a flag.
5872 (print_help): Update.
5873 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
5874
0fca60ab
RO
58752002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5876
5877 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
5878 bootstrap with -mips3.
5879
dd3f0101
KH
58802002-05-17 Kazu Hirata <kazu@cs.umass.edu>
5881
5882 * final.c: Fix formatting.
5883 * fix-header.c: Likewise.
5884 * flow.c: Likewise.
5885 * fold-const.c: Likewise.
5886 * function.c: Likewise.
5887
5ca9299f
DM
58882002-05-17 David S. Miller <davem@redhat.com>
5889
5890 PR c/6689, PR optimization/6615
5891 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
5892 and make it a pointer to rtx. Update comments.
5893 (update_equiv_regs): When scanning for equivalences, record
5894 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
5895 it while making the equiv replacements.
5896
508bc172
RO
58972002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5898
5899 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
5900
5cd983a6
KK
59012002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
5902
5903 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
5904 when encoding visibility into SYMBOL_REF_FLAG.
5905
ce0f3925
RS
59062002-05-17 Richard Sandiford <rsandifo@redhat.com>
5907
5908 * expr.c (force_operand): Fix reversed move.
5909
06809951
GP
59102002-05-17 Kurt Wall <kwall@kurtwerks.com>
5911
5912 * doc/install.texi (Testing): Mention two common DejaGnu warnings
5913 that can be ignored.
5914
59152002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5916
5917 * doc/install.texi (Final install): Recommend to install into a
5918 "clean" target directory.
5919
1d5d7a21
RH
59202002-05-17 Richard Henderson <rth@redhat.com>
5921
5922 * config/ia64/ia64.md: Use braced strings instead of quoted strings
5923 for code blocks. Tidy whitespace.
5924
ae46c4e0
RH
59252002-05-17 Richard Henderson <rth@redhat.com>
5926
5927 * hooks.c (hook_tree_bool_false): New.
5928 * hooks.h: Declare it.
5929 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
5930 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
5931 * target.h (select_section, unique_section): New.
5932 (in_small_data_p): New.
5933 * varasm.c (resolve_unique_section): Use hooks instead of macros.
5934 (variable_section, output_constant_def_contents): Likewise.
5935 (default_select_section, default_unique_section): New.
5936 (categorize_decl_for_section, default_elf_select_section): New.
5937 * output.h: Declare them.
5938
5939 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
5940 (TARGET_ASM_SELECT_SECTION): New.
5941 (SELECT_SECTION): Move ...
5942 * config/darwin.c (machopic_select_section): ... here.
5943 * config/darwin-protos.h: Update.
5944
5945 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
5946 (SELECT_SECTION): Move ...
5947 * config/nextstep.c (nextstep_select_section): ... here.
5948 * config/nextstep-protos.h: Update.
5949
5950 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
5951 (TARGET_ASM_SELECT_SECTION): New.
5952 * config/svr3.h (SELECT_SECTION): Remove.
5953
5954 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
5955 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
5956 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
5957 (alpha_encode_section_info): Use it.
5958 * config/alpha/alpha-protos.h: Update.
5959 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
5960 (SELECT_SECTION, UNIQUE_SECTION): Remove.
5961 (TARGET_ASM_SELECT_SECTION): New.
5962 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
5963
5964 * config/arm/pe.h (UNIQUE_SECTION): Remove.
5965 (TARGET_ASM_UNIQUE_SECTION): New.
5966
5967 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
5968 (avr_unique_section): Rename from unique_section; make static.
5969 * config/avr/avr-protos.h: Update.
5970 * config/avr/avr.h (UNIQUE_SECTION): Remove.
5971
5972 * config/c4x/c4x.h (SELECT_SECTION): Remove.
5973
5974 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
5975 (TARGET_ASM_UNIQUE_SECTION): New.
5976 * config/i386/i386-interix.h: Likewise.
5977 * config/i386/win32.h: Likewise.
5978 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
5979 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
5980 * config/i386/sco5.h (SELECT_SECTION): Remove.
5981 (TARGET_ASM_SELECT_SECTION): New.
5982 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
5983
5984 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
5985 instead of SELECT_SECTION.
5986 * config/m68k/dpx2.h: Likewise.
5987 * config/rs6000/lynx.h: Likewise.
5988
5989 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5990 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5991 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
5992 (ia64_in_small_data_p): New.
5993 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
5994 (ia64_aix_select_section, ia64_aix_unique_section): New.
5995 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
5996 (SELECT_SECTION, UNIQUE_SECTION): Remove.
5997
5998 * config/m32r/m32r.h (SELECT_SECTION): Remove.
5999 (TARGET_ASM_SELECT_SECTION): New.
6000 * config/m32r/m32r.c (m32r_select_section): Take align argument.
6001 * config/m32r/m32r-protos.h: Update.
6002
6003 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
6004 (SELECT_SECTION): Move ...
6005 * config/m88k/m88k.c (m88k_select_section): ... here.
6006
6007 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
6008 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
6009 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
6010 (mcore_unique_section): Make static.
6011 * config/mcore/mcore-protos.h: Update.
6012
6013 * config/mips/elf.h (UNIQUE_SECTION): Remove.
6014 (TARGET_ASM_UNIQUE_SECTION): New.
6015 * config/mips/elf64.h: Likewise.
6016 * config/mips/iris6gld.h: Likewise.
6017 * config/mips/linux.h: Likewise.
6018 * config/mips/mips-protos.h: Update.
6019 * config/mips/mips.c (mips_select_section): Add align argument.
6020 * config/mips/mips.h (SELECT_SECTION): Remove.
6021 (TARGET_ASM_SELECT_SECTION): New.
6022
6023 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6024 * config/mmix/mmix.c (mmix_select_section): Remove.
6025 (mmix_unique_section): Remove.
6026 * config/mmix/mmix-protos.h: Update.
6027
6028 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
6029 (SELECT_SECTION): Move ...
6030 * config/pa/pa.c (pa_select_section): ... here.
6031 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
6032
6033 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
6034 from rs6000_select_section and make static.
6035 (rs6000_elf_unique_section): Similarly.
6036 (rs6000_xcoff_select_section): From xcoff.h.
6037 (rs6000_xcoff_unique_section): Likewise.
6038 * config/rs6000/rs6000-protos.h: Update.
6039 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6040 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6041 * config/rs6000/xcoff.h: Likewise.
6042
6043 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
6044 (SELECT_SECTION): Move ...
6045 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
6046
6047 * config/v850/v850.h (SELECT_SECTION): Move ...
6048 * config/v850/v850.c (v850_select_section): ... here.
6049 (TARGET_ASM_SELECT_SECTION): New.
6050
6051 * config/vax/vms.h (SELECT_SECTION): Move ...
6052 * config/vax/vax.c (vms_select_section): ... here.
6053 (TARGET_ASM_SELECT_SECTION): New.
6054
6055 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
6056 for the target hooks.
6057
eaeb23a7
NC
60582002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
6059
6060 * config/arm/arm.c (emit_multi_reg_push): Do not set
6061 RTX_FRAME_RELATED_P on the SEQUENCE.
6062
a00fe19f
RH
60632002-05-16 Richard Henderson <rth@redhat.com>
6064
6065 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
6066 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
6067
5ccff482
RH
60682002-05-16 Richard Henderson <rth@redhat.com>
6069
6070 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
6071
068d7739
RH
6072 * config/ia64/ia64.c (saveable_obstack): Do not declare.
6073
0b17ab2f
RH
60742002-05-16 Richard Henderson <rth@redhat.com>
6075
6076 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
6077 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
6078 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
6079 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
6080 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
6081 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
6082 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
6083 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
6084 Revert "Basic block renumbering removal", and two followup patches.
6085
8ae86b3c
JT
60862002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6087
6088 * lcm.c (optimize_mode_switching): Revert previous change.
6089
4e9f27af
ZD
60902002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6091
6092 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
6093 with only extant block numbers.
6094
3cdc1dbc
JT
60952002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6096
6097 * lcm.c (optimize_mode_switching): Fix typo.
6098
fbfb3b09
ZD
60992002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6100
6101 * flow.c (calculate_global_regs_live): Queue blocks in program order.
6102
b4b0fb02
RO
61032002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6104
6105 * doc/install.texi (Configuration): Document PWDCMD.
6106
63b827c5
DJ
61072002-05-16 Dale Johannesen <dalej@apple.com>
6108
6109 * combine.c (cant_combine_insn_p): Reenable combinations
6110 involving hard regs unless CLASS_LIKELY_SPILLED_P.
6111
748d29c1
NB
61122002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6113
6114 * c-common.c (cb_register_builtins): Handle more built-ins
6115 here rather than in gcc.c specs.
6116 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
6117 (cpp_options): Pass -O flags even when only preprocessing.
6118 * toplev.c (set_fast_math_flags): New prototype.
6119 (fast_math_flags_set_p): New.
6120 (set_no_fast_math_flags): Remove.
6121 (decode_f_option): Update.
6122 * toplev.h (set_fast_math_flags): Update.
6123 (fast_math_flags_set_p): New.
6124 (set_no_fast_math_flags): Remove.
6125config:
6126 * c4x/c4x.c (c4x_override_options): Update.
6127
5279d739
ZW
61282002-05-16 Zack Weinberg <zack@codesourcery.com>
6129
6130 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
6131 Default-define here.
6132 (builtin_define_with_value): Can now wrap the expansion in
6133 quotation marks if such is wanted.
a00fe19f 6134 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
6135 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
6136 here.
6137 (c_common_init): Set options->stdc_0_in_system_headers.
6138 * c-lex.h: Update prototype of builtin_define_with_value.
6139 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
6140 and REGISTER_PREFIX.
6141
6142 * cppinit.c (VERS, ULP, C, X): Kill.
6143 (builtin_array): Remove entries for __VERSION__,
6144 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
6145 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
6146 a constant.
6147 (init_builtins): Kill off a bunch of now-dead code.
6148 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
6149 -fno-leading-underscore.
6150 (cpp_handle_option): Remove code to set user_label_prefix.
6151 (cpp_post_options): Likewise.
6152
6153 * cpplib.h (struct cpp_options): Remove user_label_prefix.
6154 (stdc_0_in_system_headers): New.
6155 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
6156 stdc_0_in_system_headers) too to decide the value of __STDC__.
6157
6158 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 6159 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
6160 (initialize_builtins): Don't define __REGISTER_PREFIX__
6161 or __USER_LABEL_PREFIX__.
6162 (install_value): Wrap compound statement in dummy loop so the
6163 macro works properly in an if statement.
6164
6165
62e6ca55
JJ
61662002-05-16 Janis Johnson <janis187@us.ibm.com>
6167
6168 * loop.h (struct loop_info): Add member has_prefetch.
6169 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
6170 (prescan_loop): Initialize has_prefetch.
6171 (struct prefetch_info): Change prefetch_in_loop and
6172 prefetch_before_loop from bit fields to ints.
6173 (emit_prefetch_instructions): Several small fixes.
6174 (check_dbra_loop): Don't reverse loop that uses prefetch.
6175
1e6347d8
RO
61762002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6177
6178 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
6179 * configure.in: Likewise.
6180 * fixinc/check.tpl: Likewise.
6181 * fixinc/fixinc.dgux: Likewise.
6182 * fixinc/fixinc.svr4: Likewise.
6183 * fixinc/fixinc.winnt: Likewise.
6184 * fixinc/fixincl.sh: Likewise.
6185 * fixproto: Likewise.
6186 * configure: Regenerate.
6187
355e4ec4
ZD
61882002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6189
6190 Basic block renumbering removal:
6191 * basic_block.h (struct basic_block_def): Renamed index to sindex,
6192 added prev_bb and next_bb fields.
6193 (n_basic_blocks): Renamed to num_basic_blocks.
6194 (last_basic_block): New, index of last basic block.
6195 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6196 traversing basic block chain.
6197 (BLOCK_NUM): index -> sindex.
6198 (create_basic_block_structure, create_basic_block): Declaration changed.
6199 (debug_num2bb): Declare.
6200 (expunge_block_nocompact): Declaration removed.
6201 (link_block, unlink_block, compact_blocks): Declare.
6202 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
6203 * cfg.c (entry_exit_blocks): Initialize new fields.
6204 (clear_edges, alloc_block, expunge_block, cached_make_edge,
6205 redirect_edge_pred, dump_flow_info, dump_edge_info,
6206 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
6207 free_aux_for_edges): Modified.
6208 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
6209 (expunge_block_nocompact): Removed.
6210 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
6211 find_unreachable_blocks, create_edge_list, print_edge_list,
6212 verify_edge_list, flow_edge_list_print, remove_fake_successors,
6213 remove_fake_edges, flow_reverse_top_sort_order_compute,
6214 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6215 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
6216 flow_dfs_compute_reverse_execute): Modified.
6217 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
6218 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
6219 Modified.
6220 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6221 merge_blocks_move_predecessor_nojumps,
6222 merge_blocks_move_successor_nojumps, merge_blocks,
6223 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
6224 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
6225 * cfglayout.c (skip_insns_after_block, label_for_bb,
6226 record_effective_endpoints, scope_to_insns_finalize,
6227 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
6228 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
6229 cfg_layout_duplicate_bb): Modified.
6230 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
6231 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6232 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
6233 flow_loops_find, flow_loop_outside_edge_p): Modified.
6234 * cfgrtl.c (create_basic_block_structure, create_basic_block,
6235 flow_delete_block, compute_bb_for_insn, split_block,
6236 try_redirect_by_replacing_jump, redirect_edge_and_branch,
6237 force_nonfallthru_and_redirect, tidy_fallthru_edge,
6238 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
6239 commit_edge_insertions, commit_edge_insertions_watch_calls,
6240 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6241 purge_all_dead_edges): Modified.
6242 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
6243 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6244 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
6245 Modified.
6246 * conflict.c (conflict_graph_compute): Modified.
6247 * df.c (FOR_ALL_BBS): Removed.
6248 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
6249 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
6250 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
6251 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
6252 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6253 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
6254 * final.c (compute_alignments, final_scan_insn): Modified.
6255 * flow.c (verify_local_live_at_start, update_life_info,
6256 update_life_info_in_dirty_blocks, free_basic_block_vars,
6257 delete_noop_moves, calculate_global_regs_live,
6258 initialize_uninitialized_subregs, allocate_bb_life_data,
6259 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
6260 mark_used_reg, count_or_remove_death_notes): Modified.
6261 * function.c (thread_prologue_and_epilogue_insns): Modified.
6262 * gcse.c (struct null_pointer_info): Change typo of current_block
6263 to basic_block.
6264 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
6265 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
6266 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
6267 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
6268 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
6269 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
6270 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
6271 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
6272 pre_delete, one_pre_gcse_pass, compute_transpout,
6273 invalidate_nonnull_info, delete_null_pointer_checks_1,
6274 free_code_hoist_mem, compute_code_hoist_vbeinout,
6275 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6276 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
6277 compute_store_table, build_store_vectors, insert_insn_start_bb,
6278 insert_store, replace_store_insn, free_store_memory, store_motion):
6279 Modified.
6280 * global.c (global_alloc, global_conflicts, mark_elimination,
6281 build_insn_chain): Modified.
6282 * graph.c (print_rtl_graph_with_bb): Modified.
6283 * haifa-sched.c (sched_init): Modified.
6284 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6285 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
6286 if_convert): Modified.
6287 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
6288 compute_insert_delete, pre_edge_lcm, compute_available,
6289 compute_farthest, compute_nearerout, compute_rev_insert_delete,
6290 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
6291 Modified.
6292 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
6293 * loop.c (loop_dump_aux): Modified.
6294 * predict.c (combine_predictions_for_insn, estimate_probability,
6295 last_basic_block_p, process_note_prediction, process_note_predictions,
6296 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
6297 expensive_function_p, estimate_bb_frequencies,
6298 compute_function_frequency): Modified.
6299 * print-rtl.c (print_rtx): Modified.
6300 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
6301 get_exec_counts, compute_branch_probabilities, compute_checksum,
6302 branch_prob, find_spanning_tree): Modified.
6303 * recog.c (split_all_insns, peephole2_optimize): Modified.
6304 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
6305 convert_regs_1, convert_regs_2, convert_regs): Modified.
6306 * regclass.c (scan_one_insn, regclass): Modified.
6307 * regmove.c (mark_flags_life_zones, regmove_optimize,
6308 combine_stack_adjustments): Modified.
6309 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
6310 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
6311 * reorg.c (dbr_schedule): Modified.
6312 * resource.c (find_basic_block, init_resource_info): Modified.
6313 * sbitmap.c (sbitmap_intersection_of_succs,
6314 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
6315 sbitmap_union_of_preds): Modified.
6316 * sched-deps.c (init_dependency_caches): Modified.
6317 * sched-ebb.c (schedule_ebbs): Modified.
6318 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
6319 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
6320 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
6321 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
6322 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
6323 ssa_const_prop): Modified.
6324 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
6325 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
6326 * ssa.c (remove_phi_alternative, find_evaluations,
6327 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
6328 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
6329 make_regs_equivalent_over_bad_edges,
6330 make_equivalent_phi_alternatives_equival,
6331 compute_conservative_reg_partition,
6332 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
6333 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
6334 Modified.
6335
5a566bed
MM
63362002-05-16 Mark Mitchell <mark@codesourcery.com>
6337
6338 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
6339
48f6efae
NC
63402002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
6341
6342 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
6343 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6344 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
6345 calling CONSTANT_POOL_ADDRESS_P.
6346 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
6347 to decide whether to define __arm__ or __thumb.
355e4ec4 6348 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
6349 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6350
b166fadd
NB
63512002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6352
6353 * config/arc/arc.h (CPP_PREDEFINES): Remove.
6354 (CPP_SPEC): Update.
6355 (TARGET_CPU_CPP_BUILTINS): New.
6356
601328bb
NB
63572002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6358
6359 * cpphash.h (cpp_macro): Move here, and make expansion a union.
6360 * cppmacro.c (cpp_macro): Remove.
6361 (enter_macro_context, replace_args, warn_of_redefinition,
6362 _cpp_create_definition, cpp_macro_definition): Update.
6363
ff48be5c
JM
63642002-05-16 Jason Merrill <jason@redhat.com>
6365
6366 * config/mips/mips.c (mips_output_external): Don't do sdata
6367 optimization for a variable with DECL_COMDAT set.
6368
805c42ba
AH
63692002-05-15 Aldy Hernandez <aldyh@redhat.com>
6370
355e4ec4
ZD
6371 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
6372 Cleanups for accepting modifiers on pointers.
6373 Fix predicate typos.
6374 Allow long pointers as well as int pointers.
805c42ba 6375
34fb9ba5
RH
63762002-05-15 Richard Henderson <rth@redhat.com>
6377
6378 * varasm.c (merge_weak): Remove special case for extern and common.
6379
62e118f5
MH
63802002-05-15 Matt Hiller <hiller@redhat.com>
6381
6382 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 6383 XFAILing.
62e118f5
MH
6384 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
6385 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
6386 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
6387 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
6388 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
6389 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
6390
fefac463
AH
63912002-05-15 Aldy Hernandez <aldyh@redhat.com>
6392
355e4ec4 6393 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 6394
5f004351
AH
63952002-05-15 Aldy Hernandez <aldyh@redhat.com>
6396
355e4ec4
ZD
6397 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
6398 ("altivec_mfvscr"): Read from VSCR.
6399
6400 Add vscr sets for the following insns: altivec_vctuxs,
6401 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
6402 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
6403 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
6404 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
6405 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
6406 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
6407 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
6408 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
6409 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
6410 altivec_vsum2sws, altivec_vsumsws.
6411
6412 * config/rs6000/rs6000.h: Add VSCR fixed register.
6413 (CALL_REALLY_USED_REGISTERS): Add vscr.
6414 (CALL_USED_REGISTERS): Same.
6415 (FIXED_REGISTERS): Same.
6416 (REG_ALLOC_ORDER): Same.
6417 (reg_class): Add VSCR_REGS.
6418 (REG_CLASS_NAMES): Same.
6419 (REG_CLASS_CONTENTS): Same.
6420 (VSCR_REGNO): New.
6421 (REGISTER_NAMES): Add vscr.
6422 (DEBUG_REGISTER_NAMES): Same.
6423 (ADDITIONAL_REGISTER_NAMES): Same.
6424 (FIRST_PSEUDO_REGISTER): Increment.
6425 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 6426
033afd11
RH
64272002-05-15 Jakub Jelinek <jakub@redhat.com>
6428
6429 * fold-const.c (fold): Fix a typo.
6430
64312002-05-15 Eric Botcazou <ebotcazou@multimania.com>
6432
6433 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
6434 comparison against the highest or lowest integer value before
6435 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
6436 transformation and that of an unsigned comparison against 0
6437 right after.
6438
14285ace
RH
64392002-05-15 Richard Henderson <rth@redhat.com>
6440
6441 * varasm.c (merge_weak): Error for any weakening after definition.
6442 Adjust weakening after use warning to catch more cases.
6443 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
6444 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
6445
194734e9
JH
6446Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6447
6448 * invoke.texi (-malign-double): Re-add lost warning.
6449
6450 * i386-protos.h (x86_output_mi_thunk): Declare.
6451 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
6452 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
6453
6454 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
6455 when flag_asynchronous_unwind_tables is set.
6456
6457 * flags.h (flag_reorder_functions): Declare.
6458 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 6459 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
6460 * Makefile.in (predict.o): Add dependency on target.h and params.h
6461 * defaults.h (HOT_TEXT_SECTION_NAME,
6462 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
6463 * predict.c (choose_function_section): New function.
6464 (estimate_bb_frequencies): Use it.
6465 * toplev.c (flag_reorder_functions): New global variable.
6466 (lang_independent_options): New.
6467 (parse_options_and_default_flags): Set.
6468 * varasm.c (assemble_start_function): Bypass functdion alignment
6469 for never executed functions.
6470 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
6471 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
6472 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6473 Document.
6474
6475 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
6476
6477 * predict.c: Inlude profile.h
6478 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
6479 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
6480 Use the information about maximal counter in the program.
6481
6482 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
6483
6484 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
6485 probably_never_executed_bb_p): New functions.
6486 * cfgcleanup.c (outgoing_edges_match): Use them.
6487 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
6488 (maybe_hot_bb_p, probably_cold_bb_p,
6489 probably_never_executed_bb_p): New functions.
6490
6491 * function.h (function): Add new field function_frequency.
6492 * predict.c (compute_function_frequency): New function.
6493 (estimate_probability): Call it.
6494
61ad9a34
JJ
64952002-03-09 Jakub Jelinek <jakub@redhat.com>
6496
6497 PR optimization/5172, optimization/5200
6498 * gcse.c (gcse_main): Disable store_motion.
6499
a11eba95
ZW
65002002-05-14 Zack Weinberg <zack@codesourcery.com>
6501
6502 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
6503 (c_common_nodes_and_builtins): Use it.
6504 (builtin_define_with_value): New function.
6505 (cb_register_builtins): Define __SIZE_TYPE__,
6506 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
6507 using builtin_define_with_value. Use consistent notation when
6508 defining __GXX_WEAK__.
6509 (WCHAR_TYPE_SIZE): Don't redefine.
6510 (combine_strings): Don't use WCHAR_TYPE_SIZE.
6511
6512 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
6513 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
6514 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
6515 * tradcpp.c (initialize_builtins): Likewise.
6516 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
6517
6518 * c-lex.h (builtin_define_with_value): Prototype.
6519 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
6520 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
6521 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
6522
6523 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6524 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
6525 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
6526 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
6527 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
6528 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
6529 config/sparc/sol2-bi.h, config/sparc/sparc.h:
6530 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
6531 to __SIZE_TYPE__ etc from all spec strings. When this makes
6532 extra specs empty, delete them.
6533
1c31ecf6
JDA
65342002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
6535
6536 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
6537 for PA8000 or generating dwarf2 call frame information.
6538 (output_call): Remove DO_FRAME_NOTES check from return pointer
6539 optimization.
6540 (following_call): Return 0 when scheduling for PA8000 or generating
6541 dwarf2 call frame information. Revise comment.
6542
ac9cfada
NB
65432002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6544
6545config/alpha:
6546 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
6547 and __IEEE_FP_INEXACT as appropriate.
6548 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
6549 (CPP_SPEC): Remove ieee defines.
6550 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
6551
9b690711
RH
65522002-05-14 Richard Henderson <rth@redhat.com>
6553
6554 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
6555 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
6556
e6471be6
NB
65572002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6558
e6471be6
NB
6559 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
6560 (CPP_SPEC): Update.
6561 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
6562 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
6563 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
6564 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
6565 (EXTRA_SPECS): Update.
6566 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
6567 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
6568 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
6569 define TARGET_OS_CPP_BUILTINS if necessary.
6570
e5f5feea
NB
65712002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6572
6573 * gcc.c (cpp_options): Must pass -m* and -f* options
6574 to the front end even when only preprocessing.
6575 (cc1_options): Remove redundant -lang-c.
6576 * tradcpp.c (main): Ignore -m options.
6577objc:
6578 * lang-specs.h: Similarly.
6579
317638a8
VM
65802002-05-14 Vladimir Makarov <vmakarov@redhat.com>
6581
6582 * genautomata.c (transform_3): Add code for transformation
6583 `(A,B,...)+C -> A+C,B,...'.
6584
4d604303
JH
6585Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
6586
6587 * final.c (end_final): Do not output profile_arcs constructor, when
6588 no functions are instrumented.
6589
b18b06ed
JH
6590Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
6591
6592 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
6593
a12f97f0
GP
65942002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6595
6596 * doc/install.texi: Remove special markup originally required for
6597 HTML generation with texi2html.
6598
c1ae3eb4
AS
65992002-05-14 Andreas Schwab <schwab@suse.de>
6600
6601 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
6602 SELECT_SECTION.
6603 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
6604
6605 * varasm.c (resolve_unique_section): Add third parameter
6606 flag_function_or_data_sections and use it instead of
6607 flag_function_sections.
6608 (assemble_start_function): Pass flag_function_sections.
6609 (asm_emit_uninitialised): Pass flag_data_sections.
6610 (assemble_variable): Likewise.
6611
8ee41eaf
RH
66122002-05-14 Richard Henderson <rth@redhat.com>
6613
6614 * config/i386/i386.md: Use define_constants for unspec numbers.
6615 * config/i386/i386.c: Likewise.
6616
e6471be6
NB
66172002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6618
6619 * doc/contrib.texi: Update my entry.
6620
c297b764
MM
66212002-05-13 Mark Mitchell <mark@codesourcery.com>
6622
6623 * fixinc/inclhack.def (winidss_valist): Limit applicability.
6624 * fixinc/fixincl.x: Regenerated.
6625 * fixinc/tests/base/math.h: Update.
6626 * fixinc/tests/base/testing.h: Likewise.
6627
0b42c8f8
ZW
66282002-05-13 Zack Weinberg <zack@codesourcery.com>
6629
6630 * genattr.c (gen_attr): Don't emit a comma after the last
6631 enumerator.
6632
546c093e
RH
66332002-05-13 Richard Henderson <rth@redhat.com>
6634
6635 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
6636 by non-local gotos.
6637 * recog.c (peephole2_optimize): Likewise.
6638
85be8c2d
AP
66392002-05-13 Andris Pavenis <pavenis@lanet.lv>
6640
6641 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
6642 input to O_BINARY.
6643
765b8f90
JL
66442002-05-13 Jeffrey A Law (law@redhat.com)
6645
fe4b3c79
JL
6646 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
6647 Update prototype and callers.
6648 (propagate_one_insn): Stack pointer adjustments kill MEMs on
6649 the mem_set_list which reference the stack pointer, as do
6650 calls to constant functions as they may clobber outgoing
6651 argument space.
6652
16133d00
JL
6653 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
6654
765b8f90
JL
6655 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
6656 (ia32_multipass_dfa_lookahead): New function.
6657
63826d5b
NB
66582002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6659
6660 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
6661 (translate_options): Remove 'V'.
6662 (process_command): Similarly.
6663doc:
6664 * invoke.texi: Remove documentation of 'V'.
6665
dcb41ced
UW
66662002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6667
6668 * config/s390/linux.h: Revert 2002-04-22 changes.
6669
8dfea428
SM
66702002-05-13 Scott Marks <SMarks@mobile-mind.com>
6671
6672 * config/fr30/fr30.md: Only allow splits of immediate loads
6673 if the destination is a register.
6674
12a41c22
NB
66752002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6676
6677 * Makefile.in (c-common.o, cppinit.o): Update.
6678 * c-common.c: Include except.h.
6679 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
6680 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
6681 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
6682 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
6683 CPP_PREDEFINES): Handle here.
6684config:
6685 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
6686 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
6687 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
6688 TARGET_OS_CPP_BUILTINS.
6689 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
6690 (CPP_SPEC, EXTRA_SPECS): Update.
6691 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
6692 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
6693 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
6694 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
6695 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
6696doc:
6697 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
6698 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
6699
5692c7bc
ZW
67002002-05-12 Zack Weinberg <zack@codesourcery.com>
6701
6702 * emit-rtl.c (global_rtl): Update comment.
6703 (const_double_htab, const_double_htab_hash,
6704 const_double_htab_hash, lookup_const_double): New.
6705 (const_int_htab_hash, const_int_htab_eq): Remove const
6706 qualifiers, which cause tons of warnings with RTL checking on.
6707 (gen_rtx_CONST_DOUBLE): Deleted.
6708 (const_double_from_real_value): New function - bears some
6709 resemblance to the former immed_real_const_1.
6710 (immed_double_const): Moved here from varasm.c and
6711 simplified.
6712 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
6713 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
6714 (gen_rtx): Use immed_double_const.
6715 (init_emit_once): Initialize the const_double_htab. Use
6716 REAL_VALUE_FROM_INT where possible. Can now use
6717 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
6718 * varasm.c (struct varasm_status): Remove x_const_double_chain.
6719 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
6720 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
6721 (init_varasm_status, mark_varasm_status): Don't touch
6722 x_const_double_chain.
6723
6724 * output.h: Delete prototype for clear_const_double_mem.
6725 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
6726 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
6727 const_double_from_real_value, not immed_real_const_1, and use
6728 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
6729 CONST_DOUBLE_ATOF.
6730 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
6731 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
6732 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
6733 (gen_rtx_REG): Second arg is unsigned.
6734
6735 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
6736 (excluded_rtx): New, return true for CONST_DOUBLE.
6737 (genmacro): Write nothing for excluded codes.
6738 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
6739 * expr.c (expand_expr): Likewise.
6740 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
6741 CONST_DOUBLE_CHAIN.
6742 * toplev.c (rest_of_compilation): Don't call
6743 clear_const_double_mem.
6744
6745 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
6746 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
6747 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
6748 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
6749 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
6750 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
6751 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
6752 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
6753
31397a7b
KG
67542002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6755
6756 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
6757
1b70d38a
TT
67582002-05-12 Tom Tromey <tromey@redhat.com>
6759
6760 * tree.h (copy_node): Don't mention TREE_PERMANENT.
6761
9a5834ae
ZW
67622002-05-12 Zack Weinberg <zack@codesourcery.com>
6763
6764 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
6765 (scan_comma_elt): New function. Accepts whitespace in comma lists.
6766 * gensupport.h: Prototype new routines.
6767 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
6768 use of printf.
6769 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
6770 (next_comma_elt): Use scan_comma_elt.
6771
6772 * config/i386/i386.md: Use new attribute notation to break up
6773 long lines in define_attr forms.
6774
51286de6
RH
67752002-05-12 Richard Henderson <rth@redhat.com>
6776
6777 * expr.c (compress_float_constant): New.
6778 (emit_move_insn): Use it.
6779 (float_extend_from_mem): New.
6780 (init_expr_once): Initialize it.
6781 * real.c (exact_real_truncate): New.
6782
6783 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
6784 dropped into memory; penalize for size.
6785 (RTX_COSTS): FLOAT_EXTEND is free.
6786 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
6787 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
6788
6412341e
RH
67892002-05-12 Richard Henderson <rth@redhat.com>
6790
6791 * profile.h (profile_info): Add missing extern to declaration.
6792 * profile.c (profile_info): Define it.
6793
12877f09
JDA
67942002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6795
6796 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
6797 used for DImode and TImode.
6798
387f9e32
NB
67992002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
6800
6801 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
6802 fake a newline.
6803
e1a0f69c
ZW
68042002-05-11 Zack Weinberg <zack@codesourcery.com>
6805
6806 * config/rs6000/rs6000.c (rs6000_default_long_calls,
6807 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
6808 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
6809 (rs6000_override_options): Handle -m(no-)longcall.
6810 (init_cumulative_args, output_mi_thunk): Check for both
6811 longcall and shortcall attributes on the function.
6812 (rs6000_attribute_table): Add "shortcall".
6813 (rs6000_handle_longcall_attribute): Update comment.
6814 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
6815 altivec_expand_ternop_builtin): Add default clauses to switches
6816 to silence warnings.
6817
6818 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
6819 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
6820 (TARGET_OPTIONS): Add longcall and no-longcall.
6821
6822 * config/rs6000/rs6000.md (call_nonlocal_sysv,
6823 call_value_nonlocal_sysv): Split by alternatives. One pair
6824 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
6825 the call cookie. The other pair accepts only LR/CTR and has
6826 no restriction.
6827
6828 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
6829 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
6830 tmake_file.
6831 * config/rs6000/rs6000-c.c: New file.
6832 * config/rs6000/t-rs6000-c-rule: New file.
6833 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
6834 Prototype rs6000_pragma_longcall.
6835
6836 * doc/extend.texi: Document shortcall attribute.
6837 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
6838
9c64026d
JDA
68392002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6840
6841 * reorg.c (dbr_schedule): Remove unnecessary test.
6842
6c81a490
JH
6843Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
6844
6845 * i386.md (testsi to testqi spliters): New.
6846
6847 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
6848
6849 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
6850
6851 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
6852
6853 * basic-block.h: New flag EDGE_CAN_FALLTHRU
6854 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
6855 that can be made fallthru.
6856
6857 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
6858
6859 * cfglayout.c (cleanup_unconditional_jumps): New static function.
6860 (cfg_layout_initialize): Use it.
4c476cf3 6861
e4447d94
MM
68622002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
6863
6864 * config/avr/avr.c (avr_mcu_types): Update supported devices.
6865 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6866 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6867
3a538a66
KH
68682002-05-11 Kazu Hirata <kazu@cs.umass.edu>
6869
6870 * dbxout.c: Fix formatting.
6871 * dependence.c: Likewise.
6872 * df.c: Likewise.
6873 * diagnostic.c: Likewise.
6874 * doloop.c: Likewise.
6875 * dominance.c: Likewise.
6876 * doschk.c: Likewise.
6877 * dwarf2asm.c: Likewise.
6878 * dwarf2out.c: Likewise.
6879 * dwarfout.c: Likewise.
6880
2292e8fc
RH
68812002-05-10 Richard Henderson <rth@redhat.com>
6882
6883 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
6884 Convert integers constants as needed. Replace "nwords" field with
6885 "sizeof_bb".
6886 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
6887 * function.h: Fix typo in comment.
6888 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
6889
dbfb1116
RS
68902002-05-10 Roger Sayle <roger@eyesopen.com>
6891
6892 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
6893 into the equivalent (signed char)c > 0.
6894
79a497cd
JJ
68952002-05-10 Janis Johnson <janis187@us.ibm.com>
6896
6897 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
6898 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
6899 (struct prefetch_info): Fix spelling of member bytes_accessed.
6900 (emit_prefetch_instructions): Make dump messages more regular;
6901 restructure code to add more dump messages; use new macros for
6902 heuristics. (There are no code generation changes in any of this).
6903
6c45cb0d
DM
69042002-05-10 David S. Miller <davem@redhat.com>
6905
7440af14
DM
6906 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
6907 (struct rtx_def): Update unchanging flag comment.
6908 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
6909 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
6910 to be handled to INSN too.
6911 (dbr_schedule): Likewise.
6912 * resource.c (next_insn_no_annul): Likewise.
6913
6c45cb0d
DM
6914 * cse.c (rtx_cost): Remove multiplication by power of 2 special
6915 casing.
6916
29f21e4f
GP
69172002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6918
6919 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
6920 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
6921 (possibly) work around broken /bin/sh.
6922
e4ba88da
RO
69232002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6924
6925 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
6926 . as N64/N32 libgcc_s.so subdirs.
6927
4f4778ee
DM
69282002-05-10 David S. Miller <davem@redhat.com>
6929
6930 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
6931
6932 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
6933 more accurately.
6934 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
6935 comment.
6936 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
6937 * doc/rtl.texi: Document these macros more accurately.
6938 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
6939 JUMP_INSNs and CALL_INSNs.
6940 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
6941 or INSN_FROM_TARGET_P if the code is appropriate.
6942
1a499b92
MM
69432002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
6944
6945 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
6946 before using SYMBOL_REF_FLAG (addr).
6947
6948 * config/avr/avr-protos.h (avr_io_address_p): Declare.
6949 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
6950 Make non-static. Update all callers.
6951 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
6952 New insns to clear/set/test a single bit in I/O address space.
6953
65212b66
KG
69542002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6955
6956 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
6957
3df89291
NB
69582002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6959
6960 * Makefile.in: Update.
6961 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
6962 builtin_define_std): New.
6963 (c_common_init): Register CPP builtins callback.
6964 * c-common.h (flag_iso, flag_undef): New.
6965 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
6966 * c-lex.c: Don't include target.h.
6967 (cb_register_builtins): Move to c-common.c.
6968 (init_c_lex): Don't register hook here.
6969 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
6970 (cpp_define, cpp_assert): Remove.
6971 * gcc.c (cc1_options): Pass -undef to front end.
6972 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
6973 (TARGET_INITIALIZER): Update.
6974 * target.h (struct cpp_reader): Don't predeclare.
6975 (struct gcc_target): Remove cpp builtin hook.
6976 * tree.c (default_register_cpp_builtins): Remove.
6977doc:
6978 * tm.texi: Update.
6979
32fa4565
NB
69802002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6981
6982 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
6983
23357c55
RO
69842002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6985
6986 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
6987 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
6988
5aa26af0
JJ
69892002-05-09 Jakub Jelinek <jakub@redhat.com>
6990
6991 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
6992 * config/sparc/libgcc-sparc-glibc.ver: New file.
6993 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6994 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
6995
2937267b
JJ
69962002-05-09 Jakub Jelinek <jakub@redhat.com>
6997
6998 PR target/6429
6999 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7000 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7001 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7002 base multilibs.
7003 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
7004 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7005 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7006 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7007
086c0f96
RH
70082002-05-09 Richard Henderson <rth@redhat.com>
7009
7010 * config/ia64/ia64.md: Use define_constants for unspec numbers.
7011 * config/ia64/ia64.c: Likewise.
7012
a8b4881f
RS
70132002-05-09 Richard Sandiford <rsandifo@redhat.com>
7014
7015 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
7016 (save_restore_insns): Likewise.
7017 (mips_expand_prologue, mips_expand_epilogue): Update callers.
7018 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
7019
243e5500 7020Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
890d52e8 7021
af2728a4
JL
7022 * athlon.md, k6.md, pentium.md, ppro.md): New files.
7023 * i386.md: Move scheduling information into new files.
7024
890d52e8
JL
7025 * i386.md (type attribute): Add "rotate" for rotate insns.
7026 (rotate insns): Set type to "rotate".
7027 (various attributes and function units): Treat rotate like shift.
7028 (pent_pair attribute): Only rotates by one bit position are
7029 pairable.
7030 (sbb insns): Explicitly set pent_pair attribute on a couple
7031 that were missing it.
7032
f78ec36a
R
7033Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
7034
7035 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
7036 make sure that buffer starts on odd word address.
7037 (sh_va_arg): Skip odd fp registers when reading a double precision
7038 value.
7039
ff431459
NB
70402002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7041
7042 * tree.h (preserve_data, object_permanent_p, type_precision):
7043 Remove.
7044
c3bf3e6e
NB
70452002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7046
7047 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
7048 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
7049doc:
7050 * cpp.texi: Update for removal of obsolete features.
7051
02263a8a
JH
7052Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
7053 Jeffrey A Law (law@redhat.com)
7054
7055 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
7056 the DFA interface for Pentium processors.
7057 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
7058 (attr_pent_pair, ix86_pent_find_pair): Remove.
7059 (ix86_sched_reorder_pentium): Remove.
7060 (ix86_sched_reorder): Remove reordering for Pentium.
7061 * i386.md (Pentium scheduling): Rewrite using DFA description.
7062
3e638a90
JH
7063Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
7064
7065 * cfganal.c (can_fallthru): Fix fast path.
7066 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
7067 with edges to the next block.
7068
b7c9bf28
JH
7069Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
7070 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7071
7072 * final.c (end_final): Use C trees to output data structures for profiling.
7073
7074 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
7075 (profile.o): New dependency profile.h
7076 (final.o): New dependency profile.h
7077 * profile.h: New file. New global structure profile_info.
7078 * final.h (count_edges_instrumented_now): Declare.
7079 (current_function_cfg_checksum): Declare.
7080 (function_list): New structure.
7081 (functions_head, functions_tail): New static variables.
7082 (end_final): Emits more data, removed some -ax stuff.
7083 (final): Stores function names and chcksums.
7084 * gcov-io.h (__write_gcov_string): New function.
7085 (__read_gcov_string): New function.
7086 * gcov.c (read_profile): New function.
7087 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 7088 da_file.
5692c7bc
ZW
7089 (read_files): Removed da_file checking, it's done by read_profile now.
7090 * libgcc2.c (bb_function_info): New structure.
7091 (bb): New field in structure, removed some -ax stuff.
7092 (__bb_exit_func): Changed structure of da_file.
7093 * profile.c (count_edges_instrumented_now): New global variable.
7094 (current_function_cfg_checksum): New global variable.
7095 (max_counter_in_program): New global variable.
7096 (get_exec_counts): New function.
7097 (compute_checksum): New function.
7098 (instrument_edges): Sets count_edges_instrumented_now.
7099 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 7100 reading da_file.
5692c7bc
ZW
7101 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
7102 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 7103 now.
5692c7bc 7104 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 7105 now.
5692c7bc 7106 * gcov.texi: Updated information about gcov file format.
b7c9bf28 7107
786de7eb
KH
71082002-05-09 Kazu Hirata <kazu@cs.umass.edu>
7109
7110 * sbitmap.c: Fix formatting.
7111 * scan.c: Likewise.
7112 * scan-decls.c: Likewise.
7113 * sched-deps.c: Likewise.
7114 * sched-ebb.c: Likewise.
7115 * sched-rgn.c: Likewise.
7116 * sched-vis.c: Likewise.
7117 * sdbout.c: Likewise.
7118 * sibcall.c: Likewise.
7119 * simplify-rtx.c: Likewise.
7120 * ssa.c: Likewise.
7121 * ssa-ccp.c: Likewise.
7122 * ssa-dce.c: Likewise.
7123 * stmt.c: Likewise.
7124 * stor-layout.c: Likewise.
7125 * stringpool.c: Likewise.
7126
b7764693
DM
71272002-05-09 David S. Miller <davem@redhat.com>
7128
7129 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
7130
4e7d5d27
DM
71312002-05-07 David S. Miller <davem@redhat.com>
7132
7133 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
7134 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
7135 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
7136 library implementation clobbers the output before the inputs
7137 are fully consumed, use stack temporary for the output.
7138
f979570e
JT
71392002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
7140
7141 * config/netbsd.h (CPP_SPEC): Remove.
7142 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
7143 * config/i386/netbsd.h (CPP_SPEC): Define.
7144 * config/ns32k/netbsd.h (CPP_SPEC): Define.
7145 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
7146 * config/sparc/netbsd.h (CPP_SPEC): Define.
7147 * config/vax/netbsd.h (CPP_SPEC): Define.
7148
a6a2274a
KH
71492002-05-08 Kazu Hirata <kazu@cs.umass.edu>
7150
7151 * read-rtl.c: Fix formatting.
7152 * real.c: Likewise.
7153 * recog.c: Likewise.
7154 * regclass.c: Likewise.
7155 * regmove.c: Likewise.
7156 * reg-stack.c: Likewise.
7157 * reload1.c: Likewise.
7158 * reload.c: Likewise.
7159 * resource.c: Likewise.
7160 * rtlanal.c: Likewise.
7161 * rtl.c: Likewise.
7162 * rtl-error.c: Likewise.
7163
461b48d5
JDA
71642002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7165
7166 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
7167 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
7168
95d075ff
BS
71692002-05-08 Bernd Schmidt <bernds@redhat.com>
7170
7171 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
7172 use __SSE2__ macro instead.
7173 * config/i386/xmmintrin.h: Likewise.
7174
2d4cc6a7
JJ
71752002-05-08 Janis Johnson <janis187@us.ibm.com>
7176
7177 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
7178 and use it in all invocations of these macros. Clean up comments.
7179 * rtl.c (rtl_check_failed_flag): Add an argument for the name
7180 of the flag access macro whose check failed.
7181 * doc/rtl.texi (Flags): Document additional flag uses.
7182
3f8ffc7c
RS
71832002-05-08 Robert Spier <rspier@pobox.com>
7184 Neil Booth <neil@daikokuya.demon.co.uk>
7185
7186 PR preprocessor/6521
7187 * cppfiles.c (handle_missing_header): Don't do anything
7188 different for <> includes.
7189doc:
7190 * cppopts.texi: Update documentation for -MG.
7191
b9e2d17b
NB
71922002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
7193
7194 * cpplex.c (cpp_interpret_charconst): Truncate as well as
7195 sign-extend.
7196doc:
7197 * cpp.texi: Clarify multichar charconst valuation.
7198
8d8269fa
MM
71992002-05-08 Mark Mitchell <mark@codesourcery.com>
7200
7201 * doc/invoke.texi: Document -mwindiss option.
7202
29b91443
JM
72032002-05-08 Jason Merrill <jason@redhat.com>
7204
7205 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
7206
7207 * dwarf2out.c (gen_type_die): Abort on broken recursion.
7208
7209 PR c++/6381
7210 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
7211 REAL_CST.
7212
6c76b950
NC
72132002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
7214
7215 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
7216 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 7217 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
7218 multilibs for the Thumb.
7219
f90bf7ca
MM
72202002-05-08 Mark Mitchell <mark@codesourcery.com>
7221
7222 PR c/6569.
7223 * varasm.c (mark_weak): New function.
7224 (merge_weak): Use it. Do not call declare_weak.
7225 (declare_weak): Use merge_weak.
7226
1e150f2c
JH
7227Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7228
7229 * cse.c (dead_libcall_p): Update counts.
7230 (delete_trivially_dead_insns): Update call of dead_libcall_p.
7231
969d70ca
JH
7232Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7233
7234 * cfglayout.c (function_tail_eff_head): Rename to ...
7235 (function_footer): ... this one.
7236 (unlink_insn_chain): New functions.
7237 (label_for_bb): Only call block_label and emit debug message.
7238 (record_effective_endpoints): Actually unlink the headers and footers.
7239 (fixup_reorder_cahin): Re-insert the unlinked sequences.
7240 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
7241 * cfglayout.h (struct reorder_block_def): New fields footer/header;
7242 remove eff_head/eff_end.
7243 * rtl.h (set_first_insn): Declare.
7244 * emit-rtl.c (set_first_insn): New function.
7245
7246 * cfglayout.c (fixup_reorder_chain): Dump duplicated
7247 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7248 cfg_layout_duplicate_bb): New global function.
7249 (duplicate_insn_chain): New static function.
7250 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7251 cfg_layout_duplicate_bb): Declare.
7252 (struct reorder_block_def): Add "original" field.
7253 * emit-rtl.c (emit_copy_of_insn_after): New function.
7254 * rtl.h (emit_copy_of_insn_after): Declare.
7255
7256 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
7257 (fixup_reorder_chain): properly handle edges to exit block.
7258
7259Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7260 Jan Hubicka <jh@suse.cz>
7261
7262 * basic-block.h (note_prediction_to_br_prob): declare.
7263 * c-semantics.c: Inlucde predit.h
7264 (expand_stmt): predict GOTO_STMT as not taken.
7265 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
7266 (cleanup_cfg): Do not free tail_recursion_list.
7267 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
7268 (flow_delete_block): Kill predictions past end of basic block.
7269 * output.h (delete_unreachable_blocks): Declare.
7270 * predict.c (predicted_by_p, process_note_predictions,
7271 process_note_prediction, last_block_p): New function.
7272 (estimate_probability): Bypass loop on PRED_CONTINUE;
7273 do not handle noreturn heuristics; kill PRED_RETURN; add
7274 PRED_EARLY_RETURN.
7275 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
7276 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
7277 * predict.h (IS_TAKEN): New constant.
7278 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
7279 * rtl.c (NOTE_INSN_PREDICTION): New.
7280 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
7281 New macro.
7282 (insn_note): add NOTE_INSN_PREDICTION.
7283 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
7284 CFG; free tail_recursion_label_list.
7285 * stmt.c: Include predict.h;
7286 (return_prediction): New.
7287 (expand_value_return): Use it.
7288 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
7289
41f8d041
RS
72902002-05-08 Richard Sandiford <rsandifo@redhat.com>
7291
7292 * config/mips/mips.md: Name the unspecs with define_constant.
7293 (*HILO_delay): Rename to 'hilo_delay' (no star).
7294 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
7295 (reload_outdi, reload_outsi): Likewise.
7296
9cabb1d8
KH
72972002-05-07 Kazu Hirata <kazu@cs.umass.edu>
7298
7299 * toplev.c: Fix formatting.
7300
4c76f856
JJ
73012002-05-07 Janis Johnson <janis187@us.ibm.com>
7302
7303 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
7304 * configure.in (ac_rtlflag_checking): New.
7305 * doc/install.texi (--enable-checking): Document RTL flag checking.
7306
44a147ad
NB
73072002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7308
7309 * c-common.c (c_common_init): Set options->unsigned_wchar.
7310 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
7311 group target dependencies.
7312 (init_builtins, cpp_handle_option): Update.
7313 * cpplex.c (cpp_interpret_charconst): Update.
7314 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
7315 signed_char to unsigned_char, group target dependencies.
7316 * defaults.h (WCHAR_UNSIGNED): Remove.
7317 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
7318config:
7319 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
7320 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
7321 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
7322 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
7323 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
7324doc:
7325 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
7326
cace4f93
MM
73272002-05-07 Mark Mitchell <mark@codesourcery.com>
7328
7329 * fixinc/inclhack.def (windiss_math1): New fix.
7330 (windiss_math2): Likewise.
7331 (windiss_valist): Likewise.
7332 * fixinc/fixincl.x: Regenerated.
7333
e2ff6cee
AJ
73342002-05-07 Andreas Jaeger <aj@suse.de>
7335
7336 * genautomata.c (output_internal_min_issue_delay_func): Add
7337 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
7338 (output_internal_trans_func): Likewise.
7339
bdad4be5
JL
7340Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
7341
7342 * pa.c (hppa_profile_hook): Use force_reg to get the address
7343 of the profile hook into an appropriate pseudo register.
7344
a1ffecd9
MM
73452002-05-07 Mark Mitchell <mark@codesourcery.com>
7346
7347 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
7348 (LINK_START_SPEC): Handle it.
7349 (LINK_OS_SPEC): Likewise.
7350 (CPP_SPEC): Likewise.
7351 (STARTFILE_SPEC): Likewise.
7352 (LIB_SPEC): Likewise.
7353 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
7354 all platforms.
7355 (CRTSAVRES_DEFAULT_SPEC): New macro.
7356 (LIB_WINDISS_SPEC): New macro.
7357 (CPP_OS_WINDISS_SPEC): Likewise.
7358 (STARTFILE_WINDISS_SPEC): Likewise.
7359 (ENDFILE_WINDISS_SPEC): Likewise.
7360 (LINK_START_WINDISS_SPEC): Likewise.
7361 (LINK_OS_WINDISS_SPEC): Likewise.
7362 * config/rs6000/windiss.h: New file.
e2ff6cee 7363
df966bff
AH
73642002-05-07 Aldy Hernandez <aldyh@redhat.com>
7365
a5c76ee6 7366 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 7367
db84f1bd
DM
73682002-05-06 David S. Miller <davem@redhat.com>
7369
7370 * config/sparc/sparc.md (shift insns): Do not mask off
7371 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
7372 take care of it.
7373
818c0c94
RH
73742002-05-06 Richard Henderson <rth@redhat.com>
7375
7376 PR c++/6212
7377 * expr.c (highest_pow2_factor_for_type): New.
7378 (expand_assignment): Use it.
7379
61e0b50f
AH
73802002-05-06 Aldy Hernandez <aldyh@redhat.com>
7381
818c0c94
RH
7382 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
7383 unspec_volatile.
7384 ("altivec_mfvscr"): Same.
61e0b50f 7385
5a63e069
JJ
73862002-05-06 Janis Johnson <janis187@us.ibm.com>
7387
7388 * rtl.h (struct rtx_def): Update comments.
7389 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
7390 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
7391 RTL_FLAG_CHECK macros with list of expected RTL codes.
7392 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
7393 (rtl_check_failed_flag): New.
7394 * reload1.c (reload): Use REG macro before changing rtx to MEM.
7395 (reload_cse_noop_set_p): Check rtx code before using access macro.
7396 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
7397 before using access macro.
7398
4afe3952
JJ
73992002-05-06 Janis Johnson <janis187@us.ibm.com>
7400
7401 * doc/rtl.texi (Flags): Update to reflect current usage.
7402
1f77b5da
RS
74032002-05-06 Roger Sayle <roger@eyesopen.com>
7404
7405 PR opt/3995
7406 * fold-const.c (sign_bit_p): New function.
7407 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 7408 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
7409 Reapply fold when converting (A & C) == C into (A & C) != 0.
7410 (fold_binary_op_with_conditional_arg): Fix typo in comment.
7411
a5a49440
NB
74122002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7413
7414 * c-common.c (warn_multichar): New.
7415 (c_common_init): Set CPP's warn_multichar.
7416 * c-common.h (warn_multichar): New.
7417 * c-decl.c (warn_multichar): Remove.
7418 * c-lex.c (lex_charconst): Update.
7419 * c-tree.h (warn_multichar): Remove.
7420 * cppexp.c (eval_token): Sign-extend charconst value.
7421 * cppinit.c (cpp_create_reader): Set warn_multichar.
7422 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
7423 each character. Update prototype. Sign-extend the result.
7424 * cpplib.h: Fix conditions.
7425 (struct cpp_options): Add new warning flag.
7426 (cpp_interpret_charconst): Update prototype.
7427doc:
7428 * cpp.texi: Update documentation.
7429
83e0be55
VM
74302002-05-06 Vladimir Makarov <vmakarov@redhat.com>
7431
7432 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7433 Fix typo in usage of allof instead of unit.
7434
688ec718
RH
74352002-05-06 Richard Henderson <rth@redhat.com>
7436
7437 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
7438 and any jump or call for IN.
7439
f6536266
BS
74402002-05-06 Bernd Schmidt <bernds@redhat.com>
7441
e2ff6cee 7442 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
7443 -msse2.
7444 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 7445
0316d49b
RS
74462002-05-06 Roger Sayle <roger@eyesopen.com>
7447
7448 * fold-const.c (lshift-double): Cast the high word to an unsigned
7449 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
7450 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
7451 avoid compiler warning. (fold): Remove redundant code from
7452 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
7453
5d50fab3
JL
74542002-05-06 Jeff Law <law@redhat.com>
7455
7456 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
7457 * pa.c (pa_adjust_cost): Remove all true dependency cost
7458 adjustments. Also remove support for non-DFA scheduling.
7459 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
7460 to adjust true dependency costs. Update various comments.
7461 (7100lc, 7200, 7300 scheduling): Simplify by combining the
7462 FP ALU & MPY units into a single unit.
7463
a17a104c
CM
74642002-05-06 Catherine Moore <clm@redhat.com>
7465
7466 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 7467 to count all of the registers that will be saved.
a17a104c 7468
7799175f
JH
7469Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7470
7471 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
7472
0ac941a0
DM
74732002-05-06 David S. Miller <davem@redhat.com>
7474
7475 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
7476 allow result to overlap input operands in memory.
7477
95ff5d3f
NB
74782002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
7479
7480doc:
7481 * cpp.texi: Update multichar charconst docs.
7482
639e8b0c
NB
74832002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
7484
7485 * cpplex.c (cpp_interpret_charconst): Sign-extend each
7486 character. Don't ignore excess characters. Treat
7487 multicharacter character constants as signed.
7488 (cpp_parse_escape): Clarify diagnostic.
7489
84ea5bc1
JJ
74902002-05-05 Jakub Jelinek <jakub@redhat.com>
7491
7492 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
7493 use add instead of shift.
7494 (ashldi3_sp64): Likewise.
7495 (ashlsi3_const1, ashldi3_const1): Remove.
7496 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
7497 * config/sparc/sparc.c (const1_operand): New.
7498
40cd22f2
JT
74992002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
7502
cac01076
JJ
75032002-05-05 Jakub Jelinek <jakub@redhat.com>
7504
7505 PR target/6561
7506 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
7507
98791e3a
RH
75082002-05-05 Richard Henderson <rth@redhat.com>
7509
7510 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
7511 memory latency adjustments.
7512 (alpha_variable_issue): Remove.
7513 (alpha_use_dfa_pipeline_interface): New.
7514 (alpha_multipass_dfa_lookahead): New.
7515 * config/alpha/alpha.md: Remove define_function_unit scheduling;
7516 include new dfa scheduling.
7517 (attr type): Add none.
7518 (blockage): Use it.
7519 * config/alpha/ev4.md: New.
7520 * config/alpha/ev5.md: New.
7521 * config/alpha/ev6.md: New.
7522
309527ce
DM
75232002-05-05 David S. Miller <davem@redhat.com>
7524
7525 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
7526
68252e27
KH
75272002-05-05 Kazu Hirata <kazu@cs.umass.edu>
7528
7529 * cse.c: Fix formatting.
7530 * emit-rtl.c: Likewise.
7531
30cc9d00
VM
75322002-05-05 Vladimir Makarov <vmakarov@redhat.com>
7533
7534 * genautomata.c (initiate_states): Add additional guard to
7535 initialize `units_array'.
7536
deb09eff
VM
75372002-05-05 Vladimir Makarov <vmakarov@redhat.com>
7538
7539 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
7540 process_unit_to_form_the_same_automaton_unit_lists,
7541 form_the_same_automaton_unit_lists
7542 check_unit_distributions_to_automata): New prototypes and
7543 functions.
7544 (check_automata): Rename it into `check_automata_insn_issues'.
7545 (unit_decl): New fields `the_same_automaton_unit' and
7546 `the_same_automaton_message_reported_p'.
7547 (unit_decl_t): New typedef.
7548 (the_same_automaton_lists): New gloval variable.
7549 (unit_regexp, unit_set_el, units_array, units_cmp,
7550 output_get_cpu_unit_code_func): Use the typedef.
7551 (evaluate_max_reserv_cycles): Increment
7552 `description->max_insn_reserv_cycles'.
7553 (initiate_states): Don't increment `max_cycles_num'.
7554 (transform_insn_regexps): Move code around transformation of
7555 regexps from `generate'.
7556 (generate): Remove call of `transform_insn_regexps'.
7557 (expand_automata): Call `transform_insn_regexps' and
7558 `check_unit_distributions_to_automata'. Check errors before
7559 `generate'.
7560
7561 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
7562 automaton `ultrasparc3_1'.
e2ff6cee 7563
2443d4e1
NB
75642002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
7565
7566 * c-common.c (c_common_init): Set up CPP arithmetic.
7567 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
7568 something reasonable for the host.
7569 (sanity_checks): Add checks.
7570 (cpp_read_main_file): Call sanity_checks() from here...
7571 (cpp_post_options): ... not here.
7572 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
7573 * cpplib.h (struct cpp_options): New member int_precision.
7574
791a949f
FS
75752002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7576
7577 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
7578
091fb516
DM
75792002-05-04 David S. Miller <davem@redhat.com>
7580
f60ebeb7
DM
7581 * config/sparc/linux.h, config/sparc/linux64.h
7582 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
7583
214c6394
DM
7584 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
7585 more RTX codes.
7586 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
7587
091fb516
DM
7588 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
7589 of SETs.
7590
f2fdc802
TJ
75912002-05-05 Tim Josling <tej@melbpc.org.au>
7592
e2ff6cee 7593 * treelang; New directory for new sample language treelang.
f2fdc802 7594
3d90d290
NB
75952002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7596
7597 * Makefile.in (c-lex.o): Update.
7598 * c-lex.c: Include target.h.
7599 (cb_register_builtins): New.
7600 (init_c_lex): Set builtins callback.
7601 * c-lex.h (cpp_define, cpp_assert): New prototypes.
7602 * cppinit.c (init_builtins): Use callback, including for
7603 GXX_WEAK.
7604 * cpplib.h (struct cpp_callbacks): New member.
7605 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
7606 (TARGET_INITIALIZER): Update.
7607 * target.h (struct gcc_target): New hook.
7608 * tree.c (default_register_cpp_builtins): New.
7609 * tree.h (default_register_cpp_builtins): New.
7610doc:
7611 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
7612
625458d0
NB
76132002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7614
7615 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
7616 (cpp_post_options): Move sanity checks to...
7617 (sanity_checks): New.
7618 * cpplex.c (maybe_read_ucs): Fix prototype.
7619 (parse_string, cpp_parse_escape): Cast for %c format specifier.
7620 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
7621 if necessary.
7622
916b60b7
BS
76232002-05-04 Bernd Schmidt <bernds@redhat.com>
7624
7625 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
7626 builtins. Use V2DI patterns instead of TI for logical operations.
7627 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
7628 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
7629 (ix86_expand_builtins): Change the pattern used for movntdq.
7630 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
7631 sse2_nandv2di3): New patterns.
7632 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
7633 on operands.
7634 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
7635 (cvtdq2pd): Correct mode on operand 1.
7636 (sse2_umulsidi3): Describe without unspec.
7637 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
7638 machine modes.
7639 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
7640 (ashlv2di3): Likewise, from sse2_ashlv2di3.
7641 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
7642 ashlv4si3, ashlv2di3): Use SImode for shift count.
7643 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
7644 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
7645 New patterns.
7646 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
7647 New typedefs.
7648 (__m128i, __m128d): New macros.
7649 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
7650 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
7651 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
7652 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
7653 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 7654 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
7655 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
7656 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 7657 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
7658 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
7659 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
7660 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
7661 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
7662 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
7663 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
7664 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
7665 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
7666 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
7667 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
7668 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
7669 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
7670 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7671 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
7672 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7673 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
7674 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
7675 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
7676 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
7677 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
7678 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
7679 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
7680 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7681 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
7682 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
7683 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
7684 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
7685 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
7686 functions.
e2ff6cee 7687 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
7688 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
7689
c26fbbca
KH
76902002-05-04 Kazu Hirata <kazu@cs.umass.edu>
7691
7692 * dwarf2out.c: Fix formatting.
7693 * varasm.c: Likewise.
7694
0387639b
DE
76952002-05-04 David Edelsohn <edelsohn@gnu.org>
7696
7697 PR c/6543
7698 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
7699 clobber and use result as temporary value.
7700
8a28dbcc
JH
7701Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7702
7703 * expr.c (force_operand): Use expand_simple_* to handle more
7704 cases.
7705
4268e8bb
NB
77062002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7707
7708 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
7709 and sign-extension.
7710 (lex_charconst): Update for change in prototype of
7711 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
7712 appropriately.
7713 * cpphash.h (BITS_PER_CPPCHAR_T): New.
7714 * cppinit.c (cpp_create_reader): Initialize them for no
7715 change in semantics.
7716 (cpp_post_options): Add sanity checks.
7717 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
7718 and truncation issues. Calculate in type cppchar_t.
7719 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
7720 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
7721 run-time dependent precision correctly. Return whether the
7722 result is signed or not.
7723 * cpplib.c (dequote_string): Use cppchar_t; update.
7724 * cpplib.h (cppchar_signed_t): New.
7725 struct cpp_options): New precision members.
7726 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 7727 * cppexp.c (eval_token): Update.
4268e8bb 7728
af54350e
DM
77292002-05-03 David S. Miller <davem@redhat.com>
7730
2ce04b6b
DM
7731 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
7732 * config/sparc/sparc.c (sparc_rtx_costs): New function
7733 implementing RTX_COSTS and CONST_COSTS.
7734 * config/sparc/sparc.h (CONST_COSTS): Delete.
7735 (RTX_COSTS_CASES): Define.
7736 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
7737 the work.
7738
a1d9bd0c
DM
7739 * config/sparc/sparc.md (DFA schedulers): Split out...
7740 * config/sparc/cypress.md, config/sparc/hypersparc.md,
7741 config/sparc/sparclet.md, config/sparc/supersparc.md,
7742 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
7743
e87bb82e
DM
7744 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
7745 checks on it, always defined for Sparc.
7746
af54350e
DM
7747 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
7748 Tweak, and add more detailed comments.
7749
935bfb44
ZW
77502002-05-03 Zack Weinberg <zack@codesourcery.com>
7751
7752 * Re-apply patch accidentally reverted with
7753 DFA scheduler merge: remove all rules and variables to slurp
7754 source files out of libiberty and rebuild them with HOST_CC.
7755 ($(HOST_PREFIX_1)varray.o): New rule.
7756 (genattrtab rule): Word wrap.
7757
fa7a0712
JT
77582002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7759
7760 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
7761 (CPP_SUBTARGET_SPEC): Define.
7762 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
7763 cpp_subtarget specs.
7764 (CPP_SPEC): Redefine to include %(cpp_subtarget).
7765
14c93978
DM
77662002-05-03 David S. Miller <davem@redhat.com>
7767
7768 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
7769 * target.h (struct gcc_target): Delete cycle_display member.
7770
14d118d6
DM
7771 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
7772 (rtx_needs_barrier): Delete reference to cycle_display unspec.
7773 (ia64_sched_reorder2): Mention need for cycle display handling
7774 once such notes exist.
935bfb44 7775
b3ae1ccd
RH
77762002-05-03 Richard Henderson <rth@redhat.com>
7777
7778 * real.c (etoasc): Strip most trailing zeros for clarity.
7779 * sched-vis.c: Include real.h.
7780 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
7781 * Makefile.in (sched-vis.o): Add real.h.
7782
8f39865a
DM
77832002-05-03 David S. Miller <davem@redhat.com>
7784
7785 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
7786 no longer needed.
7787
b44140e7
AH
77882002-05-03 Aldy Hernandez <aldyh@redhat.com>
7789
935bfb44
ZW
7790 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
7791 when we get an out of range literal.
7792 (altivec_expand_ternop_builtin): Same.
7793 (altivec_expand_unop_builtin): Same.
7794 (altivec_expand_builtin): Same, for dss.
7795 (altivec_expand_builtin): Use trees instead of rtl when
7796 determining literal argument validity.
b44140e7 7797
aaaed752
DM
77982002-05-03 David S. Miller <davem@redhat.com>
7799
7800 Delete cycle display scheduling hook.
7801 * config/ia64/ia64.c (ia64_cycle_display,
7802 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
7803 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
7804 and use emit_insn_before instead of ia64_emit_insn_before.
7805 * config/ia64/ia64.md (unspec usage): Delete cycle display.
7806 (cycle_display): Delete insn pattern.
7807 * config/sparc/sparc.md (unspec usage): Delete cycle display.
7808 (cycle_display): Delete insn pattern.
7809 * config/sparc/sparc.c (sparc_cycle_display,
7810 TARGET_SCHED_CYCLE_DISPLAY): Delete.
7811 * doc/md.texi (cycle_display): Don't mention.
7812 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 7813
b37c2614
RH
78142002-05-03 Richard Henderson <rth@redhat.com>
7815
7816 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
7817 * recog.h: Declare them.
7818
7819 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
7820 * config/sparc/sparc.md: Use store_data_bypass_p instead.
7821 * config/sparc/sparc-protos.h: Update.
935bfb44 7822
e1c1132e
JT
78232002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7824
7825 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
7826 -D__arch64__. Add -D_LP64.
7827 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
7828 from sparc.h.
7829 (CPP_ARCH64_SPEC): Likewise.
7830 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
7831 (NO_BUILTIN_SIZE_TYPE): Undef.
7832
0b2fb0d7
VM
78332002-05-03 Vladimir Makarov <vmakarov@redhat.com>
7834
7835 * genautomata.c (min_issue_delay_pass_states): Change return type
7836 in the prototype.
7837 (min_issue_delay_pass_states): Change the algorithm.
7838 (min_issue_delay): Set up min_insn_issue_delay for the state.
7839 (output_min_issue_delay_table): Interchange the nested loops and
7840 and initiate min_insn_issue_delay for states.
935bfb44 7841
3d4ce12a
JH
7842Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
7843
7844 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
7845 jump is simplejump.
7846
7847Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
7848
7849 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
7850 sequence.
7851
b5482208
RH
78522002-05-03 Richard Henderson <rth@redhat.com>
7853
7854 PR opt/6534
7855 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7856 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7857 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
7858 code before JUMP, not EARLIEST.
7859
5a3085c5
JM
78602002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
7861
7862 * c-format.c (check_format_info_main): Don't check for presence of
7863 parameter for * width until after operand number has been read,
7864 and only check for it if format parameters are available.
7865 Fixes PR c/6547.
7866
40039424
JT
78672002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7868
7869 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
7870 (LINK_SPEC): Undef before defining.
7871
8157303b
JJ
78722002-05-03 Jakub Jelinek <jakub@redhat.com>
7873
7874 PR preprocessor/6489
7875 * tradcpp.c (fixup_newlines): New.
7876 (main, finclude): Use it.
7877
66319f5c
RS
78782002-05-03 Richard Sandiford <rsandifo@redhat.com>
7879
7880 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
7881 * config/mips/mips.c (mips_unique_section): Strip encoding from
7882 decl name.
7883
ce8076ad
JJ
78842002-05-03 Jakub Jelinek <jakub@redhat.com>
7885
7886 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
7887 mode.
7888
975c6e4e
RO
78892002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7890
7891 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
7892 (Specific): Removed buildstats references.
7893 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
7894 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
7895 Accomodate Solaris versions beyond 8.
7896 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
7897 (Specific, *-*-solaris2.8): Removed, obsolete.
7898
d70e94ec
JJ
78992002-05-03 Jakub Jelinek <jakub@redhat.com>
7900
7901 PR target/6542
7902 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
7903 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
7904 fill leaf_reg_remap with identity.
7905 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
7906
6b148bd9
KH
79072002-05-03 Kazu Hirata <kazu@cs.umass.edu>
7908
7909 * config/h8300/crti.asm: Remove trailing spaces.
7910 * config/h8300/h8300.c: Likewise.
7911 * config/h8300/lib1funcs.asm: Likewise.
7912
609688f3
JM
79132002-05-02 Jason Merrill <jason@redhat.com>
7914
7915 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
7916 * c-decl.c (c_init_decl_processing): Use it.
7917 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
7918 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
7919 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
7920
3b03c671
KH
79212002-05-03 Kazu Hirata <kazu@cs.umass.edu>
7922
7923 * regrename.c: Fix formatting.
7924 * tree.c: Likewise.
7925
3b4961bd
JH
7926Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
7927
7928 * i386.md (attribute memory): Handle compares properly.
7929
19cba4a0
JH
7930Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
7931
3b4961bd 7932 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
7933 to none.
7934
797a6ac1
KH
79352002-05-02 Kazu Hirata <kazu@cs.umass.edu>
7936
7937 * function.c: Fix formatting.
7938
6d0de005
JH
79392002-05-02 Jan Hubicka <jh@suse.cz>
7940
7941 * haifa-sched.c (schedule_insn): Print table of instructions and
7942 reservations.
7943 (sched_block): Do not print ready list at verbosity level 1.
7944 * sched-vis.c (print_insn): Make global.
7945 * sched-ebb.c (ebb_print_insn): Rename from...
7946 (print_insn): ... this one.
7947 * sched-int.h (print_insn): Declare
7948
0bfb9a69
RH
79492002-05-02 Richard Henderson <rth@redhat.com>
7950
7951 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
7952 emitted by cycle_display.
7953
6b976d99
LR
79542002-05-02 Loren J. Rittle <ljrittle@acm.org>
7955
7956 * doc/install.texi (*-*-freebsd*): Update to latest status.
7957
0a295052
JJ
79582002-05-02 Jakub Jelinek <jakub@redhat.com>
7959
7960 PR target/6540
7961 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
7962 * config/float-sparc.h: Assume 128-bit long double if
7963 __LONG_DOUBLE_128__ is defined.
7964
842d5d6c
VM
79652002-05-02 Vladimir Makarov <vmakarov@redhat.com>
7966
7967 * genattrtab.c (write_function_unit_info): Add a dummy element
7968 when num_units == 0.
7969
3d7a6309
HB
79702002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7971
7972 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
7973 TYPE_MODE (double_type_node) instead of DFmode.
7974
1b6763cf
JH
7975Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
7976
7977 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
7978 jumps post reload.
7979 * toplev.c (rest_of_compilation): Revert Richard's patch.
7980
b303008e
JDA
79812001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7982
7983 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
7984
6ed7412a
CM
79852002-05-02 Catherine Moore <clm@redhat.com>
7986
7987 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
7988
e0a2f705
KH
79892002-05-02 Kazu Hirata <kazu@hxi.com>
7990
b32d6163 7991 * combine.c: Fix comment typos.
e0a2f705
KH
7992 * expr.c: Likewise.
7993 * genautomata.c: Likewise.
7994 * stmt.c: Likewise.
7995 * tree.h: Likewise.
7996
38e23049
JM
79972002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
7998
7999 * doc/install.texi: State GNAT version requirements.
8000
40f4a97d
NC
80012002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
8002
8003 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
8004 of the frame pointer or arg pointer register which strict register
8005 checking is not enabled.
8006
0d6d6892
AH
80072002-05-02 Aldy Hernandez <aldyh@redhat.com>
8008
b5482208 8009 * gcc.dg/altivec-8.c: New.
0d6d6892 8010
b5482208
RH
8011 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
8012 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 8013
abaa8559
BK
80142002-05-01 Bruce Korb <bkorb@gnu.org>
8015
8016 * fixinc/check.tpl(set-writable): make sure the function exists first
8017 * fixinc/inclhack.def(alpha_assert): fix test_text
8018 * fixinc/tests/base/assert.h: add in missing result
8019
ecab2143
JL
80202002-05-01 Jeff Law <law@redhat.com>
8021
8022 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
8023 'T' constraint.
8024
ea619b46
JB
80252002-05-01 Joel Brobecker <brobecker@gnat.com>
8026
8027 * dbxout.c (dbxout_type): Emit size information for range types,
8028 as well, but only when using GDB extensions.
8029
c72931a6
RH
80302002-05-01 Richard Henderson <rth@redhat.com>
8031
8032 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
8033 target-independent gnu binutils date test.
8034
2150ad33
RH
80352002-05-01 Richard Henderson <rth@redhat.com>
8036
8037 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
8038 info before expunging the block.
8039
1651cc96
JJ
80402002-05-01 Jakub Jelinek <jakub@redhat.com>
8041
8042 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
8043 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
8044 -M -or -MM is in effect.
8045
8998d5bf
ZW
80462002-05-01 Zack Weinberg <zack@codesourcery.com>
8047
8048 * config.gcc: Correct test of --enable-obsolete. Obsolete all
8049 A29k configurations.
8050 * doc/install.texi: Update to match.
8051
a81eed10
FS
80522002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8053
8054 PR bootstrap/6514
8055 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
8056 for duplicates. Always loop over whole list.
8057
8d53318f
RK
8058Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8059
8060 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
8061
4109b118
JS
80622002-05-01 Joel Sherrill <joel@OARcorp.com>
8063
8064 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
8065 support routines.
8066
c4a9c570
JS
80672002-05-01 Joel Sherrill <joel@OARcorp.com>
8068
8069 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
8070
ea112fc4
DE
80712002-05-01 David Edelsohn <edelsohn@gnu.org>
8072
8073 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
8074 (nabs_nopower): Same.
8075 (floatdisf2): New pattern.
8076 (absdi2): Convert to define_insn_and_split.
8077 (nabsdi2): Same.
8078 (trunctfsf2): Same.
8079 (floatditf2): Same.
8080 (floatsitf2): Same.
8081 (fix_trunctfdi2): Same.
8082 (fix_trunctfsi2): Same.
8083
dda78254
JM
80842002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
8085
8086 * doc/install.texi: Update Texinfo version requirement
8087 documentation.
8088
26aeede4
JJ
80892002-05-01 Jakub Jelinek <jakub@redhat.com>
8090
8091 PR target/6512, PR target/5628
8092 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
8093 when memory is not aligned.
8094 (movdf_insn_v9only_vis): Likewise.
8095 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
8096 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
8097 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
8098
9b7bc465
AH
80992002-05-01 Aldy Hernandez <aldyh@redhat.com>
8100
8998d5bf 8101 * gcc.dg/altivec-7.c: New.
9b7bc465 8102
8998d5bf 8103 * config/rs6000/altivec.h: Cleanup.
9b7bc465 8104
08b57fb3
AH
81052002-04-30 Aldy Hernandez <aldyh@redhat.com>
8106
8998d5bf
ZW
8107 * doc/invoke.texi (Option Summary): Add -mvrsave=.
8108 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 8109
8998d5bf
ZW
8110 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
8111 (rs6000_altivec_vrsave_string): Same.
8112 (rs6000_override_options): Call rs6000_parse_vrsave_option.
8113 (rs6000_parse_vrsave_option): New.
8114 (rs6000_stack_info): Only generate vrsave instructions when
8115 TARGET_ALTIVEC_VRSAVE.
08b57fb3 8116
8998d5bf
ZW
8117 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
8118 (rs6000_altivec_vrsave_string): Define extern.
8119 (rs6000_altivec_vrsave): Same.
8120 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 8121
8e8c38cd
RH
81222002-04-30 Richard Henderson <rth@redhat.com>
8123
8124 PR opt/6516
8125 * toplev.c (rest_of_compilation): Don't run cross-jump before
8126 bb-reorder.
8127
4be9e9cb
TR
81282002-04-30 Tom Rix <trix@redhat.com>
8129
8998d5bf 8130 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
8131 check which_alternative.
8132
1eeeb6a4
KH
81332002-04-30 Kazu Hirata <kazu@hxi.com>
8134
8135 * cpplex.c: Fix comment formatting.
8136 * function.c: Likewise.
8137 * integrate.c: Likewise.
8138 * regrename.c: Likewise.
8139 * sibcall.c: Likewise.
8140 * simplify-rtx.c: Likewise.
8141 * tree-inline.c: Likewise.
8142
ed9d6ff9
JDA
81432002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
8144
8145 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
8146 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
8147 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
8148 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
8149 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
8150 * pa/x-ada: New file. Define ADA_CFLAGS.
8151
1f2641b6
HPN
81522002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
8153
8154 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
8155 from MMIX_LAST_REGISTER_FILE_REGNUM.
8156 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
8157 (struct machine_function): New member highest_saved_stack_register
8158 previously static variable in mmix.c.
8159 (MACHINE_DEPENDENT_REORG): Define.
8160 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
8161 (MMIX_OUTPUT_REGNO): New.
8162 (mmix_target_asm_function_prologue): Move calculation of last used
8163 saved-stack-register into...
8164 (mmix_machine_dependent_reorg): New function. Update to also handle
8165 !TARGET_ABI_GNU.
8166 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
8167 register names, simplify somewhat by new variable regno.
8168 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
8169 register.
8170 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
8171 emitting register names.
8172 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
8173 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
8174 Remove fixed FIXME.
8175 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
8176 Declare.
8177
8178 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
8179
73985940
RH
81802002-04-30 Richard Henderson <rth@redhat.com>
8181
8182 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8183 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
8184 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
8185 emit_tfmode_cvt): New.
8186 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
8187 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
8188 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
8189 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
8190 * config/sparc/sparc-protos.h: Update.
8191
2b46bc67
JJ
81922002-04-30 Janis Johnson <janis187@us.ibm.com>
8193
8194 * install.texi (Final install): Add to the list of info to include
8195 in a report of a successful bootstrap, and add link to 3.1 list.
8196
3d34cd91
JH
8197Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
8198
8199 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
8200 (mode): Add vector modes
8201 (i387): Kill attribute.
8202 (unit): New attribute.
8203 (length_immediate): Grok new types.
8204 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
8205 (modrm): Use "unit".
8206 (memory): Handle MMX/SSE properly.
8207 (scheduling descriptions): Kill uses of fop1.
8208 (sse, mmx, fp patterns): Set type and mode properly.
8209
243e5500 8210Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
3193c415 8211
30482eb0
JL
8212 * pa.c (override_options): Default to PA8000 scheduling.
8213 * doc/invoke.texi (HP-PA options): Mention newly added 7300
8214 scheduling parameter.
8215
3193c415
JL
8216 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
8217 handling of double precision multiplies.
8218
8219 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
8220 fpdiv and fpsqrt instructions.
8221 (7200 & 7300 scheduling): Fix typo in handling of
8222 store-load and store-store penalties.
8223
c0a34cb7
GP
82242002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8225
8226 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
8227 mips. Add two missing commas.
8228
8bce0628
PC
82292002-04-30 Paolo Carlini <pcarlini@unitus.it>
8230
8231 * doc/contrib.texi (Contributors): Update Paolo Carlini's
8232 and Benjamin Kosnik's entries.
8233
84643cbf
DM
82342002-04-29 David S. Miller <davem@redhat.com>
8235
8236 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
8237 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
8238 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
8239 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8240
da6886f6
FS
82412002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8242
8243 * combine.c (find_split_point): Use gen_int_mode.
8244
fae15c93
VM
82452002-04-29 Vladimir Makarov <vmakarov@redhat.com>
8246
8247 Merging code from dfa-branch:
8998d5bf 8248
fae15c93
VM
8249 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
8250
8251 * genautomata.c (output_reserv_sets): Fix typo.
8252
8253 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
8254
8255 * genautomata.c (output_reserv_sets): Remove
8256 next_cycle_output_flag.
8257
8258 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
8259
8998d5bf
ZW
8260 * sched-rgn.c (init_ready_list): Make the DFA code handle
8261 USE/CLOBBER insns in the same way as the traditional
8262 scheduler.
8263 (new_ready): Similarly..
fae15c93
VM
8264
8265 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
8266
8267 * haifa-sched.c (schedule_block): Change the DFA state only after
8268 issuing insn.
8269
8270 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
8271
8272 * pa.c (hppa_use_dfa_pipeline_interface): New function.
8273 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
8274 (override_options): Add PA7300 scheduling support.
8275 (pa_adjust_cost): Update various comments. Properly
8276 handle anti and output dependencies when using the
8277 DFA scheduler.
8278 (pa_issue_rate): Add PA7300 scheduling support.
8279 (pa_can_combine_p): Call extract_insn before calling
8280 constrain_operands (taken from mainline tree).
8281 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
8282 * pa.md (cpu attr): Add 7300. Rewrite pipeline
8283 descriptions using DFA descriptions. Add PA7300
8284 scheduling support.
8285
8286 2002-03-30 David S. Miller <davem@redhat.com>
8287
8288 Add UltraSPARC-III DFA scheduling support.
8289 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
8290 Update FP conditional move on register insn patterns to use it, as
8291 appropriate.
8292 (define_attr cpu): Add ultrasparc3.
8293 (define_attr us3load_type): New, update integer load patterns to
8294 set it, as appropriate.
8295 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
8296 (rest): Add UltraSPARC3 scheduling description.
8297 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
8298 (PROCESSOR_ULTRASPARC3): New.
8299 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
8300 ({ASM,CPP}_CPU_SPEC): Likewise.
8301 (REGISTER_MOVE_COST): Likewise.
8302 (RTX_COSTS): Likewise.
8303 * config/sparc/sparc.c (sparc_override_options,
8304 sparc_initialize_trampoline, sparc64_initialize_trampoline,
8305 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8306 sparc_issue_rate): Likewise.
8307 * config/sparc/sol2.h: Likewise.
8308 * config/sparc/sol2-sld-64.h: Likewise.
8309 * config/sparc/linux64.h: Likewise.
8998d5bf 8310
fae15c93
VM
8311 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
8312
8313 * doc/md.texi: Add comments about usage the latency time for the
8314 different dependencies and about case when two or more conditions
8315 in different define_insn_reservations returns TRUE for an insn.
8316
8317 * doc/md.texi: Add reference for automaton based pipeline
8318 description.
8998d5bf 8319
fae15c93
VM
8320 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
8321
8322 * doc/passes.texi: Add missed information about genattrtab.
8323
8324 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
8325
8326 * genautomata.c (output_automata_list_transition_code): Check
8327 automata_list on NULL.
8328
8329 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
8330
8331 * genautomata.c (output_insn_code_cases,
8332 output_automata_list_min_issue_delay_code,
8333 output_automata_list_transition_code,
8334 output_automata_list_state_alts_code): Comment the functions.
8335
8336 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
8337
8338 * genautomata.c (automata_list_el_t): New typedef.
8339 (get_free_automata_list_el,free_automata_list_el,
8340 free_automata_list, automata_list_hash, automata_list_eq_p,
8341 initiate_automata_lists, automata_list_start, automata_list_add,
8342 automata_list_finish, finish_automata_lists,
8343 output_insn_code_cases, output_automata_list_min_issue_delay_code,
8344 output_automata_list_transition_code,
8345 output_automata_list_state_alts_code, add_automaton_state,
8346 form_important_insn_automata_lists): New functions and prototypes.
8347 (insn_reserv_decl): Add members important_automata_list and
8348 processed_p.
8349 (ainsn): Add members important_p.
8350 (automata_list_el): New structure.
8351 (first_free_automata_list_el, current_automata_list,
8352 automata_list_table): New global variables.
8353 (create_ainsns): Initiate member important_p.
8354 (output_internal_min_issue_delay_func): Generate the switch and
8355 call output_insn_code_cases.
8356 (output_internal_trans_func, output_internal_state_alts_func):
8357 Ditto.
8358 (generate): Call initiate_automata_lists.
8359 (automaton_states): New global variable.
8360 (expand_automata): Call form_important_insn_automata_lists.
8361 (write_automata): Call finish_automata_lists.
8998d5bf 8362
fae15c93
VM
8363 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
8364
8365 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 8366 cpu units in the sets belong the same automaton.
fae15c93
VM
8367
8368 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
8369 about that cpu units in the sets belong the same automaton.
8370
8371 * doc/md.texi: Ditto.
8998d5bf 8372
2799d721
VM
8373 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
8374 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 8375
fae15c93
VM
8376 * config/sh/sh.c (sh_use_dfa_interface): New function.
8377
8378 (sh_issue_rate): New Function.
8379 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
8380 TARGET_SCHED_ISSUE_RATE: define.
8381
8382 * config/sh/sh.md: Add DFA based pipeline description for SH4.
8383
8998d5bf
ZW
8384 (define_attr insn_class): New attribute used for DFA
8385 scheduling.
fae15c93
VM
8386 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
8387 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
8388 cmpeqdi_t): Likewise.
8389
8390 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 8391 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
8392 ex_group.
8393 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 8394
fae15c93
VM
8395 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8396
8397 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
8398 break.
8399
8400 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8401
8402 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
8403 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
8404 necessary.
8405 (output_dfa_start_func): Initiate new variable insn_codes_length,
8406 (write_automata): Output definition of the new variable.
8998d5bf 8407
fae15c93
VM
8408 2001-10-02 David S. Miller <davem@redhat.com>
8409
8410 * haifa-sched.c (advance_one_cycle): New function.
8411 (schedule_block): Use it.
8412 (queue_to_ready): Use it, and also make sure to advance the DFA
8413 state on all stall cycles, not just those where insn_queue links
8414 are found.
8415
8416 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
8417
8418 * haifa-sched.c (max_issue): Remove last_p argument. Only return
8419 non-zero if the highest-priority instruction could be scheduled.
8420 (choose_ready): Remove last argument from max_issue call.
8421
8422 2001-09-28 David S. Miller <davem@redhat.com>
8423
8424 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
8425 ultrasparc and 3 for other multi-issue sparcs.
8426
8427 2001-09-27 David S. Miller <davem@redhat.com>
8428
8429 * config/sparc/sparc.md (cycle_display): New pattern.
8430 * config/sparc/sparc.c (sparc_cycle_display): New.
8431 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
8432
8433 2001-09-25 David S. Miller <davem@redhat.com>
8434
8435 Convert all of Sparc scheduling to DFA
8436 * config/sparc/sparc.md: Kill all define_function_unit
8437 directives and replace with DFA equivalent.
8438 * config/sparc/sparc.c (ultrasparc_adjust_cost,
8439 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
8440 ultra_fpmode_conflict_exists, ultra_find_type,
8441 ultra_build_types_avail, ultra_flush_pipeline,
8442 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
8443 ultrasparc_variable_issue, ultrasparc_sched_init,
8444 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
8445 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
8446 ultra_cur_hist, ultra_cycles_elapsed): Kill.
8447 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8448 ultrasparc_store_bypass_p): New.
8449 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
8450 Declare.
8451
8452 2001-09-24 David S. Miller <davem@redhat.com>
8453
8454 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
8455 ready->vec[foo] not ready[foo].
8456
8457 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
8458
8459 * doc/md.texi: Correct examples for define_insn_reservations
8460 `mult' and `div'.
8461
8462 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
8463
8464 * genautomata.c (create_automata): Print message about creation of
8465 each automaton.
8466 (generate): Remove printing meease about creation of
8467 automata.
8468
8469 2001-09-05 David S. Miller <davem@redhat.com>
8470
8471 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8472 * config/sparc/linux64.h: Likewise.
8473
8474 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
8475
8476 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
8477 schedule_block, sched_init, sched_finish): Add missed calls of
8478 use_dfa_pipeline_interface.
8479
8480 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
8481 Ditto.
8482
8483 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 8484
fae15c93
VM
8485 2001-08-27 Richard Henderson <rth@redhat.com>
8486
8487 * genattr.c (main): Emit state_t even when not doing scheduling.
8488
8489 2001-08-27 Richard Henderson <rth@redhat.com>
8490
8491 * genautomata.c (expand_automata): Always create a description.
8492
8493 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
8494
8998d5bf 8495 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
8496 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8497 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8498 RTL constructions.
8499
8500 * genattr.c (main): New variable num_insn_reservations. Increase
8501 it if there is DEFINE_INSN_RESERVATION. Output automaton based
8502 pipeline hazard recognizer interface.
8503
8504 * genattrtab.h: New file.
8505
8506 * genattrtab.c: Include genattrtab.h.
8507 (attr_printf, check_attr_test, make_internal_attr,
8508 make_numeric_value): Move protypes into genattrtab.h. Define them
8509 as external.
8510 (num_dfa_decls): New global variable.
8511 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8512 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8513 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8514 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
8515
8516 * genautomata.c: New file.
8517
8518 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8519
8998d5bf 8520 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
8521 automaton pipeline interface.
8522 (haifa_insn_data): Add comments for members blockage and units.
8523
8524 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8525 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8526 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8527 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8528 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8529 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8530 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8531 macros.
8532 (TARGET_SCHED): Use the new macros.
8533
8534 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8535 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8536 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8537 dfa_bubble): New members in gcc_target.sched.
8538
8998d5bf 8539 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
8540 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8541 (insn_queue): Redefine it as pointer to array.
8542 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8543 INSN_QUEUE_SIZE.
8544 (max_insn_queue_index_macro_value): New variable.
8545 (curr_state, dfa_state_size, ready_try): New varaibles for
8546 automaton interface.
8547 (ready_element, ready_remove, max_issue): New function prototypes
8548 for automaton interface.
8549 (choose_ready): New function prototype.
8550 (insn_unit, blockage_range): Add comments.
8551 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8552 FUNCTION_UNITS_SIZE == 0.
8553 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8554 actual_hazard, potential_hazard): Add comments.
8555 (insn_cost): Use cost -1 as undefined value. Remove
8556 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
8557 pipeline interface.
8558 (ready_element, ready_remove): New functions for automaton
8559 interface.
8560 (schedule_insn): Add new code for automaton pipeline interface.
8561 (queue_to_ready): Add new code for automaton pipeline interface.
8562 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8563 (debug_ready_list): Print newline when the queue is empty.
8564 (max_issue): New function for automaton pipeline interface.
8565 (choose_ready): New function.
8566 (schedule_block): Add new code for automaton pipeline interface.
8567 Print ready list before scheduling each insn.
8568 (sched_init): Add new code for automaton pipeline interface.
8569 Initiate insn cost by -1.
8570 (sched_finish): Free the current automaton state and finalize
8571 automaton pipeline interface.
8572
8573 * sched-rgn.c: Include target.h.
8574 (init_ready_list, new_ready, debug_dependencies): Add new code for
8575 automaton pipeline interface.
8576
8577 * sched-vis.c: Include target.h.
8578 (get_visual_tbl_length): Add code for automaton interface.
8579 (target_units, print_block_visualization): Add comments.
8580
8998d5bf 8581 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
8582 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8583 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8584 (getruntime.o, genautomata.o): New entries.
8585 (genattrtab.o): Add new dependency file genattrtab.h.
8586 (genattrtab): Add new dependencies. Link it with `libm.a'.
8587 (getruntime.o, hashtab.o): New entries for canadian cross.
8588
8589 * doc/md.texi: Description of automaton based model.
8590
8591 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8592 Add comments.
8593 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8594 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8595 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8596 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8597 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8598 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8599 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8600 hook descriptions.
8601 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8602 MAX_DFA_ISSUE_RATE): New macro descriptions.
8603
8604 * doc/contrib.texi: Add dfa based scheduler contribution.
8605
8606 * doc/gcc.texi: Add more information about genattrtab.
8607
a2ff290c
RK
8608Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8609
8610 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
8611 adjust_address_nv call.
8612
f97903cc
JJ
86132002-04-29 Janis Johnson <janis187@us.ibm.com>
8614
8615 * doc/install.texi (Testing): Provide additional information, and
8616 a stronger encouragement, for running the testsuites.
8617
f41a6bf1
DD
86182002-04-29 DJ Delorie <dj@redhat.com>
8619
8620 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
8621 given in upper case.
8622
d8af0868
RO
86232002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8624
8625 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
8626 Solaris 2 <widec.h> if missing.
8627 * fixinc/fixincl.x: Regenerate.
8628 * fixinc/tests/base/widec.h: New file.
8629
1034407f
NC
86302002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
8631
8632 * toplev.c (f_options): Add "profile" switch so that
8633 -fno-profile can be used to disable -p.
8634
fbe5eb6d
BS
86352002-04-29 Bernd Schmidt <bernds@redhat.com>
8636
8637 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
8638 UV2DImode.
8639 * tree.c (build_common_tree_nodes_2): Likewise.
8640 * tree.h (enum tree_index): Likewise.
8641 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
8642
8643 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
8644 entries.
8645 (init_mmx_sse_builtins): Initialize SSE2 builtins.
8646 (ix86_expand_builtin): Add support for SSE2 builtins.
8647 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
8648 (VALID_SSE_REG_MODE): Use it.
8649 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
8650 (enum ix86_builtins): Add SSE2 builtins.
8651 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
8652 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
8653 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
8654 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
8655 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
8656 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
8657 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
8658 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
8659 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
8660 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
8661 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
8662 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
8663 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
8664 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
8665 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
8666 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
8667 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
8668 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
8669 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
8670 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
8671 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
8672 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
8673 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
8674 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
8675 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
8676 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
8677 lfence_insn): New patterns.
8678 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
8679 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
8680
44aefada
JH
8681Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
8682
8683 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
8684
d5482cdc
GP
86852002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8686
8687 * doc/contrib.texi (Contributors): Add Paolo Carlini and
8688 Janis Johnson.
8689 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
8690 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
8691 and CPU instead of cpu.
8692
2c4b77f3
JH
8693Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
8694
8695 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
8696 variables.
8697 (lang_independent_options): Add -fif-conversion, -fif-conversion2
8698 (rest_of_compilation): Do if conversion only when asked for.
8699 (parse_options_and_default_flags): Set new variables to 1 for -O1
8700 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
8701
3de72741
JH
8702Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
8703
8704 * i386.c (dbx64_register_map): Fix typo.
8705
8aa18a7d
JH
8706Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
8707
8708 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
8709 real_one_half, real_bb_freq_max): New static variables.
8710 (debug_profile_bbauxs): Kill.
8711 (process_note_predictions): Kill unused variable.
8712 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
8713 volatile double.
8714 (propagate_freq): Use REAL_ARITHMETICS.
8715 (estimate_bb_frequencies): Likevise; init new static variables.
8716 * Makefile.in (predict.o): Add dependency on real.h
8717
1bbad4c6
DM
87182002-04-28 David S. Miller <davem@redhat.com>
8719
8720 PR target/6500
8721 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
8722 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
8723 several {reads,writes} instead.
8724 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
8725 Define.
8726
3ef3f384
DM
87272002-04-27 David S. Miller <davem@redhat.com>
8728
8729 PR target/6494
8730 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
8731 of the stack bias.
8732
8733 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
8734 including signal.h and sys/ucontext.h, not needed.
8735
ec493bcb
HPN
87362002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
8737
8738 * varasm.c (output_constant_def): Correct test for not calling
8739 ENCODE_SECTION_INFO for INTEGER_CST.
8740
60284a59
NB
87412002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
8742
8743 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
8744 keep most cases as function eval_token.
8745 (eval_token): New function.
8746 (_cpp_parse_expr): Read token here for improved diagnostics.
8747 Don't use op_as_text. Detect bad ':' here.
8748 (reduce): Don't detect bad ':' here.
8749 (op_as_text): Remove.
8750 * cpphash.h (_cpp_test_assertion): Change prototype.
8751 * cpplib.c (_cpp_test_assertion): Change prototype.
8752
349a4b40
RH
87532002-04-28 Richard Henderson <rth@redhat.com>
8754
8755 PR c/5154
8998d5bf 8756 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
8757 (ggc_mark_rtx_children): New.
8758
7a03f82f
JJ
87592002-04-28 Jakub Jelinek <jakub@redhat.com>
8760
8761 PR target/6496
8762 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
8763 after call peepholes for UltraSPARC.
8764 (call + jump 64-bit peepholes): Remove.
8765
80103f96
FS
87662002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8767
8768 PR c/6497
8769 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
8770 result as temporary value.
8771
06990986
JJ
87722002-04-28 Jakub Jelinek <jakub@redhat.com>
8773
8774 PR c++/6396
8775 * toplev.c (rest_of_compilation): Only run regrename and copy
8776 propagation if optimizing.
8777
a20fd5ac
JJ
87782002-04-28 Jakub Jelinek <jakub@redhat.com>
8779
8780 PR optimization/6475
8781 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
8782 register of REGNO_DECL (i).
8783 * Makefile.in (reload1.o): Add $(TREE_H).
8784
87ed109f
NB
87852002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
8786
8787 * cppexp.c (lex): Update to use state.skip_eval.
8788 (struct op): Remove prio and flags members.
8789 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
8790 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
8791 (LEFT_ASSOC): New macro.
8792 (optab): New table of operator priorities and flags.
8793 (SHIFT): Update.
8794 (_cpp_parse_expr): Clean up logic. Return bool. Use a
8795 malloc-ed parser stack.
8796 (reduce): New; reduce the operator stack.
8797 (_cpp_expand_op_stack): Expand the operator stack as necessary.
8798 * cpphash.h (struct op): Predeclare.
8799 (struct cpp_reader): New members op_stack, op_limit.
8800 (struct lexer_state): New member skip_eval.
8801 (_cpp_parse_expr): Update.
8802 (_cpp_expand_op_stack): New.
8803 * cpplib.c (do_if): Update.
8804 * cppinit.c (cpp_create_reader): Create op stack.
8805 (cpp_destroy): And destroy it.
8806 * cpplib.h (CPP_LAST_CPP_OP): Correct.
8807 (TTYPE_TABLE): Correct.
8808
45806a3f
FS
88092002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8810
8811 PR c/6343
8812 * c-decl.c (duplicate_decls): Call merge_weak.
8813 * c-pragma.c (apply_pragma_weak): Warn about misuse.
8814 * output.h (merge_weak): Prototype merge_weak.
8815 * varasm.c (merge_weak): New function.
8816 (declare_weak): Make sure we don't give an error on VAR_DECLs.
8817 Mark RTL with SYMBOL_REF_WEAK.
8818
a6227154
KG
88192002-04-27 Kurt Garloff <garloff@suse.de>
8820
8821 * tree-inline.c (inlinable_function_p): Improve heuristics
8822 by using a smoother function to cut down allowable inlinable size.
8823 * param.def: Add parameters max-inline-insns-single,
8824 max-inline-slope, min-inline-insns that determine the exact
8825 shape of the above function.
8826 * param.h: Likewise.
8827
94a50397
RH
88282002-04-26 Richard Henderson <rth@redhat.com>
8829
8830 * c-parse.in (malloced_yyss, malloced_yyvs): New.
8831 (yyoverflow): Re-add. Set them.
8832 (free_parser_stacks): New.
8833 * c-common.h: Declare it.
8834 * c-lex.c (c_common_parse_file): Call it.
8835
9c0a0632
RH
88362002-04-26 Richard Henderson <rth@redhat.com>
8837
8838 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
8839 for fallthru search.
8840
b875d2ee
EC
88412002-04-26 Eric Christopher <echristo@redhat.com>
8842
8843 PR optimization/3700
8844 * config/mips/mips.c (mips_issue_rate): Define. New function.
8845 (TARGET_SCHED_ISSUE_RATE): Use.
8846
1db828df
DM
88472002-04-25 David S. Miller <davem@redhat.com>
8848
8849 PR target/6422
8850 * reorg.c (optimize_skip): Do not allow exception causing
8851 instructions to be considered for delay slots.
8852 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
8853 (relax_delay_slots): Do not try to consider exception causing
8854 instructions as redundant.
8855
ae5d234e
RH
88562002-04-26 Richard Henderson <rth@redhat.com>
8857
8858 PR c/5225
8859 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
8860
7d793e9b
MM
88612002-04-26 Mark Mitchell <mark@codesourcery.com>
8862
8863 PR bootstrap/6445
8864 * config/i386/i386.md (untyped_call): Return the value in a float
8865 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
8866 TARGET_80387.
8867
b13ab42c
AO
88682002-04-26 Alexandre Oliva <aoliva@redhat.com>
8869
8870 * tree.c (tree_int_cst_lt): Compare constants whose types differ
8871 in unsigned-ness correctly.
8872
5e56f909
JDA
88732002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8874
8875 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
8876 portable runtime model.
8877
bde3c0c0
RH
88782002-04-26 Richard Henderson <rth@redhat.com>
8879
a6227154 8880 * c-parse.in (yyoverflow): Revert.
bde3c0c0 8881
5276df18
DE
88822002-04-26 David Edelsohn <edelsohn@gnu.org>
8883 Richard Henderson <rth@redhat.com>
8884
8885 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
8886 result as temporary value.
8887
b84a3874
RH
88882002-04-26 Richard Henderson <rth@redhat.com>
8889
8890 PR c/3581
8891 * c-common.c (fix_string_type): Split out of ...
8892 (combine_strings): ... here. Take a varray, not a tree list.
8893 (c_expand_builtin_printf): Use fix_string_type.
8894 * c-common.h: Update decls.
8895 * c-parse.in (string): Remove. Update all uses to use STRING
8896 instead, and not call combine_strings.
8897 (yylexstring): New.
8898 (_yylex): Use it.
8899 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
8900 (build_asm_stmt): Likewise.
8901 * objc/objc-act.c (my_build_string): Use fix_string_type.
8902 (build_objc_string_object): Build varray for combine_strings.
8903
d8ae8cd4
BT
89042002-04-26 Bo Thorsen <bo@suse.co.uk>
8905
8906 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
8907 x86-64.
8908
f8b954fc
NB
89092002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
8910
8911 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
8912 (HAVE_NO_R_OPERAND): Remove.
8913 (HAVE_VALUE): Remove.
8914 (op_to_prio): Update.
8915 (UNARY): Don't alter flags.
8916 (_cpp_parse_expr): want_value used to indicate whether
8917 a number or unary operator is expected next. Distinguish
8918 unary and binary +/-.
8919 (op_as_text): Update for unary operators.
8920
6052bef0
RH
89212002-04-25 Richard Henderson <rth@redhat.com>
8922
8923 PR c/2161
8924 * c-parse.in (yyoverflow): New.
8925
5c5b2283
RH
89262002-04-25 Richard Henderson <rth@redhat.com>
8927
8928 PR c/2098
8929 * c-common.c (shorten_compare): Simplfy conditions leading to
8930 the generation of a warning.
8931
28ce94d4
RH
89322002-04-25 Richard Henderson <rth@redhat.com>
8933
8934 PR c/2035
8935 * expmed.c (extract_bit_field): Fall through to generic code rather
8936 than aborting on subreg special case.
8937
6bfd0c63
DM
89382002-04-25 David S. Miller <davem@redhat.com>
8939
8940 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
8941 for DECL being NULL.
8942
7a430e3b
SC
89432002-04-25 Steve Christiansen <smc@us.ibm.com>
8944
8945 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
8946
45c42d7d
EB
89472002-04-25 Eric Botcazou <ebotcazou@multimania.com>
8948
8949 * c-decl.c (grokdeclarator): Remove outdated ??? note
8950 on invalid declaration of flexible array members.
8951
eb7715a4
RH
89522002-04-25 Richard Henderson <rth@redhat.com>
8953
8954 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
8955
cf5ee720
UW
89562002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8957
8958 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
8959 needed by the compiler, even if they are used as global regs.
8960
d604bca3
MH
89612002-04-25 Matt Hiller <hiller@redhat.com>
8962
8963 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
8964 functions.
8965 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
8966 of the corresponding functions.
8967 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
8968 New prototypes.
b875d2ee 8969
d604bca3
MH
89702002-04-25 Matt Hiller <hiller@redhat.com>
8971
8972 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
8973
8974 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
8975 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
8976 registers, adjust comment accordingly.
8977 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
8978 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
8979 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
8980 for coprocessor registers.
8981 (ADDITIONAL_REGISTER_NAMES): Include
8982 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 8983
d604bca3
MH
8984 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
8985 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
8986 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
8987 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
8988 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
8989
8990 (mips_char_to_class): Adjust comment to include coprocessor
8991 constraint letters.
8992
8993 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
8994 New functions.
8995 (mips_reg_names, mips_regno_to_class): Include coprocessor
8996 information.
8997 (mips_sw_reg_names): Ditto, make non-static.
8998 (mips_move_1word): Handle moves to and from coprocessor registers.
8999 (mips_move_2words): Handle moves to and from coprocessor
9000 registers.
9001 (mips_class_max_nregs, mips_register_move_cost): Handle
9002 coprocessor register classes.
9003 (override_options): Initialize mips_char_to_class and
9004 mips_hard_regno_mode_ok properly for coprocessor registers.
9005
9006 * config/mips/mips.md (movdi_internal, movdi_internal2,
9007 movsi_internal1, movsi_internal2): Add constraint-sets for
9008 coprocessor registers.
9009 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
9010 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
9011 isn't mips.
9012 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
9013 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
9014 isn't mips.
9015 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
9016 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
9017 isn't mips.
9018 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
9019 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
9020 isn't mips.
b875d2ee 9021
d604bca3
MH
9022 * doc/tm.texi: Document feature.
9023
b9a26d09
NB
90242002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9025
9026 * integrate.c (function_attribute_inlinable_p): Simplify.
9027 Check the table pointer is not NULL.
9028
ab5973b7
SB
90292002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
9030
9031 * doc/c-tree.texi: Fix typo in introduction.
9032
ff45c01e
NB
90332002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9034
9035 * c-common.h (c_common_parse_file): Update.
9036 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9037 * c-lex.c (YYDEBUG): Get from c-lex.h.
9038 (c_common_parse_file): Update.
9039 * c-lex.h (YYDEBUG, yydebug): New.
9040 * c-parse.in (YYDEBUG): Get from c-lex.h.
9041 (c_set_yydebug): Remove.
9042 * c-tree.h (c_set_yydebug): Remove.
9043 * langhooks-def.h (lhd_do_nothing_i): New.
9044 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
9045 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
9046 * langhooks.c (lhd_do_nothing_i): New.
9047 (lhd_set_yydebug): Remove.
9048 * langhooks.h (struct lang_hooks): Update.
9049 * toplev.c (set_yydebug): New.
9050 (compile_file): Update call to parse_file hook.
9051 (decode_d_option): Update.
9052objc:
9053 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9054
fcae219a
R
9055Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
9056
9057 * loop.c (load_mems): Don't change the interface of called functions.
9058
9059 * calls.c (expand_call): Take current_function_pretend_args_size
9060 into account when setting argblock for sibcalls.
9061
d0fea45a
MH
90622002-04-24 Matt Hiller <hiller@redhat.com>
9063
9064 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
9065 * c-lex.c: Ditto.
9066
9067 * cpplex.c (skip_line_comment): Process comment one multibyte
9068 character at a time rather than one char at a time, if
9069 appropriate.
9070 (parse_string): Process string one multibyte character at a time
9071 rather than one char at a time, if appropriate.
9072 * c-lex.c (lex_string): Lex and copy multibyte strings
9073 appropriately.
9074 * cpplib.h (cppchar_t): Change to unsigned.
9075
2d1b5436
RH
90762002-04-24 Richard Henderson <rth@redhat.com>
9077
9078 PR c/3467
9079 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
9080 for c99.
9081
5e039e6b
R
9082Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
9083
9084 * sh.c (sh_va_arg): If argument was passed by reference,
9085 dereference the pointer.
309d8365
R
9086
9087 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
9088
9089 * sh.md (divsi3_i4_media): Use match_operand for input values
9090 rather than hard registers.
9091 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
9092 unnecessarily through hard registers. Keep copies of pseudo
9093 registers outside of the libcall sequence.
9094
9095 * sh.md (casesi_shift_media): Add modes.
b700634a
R
9096
9097 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
9098 values in memory.
9099
349ae713
NB
91002002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
9101
9102 * attribs.c (c_common_attribute_table): Move table and handlers
9103 to c-common.c.
9104 (format_attribute_table, lang_attribute_table,
9105 lang_attribute_common): Remove.
9106 (init_attributes): Replace NULL pointers with pointers to the
9107 empty table.
9108 (handle_packed_attribute, handle_nocommon_attribute,
9109 handle_common_attribute, handle_noreturn_attribute,
9110 handle_noinline_attribute, handle_always_inline_attribute,
9111 handle_used_attribute, handle_unused_attribute,
9112 handle_const_attribute, handle_transparent_union_attribute,
9113 handle_constructor_attribute, handle_destructor_attribute,
9114 handle_mode_attribute, handle_section_attribute,
9115 handle_aligned_attribute, handle_weak_attribute,
9116 handle_alias_attribute, handle_visibility_attribute,
9117 handle_no_instrument_function_attribute, handle_malloc_attribute,
9118 handle_no_limit_stack_attribute, handle_pure_attribute,
9119 handle_deprecated_attribute, handle_vector_size_attribute,
9120 vector_size_helper): Move to c-common.c.
9121 * c-common.c (c_common_attribute_table,
9122 handle_packed_attribute, handle_nocommon_attribute,
9123 handle_common_attribute, handle_noreturn_attribute,
9124 handle_noinline_attribute, handle_always_inline_attribute,
9125 handle_used_attribute, handle_unused_attribute,
9126 handle_const_attribute, handle_transparent_union_attribute,
9127 handle_constructor_attribute, handle_destructor_attribute,
9128 handle_mode_attribute, handle_section_attribute,
9129 handle_aligned_attribute, handle_weak_attribute,
9130 handle_alias_attribute, handle_visibility_attribute,
9131 handle_no_instrument_function_attribute, handle_malloc_attribute,
9132 handle_no_limit_stack_attribute, handle_pure_attribute,
9133 handle_deprecated_attribute, handle_vector_size_attribute,
9134 vector_size_helper): Move from attribs.c.
9135 * c-common.h (c_common_attribute_table,
9136 c_common_format_attribute_table): New.
9137 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9138 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9139 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
9140 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
9141 (LANG_HOOKS_INITIALIZER): Update.
9142 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
9143 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
9144 * target.h: Update comment.
9145 * tree.c (default_target_attribute_table): Remove.
9146 * tree.h (default_target_attribute_table, format_attribute_table,
9147 lang_attribute_table, lang_attribute_common): Remove.
9148objc:
9149 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9150 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9151
84f0ace0
JM
91522002-04-24 Jason Merrill <jason@redhat.com>
9153
9154 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
9155 * dwarf2out.c (dwarf_attr_name): Support it.
9156 (gen_array_type_die): Emit it.
9157 (lookup_type_die): No special handling for VECTOR_TYPE.
9158 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
9159
120eaf28
RH
91602002-04-24 Richard Henderson <rth@redhat.com>
9161
9162 * config/mips/mips.md (movdi_usd): Renumber.
9163
e732178c
DM
91642002-04-24 David S. Miller <davem@redhat.com>
9165
9166 PR target/6420
9167 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
9168 32-bit Sparc and current_function_returns_struct is true.
9169
e879eb2f
JH
9170Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9171
9172 * loop.c (canonicalize_condition): Use gen_int_mode.
9173
4287a893
AH
91742002-04-24 Aldy Hernandez <aldyh@redhat.com>
9175
9176 * config/rs6000/altivec.h: Cleanup file. Add non individual
9177 variants.
9178 (vec_vaddubm): New.
9179 (vec_vadduhm): New.
9180 (vec_vadduwm): New.
9181 (vec_vaddfp): New.
9182 (vec_vaddcuw): New.
9183 (vec_vaddubs): New.
9184 (vec_vaddsbs): New.
9185 (vec_vadduhs): New.
9186 (vec_vadduws): New.
9187 (vec_vaddsws): New.
9188 (vec_vand): New.
9189 (vec_vandc): New.
9190 (vec_vavgub): New.
9191 (vec_vavgsb): New.
9192 (vec_vavguh): New.
9193 (vec_vavgsh): New.
9194 (vec_vavguw): New.
9195 (vec_vavgsw): New.
9196 (vec_vrfip): New.
9197 (vec_vcmpbfp): New.
9198 (vec_vcmpequb): New.
9199 (vec_vcmpequh): New.
9200 (vec_vcmpequw): New.
9201 (vec_vcmpeqfp): New.
9202 (vec_vcmpgefp): New.
9203 (vec_vcmpgtub): New.
9204 (vec_vcmpgtsb): New.
9205 (vec_vcmpgtuh): New.
9206 (vec_vcmpgtsh): New.
9207 (vec_vcmpgtuw): New.
9208 (vec_vcmpgtsw): New.
9209 (vec_vcmpgtfp): New.
9210 (vec_vcmpgefp): New.
9211 (vec_vcfux): New.
9212 (vec_vcfsx): New.
9213 (vec_vctsxs): New.
9214 (vec_vctuxs): New.
9215 (vec_vexptefp): New.
9216 (vec_vrfim): New.
9217 (vec_lvx): New.
9218 (vec_lvebx): New.
9219 (vec_lvehx): New.
9220 (vec_lde): Add vector float variant.
9221 (vec_lvewx): New.
9222 (vec_lvxl): New.
9223 (vec_vlogefp): New.
9224 (vec_vmaddfp): New.
9225 (vec_vmhaddshs): New.
9226 (vec_vmaxub): New.
9227 (vec_vmaxsb): New.
9228 (vec_vmaxuh): New.
9229 (vec_vmaxsh): New.
9230 (vec_vmaxuw): New.
9231 (vec_vmaxsw): New.
9232 (vec_vmaxsw): New.
9233 (vec_vmaxfp): New.
9234 (vec_vmrghb): New.
9235 (vec_vmrghh): New.
9236 (vec_vmrghw): New.
9237 (vec_vmrglb): New.
9238 (vec_vmrglh): New.
9239 (vec_vmrglw): New.
9240 (vec_vminub): New.
9241 (vec_vminsb): New.
9242 (vec_vminuh): New.
9243 (vec_vminsh): New.
9244 (vec_vminuw): New.
9245 (vec_vminsw): New.
9246 (vec_vminfp): New.
9247 (vec_vmladduhm): New.
9248 (vec_vmhraddshs): New.
9249 (vec_msumubm): New.
9250 (vec_vmsummbm): New.
9251 (vec_vmsumuhm): New.
9252 (vec_vmsumshm): New.
9253 (vec_vmsumuhs): New.
9254 (vec_vmsumshs): New.
9255 (vec_vmuleub): New.
9256 (vec_vmulesb): New.
9257 (vec_vmuleuh): New.
9258 (vec_vmulesh): New.
9259 (vec_vmuloub): New.
9260 (vec_mulosb): New.
9261 (vec_vmulouh): New.
9262 (vec_vmulosh): New.
9263 (vec_vnmsubfp): New.
9264 (vec_vnor): New.
9265 (vec_vor): New.
9266 (vec_vpkuhum): New.
9267 (vec_vpkuwum): New.
9268 (vec_vpkpx): New.
9269 (vec_vpkuhus): New.
9270 (vec_vpkshss): New.
9271 (vec_vpkuwus): New.
9272 (vec_vpkswss): New.
9273 (vec_vpkshus): New.
9274 (vec_vpkswus): New.
9275 (vec_vperm): New.
9276 (vec_vrefp): New.
9277 (vec_vrlb): New.
9278 (vec_vrlh): New.
9279 (vec_vrlw): New.
9280 (vec_vrfin): New.
9281 (vec_vrsqrtefp): New.
9282 (vec_vsel): New.
9283 (vec_vslb): New.
9284 (vec_vslh): New.
9285 (vec_vslw): New.
9286 (vec_vsldoi): New.
9287 (vec_vsl): New.
9288 (vec_vslo): New.
9289 (vec_vspltb): New.
9290 (vec_vsplth): New.
9291 (vec_vspltw): New.
9292 (vec_vspltisb): New.
9293 (vec_vspltish): New.
9294 (vec_vspltisw): New.
9295 (vec_vsrb): New.
9296 (vec_vsrh): New.
9297 (vec_vsrw): New.
9298 (vec_vsrab): New.
9299 (vec_vsrah): New.
9300 (vec_vsraw): New.
9301 (vec_vsr): New.
9302 (vec_vsro): New.
9303 (vec_stvx): New.
9304 (vec_stvebx): New.
9305 (vec_stvehx): New.
9306 (vec_stvewx): New.
9307 (vec_stvxl): New.
9308 (vec_vsububm): New.
9309 (vec_vsubuhm): New.
9310 (vec_vsubuwm): New.
9311 (vec_vsubfp): New.
9312 (vec_vsubcuw): New.
9313 (vec_vsububs): New.
9314 (vec_vsubsbs): New.
9315 (vec_vsubuhs): New.
9316 (vec_vsubshs): New.
9317 (vec_vsubuws): New.
9318 (vec_vsubsws): New.
9319 (vec_vsum4ubs): New.
9320 (vec_vsum4sbs): New.
9321 (vec_vsum4shs): New.
9322 (vec_vsum2sws): New.
9323 (vec_vsumsws): New.
9324 (vec_vrfiz): New.
9325 (vec_vupkhsb): New.
9326 (vec_vupkhpx): New.
9327 (vec_vupkhsh): New.
9328 (vec_vupklsb): New.
9329 (vec_vupklpx): New.
9330 (vec_vupklsh): New.
9331 (vec_vxor): New.
9332
cff27795
EB
93332002-04-23 Eric Botcazou <ebotcazou@multimania.com>
9334
9335 PR c/5430
9336 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
9337 added literals from substracted literals.
9338 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
9339 (fold) [associate]: Preserve MINUS_EXPR if needed.
9340
952bca84
ZW
93412002-04-23 Zack Weinberg <zack@codesourcery.com>
9342
9343 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
9344 are obsoleted.
9345
50cb2154
TT
93462002-04-23 Tom Tromey <tromey@redhat.com>
9347
9348 * gcc.c: Added --resource. For PR java/6314.
9349
271f61fb
DB
93502002-04-23 David O'Brien <obrien@FreeBSD.org>
9351
9566d1e9 9352 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
9353 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
9354 these libraries.
9355
bdabbc80
DB
93562002-04-23 David O'Brien <obrien@FreeBSD.org>
9357
9358 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
9359
74411039
JH
9360Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9361
9362 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
9363 workaround.
9364 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
9365 (ix86_expand_clrstr): Fix typo.
9366 * loop.c (gen_load_of_final_value): New.
9367 (loop_givs_rescan, strength_reduce, check_dbra_loop):
9368 Use it.
9369
1a887f86
RS
93702002-04-23 Roger Sayle <roger@eyesopen.com>
9371
9372 * builtins.c (builtin_memset_gen_str): New function.
9373 (expand_builtin_memset): Optimize the case of constant length, but
9374 unknown value.
9375
8d3441e0
AH
93762002-04-23 Aldy Hernandez <aldyh@redhat.com>
9377
cff27795
EB
9378 * config/rs6000/altivec.h (vec_step): Remove extraneous
9379 parentheses.
9380 (vec_ctu): Cast return.
8d3441e0 9381
f6f315fe
AM
93822002-04-23 Alan Modra <amodra@bigpond.net.au>
9383
9384 PR target/6413
9385 * function.h: (struct function): Add profile_label_no field.
9386 (current_function_profile_label_no): Define.
9387 * function.c: (profile_label_no): New static var.
9388 (expand_function_start): Increment it, and copy to
9389 current_function_profile_label_no.
9390 * output.h (profile_label_no): Delete.
9391 * final.c (profile_label_no): Delete.
9392 (profile_function): Use current_function_profile_label_no.
9393 (final_end_function): Don't increment profile_label_no here.
9394 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
9395 profile_label_no with current_function_profile_label_no.
9396 * config/pa/pa.c (current_function_number): Delete.
9397 (pa_output_function_prologue): Don't output profile label here.
9398 (hppa_profile_hook): Use label_no param rather than
9399 current_function_number.
9400 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
9401 * config/pa/pa.h: .. here.
9402 (FUNCTION_PROFILER): Output profile label here.
9403
d239cdc0
EC
94042002-04-22 Eric Christopher <echristo@redhat.com>
9405
9406 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
9407 patch of 2002-04-09 due to binutils issues.
9408 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
9409
04428ad4
AH
94102002-04-22 Aldy Hernandez <aldyh@redhat.com>
9411
cff27795
EB
9412 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
9413 constraint to 'o' for m=r and r=m alternatives.
9414 ("*movv8hi_internal1"): Same.
9415 ("*movv16qi_internal1"): Same.
9416 ("*movv4sf_internal1"): Same.
04428ad4 9417
2adc7f12
JJ
94182002-04-22 Janis Johnson <janis187@us.ibm.com>
9419
9420 * rtl.h (RTX_FLAG): New macro.
9421 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
9422 * final.c (alter_subreg): Use macro to access rtx flag.
9423 * integrate.c (copy_rtx_and_substitute): Use new access macro.
9424 * print-rtl.c (print_rtx): Use new access macro.
9425
9426 * cse.c (insert): Check rtx code before accessing flag.
9427
9428 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
9429 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
9430 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
9431 convert_const_symbol_ref, make_canonical, make_alternative_compare,
9432 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
9433 simplify_test_exp, optimize_attrs, simplify_by_exploding,
9434 find_and_mark_used_attributes, unmark_used_attributes,
9435 add_values_to_cover, simplify_with_current_value,
9436 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
9437 copy_rtx_unchanging, main): Use new access macros.
9438
b7c89afe
TR
94392002-04-22 Tom Rix <trix@redhat.com>
9440
9441 * expmed.c (init_expmed): Generate shifted constant once.
9442
9340544b
ZW
94432002-04-22 Zack Weinberg <zack@codesourcery.com>
9444
9445 * c-lex.c (lex_charconst): Call convert to get constant in
9446 proper type; don't just smash the type field.
9447 Fixes PR c/6300.
9448
9449 * config.gcc: Add list of obsolete configurations. Disallow
9450 building these without --enable-obsolete.
9451 * doc/install.texi: Document --enable-obsolete and obsoletion
9452 policy. Mention obsoletion of individual targets in
9453 appropriate places.
9454
f942d7a5
RH
94552002-04-22 Richard Henderson <rth@redhat.com>
9456
9457 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
9458
94592002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
9460
9461 PR f/6138.
9462 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
9463 (walk_fixup_memory_subreg): Likewise.
9464 (fixup_var_refs_insn): Adjust accordingly.
9465 (fixup_var_refs_1): Likewise.
9466
232b0b45
UW
94672002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
9468
9469 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
9470 LIBPATH_ARCH64_SPEC): Define.
9471 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
9472 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
9473 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
9474 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
9475
1b61552b
JS
94762002-04-22 Joel Sherrill <joel@OARcorp.com>
9477
9478 * gthr-rtems.h: Correct prototypes to remove warnings.
9479
0fe854a7
RH
94802002-04-22 Richard Henderson <rth@redhat.com>
9481
9482 PR c/6344
9483 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
9484
9485 * gcse.c (free_insn_expr_list_list): New.
9486 (clear_modify_mem_tables): Use it. Fix bit set usage.
9487 (canon_list_insert): Use EXPR_LISTs for expressions.
9488 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
9489
af0d16cd
NB
94902002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
9491
9492 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
9493 file change and include code to _cpp_pop_buffer.
9494 * cpphash.h (struct pending_option): Predeclare.
9495 (struct cpp_reader): New member next_include_file.
9496 (_cpp_pop_file_buffer): Update.
9497 (_cpp_push_next_buffer): Update, rename.
9498 * cppinit.c (cpp_destroy): Free include chain and pending here.
9499 (cpp_finish_options): Simplify.
9500 (_cpp_push_next_buffer): Rename and clean up.
9501 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
9502 Clarify.
9503 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
9504
0d918572
AH
95052002-04-22 Aldy Hernandez <aldyh@redhat.com>
9506
0fe854a7
RH
9507 * config/rs6000/altivec.h (vec_xor): Add variant for both args
9508 being vector signed int.
9509 (vec_andc): Same.
9510 (vec_xor): Add variant for both args being vector signed char.
9511 Remove redundant variant.
9512 (vec_andc): Same.
0d918572 9513
77e2c290
DM
95142002-04-21 David S. Miller <davem@redhat.com>
9515
9516 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
9517 compare mode in output RTL.
9518
ee2ca2a2
DE
95192002-04-22 David Edelsohn <edelsohn@gnu.org>
9520
9521 * config/rs6000/rs6000.c (rs6000_override_options): Correct
9522 style and formatting of previous patch.
9523
894bdff6
AM
95242002-04-22 Alan Modra <amodra@bigpond.net.au>
9525
9526 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
9527 flag_pic for ABI_AIX.
9528
562a5c27
NB
95292002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
9530
9531 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
9532 * cppfiles.c (read_include_file): Similarly.
9533 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
9534 uxstrdup ustrchr, ufputs): Similarly.
9535 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
9536 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
9537 cpp_ideq, parse_identifier, parse_number): Similarly.
9538 * cpplib.c (struct directive, dequote_string, D, run_directive,
9539 cpp_push_buffer): Similarly.
9540 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
9541 _cpp_create_definition, check_trad_stringification,
9542 cpp_macro_definition): Similarly.
9543
9ac3b1be
NB
95442002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
9545
9546 * cppmacro.c (funlike_invocation_p): Don't step back
9547 over CPP_EOF.
9548
9dda4cc8
DE
95492002-04-21 David Edelsohn <edelsohn@gnu.org>
9550
9551 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
9552 labelno.
9553
20764052
JM
95542002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
9555
9556 * doc/invoke.texi: Remove Chill references.
9557 * doc/gcc.texi: Update last modified date.
9558
26b29884
KH
95592002-04-20 Kazu Hirata <kazu@hxi.com>
9560
9561 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
9562 push and pop. Replace add.l with add.w.
9563
59184677
TM
95642002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
9565
9566 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
9567 multiply instructions for H8/300H case.
9568
b1113e0a
TM
95692002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
9570
9571 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
9572 Bum three instructions from each routine.
9573
b03e38e1
NB
95742002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
9575
9576 * Makefile.in: Update.
9577 * decl.c (push_c_function_context, pop_c_function_context,
9578 mark_c_function_context): Rename for consistency.
9579 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
9580 * c-tree.h (push_c_function_context, pop_c_function_context,
9581 mark_c_function_context): Rename for consistency.
9582 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9583 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9584 * function.c (init_lang_status, save_lang_status,
9585 restore_lang_status, mark_lang_status, free_lang_status):
9586 Move to langhooks.h.
9587 (push_function_context_to, pop_function_context_from,
9588 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
9589 Update.
9590 * function.h (init_lang_status, save_lang_status,
9591 restore_lang_status, mark_lang_status, free_lang_status):
9592 Move to langhooks.h.
9593 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
9594 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
9595 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
9596 LANG_HOOKS_FUNCTION_INITIALIZER): New.
9597 (LANG_HOOKS_INITIALIZER): Update.
9598 (lhd_do_nothing_f): New.
9599 * langhooks.h (struct lang_hooks_for_functions): New.
9600 (struct lang_hooks): New hooks.
9601 * langhooks.c (lhd_do_nothing_f): New.
9602objc:
9603 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9604 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9605
db430d26
DM
96062002-04-19 David S. Miller <davem@redhat.com>
9607
9608 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
9609 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
9610
0f2a3457
JJ
96112002-04-19 Jakub Jelinek <jakub@redhat.com>
9612
9613 PR optimization/3756
9614 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
9615 x = ((int) y < 0) ? cst1 : cst2.
9616
ce5e43d0
JJ
96172002-04-19 Jakub Jelinek <jakub@redhat.com>
9618
9619 PR c/6358
9620 * function.c: Reapply patch for c/6358.
9621 (expand_function_end): Copy decl_rtl's mode, not
9622 current_function_return_rtx mode.
9623
96242002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
9625
9626 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
9627 targets.
9628
40e7f8ea
TT
96292002-04-19 Tom Tromey <tromey@redhat.com>
9630
9631 * doc/install.texi (Specific): Update status of Solaris 2.8.
9632 For PR libgcj/6158.
9633
62a12b27
AS
96342002-04-19 Andreas Schwab <schwab@suse.de>
9635
9636 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
9637 (PUT_REAL): Restore old definition.
9638
1405141b
DN
96392002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
9640 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9641
9642 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
9643 binutils 2.11.2 and higher generate smaller binaries than Sun's
9644 native tools.
9645
303a3927
MM
96462002-04-19 Mark Mitchell <mark@codesourcery.com>
9647
9648 PR c++/6352
9649 * toplev.c (rest_of_compilation): Do not defer functions for which
9650 TREE_SYMBOL_REFERENCED has already been set.
9651
de80110b
JH
9652Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
9653
9654 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
9655 alternative.
9656
ab393bf1
NB
96572002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
9658
9659 * builtins.c: Include langhooks.h.
9660 (lang_type_promotes_to): Remove.
9661 (expand_builtin_va_arg): Use new hook.
9662 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
9663 (simple_type_promotes_to): Move to c-typeck.c.
9664 * c-common.h (simple_type_promotes_to): Remove.
9665 * c-decl.c (duplicate_decls, grokdeclarator): Update.
9666 * c-format.c: Include langhooks.h.
9667 (check_format_types): Update.
9668 * c-tree.h (c_type_promotes_to): New.
9669 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
9670 (type_lists_compatible_p): Update.
9671 * langhooks-def.h (lhd_type_promotes_to): New.
9672 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
9673 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9674 * langhooks.c (lhd_type_promotes_to): New.
9675 * langhooks.h (struct lang_hooks_for_types): New hook.
9676 * tree.h (lang_type_promotes_to): Remove.
9677objc:
9678 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
9679
0cd3301b
RH
96802002-04-18 Richard Henderson <rth@redhat.com>
9681
58533fa2 9682 * function.c: Revert patch for c/6358.
0cd3301b
RH
9683
96842002-04-18 Richard Henderson <rth@redhat.com>
9685
58533fa2
RH
9686 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
9687 blocks. Handle multiple references to the TRAP block. Handle
9688 non-adjacent THEN and OTHER blocks.
0cd3301b 9689
58533fa2
RH
96902002-04-18 Richard Henderson <rth@redhat.com>
9691
9692 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
9693 crash with no type for by-mode libcalls.
9694
9695 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 9696
57174693
BW
96972002-04-18 Bob Wilson <bob.wilson@acm.org>
9698
9699 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
9700 __xtensa_nonlocal_goto): Use a syscall instructions to flush
9701 the register windows.
9702
46468cd9
ZW
97032002-04-18 Zack Weinberg <zack@codesourcery.com>
9704
9705 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
9706 appropriate. Document need for extended precision even when
9707 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
9708 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
9709 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
9710 instead of relying on later syntax error when REAL_WIDTH > 5.
9711 * real.c: Define NE based only on whether or not we have a
9712 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
9713 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
9714 define GET_REAL and PUT_REAL as simple memcpy operations; no
9715 need to byteswap or round.
9716 Use #error instead of #ifdef-ing out the entire file, for
9717 prompt error detection.
9718
9719 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
9720
2f82dbf8
DM
97212002-04-18 David S. Miller <davem@redhat.com>
9722
9723 * config/sparc/sparc.h (BRANCH_COST): Define.
9724
9725 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
9726 does it.
9727
566576e7
HPN
97282002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
9729
9730 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
9731 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
9732 propagate_block calls after relaxation loop using new variable
9733 stabilized_prop_flags.
9734
51dcde6f
RH
97352002-04-18 Richard Henderson <rth@redhat.com>
9736
9737 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
9738 (ia64_va_arg): Expect variable sized types by reference.
9739 * config/ia64/ia64-protos.h: Update.
46468cd9 9740 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
9741 ia64_function_arg_pass_by_reference.
9742
26406018
RH
97432002-04-18 Richard Henderson <rth@redhat.com>
9744
46468cd9
ZW
9745 * ifcvt.c: Include except.h.
9746 (block_has_only_trap): Break out from find_cond_trap.
9747 (find_cond_trap): Use it. Always delete the trap block.
9748 (merge_if_block): Allow then block null. Be less simplistic about
9749 what insns can end a block.
9750 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 9751
26406018
RH
9752 * config/ia64/ia64.md (trap, conditional_trap): New.
9753
a3acf46d
JJ
97542002-04-18 Jakub Jelinek <jakub@redhat.com>
9755
9756 PR c/6358
9757 * function.c (assign_parms): Assign hard current_function_return_rtx
9758 register here...
9759 (expand_function_end): ...not here.
9760
7a228918
NB
97612002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
9762
9763 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9764 * c-tree.h (c_incomplete_type_error): New.
9765 * c-typeck.c (require_complete_type, build_component_ref): Update.
9766 (incomplete_type_error): Rename.
9767 * langhooks-def.h (lhd_incomplete_type_error): New.
9768 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
9769 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9770 * langhooks.c (lhd_incomplete_type_error): New.
9771 * langhooks.h (struct lang_hooks_for_types): New hook.
9772 * tree.c (size_in_bytes): Use new hook.
9773 * tree.h (incomplete_type_error): Remove.
9774objc:
9775 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9776
f18664c1
ZW
97772002-04-18 Zack Weinberg <zack@codesourcery.com>
9778
9779 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
9780 TARGET_FLOAT_FORMAT blocks.
9781
8ecab453
GP
97822002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9783
9784 * doc/install.texi (Downloading the source): Do not mention Chill
9785 any longer, but mention Ada.
9786 (Configuration): Do not mention Chill any longer.
9787
528d8489
HPN
97882002-04-18 Hans-Peter Nilsson <hp@axis.com>
9789
9790 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
9791
91da27c5
JH
9792Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
9793
9794 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
9795 in last patch.
9796
a32db605
JJ
97972002-04-18 Jakub Jelinek <jakub@redhat.com>
9798
9799 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
9800 instead of unsigned_type.
9801
5a28d8cc
JH
9802Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
9803
9804 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
9805 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
9806 later.
9807
3d980b9f
BS
98082002-04-18 Bernd Schmidt <bernds@redhat.com>
9809
9810 * attribs.c (vector_type_node_list): New static variable.
9811 (handle_vector_size_attribute): Use it to avoid generating a
9812 new type node each time we are called.
9813
2e676d78
BS
9814 * combine.c (subst): Avoid trying to make a vector mode subreg of
9815 an integer constant.
9816 (gen_lowpart_for_combine): Likewise.
46468cd9 9817
58c2956c
RS
98182002-04-18 Roger Sayle <roger@eyesopen.com>
9819 Jakub Jelinek <jakub@redhat.com>
9820
9821 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
9822 for integer constant c (if x has unsigned type or sign bit is not
9823 set in c). This folds the zero/sign extension into the bit-wise and
9824 operation.
9825
692efa8e
JJ
98262002-04-18 Jakub Jelinek <jakub@redhat.com>
9827
9828 PR middle-end/6205
9829 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
9830 otherwise xorps.
9831
1372d4ce
NY
98322002-04-17 NIIBE Yutaka <gniibe@m17n.org>
9833
9834 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
9835
169ce44d
NC
98362002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
9837
9838 * gcc.c (read_specs): Detect and fail if an attempt is made to
9839 rename a spec string to an already existing string.
9840
b30d2115
UW
98412002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9842
9843 * config/s390/s390.c (legitimize_pic_address): Do not generate
9844 illegal address constant without CONST.
9845
d6964c30
KG
98462002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9847
9848 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
9849 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9850
7c82a1ed
UW
98512002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9852
9853 PR optimization/6305
9854 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
9855 to make sure previous reloads are taken into account. Generate
9856 better code if one operand is an in-range immediate constant.
9857
58db9d1a
AH
98582002-04-16 Andrew Haley <aph@cambridge.redhat.com>
9859
9860 * doc/install.texi (Building): libgcj requires GNU make.
9861
2a732575
JJ
98622002-04-17 Jakub Jelinek <jakub@redhat.com>
9863
9864 PR bootstrap/6315
9865 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
9866 even if hard quad and register is not floating.
9867 (movtf reg<-mem split): Disallow splitting if hard quad and
9868 register is floating.
9869 (movtf mem<-reg split): Likewise.
9870 * config/sparc/sparc.c (fp_register_operand): New predicate.
9871 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
9872
75a65e46
ZW
98732002-04-17 Zack Weinberg <zack@codesourcery.com>
9874
9875 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
9876 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
9877 (unprotoize.o): Ditto. Build from protoize.c. Define
9878 UNPROTOIZE on command line.
9879 * protoize.c: Include cppdefault.h. Delete include_defaults.
9880 (in_system_include_dir): Use cpp_include_defaults (defined in
9881 cppdefault.o).
9882 * unprotoize.c: Delete file.
9883
650f0e97
AH
98842002-04-17 Aldy Hernandez <aldyh@redhat.com>
9885
46468cd9
ZW
9886 * config/rs6000/altivec.h (vec_ld): Add array variants.
9887 (vec_lde): Same.
9888 (vec_ldl): Same.
650f0e97 9889
71a0ab0c 98902002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 9891 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 9892
46468cd9
ZW
9893 * config/rs6000/altivec.h: Define __ALTIVEC__.
9894 (bool): New.
9895 (__pixel): New.
9896 (pixel): New.
9897 (vec_cfux): New.
9898 (vec_vmaddfp): New.
9899 (vec_vsldoi): New.
9900 Add parentheses to all macro arguments.
71a0ab0c 9901
ff2c46ac
RH
99022002-04-16 Richard Henderson <rth@redhat.com>
9903
9904 PR c++/6320
9905 * except.c (remove_eh_handler): Insert inner regions at beginning
9906 of sibling chain. Refactor expressions.
9907
f1ba94dd
RH
99082002-04-16 Richard Henderson <rth@redhat.com>
9909
f0871dfe
RH
9910 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
9911 * config/sparc/sol2-gas-bi.h: New file.
9912 * config.gcc (sparc*-solaris): Add it as needed.
9913 * configure.in (AS_SPARC64_FLAG): Remove check.
9914 * config.in, configure: Regenerate.
9915
9916 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
9917
99182002-04-16 Richard Henderson <rth@redhat.com>
9919
9920 * config/mips/mips.c (override_options): Don't override N32 for
9921 a 64-bit ISA.
409d3c60 9922
f1ba94dd
RH
9923 PR 6202
9924 * config/mips/mips.md (can_delay): Split out of existing define_delays.
9925 (HILO_delay): Set can_delay false.
9926
178c3eff
DJ
99272002-04-16 Dale Johannesen <dalej@apple.com>
9928
9929 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
9930 instruction addresses.
9931 (rs6000_output_function_epilogue): Likewise.
9932
7d6f6369
PC
99332002-04-16 Paolo Carlini <pcarlini@unitus.it>
9934
9935 * c-parse.in (poplevel, compstmt_start,
9936 compstmt_primary_start): Add ending ';', in accordance
9937 with POSIX.
9938
8947df0c
RH
99392002-04-16 Richard Henderson <rth@redhat.com>
9940
9941 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
9942 Adjust tm_file order to get TARGET_DEFAULT set properly.
9943 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
9944 * doc/install.texi (sparc-solaris): Update.
9945
3148ad6d
DJ
99462002-04-16 Dale Johannesen <dalej@apple.com>
9947
9948 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
9949 comparison operands do not match each other or if modes of
9950 conditions do not match result.
9951
014cb9b6 99522002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 9953
014cb9b6
HP
9954 PR target/6305
9955 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 9956 multiword register.
562a69be 9957
014cb9b6 99582002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 9959
8947df0c 9960 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 9961
a9772b60
JJ
99622002-04-16 Jakub Jelinek <jakub@redhat.com>
9963
9964 PR middle-end/6279
9965 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
9966
9967 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
9968
861829ed
RH
99692002-04-15 Richard Henderson <rth@redhat.com>
9970
9971 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
9972 call_really_used_regs too.
9973
bcf2fe9c
RH
99742002-04-15 Richard Henderson <rth@redhat.com>
9975
9976 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
9977
629111c7
DM
99782002-04-15 David S. Miller <davem@redhat.com>
9979
9980 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
9981 as being CLOBBERed.
9982
98ef3137
JJ
99832002-04-16 Jakub Jelinek <jakub@redhat.com>
9984
9985 PR c/6290
9986 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
9987 CONST_VECTOR is { 0, ... 0 }.
9988
0aa911c5
LR
99892002-04-15 Loren J. Rittle <ljrittle@acm.org>
9990
9991 * doc/install.texi (Installing GCC: Configuration): Clarify
9992 the only supported ways to configure gcc.
9993
83248d49 99942002-04-15 Roland McGrath <roland@frob.com>
46468cd9 9995
83248d49
RM
9996 * config.gcc (alpha*-*-gnu*): New target configuration.
9997 * config/alpha/gnu.h: New file for it.
9998 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
9999
b2123dc0
MM
100002002-04-16 Mark Mitchell <mark@codesourcery.com>
10001
10002 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10003 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
10004 * tree.h (expand_start_stmt_expr): Update prototype.
10005 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
10006 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
10007 on the STMT_EXPR created for the inline function.
46468cd9 10008
8fe2d853
RH
100092002-04-15 Richard Henderson <rth@redhat.com>
10010
10011 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
10012 config/i386/linux-aout.h, config/i386/linux-oldld.h,
10013 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
10014 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
10015 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
10016 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
10017 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10018 Define __gnu_linux__, not gnu_linux.
10019 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
10020
07cdae91
MM
100212002-04-15 Mark Mitchell <mark@codesourcery.com>
10022
10023 Remove Chill front end.
10024 * gcc.c (default_compilers): Remove Chill entries.
10025 * ch: Remove directory.
10026 * doc/frontends.texi: Remove information about Chill.
10027 * doc/sourcebuild.texi: Likewise.
10028 * doc/standards.texi: Likewise.
10029
41823c5e
DR
100302002-04-15 Douglas B Rupp <rupp@gnat.com>
10031
10032 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
10033 (LONGLONG_STANDALONE): Define.
10034
eb29ddb6
DM
100352002-04-15 David S. Miller <davem@redhat.com>
10036
10037 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
10038 Call emit_library_call with LCT_NORMAL.
10039 (sparc_initialize_trampoline): Use LCT_foo instead of
10040 magic constant in emit_library_call invocations.
10041 (sparc64_initialize_trampoline): Likewise.
10042 (sparc_profile_hook): Likewise.
10043 * config/sparc/sparc.md: Likewise.
10044
10045 * config/sparc/sparc.c (sparc_extra_constraint_check):
10046 Fix type of argument 'c'.
10047 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
10048 Likewise.
10049
bd6bec6b
GDR
100502002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
10051
10052 * diagnostic.h (output_buffer_state): Redefine.
10053 (output_format_decoder): New macro.
10054 (output_prefixing_rule): Likewise.
10055 (output_line_cutoff): Likewise.
10056 (diagnostic_format_decoder): Adjust.
10057 (diagnostic_prefixing_rule): Likewise.
10058 (diagnostic_line_cutoff): Likewise.
10059 (diagnostic_state): Likewise.
10060 (diagnostic_kind_count): Likewise.
10061 (diagnostic_buffer): Now a macro.
10062
10063 * diagnostic.c (diagnostic_buffer): Remove definition.
10064 (output_is_line_wrapping): Adjust.
10065 (set_real_maximum_length): Likewise.
10066 (output_set_maximum_length): Likewise.
10067 (init_output_buffer): Likewise.
10068 (lhd_print_error_function): Likewise.
10069 (output_do_verbatim): Likewise.
10070
ebef4e8c
NB
100712002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
10072
10073 * cpperror.c (print_location): Don't print include chain
10074 if line == 0.
10075 (cpp_begin_message): Update to use DL_ macros.
10076 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10077 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10078 cpp_notice, cpp_notice_from_errno): Remove.
10079 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10080 level.
10081 (cpp_errno): New.
10082 * cppexp.c (CPP_ICE): Remove.
10083 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
10084 lex, integer_overflow, _cpp_parse_expr): Update.
10085 * cppfiles.c (read_include_file, find_include_file,
10086 handle_missing_header, _cpp_read_file, remap_filename): Update.
10087 * cpphash.h (enum error_type): Remove.
10088 (_cpp_begin_message): Update.
10089 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
10090 cpp_handle_option, cpp_post_options): Update.
10091 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
10092 skip_whitespace, parse_identifier, parse_slow, parse_string,
10093 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
10094 cpp_interpret_charconst): Update.
10095 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
10096 lex_macro_node, do_undef, glue_header_name, parse_include,
10097 do_include_common, read_flag, do_line, do_linemarker, do_ident,
10098 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
10099 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
10100 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
10101 _cpp_pop_buffer, do_diagnostic): Update.
10102 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
10103 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
10104 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10105 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10106 cpp_notice, cpp_notice_from_errno): Remove.
10107 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10108 level.
10109 (cpp_errno): New.
10110 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
10111 collect_args, enter_macro_context, save_parameter, parse_params,
10112 _cpp_create_definition, check_trad_stringification,
10113 cpp_macro_definition): Update.
10114 * cppmain.c (cpp_preprocess_file): Update.
10115 * fix-header.c (read_scan_file): Update.
10116
c19a3859
AS
101172002-04-14 Andreas Schwab <schwab@suse.de>
10118
10119 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
10120
10fdbed6
JD
101212002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10122
10123 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
10124
77660a9a
MM
101252002-04-13 Mark Mitchell <mark@codesourcery.com>
10126
10127 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
10128 not gnu_hurd.
10129
e0ff1ded
HPN
101302002-04-13 Hans-Peter Nilsson <hp@axis.com>
10131
10132 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
10133
2341c7ea
JS
101342002-04-13 Joel Sherrill <joel@OARcorp.com>
10135
10136 * config/sparc/t-elf: Enable v8 multilibs. Impacts
10137 sparc-elf and sparc-rtems targets.
10138
d29350c0
MM
101392002-04-13 Mark Mitchell <mark@codesourcery.com>
10140
10141 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
10142 defined, and __gnu_hurd__ wherever __GNU__ is defined.
10143 * arm/linux-elf.h: Likewise.
10144 * cris/aout.h: Likewise.
10145 * cris/linux.h: Likewise.
10146 * i370/linux.h: Likewise.
10147 * i386/gnu.h: Likewise.
10148 * i386/linux-aout.h: Likewise.
10149 * i386/linux-oldld.h: Likewise.
10150 * i386/linux.h: Likewise.
10151 * i386/linux64.h: Likewise.
10152 * ia64/linux.h: Likewise.
10153 * m68k/linux-aout.h: Likewise.
10154 * m68k/linux.h: Likewise.
10155 * mips/linux.h: Likewise.
10156 * pa/pa-linux.h: Likewise.
10157 * pj/linux.h: Likewise.
10158 * rs6000/sysv4.h: Likewise.
10159 * s390/linux.h: Likewise.
10160 * sh/linux.h: Likewise.
10161 * sparc/linux-aout.h: Likewise.
10162 * sparc/linux.h: Likewise.
10163 * sparc/linux64.h: Likewise.
10164 * xtensa/linux.h: Likewise.
10165
fc552851
RS
101662002-04-13 Richard Sandiford <rsandifo@redhat.com>
10167
10168 * stmt.c (check_unique_operand_names): Expect operand names to
10169 be strings rather than identifiers. Use simple_cst_equal to
10170 compare them.
10171 (resolve_operand_name_1): Make same identifier to string change here.
10172 * c-parse.in (asm_operand): Convert a named operand into a string.
10173 * cp/parse.y (asm_operand): Likewise.
10174
1d405c5e
AS
101752002-04-13 Andreas Schwab <schwab@suse.de>
10176
10177 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
10178
c740732f
MM
101792002-04-12 Mark Mitchell <mark@codesourcery.com>
10180
10181 Revert these changes:
10182
10183 2002-04-06 Mark Mitchell <mark@codesourcery.com>
10184
10185 PR c++/5571
10186 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10187
3fc602a0
RH
101882002-04-12 Richard Henderson <rth@redhat.com>
10189
10190 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
10191 (sparc*-*-solaris): Clean up header files.
10192 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
10193 and plan on generating 64-bit code.
10194 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
10195 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
10196 * config/sparc/sol2-sld-64.h: Rename ...
10197 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
10198 for AS_SPARC64_FLAG not defined.
10199 * config/sparc/sol2-gld-bi.h: New.
10200 * config/sparc/sol2-sld.h: Remove.
10201 * config/sparc/sol26-sld.h: New.
10202 * config/sparc/sol2.h: Tidy comments.
10203 * doc/install.texi: Document sparc-solaris configury changes.
10204
2f15e255
RH
102052002-04-12 Richard Henderson <rth@redhat.com>
10206
10207 * recog.c (offsettable_address_p): Match the logic in adjust_address.
10208
10209 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
10210 in 64-bit mode only. Use only for 32-bit or MEDLOW.
10211
cc8475cb
RO
102122002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10213
10214 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
10215
6f133a4a
JL
10216Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
10217
ef1b8858 10218 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
10219 constrain_operands.
10220
1329e600
DR
102212002-04-12 Douglas B Rupp <rupp@gnat.com>
10222
10223 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
10224 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
10225 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 10226 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
10227 * config/i386/t-interix (USER_H): Remove.
10228
0339d239
DD
102292002-04-12 DJ Delorie <dj@redhat.com>
10230
10231 * integrate.c (compare_blocks): Make comparisons safe for when
10232 sizeof(int) < sizeof(char *).
10233 (find_block): Likewise.
10234
cc4d5fec
JH
102352002-04-12 Jan Hubicka <jh@suse.cz>
10236 David Edelsohn <edelsohn@gnu.org>
10237
10238 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
10239 registers.
10240 (symbol_ref_operand): New.
10241 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
10242 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
10243
93215a1b
AS
102442002-04-12 Andreas Schwab <schwab@suse.de>
10245
10246 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
10247 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
10248 overrides the definition in config/svr4.h.
46468cd9 10249
1d80248e
EN
102502002-04-12 Eric Norum <eric.norum@usask.ca>
10251
10252 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
10253 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
10254 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
10255 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
10256 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
10257 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
10258 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
10259 definitions to config/rtems.h and make the targets more similar.
10260
fa1591cb
RK
10261Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10262
fa06ab5c
RK
10263 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
10264 POINTERS_EXTEND_UNSIGNED.
10265 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
10266 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
10267
fa1591cb
RK
10268 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
10269 not specified.
10270
12e85a0e
R
10271Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
10272
10273 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
10274 depends on TARGET_SHMEDIA, not TARGET_SH5.
10275
1ab3e58a
HPN
102762002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
10277
10278 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
10279 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
10280
18778292
R
10281Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
10282
10283 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
10284 no r0 clobber.
10285
9002507c
AS
102862002-04-12 Andreas Schwab <schwab@suse.de>
10287
10288 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
10289
9be40833
RH
102902002-04-12 Richard Henderson <rth@redhat.com>
10291
10292 PR bootstrap/4191
10293 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
10294
10295 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
10296 modes spanning multiple hard regs.
46468cd9 10297
9be40833
RH
10298 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
10299
3d9268b6
JDA
103002002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10301
10302 * pa.c (pa_output_function_prologue): Don't accumulate the total
10303 number of code bytes when using TARGET_64BIT, or gas, SOM and not
10304 the portable runtime.
10305 (output_deferred_plabels): Handle 64bit plabels.
10306 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
10307 generating pic code using the GAS assembler for object formats that
10308 are not SOM (ie., ELF32 and ELF64).
10309 (output_millicode_call): Check attribute type if attribute length is 28.
10310 Likewise use $PIC_pcrel$0. Only call get_attr_length and
10311 dbr_sequence_length once.
10312 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
10313 dbr_sequence_length once.
10314 * pa.h (TARGET_SOM): Define if not defined.
10315 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
10316 with GAS and not SOM.
10317 (jump, call_internal_reg, call_value_internal_reg): Likewise.
10318 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
10319
d360fd18
DB
103202002-04-11 David O'Brien <obrien@FreeBSD.org>
10321
10322 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
10323 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
10324 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
10325 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
10326 elfos.h and dbxelf.h values are fine now.
10327 * config/i386/freebsd.h, config/alpha/freebsd.h
10328 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
10329
5b8fcab6
DB
103302002-04-11 David O'Brien <obrien@FreeBSD.org>
10331
10332 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
10333 or set Acpu or Amachine. Reformat.
10334 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10335 define.
10336 (LINK_SPEC): Do not need to undef.
10337 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
10338 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
10339 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10340 define.
10341 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
10342 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
10343 (LINK_SPEC): Do not need to undef.
10344 (DONT_USE_BUILTIN_SETJMP): Do not define.
10345 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
10346 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
10347 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
10348 Remove trailing spaces.
10349 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
10350 __ELF__, or set Acpu or Amachine. Reformat.
10351 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10352 define.
10353
fee42cc1
DB
103542002-04-11 David O'Brien <obrien@FreeBSD.org>
10355
10356 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
10357 all other *-*-freebsd* targets.
10358
77a403e4
RH
103592002-04-11 Richard Henderson <rth@redhat.com>
10360
10361 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
10362
cf0005c6
DB
103632002-04-11 David O'Brien <obrien@FreeBSD.org>
10364
10365 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
10366 Include {cpu}/{cpu}.h thru tm_file.
10367 (alpha*-*-linux*ecoff): Remove target.
10368 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
10369 (LINK_SPEC): Remove, is not OS independent.
10370 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
10371 (LINK_SPEC): Do not need to #undef any longer.
10372 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
10373 any longer.
10374 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
10375 __ELF__.
10376 (LINK_SPEC): Moved here from alpha/elf.h.
10377 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
10378 SUB_CPP_PREDEFINES.
10379 * config/alpha/linux-ecoff.h: Remove.
10380 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
10381 (CPP_SPEC): Define _POSIX_SOURCE as needed.
10382 (CPP_SUBTARGET_SPEC): Do not define.
10383 (LINK_SPEC): Do not need to #undef any longer.
10384 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
10385 * config/alpha/vms.h: Likewise.
10386
9be40833 103872002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
10388
10389 * doc/extend.texi: Remove old claim that typedefs cannot have
10390 an alignment attribute.
10391
010f87c4
JJ
103922002-04-11 Jakub Jelinek <jakub@redhat.com>
10393
10394 PR optimization/6177
10395 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
10396 bitpos is 0 and bitsize CONCAT size.
10397
578fc63d
JJ
103982002-04-11 Jakub Jelinek <jakub@redhat.com>
10399
10400 PR c/6223
10401 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
10402
bf9b85ce
DB
104032002-04-10 David O'Brien <obrien@FreeBSD.org>
10404
10405 * config/alpha/freebsd.h: Minor reformatting.
10406 (CPP_SPEC): Define ELF and add cpp_subtarget.
10407 (ASM_SPEC): No longer needed.
10408
7425707d
RH
104092002-04-11 Richard Henderson <rth@redhat.com>
10410
10411 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
10412 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
10413 (dimode mem/zero splitter): New.
10414
1a05e874
HPN
104152002-04-11 Hans-Peter Nilsson <hp@axis.com>
10416
10417 * config/cris/cris.c (cris_override_options): Tweak error message
10418 for PIC not implemented.
10419
10420 * config/cris/cris.h: Tweak comments related to parameter-passing.
10421
10422 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
10423
6f3d0447
RH
104242002-04-10 Richard Henderson <rth@redhat.com>
10425
10426 * except.c (add_ehl_entry): Allow duplicates after landing pad
10427 creation.
10428
174bf2b1
DE
104292002-04-10 David Edelsohn <edelsohn@gnu.org>
10430
10431 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
10432
03f10472
TM
104332002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
10434
10435 * c-decl.c (c_init_decl_processing): Move generation of
10436 decls for g77_integer_type_node and friends from here ...
10437 * c-common.c (c_common_nodes_and_builtins): ... to here.
10438
2f460a0a
UW
104392002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
10440
10441 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
10442 is only used as frame pointer when frame_pointer_needed is true.
10443
0be5cf85
RE
104442002-04-10 Richard Earnshaw <rearnsha@arm.com>
10445
10446 PR target/817
10447 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
10448 for the fact that the pool entry uses two words.
10449 (movdf_hard_insn): Similarly. Also, ADR instruction can span
10450 1k bytes.
10451 (movdf_soft_insn): Similarly.
10452 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
10453 for the fact that the pool entry uses three words.
10454
bf6d4777
RS
104552002-04-10 Richard Sandiford <rsandifo@redhat.com>
10456
10457 * config/mips/mips.c (mips_va_arg): When using the struct version
10458 of the EABI va_list, allow arguments in the register save area to
10459 take up less room than a stack argument.
10460
c2e9dc85
RH
104612002-04-10 Richard Henderson <rth@redhat.com>
10462
10463 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
10464 if EXPAND_INITIALIZER.
10465
bc8e8e97
RH
104662002-04-09 Richard Henderson <rth@redhat.com>
10467
10468 * config/alpha/alpha.md (movdi_er_maybe_g): New.
10469 * config/alpha/alpha.c (alpha_expand_mov): Use it.
10470
a6a063b8
AM
104712002-04-10 Alan Modra <amodra@bigpond.net.au>
10472
10473 PR optimization/6233
10474 * rtlanal.c (pure_call_p): New function.
10475 * rtl.h (pure_call_p): Declare.
10476 * loop.c (prescan_loop): Use it to set has_nonconst_call.
10477 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
10478
7b2e1077
EC
104792002-04-09 Eric Christopher <echristo@redhat.com>
10480
10481 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
10482 information to .comm directive.
10483
d8a50944
RH
104842002-04-09 Richard Henderson <rth@redhat.com>
10485
10486 PR c/5078
10487 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
10488
6a58eee9
RH
104892002-04-09 Richard Henderson <rth@redhat.com>
10490
10491 * basic-block.h (flow_delete_block_noexpunge): Declare.
10492 (expunge_block_nocompact): Declare.
10493 * cfg.c (expunge_block_nocompact): Split out from ...
10494 (expunge_block): ... here.
10495 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
10496 (flow_delete_block_noexpunge): Split out from ...
10497 (flow_delete_block): ... here.
10498 * cfgcleanup.c (delete_unreachable_blocks): Compact while
10499 removing dead blocks.
10500 * except.c (exception_handler_labels): Remove.
10501 (exception_handler_label_map): New.
10502 (struct eh_region): Add aka member.
10503 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
10504 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
10505 (for_each_eh_label, for_each_eh_label_1): New.
10506 (init_eh): Register exception_handler_label_map.
10507 (free_eh_status): Use free_region.
10508 (find_exception_handler_labels): Use the map, not the list.
10509 (remove_exception_handler_label): Likewise.
10510 (maybe_remove_eh_handler): Likewise.
10511 (remove_eh_handler): Use the region aka bitmap.
10512 * except.h (exception_handler_labels): Remove.
10513 (for_each_eh_label): Declare.
10514 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
10515 * loop.c (invalidate_loops_containing_label): New.
10516 (find_and_verify_loops): Use it. Use for_each_eh_label.
10517 * sched-rgn.c (is_cfg_nonregular): Use
10518 current_function_has_exception_handlers.
10519
b47374fa
RH
105202002-04-09 Richard Henderson <rth@redhat.com>
10521
10522 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
10523 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
10524 Do not return changed status.
10525 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
10526 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
10527 New functions that do return changed status.
10528 * sbitmap.h: Update decls.
10529 * gcse.c, lcm.c: Use _cg functions as needed.
10530
1951818c
R
10531Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
10532
10533 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
10534 (sh64-*-elf*, sh-*-rtemself*): Likewise.
10535 * config/sh/embed_bb.c: New file.
10536 * config/sh/embed-elf.h: New file.
10537 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
10538 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
10539 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10540 __PTRDIFF_TYPE__ .
10541 (SUBTARGET_CPP_PTR_SPEC): Don't define.
10542 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
10543 Add subtarget_asm_endian_spec.
10544 (ASM_SPEC): Use subtarget_asm_endian_spec.
10545 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
10546 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
10547 (WCHAR_UNSIGNED): Define.
10548 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
10549 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10550 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
10551 Fix value.
10552 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
10553 (sh_adjust_cost): Likewise.
10554 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10555 __PTRDIFF_TYPE__ .
10556 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
10557 (WCHAR_TYPE_SIZE): Likewise.
10558 (ASM_SPEC): Use subtarget_asm_endian_spec.
10559 (SH_ELF_WCHAR_TYPE): #undef/ #define.
10560 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
10561 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
10562 (MAX_WCHAR_TYPE_SIZE): Don't #define .
10563 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
10564 (USER_LABEL_PREFIX): Don't #undef /#define .
10565 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10566 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
10567 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
10568 (ASM_SPEC): Likewise.
10569 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
10570 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
10571 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
10572 (LIB2FUNCS_EXTRA): Define.
10573 * t-sh64 (LIB2FUNCS_EXTRA): Define.
10574 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
10575 (LIB1ASMFUNCS_CACHE): Define.
10576 (LIB2FUNCS_EXTRA): Redefine empty.
10577
34295799
RH
105782002-04-08 Richard Henderson <rth@redhat.com>
10579
10580 * reorg.c (get_branch_condition): Use reversed_comparison_code.
10581
e8766a39
SC
105822002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10583
10584 * config/m68hc11/larith.asm (__map_data_section): Fix condition
10585 and optimize for size.
10586 (__do_global_ctors): Fix pointer comparison.
10587 (__do_global_dtors): Likewise.
10588
f451b552
DM
105892002-04-09 David S. Miller <davem@redhat.com>
10590
10591 * config/sparc/sparc.c (sparc_extra_constraint_check): New
10592 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
10593 allow reloading pseudos.
10594 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
10595 * config/sparc/sparc-protos.h: Declare it.
10596
10597 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
10598 unsigned comparison warning.
10599 (output_restore_regs): Mark leaf_function as unused.
10600
1ce7f3c2
RK
10601Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10602
10603 * expr.c (is_aligning_offset): New function.
10604 (expand_expr, case COMPONENT_EXPR): Call it.
10605
7a31a340
DM
106062002-04-08 David S. Miller <davem@redhat.com>
10607
10608 PR target/6082
10609 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
10610
10611 Make init_priority work on Sparc when using GNU ld.
10612 * config/sparc/linux.h, config/sparc/linux64.h,
10613 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
10614 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
10615 * config/sparc/sol2-gld.h: New file to do the same.
10616 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
10617 sparc/sol2-gld.h to tm_file.
10618
10619 PR optimization/4328
10620 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
10621 * doc/md.texi: Document it.
10622 * config/sparc/sparc.md (movdi_insn_sp64_novis,
10623 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
10624 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
10625 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
10626 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
10627
11579f33
AJ
106282002-04-08 Andreas Jaeger <aj@suse.de>
10629
10630 * stmt.c (expand_asm_operands): Revert last patch from Richard
10631 Henderson.
10632
b57215d9
GP
106332002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10634
10635 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
10636 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
10637
106382002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10639
10640 * doc/contrib.texi (Contributors): Add David O'Brien.
10641
534d0cc0
AM
106422002-04-08 Alan Modra <amodra@bigpond.net.au>
10643
10644 * configure.in (auto-build.h): Use target_alias and build_alias
10645 when running configure.
10646 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
10647 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
10648 * configure: Regenerate.
10649
19fe522a
DM
106502002-04-07 David S. Miller <davem@redhat.com>
10651
10652 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
10653
bf2d0b8e
JDA
106542002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
10655
10656 PR 5933
10657 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
10658 generating 32-bit pic code.
10659
477cdac7
JT
106602002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
10661
10662 * cppinit.c (cpp_create_reader): Initialize
10663 discard_comments_in_macro_exp.
10664 (COMMAND_LINE_OPTIONS): Add "-CC" option.
10665 (cpp_handle_option): Handle "-CC" option.
10666 * cpplex.c (save_comment): If saving a C++ comment in
10667 a directive, convert it to a C comment.
10668 (_cpp_lex_direct): Pass second comment start character to
10669 save_comment to indicate comment type.
10670 * cpplib.c (_cpp_handle_directive): If processing
10671 a "#define" directive and discard_comments_in_macro_exp
10672 is false, re-enable saving of comments.
10673 (lex_macro_node): If discard_comments_in_macro_exp is false,
10674 discard any comments before the macro identifier.
10675 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
10676 member.
10677 * cppmacro.c (cpp_get_token): If expanding a macro while
10678 processing a directive, discard any comments we might encounter.
10679 (parse_params): If discard_comments_in_macro_exp is false,
10680 ignore comments in the macro parameter list.
10681 * gcc.c (cpp_unique_options): Add "-CC" option.
10682 (option_map): Map "--comments-in-macros" to "-CC".
10683 * doc/cppopts.texi: Document "-CC" option.
10684 * f/lang-specs.h: Add "-CC" option.
10685 * testsuite/gcc.dg/cpp/maccom1.c: New test.
10686 * testsuite/gcc.dg/cpp/maccom2.c: New test.
10687 * testsuite/gcc.dg/cpp/maccom3.c: New test.
10688 * testsuite/gcc.dg/cpp/maccom4.c: New test.
10689 * testsuite/gcc.dg/cpp/maccom5.c: New test.
10690 * testsuite/gcc.dg/cpp/maccom6.c: New test.
10691
f1526122
JDA
106922002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
10693
10694 PR middle-end/6180
10695 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
10696
b1896e61
MM
106972002-04-06 Mark Mitchell <mark@codesourcery.com>
10698
0154eaa8
MM
10699 PR c++/5571
10700 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10701
b1896e61
MM
10702 PR opt/5120
10703 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
10704 RTX_UNCHANGING_P for the functions arguments when a tail call
10705 is made.
10706
b0148884
JM
107072002-04-06 Jason Merrill <jason@redhat.com>
10708
10709 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
10710 (parse_options_and_default_flags): Set them appropriately.
10711 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
10712
392fc5b0
HPN
107132002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
10714
10715 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
10716 here.
10717
10718 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
10719 semicolon.
10720
10721 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
10722 types come in by-reference. Fix typo in comment.
10723
2d69e3cb
DM
107242002-04-05 David S. Miller <davem@redhat.com>
10725
10726 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
10727 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
10728 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
10729 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
10730
107312002-04-05 David S. Miller <davem@redhat.com>
10732
10733 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
10734 are not going to emit return instructions, emit at least a nop
10735 for the sake of sane backtraces.
10736
5f9fb0e3
RH
107372002-04-05 Richard Henderson <rth@redhat.com>
10738
10739 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
10740
49f37a0d
JJ
107412002-04-05 Jakub Jeilnek <jakub@redhat.com>
10742
10743 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
10744
974a3101
AO
107452002-04-05 Alexandre Oliva <aoliva@redhat.com>
10746
10747 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
10748 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
10749 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
10750
2e04a694
AS
107512002-04-05 Andreas Schwab <schwab@suse.de>
10752
a40179bd 10753 * c-convert.c: Include c-common.h.
2e04a694
AS
10754 * Makefile.in (c-convert.o): Updated.
10755
1f785b7c
JJ
107562002-04-05 Jakub Jelinek <jakub@redhat.com>
10757
10758 * mklibgcc.in: Use separate libgcc.map for each multilib.
10759 * Makefile.in (distclean): Don't remove libgcc.map here.
10760
4d2fb38b
JJ
107612002-04-05 Jakub Jelinek <jakub@redhat.com>
10762
10763 * Makefile.in (s-mlib): Handle --disable-multilib by separate
10764 genmultilib invocation.
10765
bb63e5a0
RS
107662002-04-04 Richard Sandiford <rsandifo@redhat.com>
10767
10768 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
10769 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
10770 to num_gprs for symmetry.
10771 * config/mips/mips.c: Adjust accordingly.
10772
8ab80eaa
NB
107732002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10774
10775 * c-common.c (truthvalue_conversion): Rename, update.
10776 * c-common.h (c_common_truthvalue_conversion): New.
10777 * c-convert.c (convert): Update.
10778 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10779 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
10780 * c-typeck.c (build_binary_op, build_unary_op,
10781 build_conditional_expr): Update.
10782 * fold-const.c (constant_boolean_node, fold): Use langhook.
10783 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
10784 * langhooks.h (struct lang_hooks): New hook.
10785 * stmt.c (expand_decl_cleanup): Use langhook.
10786 * tree.h (truthvalue_conversion): Remove.
10787objc:
10788 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10789
a2e9374a
AM
107902002-04-05 Alan Modra <amodra@bigpond.net.au>
10791
10792 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
10793 Add rules to make null object file.
10794
64d08263
JB
107952002-04-04 Jim Blandy <jimb@redhat.com>
10796
10797 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
10798 macro formal parameter names.
10799
aa7634dd
DM
108002002-04-04 David S. Miller <davem@redhat.com>
10801
10802 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
10803
ecc114f7
RH
108042002-04-04 Richard Henderson <rth@redhat.com>
10805
10806 PR middle-end/5099
10807 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
10808 Support copies into and out of memory. Don't accept allows_reg
10809 and allows_mem as gospel.
10810
c4484b8f
RH
108112002-04-04 Richard Henderson <rth@redhat.com>
10812
10813 PR opt/6165
10814 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
10815 (write_dependence_p): Likewise.
10816
39002160
RH
108172002-04-04 Richard Henderson <rth@redhat.com>
10818
10819 * predict.c (estimate_bb_frequencies): Do frequency calculation
10820 with a volatile temporary.
10821
f53ebe71
UW
108222002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
10823
10824 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
10825
15e0ecab
JJ
108262002-04-04 Jakub Jelinek <jakub@redhat.com>
10827
10828 PR c++/6119
10829 * final.c (final_start_function): Don't bump profile_label_no here...
10830 (final_end_function): ...but here.
10831
ffd386b0
JJ
108322002-04-04 Jakub Jelinek <jakub@redhat.com>
10833
10834 * config/sparc/sparc.md (pic): New attribute.
10835 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
10836 into stack slots.
10837 (split after do_builtin_setjmp_setup): New.
10838
8b156b3e
JJ
108392002-04-04 Jakub Jelinek <jakub@redhat.com>
10840
10841 PR fortran/6106
10842 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
10843 change.
10844
014c0998
JJ
108452002-04-04 Jakub Jelinek <jakub@redhat.com>
10846
10847 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
10848 UNITS_PER_WORD for zero sized aggregates.
10849
4d8611d9
DM
108502002-04-03 David S. Miller <davem@redhat.com>
10851
10852 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
10853 one-character spec for this, just use %(link_gcc_c_sequence).
10854
b03ad99d
DM
108552002-04-03 David S. Miller <davem@redhat.com>
10856
10857 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
10858 handling.
10859
823fbbce
JDA
108602002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
10861
10862 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
10863 (DWARF_FRAME_RETURN_COLUMN): Move.
10864 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10865 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
10866 * pa.c (except.h, predict.h): Include.
10867 (FRP): Delete.
10868 (store_reg_modify, set_reg_plus_d): Revise prototypes.
10869 (output_ascii): Add cast.
10870 (store_reg_modify): Revise to add frame notes.
10871 (set_reg_plus_d): Likewise.
10872 (compute_frame_size): Include space for eh data registers in frame if
10873 the current function calls eh_return.
10874 (hppa_expand_prologue): Ensure register %r2 is saved if the current
10875 function calls eh_return. Save eh data registers if the current
10876 function calls eh_return. Fix code to add frame notes. Emit
10877 blockage to prevent insns with frame notes being scheduled in the
10878 delay slot of calls.
10879 (hppa_expand_epilogue): Restore eh data registers and do final stack
10880 adjustment if the current function calls eh_return. Don't add frame
10881 notes.
10882 (output_call): Revise for change in length of call insn. Don't do
10883 return pointer adjustment for an unconditional jump in the delay slot
10884 of a call when using frame notes.
10885 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
10886 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
10887 (ARG_POINTER_CFA_OFFSET): Define.
10888 * pa.md (return_external_pic): New pattern.
10889 (prologue): Correct formatting. Use return_external_pic if current
10890 function calls eh_return.
10891 (call_internal_symref, call_value_internal_symref,
10892 sibcall_internal_symref, sibcall_value_internal_symref): Change default
10893 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
10894 respectively.
10895 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
10896
10897 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
10898 list of targets to check using "nop" insn.
10899 * configure: Rebuilt.
10900
4078e224
AM
109012002-04-04 Alan Modra <amodra@bigpond.net.au>
10902
10903 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
10904
bbd7687d
DM
109052002-04-03 David S. Miller <davem@redhat.com>
10906
10907 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
10908 library sequence passed to the linker.
10909 (LINK_COMMAND_SPEC): Use it.
10910 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
10911 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
10912 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10913
659e5a7a
JM
109142002-04-03 Jason Merrill <jason@redhat.com>
10915
10916 * except.c (struct eh_status): Remove protect_list.
10917 (begin_protect_partials, end_protect_partials): Remove.
10918 (add_partial_entry): Remove.
10919 * except.h: Remove prototypes.
10920
10921 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
10922 expand_decl_cleanup_eh.
10923
10924 PR c++/5636
10925 * tree.h (CLEANUP_EH_ONLY): New macro.
10926 * stmt.c (expand_decl_cleanup_eh): New fn.
10927 (expand_cleanups): Check CLEANUP_EH_ONLY.
10928 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
10929 Use expand_decl_cleanup_eh.
10930 (expand_stmt): Adjust.
10931 * c-common.h: Adjust prototype.
10932
053d3344
HPN
109332002-04-04 Hans-Peter Nilsson <hp@axis.com>
10934
10935 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
10936 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
10937 (cris_target_asm_function_epilogue): Ditto.
10938 (cris_initial_frame_pointer_offset): Ditto.
10939 (cris_simple_epilogue): Ditto.
10940 (cris_expand_builtin_va_arg): Variable-size types come in
10941 by-reference.
10942
61ab5260
DM
109432002-04-03 David S. Miller <davem@redhat.com>
10944
10945 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
10946 little-endian.
10947 (set_fast_math): Correct 'fsr' type.
10948
ef4f94ac
RH
109492002-04-03 Richard Henderson <rth@redhat.com>
10950
36c2272c 10951 PR opt/3569
ef4f94ac
RH
10952 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
10953 * toplev.c (check_global_declarations): Use it.
10954 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
10955 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10956 (LANG_HOOKS_DECLS): Add it.
10957 * langhooks.c (lhd_warn_unused_global_decl): New.
10958 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10959 * c-objc-common.c (c_warn_unused_global_decl): New.
10960 * c-tree.h (c_warn_unused_global_decl): Declare.
10961 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10962
599bba86
NB
109632002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
10964
10965 * langhooks-def.h (lhd_set_decl_assembler_name,
10966 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
10967 (LANG_HOOKS_INITIALIZER): Update.
10968 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
10969 * langhooks.h (struct lang_hooks): New hook.
10970 * tree.c (set_decl_assembler_name): Move to langhooks.c.
10971 (lang_set_decl_assembler_name): Remove.
10972 (init_obstacks): Don't set hook.
10973 (decl_assembler_name): New function.
10974 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
10975 (decl_assembler_name): New.
10976 (lang_set_decl_assembler_name): Remove.
10977
cf7b8b0d
JJ
109782002-04-03 Jakub Jelinek <jakub@redhat.com>
10979
10980 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
10981 works properly with .hidden symbols.
10982 * configure: Rebuilt.
10983 * config.in: Rebuilt.
10984 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10985 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
10986 properly with .hidden symbols.
10987
faf6db38
JJ
109882002-04-03 Jakub Jelinek <jakub@redhat.com>
10989
10990 PR middle-end/6102
10991 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
10992 USE argument.
10993
68c17f30
RH
109942002-04-03 Richard Henderson <rth@redhat.com>
10995
10996 PR opt/4120
10997 * sched-rgn.c (sets_likely_spilled): New.
10998 (sets_likely_spilled_1): New.
10999 (add_branch_dependences): Use it.
11000
6584b4aa
RH
110012002-04-02 Richard Henderson <rth@redhat.com>
11002
11003 PR opt/4311
11004 * loop.h (LOOP_FIRST_PASS): New.
11005 * loop.c (strength_reduce): Mind it when deciding to unroll.
11006 * toplev.c (rest_of_compilation): Set it.
11007
0acf409f
DM
110082002-04-02 David S. Miller <davem@redhat.com>
11009
11010 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
11011 mems_ok_for_ldd_peep when the order of the loads being examined
11012 is reversed.
11013 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
11014 existing comment to increase comprehension of this situation.
11015
85654444
ZW
110162002-04-02 Zack Weinberg <zack@codesourcery.com>
11017
11018 * config/sh/sh.md: Don't use union real_extract.
11019
543828ca
RH
110202002-04-02 Richard Henderson <rth@redhat.com>
11021
11022 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
11023
39ed301b
DB
110242002-04-02 David O'Brien <obrien@FreeBSD.org>
11025
11026 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
11027 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
11028 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
11029 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
11030 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
11031 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
11032 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
11033 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
11034 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
11035 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
11036 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
11037 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
11038 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
11039 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
11040 Include as many configury headers via tm_file as possible. This
11041 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
11042 * config/openbsd-oldgas.h: New file.
11043 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
11044 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
11045 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
11046 config/i386/i386-coff.h, config/i386/i386-interix.h,
11047 config/i386/iscdbx.h, config/i386/linux-aout.h,
11048 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
11049 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
11050 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
11051 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
11052 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
11053 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
11054 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
11055 config/i386/vxi386.h: Do not directly include configury headers.
11056 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
11057 Directly include configury headers that are no longer automatically
11058 included by the above headers.
11059 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
11060 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
11061 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
11062 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
11063 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
11064 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
11065 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
11066 (TARGET_VERSION): Define.
11067 * config/i386/beos-elf.h, config/i386/freebsd.h,
11068 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
11069 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
11070 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
11071 config/i386/sco5.h, config/i386/sysv4.h
11072 (TARGET_VERSION): Do not need to protect.
11073 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
11074 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
11075 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
11076 config/i386/i386-interix.h, config/i386/linux-aout.h,
11077 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
11078 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
11079 (YES_UNDERSCORES): Do not define - not needed.
11080 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
11081 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11082 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
11083 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
11084 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11085 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
11086 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
11087 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
11088
9432c136
EB
110892002-04-02 Eric Botcazou <ebotcazou@multimania.com>
11090 Richard Henderson <rth@redhat.com>
11091
11092 PR c/5484
11093 * function.c (assign_temp): Accept either type or decl argument.
11094 Detect variables whose size is too large to fit into an integer.
11095 * stmt.c (expand_decl): Pass the decl, not the type.
11096
058b1275
DB
110972002-04-02 David O'Brien <obrien@FreeBSD.org>
11098
11099 * protoize.c: Match include directory usage with cppdefault.c.
11100
5add6d1a 111012002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 11102 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
11103
11104 * combine.c (simplify_comparison): Avoid narrowing a comparison
11105 with a paradoxical subreg when doing so would drop signficant bits.
11106
1e533e4b
SE
111072002-04-02 Steve Ellcey <sje@cup.hp.com>
11108
11109 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
11110 if POINTERS_EXTEND_UNSIGNED is defined.
11111
7a145e92
RH
111122002-04-02 Richard Henderson <rth@redhat.com>
11113
11114 PR opt/3967
11115 * local-alloc.c (contains_replace_regs): LO_SUM may contain
11116 replace regs.
11117
3a079822
RH
111182002-04-02 Richard Henderson <rth@redhat.com>
11119
11120 * doc/standards.texi: Document required freestanding libc entry points.
11121
c94ccb87
AM
111222002-04-02 Alan Modra <amodra@bigpond.net.au>
11123
11124 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
11125 associated splitter. Remove MQ constraint.
11126 (ctrdi_internal4): Correct CCmode clobber.
11127
fe660a1a
JDA
111282002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11129
11130 * milli64.S ($$dyncall): New function.
11131 * t-linux (LIB1ASMFUNCS): Revise module list.
11132 (LIB1ASMSRC): Use pa/milli64.S.
11133
eadc0202
RH
111342002-04-02 Richard Henderson <rth@redhat.com>
11135
11136 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
11137 rename solaris_sys_varargs_h.
11138
a1471322
RK
11139Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11140
11141 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
11142 the same mode as its component.
11143
c8b94768
RH
111442002-04-02 Richard Henderson <rth@redhat.com>
11145
11146 PR opt/190
11147 * final.c (this_is_asm_operands): Export.
11148 * output.h (this_is_asm_operands): Declare.
11149 * config/i386/i386.c (print_operand): Error odd asm operands.
11150
161eb4fc
RH
111512002-04-02 Richard Henderson <rth@redhat.com>
11152
11153 PR opt/420
11154 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
11155
b88a94c6
RH
111562002-04-01 Richard Henderson <rth@redhat.com>
11157
11158 PR target/1538
11159 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
11160 * fixinc/fixincl.x: Rebuild.
11161
72e32876
RH
111622002-04-01 Richard Henderson <rth@redhat.com>
11163
11164 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
11165 (atomic_alloc, atomic_free): New.
11166 (SIZE, MASK_FOR, PTR_IN): New.
11167 (emergency_reg_state, emergency_reg_state_free): New.
11168 (emergency_labeled_state, emergency_labeled_state_free): New.
11169 (reg_state_alloced, labeled_state_alloced): New.
11170 (alloc_reg_state, free_reg_state): New.
11171 (alloc_label_state, free_label_state, free_label_states): New.
11172 (push, pop, dup_state_stack, free_state_stack): Use them.
11173 (desc_label_state): Likewise.
11174 (uw_frame_state_for): Free label states and state stack.
11175 (uw_update_reg_address): Eliminate warnings.
11176
84d76074
VM
111772002-04-01 Vladimir Makarov <vmakarov@redhat.com>
11178
11179 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 11180 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 11181
dffd7eb6
NB
111822002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11183
11184 * c-decl.c (grokdeclarator): Update.
11185 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11186 * c-tree.h (c_mark_addressable): New.
11187 * c-typeck.c (default_function_array_conversion, build_unary_op,
11188 build_array_ref, convert_for_assignment): Update.
11189 (mark_addressable): Rename.
11190 * calls.c (try_to_integrate, expand_call): Use langhook.
11191 * expr.c (expand_expr): Use langhook.
11192 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
11193 * langhooks.h (struct lang_hooks): New hook.
11194 * stmt.c (expand_asm_operands): Use langhook.
11195 * tree.h (mark_addressable): Remove.
11196objc:
11197 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11198
544ef5b5
BW
111992002-04-01 Bob Wilson <bob.wilson@acm.org>
11200
9be40833
RH
11201 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
11202 in previous change.
544ef5b5 11203
bcf88f9b
BW
112042002-04-01 Bob Wilson <bob.wilson@acm.org>
11205
11206 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
11207 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
11208
ceef8ce4
NB
112092002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11210
11211 * c-common.c (unsigned_conversion_warning, convert_and_check,
11212 unsigned_type, signed_type, shorten_compare,
11213 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
11214 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
11215 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
11216 New.
11217 * c-decl.c (grokdeclarator): Update.
11218 * c-format.c (check_format_types): Update.
11219 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11220 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11221 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
11222 * convert.c (convert_to_integer): Use new hooks.
11223 * expmed.c (make_tree): Use new hooks.
11224 * expr.c (store_expr): Use new hooks.
11225 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
11226 all_ones_mask_p, unextend, fold): Use new hooks.
11227 * langhooks.h (struct lang_hooks_for_types): New hooks.
11228 * tree.h (signed_or_unsigned_type, signed_type,
11229 unsigned_type): Remove.
11230objc:
11231 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11232 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11233
1d9ad0e0
RH
112342002-03-31 Richard Henderson <rth@redhat.com>
11235
11236 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
11237 (desc_frgr_mem): Fix reference to f16-f31.
11238
d544bc39
KG
112392002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11240
11241 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
11242 RTVEC_ELT): Const-ify.
d8750784
KG
11243 * varray.h (VARRAY_CHECK): Const-ify.
11244 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
11245 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 11246
b18101c7
NB
112472002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11248
11249 * diagnostic.c: Include langhooks-def.h.
11250 * Makefile.in (diagnostic.o): Update.
11251
48a7a235
NB
112522002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11253
11254 * c-common.c (c_unsafe_for_reeval): Rename.
11255 * c-common.h (c_unsafe_for_reeval): Rename.
11256 * c-decl.c (finish_incomplete_decl): Rename.
11257 (c_init_decl_processing): Don't set langhook.
11258 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11259 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11260 * c-objc-common.c (c_objc_common_init): Don't set langhook.
11261 * c-tree.h (finish_incomplete_decl): Rename.
11262 * langhooks-def.h (lhd_unsafe_for_reeval): New.
11263 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
11264 (LANG_HOOKS_INITIALIZER): Update.
11265 * langhooks.c (lhd_unsafe_For_reeval): New.
11266 * langhooks.h (struct langhooks): New hooks.
11267 * toplev.c (incomplete_decl_finalize_hook): Remove.
11268 (wrapup_global_declarations): Update.
11269 * tree.c (lang_unsafe_for_reeval): Remove.
11270 (unsafe_for_reeval): Update.
11271 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
11272 Remove.
11273objc:
11274 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11275 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11276
7cb32822
NB
112772002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11278
11279 * diagnostic.c (print_error_function): Remove.
11280 (default_print_error_function): Rename.
11281 (report_error_function): Update.
11282 * diagnostic.h (print_error_function): Remove.
11283 (default_print_error_function): Remove.
11284 * langhooks-def.h (struct diagnostic_context): Predeclare.
11285 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
11286 (LANG_HOOKS_INITIALIZER): Update.
11287 * langhooks.h (struct diagnostic context): Predeclare.
11288 (struct lang_hooks): New hook.
11289
1db02437
FS
112902002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11291
11292 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
11293 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
11294 !flag_pic.
11295 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
11296 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
11297 of PIC_OFFSET_TABLE_REGNUM thruout.
11298 * config/rs6000/rs6000.md: Likewise.
11299 * config/rs6000/darwin.h: Likewise.
11300
3bf1e984
RK
11301Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11302
11303 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
11304 unsigned HOST_WIDE_INT, not unsigned int.
11305
0864c526
JJ
113062002-03-31 Jakub Jelinek <jakub@redhat.com>
11307
11308 PR middle-end/6096, middle-end/6098, middle-end/6099
11309 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
11310 CODE_LABELs.
11311 (fill_slots_from_thread): Likewise.
11312
105b2084
JJ
113132002-03-31 Jakub Jelinek <jakub@redhat.com>
11314
11315 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
11316 floating fields in float regs.
11317 (function_arg_record_value_2): Likewise.
11318
db08fddf
HPN
113192002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11320
11321 * config/mmix/mmix.md (define_constants): Remove misleading
11322 FIXME. Add MMIX_fp_rO_OFFSET.
11323 ("nonlocal_goto_receiver"): Don't have stack-frame address of
11324 saved rO as part of the pattern. Remove FIXME.
11325 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
11326 here, at output-time.
11327
4f31cce8
JJ
113282002-03-31 Jakub Jelinek <jakub@redhat.com>
11329
11330 PR middle-end/6100
11331 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
11332 REG_BR_PRED.
11333 (output_v9branch): Likewise.
11334
ba2b7435
AO
113352002-03-31 Alexandre Oliva <aoliva@redhat.com>
11336
11337 * gcc.c: Revert previous patch for now.
11338 * config/i386/djgpp.h: Likewise.
11339
aa66aa5f 113402002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
11341
11342 * config/mmix/crti.asm (_init): Register _fini with atexit.
11343 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
11344
41ba8a20
RH
113452002-03-31 Richard Henderson <rth@redhat.com>
11346
11347 PR target/3997
11348 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
11349 (ASM_OUTPUT_DEF_FROM_DECLS): New.
11350
adc186ef
RH
113512002-03-31 Richard Henderson <rth@redhat.com>
11352
11353 * libgcc2.c (__bb_exit_func): Make static.
11354
9be40833 11355 * config/alpha/alpha.md (trap): New.
a7648399 11356
9602f5a0
RH
113572002-03-31 Richard Henderson <rth@redhat.com>
11358
11359 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
11360 promoted argument types; build trap.
11361 (expand_builtin_trap): New.
11362 (expand_builtin): Use it.
11363 * stmt.c (expand_nl_goto_receivers): Likewise.
11364 * expr.h (expand_builtin_trap): Declare.
11365 * libfuncs.h (LTI_abort, abort_libfunc): New.
11366 * optabs.c (init_optabs): Init abort_libfunc.
11367
1a0a7539
AO
113682002-03-31 Alexandre Oliva <aoliva@redhat.com>
11369
11370 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
11371 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 11372 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
11373 shared_name in the second copy.
11374 (init_spec): Test for duplicate
11375 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
11376
b5de1a27
DM
113772002-03-30 David S. Miller <davem@redhat.com>
11378
11379 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11380 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
11381
78414d74 113822002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 11383 Richard Henderson <rth@redhat.com>
78414d74 11384
9be40833
RH
11385 * regmove.c (combine_stack_adjustments_for_block): Avoid
11386 emitting a stack adjustment of zero bytes. Let delete_insn
11387 update bb->head.
78414d74 11388
33074e5f
RH
113892002-03-30 Richard Henderson <rth@redhat.com>
11390
11391 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
11392 (sparc_emitting_epilogue): New.
11393 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
11394 * config/sparc/sparc-protos.h: Update.
11395 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
11396 (TARGET_SWITCHES): Update.
11397 * config/sparc/sparc.md (return): Remove.
11398 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
11399 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
11400 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
11401 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11402 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
11403 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
11404 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
11405 Remove MASK_EPILOGUE.
11406 * doc/invoke.texi: Update.
11407
606cc056
DB
114082002-03-30 Daniel Berlin <dan@dberlin.org>
11409
11410 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
11411 CPP will start the file for us.
7b2e1077 11412
bdbe5b8d
RH
114132002-03-30 Richard Henderson <rth@redhat.com>
11414
11415 PR target/5446
11416 * config/ia64/ia64.c (group_barrier_needed_p): Special case
11417 prologue_allocate_stack.
11418 (ia64_single_set): Use insn codes for recognition of special
11419 cases, not rtl matching.
11420 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
11421
4ab95d82
JH
11422Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
11423
11424 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
11425
89a8b315
RH
114262002-03-30 Richard Henderson <rth@redhat.com>
11427
11428 PR target/6032
11429 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
11430 or -fomit-frame-pointer with profiling.
11431 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11432 (FUNCTION_PROFILER): Do nothing.
11433 (PROFILE_HOOK): New.
11434 * config/sparc/sparc.c (sparc_override_options): Don't check
11435 code models for profiling.
11436 (sparc_function_profiler): Remove.
11437 (sparc_profile_hook): New.
11438 * config/sparc/sparc-protos.h: Update.
11439
30984c57
JJ
114402002-03-30 Jakub Jelinek <jakub@redhat.com>
11441
11442 PR optimization/6086
11443 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
11444 of SUBREG of volatile MEM or because the MEM was mode dependent,
11445 return CLOBBER instead of unmodified SUBREG.
11446
1540f9eb
JH
11447Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
11448
89a8b315
RH
11449 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
11450 when not optimizing.
1540f9eb
JH
11451
11452 * toplev.c (rest_of_compilation): Cann mark_constant_function
11453 only when optimizing.
11454
89a8b315
RH
11455 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
11456 are NULL.
1540f9eb
JH
11457
11458 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
11459 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
11460 (try_optimize_cfg): clear all AUX fields.
11461
11462 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
11463 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
11464 (ix86_address_cost): Be prepared for SUBREGed registers.
11465 (legitimate_address_p): Accept SUBREGed registers.
11466
70d95bac
RH
114672002-03-29 Richard Henderson <rth@redhat.com>
11468
11469 PR target/5672
11470 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
11471
d3294cd9
FS
114722002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11473
11474 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
11475 for aggregate and TFmode types.
11476
a106c875
HPN
114772002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
11478
11479 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
11480
7d7a5d6f
RH
114812002-03-29 Richard Henderson <rth@redhat.com>
11482
6e2d670b 11483 PR target/5886
7d7a5d6f
RH
11484 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
11485 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
11486
30c99a84
RH
114872002-03-29 Richard Henderson <rth@redhat.com>
11488
6e2d670b 11489 PR target/6041
30c99a84
RH
11490 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
11491 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
11492 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
11493 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
11494 conditional.
11495 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
11496
02a566dc
DJ
114972002-03-29 Dale Johannesen <dalej@apple.com>
11498
11499 * loop.c (combine_movables): Do allow combination of pseudos.
11500
bc3a44db
LR
115012002-03-29 Loren J. Rittle <ljrittle@acm.org>
11502
11503 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
11504 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
11505 No functional change except ...
11506 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
11507 * doc/install.texi (*-*-freebsd*): Document port configuration.
11508
b0c48229
NB
115092002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
11510
11511 * Makefile.in (convert.o, calls.o, expmed.o): Update.
11512 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
11513 Use new hooks.
11514 * builtin-types.def (BT_PTRMODE): Update.
11515 * c-common.c (type_for_size): Rename c_common_type_for_size.
11516 (type_for_mode): Similarly.
11517 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
11518 Use new hook.
11519 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
11520 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
11521 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
11522 Redefine.
11523 * c-typeck.c (common_type, comptypes, default_conversion):
11524 Use new hooks.
11525 * calls.c: Include langhooks.h.
11526 (emit_library_call_value_1): Use new hooks. Avoid redundant
11527 calls.
11528 * convert.c: Include langhooks.h
11529 (convert_to_pointer, convert_to_integer): Use new hooks.
11530 * except.c (init_eh): Similarly.
11531 * expmed.c: Include langhooks.h.
11532 (expand_mult_add): Use new hooks.
11533 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
11534 try_casesi): Similarly.
11535 * fold-const.c (optimize_bit_field_compare, make_range,
11536 decode_field_reference, fold_truthop, fold): Similarly.
11537 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
11538 put_var_into_stack): Similarly.
11539 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
11540 LANG_HOOKS_TYPE_FOR_SIZE): New.
11541 (LANG_HOOKS_TYPES_INITIALIZER): Update.
11542 * langhooks.h (lang_hooks_for_types): New hooks.
11543 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
11544 * tree.c (get_unwidened, get_narrower): Similarly.
11545 * tree.h (type_for_mode, type_for_size): Remove.
11546 * varasm.c (force_const_mem): Use new hooks.
11547 * utils2.c (nonbinary_modular_operation): Update.
11548objc:
11549 * objc-act.c (handle_impent): Update.
11550 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
11551 Redefine.
11552
e206a74f
SE
115532002-03-29 Steve Ellcey <sje@cup.hp.com>
11554
11555 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
11556 * config/ia64/ia64.c (basereg_operand): New.
11557 * config/ia64/ia64-protos.h (basereg_operand): Declare.
11558 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
11559
7d9b6378
HPN
115602002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
11561
11562 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
11563 unwind information when frame_pointer_needed.
11564 (mmix_assemble_integer): Tweak wording in comment.
11565
f1e639b1
NB
115662002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
11567
11568 * Makefile.in (except.o): Update.
11569 * except.c: Include langhooks.h.
11570 (init_eh): Use langhook.
11571 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
11572 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
11573 (LANG_HOOKS_INITIALIZER): Update.
11574 * langhooks.h (lang_hooks_for_types): New.
11575 (struct lang_hooks): Add it.
11576 * tree.c (make_lang_type_fn, make_lang_type): Remove.
11577 * tree.h (make_lang_type_fn, make_lang_type): Remove.
11578config:
11579 * alpha/alpha.c: Include langhooks.h.
11580 (alpha_build_va_list): Use langhook.
11581 * d30v/d30v.c: Include langhooks.h.
11582 (d30v_build_va_list): Use langhook.
11583 * i386/i386.c: Include langhooks.h.
11584 (ix86_build_va_list): Use langhook.
11585 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
11586 * s390/s390.c: Include langhooks.h.
11587 (s390_build_va_list): Use langhook.
11588 * stormy16/stormy16.c: Include langhooks.h.
11589 (stormy16_build_va_list): Use langhook.
11590
f17f9332
JJ
115912002-03-29 Jakub Jelinek <jakub@redhat.com>
11592
11593 PR c++/5964
11594 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
11595 attributes.
11596 (length): Compute variable length for branches/calls/jumps here.
11597 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
11598 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
11599 define branch_type attribute.
11600 (divsi3_sp32): Maximum length is 6 not 7.
11601 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
11602 call_address_untyped_struct_value_sp32,
11603 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
11604 * config/sparc/sparc.c (empty_delay_slot): New function.
11605 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
11606 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
11607
0a0440c9
JJ
116082002-03-29 Jakub Jelinek <jakub@redhat.com>
11609
11610 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
11611 nonzero_bits if not needed.
11612 (nonzero_bits) [XOR]: Likewise.
11613 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
11614 reg_last_set_mode and mode are both MODE_INT, but not equal.
11615 (record_value_for_reg): Compute reg_last_set_nonzero_bits
11616 in nonzero_bits_mode for MODE_INT modes.
11617
c9045f47
RH
116182002-03-28 Richard Henderson <rth@redhat.com>
11619
11620 PR target/5715
11621 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
11622 to GAS. Correct drift between alternatives.
11623
f8ed1958
RH
116242002-03-28 Richard Henderson <rth@redhat.com>
11625
11626 PR target/6087
11627 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
11628
54e20385
LR
116292002-03-28 Alexandre Oliva <aoliva@redhat.com>
11630
11631 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
11632 emulation to the linker.
11633
116342002-03-28 Loren J. Rittle <ljrittle@acm.org>
11635
11636 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
11637 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11638
8bc52806
JL
11639Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
11640
11641 * combine.c (simplify_and_const_int): Make sure to apply mask
11642 when force_to_mode returns a constant integer. PR3311.
11643
279dccc5
JDA
116442002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11645
11646 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
11647
62aaa62c
GP
116482002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11649
11650 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
11651 and Objective-C Dialect Options.
11652
b8de5050
RH
116532002-03-28 Richard Henderson <rth@redhat.com>
11654
11655 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
11656 comparison should be done vs !=0 not >0 return code. Tidy cases.
11657
619708cc
RH
116582002-03-28 Richard Henderson <rth@redhat.com>
11659
11660 * c-decl.c (finish_function): New arg can_defer_p. Pass it
11661 on to c_expand_body.
11662 * c-tree.h (finish_function): Update decl.
11663 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
11664
b1d874d7
JH
11665Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
11666
11667 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
11668
f5eb5fd0
JH
11669Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
11670
11671 * rtlanal.c: Include flags.h
11672 (may_trap_p): Do not mark FP operations if trapping
11673 if !flag_trapping_math
11674 * Makefile.in (rtlanal.o): Add dependency on flag.h
11675 * ifcvt.c (noce_operand_ok): Avoid the lameness.
11676
81b4c798
ZW
116772002-03-27 Zack Weinberg <zack@codesourcery.com>
11678
11679 * mips.md: Use dconst1, not 1.0, as first argument of
11680 REAL_VALUE_LDEXP. Don't use union real_extract.
11681
55a2ea2a
AM
116822002-03-28 Alan Modra <amodra@bigpond.net.au>
11683
11684 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
11685 rather than $target. Heed program_prefix and
11686 program_transform_name. Search for gas in cross-compiler case too.
11687 "test -x" rather than "test -f".
11688 (gcc_cv_ld): Likewise.
11689 (gcc_cv_nm): Heed program_prefix and program_transform_name.
11690 (gcc_cv_objdump): Likewise.
11691 * configure: Regenerate.
11692
7ffb4fd2
NB
116932002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11694
11695 * Makefile.in (attribs.o): Update.
11696 * attribs.c: Include langhooks.h.
11697 (decl_attributes): Use langhook.
11698 * c-decl.c (insert_default_attributes): Rename.
11699 * c-tree.h (c_insert_default_attributes): New.
11700 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
11701 (LANG_HOOKS_INITIALIZER): Update.
11702 * langhooks.h (struct lang_hooks): New hook.
11703 * tree.h (insert_default_attributes): Remove.
11704objc:
11705 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
11706
e4dbaed5
AS
117072002-03-27 Andreas Schwab <schwab@suse.de>
11708
11709 * config/i386/i386.c (classify_argument): Also check for
11710 QUAL_UNION_TYPE.
11711
18b467f1
RO
117122002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11713
11714 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
11715 any more.
11716
d337d653
JH
11717Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
11718
11719 * i960.md (ret): Set PC.
11720 (nonlocal_goto): Fix expander.
11721 * builtins.c (epxand_builin_longjmp): Check that we've emitted
11722 some jump or call.
11723
218aa620
JH
11724Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
11725
11726 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
11727 of libcall regions.
11728
e27a4eaf
ZD
11729Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11730
11731 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
11732 assigning to BLOCK_FOR_INSN directly.
11733
8a12f34c
JH
11734Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
11735
11736 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
11737
c9d892a8
NB
117382002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11739
11740 * c-common.c (c_expand_expr): Fix prototype.
11741 * c-common.h (c_expand_expr): Always declare, update.
11742 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11743 * c-objc-common.c (c_objc_common_init): No global hook.
11744 * expr.c (expand_expr): Use langhook.
11745 * expr.h (enum expand_modifier): Conditionally declare.
11746 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
11747 (LANG_HOOKS_INITIALIZER): Update.
11748 * langhooks.c (lhd_expand_expr): New.
11749 * langhooks.h (struct lang_hooks): New hook.
11750 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
11751 (lang_independent_init): Don't default hook.
11752objc:
11753 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11754
6dad5a56
RH
117552002-03-27 Richard Henderson <rth@redhat.com>
11756
11757 PR target/6054
11758 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
11759 TARGET_CONST_GP. Simplify conditions.
11760
59f96879
RH
117612002-03-27 Richard Henderson <rth@redhat.com>
11762
11763 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11764 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
11765 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
11766
f3f1190d
DS
117672002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
11768
11769 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
11770 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
11771 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
11772 Remove unnecessary masks.
11773 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
11774 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
11775 -mwindows, -mdll switches and their negations.
11776
31c816cf
NB
117772002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11778
11779 * gcc-common.c (lang_mark_false_label_stack): Remove.
11780 * ggc.h (lang_mark_false_label_stack): Similarly.
11781
7b2e1077 117822002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
11783
11784 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
11785
11786 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
11787 or __rtems_ is defined.
11788
1ef9531b
RH
117892002-03-26 Richard Henderson <rth@redhat.com>
11790
11791 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
11792 if a non-trivial load was emitted.
11793 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
11794 in high+extra+low case.
11795
300d4093
RH
117962002-03-26 Richard Henderson <rth@redhat.com>
11797
11798 * config.gcc (sparc*-solaris): Use float_format=sparc.
11799
b3689904
RH
118002002-03-26 Richard Henderson <rth@redhat.com>
11801
11802 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11803 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
11804 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
11805 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
11806 (WINT_TYPE_SIZE): Fix at 32.
11807
1eefb6c1
RH
118082002-03-26 Richard Henderson <rth@redhat.com>
11809
11810 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
11811 until after eh landing pad generation.
11812 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
11813 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
11814
361ea006
RH
118152002-03-26 Richard Henderson <rth@redhat.com>
11816
11817 * expr.h (ADD_PARM_SIZE): One more convert for INC.
11818
1de38a88
PE
118192002-03-26 Phil Edwards <pme@gcc.gnu.org>
11820
11821 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
11822 and warning switches.
11823 (cc1_options): Likewise.
11824
d7e60e95 118252002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 11826
d7e60e95
HB
11827 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
11828 Restore more of the signal context. Set no_reg_stack_frame.
11829 * config/ia64/unwind-ia64.c (unw_state_record):
11830 Add no_reg_stack_frame, comments.
11831 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
11832 (uw_update_context): Adjust bsp when unwinding from leaf,
11833 but not signal frame.
11834
7032923b
DE
118352002-03-26 David Edelsohn <edelsohn@gnu.org>
11836
11837 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
11838
8be56275
BW
118392002-03-26 Bob Wilson <bob.wilson@acm.org>
11840
11841 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
11842
56fbb855
RE
118432002-03-26 Richard Earnshaw <rearnsha@arm.com>
11844
11845 PR target/5621
11846 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
11847 "Add a pool_range attribute", which was lost during the ARM/Thumb
11848 merge.
11849
3437320b
BW
118502002-03-26 Bob Wilson <bob.wilson@acm.org>
11851
11852 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
11853 a register into the MAC16 accumulator.
11854
173028e5
AC
118552002-03-26 Andrew Cagney <ac131313@redhat.com>
11856
11857 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
11858 (Warning Options): Document -Wswitch-enum.
11859 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
11860 -Wswitch.
11861 (warn_switch_enum): Define variables.
11862 * flags.h (warn_switch_enum): Declare variables.
11863 * stmt.c (expand_end_case_type): When warn_switch_enum /
11864 -Wswitch-enum, perform switch checks.
11865 Fix PR c/5044.
7b2e1077 11866
e14365a7
RE
118672002-03-26 Richard Earnshaw <rearnsha@arm.com>
11868
11869 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
11870 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
11871 (reload_muladdsi_compare0_scratch): Delete.
11872
46fc709d
LR
118732002-03-26 Loren J. Rittle <ljrittle@acm.org>
11874
11875 * doc/install.texi (*-*-freebsd*): Update.
11876
f36dea3c
RH
118772002-03-26 Richard Henderson <rth@redhat.com>
11878
8e5fe23f
RH
11879 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
11880 (SUB_PARM_SIZE): Cast DEC to ssizetype.
11881
11882 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
11883 types from the normal argument frame.
11884
f36dea3c
RH
11885 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
11886 variable sized objects by reference.
11887 (sparc_va_arg): Receive them by reference too.
11888
1447dc69
HP
118892002-03-26 Hartmut Penner <hpenner@de.ibm.com>
11890
11891 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 11892 code to not restoring global registers.
1447dc69 11893
4f0ade92
NB
118942002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
11895
11896 * Makefile.in (ggc-common.o): Update.
11897 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
11898 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11899 * c-tree.h (c_mark_tree): New.
11900 * ggc-common.c: Include langhooks.h.
11901 (gcc_mark_trees): Use new langhook.
11902 * ggc-callbacks.c: Delete file.
11903 * ggc.h (lang_mark_tree): Remove.
11904 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
11905 (LANG_HOOKS_INITIALIZER): Update.
11906 * langhooks.h (struct lang_hooks): New hook.
11907objc:
11908 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11909
caba570b
ZW
119102002-03-25 Zack Weinberg <zack@codesourcery.com>
11911
11912 * doc/cpp.texi: Exclude entire Top node from printed manual.
11913 Move option index after directive index. Insert page breaks
11914 before GFDL and concept index. Index environment variables
11915 with command line options.
11916 * doc/cppenv.texi: Use @vtable for environment variable list.
11917 Add paragraph explaining semantics of empty elements in path
11918 variables. Exclude a cross-reference to Fishkill from the
11919 manpage. Remove an unnecessary cross-reference of the entry
11920 right above the referer. Don't use @anchor in text that goes
11921 into manpage.
11922 * doc/cppopts.texi: Cross-reference the environment variables
11923 section, not the specific environment variable, for consistency.
11924
6b2e80b7
RH
119252002-03-25 Richard Henderson <rth@redhat.com>
11926
11927 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
11928 anywhere in the block. Don't refer to insns that have been
11929 removed from the chain. Iterate backward through the new insns.
11930 Don't refer to edges that have been removed.
11931
67e469d7
AM
119322002-03-26 Alan Modra <amodra@bigpond.net.au>
11933
11934 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
11935 test for overflow of constant.
11936
f2356393
RE
119372002-03-25 Richard Earnshaw <rearnsha@arm.com>
11938
11939 PR target/2623
11940 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
11941 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
11942 these patterns on arm_archv4.
11943
355426ab
DS
119442002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
11945
11946 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
11947 int".
11948
15e5ad76
ZW
119492002-03-25 Zack Weinberg <zack@codesourcery.com>
11950
11951 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
11952 float_handled, float_handler, float_signal, set_float_handler,
11953 and do_float_handler. Set handler for SIGFPE to crash_signal.
11954 * toplev.h: Don't prototype do_float_handler.
11955
11956 * c-lex.c: Fold parse_float into lex_number. Make warning
11957 about portability of hex float constants more informative, and
11958 don't issue it on top of a syntax error.
11959 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
11960 their callers.
11961 * real.h: Define REAL_VALUE_ABS here...
11962 * simplify-rtx.c: ... not here. Fold check_fold_consts,
11963 simplify_unary_real, simplify_binary_real, and
11964 simplify_binary_is2orm1 into their callers.
11965 * tree.c: Fold build_real_from_int_cst_1 into caller.
11966
11967 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
11968
11969 * tsystem.h: Include float.h here...
11970 * libgcc2.c: ... not here.
11971
56ae9405
NC
119722002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
11973
11974 Fixes for: PR bootstrap/3591, target/5676
11975 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
11976 defined. Do not disable exceptions or rtti.
11977 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
11978 mcore.h. Disable exceptions and rtti, since they are not
11979 supported by EPOC.
11980
c88770e9
NB
119812002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
11982
11983 * c-decl.c (maybe_build_cleanup): Remove.
11984 * expr.c (expand_expr): Use langhook.
11985 * langhooks-def.h (lhd_return_null_tree,
11986 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
11987 (LANGHOOKS_INITIALIZER): Update.
11988 * langhooks.c (lhd_return_null_tree): New.
11989 * langhooks.h (struct lang_hooks): New hook.
11990 * tree-inline.c (initialize_inlined_parameters): Use langhook.
11991 * tree.h (maybe_build_cleanup): Remove.
11992
2ed1f154
JJ
119932002-03-25 Jakub Jelinek <jakub@redhat.com>
11994
11995 * regrename.c (build_def_use): Move recog_memoized
11996 before extract_insn.
11997
6ddae612
JJ
119982002-03-25 Jakub Jelinek <jakub@redhat.com>
11999
12000 PR target/6043
12001 * expr.c (emit_group_store): Handle storing into CONCAT.
12002
ea475b23
JJ
120032002-03-25 Jakub Jelinek <jakub@redhat.com>
12004
12005 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
12006 corresponding MATCH_DUP.
12007
e7d482b9
RH
120082002-03-24 Richard Henderson <rth@redhat.com>
12009
cd39fc13
RH
12010 * unroll.c (unroll_loop): Zero label_map.
12011
e7d482b9
RH
12012 * gcse.c: Include except.h.
12013 * Makefile.in (gcse.o): Update.
12014
1bd6476f
RH
120152002-03-24 Richard Henderson <rth@redhat.com>
12016
12017 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
12018 Do resolve_unique_section before shared data clause.
12019
2e6c150a
RH
120202002-03-24 Richard Henderson <rth@redhat.com>
12021
12022 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
12023
b29afcf8
RH
120242002-03-24 Richard Henderson <rth@redhat.com>
12025
15e5ad76 12026 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
12027 generated in the middle of a block. Do global life update if
12028 zapped EH edges.
12029
05ed1296
RH
120302002-03-24 Richard Henderson <rth@redhat.com>
12031
12032 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
12033
3ddbb8a9
NB
120342002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12035
12036 preprocessor/3951
15e5ad76 12037 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
12038 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
12039 (init_dependency_output): Don't make no_output decision here.
12040
740b77b6
AC
120412002-03-24 Andrew Cagney <ac131313@redhat.com>
12042
12043 * stmt.c (check_for_full_enumeration_handling): Remove tests of
12044 warn_switch. Update description.
12045 (expand_end_case_type): Call check_for_full_enumeration_handling
12046 when warn_switch.
12047
7590cfd0
SC
120482002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12049
12050 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
12051 (m68hc11_split_move): Call it to see if the source and destination
12052 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 12053 source an offsetable memory operand and generate an add.
7590cfd0 12054
2e3d3481
SC
120552002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12056
12057 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
12058 register for operand 2.
12059 ("*subsi3_zero_extendqi"): Likewise.
12060 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
12061 bits so that it is compatible with a pop.
12062 ("*andhi3_gen"): Likewise.
12063 ("xorhi3"): Likewise.
12064
2784528c
NB
120652002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12066
12067 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
12068 -pedantic here...
12069 (cpp_post_options): ... not here.
12070
aaf93206
NB
120712002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12072 Aldy Hernandez <aldyh@redhat.com>
12073
12074 Removal of separate preprocessor cpp0.
12075
12076 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
12077 cpp0, install-common): Update.
12078 * c-common.c (flag_preprocess_only): New.
12079 (c_common_init): Preprocess for -E.
12080 * c-common.h (flag_preprocess_only): New.
12081 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
12082 * c-objc-common.c (c_init_decl_processing): Exit quickly
12083 for NULL return from c_common_init.
12084 * cpplib.h (cpp_preprocess_file): New.
12085 * cppmain.c (main, general_init, pfile, progname): Remove.
12086 (do_preprocessing): Rename cpp_preprocess_file, don't call
12087 cpp_finish. Don't close stdout here.
12088 (setup_callbacks): Update prototype.
12089 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
12090 Update.
12091 * tradcpp.c (main): Ignore -quiet.
12092objc:
12093 * lang-specs.h (default_compilers): Preprocess with cc1obj.
12094
c6e6f5c1
RH
120952002-03-24 Richard Henderson <rth@redhat.com>
12096
12097 PR optimization/5742
12098 * machmode.def: Add inner mode field to complex modes.
12099 * config/mips/mips.c (mips_function_value): Always define. Add
12100 new argument to handle libcalls.
12101 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
12102 (FUNCTION_VALUE): Likewise.
12103 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
12104 * config/mips/mips-protos.h: Update.
12105
d88e57d1
RH
121062002-03-23 Richard Henderson <rth@redhat.com>
12107
12108 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
12109 * config/sparc/sparc-protos.h: Update.
12110 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
12111
6dfaf9ba
RH
121122002-03-23 Richard Henderson <rth@redhat.com>
12113
12114 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
12115 _start or _init begins the text segment.
12116
0c769cf8
DE
121172002-03-23 David Edelsohn <edelsohn@gnu.org>
12118
12119 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
12120 not HOST_WIDEST_INT.
12121 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
12122
64e92a26
RE
121232002-03-23 Richard Earnshaw <rearnsha@arm.com>
12124
12125 PR java/5489
12126 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
12127 operand argument to output_return_instruction.
15e5ad76 12128 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
12129 const_true_rtx then just return.
12130 (arm_print_operand, case 'D'): If the operand is const_true_rtx
12131 then abort.
12132
d6961341
AC
121332002-03-23 Andrew Cagney <ac131313@redhat.com>
12134
12135 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
12136 (Warning Options): Document -Wswitch-default.
12137 * toplev.c (W_options): Add -Wswitch-default. Update comment on
12138 -Wswitch.
12139 (warn_switch_default): Define variable.
12140 (warn_switch): Update comment.
12141 * flags.h (warn_switch_default): Declare variable.
12142 (warn_switch): Update comment.
12143 * stmt.c (expand_end_case): Check for and, when
12144 warn_switch_no_default, warn of a missing default case.
15e5ad76 12145
d4c5ac1f
AM
121462002-03-23 Alan Modra <amodra@bigpond.net.au>
12147
bbaa9790
AM
12148 * real.h (N): Special case 128 bit doubles.
12149
d4c5ac1f
AM
12150 * combine.c (simplify_comparison): When widening modes, ignore
12151 sign extension on CONST_INTs.
12152
84bf8c2c
BW
121532002-03-22 Bob Wilson <bob.wilson@acm.org>
12154
12155 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
12156 passed to adjust_address. Fix comment formatting.
12157
12158
b216cd4a
ZW
121592002-03-22 Zack Weinberg <zack@codesourcery.com>
12160
12161 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
12162 Always make REAL_VALUE_TYPE a struct containing an array of
12163 HOST_WIDE_INT, not a double. Tidy up the code deciding how
12164 big it is. Don't declare or use union real_extract.
12165
12166 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
12167 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
12168 (print_operand), config/arm/arm.c (output_move_double),
12169 config/arm/arm.md (consttable_4, consttable_8),
12170 config/romp/romp.c (output_fpops), config/s390/s390.h
12171 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
12172 (xtensa_output_literal): Don't use union real_extract.
12173
12174 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
12175 (sfmode_constant_to_ulong), config/ns32k/merlin.h
12176 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
12177 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
12178 (PRINT_OPERAND): Don't use local version of union
12179 real_extract.
12180
12181 * config/convex/convex.c (check_float_value), config/vax/vax.c
12182 (vax_float_literal), config/m88k/m88k.md (divdf3),
12183 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
12184 config/pdp11/pdp11.c (output_move_quad): Don't do host
12185 arithmetic on target floating point quantities.
12186
12187 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
12188 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
12189
12190 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
12191 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
12192
12193 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
12194 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
12195 INFINITY.
12196 * print-rtl.c (print_rtx): Disable code which needs
12197 floating-point emulator.
12198 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
12199 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
12200 depending on HOST_FLOAT_FORMAT to be defined properly.
12201
12202 * config/1750a/1750a.c (get_double, float_label): Delete.
12203 (print_operand): Delete huge commented-out chunk. Use
12204 REAL_VALUE_TO_DECIMAL.
12205 * config/1750a/1750a-protos.h: Delete prototypes of deleted
12206 functions.
12207 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
12208 IEEE_FLOAT_FORMAT.
12209 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
12210 Use REAL_VALUE_TO_DECIMAL as ELF version does.
12211 * config/m88k/m88k.c (real_power_of_2_operand,
12212 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
12213 real_extract out of the union; run the input through
12214 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
12215 from that into the union.
12216 * config/pdp11/pdp11.c (output_move_double): Rearrange
12217 parentheses to make automatic indenter happy.
12218
12219 * doc/tm.texi (Cross-compilation): Rename node to "Floating
12220 Point" and rewrite to describe current situation. Also adjust
12221 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
12222 match code.
12223 * doc/rtl.texi: Adjust cross reference.
12224
a8cacfd2
BW
122252002-03-22 Bob Wilson <bob.wilson@acm.org>
12226
12227 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
12228 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
12229 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
12230 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
12231 prevent use of sp as a reload register.
12232 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
12233 non_acc_reg_operand.
12234 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
12235 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
12236 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
12237 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
12238
d4e6133f
NB
122392002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12240
b216cd4a
ZW
12241 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
12242 * cpplex.c (unterminated): Delete.
12243 (parse_string): No string literal may extend over multiple
12244 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
12245 * cppmain.c (scan_translation_unit): Strings are single-line.
12246
b216cd4a 12247 * doc/cpp.texi: Update to match.
d4e6133f 12248
65e6c005
JJ
122492002-03-22 Jakub Jelinek <jakub@redhat.com>
12250
12251 PR optimization/5854
12252 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
12253 Shut up warnings.
12254 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
12255 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
12256 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
12257 const0 if scratch register was not allocated.
12258 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
12259 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
12260 with GEN_INT (...).
12261 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
12262 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
12263 with GEN_INT (...) everywhere. Remove constraints in define_split
12264 patterns.
12265 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
12266 require scratch register for setting 0 into regs/non-pushable memory.
12267
7f48c9e1
AO
122682002-03-22 Alexandre Oliva <aoliva@redhat.com>
12269
12270 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
12271 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
12272
909de5da
PE
122732002-03-22 Phil Edwards <pme@gcc.gnu.org>
12274
12275 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
12276 * cppinit.c (cpp_create_reader): On by default.
12277 (cpp_handle_option): Handle -W[no-]endif-labels.
12278 (cpp_post_options): Also enable if -pedantic.
12279 * cpplib.c (do_else): Use it.
12280 (do_endif): Likewise.
12281 * doc/cppopts.texi: Document new option.
12282 * doc/invoke.texi: Document new option.
12283
d8bf17f9
LB
122842002-03-22 Lars Brinkhoff <lars@nocrew.org>
12285
12286 * config/i386/i386.c, config/i386/i386.md: Change all occurences
12287 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
12288
70e0ccd0
AO
122892002-03-22 Alexandre Oliva <aoliva@redhat.com>
12290
12291 * flow.c (calculate_global_regs_live): Clear aux fields of
12292 ENTRY and EXIT.
12293
68882f0f
JJ
122942002-03-22 Jakub Jelinek <jakub@redhat.com>
12295
12296 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
12297 REG or MEM subregs, pass rtx * instead of rtx to it.
12298 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
12299 rtx * instead of rtx to alter_subreg.
12300 * config/m32r/m32r.c (gen_split_move_double): Likewise.
12301 * config/pj/pj.c (pj_output_rval): Likewise.
12302
648fe28b
RH
123032002-03-22 Richard Henderson <rth@redhat.com>
12304
12305 PR target/3177
12306 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
12307 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
12308 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
12309 (ia64_expand_prologue): Look at int_regs, not words, for number
12310 of incomming int regs.
12311
e8dcd824
AM
123122002-03-22 Andrew MacLeod <amacleod@redhat.com>
12313
12314 * expr.c (expand_expr): A RESULT_DECL is part of a call.
12315
96327cdc
JH
12316Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
12317
12318 * toplev.c (flag_loop_optimize, flag_crossjumping):
12319 New static variables.
12320 (rest_of_compilation): Conditionalize crossjumping and
12321 loop optimizer.
12322 (parse_options_and_default_flags): Default loop_optimize and
12323 crossjumping.
12324 (lang_independent_options): Add -fcrossjumping and -floop-optimize
12325 * invoke.texi (crossjumping, loop-optimize): Document.
12326
bc185257
RS
123272002-03-22 Richard Sandiford <rsandifo@redhat.com>
12328
12329 * real.c (eiisneg): Move outside #ifdef NANS.
12330
0a2ed1f1
JH
12331Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
12332
12333 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
12334 frequencies match; avoid match on different loop depths.
12335 (try_crossjump_to_bb): Kill tests that no longer brings time
12336 savings.
12337 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
12338 updating code.
12339 (split_edge): Likewise.
12340
12341 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
12342 variable.
12343
12344 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
12345 * cfgrtl.c: Include insn-config.h
12346 (split_block) Dirtify block in presence of conditional execution
12347
4d72536e
RS
123482002-03-22 Richard Sandiford <rsandifo@redhat.com>
12349
12350 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
12351 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
12352 (function_arg): Constify CUMULATIVE_ARGS.
12353 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
12354 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
12355 (UNITS_PER_DOUBLE): New macro.
12356 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
12357 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
12358 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
12359 fp_regs and stack_words.
12360 (EABI_FLOAT_VARARGS_P): New macro.
12361 * config/mips/mips.c (struct mips_arg_info): New.
12362 (mips_arg_info): New function.
12363 (function_arg_advance): Use it. Add adjustment instructions here
12364 rather than in function_arg.
12365 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
12366 for VOIDmode at the beginning of the function.
12367 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
12368 (function_arg_pass_by_reference): Likewise.
12369 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
12370 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
12371 (mips_va_start): Likewise. Use the new stack_words field of
12372 CUMULATIVE_ARGS to set up overflow area. Reformat.
12373 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
12374 doubles and other types, aligning the overflow pointer for non-doubles
12375 too. Remove some code duplication. Replace hard-coded constants.
12376
e6f884cd
RS
123772002-03-22 Richard Sandiford <rsandifo@redhat.com>
12378
12379 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
12380 (CLASS_UNITS): Undefine.
12381 (CLASS_MAX_NREGS): Use FP_INC.
12382 * config/mips/mips.c (compute_frame_size): Likewise.
12383 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
12384
10cf9bde
NB
123852002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12386
12387 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
12388 prototype, and handle lexing numbers and identifiers.
12389 (parse_identifier): Update to new form of parse_slow.
12390 (parse_number): Fast path only, use parse_slow otherwise.
12391 (_cpp_lex_direct): Update calls to parse_number.
12392
fbc2782e
DD
123932002-03-21 DJ Delorie <dj@redhat.com>
12394
12395 * bb-reorder.c (make_reorder_chain_1): Protect against
12396 when redundant edges are omitted.
12397 * predict.c (dump_prediction): Likewise.
12398
fba39eaf
RH
123992002-03-21 Richard Henderson <rth@redhat.com>
12400
12401 PR target/5996
12402 * fixinc/inclhack.def (solaris_stdio_tag): New.
12403 * fixinc/fixincl.x: Regenerate.
12404
eba80994
EB
124052002-03-21 Eric Botcazou <ebotcazou@multimania.com>
12406
12407 PR c/5597
12408 * c-typeck.c (process_init_element): Flag non-static
12409 initialization of a flexible array member as illegal.
12410
2a78758b
AM
124112002-03-22 Alan Modra <amodra@bigpond.net.au>
12412
12413 * config/rs6000/t-linux64: New.
12414 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
12415 t-ppccomm. Use t-rs6000 and t-linux64.
12416 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
12417 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
12418 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
12419 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 12420
2cb921f4
AH
124212002-03-21 Aldy Hernandez <aldyh@redhat.com>
12422
eba80994
EB
12423 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
12424 flag_really_no_inline instead of optimize == 0.
2cb921f4 12425
eba80994 12426 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 12427
eba80994 12428 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 12429
eba80994 12430 * flags.h (flag_really_no_inline): New.
2cb921f4 12431
659e5a7a 12432 * c-common.c (c_common_post_options): Initialize
eba80994 12433 flag_really_no_inline.
2cb921f4 12434
eba80994 12435 * toplev.c (flag_really_no_inline): New.
2cb921f4 12436
239b8b9d
JJ
124372002-03-21 Jakub Jelinek <jakub@redhat.com>
12438
12439 * config/avr/avr.md (length): Fix length computation for
12440 conditional branches.
12441
43577e6b
NB
124422002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
12443
12444 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
12445 sdbout.o, profile.o): Update.
12446 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
12447 langhook.
12448 * c-common.h (gettags): Move here from tree.h.
12449 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
12450 insert_block, getdecls, kept_level_p, global_bindings_p): New.
12451 * dbxout.c (dbxout_init): Use getdecls langhook.
12452 * expr.c (expand_expr): Use insert_block langhook.
12453 * fold-const.c: Include langhooks.h.
12454 (fold_range_test, fold_binary_op_with_conditional_arg,
12455 fold): Use global_bindings_p langhook.
12456 * integrate.c (expand_inline_function): Use insert_block langhook.
12457 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
12458 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
12459 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
12460 LANG_HOOKS_GETDECLS): New.
12461 (LANG_HOOKS_INITIALIZER): Update.
12462 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
12463 langhook.
12464 * langhooks.h (struct lang_hooks_for_decls): New.
12465 (struct lang_hooks): Update.
12466 * profile.c: Include langhooks.h.
12467 (output_func_start_profiler): Use new langhooks.
12468 * sdbout.c: Include langhooks.h.
12469 (sdbout_init, sdbout_finish): Use getdecls langhook.
12470 * stmt.c: Include langhooks.h.
12471 (expand_fixup, fixup_gotos): Use new langhooks.
12472 * stor-layout.c: Include langhooks.h.
12473 (variable_size): Use global_bindings_p langhook.
12474 * toplev.c (compile_file): Use getdecls langhook.
12475 * tree-inline.c (remap_block): Use insert_block langhook.
12476 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
12477 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
12478
5b19b10c
RH
124792002-03-21 Richard Henderson <rth@redhat.com>
12480
12481 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
12482 constants in .data when -fpic.
12483
e05af335
GP
124842002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12485
12486 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
12487 where appropriate.
12488
60ffc997
TT
124892002-03-21 Tom Tromey <tromey@redhat.com>
12490
12491 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
12492
75897075
RK
12493Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12494
a73afd69 12495 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 12496
75897075
RK
12497 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
12498
312687cf
EB
124992002-03-21 Eric Botcazou <ebotcazou@multimania.com>
12500 Richard Henderson <rth@redhat.com>
12501
12502 PR c/5354
12503 * c-common.c (c_expand_expr): Preserve result of a statement
12504 expression if needed.
12505
f0e1f482
JJ
125062002-03-21 Jakub Jelinek <jakub@redhat.com>
12507
12508 PR bootstrap/4195
12509 * genrecog.c (maybe_both_true_mode): Remove.
12510 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
12511 * machmode.def (Pmode): Likewise.
12512
c14b9960
JW
12513Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
12514
12515 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
12516 (nonlocal_mentioned_p_1): New function.
12517 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
12518 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
12519 (mark_constant_function): Recognize pure functions.
12520 * rtl.h (global_reg_mentioned_p): New prototype.
12521 * rtlanal.c (global_reg_mentioned_p,
12522 global_reg_mentioned_p_1): New function.
12523
aaa4d130
RO
125242002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12525
12526 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
12527 UNIX assert.h.
12528 * fixinc/fixincl.x: Regenerate.
12529
e5c4bd1b
JM
125302002-03-20 Jason Merrill <jason@redhat.com>
12531
12532 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
12533
852b81bb
MM
125342002-03-20 Michael Meissner <meissner@redhat.com>
12535
12536 * doc/invoke.texi (Optimize Options): Document that -O2 sets
12537 -fstrict-aliasing.
12538
86d8c251
BW
125392002-03-20 Bob Wilson <bob.wilson@acm.org>
12540
12541 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
12542 ".literal_position" directive before the constant pool.
12543
0a39c350
GP
125442002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12545
12546 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
12547 Add Craig Rodrigues.
12548 Add Brad Lucier to testers.
12549
71a83373
JJ
125502002-03-20 Jakub Jelinek <jakub@redhat.com>
12551
12552 PR target/4792
12553 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
12554 to if_then_else.
12555 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
12556 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
12557 instead of insn_extract.
12558
a29b099d
JJ
125592002-03-20 Jakub Jelinek <jakub@redhat.com>
12560
12561 PR bootstrap/4192
71a83373 12562 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
12563
12564 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
12565 stmt if some case has been output.
12566
048b1c95
JJ
125672002-03-20 Jakub Jelinek <jakub@redhat.com>
12568
12569 PR c/5972
12570 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
12571 movsfcc_1, movdfcc_1): Add %O2.
12572 * config/i386/i386.c (print_operand): Handle %ON.
12573 Print . before float condition codes in Sun as cmov syntax.
12574 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
12575 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
12576 no longer true.
12577
f4864588
PB
125782002-03-20 Philip Blundell <pb@nexus.co.uk>
12579
12580 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
12581 return instruction if PC was popped.
12582
3a307de4
BW
125832002-03-20 Bob Wilson <bob.wilson@acm.org>
12584
12585 * config/xtensa/xtensa.md: Remove unused type attributes.
12586 (adddi_carry, subddi_carry): Change type attribute to "multi".
12587
048b1c95 125882002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
12589
12590 PR optimization/5999, middle-end/5731
12591 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
12592 multiplications by reciprocals.
12593
7afff7cf
NB
125942002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
12595
12596 * Makefile.in: Update.
12597 * c-common.c: Include langhooks.h.
12598 (inline_forbidden_p): Use new hook.
12599 * diagnostic.c: Include langhooks.h.
12600 (format_with_decl, announce_function,
12601 default_print_error_function): Use new hook.
12602 * dwarf2out.c (dwarf2_name): Use new hook.
12603 * function.c: Include langhooks.h.
12604 (init_function_start): Use new hook.
12605 * langhooks-def.h (lhd_decl_printable_name): New.
12606 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
12607 (LANGHOOKS_INITIALIZER): Update.
12608 * langhooks.c (lhd_decl_printable_name): New.
12609 * langhooks.h (struct lang_hooks): New hook.
12610 * toplev.c (decl_name, decl_printable_name): Remove.
12611 (open_dump_file): Use new hook.
12612 (process_options): Remove old hook.
12613 * tree.h (decl_printable_name): Remove.
12614objc:
12615 * objc-act.c (objc_init): Remove old hook.
12616 (objc_printable_name): Export.
12617 * objc-act.h (objc_printable_name): New.
12618 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12619
f78ce0b7
JB
126202002-03-19 Jim Blandy <jimb@redhat.com>
12621
12622 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
12623 the start_source_file debug hook, not the current line number.
12624
15b5aef3
RH
126252002-03-19 Richard Henderson <rth@redhat.com>
12626
12627 * flow.c (EH_USES): Provide default.
12628 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
12629 * doc/tm.texi (EH_USES): New.
12630
12631 * config/ia64/ia64.c (ia64_eh_uses): New.
12632 * config/ia64/ia64-protos.h: Update.
12633 * config/ia64/ia64.h (EH_USES): New.
12634
02a7a3fd
RH
126352002-03-19 Richard Henderson <rth@redhat.com>
12636
12637 * varasm.c (output_constant_def): Fix stupid typo.
12638
93f82d60
RH
126392002-03-19 Richard Henderson <rth@redhat.com>
12640
2842be05 12641 PR 5879
93f82d60
RH
12642 * except.c (current_function_has_exception_handlers): New.
12643 * except.h: Declare it.
12644 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
12645 Combine tests that disable all sibcalls for the function.
12646
ed4fbfa0
OH
126472002-03-19 Olivier Hainque <hainque@act-europe.fr>
12648
12649 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
12650 for INTEGER_CST.
12651
ebf0e888
RH
126522002-03-19 Richard Henderson <rth@redhat.com>
12653
1e82682b 12654 PR 5977, 5991
ebf0e888
RH
12655 * config/ia64/ia64.c: Revert 2002-03-01 patch.
12656 * config/ia64/ia64.h (INIT_EXPANDERS): New.
12657
e37b38d7
JB
126582002-03-19 Jim Blandy <jimb@redhat.com>
12659
12660 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
12661 name, even if the replacement list contains no tokens, as required
12662 by Dwarf.
12663
2a4ea326
JM
126642002-03-19 Jason Merrill <jason@redhat.com>
12665
f9d09ae5
JM
12666 * varasm.c (globalize_decl): Get the name from the RTL, not
12667 DECL_ASSEMBLER_NAME.
12668
2a4ea326
JM
12669 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
12670
99b96edb
BW
126712002-03-19 Bob Wilson <bob.wilson@acm.org>
12672
12673 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
12674 subdi_carry): Define.
12675
3774b567
DE
126762002-03-19 David Edelsohn <edelsohn@gnu.org>
12677
12678 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
12679 about -fpic/-fPIC if extra_warnings set.
12680
21ef78aa
DE
126812002-03-19 David Edelsohn <edelsohn@gnu.org>
12682
12683 * expr.c (expand_expr): Sign-extend CONST_INT generated from
12684 TREE_STRING_POINTER.
0c2fdcdf 12685 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 12686
91d4b3fd
RK
12687Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12688
12689 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
12690 in favor of SP if FRAME_POINTER_REQUIRED is false.
12691
2496c7bd
LB
126922002-03-19 Lars Brinkhoff <lars@nocrew.org>
12693
12694 * emit-rtl.c (gen_int_mode): New function.
12695 * rtl.h: Prototype for it.
12696 * combine.c (make_extraction, simplify_comparison), expmed.c
12697 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
12698 (convert_modes, store_field), optabs.c (expand_fix),
12699 simplify-rtx.c (neg_const_int, simplify_unary_real),
12700
12701 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
12702 Use it instead of GEN_INT (trunc_int_for_mode (...)).
12703
f735a153
JJ
127042002-03-19 Jakub Jelinek <jakub@redhat.com>
12705
12706 PR c/5656
12707 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
12708 convert_parm_for_inlining.
12709 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
12710 Define.
12711 * langhooks-def.h: Likewise.
12712 * objc/objc-lang.c: Likewise.
12713 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
12714 function.
12715 * tree-inline.c (initialize_inlined_parameters):
12716 Call convert_parm_for_inlining lang hook if needed.
12717 * c-typeck.c (c_convert_parm_for_inlining): New function.
12718 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
12719
1929c971
MM
127202002-03-18 Mark Mitchell <mark@codesourcery.com>
12721
b216cd4a 12722 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
12723 can be destroyed after expanding the argument.
12724 (expand_call): Likewise.
12725
c79ca0ac
EC
127262002-03-15 Eric Christopher <echristo@redhat.com>
12727
12728 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
12729 Fix register preference on last change.
12730 * config/mips/mips.c (mips_return_in_memory): New function.
12731 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
12732 * config/mips/mips-protos.h: Declare.
12733 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
12734 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
12735
07e2e444
AO
127362002-03-18 Alexandre Oliva <aoliva@redhat.com>
12737
1bfbbbcf
AO
12738 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
12739 a register too.
12740 (anddi3, iorsi3): Likewise.
12741
c066429e
AO
12742 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
12743 use %gprel for symbols that are going to be placed in linkonce
12744 sections.
12745
07e2e444
AO
12746 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
12747 RETURN_ADDRESS_POINTER_REGNUM to $ra.
12748 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
12749 not needed. Disregard leaf_function_p().
12750 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
12751 mips16 frame pointer.
12752 * config/mips/mips.md (store ra): Only to small SP offsets.
12753 2001-08-22 Graham Stott <grahams@redhat.com>
12754 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
12755 return a REG rtx for the return address register.
12756
eb8e00ea
BW
127572002-03-18 Bob Wilson <bob.wilson@acm.org>
12758
12759 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
12760 constant-pool addresses as "mode-dependent".
12761 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
12762
cbb92744
JJ
127632002-03-18 Jakub Jelinek <jakub@redhat.com>
12764
12765 PR target/5740
12766 * expr.c (emit_group_load): Use extract_bit_field if
12767 needed for CONCAT arguments.
12768
657d9449
RE
127692002-03-18 Richard Earnshaw <rearnsha@arm.com>
12770
91f3a802 12771 PR target/4863
657d9449
RE
12772 * arm.md (tablejump): Make this a define_expand. For PIC add the
12773 offset to the base of the table.
12774 (thumb_tablejump): Matcher for Thumb tablejump insn.
12775 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
12776 as the difference of two labels.
12777 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12778 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
12779 tables in the code.
12780 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12781 * arm.c (get_jump_table_size): If the table is not in the text
12782 section, return zero.
c79ca0ac 12783
5d5603e2
BS
127842002-03-18 Bernd Schmidt <bernds@redhat.com>
12785
12786 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
12787 of gen_rtx_SUBREG.
12788 (arm_reload_out_hi): Use gen_lowpart instead of
12789 gen_rtx_SUBREG to access QImode components.
12790 * config/arm/arm.md: Disable zero_extend split for QImode
12791 subregs in BIG_ENDIAN mode.
12792 (storehi_bigend): Match use of least significant byte.
12793 (storeinthi): Remove extraneous SUBREG.
66c17b64 12794 Add missing construction of operands[2].
5d5603e2
BS
12795 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
12796 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
12797 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
12798
df15fbc7
AH
127992002-03-18 Aldy Hernandez <aldyh@redhat.com>
12800
2496c7bd
LB
12801 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
12802 any_operand.
df15fbc7 12803
b83b7fa3
RH
128042002-03-17 Richard Henderson <rth@redhat.com>
12805
12806 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
12807 explicitly.
12808
6f7c00fe
HPN
128092002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
12810
12811 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
12812 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
12813
155038f2
KG
128142002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12815
720d42fa
KG
12816 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
12817
155038f2
KG
12818 * predict.c (estimate_bb_frequencies): Delete unused variables.
12819
e6542f4e
RH
128202002-03-17 Richard Henderson <rth@redhat.com>
12821
12822 * config/ia64/ia64.c (ia64_attribute_table): Move before
12823 targetm definition. Make static.
12824
52dabb6c
NB
128252002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
12826
12827 * c-common.h (yyparse, c_common_parse_file): New.
12828 * c-lang.c: Include c-common.h.
12829 (LANG_HOOKS_PARSE_FILE): Redefine.
12830 * c-lex.c: Include c-common.h.
12831 (yyparse): Rename c_common_parse_file. Call yyparse.
12832 * c-parse.in (yyparse): Remove macro.
12833 * c-tree.h (yyparse_1): Remove.
12834 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
12835 (LANG_HOOKS_INITIALIZER): Update.
12836 * langhooks.h (struct lang_hoooks): New hook parse_file.
12837 * toplev.c (compile_file): Use parse_file hook.
12838 * tree.h (yyparse): Remove.
e6542f4e 12839 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 12840
b5ffe606
HPN
128412002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
12842
ba82f58b
HPN
12843 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
12844 float_truncate, not fix.
12845 ("*truncdfsf2_real"): Ditto.
12846 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
12847
b5ffe606
HPN
12848 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
12849
c8d1b2b7
AO
128502002-03-16 Alexandre Oliva <aoliva@redhat.com>
12851
cfb773f9
AO
12852 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
12853 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
12854 where appropriate. Make the second reference to
12855 leaf_function_p a function call, as intended. Reindented.
12856
4dffef52
AO
12857 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
12858 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
12859
4f5bd6d7
AO
12860 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
12861 add register to non-constant into sp.
12862
c8d1b2b7
AO
12863 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
12864 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
12865 (mips16_gp_pseudo_rtx): Lose.
12866 (INIT_EXPANDERS): Deleted.
12867 * config/mips/mips.c (mips_init_machine_status): New.
12868 (mips_free_machine_status): New.
12869 (mips_mark_machine_status): New.
12870 (override_options): Set them.
12871 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
12872 (struct machine_function): ... new. Replaced all references.
12873 (mips_add_gc_roots): Don't mark them.
12874 (embedded_pic_fnaddr_reg): New, extracted from...
12875 (embedded_pic_offset): ... here.
12876 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
12877 (movsi): Likewise.
12878
b3124fac
NB
128792002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
12880
12881 * cppinit.c: Revert -MD removal.
12882
121449b6
SC
128832002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12884
12885 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
12886 soft registers by default for 68HC12.
12887 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
12888 when compiling with -fomit-frame-pointer.
12889 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
12890 (expand_epilogue): Likewise.
12891 (m68hc11_gen_rotate): Use exg when rotating by 8.
12892
840e2ff1
SC
128932002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12894
12895 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
12896 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
12897 (splits): Remove unused add splits.
12898 ("*addhi3_68hc12"): Tune constraints.
12899 ("addhi_sp"): Try to use X instead of Y in all cases and if the
12900 constant fits in 8-bits and D is dead use abx/aby instructions.
12901 ("*addhi3"): Remove extern declaration of ix_reg.
12902 ("*subsi3"): Optimize and provide new split.
12903 ("subhi3"): Cleanup.
12904 ("*subhi3_sp"): Avoid saving X if we know it is dead.
12905 (arith splits): For 68hc12 save the address register on the stack
12906 and do the arithmetic operation with a pop.
12907
3c9a5efe
SC
129082002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12909
12910 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
12911 allocating QImode in address registers.
12912 ("*movqi_m68hc11"): Likewise.
12913
e41f3392
JH
12914Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
12915
12916 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
12917
576786b0
NB
129182002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
12919
12920 * cppinit.c (print_help): Display -MD and -MMD.
12921 Don't display usage string. Update assertion syntax and
12922 typo.
12923 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
12924 (cpp_handle_option): Update.
12925
1ac458d4
CD
129262002-03-15 Chris Demetriou <cgd@broadcom.com>
12927
12928 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
12929 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
12930 and define it so that regardless of target CPU size,
12931 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
12932 of "int" rather than "long."
12933
1fcd592b
RH
129342002-03-15 Richard Henderson <rth@redhat.com>
12935
12936 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
12937 size as a tree.
12938
a0df6910
SC
129392002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12940
12941 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
12942 ("tstqi" split): Avoid using memory for tstqi on address register.
12943 (splits): Remove constraints.
12944 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
12945 ("cmpdf", "cmpsf"): Remove since not used.
12946 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
12947 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
12948
015a2e59
SC
129492002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12950
12951 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
12952 ("neghi2"): Tighten constraints.
12953 ("one_cmplsi2"): Optimize and simplify split.
12954 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
12955
cd28557c
SC
129562002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12957
12958 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
12959 and split of AND operation to clear the upper bits.
12960 ("*logicalsi3_zextqi"): Likewise.
12961 ("*logicallhi3_zexthi_ashift8"): Likewise.
12962 ("*logicalsi3_silshr16"): Likewise.
12963 ("logicalsi3_silshl16"): Likewise.
12964 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
12965
932657df
SC
129662002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12967
12968 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
12969 (m68hc11_indirect_p): New function.
12970 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
12971 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
12972 TARGET_M6812.
12973 (asm_print_register): Likewise.
12974 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
12975 (m68hc11_indirect_p): Declare.
12976 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
12977 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
12978 (TARGET_SWITCHES): New option -mrelax.
12979 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
12980 destination.
12981 ("iorsi3", "xorsi3"): Likewise.
12982 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
12983 ("*andhi3_mem"): New to handle destination in memory with bclr
12984 and a scratch register.
12985 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
12986 ("*andhi3_const"): New when operand2 is constant.
12987 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
12988 ("*andhi3_gen"): Cleanup of the old "andhi3".
12989 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
12990 ("xorqi3"): Update constraints.
12991
fdffea1a
SC
129922002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12993
12994 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
12995 for reg_equiv_memory_loc when the operand is a register that does
12996 not get a hard register (stack location).
12997 (tst_operand): After reload, accept all memory operand.
12998 (symbolic_memory_operand): Fix detection of symbolic references.
12999 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13000 accept symbols and any constant.
13001
6272bc68
SC
130022002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13003
13004 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
13005 note on the insn that sets the soft frame register.
13006 (must_parenthesize): ix and iy are also reserved names.
13007 (print_operand_address): One more place where parenthesis are required
13008 to avoid confusion with register names.
13009 (m68hc11_gen_movhi): Allow push of stack pointer.
13010 (m68hc11_check_z_replacement): Fix handling of parallel with a
13011 clobber.
13012 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
13013 the replacement register is.
13014 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
13015 and D8_REGS classes.
13016 (MODES_TIEABLE_P): All modes are tieable except QImode.
13017
1d2d9def
SC
130182002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13019
13020 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
13021 (___subdi3): Likewise.
13022 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
13023 (__map_data_section): Optimize 68hc11 case.
13024
a0ccf503
SC
130252002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13026
13027 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
13028 than a shift to avoid adding a register with itself.
13029 (m68hc11_memory_move_cost): Take into account NO_REGS.
13030 (m68hc11_register_move_cost): Update and use memory move cost
13031 for soft registers.
13032 (m68hc11_address_cost): Make cost of valid offset not 0 so that
13033 it gives more opportunities to cse to optimize.
13034 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
13035 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
13036
6e4ae815
MM
130372002-03-15 Mark Mitchell <mark@codesourcery.com>
13038
13039 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
13040 * c-common.def (CLEANUP_STMT): New tree node.
13041 * c-common.h (CLEANUP_DECL): New macro.
13042 (CLEANUP_EXPR): Likewise.
13043 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
13044 * expr.c (expand_expr): Tidy.
13045 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
13046 * tree-inline.c (initialize_inlined_parameters): Clean up
13047 new local variables.
13048
a42519be
JJ
130492002-03-15 Jakub Jelinek <jakub@redhat.com>
13050
13051 PR bootstrap/4128
13052 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
13053 before movrXX only, use reg_overlap_mentioned_p.
13054 Only special case NE if just one insn can be generated.
13055
15409448
JM
130562002-03-15 Jason Merrill <jason@redhat.com>
13057
13058 * varasm.c (assemble_variable): Call resolve_unique_section before
13059 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
13060 of error_mark_node.
13061
3a4edb44
RE
130622002-03-15 Richard Earnshaw <rearnsha@arm.com>
13063
13064 PR target/5170
13065 * arm.md (split pattern for thumb shiftable immediates): Add comment
13066 explaining non-obvious test.
13067
32defa36
RE
130682002-03-15 Richard Earnshaw <rearnsha@arm.com>
13069
13070 PR target/5712
13071 * arm.md (movaddr, movaddr_insn): Delete.
13072
5cc90635
JM
130732002-03-15 Jason Merrill <jason@redhat.com>
13074
13075 * toplev.c (wrapup_global_declarations): Clarify variable handling.
13076 -fkeep-static-consts doesn't apply to comdats.
13077
ecb0eece
RH
130782002-03-14 Richard Henderson <rth@redhat.com>
13079
13080 * c-decl.c: Include c-pragma.h.
13081 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
13082 (finish_function): Tidy.
13083 * c-pragma.c: Include c-common.h.
13084 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
13085 (handle_pragma_weak): Use them.
13086 (init_pragma): Register pending_weaks.
13087 * c-pragma.h (maybe_apply_pragma_weak): Declare.
13088 * print-tree.c (print_node): Print DECL_WEAK.
13089 * varasm.c (mark_weak_decls): Remove.
13090 (remove_from_pending_weak_list): Remove.
13091 (add_weak): Remove.
13092 (asm_emit_uninitialised): Call globalize_decl for weak commons.
13093 (weak_decls): Make a tree_list.
13094 (declare_weak): Cons weak_decls directly.
13095 (globalize_decl): Remove weak_decls elements directly.
13096 (weak_finish): Simplify weak_decls walk. Don't weaken unused
13097 symbols. Don't pretend to handle aliases.
13098 (init_varasm_once): Update weak_decls registry.
13099 * Makefile.in: Update dependencies.
13100
98d2b17e
RH
131012002-03-14 Richard Henderson <rth@redhat.com>
13102
13103 PR target/5312
13104 * config/ia64/ia64.c: Include tm_p.h last.
13105 (gen_nop_type): Remove duplicate definition.
13106 (cycle_end_fill_slots): Set sched_data for second L slot.
13107 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
13108 (nop_cycles_until): Fix typos.
13109
f2f4927e
JJ
131102002-03-15 Jakub Jelinek <jakub@redhat.com>
13111
13112 PR optimization/5891
13113 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
13114
5025a549
DM
131152002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
13116
13117 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
13118 descriptors correctly.
13119
03e9dbc9
MM
131202002-03-14 Michael Meissner <meissner@redhat.com>
13121
13122 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
13123 100, allowing MAX_UNROLLED_INSNS to be overridden.
13124
13125 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
13126 --param.
13127
13128 * unroll.c (params.h): Include.
13129 (MAX_UNROLLED_INSNS): Delete, now in params.h.
13130
13131 * doc/invoke.texi (--param max-unroll-insns): Document.
13132
13133 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
13134
12249385
RE
131352002-03-14 Richard Earnshaw <rearnsha@arm.com>
13136
13137 * arm.md: Fix warnings about constraints in peepholes and splits.
13138
f0cce04a
ZW
131392002-03-14 Zack Weinberg <zack@codesourcery.com>
13140
13141 * cpphash.h (struct lexer_state): Remove line_extension member.
13142 * cpplib.c (dequote_string, do_linemarker): New functions.
13143 (linemarker_dir): New data object.
13144 (DIRECTIVE_TABLE): No longer need to interpret #line in
13145 preprocessed source. Delete obsolete comment about return
13146 values of handlers.
13147 (end_directive, directive_diagnostics, _cpp_handle_directive):
13148 Don't muck with line_extension.
13149 (directive_diagnostics): No need to issue warnings for
13150 linemarkers here.
13151 (_cpp_handle_directive): Issue warnings for linemarkers here,
13152 when appropriate. Dispatch linemarkers to do_linemarker, not
13153 do_line.
13154 (do_line): Code to handle linemarkers split out to do_linemarker.
13155 Convert escape sequences in filename argument, both places.
13156
13157 * cppmacro.c (quote_string): Rename cpp_quote_string and
13158 export. All callers changed.
13159 * cpplib.h (cpp_quote_string): Prototype.
13160 * cppmain.c (print_line): Call cpp_quote_string on to_file
13161 before printing it.
13162
13163 * doc/cpp.texi: Document that escapes are now interpreted in
13164 #line and in linemarkers, and that non-printing characters are
13165 converted to octal escapes when linemarkers are generated.
13166
13167Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
13168
13169 * emit-rtl.c (try_split): Use delete_insns.
13170 * recog.c (split_all_insns): Fix terminating condition.
13171
c882c7ac
RE
131722002-03-14 Richard Earnshaw <rearnsha@arm.com>
13173 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13174
13175 PR target/5828
13176 * arm.c (arm_output_epilogue): Fix floating-point register save
13177 adjustment when using a frame pointer.
13178
3f26edaa
RS
131792002-03-14 Richard Sandiford <rsandifo@redhat.com>
13180
13181 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
13182 * config/mips/mips.c (compute_frame_size): Retrofit them here.
13183 (save_restore_insns, mips_expand_epilogue): And here.
13184 (build_mips16_call_stub): And here.
13185 (mips_function_value): Use the new macros to decide whether a single
13186 or complex float can be returned in floating-point registers. Return
13187 a parallel rtx in the complex case.
13188
1e3881c2
JH
13189Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
13190
13191 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
13192 call after liveness analysis.
13193
13194 * recog.c (split_insn): Use delete_insn_and_edges.
13195
13196 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
13197 instructions to have branch prediction notes.
13198 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
13199
200ef634
GK
132002002-03-14 Geoffrey Keating <geoffk@redhat.com>
13201
13202 * configure.in: Don't pass -Wno-long-long to a ADA compiler
13203 that doesn't support it.
13204 * configure: Regenerate.
13205
0b82d204
JJ
132062002-03-13 Jakub Jelinek <jakub@redhat.com>
13207
13208 PR target/5626
13209 * config/sparc/sparc.md (normal_branch, inverted_branch,
13210 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13211 inverted_fp_branch): Adjust calls to output_cbranch.
13212 Set length attribute.
13213 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
13214 output_v9branch. Set length attribute.
13215 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
13216 predicates.
13217 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
13218 (output_cbranch): Likewise. Handle far branches.
13219 (output_v9branch): Handle far branches.
13220 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
13221 Adjust prototypes.
13222 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
13223 noov_compare64_op predicates.
13224
7a8de19b
JM
132252002-03-13 Jason Merrill <jason@redhat.com>
13226
13227 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
13228 into the function and constify it.
13229 * gthr-dce.h, gthr-solaris.h: Likewise.
13230
2a55fd42
DE
132312002-03-13 David Edelsohn <edelsohn@gnu.org>
13232
13233 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
13234 * config/rs6000/rs6000.c (rs6000_va_arg): Use
13235 std_expand_builtin_va_arg if not ABI_V4.
13236
19c5b1cf
JM
132372002-03-13 Jason Merrill <jason@redhat.com>
13238
13239 * varasm.c (globalize_decl): New fn.
13240 (assemble_start_function): Use it.
13241 (asm_emit_uninitialized): Use it.
13242 (assemble_alias): Use it.
13243 (assemble_variable): Use it.
13244
2a15f5e1
HPN
132452002-03-13 Hans-Peter Nilsson <hp@axis.com>
13246
13247 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 13248 2002-03-12 internal visibility change.
2a15f5e1
HPN
13249 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
13250 visibility into SYMBOL_REF_FLAG.
13251
c0a3eeac
UW
132522002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
13253
13254 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
13255 VOIDmode operand. Add compile-time optimization for constant results.
13256
a1652cee
JM
132572002-03-12 Jason Merrill <jason@redhat.com>
13258
13259 * c-typeck.c (convert_for_assignment): Don't allow conversions
13260 between pointers and references. Only allow lvalues to convert to
13261 reference.
13262
c52a375d
HP
132632002-03-13 Hartmut Penner <hpenner@de.ibm.com>
13264
f0cce04a
ZW
13265 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
13266 before prologue, to avoid scheduling problems.
c52a375d 13267
e387e99b
JJ
132682002-03-13 Jakub Jelinek <jakub@redhat.com>
13269
13270 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13271 (ELIMINABLE_REGS): Add sfp->sp.
13272 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
13273
132742002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
13275
13276 PR optimization/5892
13277 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
13278
4061c1a3
JJ
132792002-03-13 Jakub Jelinek <jakub@redhat.com>
13280
13281 * loop.c (basic_induction_var): Don't call convert_modes if mode
13282 classes are different.
13283
5b43fed1
RH
132842002-03-12 Richard Henderson <rth@redhat.com>
13285
9f53e965
RH
13286 PR optimization/5901
13287 * function.c (reposition_prologue_and_epilogue_notes): Position
13288 the markers after/before the last/first insn not deleted.
13289
132902002-03-12 Richard Henderson <rth@redhat.com>
13291
13292 PR optimization/5878
5b43fed1
RH
13293 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
13294 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
13295 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
13296
13297 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
13298 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
13299 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
13300
13301 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
13302 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
13303 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
13304 also. Don't set it if not flag_pic.
13305 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
13306 to be INVALID_REGNUM when not used.
13307
4e9bb42b
AH
133082002-03-13 Aldy Hernandez <aldyh@redhat.com>
13309
5b43fed1
RH
13310 * expmed.c (store_bit_field): Reset alias set for memory.
13311 (extract_bit_field): Same.
4e9bb42b 13312
2f9834e8
KG
133132002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13314
13315 * c-common.c (c_tree_code_type, c_tree_code_length,
13316 c_tree_code_name, add_c_tree_codes): Delete.
13317 * c-common.h (add_c_tree_codes): Delete.
13318 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
13319 Define.
13320 * c-objc-common.c (c_objc_common_init): Don't call
13321 add_c_tree_codes, instead set lang_unsafe_for_reeval.
13322 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
13323 objc_tree_code_name, add_objc_tree_codes): Delete.
13324 (objc_init): Don't call add_objc_tree_codes.
13325 * objc/objc-lang.c (tree_code_type, tree_code_length,
13326 tree_code_name): Define.
13327 * toplev.c (lang_independent_init): Don't set
13328 tree_code_length[IDENTIFIER_NODE].
13329 * tree.c (tree_code_type, tree_code_length, tree_code_name):
13330 Delete definitions, moved to language front-ends.
13331 * tree.def (IDENTIFIER_NODE): Hardwire the length.
13332 * tree.h (tree_code_type, tree_code_length, tree_code_name):
13333 Const-ify.
13334 (tree_code_length): Change type to unsigned char.
13335
36ad2436
RH
133362002-03-12 Richard Henderson <rth@redhat.com>
13337
13338 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
13339 internal visibility change.
13340
0ae02efa
BW
133412002-03-12 Bob Wilson <bob.wilson@acm.org>
13342
13343 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
13344 validize_mem() instead of change_address to avoid clobbering
13345 memory attributes.
13346
35bb2bee
NB
133472002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
13348
13349 * c-lex.h (position_after_whitespace): Remove.
13350
62ae2529
JJ
133512002-03-12 Jakub Jelinek <jakub@redhat.com>
13352
13353 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
13354 (lex_string): Use unsigned char pointers.
13355
6a45951f
UW
133562002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13357
13358 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
13359 is not a valid memory_operand.
13360
e2fb85da
BW
133612002-03-12 Bob Wilson <bob.wilson@acm.org>
13362
13363 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
13364 * config/xtensa/lib1funcs.asm: Fix copyright to include
13365 special case for libgcc files.
13366 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
13367 (__divsi3): Likewise.
13368 (__umodsi3): Likewise.
13369 (__modsi3): Likewise.
13370 * config/xtensa/lib2funcs.S: Fix copyright to include
13371 special case for libgcc files.
13372
5b8619f8
TR
133732002-03-12 Tom Rix <trix@redhat.com>
13374
13375 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 13376 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
13377 (ignore_library): Same.
13378
089c8f97
BW
133792002-03-12 Bob Wilson <bob.wilson@acm.org>
13380
13381 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
13382
958c70ff
BW
133832002-03-12 Bob Wilson <bob.wilson@acm.org>
13384
13385 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
13386 to function_section before writing out the constant pool.
13387
a65c591c
DE
133882002-03-12 David Edelsohn <edelsohn@gnu.org>
13389
13390 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
13391 zero_constant.
13392 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
13393
133942002-03-12 Alan Modra <amodra@bigpond.net.au>
13395
13396 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
13397 (adddi3): Likewise.
13398 (movdf): Likewise.
13399 (movdi): Likewise.
13400 (cmpsi splitter): Likewise.
13401 (modsi3): Fail if <= 0.
13402 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
13403 redundant test when HOST_BITS_PER_WIDE_INT != 32.
13404 (reg_or_sub_cint64_operand): Likewise.
13405 (num_insns_constant_wide): Optimize sign extension.
13406 (rs6000_legitimize_address): Likewise.
13407
17720332
AM
134082002-03-12 Andrew MacLeod <amacleod@redhat.com>
13409
13410 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13411 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13412
cd49f073
AM
134132002-03-12 Andrew MacLeod <amacleod@redhat.com>
13414
13415 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
13416 address calculation.
13417
6a4e49c1
UW
134182002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13419
13420 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
13421 scratch register to DImode / TImode.
13422 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
13423 register used does not overlap the target.
13424
54b6670a
KG
134252002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13426
13427 * Makefile.in (debug.o): Depend on debug.h.
13428 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
13429 * debug.c (do_nothing_debug_hooks): Likewise.
13430 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
13431 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
13432 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
13433 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
13434 * dwarfout.c (dwarf_debug_hooks): Likewise.
13435 * integrate.c (output_inline_function): Likewise.
13436 * objc/objc-act.c (synth_module_prologue): Likewise.
13437 * sdbout.c (sdb_debug_hooks): Likewise.
13438 * toplev.c (debug_hooks): Likewise.
13439 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13440
2465bf76
KG
134412002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13442
13443 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
13444 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
13445 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
13446 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
13447 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
13448 * defaults.h (POINTER_SIZE): Define.
13449 * doc/tm.texi (POINTER_SIZE): Document default.
13450
53f3e9ca
KG
134512002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13452
13453 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
13454
44d3eb5b
RH
134552002-03-11 Richard Henderson <rth@redhat.com>
13456
13457 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
13458 if rebuild_label_notes_after_reload.
13459
4a085d2e
HPN
134602002-03-12 Hans-Peter Nilsson <hp@axis.com>
13461
13462 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
13463 emit pic register load if "internal" visibility.
13464 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
13465 (cris_expand_builtin_va_arg): Do all computations on trees.
13466
bc204393
RH
134672002-03-11 Richard Henderson <rth@redhat.com>
13468
13469 * rtlanal.c: Include recog.h.
13470 (keep_with_call_p): Fix thinko.
13471 * Makefile.in (rtlanal.o): Update dependencies.
13472
6b8b9d7b
CM
134732002-03-11 Chris Meyer <cmeyer@gatan.com>
13474
13475 * genflags.c (gen_insn): Use IS_VSPACE.
13476 * genoutput.c (output_insn_data): Likewise.
13477 (process_template): Likewise.
13478
6c40858f
RH
134792002-03-11 Richard Henderson <rth@redhat.com>
13480
13481 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
13482
40adaa27
NB
134832002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
13484
13485 * Makefile.in: Update.
6c40858f 13486 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 13487 Update documentation.
6c40858f
RH
13488 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
13489 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 13490
049b03f4
ZW
134912002-03-11 Zack Weinberg <zack@codesourcery.com>
13492
13493 * Makefile.in: Give texi2pod its input file as a command line
13494 argument, not on stdin.
13495
61eece67
DN
134962002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
13497 Daniel Berlin <dan@dberlin.org>
13498
13499 C++ alias analysis improvement.
f0cce04a 13500 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
13501 classes too.
13502
a65c591c
DE
135032002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
13504
ff080aba
UW
13505 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
13506
1682dbb1
DR
135072002-03-11 Douglas B Rupp <rupp@gnat.com>
13508
fa2d765a
DR
13509 * toplev.c (vms_fopen): Remove, not needed.
13510
6f1fd286
DR
13511 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
13512
b230e057
DR
13513 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
13514
cb9a8e97
DR
13515 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
13516 for FP, already done later.
13517
1682dbb1
DR
13518 * toplev.c (debug_args): Add entry for VMS_DEBUG.
13519 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
13520
3fcaac1d
RS
135212002-03-11 Richard Sandiford <rsandifo@redhat.com>
13522
13523 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
13524 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
13525 LARGEST_EXPONENT_IS_NORMAL for the given mode.
13526 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
13527 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
13528 (ediv, emul, eldexp, esqrt): Likewise.
13529 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
13530 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
13531 (saturate): New function.
13532 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
13533 (make_nan): Use a saturation value instead of a NaN if
13534 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
13535 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
13536 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
13537 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
13538 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
13539 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
13540 !ROUND_TOWARDS_ZERO.
13541 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
13542 (ROUND_TOWARDS_ZERO): Document.
13543
d25558be
AJ
135442002-03-11 Andreas Jaeger <aj@suse.de>
13545
13546 * cfg.c (dump_flow_info): Remove unused variable.
13547
c71f9ae7
HPN
135482002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
13549
13550 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
13551 computations on trees.
13552
561c9153
RH
135532002-03-10 Richard Henderson <rth@redhat.com>
13554
932b4e3e 13555 PR 5693:
561c9153
RH
13556 * reload.c (copy_replacements_1): New.
13557 (copy_replacements): Use it to recurse through the rtx.
13558
26b738be
RH
135592002-03-10 Richard Henderson <rth@redhat.com>
13560
13561 * loop.c (strength_reduce): Compute number of iterations as
13562 unsigned HOST_WIDE_INT.
13563
8d8a083e
RH
135642002-03-10 Richard Henderson <rth@redhat.com>
13565
13566 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
13567 to move away from the end of the block.
13568
32810ba3
NB
135692002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
13570
13571 PR preprocessor/5899
13572 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 13573
2b03d201
KG
135742002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13575
f90c544c
KG
13576 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
13577
2b03d201
KG
13578 * attribs.c (decl_attributes): Fix signed/unsigned warning.
13579
3ec1b4cb
HPN
135802002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
13581
13582 * config/mmix/mmix.c: Improve comments.
13583 (mmix_target_asm_function_prologue): Drop variable
13584 empty_stack_frame. Don't allocate unused slot above fp.
13585 (mmix_target_asm_function_epilogue): Mirror prologue changes.
13586 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
13587 brace in first column.
13588 (enum reg_class): Ditto.
13589 (FIRST_PARM_OFFSET): Now 0.
13590 (USER_LABEL_PREFIX): Remove #if 0:d definition.
13591
27e486c5
KG
135922002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13593
13594 * combine.c (make_extraction): Fix error in last change.
13595
0139adca
KG
135962002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13597
13598 * c4x.c (c4x_fp_reglist): Const-ify.
13599 * cris.c (cris_print_operand): Likewise.
13600 * i386.c (ix86_va_arg): Likewise.
13601 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
13602 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
13603 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
13604 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
13605 * mcore.h (regno_reg_class): Likewise.
13606 * mips.c (gen_int_relational): Likewise.
13607 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
13608 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 13609 * pdp11.c (move_costs): Likewise.
0139adca
KG
13610 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
13611 * s390.c (s390_branch_condition_mnemonic, regclass_map):
13612 Likewise.
13613 * s390.h (regclass_map): Likewise.
13614 * sh.c (shift_amounts): Likewise.
a4334c36 13615 * sh.md (rotlsi3): Likewise.
0139adca 13616
889b90a1
GK
136172002-03-09 Geoffrey Keating <geoffk@redhat.com>
13618
13619 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
13620 (ne0+5): Use new clobber to generate proper shift pattern.
13621 Patch by Michael Matz <matz@kde.org>.
13622
2877e0ae
AS
136232002-03-09 Andreas Schwab <schwab@suse.de>
13624
13625 * gcc.c (validate_all_switches): Also handle `%W{...}'.
13626
79b51cd7
GK
136272002-03-09 Geoffrey Keating <geoffk@redhat.com>
13628
13629 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
13630
e0f1be5c
JJ
136312002-03-09 Jakub Jelinek <jakub@redhat.com>
13632
13633 PR middle-end/5877
13634 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
13635 even for non-representable constants.
13636
0a7ec763
RK
13637Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13638
93fe8e92
RK
13639 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
13640 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
13641 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
13642 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
13643 (pop_function_context): Compute MAY_SHARE parameter for
13644 fixup_var_refs.
13645 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
13646 (gen_mem_addressof): Call fixup_var_refs with new parm.
13647
0a7ec763
RK
13648 * combine.c (make_extraction): Don't make extension of CONST_INT.
13649
a85cd407
AO
136502002-03-09 Alexandre Oliva <aoliva@redhat.com>
13651
9445b814
AO
13652 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
13653 in o32 and o64 ABIs.
13654 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
13655 but getting fixed-size structs passed in registers regardless of
13656 padding in o32 and o64 ABIs.
13657
a85cd407
AO
13658 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
13659 offset before loading address of argument passed by transparent
13660 reference.
13661
c51fbe40
JDA
136622002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
13663
13664 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
13665
918e70dd
AO
136662002-03-09 Alexandre Oliva <aoliva@redhat.com>
13667
13668 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
13669 marker such that registers after it are saved.
13670
3070dd00
KG
136712002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13672
13673 * sparc.c (arith_4096_operand): Fix error in last change.
13674
e25d11b0
AO
136752002-03-08 Alexandre Oliva <aoliva@redhat.com>
13676
13677 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
13678 defaults for MEABI.
13679
41daaf0e
AH
136802002-03-08 Aldy Hernandez <aldyh@redhat.com>
13681
5b43fed1
RH
13682 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
13683 vectors.
41daaf0e 13684
fa139b00
AH
136852002-03-08 Aldy Hernandez <aldyh@redhat.com>
13686
5b43fed1 13687 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 13688
c51d95ec
JH
13689Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
13690
13691 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
13692 removed; fix return value.
13693 * combine.c (combine_instructions): Dirtify blocks where we failed to
13694 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
13695 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
13696
3b25fbfe
KG
136972002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13698
13699 * gcse.c (insert_insn_end_bb): Fix typo in last change.
13700
189ae0f4
JH
13701Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
13702
13703 * recog.c (peephole2_optimize): Re-distribute EH edges.
13704
24965e7a
NB
137052002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
13706
13707 * expr.c (expand_expr): Use unsave lang hook.
13708 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
13709 (LANG_HOOKS_INITIALIZER): Update.
13710 * langhooks.h (struct lang_hooks): New hook unsave.
13711 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
13712 (unsave_expr_1): Remove unused lang_unsave_expr_now.
13713 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
13714 (unsave_expr_now): Remove.
13715 * tree.h (unsave_expr_now, lang_unsave,
13716 lang_unsave_expr_now): Remove.
13717 (lhd_unsave): New.
13718
1e4e95d6
AJ
137192002-03-08 Andreas Jaeger <aj@suse.de>
13720
13721 * flow.c (propagate_block_delete_insn): Remove unused variable.
13722
054ef905
KH
137232002-03-08 Kazu Hirata <kazu@hxi.com>
13724
13725 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
13726 insn length for memory load/store.
13727
5304400d 137282002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 13729
5304400d
CR
13730 * doc/install.texi (--with-libiconv-prefix): Document.
13731
81034129
MB
137322002-03-08 Michael Y. Brukman <myb2@cornell.edu>
13733
13734 * doc/sourcebuild.texi: Fix typo.
13735
71db7d03
JJ
137362002-03-08 Jakub Jelinek <jakub@redhat.com>
13737
13738 PR c/3711
13739 * builtins.c (std_expand_builtin_va_arg): Do all computations on
13740 trees.
13741
127c1ba5
RK
13742Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13743
13744 * rtl.c (copy_most_rtx): Move from here ...
13745 * emit-rtl.c (copy_most_rtx): ... to here.
13746
8a13c092
AO
137472002-03-08 Alexandre Oliva <aoliva@redhat.com>
13748
5faae4f7
AO
13749 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
13750 SUBTARGET_CPP_SIZE_SPEC.
13751 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
13752
8a13c092
AO
13753 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
13754
4ec59de2
MH
137552002-03-07 Matt Hiller <hiller@redhat.com>
13756
13757 * gensupport.c (first_dir_md_include): Renamed from include;
13758 change all references.
13759 (last_dir_md_include): Renamed from last_include; change all
13760 references.
13761 (init_md_reader): Unconditionally initialize base_dir whether or
13762 not filename is a relative path.
13763
12f61e77
AO
137642002-03-07 Alexandre Oliva <aoliva@redhat.com>
13765
95356058
AO
13766 * config/fp-bit.c (_unord_f2): Compile it in even if
13767 US_SOFTWARE_GOFAST is enabled.
13768
12f61e77
AO
13769 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
13770 NULL_RTX. Set all HFmode operations as NULL_RTX.
13771 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
13772 NULL_RTX, try reversing the comparison and the operands.
13773
6d7a1c4c
UW
137742002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
13775
13776 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
13777 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
13778 and MATCH_OP_DUP.
13779
66d54344
JH
13780Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
13781
13782 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
13783
068473ec
JH
13784Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
13785
13786 * basic-block.h (fixup_abnormal_edges): Declare.
13787 * reload1.c (fixup_abnormal_edges): New function.
13788 * reg-stack.c (convert_regs): Use it.
13789
13790 * gcse.c (insert_insn_end_bb): Handle trapping insns.
13791
13792 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
13793
71925bc0
RS
137942002-03-07 Richard Sandiford <rsandifo@redhat.com>
13795
13796 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
13797 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
13798 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
13799 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
13800 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
13801 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
13802 unless x and y could be infinite.
13803 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
13804 Check that the common type of both arguments is a real, even for
13805 targets without unordered comparisons. Allow an integer argument
13806 to be compared against a real.
13807 (expand_tree_builtin): Use expand_unordered_cmp.
13808 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
13809 * cse.c (fold_rtx): Likewise. Fix indentation.
13810 * fold-const.c (fold_real_zero_addition_p): New.
13811 (fold): Use it, and the new HONOR_... macros.
13812 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
13813 * jump.c (reversed_comparison_code_parts): After searching for
13814 the true comparison mode, use HONOR_NANS to decide whether it
13815 can be safely reversed.
13816 (reverse_condition_maybe_unordered): Remove IEEE check.
13817 * simplify-rtx.c (simplify_binary_operation): Use the new macros
13818 to decide which simplifications are valid. Allow the following
13819 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
13820 and (a - -b) to (a + b).
13821 (simplify_relational_operation): Use HONOR_NANS.
13822 * doc/tm.texi: Document the MODE_HAS_... macros.
13823
145d3bf2
RE
138242002-03-07 Richard Earnshaw <rearnsha@arm.com>
13825
13826 * combine.c (simplify_comparison): If simplifying a logical shift
13827 right and compare with constant, force the comparison to unsigned.
13828
76a773f3
AH
138292002-03-07 Aldy Hernandez <aldyh@redhat.com>
13830
5b43fed1 13831 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 13832
5b43fed1
RH
13833 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
13834 -mabi=no-altivec
13835 (alt_reg_names): Remove % for vrsave.
76a773f3 13836
ab55f58c
RH
138372002-03-06 Richard Henderson <rth@redhat.com>
13838
5ddec02e 13839 PR optimization/5844
ab55f58c
RH
13840 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
13841 if used indicates we've already emitted one copy of an operand.
13842 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
13843 (gen_split): Supply a non-null used.
13844
e16e3291
UW
138452002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
13846
5b43fed1 13847 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 13848
1e4e95d6 13849 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
13850 but simply fail if the expression is too complex to simplify.
13851 (simplify_gen_binary): Handle simplify_plus_minus failures.
13852
2ca6672b
JH
13853Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
13854
13855 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
13856 consistently call delete_trivially_dead_insns after CSE and GCSE;
13857 fix DFI_life dumping; do jump threading after liveness; do crossjumping
13858 after liveness2; update comment in last crossjumping.
13859 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
13860
31d0dd4f
JL
13861Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
13862
d094b0b3
JL
13863 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
13864 after completing fast dead code elimination.
13865
31d0dd4f
JL
13866 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
13867 COMPARE operator.
1e4e95d6 13868
f2b958b1
PE
138692002-03-06 Phil Edwards <pme@gcc.gnu.org>
13870
13871 * version.c: Fix misplaced leading blanks on first line.
13872
a2877a09
JH
13873Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
13874
13875 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
13876
fe477d8b
JH
13877Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
13878
13879 * cfgcleanup.c (mentions_nonequal_regs): New function.
13880 (thread_jump): Use it.
13881 * toplev.c (rest_of_compilation): Run jump threading after
13882 liveness.
13883
2041cde4
JJ
138842002-03-06 Jakub Jelinek <jakub@redhat.com>
13885
13886 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
13887 patch.
13888
82d68d46
JH
13889Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
13890
13891 * predict.c (estimate_bb_frequencies): Do not reload the
13892 frequencies from notes.
13893
3dec4024
JH
13894Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
13895
13896 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
13897 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
13898
13899 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
13900 delete_noop_moves): Return indeger.
13901 * flow.c (ndead): New variable.
13902 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
13903 BB argument; update callers.
13904 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
13905 (life_analysis): Do not call purge_all_dead_edges.
13906 (update_life_info): Return number of deleted insns; print statistics.
13907 (update_life_info_in_dirty_blocks): likewise.
13908 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
13909 return number of insns deleted.
13910
13911 * cse.c: Include timevar.h
13912 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
13913 iterate until stabilizes; print statistics; return number of killed
13914 insns.
13915 * Makefile.in: (cse.o): Add timevar.h dependency
13916 * rtl.h (delete_trivially_dead_insns): New.
13917 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
13918 * toplev.c (rest_of_compilation): Update callers.
13919
13920 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
13921 (try_optimize_cfg): Do not update liveness.
13922 (cleanup-cfg): Loop until try_optimize_cfg and dead code
13923 removal stabilizes; use delete_trivially_dead_insns.
13924
13925 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
13926
c7544dd8
ZW
139272002-03-05 Zack Weinberg <zack@codesourcery.com>
13928
13929 * cppmain.c (setup_callbacks): Disable #pragma and #ident
13930 callbacks when processing assembly language.
13931
50b424a9
JDA
139322002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13933
13934 * pa.h (ASM_FILE_END): Define.
13935 * som.h (ASM_FILE_END): Delete.
13936
13937 * pa.c (function_arg): Don't pass floats in general registers in
13938 indirect calls if TARGET_ELF32.
13939
6185f217
RH
139402002-03-05 Richard Henderson <rth@redhat.com>
13941
13942 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
13943
3020a4b2
DS
139442002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
13945
13946 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
13947
65649daa
JJ
139482002-03-05 Jakub Jelinek <jakub@redhat.com>
13949
13950 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
13951 -r command line. Don't hide any symbols if not building
13952 shared libgcc.
13953
5a1a3e5e
JH
13954Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
13955
13956 * cfg.c (dump_flow_info): Warn about profile mismatches.
13957 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
13958 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
13959
170c56da
JJ
139602002-03-05 Jakub Jelinek <jakub@redhat.com>
13961
13962 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
13963 wide volatile memory by parts.
13964
6d051694
JJ
139652002-03-05 Jakub Jelinek <jakub@redhat.com>
13966
13967 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
13968 is NULL.
13969
28bcfd4d
RH
139702002-03-05 Richard Henderson <rth@redhat.com>
13971
5b43fed1 13972 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 13973
75227a33
GK
139742002-03-04 Geoffrey Keating <geoffk@redhat.com>
13975
13976 * toplev.c (documented_lang_options): Document more
13977 language-specific options.
13978 * doc/invoke.texi (Warning Options): Correct documentation for
13979 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
13980 * c-decl.c (c_decode_option): Use a table to handle warning options.
13981
4f1aac42
HPN
139822002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
13983
13984 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
13985 parameter to mmix_encode_section_info.
13986 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
13987 relocatably. Always produce ELF, not mmo if linking relocatably.
13988 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
13989 first is non-zero, don't add symbol prefix.
13990 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
13991 prototype accordingly.
13992
12345543
KW
139932002-03-04 Krister Walfridsson <cato@df.lth.se>
13994
13995 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
13996
8e97db8f
JM
139972002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
13998
13999 * configure.in: Increase required makeinfo version to 4.1.
14000 * configure: Regenerate.
14001
06487868
GK
140022002-03-04 Geoffrey Keating <geoffk@redhat.com>
14003
14004 * .cvsignore: Remove *.info* and genrtl*; these files are generated
14005 elsewhere now.
14006
cff42170
JM
140072002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
14008
14009 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
14010 * doc/invoke.texi: Fix @math uses.
14011
974a7f56
JH
14012Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14013
14014 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
14015 removal
14016
3b7d0e98
AH
140172002-03-03 Aldy Hernandez <aldyh@redhat.com>
14018
5b43fed1
RH
14019 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
14020 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 14021
5b43fed1 14022 * config/rs6000/t-ppcendian: New.
3b7d0e98 14023
65f2f288
HB
140242002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14025
14026 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
14027 nonimmediate_src_operand and nonimmediate_lsrc_operand to
14028 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
14029
8ce0a8a5
RH
140302002-03-03 Richard Henderson <rth@redhat.com>
14031
14032 * toplev.c (rest_of_decl_compilation): Revert last two changes.
14033
ba31d94e
ZW
140342002-03-03 Zack Weinberg <zack@codesourcery.com>
14035
14036 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
14037 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
14038 tree.c, config/m68k/m68k.c:
14039 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
14040 REAL_ARITHMETIC blocks unconditional. Delete some further
14041 #ifdef blocks predicated on REAL_ARITHMETIC.
14042 * flags.h, toplev.c: Delete remaining references to
14043 flag_pretend_float.
14044
14045 * doc/invoke.texi: Remove documentation of -fpretend-float.
14046 * doc/tm.texi: Describe the various REAL_* macros as provided by
14047 real.h, not by the target configuration files.
14048
14049 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
14050 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
14051 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14052 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
14053 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
14054 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
14055 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
14056 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
14057 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14058 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
14059 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14060 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14061 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
14062 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
14063 config/xtensa/xtensa.h:
14064 Do not define, undefine, or mention in comments any of
14065 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
14066 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
14067 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
14068 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
14069 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
14070 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
14071 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
14072 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
14073 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
14074
9a571cfd
KG
140752002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14076
e81dd381
KG
14077 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
14078 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
14079 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
14080 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14081 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
14082 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
14083 Delete.
14084 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 14085 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 14086
9a571cfd
KG
14087 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
14088 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
14089 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
14090
ca7558fc
KG
140912002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14092
14093 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
14094 lieu of explicit sizeof/sizeof.
14095 * i386.c (override_options, ix86_init_mmx_sse_builtins,
14096 ix86_expand_builtin): Likewise.
14097 * mips.c (mips_add_gc_roots): Likewise.
14098 * mmix.c (mmix_output_condition): Likewise.
14099 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
14100 altivec_init_builtins): Likewise.
14101 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
14102 * cppexp.c (Nsuff, parse_number): Likewise.
14103 * cppinit.c (builtin_array_end): Likewise.
14104 * gcc.c (n_default_compilers, process_command): Likewise.
14105 * genpreds.c (output_predicate_decls): Likewise.
14106 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
14107 * lcm.c (N_ENTITIES): Likewise.
14108 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 14109
41c78c88
RH
141102002-03-03 Richard Henderson <rth@redhat.com>
14111
14112 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
14113 for types or labels.
14114
9e9b71e6
RH
141152002-03-03 Richard Henderson <rth@redhat.com>
14116
14117 * c-decl.c (start_decl): Initialized variables are not common.
14118
c26a6db8
PB
141192002-03-02 Per Bothner <per@bothner.com>
14120
14121 * gcc.c (option_map): Suport new --bootclasspath option.
14122 --CLASSPATH is now just an alias for --classpath.
14123
9e8aab55
RH
141242002-03-02 Richard Henderson <rth@redhat.com>
14125
14126 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
14127 load if "internal" visibility.
14128 * doc/extend.texi: Document visibility meanings.
14129
b3bbd220
RH
141302002-03-02 Richard Henderson <rth@redhat.com>
14131
14132 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
14133 to functions as well.
14134
b14707c3
RH
141352002-03-02 Richard Henderson <rth@redhat.com>
14136
14137 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
14138 (handle_visibility_attribute): Don't call assemble_visibility.
14139 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
14140 without asmspec. Invoke assemble_alias when needed.
14141 * varasm.c (maybe_assemble_visibility): New.
14142 (assemble_start_function, assemble_variable, assemble_alias): Use it.
14143
b2003250
RH
141442002-03-02 Richard Henderson <rth@redhat.com>
14145
14146 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
14147 invoke ENCODE_SECTION_INFO with first call flag.
14148
14149 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
14150 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 14151 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
14152 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
14153 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14154 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14155 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
14156 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
14157 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
14158 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
14159 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
14160 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
14161 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14162 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
14163 config/mcore/mcore-protos.h, config/mcore/mcore.c,
14164 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
14165 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 14166 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
14167 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
14168 config/sh/sh.h, config/sparc/sparc.h,
14169 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
14170 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
14171 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
14172 FIRST argument. As needed, examine it and do nothing.
14173
ba31d94e 14174 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
14175 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14176 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
14177
14178 * config/arm/t-pe (pe.o): Add dependencies.
14179
5c60f03d
KG
141802002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14181
14182 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
14183 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
14184 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
14185 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
14186 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
14187 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
14188 * defaults.h (BITS_PER_UNIT): Define.
14189 * doc/tm.texi (BITS_PER_UNIT): Document default value.
14190
86855e8c
KH
141912002-03-02 Kazu Hirata <kazu@hxi.com>
14192
14193 * config/h8300/h8300-protos.h: Add a prototype for
14194 compute_a_shift_length.
14195 * config/h8300/h8300.c (h8300_asm_insn_count): New.
14196 (compute_a_shift_length): Likewise.
14197 (h8300_adjust_insn_length): Do not adjust insn length of shift
14198 insns.
14199 * config/h8300/h8300.md (anonymous shift patterns): Use
14200 compute_a_shift_length.
14201
f6041ed8
RK
14202Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14203
35aa3c1c
RK
14204 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
14205 trunc_int_for_mode.
14206
f6041ed8
RK
14207 * emit-rtl.c (offset_address): Call update_temp_slot_address.
14208
27b41650
KG
142092002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14210
14211 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
14212 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
14213 * flags.h (flag_zero_initialized_in_bss): Declare.
14214 * toplev.c (flag_zero_initialized_in_bss): New flag.
14215 (lang_independent_options): Add flag_zero_initialized_in_bss.
14216 * tree.c (initializer_zerop): New function.
14217 * tree.h (initializer_zerop): Declare.
14218 * varasm.c (assemble_variable): If we can emit bss, put zero
14219 initializers in the bss section.
14220
ca734b39
AM
142212002-03-02 Alan Modra <amodra@bigpond.net.au>
14222
14223 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
14224 like more than one symbol per .weak directive.
14225
49b72306
RH
142262002-03-01 Richard Henderson <rth@redhat.com>
14227
14228 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
14229 adjust argument_pointer by pretend_args_size.
14230 (ia64_va_start): Adjust va_start address by -pretend_args_size.
14231
fbf0fe41
KH
142322002-03-01 Kazu Hirata <kazu@hxi.com>
14233
14234 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
14235
0010687d
JH
14236Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
14237
14238 * toplev.c (rest_of_compilation): Delete dead jumptables before
14239 loop.
14240 * flow.c (delete_dead_jumptables): Make global.
14241 * rtl.h (delete_dead_jumptables): Declare.
14242
9429c84c
DE
142432002-03-01 David Edelsohn <edelsohn@gnu.org>
14244
14245 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
14246 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 14247 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 14248
f0b6f9a6
KH
142492002-03-01 Kazu Hirata <kazu@hxi.com>
14250
14251 * config/h8300/h8300-protos.h: Fix formatting.
14252 * config/h8300/h8300.c: Likewise.
14253 * config/h8300/h8300.h: Likewise.
14254
bc8db8a1
KH
142552002-03-01 Kazu Hirata <kazu@hxi.com>
14256
14257 * config/h8300/h8300.c (print_operand): Support 16-bit
14258 constant addresses.
14259 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
14260
32b069d3
RH
142612002-02-28 Richard Henderson <rth@redhat.com>
14262
14263 * expmed.c (store_bit_field): Prevent generation of CONCATs;
14264 pun complex values as integers; use gen_lowpart instead of
14265 gen_rtx_SUBREG.
14266 (extract_bit_field): Likewise.
14267
79c4e63f
AM
142682002-03-01 Alan Modra <amodra@bigpond.net.au>
14269 David Edelsohn <edelsohn@gnu.org>
14270
14271 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
14272 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
14273 (SUPPORTS_WEAK): Likewise.
14274 * output.h (add_weak): Add tree param.
14275 * varasm.c (add_weak): Likewise. Save decl.
14276 (struct weak_syms): Add decl field.
14277 (mark_weak_decls): New function.
14278 (init_varasm_once): ggc_add_root mark_weak_decls.
14279 (assemble_start_function): Use ASM_WEAKEN_DECL.
14280 (assemble_variable): Likewise.
14281 (assemble_alias): Likewise.
14282 (declare_weak): Pass decl to add_weak.
14283 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
14284 (remove_from_pending_weak_list): Declare and define for
14285 ASM_WEAKEN_DECL.
14286 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
14287 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
14288 * defaults.h (SUPPORTS_WEAK): Likewise.
14289 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14290 .weak for code sym. Do emit .size for descriptor sym.
14291 (ASM_DECLARE_FUNCTION_SIZE): Define.
14292 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
14293 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
14294 .lglobl unless TARGET_XCOFF. Formatting fixes.
14295 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14296 .weak for code sym.
14297 (HANDLE_PRAGMA_WEAK): Remove.
14298 (ASM_WEAKEN_LABEL): Remove.
14299 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
14300
6f30f1f1
JM
143012002-03-01 Jason Merrill <jason@redhat.com>
14302
14303 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
14304 (TARGET_EXPR_CLEANUP): New macro.
14305
7879b81e
SE
143062002-02-28 Steve Ellcey <sje@cup.hp.com>
14307
14308 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
14309 to take ptr_extend into account as third type of extension.
14310 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
14311 fields used by SUBREG_PROMOTED_UNSIGNED_P.
14312 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
14313 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
14314 * calls.c (precompute_arguments): Use new macro.
14315 (expand_call): Ditto.
14316 * combine.c (nonzero_bits): Ditto.
14317 (record_promoted_value): Ditto.
14318 * expr.c (store_expr): Ditto.
14319 (expand_expr): Ditto.
14320 * function.c (assign_parms): Ditto.
14321
42d579d8
AO
143222002-02-28 Alexandre Oliva <aoliva@redhat.com>
14323
14324 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
14325 override -shared and -shared-libgcc.
14326
e0054185
DB
143272002-02-28 David O'Brien <obrien@FreeBSD.org>
14328
14329 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
14330 of "ultrasparc".
14331 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
14332 to be broken.
14333
abda4f1c
RH
143342002-02-28 Richard Henderson <rth@redhat.com>
14335
14336 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
14337 4 cycle latency from MM producers.
14338 (ia64_internal_sched_reorder): Likewise with pipeline flush.
14339
c0f08649
JJ
143402002-02-28 Jakub Jelinek <jakub@redhat.com>
14341
14342 * mklibgcc.in: Don't use GNU make extension.
14343
f79f2651
NB
143442002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14345
14346 * c-parse.in (STATIC): New terminal.
14347 (scspec): New non-terminal. Update productions accordingly.
14348 (program): Remove bogus ifc / end ifc.
14349 (array_declarator): Simplify production using STATIC.
14350
001e3fee
JM
143512002-02-28 Jim Meyering <meyering@lucent.com>
14352
14353 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
14354 \a still means TARGET_BELL.
14355
89076bb3
RH
143562002-02-28 Richard Henderson <rth@redhat.com>
14357
14358 * haifa-sched.c (sched_emit_insn): New.
14359 (schedule_block): Use last_scheduled_insn to track last insn.
14360 * sched-int.h (sched_emit_insn): Prototype.
14361 * config/ia64/ia64.c (last_issued): Remove.
14362 (ia64_variable_issue): Don't set it.
14363 (nop_cycles_until): Use sched_emit_insn.
14364
e3aaacf4
AM
143652002-02-28 Andrew MacLeod <amacleod@redhat.com>
14366
14367 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
14368 extended constants.
14369
7f473594
KH
143702002-02-28 Kazu Hirata <kazu@hxi.com>
14371
14372 * config/h8300/h8300.c: Fix formatting.
14373 * config/h8300/h8300.h: Likewise.
14374
b96c434c
MM
143752002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
14376
14377 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
14378 which may overwrite the high byte of the frame pointer.
14379
9b420a6a
BT
143802002-02-28 Bo Thorsen <bo@suse.de>
14381
14382 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
14383 (STARTFILE_SPEC): Add 64 bit files.
14384 (ENDFILE_SPEC): Likewise.
14385
6f30f1f1 143862002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
14387
14388 * c-decl.c (finish_function): Only warn about missing return
14389 statement with -Wreturn-type.
14390
70da1d03
JH
14391Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
14392
14393 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
14394
14395 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
14396 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
14397
38c1593d
JH
14398Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
14399
14400 * basic-block.h (BB_REACHABLE): Renumber.
14401 (BB_DIRTY, BB_NEW): New flags.
14402 (clear_bb_flags): Declare.
14403 (update_life_info_in_dirty_blocks): Declare.
14404 * cfg.c (clear_bb_flags): New function.
14405 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
14406 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
14407 reorder_insns, emit_insn_after): Mark block as dirty.
14408 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
14409 (update_life_info_in_dirty_blocks): New function.
14410 * recog.c (apply_change_group): Dirtify block.
14411
14412 * cse.c (cse_insn): Reorder emitting of jump insn to keep
14413 cfg consistent.
14414 * gcse.c (delete_null_pointer_checks): Likewise.
14415
14416 * toplev.c (dump_file_index): Move cse2 after bp,
14417 add DFI_null
14418 (dump_file_info): Similary.
14419 (rest_of_compilation): Avoid most of CFG rebuilds;
14420 do first if converision after null pointer checks, do cse2
14421 after branch prediction; avoid full liveness rebuild after
14422 initializing subregs.
14423 * invoke.texi (-d options): Document -du, renumber.
14424
14425 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
14426 (notice_new_block): Do not set BB_UPDATE_LIFE.
14427 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
14428 merge_blocks_move_successor_nojumps, merge_blocks,
14429 try_crossjump_to_edge): Likewise.
14430 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
14431 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
14432 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
14433 (merge_of_block): Do not use life_data_ok.
14434 (find_if_case_1): Do not use SET_UPDATE_LIFE.
14435 (if_convert): Use BB_DIRTY mechanizm to update life.
14436 * lcm.c (optimize_mode_switching): Update
14437 update_life_info_in_dirty_blocks
14438
63e1b1c4
NB
144392002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14440
14441 * Makefile.in (integrate.o): Update.
14442 * c-decl.c (copy_lang_decl): Rename.
14443 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14444 * integrate.c: Include langhooks.h.
14445 (copy_decl_for_inlining): Update to use langhook.
14446 * langhooks-def.h (lhd_do_nothing_t,
14447 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
14448 (LANG_HOOKS_INITIALIZER): Update.
14449 * langhooks.c (lhd_do_nothing_t): New.
14450 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
14451 * tree.h (copy_lang_decl): Remove.
14452objc:
14453 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14454
f472fa29
AM
144552002-02-27 Andrew MacLeod <amacleod@redhat.com>
14456
ba31d94e 14457 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
14458 POST_DEC, and POST_MODIFY.
14459
273cf2e4
ZW
144602002-02-27 Zack Weinberg <zack@codesourcery.com>
14461
14462 * c-typeck.c (digest_init): Remove unused parameter; all
14463 callers changed.
14464
4e07d762
GK
144652002-02-27 Geoffrey Keating <geoffk@redhat.com>
14466
14467 * expmed.c (expand_shift): Correctly test for low part of a
14468 subreg.
14469
6bc627b3
UW
144702002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
14471
14472 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
14473 insn UIDs with insn addresses.
14474
f458d1d5
ZW
144752002-02-27 Zack Weinberg <zack@codesourcery.com>
14476
14477 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
14478 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
14479 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
14480 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
14481 gcc.c, toplev.c: Delete code implementing -traditional mode.
14482
14483 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
14484 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
14485 Document removal of -traditional mode for compilation, and
14486 remove documentation only relevant to that mode.
14487
14488 * config/nextstep.h, config/ptx4.h, config/svr4.h,
14489 config/convex/convex.h, config/d30v/d30v.h,
14490 config/i386/dgux.h, config/i386/osf1elf.h,
14491 config/i386/osfelf.h, config/i386/osfrose.h,
14492 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
14493 config/m68k/hp310.h, config/m88k/dgux.h,
14494 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
14495 config/m88k/m88k.h, config/m88k/openbsd.h,
14496 config/mips/abi64.h, config/mips/osfrose.h,
14497 config/mips/svr4-5.h, config/mips/svr4-t.h,
14498 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14499 config/stormy16/stormy16.h: Remove all references to
14500 -traditional from target specs. Delete all mention of the
14501 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
14502 delete a couple of commented-out definitions of
14503 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
14504 to -traditional.
14505
14506 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
14507 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
14508
e0b3a8ff
ZW
145092002-02-27 Zack Weinberg <zack@codesourcery.com>
14510
14511 * mklibgcc.in: Don't use \n in a line subject to
14512 interpretation by echo.
14513
5c6a85b7
GS
145142002-02-27 Graham Stott <grahams@redhat.com>
14515
72b05af1
GS
14516 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
14517 Constify NAME.
14518
7d104885
GS
14519 * loop.c (prescan_loop): Handle PARALLEL.
14520
8ed805d2
GS
14521 * unroll.c (loop_iterations): Return 0 if the add_val for
14522 a BIV is REG.
14523
fd478a0a
GS
14524 * final.c (output_operand_lossage): Constify PFX_STR.
14525
5c6a85b7
GS
14526 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
14527
cd98ad03
JH
14528Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
14529
14530 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
14531 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
14532
639ae55b
JH
14533Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
14534
14535 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14536
e808ec9c
NB
145372002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
14538
14539 * cpplex.c (_cpp_lex_token): Handle directives in macro
14540 arguments.
14541 * cpplib.c (_cpp_handle_directive): Save and restore state
14542 if parsing macro args when entering a directive.
14543 * cppmacro.c (collect_args): No need to handle directives
14544 in macro arguments.
14545 (enter_macro_context, replace_args): Use the original macro
14546 definition in case it was redefined whilst collecting arguments.
14547doc:
14548 * cpp.texi: Update.
14549
f585a356
DE
145502002-02-26 David Edelsohn <edelsohn@gnu.org>
14551
14552 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
14553 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
14554 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
14555 method on AIX.
14556 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
14557 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
14558 (load_toc_v4_PIC_2): Same.
14559
145602002-02-26 Alan Modra <amodra@bigpond.net.au>
14561
14562 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
14563
d699058e
RH
145642002-02-26 Richard Henderson <rth@redhat.com>
14565
14566 * config/alpha/alpha.md (ashldi_se): Re-enable.
14567
eadccfbb
RH
145682002-02-26 Richard Henderson <rth@redhat.com>
14569
14570 * config/alpha/alpha.c (alpha_encode_section_info): Examine
14571 MODULE_LOCAL_P; improve commentary.
14572
7080ada1
ZW
145732002-02-26 Zack Weinberg <zack@codesourcery.com>
14574
14575 * doc/cpp.texi: Clarify documentation of relationship between
14576 #line and #include.
14577
b42cff6b
KH
145782002-02-26 Kazu Hirata <kazu@hxi.com>
14579
14580 * config/h8300/h8300-protos.h: Update the prototype for
14581 compute_logical_op_length. Add the prototype for
14582 compute_logical_op_cc.
14583 * config/h8300/h8300.c (compute_logical_op_length): Figure out
14584 code from operands.
14585 (compute_logical_op_cc): New.
14586 * config/h8300/h8300.md: Combine all the logical op patterns
14587 in HImode and SImode. Use compute_logical_op_cc.
14588
831c4e87
KC
145892002-02-26 Kelley Cook <kelleycook@comcast.net>
14590
14591 * config/i386/i386.c (print_operand): Don't append ATT-style
14592 length suffixs to x87 opcodes when in Intel mode.
14593
ff88fe10
RS
145942002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
14595
14596 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
14597 (init_emit_once): Update calls.
14598 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
14599 (init_syntax_once): Prototype.
14600
d4108589
JDA
146012002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
14602
14603 * pa-linux.h (LIB_SPEC): Update definition.
14604 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14605
e013f3c7
RH
146062002-02-26 Richard Henderson <rth@redhat.com>
14607
14608 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
14609 if we emitted a stop bit.
14610
9e944a16
JJ
146112002-02-26 Jakub Jelinek <jakub@redhat.com>
14612
14613 * configure.in (libgcc_visibility): Substitute.
14614 * configure: Rebuilt.
14615 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
14616 defined symbols .hidden.
14617
47bd70b5
JJ
146182002-02-26 Jakub Jelinek <jakub@redhat.com>
14619
14620 * attribs.c (c_common_attribute_table): Add visibility.
14621 (handle_visibility_attribute): New function.
14622 * varasm.c (assemble_visibility): New function.
14623 * output.h (assemble_visibility): Add prototype.
14624 * tree.h (MODULE_LOCAL_P): Define.
14625 * crtstuff.c (__dso_handle): Use visibility attribute.
14626 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
14627 for MODULE_LOCAL_P symbols too.
14628 * config/ia64/ia64.c (ia64_encode_section_info): Handle
14629 MODULE_LOCAL_P symbols the same way as local symbols.
14630 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
14631 into .sdata/.sbss by the user.
14632 * doc/extend.texi (Function Attributes): Document visibility
14633 attribute.
14634
6d73371a
JJ
146352002-02-26 Jakub Jelinek <jakub@redhat.com>
14636
14637 PR debug/5770
14638 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
14639 STRING_CST initializer spanning the whole variable without
14640 embedded zeros.
14641 If expand_expr returned MEM, don't use it.
14642
06e224f7
AO
146432002-02-26 Alexandre Oliva <aoliva@redhat.com>
14644
14645 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
14646 generate a die for the lexical block.
14647
40367e2d
KH
146482002-02-26 Kazu Hirata <kazu@hxi.com>
14649
14650 * config/h8300/h8300-protos.h: Add a prototype for
14651 compute_logical_op_length.
14652 * config/h8300/h8300.c (compute_logical_op_length): New.
14653 * config/h8300/h8300.md (anonymous logical patterns): Use
14654 compute_logical_op_length for length.
14655
0e98f924
AH
146562002-02-26 Aldy Hernandez <aldyh@redhat.com>
14657
831c4e87
KC
14658 * dwarf2out.c (modified_type_die): Do not call type_main_variant
14659 for vectors.
14660 (gen_type_die): Same.
0e98f924 14661
831c4e87 14662 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 14663
a50cfd52
DE
146642002-02-26 Daniel Egger <degger@fhm.edu>
14665
831c4e87
KC
14666 * config/rs6000/rs6000.md: Swap define_insn attributes to
14667 fix incorrect generation of merge high instructions instead
14668 of merge low.
a50cfd52 14669
b7997284
AH
146702002-02-26 Aldy Hernandez <aldyh@redhat.com>
14671
831c4e87
KC
14672 * c-typeck.c (really_start_incremental_init): Use
14673 bitsize_zero_node for vectors.
b7997284 14674
376aec5d
AH
146752002-02-26 Aldy Hernandez <aldyh@redhat.com>
14676
831c4e87
KC
14677 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
14678 ("*set_vrsave_internal"): Same.
376aec5d 14679
3b40e71b
RH
146802002-02-25 Richard Henderson <rth@redhat.com>
14681
14682 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
14683 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
14684
232b8f52
JJ
146852002-02-25 Jakub Jelinek <jakub@redhat.com>
14686
14687 PR target/5755
14688 * config/i386/i386.c (ix86_return_pops_args): Only pop
14689 fake structure return argument if it was passed on the stack.
14690
67282790
JM
146912002-02-25 Jason Merrill <jason@redhat.com>
14692
14693 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
14694 RESULT_DECL.
14695
5c181756
AO
146962002-02-25 Alexandre Oliva <aoliva@redhat.com>
14697
14698 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
14699 link with shared_name only.
14700 * doc/invoke.texi (Link Options): Document new behavior.
14701
6786d201
AH
147022002-02-25 Aldy Hernandez <aldyh@redhat.com>
14703
831c4e87 14704 * c-typeck.c (push_init_level): Handle vectors.
6786d201 14705
7d6040e8
AO
147062002-02-25 Alexandre Oliva <aoliva@redhat.com>
14707
14708 * config/sparc/sparc.c (const64_high_operand): Zero-extend
14709 operands of SPARC_SETHI_P.
14710 (input_operand): Likewise.
14711 (sparc_emit_set_const32): Likewise.
14712 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
14713 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
14714 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
14715 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
14716 (movdi_insn_sp64_vis): Likewise.
14717 (movdi split, movdf split): Use SETHI32.
14718 * doc/md.texi: Document SPARC constraints L, M and N.
14719
b188f760
AH
147202002-02-25 Aldy Hernandez <aldyh@redhat.com>
14721
831c4e87
KC
14722 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
14723 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 14724
831c4e87
KC
14725 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
14726 gen_get_vrsave_internal.
b188f760 14727
8041889f
RK
14728Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14729
14730 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
14731
a47ed310
NB
147322002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
14733
14734 * cpplex.c (cpp_interpret_charconst): Get signedness or
14735 otherwise of wide character constants correct.
14736 * cppexp.c (lex): Get signedness of wide charconsts correct.
14737
cb8f73be
RK
14738Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14739
14740 * optabs.c (widen_operand): Only call convert_modes for
14741 promoted SUBREG if signedness matches.
14742 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
14743
2450e0b8
NB
147442002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14745
14746 * cpplib.c (glue_header_name): Use local buffer to build up
14747 header name.
14748
70b6aaed
NB
147492002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14750
14751 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
14752
6be580c7
KH
147532002-02-23 Kazu Hirata <kazu@hxi.com>
14754
14755 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
14756 H8/300[HS] separately.
14757 * config/h8300/h8300.md: Remove the early clobber constraint
14758 from bit field patterns.
14759
35dad9f1
KH
147602002-02-23 Kazu Hirata <kazu@hxi.com>
14761
14762 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
14763 register_operand.
14764 (mulhisi3): Likewise.
14765 (umulqisi3): Likewise.
14766 (umulhisi3): Likewise.
14767
ab8e2228
NB
147682002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14769
14770 * cppinit.c (output_deps): Correct test for stdout output.
14771 (init_dependency_output): Cure warning.
14772
ac6f8a15
RK
14773Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14774
14775 * expr.c (store_expr): When converting expression to promoted
14776 equivalent type, allow using SUBREG_REG of TARGET as the target
14777 of the expansion of EXP.
14778 * loop.c (basic_induction_var, case SUBREG): Always look inside.
14779 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
14780 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
14781 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
14782 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
14783
f282ffb3
JM
147842002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
14785
14786 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
14787 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
14788 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
14789
44c5edc0
JJ
147902002-02-23 Jakub Jelinek <jakub@redhat.com>
14791
14792 PR optimization/5747
14793 * loop.c (scan_loop): Update reg info if move_movables created new
14794 pseudos.
14795
f98e43c0
DE
147962002-02-23 David Edelsohn <edelsohn@gnu.org>
14797
14798 * gcc.c (init_gcc_spec): Revert last change.
14799
e72247f4
DE
148002002-02-23 David Edelsohn <edelsohn@gnu.org>
14801
14802 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
14803 gpc_reg_operand constraint.
14804
148052002-02-23 Alan Modra <amodra@bigpond.net.au>
14806
14807 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
14808 Simplify comparison of `low'.
14809 (add_operand): Fix formatting.
14810 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 14811 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
14812 (rs6000_stack_info): Remove redundant test setting push_p.
14813 (output_toc): Fix formatting.
14814 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
14815 cc_reg_not_cr0_operand constraint.
14816 (booldi3, boolcdi3 splitters): Same.
14817
a5c30531
AH
148182002-02-23 Aldy Hernandez <aldyh@redhat.com>
14819
831c4e87 14820 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 14821
43710f9f
DE
148222002-02-22 David Edelsohn <edelsohn@gnu.org>
14823
14824 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
14825 gcc invoked with -shared-libgcc.
14826
3256b817
JJ
148272002-02-22 Jakub Jelinek <jakub@redhat.com>
14828
14829 PR c++/5748
14830 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
14831 decl if any of elements was TREE_USED.
14832
9e0625a3
AO
148332002-02-22 Alexandre Oliva <aoliva@redhat.com>
14834
14835 * config/sparc/sol2.h: Don't include sys/mman.h.
14836 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
14837 (arith_4096_operand): Don't throw high bits away.
14838 (const64_operand): Take sign extension of CONST_INTs into account.
14839 (const64_high_operand, sparc_emit_set_const32): Likewise.
14840 (GEN_HIGHINT64): Likewise.
14841 (sparc_emit_set_const64_quick1): Likewise.
14842 (const64_is_2insns): Likewise.
14843 (print_operand): Use trunc_int_for_mode for sign extension.
14844 * config/sparc/sparc.h (SMALL_INT32): Likewise.
14845 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
14846 chars. Assume CONST_INT is already properly sign-extended.
14847 (movdi split): Sign-extend each SImode part.
14848 (andsi3 split): Don't mask high bits off, so that result
14849 remains properly sign-extend.
14850 (iorsi3 split): Likewise.
14851 (xorsi3 split): Likewise.
14852
54fec3d5
RS
148532002-02-22 Richard Sandiford <rsandifo@redhat.com>
14854
14855 * fold-const.c (fold): Fix typo in comments.
14856
667ada9b
DN
148572002-02-21 Diego Novillo <dnovillo@redhat.com>
14858
14859 * Makefile.in (langhooks.o): Update dependencies.
14860
29ac78d5
DN
148612002-02-21 Diego Novillo <dnovillo@redhat.com>
14862
14863 * langhooks.c: Include flags.h.
14864
6aa77e6c
AH
148652002-02-21 Aldy Hernandez <aldyh@redhat.com>
14866
14867 * testsuite/gcc.dg/attr-alwaysinline.c: New.
14868
14869 * c-common.c (c_common_post_options): Set inline trees by
14870 default.
14871
14872 * doc/extend.texi (Function Attributes): Document always_inline
14873 attribute.
14874 Update documentation about inlining when not optimizing.
14875
14876 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
14877
14878 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
14879 unless DECL_ALWAYS_INLINE.
14880
14881 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
14882 unless DECL_ALWAYS_INLINE.
14883 (c_disregard_inline_limits): Disregard if always_inline set.
14884
14885 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
14886 Disregard if always_inline set.
14887 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
14888 unless DECL_ALWAYS_INLINE.
14889
14890 * attribs.c (handle_always_inline_attribute): New.
14891 (c_common_attribute_table): Add always_inline.
14892
14893 * config/rs6000/altivec.h: Add prototypes for builtins
14894 requiring the always_inline attribute.
14895
c410d49e
EC
148962002-02-21 Eric Christopher <echristo@redhat.com>
14897
14898 * expmed.c (store_bit_field): Try to simplify the subreg
14899 before generating a new one when when the mode size of
14900 value is less than maxmode.
14901
e3c8ea67
RH
149022002-02-21 Richard Henderson <rth@redhat.com>
14903
14904 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
14905 than gen_rtx_PLUS to form the sum.
14906 * explow.c (force_reg): Rearrange to not allocate new pseudo
14907 when force_operand returns a register.
14908 * expr.c (expand_assignment): Allow offset_rtx expansion to
14909 return a sum. Do not force addresses into registers.
14910 (expand_expr): Likewise.
14911 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
14912 to canonicalize arithmetic that didn't simpify.
14913 (simplify_plus_minus): New argument force; update
14914 all callers. Don't split CONST unless we can do something with it,
14915 and wouldn't lose the constness of the operands.
14916
14917 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
14918 that we generated earlier.
14919
c1a046e5
TT
149202002-02-21 Tom Tromey <tromey@redhat.com>
14921
14922 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14923 (output_line_info): Use constant `1', with a long explanatory
14924 comment.
14925 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
14926
31fbaad4
R
14927Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
14928
14929 * jump.c (redirect_jump): If old label has no UID, don't try to
14930 delete it.
14931
a7f52356
R
14932Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
14933
14934 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
14935 If input is constant, do shifts at compile time.
14936
924fcc4e
JM
149372002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
14938
14939 * doc/extend.texi: Fix some more overfull hboxes.
14940
e5a20888
JJ
149412002-02-21 Jakub Jelinek <jakub@redhat.com>
14942
14943 PR optimization/4994
14944 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
14945 register moves.
14946
149472002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
14948
14949 PR c++/4574
14950 * expr.h (expand_and): Add mode argument.
14951 * expmed.c (expand_and): Add mode argument.
14952 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
14953 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
14954 * except.c (expand_builtin_extract_return_addr): Likewise.
14955 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14956 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14957 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
14958 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
14959 * config/c4x/c4x.md: Use GEN_INT (x) instead of
14960 gen_rtx (CONST_INT, VOIDmode, x).
14961
7133e992
JJ
149622002-02-21 Jakub Jelinek <jakub@redhat.com>
14963
14964 PR c/4697:
14965 * stmt.c (warn_if_unused_value): Move side effects test once more.
14966
e2ec05a6
TG
149672002-02-20 Torbjorn Granlund <tege@swox.com>
14968
14969 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 14970 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 14971
9dd791c8
AO
14972Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
14973
14974 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
14975 SUBREG or ZERO_EXTEND.
14976
7ab56274
R
14977Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
14978
14979 * sh.h (current_function_anonymous_args): Remove.
14980 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
14981 of current_function_varargs and current_function_stdarg is set.
14982 * sh.c (sh_expand_prologue): Check current_function_varargs /
14983 current_function_stdarg / TARGET_SH5 instead of
14984 current_function_anonymous_args.
14985
14986 * sh64.h (TARGET_VERSION): Define.
14987
b1765bde
DE
149882002-02-20 David Edelsohn <edelsohn@gnu.org>
14989
14990 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
14991 VRSAVE_REGNO on TARGET_ALTIVEC.
14992
149932002-02-20 Alan Modra <amodra@bigpond.net.au>
14994
14995 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
14996 bits of SImode const_int.
14997 (includes_rshift_p): Likewise.
14998 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 14999 mode.
b1765bde
DE
15000 (rs6000_output_function_epilogue): Pad traceback table to word.
15001 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15002 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15003 mask64_operand with correct mode.
b1765bde
DE
15004 (FUNCTION_ARG_REGNO_P): Correct parentheses.
15005
149d6f9e
JJ
150062002-02-20 Jakub Jelinek <jakub@redhat.com>
15007
15008 PR debug/4461
15009 * varasm.c (get_pool_constant_mark): New.
15010 * rtl.h (get_pool_constant_mark): Add prototype.
15011 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
15012 be represented if it has not been output.
15013
4161da12
AO
150142002-02-20 Alexandre Oliva <aoliva@redhat.com>
15015
15016 * combine.c (do_SUBST): Sanity check substitutions of
15017 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
15018 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
15019 CONST_INT into its operand.
15020 (known_cond): Likewise, for ZERO_EXTEND.
15021 * simplify-rtx.c (simplify_unary_operation): Fix condition to
15022 allow for simplification of wide modes. Reject CONST_INTs in
15023 ZERO_EXTEND when their actual mode is not given.
15024
3704ef74
AO
150252002-02-20 Alexandre Oliva <aoliva@redhat.com>
15026
15027 * c-decl.c (pushdecl): If no global declaration is found for an
15028 extern declaration in block scope, try a limbo one.
15029
7552da58
JJ
150302002-02-20 Jakub Jelinek <jakub@redhat.com>
15031
15032 PR c++/4401
15033 * c-common.c (pointer_int_sum): Moved from...
15034 * c-typeck.c (pointer_int_sum): ...here.
15035 * c-common.h (pointer_int_sum): Add prototype.
15036
00fae85d
JJ
150372002-02-20 Jakub Jelinek <jakub@redhat.com>
15038
15039 PR c++/5713
15040 * c-decl.c (duplicate_decls): Return 0 if issued error about
15041 redeclaration.
15042
4636c87e
JJ
150432002-02-20 Roger Sayle <roger@eyesopen.com>
15044 Jakub Jelinek <jakub@redhat.com>
15045
15046 PR c/4389
15047 * tree.c (host_integerp): Ensure that the constant integer is
15048 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
15049 when pos is zero or non-zero respectively. Clarify comment.
15050 * c-format.c (check_format_info_recurse): Fix host_integerp
15051 usage; the pos argument should be zero when assigning to a
15052 signed HOST_WIDE_INT.
15053
59bef189
RH
150542002-02-20 Richard Henderson <rth@redhat.com>
15055
15056 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
15057 of the operand, rather than assuming TImode.
15058 (ix86_expand_binop_builtin): Cope with commutative patterns
15059 using nonimmediate_operand for both operands.
15060 (ix86_expand_timode_binop_builtin): Likewise.
15061 (ix86_expand_store_builtin): Validate operand 1.
15062 (ix86_expand_unop1_builtin): Likewise.
15063
9338ffe6 150642002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 15065
9338ffe6
PB
15066 PR 5705
15067 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
15068
f322b423
RH
150692002-02-20 Richard Henderson <rth@redhat.com>
15070
15071 PR c/5615
15072 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
15073
d94084f7
TT
150742002-02-20 Tom Tromey <tromey@redhat.com>
15075
15076 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15077 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15078 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15079 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15080 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
15081 unconditionally.
15082
37fa124a
AM
15083Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
15084
15085 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
15086 for (const_int 0) in X not just INTVAL.
15087
6e5bb5ad
JM
150882002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
15089
15090 * doc/extend.texi: Avoid or reduce overfull hboxes.
15091
420e7dfa
DN
150922002-02-20 Diego Novillo <dnovillo@redhat.com>
15093
15094 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
15095 operations if the field does not start at a mode boundary.
15096
1b7a2af6
JS
150972001-02-20 Joel Sherrill <joel@OARcorp.com>
15098
15099 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
15100 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
15101 Also done for -Acpu and -Amachine.
15102
56cd5b95
NB
151032002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
15104
15105 * cppinit.c (init_dependency_output): Take deps output file
15106 from -o if none given with -MF. Suppress normal output.
c410d49e 15107 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
15108 * doc/cpp.texi, doc/invoke.texi: Update.
15109
042cdf71
ZW
151102002-02-19 Zack Weinberg <zack@codesourcery.com>
15111
15112 * toplev.c (output_quoted_string): Write unprintable
15113 characters with octal escapes.
15114
c1f11548
DE
151152002-02-19 David Edelsohn <edelsohn@gnu.org>
15116
15117 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
15118 really_call_used[VRSAVE_REGNO] if not Altivec.
15119
151202002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 15121
c1f11548
DE
15122 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
15123 MODE_MASK.
15124 (constant_pool_expr_1): Fix formatting.
15125 (rs6000_legitimize_reload_address): Likewise.
15126
c964d90e
RK
15127Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15128
15129 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
15130 now that we have one.
15131
ae34ac46
ZW
151322002-02-19 Zack Weinberg <zack@codesourcery.com>
15133
15134 * tree.h (struct tree_common): Remove aux. Add unused_0 at
15135 end of first block of bitfields (which was only seven bits);
15136 rename dummy to unused_1; remove comment which is no longer true.
15137
293c28ee
GS
151382002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15139
15140 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
15141
7b8781c8
PB
151422002-02-19 Philip Blundell <pb@nexus.co.uk>
15143
0cb6c58d 15144 PR 5399
7b8781c8
PB
15145 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
15146 if generating PIC.
15147
15148 PR 5054
15149 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
15150 arm_is_longcall_p rather than inspecting call-type cookie
15151 directly.
15152 (call_value_insn) [TARGET_THUMB]: Likewise.
15153
5c464583
GS
151542002-02-19 Graham Stott <grahams@redhat.com>
15155
15156 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
15157
71c061e6
DE
151582002-02-19 David Edelsohn <edelsohn@gnu.org>
15159
15160 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
15161 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 15162 (FP_SAVE_INLINE): Delete.
71c061e6
DE
15163
15164 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
15165 * config/rs6000/eabi.asm: Remove ABI save restore routines.
15166 * config/rs6000/t-ppccomm: Build crtsavres.o.
15167 * config/rs6000/crtsavres.asm: New file.
15168
3a7731fd
PB
151692002-02-19 Philip Blundell <philb@gnu.org>
15170
15171 * config/arm/arm.c (use_return_insn): Don't reject interrupt
15172 functions.
15173 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
15174 (output_return_instruction): Allow interrupt functions to return with
15175 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
15176 (arm_expand_prologue): Subtract 4 before stacking LR in an
15177 interrupt function.
15178
14f583b8
PB
151792002-02-19 Philip Blundell <pb@nexus.co.uk>
15180
15181 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
15182 decl, not just FUNCTION_DECL.
15183 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
15184 (arm_assemble_integer): Likewise.
15185 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
15186 marked local.
c410d49e 15187
4cb7482c
MG
151882002-02-19 matthew green <mrg@eterna.com.au>
15189
15190 * config.gcc (sparc-*-netbsdelf*): Enable target.
15191 (sparc64-*-netbsd*): New target.
15192 * config/sparc/netbsd-elf.h: New file.
15193 * config/sparc/t-netbsd64: New file.
15194
2df3a718
GS
151952002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15196
15197 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
15198
77f6c1eb
RS
151992002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
15200
15201 * doc/invoke.texi: explicitly list the style guidelines that
15202 -Weffc++ checks for.
15203
fd973d56
JH
15204Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
15205
15206 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
15207
30518e45
NB
152082002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
15209
15210 PR other/5718
15211 * gcc.c (cpp_unique_options): Treat -o as indicating object file
15212 only if not -E. If -E, pass -o through to the preprocessor.
15213
39ea5704
KH
152142002-02-19 Kazu Hirata <kazu@hxi.com>
15215
15216 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
15217 register number with an appropriate macro.
15218
7355dba7
BM
152192002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15220
15221 * doc/rtl.texi (Constants): Close @code tag.
15222
91c8aa9e
AH
152232002-02-19 Aldy Hernandez <aldyh@redhat.com>
15224
15225 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
15226 ("mmx_uavgv4hi3"): Same.
15227 ("pmulhrwv4hi3"): Same.
15228
15229 * tree-inline.c (walk_tree): Handle vectors.
15230
15231 * c-common.c (constant_expression_warning): Handle vectors.
15232 (overflow_warning): Same.
15233
15234 * sched-deps.c (sched_analyze_2): Handle vectors.
15235
15236 * rtlanal.c (rtx_unstable_p): Handle vectors.
15237 (rtx_varies_p): Same.
15238 (count_occurrences): Same.
15239 (regs_set_between_p): Same.
15240 (modified_between_p): Same.
15241 (modified_in_p): Same.
15242 (volatile_insn_p): Same.
15243 (volatile_refs_p): Same.
15244 (side_effects_p): Same.
15245 (may_trap_p): Same.
15246 (inequality_comparisons_p): Same.
15247 (replace_regs): Same.
15248 (computed_jump_p_1): Same.
15249
15250 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
15251 argument.
15252 (inner_mode_array): New.
15253 (copy_rtx): Handle vectors.
15254 (copy_most_rtx): Same.
15255 (rtx_equal_p): Same.
15256 (get_mode_alignment): Adjust for vectors.
15257
15258 * resource.c (mark_referenced_resources): Handle vectors.
15259 (mark_set_resources): Same.
15260
15261 * reload1.c (eliminate_regs): Handle vectors.
15262 (elimination_effects): Same.
15263 (scan_paradoxical_subregs): Same.
15264
15265 * reload.c (subst_reg_equivs): Handle vectors.
15266
15267 * regrename.c (scan_rtx): Handle vectors.
15268
15269 * regclass.c (reg_scan_mark_refs): Handle vectors.
15270
15271 * recog.c (find_single_use_1): Handle vectors.
15272
15273 * local-alloc.c (equiv_init_varies_p): Handle vectors.
15274 (contains_replace_regs): Same.
15275 (memref_referenced_p): Same.
15276
15277 * integrate.c (copy_rtx_and_substitute): Handle vectors.
15278 (subst_constants): Same.
15279
15280 * genattrtab.c (attr_copy_rtx): Handle vectors.
15281 (encode_units_mask): Same.
15282 (clear_struct_flag): Same.
15283 (count_sub_rtxs): Same.
15284
15285 * gcse.c (want_to_gcse_p): Handle vectors.
15286 (oprs_unchanged_p): Same.
15287 (hash_expr_1): Same.
15288 (oprs_not_set_p): Same.
15289 (expr_killed_p): Same.
15290 (compute_transp): Same.
15291 (store_ops_ok): Same.
15292
15293 * function.c (purge_addressof_1): Do not allow paradoxical subregs
15294 of vectors.
15295 (fixup_var_refs_1): Same.
15296 (instantiate_virtual_regs_1): Same.
15297
15298 * fold-const.c (operand_equal_p): Handle vectors.
15299 (fold): Same.
15300 (rtl_expr_nonnegative_p): Same.
15301
15302 * flow.c (mark_used_regs): Handle vectors.
15303
15304 * df.c (df_uses_record): Handle vectors.
15305
15306 * cselib.c (cselib_subst_to_values): Handle vectors.
15307 (cselib_mem_conflict_p): Same.
15308 (hash_rtx): Same.
15309
15310 * cse.c (canon_reg): Handle vectors.
15311 (fold_rt): Same.
15312 (cse_process_notes): Same.
15313 (count_reg_usage): Same.
15314 (canon_hash): Same.
15315
15316 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
15317
15318 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
15319
15320 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
15321 (gen_rtx): Handle CONST_VECTOR.
15322 (gen_const_vector_0): New.
15323 (copy_rtx_if_shared): CONST_VECTORs can be shared.
15324 (reset_used_flags): Same.
15325 (copy_insn_1): Same.
15326 (initializer_constant_valid_p): Handle VECTOR_CST.
15327
15328 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
15329
15330 * doc/rtl.texi (Constants): Document const_vector.
15331 (CONST0_RTX): Update for vectors.
15332 (RTL sharing): Same.
15333
15334 * print-tree.c (print_node): Add case for VECTOR_CST.
15335
15336 * tree.h (TREE_VECTOR_CST_ELTS): New.
15337 (struct tree_vector): New.
15338 (union tree_node): Add vector node.
15339 (build_vector): Add prototype.
15340
15341 * tree.def (VECTOR_CST): New.
15342
15343 * tree.c (build_vector): New.
15344
15345 * expmed.c (make_tree): Handle CONST_VECTOR.
15346
15347 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
15348 (CONST_VECTOR_ELT): New.
15349 (CONST_VECTOR_NUNITS): New.
15350
15351 * machmode.h (GET_MODE_INNER): New.
15352 (DEF_MACHMODE): Accept 8th arg.
15353
15354 * machmode.def: Add 8th argument for vector inner mode.
15355 Add inner vector modes for vectors.
15356
15357 * rtl.def (VEC_CONST): Remove.
15358 (CONST_VECTOR): New.
15359
15360 * expr.c (clear_storage): Allow vectors.
15361 (is_zeros_p): Handle VECTOR_CST.
15362
15363 * varasm.c (output_constant_pool): Handle vectors.
15364 (rtx_const): Add veclo and vechi fields.
15365 (kind): Add RTX_VECTOR.
15366 (decode_rtx_const): Add case for vector.
15367
15368 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 15369
91c8aa9e
AH
15370 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
15371 constants. Force easy vector constants into memory.
15372 (easy_vector_constant): New.
15373 (emit_easy_vector_constant): New.
15374 (rs6000_legitimize_reload_address): Do not generate bad reloads on
15375 darwin.
15376
15377 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
15378 instruction does.
15379 ("altivec_lvxl"): Same.
15380 (altivec_lvebx): Same.
15381 (altivec_lvehx): Same.
15382 (altivec_lvewx): Same.
15383 ("*movv4si_const0"): New.
15384 ("*movv4sf_const0"): New.
15385 ("*movv8hi_const0"): New.
15386 ("*movv16qi_const0"): New.
15387
d4d6d0ce
KH
153882002-02-18 Kazu Hirata <kazu@hxi.com>
15389
15390 * config/h8300/h8300.c (notice_update_cc): Use
15391 cc_status.value2.
15392
4915d3aa
KH
153932002-02-18 Kazu Hirata <kazu@hxi.com>
15394
15395 * config/h8300/h8300.md (divmod patterns): Change the
15396 constraints for operands[1] to register_operand.
15397
82be00ee
KH
153982002-02-18 Kazu Hirata <kazu@hxi.com>
15399
15400 * config/h8300/h8300-protos.h: Remove the prototype for
15401 p_operand.
15402 * config/h8300/h8300.c (p_operand): Remove.
15403 * config/h8300/h8300.md: Replace p_operand with
15404 const_int_operand.
15405
1768c26f
PB
154062002-02-18 Philip Blundell <pb@nexus.co.uk>
15407
15408 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
15409 comment.
15410 (output_return_instruction): Allow use of LDR to unstack
15411 return addresss even for interrupt handlers or when
15412 interworking. If compiling for ARMv5, use interworking-safe
15413 return instructions by default. Remove duplicated code and
15414 lengthy "strcat" sequences.
15415
ccd84f51
FS
154162002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15417
15418 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
15419 (LINK_EH_SPEC): Define.
15420 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
15421
2c153108
UW
154222002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
15423
15424 * config/s390/s390.c (s390_emit_prologue): Do not set the
15425 frame_related flag for call-clobbered registers.
15426
e95d6b23
JH
15427Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
15428
15429 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
15430 (construct_container): Fix handling of SSE operands.
15431 (ix86_expand_builtin): Fix handling of 64bit pointers.
15432 (mmx_maskmovq_rex): New pattern.
15433
c43a12b5
JH
15434Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
15435
15436 * regrename.c (kill_set_value): Handle subregs properly.
15437
aeb85a15
DB
154382002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
15439
15440 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 15441 from objc_class_name.
aeb85a15 15442
a615ca3e
RH
154432002-02-17 Richard Henderson <rth@redhat.com>
15444
15445 * config/alpha/alpha.c (some_small_symbolic_operand,
15446 some_small_symbolic_operand_1, split_small_symbolic_operand,
15447 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
15448 Handle small SYMBOL_REFs anywhere, not just inside memories.
15449 * config/alpha/alpha-protos.h: Update.
15450 * config/alpha/alpha.h (PREDICATE_CODES): Update.
15451 * config/alpha/alpha.md (small symbolic operand splitter): Update.
15452
ddb28441
RM
154532002-02-17 Roland McGrath <roland@frob.com>
15454
15455 * config.gcc (powerpc-*-gnu-gnualtivec*,
15456 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
15457 * config/rs6000/gnu.h: New file.
15458 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
15459 Grok "gnu" in rs6000_abi_name.
15460 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
15461 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
15462 Grok -mcall-gnu analogous to -mcall-linux et al.
15463 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15464 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
15465 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
15466
f6f8ada3
JJ
154672002-02-17 Jakub Jelinek <jakub@redhat.com>
15468
15469 PR c/3444:
15470 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
15471 shortening.
15472
e16b32fc
PT
154732002-02-17 Philipp Thomas <pthomas@suse.de>
15474
15475 * config/cris/cris.h: Undefine STARTFILE_SPEC and
15476 ENDFILE_SPEC before (re)defining them.
15477
f9477efd
KH
154782002-02-17 Kazu Hirata <kazu@hxi.com>
15479
15480 * config/h8300/h8300.c: Fix formatting.
15481 * config/h8300/h8300.h: Likewise.
15482
404ae494
PT
154832002-02-17 Philipp Thomas <pthomas@suse.de>
15484
15485 * doc/tm.texi: Explain why empty strings should not be
15486 marked for translation.
15487
a52453cc
PT
154882002-02-17 Philipp Thomas <pthomas@suse.de>
15489
15490 * final.c (output_operand_lossage): Changed to accept
15491 printf style arguments. Change calls where necessary.
15492 * output.h (output_operand_lossage): Change declaration
15493 accordingly. Update copyright.
15494 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
15495 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
15496 Update copyright date where necessary.
c410d49e 15497
a52453cc
PT
15498 * config/i386/i386.c (print_operand): Likewise. Remove use of
15499 sprintf.
15500
15501 * config/cris/cris.c (cris_operand_lossage): Likewise.
15502 Rename parameter so that exgettext recognizes it as
15503 translatable message.
15504 (LOSE_AND_RETURN): Rename parameter to msgid.
15505
1c11abc4
KH
155062002-02-17 Kazu Hirata <kazu@hxi.com>
15507
15508 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
15509 hard coded register number with an appropriate macro.
15510 (HARD_REGNO_MODE_OK): Likewise.
15511 (ARG_POINTER_REGNUM): Likewise.
15512 (STATIC_CHAIN_REGNUM): Likewise.
15513 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
15514 * config/h8300/h8300.md (define_constants): Define more
15515 register numbers.
15516
a5d17ff3
PT
155172002-02-17 Philipp Thomas <pthomas@suse.de>
15518
15519 * config/i386/i386.h: Don't mark empty strings for translation.
15520
1a7289c4
L
155212002-02-16 H.J. Lu <hjl@gnu.org>
15522
15523 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
15524
afb58288
ZW
155252002-02-16 Zack Weinberg <zack@codesourcery.com>
15526
15527 * cppinit.c (merge_include_chains): Check for brack being
15528 NULL before attempting to merge it with qtail.
15529
d2af4dbd
AC
155302002-02-16 Andrew Cagney <ac131313@redhat.com>
15531
15532 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
15533 DBX_DEBUG.
15534
2e1ed1e3
JDA
155352002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
15536
15537 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
15538
604c75b2
JDA
155392002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
15540
15541 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
15542 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
15543 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
15544
1a42b072
RK
15545Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15546
7303604f 15547 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
15548 now only if !TARGET_FIX.
15549 (*movsi_nt_vms_fix): New pattern.
15550
c2ea1ac6
DR
155512002-02-16 Douglas B Rupp <rupp@gnat.com>
15552
15553 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
15554 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
15555 (alpha_sa_mask, alpha_sa_size): Reflect above change.
15556 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
15557 (alpha_start_function, alpha_expand_epilogue): Likewise.
15558 (unicosmk_gen_dsib): Likewise.
15559
725e58b1
RK
15560Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15561
15562 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
15563
13e58269
UW
155642002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
15565
c410d49e 15566 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
15567 check_and_change_labels, s390_final_chunkify): Delete.
15568 (s390_split_branches, s390_chunkify_pool): New functions.
15569 (s390_function_prologue): Call them.
c410d49e 15570
13e58269
UW
15571 * config/s390/s390.h (S390_REL_MAX): Delete.
15572 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
15573
c410d49e 15574 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
15575 attribute calculation.
15576
15577
34d1b01d
DE
155782002-02-15 David Edelsohn <edelsohn@gnu.org>
15579
15580 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
15581 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
15582
be5cc51a
JDA
155832002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15584
15585 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
15586 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
15587 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
15588
ee96ce90
RS
155892002-02-15 Richard Sandiford <rsandifo@redhat.com>
15590
15591 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
15592
05fa709d
RS
155932002-02-15 Richard Sandiford <rsandifo@redhat.com>
15594
15595 * reload.c (find_dummy_reload): Check that an output register
15596 is valid for its mode.
15597
4606272b
AO
155982002-02-14 Alexandre Oliva <aoliva@redhat.com>
15599
9a360704
AO
15600 * combine.c (known_cond): After replacing the REG of a SUBREG, try
15601 to simplify it.
15602
4606272b
AO
15603 * function.c (assign_parms): Demote promoted argument passed by
15604 transparent reference.
15605
e62d89a1
JS
156062001-02-14 Joel Sherrill <joel@OARcorp.com>
15607
15608 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
15609 -Acpu() and -Amachine() to eliminate warnings.
15610
6c4cf695
UW
156112002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
15612
15613 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
15614
037f11ef
KH
156152002-02-14 Kazu Hirata <kazu@hxi.com>
15616
15617 * config/h8300/h8300-protos.h: Update the prototype for
15618 const_costs.
15619 * config/h8300/h8300.c (const_costs): Treat SET as a little
15620 more expensive operation.
15621 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
15622 reference to const_costs.
15623
fdc76b09
HPN
156242002-02-14 Hans-Peter Nilsson <hp@axis.com>
15625
15626 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
15627
d76e6800
JJ
156282002-02-14 Jakub Jelinek <jakub@redhat.com>
15629
15630 PR c/5503:
15631 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
15632 use arguments from newtype.
15633
5ae590d7
EC
156342002-02-13 Eric Christopher <echristo@redhat.com>
15635
15636 * config/mips/mips.c (override_options): Add check for march/mipsX
15637 on the same command line. Fix error message in cpu processing.
15638 Remove architecture and ISA checks.
15639
b8513691
AH
156402002-02-14 Aldy Hernandez <aldyh@redhat.com>
15641
831c4e87 15642 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 15643
831c4e87 15644 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 15645
78c875e8
AH
156462002-02-14 Aldy Hernandez <aldyh@redhat.com>
15647
831c4e87
KC
15648 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
15649 alternatives.
15650 ("*movv8hi_internal1"): Same.
15651 ("*movv16qi_internal1"): Same.
15652 ("*movv4sf_internal1"): Same.
78c875e8 15653
831c4e87
KC
15654 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
15655 not push_reload for altivec modes.
78c875e8 15656
d76e6800 156572002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
15658
15659 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
15660 all RTEMS targets including removal of #includes from config/*/rtems*.h
15661 file and adding them to tm_file setting. Added xm_defines=POSIX to
15662 many targets.
15663 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
15664 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
15665 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
15666 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
15667 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
15668 config/m68k/rtemself.h: Ditto.
15669 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
15670 config/mips/rtems64.h: Ditto.
15671 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
15672 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
15673 Ditto.
15674 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
15675 config/sparc/rtemself.h: Ditto.
15676 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
15677 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
15678 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
15679 more like arm-elf.
15680 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
15681 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
15682 target made more similar to i386-elf.
15683 * config/i386/t-rtems-i386: Added soft float support and multilibs.
15684 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
15685 be similar to config/m68k/t-m68kelf.
15686 * gthr-rtems.h: Encapsulate with extern "C" for C++.
15687
8686336f
JH
15688Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
15689
15690 * regmove.c (kill_value): Handle subregs.
15691
558740bf
JH
15692Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
15693
15694 * i386.md (mul patterns): Allow memory operand to be first;
15695 add expanders where needed; fix constraints.
15696 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
15697 Allow memory operand to be the first.
15698
15699 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
15700 operands.
15701
21117a17
JJ
157022002-02-13 Jakub Jelinek <jakub@redhat.com>
15703
15704 PR c/5681:
15705 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
15706 GET_MODE (x).
15707
ec65b2e3
JJ
157082002-02-13 Jakub Jelinek <jakub@redhat.com>
15709
15710 PR optimization/5547:
15711 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
15712 all valid IA-32 address modes involving non-scaled %ebx and
15713 GOT/GOTOFF as displacement.
15714
ce50cae8
UW
157152002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
15716
15717 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
15718 after emitting ltorg insns.
15719
15720 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
15721 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
15722 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
15723 *abssf2): Fix "op_type" attribute.
15724
09eb789b
DR
157252002-02-13 Douglas B Rupp <rupp@gnat.com>
15726
2dbe67bb
DR
15727 * mkconfig.sh: Avoid using a subshell redirect.
15728 ($output.T): Change to $(output)T.
15729 (ENABLE_NLS): Remove unneeded undef.
15730
ea5b9a1f
DR
15731 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
15732 * config/alpha/x-vms (libsubdir): Define.
15733
3deb00ce
DR
15734 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
15735 register frame procedures. Optimize retrieving context.
15736
09eb789b
DR
15737 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
15738 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
15739 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
15740
1abade85
RK
15741Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15742
15743 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
15744 Make same change as for find_base_value.
15745
c283e63f
KH
157462002-02-13 Kazu Hirata <kazu@hxi.com>
15747
15748 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
15749 of QImode and SImode.
15750
86039100
KH
157512002-02-13 Kazu Hirata <kazu@hxi.com>
15752
15753 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
15754 length computation of movsi.
15755 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
15756
e1429da0
KH
157572002-02-13 Kazu Hirata <kazu@hxi.com>
15758
15759 * config/h8300/h8300.md (subqi3): Tighten the predicate for
15760 operands[2] to register_operand.
15761
aebfea10
JH
15762Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
15763
15764 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
15765
0ec4e2a8
AH
157662002-02-12 Aldy Hernandez <aldyh@redhat.com>
15767
831c4e87
KC
15768 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
15769 for altivec_lvx* and altivec_stvx*.
15770 ("*movv4si_internal"): Add constraint for loading from GPRs.
15771 ("*movv8hi_internal1"): Same.
15772 ("*movv16qi_internal1"): Same.
15773 ("*movv4sf_internal1"): Same.
0ec4e2a8 15774
831c4e87 15775 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 15776
831c4e87
KC
15777 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15778 altivec_register_operand.
0ec4e2a8 15779
b007569d
HPN
157802002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
15781
15782 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
15783 handle SYMBOL_REF.
15784
e6834654
SS
157852002-02-13 Stan Shebs <shebs@apple.com>
15786
831c4e87
KC
15787 * c-typeck.c (digest_init): Handle vectors.
15788 (really_start_incremental_init): Same.
15789 (pop_init_level): Same.
15790 (process_init_element): Same.
e6834654 15791
831c4e87 15792 * varasm.c (output_constant): Same.
e6834654 15793
831c4e87
KC
15794 * expr.c (clear_storage): Same.
15795 (store_constructor): Same.
e6834654 15796
d9b3eb63
EC
157972002-02-12 Eric Christopher <echristo@redhat.com>
15798
15799 * explow.c (hard_function_value): Add comment explaining
15800 signed/unsigned comparison.
15801
56d44285
JJ
158022002-02-12 Jakub Jelinek <jakub@redhat.com>
15803
15804 * jump.c (never_reached_warning): Add finish argument.
15805 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
15806 real insn after end.
15807 * rtl.h (never_reached_warning): Adjust prototype.
15808 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
15809 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
15810 never_reached_warning.
15811
fc209487
GS
158122002-02-12 Graham Stott <grahams@redhat.com>
15813
15814 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
15815
1e41e866
KH
158162002-02-12 Kazu Hirata <kazu@hxi.com>
15817
15818 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
15819 logical shifts on H8/300.
15820 (shift_alg_si): Improve several shifts on H8/300.
15821 (get_shift_alg): Likewise.
15822
a36a47ad
GS
158232002-02-12 Graham Stott <grahams@redhat.com>
15824
15825 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
15826
0aacc8ed
RK
15827Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15828
15829 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
15830 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
15831
a02ac966
HPN
158322002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
15833
15834 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
15835 non-CONST_INT through default_assemble_integer.
15836 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
15837 <case 8>: Abort for CONST_DOUBLE.
15838
d6e06ddc
JDA
158392002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
15840
15841 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
15842 is specified.
15843 * config/pa/pa-linux.h (LIB_SPEC): Delete.
15844 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15845
515342a8
AH
158462002-02-11 Andrew Haley <aph@cambridge.redhat.com>
15847
15848 * config/stormy16/stormy16.md (zero_extendqihi2): New.
15849
cddd8b72
AO
158502002-02-11 Alexandre Oliva <aoliva@redhat.com>
15851
66df7a98
AO
15852 * regrename.c (regrename_optimize): Don't accept a
15853 part-clobbered register if the replaced register is not part
15854 clobbered.
15855
841404cd
AO
15856 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
15857 take padding into account when computing the argument value.
15858
1d1ade42
AO
15859 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
15860
cddd8b72
AO
15861 * combine.c (try_combine): Apply substitutions in
15862 CALL_INSN_FUNCTION_USAGE too.
15863
5c665b88
AH
158642002-02-11 Aldy Hernandez <aldyh@redhat.com>
15865
77f6c1eb
RS
15866 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
15867 __builtin_altivec_abs*.
15868 (bdesc_abs): New.
5c665b88 15869
77f6c1eb
RS
15870 * config/rs6000/rs6000.h (rs6000_builtins): Add
15871 ALTIVEC_BUILTIN_ABS*.
5c665b88 15872
77f6c1eb
RS
15873 * config/rs6000/altivec.h: Use const char for builtins expecting
15874 literals.
15875 (vec_abs): New versions for C and C++.
15876 (vec_abss): Same.
5c665b88 15877
3494f1b4
KH
158782002-02-10 Kazu Hirata <kazu@hxi.com>
15879
15880 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
15881 using Pmode.
15882
72431aef
KH
158832002-02-10 Kazu Hirata <kazu@hxi.com>
15884
15885 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
15886 constant definition from h8300.md.
15887 (FRAME_POINTER_REGNUM): Likewise.
15888 * config/h8300/h8300.md (define_constants): Add FP_REG.
15889
87e4ee91
KH
158902002-02-10 Kazu Hirata <kazu@hxi.com>
15891
15892 * config/h8300/h8300.c (print_operand): Remove redundant code.
15893
9c188705
KH
158942002-02-10 Kazu Hirata <kazu@hxi.com>
15895
15896 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
15897 * config/h8300/h8300.c (byte_reg): Make it static.
15898
fba78abb
RH
158992002-02-10 Richard Henderson <rth@redhat.com>
15900
15901 PR c/5623
15902 * c-typeck.c (incomplete_type_error): Handle flexible array members.
15903
65739e62
RH
159042002-02-10 Richard Henderson <rth@redhat.com>
15905
15906 PR c++/5624
15907 * tree.c (append_random_chars): Don't abort if main_input_filename
15908 does not exist.
15909
247cb9df
HPN
159102002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
15911
15912 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
15913
232bd029
KH
159142002-02-10 Kazu Hirata <kazu@hxi.com>
15915
65739e62 15916 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
15917 (pushhi1): Likewise.
15918
276ef573
JDA
159192002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
15920
15921 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
15922 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
15923
617e9ee5
DB
159242002-02-09 David O'Brien <obrien@FreeBSD.org>
15925
15926 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
15927 remove MASK_VIS.
15928 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
15929
6dfa4005
KH
159302002-02-09 Kazu Hirata <kazu@hxi.com>
15931
15932 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
15933 a half of an SImode register on H8/300.
15934
749e7b80
JH
15935Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
15936
15937 * i386.md (movdi_2): Add missing '!'.
15938
ca77d87c
KH
159392002-02-09 Kazu Hirata <kazu@hxi.com>
15940
15941 * config/h8300/h8300.h: Fix formatting. Remove commented-out
15942 definitions.
15943
16c96304
KH
159442002-02-09 Kazu Hirata <kazu@hxi.com>
15945
15946 * config/h8300/h8300.md (length): Correct the distance valid
15947 for the short branch.
15948
a364bc90
KH
159492002-02-09 Kazu Hirata <kazu@hxi.com>
15950
15951 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
15952
e4ec2cac
AO
159532002-02-09 Alexandre Oliva <aoliva@redhat.com>
15954
a138247b
AO
15955 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
15956 registers in SImode.
15957 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
15958 part-clobbered.
15959
2b1fd83f
AO
15960 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
15961 patch.
d9b3eb63 15962
fa5322fa
AO
15963 Contribute sh64-elf.
15964 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
15965 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
15966 (sh_cannot_modify_jumps_p): New function.
15967 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15968 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
15969 (sh_ms_bitfield_layout_p): New function.
15970 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
15971 Zack Weinberg <zack@codesourcery.com>
15972 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
15973 expand_simple_binop instead of expand_binop.
15974 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
15975 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
15976 use of .quad and .uaquad.
15977 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
15978 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
15979 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15980 * config/sh/sh.md (movdi_const, movdi_const_32bit,
15981 movdi_const_16bit): Make sure all CONSTs have modes.
15982 (sym2PIC): Ditto, but by adjusting all callers.
15983 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
15984 if the prologue calls the SHmedia argument decoder or register
15985 saver.
15986 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15987 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
15988 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
15989 (sh_expand_epilogue): Don't emit USE of return target register.
15990 (prepare_move_operands): Legitimize DImode PIC addresses.
15991 (sh_media_register_for_return): Skip tr0, used to initialize the
15992 PIC register.
15993 (sh_expand_prologue): Remove explicit USE of return register.
15994 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
15995 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
15996 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
15997 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
15998 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
15999 EXTRA_CONSTRAINT_T.
16000 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16001 (MOVI_SHORI_BASE_OPERAND_P): New.
16002 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16003 (EXTRA_CONSTRAINT_T): Define in terms of them.
16004 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
16005 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
16006 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
16007 alternatives supporting TARGET_REGS.
16008 (UNSPEC_GOTPLT): New constant.
16009 (movdi split): Move incrementing of LABEL_NUSES...
16010 (movdi_const, movdi_const_32bit): Here. Use
16011 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
16012 (movdi_const_16bit): New.
16013 (call, call_value) [flag_pic]: Use GOTPLT.
16014 (call_pop, call_value_pop): New expands.
16015 (call_pop_compact, call_pop_rettramp): New insns.
16016 (call_value_pop_compact, call_value_pop_rettramp): New insns.
16017 (sibcall) [flag_pic]: Use GOT.
16018 (builtint_setjmp_receiver): Remove bogus, unused expand.
16019 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
16020 (*pt, *ptb, ptrel): New insns.
16021 (sym2GOT): Handle DImode GOT.
16022 (sym2GOTPLT, symGOTPLT2reg): New expands.
16023 (sym2PIC): New expand.
16024 (shcompact_return_tramp): Use GOTPLT to return trampoline.
16025 (shcompact_return_tramp_i): Use return register explicitly.
16026 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
16027 disable flag_reorder_blocks.
16028 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
16029 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
16030 clobbers, for clarity.
16031 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
16032 restoring of r0 in macl as MAYBE_DEAD.
16033 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
16034 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
16035 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
16036 alter_subreg all over.
16037 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
16038 reload, instead of emitting instructions that would require
16039 reloading.
16040 (casesi_load_media): Add missing modes.
16041 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
16042 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
16043 as used if the argument decoder is called.
16044 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16045 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
16046 Pmode, then extend it to DImode if necessary.
16047 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16048 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
16049 constants in FPU-enabled SHmedia, let them be loaded from memory.
16050 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16051 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
16052 Adjust whitespace in assembly output templates.
16053 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16054 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
16055 mode of if_then_else.
16056 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
16057 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
16058 sh.h.
16059 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
16060 Joern Rennecke <amylaar@redhat.com>
16061 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
16062 (SUBTARGET_CPP_PTR_SPEC): New.
16063 (SUBTARGET_CPP_SPEC): Remove.
16064 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16065 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16066 Fix typo in previous checkin.
16067 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
16068 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
16069 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
16070 Alexandre Oliva <aoliva@redhat.com>
16071 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
16072 what single FP register can hold for SHmedia target.
16073 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16074 Alexandre Oliva <aoliva@redhat.com>
16075 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16076 Do not split into SUBREG.
16077 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
16078 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
16079 and added new functions as specified in SH5 ABI r9.
16080 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
16081 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
16082 8-byte boundary.
16083 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
16084 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
16085 gen_consttable_4 and gen_consttable_8. Emit multiple labels
16086 and consttable_window_ends.
16087 2001-06-03 Graham Stott <grahams@redhat,com>
16088 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
16089 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
16090 * config/sh/sh.c (print_operand): Handle floating-point pair,
16091 vector and matrix registers.
16092 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
16093 vector modes into account.
16094 * config/sh/sh.md (movv2sf): Split move between registers into
16095 movdf.
16096 (movv4sf, movv16sf): Introduce insns that get split only after
16097 reload.
16098 * config/sh/shmedia.h: Fix Copyright dates.
16099 * config/sh/ushmedia.h: Likewise. Move loop counter
16100 declarations into conditionals that uses them.
16101 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
16102 loop boundary.
16103 * config/sh/sshmedia.h: Fix Copyright dates.
16104 (sh_media_PUTCFG): Fix constraints.
16105 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
16106 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
16107 ptrmemfunc_vbit_in_delta for SH5.
16108 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
16109 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
16110 * invoke.texi: Likewise.
16111 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
16112 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
16113 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
16114 GCC_pop_shmedia_regs_nofpu): New global symbols.
16115 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
16116 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
16117 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
16118 compact function with nonlocal labels.
16119 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
16120 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
16121 (initial_elimination_offset): Account for their stack space.
16122 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
16123 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
16124 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
16125 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
16126 least one of the operands to be a register.
16127 (movv2sf): Likewise. Renamed to movv2sf_i.
16128 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
16129 prepare_move_operands() before emitting SHmedia insns.
16130 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
16131 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
16132 Don't save nor initialize r12. Don't mis-align the stack.
16133 Pad the code with a nop.
16134 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
16135 stack.
16136 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
16137 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
16138 [__SHMEDIA__]: Implement.
16139 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
16140 * config/sh/sh.md: Set latency of `pt' closer to reality.
16141 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
16142 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
16143 Set move, load and store type attributes.
16144 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
16145 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
16146 profiling.
16147 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
16148 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
16149 * config/sh/sh.c (sh_media_register_for_return): New function.
16150 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
16151 branch-target register.
16152 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
16153 * config/sh/sh.md (return_media_i): Use any call-clobbered
16154 branch-target register.
16155 (return_media): If r18 wasn't copied in the prologue, copy it
16156 here.
16157 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
16158 Clear class FP0_REGS.
16159 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
16160 from elf.h.
16161 2001-03-08 DJ Delorie <dj@redhat.com>
16162 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
16163 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
16164 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
16165 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
16166 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
16167 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
16168 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
16169 return value correctly for call_cookie.
16170 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
16171 * config/sh/crt1.asm (start): Modified so as to call
16172 ___setup_argv_and_call_main.
16173 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
16174 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
16175 SHmedia mode.
16176 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
16177 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
16178 (STRIP_NAME_ENCODING): Use it.
16179 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
16180 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
16181 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
16182 prepare_scc_operands().
16183 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
16184 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
16185 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
16186 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
16187 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
16188 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
16189 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
16190 used in shcompact_incoming_args.
16191 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
16192 change.
16193 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
16194 mode.
16195 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
16196 Adjust accordingly.
16197 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
16198 Simplify. Adjust. Add sanity check.
16199 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
16200 FPU_SINGLE_BIT.
16201 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
16202 TARGET_SHCOMPACT.
16203 (udivsi3, divsi3): Use them.
16204 (force_mode_for_call): New insn.
16205 (call, call_value, sibcall_value): Emit it before SHcompact
16206 calls.
16207 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
16208 * config/sh/sh.md (call, call_value, sibcall): Make sure the
16209 call cookie is non-NULL before taking its value.
16210 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
16211 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
16212 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
16213 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
16214 block.
16215 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
16216 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
16217 temporary for stack adjusts. Use MACL and MACH to pass
16218 arguments to shcompact_incoming_args.
16219 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
16220 clobber r1.
16221 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
16222 (nested_trampoline): Load static chain address into r1.
16223 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
16224 2001-01-07 Alexandre Oliva <aoliva@redhat.com
16225 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
16226 fp_arith_reg_operand().
16227 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
16228 * config/sh/sh.md (casesi): Sign-extend the first two operands,
16229 and use signed compares for them.
16230 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
16231 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
16232 ones properly aligned.
16233 (find_barrier): Account for extra alignment needed for 8-byte wide
16234 constants.
16235 (machine_dependent_reorg): Require a label for the second 4-byte
16236 constant after an 8-byte one.
16237 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
16238 change.
16239 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16240 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
16241 last_float when switching float modes.
16242 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
16243 auto-increment for general-purpose registers.
16244 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
16245 result.
16246 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
16247 for stack adjust.
16248 * config/sh/sh.c (sh_builtin_saveregs): Support using all
16249 registers for varargs.
16250 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
16251 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
16252 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
16253 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
16254 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
16255 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
16256 call_cookie accordingly.
16257 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
16258 (SHCOMPACT_BYREF): Likewise.
16259 (SHCOMPACT_FORCE_ON_STACK): New macro.
16260 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
16261 (sh_builtin_saveregs): Likewise.
16262 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16263 shcompact_incoming_args): Use new shift values. Support
16264 sequences of consecutive and non-consecutive pushes/pops.
16265 * config/sh/sh.md (return): Don't explicitly use PR_REG.
16266 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
16267 * config/sh/sh.h (TEXT_SECTION): Define.
16268 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
16269 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16270 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
16271 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
16272 return values on FPU-enabled SHmedia.
16273 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
16274 FPU-enabled SHmedia.
16275 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
16276 value is returned in a non-FP reg and is not returned by
16277 reference.
16278 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
16279 jump_ind.
16280 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
16281 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
16282 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
16283 quad-aligned to be passed by callee-copy reference.
16284 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
16285 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
16286 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
16287 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
16288 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
16289 copying low-numbered FP regs to r7 and r8.
16290 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
16291 FP regs to general-purpose regs only if the copy was passed on the
16292 stack.
16293 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
16294 copying FP reg to r9.
16295 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
16296 copy FP regs to general-purpose regs only in outgoing calls.
16297 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 16298 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
16299 HOST_WIDE_INT.
16300 * config/sh/sh.h (struct sh_args): Document all fields.
16301 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
16302 passed partially on the stack should not consider making
16303 sibcalls.
16304 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
16305 stack_regs only for incoming calls. When passing FP args,
16306 make sure there are FP regs available before modifying
16307 call_cookie.
16308 (SHCOMPACT_BYREF): Pass double args in general-purpose
16309 registers by reference.
16310 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
16311 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
16312 attempt to generate sibcalls if the caller got any arguments
16313 by reference.
16314 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
16315 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
16316 to 8-byte boundaries.
16317 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
16318 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
16319 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
16320 stored in the stack.
16321 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
16322 for the offsets to have the ISA bit set.
16323 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
16324 invocation. Use beq instead of bgt to mark end of sequence of
16325 loads.
16326 (shcompact_incoming_args): Fix store of r2. Use beq instead of
16327 bgt to mark end of sequence of stores.
16328 * config/sh/sh.c (arith_operand): Don't check whether
16329 CONST_OK_FOR_J for now.
16330 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
16331 instead of long for conversion.
16332 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
16333 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
16334 before passing it to fprintf.
16335 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
16336 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
16337 Call set_fpscr before reading/writing SR.
16338 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
16339 Call set_fpscr.
16340 * config/sh/lib1funcs.asm: Add `.align 2' directives before
16341 SHmedia code.
16342 (FMOVD_WORKS): Define on SH5 with FPU.
16343 (set_fpscr): Define on SH5. Remove separate _fpscr_values
16344 setting.
16345 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
16346 _fpscr_values.
16347 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
16348 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
16349 address.
16350 (ia_main_table): Ditto.
16351 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
16352 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
16353 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
16354 the definitions from sh.h.
16355 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
16356 TARGET_SH5.
16357 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
16358 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
16359 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16360 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
16361 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
16362 Increment LABEL_NUSES.
d9b3eb63 16363
fa5322fa
AO
16364 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
16365 TARGET_SH5.
16366 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
16367 defined.
16368 * config/sh/elf.h (SIZE_TYPE): Likewise.
16369 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16370 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16371 shcompact_incoming_args): Load switch table addresses using
16372 datalabel.
16373 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16374 (NO_BUILTIN_SIZE_TYPE): Define.
16375 (SIZE_TYPE): Don't define.
16376 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16377 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
16378 definition of __SH5__=32 for -m5-compact-nofpu.
16379 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
16380 ADDR_DIFF_VEC.
16381 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
16382 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
16383 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
16384 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
16385 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
16386 (INSN_LENGTH_ALIGNMENT): Likewise.
16387 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16388 * config/sh/sh.md (call, call_value, sibcall): Simplify
16389 copying of non-branch-target register.
16390 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 16391 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
16392 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
16393 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16394 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
16395 floating-point values as structs.
16396 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
16397 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
16398 general-purpose register.
16399 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
16400 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16401 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
16402 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
16403 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
16404 (ENCODE_SECTION_INFO): Enclose variables and constants in
16405 DATALABEL unspecs.
16406 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
16407 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
16408 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
16409 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
16410 only for LABEL_REFs. For SYMBOL_REFs, prepend
16411 SH_DATALABEL_ENCODING to the symbol name.
16412 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
16413 convert_mode().
16414 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16415 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
16416 UNSPEC_DATALABEL.
16417 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
16418 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
16419 (DATALABEL_REF_P): Don't require CONST.
16420 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
16421 REL label.
16422 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
16423 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
16424 right.
16425 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16426 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
16427 Use shallow_copy_rtx and PUT_MODE to change the mode of
16428 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
16429 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
16430 on SHmedia using GENERAL_REGs.
16431 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16432 bltu_media_i): Fix reversion of conditions.
16433 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16434 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
16435 * config/sh/sh.c (output_far_jump): Save r13 in macl.
16436 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
16437 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
16438 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
16439 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
16440 (GCC_nested_trampoline): Likewise.
16441 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
16442 * config/sh/sh.c (gen_datalabel_ref): Define.
16443 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
16444 (INITIALIZE_TRAMPOLINE): Likewise.
16445 (TRAMPOLINE_ADJUST_ADDRESS): Define.
16446 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
16447 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
16448 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
16449 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
16450 (ic_invalidate): Adjust for SH5.
16451 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
16452 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
16453 _nested_trampoline.
16454 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
16455 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
16456 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
16457 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
16458 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
16459 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
16460 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
16461 * config/sh/sh.c (target_reg_operand): Match only target-branch
16462 registers and pseudos that aren't virtual registers.
16463 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16464 Copy operands that don't match target_reg_operand to pseudos.
16465 (call_media, call_value_media, sibcall_media): Use
16466 target_reg_operand instead of target_operand.
16467 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 16468 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
16469 * config/sh/sh.c (target_reg_operand): Match hardware registers
16470 other than branch-target registers.
16471 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
16472 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
16473 (fpscr_values) [SH5 == 32]: Define.
16474 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
16475 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16476 Handle function addresses coming in SUBREGs.
16477 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
16478 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16479 shcompact_return_trampoline): Use datalabel where appropriate.
16480 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
16481 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
16482 general-purpose register to copy one branch-target register to
16483 another.
16484 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
16485 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
16486 SYMBOL_REFs with VOIDmode.
16487 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16488 bltu_media_i): New insns.
16489 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
16490 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
16491 (INIT_CUMULATIVE_ARGS): Likewise.
16492 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
16493 * machmode.def (V16SFmode): New mode.
16494 * c-common.c (type_for_mode): Support V2SF and V16SF.
16495 * tree.c (build_common_tree_nodes_2): Likewise.
16496 * tree.h (tree_index): Likewise.
16497 * calls.c (emit_call_1): Take args_so_far. Adjust all
16498 callers. Introduce CALL_POPS_ARGS.
16499 * tm.texi (CALL_POPS_ARGS): Document.
16500 * config/sh/crt1.asm: Implement in SHmedia mode.
16501 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
16502 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
16503 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
16504 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
16505 Implement divsi and udivsi in SHmedia mode. Introduce
16506 SHcompact trampolines.
16507 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
16508 only in SHmedia64.
16509 (regno_reg_class): Rewrite.
16510 (fp_reg_names): Remove.
16511 (sh_register_names, sh_additional_register_names): New.
16512 (print_operand): Added `u'. Support SUBREGs in addresses.
16513 Add parentheses around shifted CONSTs.
16514 (output_file_start): Output .mode and .abi directives.
16515 (shiftcosts, addsubcosts, multcosts): Adjust.
16516 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
16517 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
16518 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
16519 bytes, not registers. Take into account the need for the
16520 SHcompact incoming args trampoline. Adjust all callers.
16521 (sh_expand_prologue): Take stack_regs into account. Call
16522 incoming args trampoline. Keep stack aligned as per SH5 ABI.
16523 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
16524 stack aligned as per SH5 ABI.
16525 (sh_builtin_saveregs): Support SH5 ABI.
16526 (sh_build_va_list, sh_va_start): Likewise.
16527 (initial_elimination_offset): Take alignment into account.
16528 Compute location of PR according to the SH5 stack frame.
16529 (arith_reg_operand): Reject branch-target registers.
16530 (shmedia_6bit_operand): New.
16531 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
16532 (target_reg_operand): Match DImode only. Accept SUBREGs.
16533 (target_operand): New.
16534 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
16535 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
16536 SIBCALL_REGS for SHmedia.
16537 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
16538 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
16539 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
16540 (TARGET_SWITCHES): New SH5 flags.
16541 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
16542 VALID_REGISTER_P to disable unsupported registers.
16543 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
16544 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
16545 (FUNCTION_ARG_PADDING): Define.
16546 (FASTEST_ALIGNMENT): Adjust.
16547 (SH_REGISTER_NAMES_INITIALIZER): New.
16548 (sh_register_names): Declare.
16549 (DEBUG_REGISTER_NAMES): Define.
16550 (REGISTER_NAMES): Define based on sh_register_names.
16551 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
16552 (sh_additional_register_names): Declare.
16553 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
16554 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
16555 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
16556 (REGISTER_NATURAL_MODE): Define.
16557 (FIRST_PSEUDO_REGISTER): Adjust.
16558 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
16559 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
16560 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
16561 (VECTOR_MODE_SUPPORTED_P): Define.
16562 (REG_CLASS_CONTENTS): Adjust.
16563 (SMALL_REGISTER_CLASSES): Adjust.
16564 (REG_ALLOC_ORDER): Adjust.
16565 (INDEX_REG_CLASS): Adjust.
16566 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
16567 (CONST_OK_FOR_LETTER_P): Adjust.
16568 (PREFERRED_RELOAD_CLASS): Adjust.
16569 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
16570 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
16571 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
16572 (FIRST_FP_PARM_REG): Adjust.
16573 (CALL_POPS_ARGS): Define.
16574 (FUNCTION_ARG_REGNO_P): Adjust.
16575 (struct sh_args): New fields.
16576 (GET_SH_ARG_CLASS): Adjust.
16577 (INIT_CUMULATIVE_ARGS): Adjust.
16578 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
16579 (FUNCTION_ARG_ADVANCE): Adjust.
16580 (FUNCTION_ARG): Adjust.
16581 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
16582 (FUNCTION_ARG_CALLEE_COPIES): Define.
16583 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
16584 (STRICT_ARGUMENT_NAMING): Define.
16585 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
16586 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
16587 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
16588 (SETUP_INCOMING_VARARGS): Adjust.
16589 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
16590 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
16591 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
16592 (SUBREG_OK_FOR_INDEX_P): Adjust.
16593 (EXTRA_CONSTRAINT_S): Update.
16594 (EXTRA_CONSTRAINT_T): New.
16595 (EXTRA_CONSTRAINT): Adjust.
16596 (GO_IF_LEGITIMATE_INDEX): Adjust.
16597 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
16598 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
16599 (MOVE_MAX): Adjust.
16600 (MAX_MOVE_MAX): Define.
16601 (Pmode): Adjust.
16602 (CONST_COSTS): Adjust.
16603 (REGISTER_MOVE_COST): Adjust.
16604 (BRANCH_COST): Adjust.
16605 (TEXT_SECTION_ASM_OP): Adjust.
16606 (DBX_REGISTER_NUMBER): Adjust.
16607 (ASM_OUTPUT_DOUBLE_INT): New.
16608 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
16609 (PREDICATE_CODES): Adjust.
16610 (PROMOTE_MODE): Adjust.
16611 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
16612 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
16613 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
16614 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
16615 (DR0_REG, DR2_REG, DR4_REG): Renumber.
16616 (TR0_REG, TR1_REG, TR2_REG): New.
16617 (XD0_REG): Renumber.
16618 (UNSPEC_COMPACT_ARGS): New.
16619 (type): Added pt and ptabs.
16620 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 16621 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
16622 (pt): New function unit.
16623 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
16624 Add whitespace between operands of SHmedia instructions.
16625 (movdicc): Fix.
16626 (adddi3_media, addsi3_media): Adjust constraints.
16627 (subsi3) [SHmedia]: Force operand 1 into a register.
16628 (udivsi3_i1_media, udivsi3_i4_media): New.
16629 (udivsi3): Support SHmedia.
16630 (divsi3_i1_media, divsi3_i4_media): New.
16631 (divsi3): Support SHmedia.
16632 (anddi3, iordi3, xordi3): Adjust constraints.
16633 (zero_extendhidi2, zero_extendqidi2): New.
16634 (extendsidi2, extendhidi2, extendqidi2): New.
16635 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
16636 (pop_e, pop_fpul, pop_4): Likewise.
16637 (movsi_media): Support FP and BT registers.
16638 (movsi_media_nofpu): New. Adjust splits to DImode.
16639 (lduw, ldub): Renamed to zero_extend* above.
16640 (movqi_media): Fix typo.
16641 (movdi_media): Support FP and BT registers.
16642 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
16643 (movdi_const_32bit): New.
16644 (shori_media): Require immediate operand. Use `u' for output.
16645 (movdf_media, movsf_media): Simplified.
16646 (movdf_media_nofpu, movsf_media_nofpu): New.
16647 (movdf, movsf): Adjust
16648 (movv2sf, movv2sf, movv16sf): New.
16649 (beq_media, beq_media_i): Adjust constraints. Don't use
16650 scratch BT register.
16651 (bne_media, bne_media_i): Likewise.
16652 (bgt_media, bgt_media_i): Likewise.
16653 (bge_media, bge_media_i): Likewise.
16654 (bgtu_media, bgtu_media_i): Likewise.
16655 (bgeu_media, bgeu_media_i): Likewise.
16656 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
16657 bunordered): Emit jump insn. Force operands to registers when
16658 needed.
16659 (jump_media, jump): Simplify.
16660 (call_compact, call_compact_rettramp): New.
16661 (call_value_compact, call_value_compact_rettramp): New.
16662 (call_media, call_value_media): Simplify.
16663 (sibcall_compact, sibcall_media): New.
16664 (call, call_value): Adjust for SHmedia and SHcompact.
16665 (sibcall, sibcall_value, untyped_call): Likewise.
16666 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
16667 (indirect_jump): Adjust for SHmedia.
16668 (casesi_jump_media): New.
16669 (nop): Re-enable for SHmedia.
16670 (call_site): Restrict to SH1.
16671 (casesi): Adjust for SHmedia.
16672 (casesi_shift_media, casesi_load_media): New.
16673 (return): Explicitly use PR register. Call return trampoline
16674 on SHcompact.
16675 (return_i): Explicitly use PR register.
16676 (shcompact_return_tramp, shcompact_return_tramp_i): New.
16677 (return_media): Adjust.
16678 (shcompact_incoming_args): New.
16679 (epilogue): Adjust.
16680 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16681 (movstrsi): Disable on SH5.
16682 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
16683 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
16684 (subsf3, subsf3_media): Likewise.
16685 (mulsf3, mulsf3_media, mac_media): Likewise.
16686 (divsf3, divsf3_media): Likewise.
16687 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
16688 (floatsisf2, fux_truncsfsi2): Likewise.
16689 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
16690 constraints.
16691 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
16692 (cmpunsf_media, cmpsf): Likewise.
16693 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
16694 (abssf2, abssf2_media): Likewise.
16695 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
16696 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
16697 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
16698 (floatsidf2, fix_truncdfsi2): Likewise.
16699 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
16700 constraints.
16701 (cmpeqdf_media, cmpgtdf_media): Likewise.
16702 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
16703 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
16704 (absdf2, absdf2_media): Likewise.
16705 (extendsfdf2, extendsfdf2_media): Likewise.
16706 (truncsfdf2, truncsfdf2_media): Likewise.
16707 * config/sh/sh64.h: New file.
16708 * config/sh/t-sh64: New file.
16709 * config/sh/shmedia.h: New file.
16710 * config/sh/ushmedia.h: New file.
16711 * config/sh/sshmedia.h: New file.
16712 * configure.in: Added sh64-*-elf.
16713 * configure: Rebuilt.
16714 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
16715 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
16716 (reg_class_from_letter): Use `b' for TARGET_REGS.
16717 (print_operand): Support `%M', `%m', `AND' and
16718 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
16719 (andcosts): Adjust for SHmedia.
16720 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
16721 Likewise.
16722 (target_reg_operand): New function.
16723 * config/sh/sh-protos.h (target_reg_operand): Declare.
16724 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
16725 FP registers on SH5.
16726 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
16727 on SH4.
16728 (TARGET_REGISTER_P): New macro.
16729 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
16730 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
16731 (EXTRA_CONSTRAINT_S): New macro.
16732 (EXTRA_CONSTRAINT): Adjust.
16733 (FLOAT_TYPE_SIZE): Define to 32.
16734 (Pmode): DImode on SHmedia.
16735 (CONST_COSTS): Adjust for SHmedia literals.
16736 (PREDICATE_CODES): Added target_reg_operand.
16737 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
16738 * config/sh/sh.md: Remove all attrs from SHmedia insns.
16739 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
16740 (cmpdi): Accept SHmedia.
16741 (movdicc_false, movdicc_true): New insns.
16742 (movdicc): New expand.
16743 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
16744 no_new_pseudos.
16745 (addsi3_media): Match `S' constraint.
16746 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
16747 (negdi2): Expand for SHmedia.
16748 (one_cmpldi2): New expand.
16749 (zero_extendsidi2): Change from expand to insn.
16750 (extendsidi2): Add constraints.
16751 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
16752 LD/ST address. Fix SI immediate loading split.
16753 (movhi_media, movqi_media, lduw, ldub): New insns.
16754 (movhi, movqi): Accept SHmedia.
16755 (shori_media, movdi_media): Relax input constraints. Split
16756 symbolic constants.
16757 (movdf_media, movsf_media): New insn. New split to movdi.
16758 (movdf, movsf): Match on SHmedia.
16759 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
16760 bgeu_media): New insns and splits. New insns with `_i' suffix.
16761 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
16762 (bunordered): New expand.
16763 (jump_compact): Renamed from `jump'.
16764 (jump_media): New insn.
16765 (jump): New expand.
16766 (call_media, call_value_media): New insns.
16767 (call, call_value): Adjust.
16768 (indirect_jump_compact): Renamed from `indirect_jump'.
16769 (indirect_jump_media): New insn.
16770 (indirect_jump): New expand.
16771 (untyped_call, return): Accept SHmedia.
16772 (return_media): New insn.
16773 (prologue, epilogue, blockage): Accept SHmedia.
16774 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16775 (sunordered): New expand.
16776 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
16777 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
16778 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
16779 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
16780 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
16781 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
16782 abssf2_media): New insns.
16783 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
16784 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
16785 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
16786 floatdidf2, floatsidf2_media, fix_truncdfdi2,
16787 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
16788 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
16789 absdf2_media): New insns.
16790 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
16791 (extendsfdf2_media, truncdfsf2_media): New insns.
16792 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
16793 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
16794 * config/sh/sh.h (CONST_OK_FOR_J): Document.
16795 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
16796 * config/sh/sh.md (adddi3): New expand.
16797 (adddi3_media, adddi3z_media): New insns.
16798 (adddi3_compact): Renamed from adddi3.
16799 (addsi3_media): Use add.l r63 to add constant zero.
16800 (subdi3): New expand.
16801 (subdi3_media): New insn.
16802 (subdi3_compact): Renamed from subdi3.
16803 (mulsidi3): New expand.
16804 (mulsidi3_media): New insn.
16805 (mulsidi3_compact): Renamed from mulsidi3.
16806 (umulsidi3): New expand.
16807 (umulsidi3_media): New insn.
16808 (umulsidi3_compact): Renamed from umulsidi3.
16809 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
16810 (ashlsi3, ashrsi3, lshrsi3): Use them.
16811 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
16812 (ashldi3, ashrdi3, lshrdi3): Use them.
16813 (zero_extendsidi2): New expand.
16814 (extendsidi2): New insn.
16815 (movsi_media): New insn. Split to movdi to load constants.
16816 (movsi): Enable for shmedia.
16817 (movdi_media): New insn. Use shori_media to load wide constants.
16818 (short_media): New insn.
16819 (movdi): Enable for shmedia.
16820 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
16821 * config/sh/sh.h (CPP_SPEC): Added `m5'.
16822 (SUBTARGET_CPP_SPEC): Added `!m5'.
16823 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
16824 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
16825 to all other SH variants.
16826 (TARGET_DEFAULT): Set to SH1_BIT.
16827 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
16828 (BITS_PER_WORD): Raise to 64 on shmedia.
16829 (MAX_BITS_PER_WORD): Change to 64.
16830 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
16831 (INT_TYPE_SIZE): Keep as 32.
16832 (UNITS_PER_WORD): Raise to 8 on shmedia.
16833 (MIN_UNITS_PER_WORD): Keep as 4.
16834 (POINTER_SIZE): Raise to 64 on shmedia.
16835 (CONST_OK_FOR_J): New macro.
16836 (CONST_OK_FOR_LETTER_P): Use it.
16837 (processor_type): Add PROCESSOR_SH5.
16838 * config/sh/sh.md: Conditionalize all expands, insns and
16839 splits to TARGET_SH1.
16840 (cpu): Added sh5.
16841 (addsi3_compact): Renamed from...
16842 (addsi3): Now an expand.
16843 (addsi3_media, subsi3_media): New insns.
16844 (subsi3): Don't negate constants with SHmedia.
16845
e4ec2cac
AO
16846 * hooks.c: New file.
16847 * hooks.h: New file.
16848 * Makefile.in (HOOKS_H): New.
16849 (TARGET_DEF_H): Added $(HOOKS_H).
16850 (OBJS): Added hooks.o.
16851 (cfgcleanup.o, bb-reorder.o): Added target.h.
16852 (hooks.o): Added dependencies.
16853 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
16854 (TARGET_INITIALIZER): this.
16855 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
16856 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
16857 * bb-reorder.c: Include target.h.
16858 (reorder_basic_blocks): Skip if cannot modify jumps.
16859 * cfgcleanup.c: Include target.h.
16860 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
16861
246a46e0
CD
168622002-02-08 Chris Demetriou <cgd@broadcom.com>
16863
831c4e87
KC
16864 * config/mips/mips.md (casesi_internal, casesi_internal_di):
16865 Protect jump delay slot instructions with .set noreorder and
16866 .set nomacro.
246a46e0
CD
16867
168682002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
16869
16870 * config/mips/mips.md (casesi_internal_di): Calculate
16871 the index into the target offset table correctly.
16872
fdf473ae
RH
168732002-02-08 Richard Henderson <rth@redhat.com>
16874
16875 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
16876 * final.c (output_addr_const): Accept and discard SUBREG.
16877 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
16878 mark them unknown instead.
16879 (simplify_subtraction): Handle RTX_UNKNOWN.
16880 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
16881
c50503ac
DE
168822002-02-08 David Edelsohn <edelsohn@gnu.org>
16883
16884 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
16885
3660d217
RH
168862002-02-08 Richard Henderson <rth@redhat.com>
16887
16888 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
16889
56547299
AJ
168902002-02-08 Andreas Jaeger <aj@suse.de>
16891
16892 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
16893 * config/i386/t-linux64: New file.
16894
1cf537c5
JJ
168952002-02-08 Jakub Jelinek <jakub@redhat.com>
16896
16897 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
16898 * c-parse.in (compstmt): Clear last_expr_type.
16899
5c7f5a5f
RH
169002002-02-07 Richard Henderson <rth@redhat.com>
16901
16902 * loop.c (strength_reduce): Sink final_value when not
16903 eliminating a biv.
16904
b1138bf3
DB
169052002-02-07 David O'Brien <obrien@FreeBSD.org>
16906
16907 * config/sparc/freebsd.h: Fix mismatched spec {.
16908
b6878a45
RH
169092002-02-07 Richard Henderson <rth@redhat.com>
16910
16911 * cfgrtl.c: Include recog.h and insn-config.h.
16912 (keep_with_call_p): Fix general_operand invocation.
16913 * Makefile.in (cfgrtl.o): Update dependencies.
16914
ae19f5ef
KH
169152002-02-07 Kazu Hirata <kazu@hxi.com>
16916
16917 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
16918 comment. Accept HImode only if TARGET_H8300.
16919
b137f9fc
EC
169202002-02-07 Eric Christopher <echristo@redhat.com>
16921
16922 * config/mips/crtn.asm: Cleanup #ifdefs.
16923
169242002-02-07 Eric Christopher <echristo@redhat.com>
16925
16926 * config/mips/crti.asm: Add changes for mips16. mips16 uses
16927 register 7 as RA instead of $31.
16928 * config/mips/crtn.asm: Ditto.
16929 * config/mips/mips.c (mips_move_2words): Add case for
16930 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
16931 (compute_frame_size): Fix typo.
16932 (save_restore_insns): Ditto. Make documentation about using
16933 register $7 as return register more precise.
16934 (mips_expand_epilogue): Fix comment. Add code to work around not
16935 being able to add to the stack pointer directly.
16936 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
16937 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
16938 epilogue.
16939
768070a0
TR
169402002-02-07 Tom Rix <trix@redhat.com>
16941
b137f9fc 16942 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
16943 immediates in ldu and stdu DS opcode field.
16944 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
16945 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
16946 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
16947
225909c3
JS
169482002-02-07 Jeff Sturm <jsturm@one-point.com>
16949
16950 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
16951 offset for stack bias.
16952
15fae023
L
169532002-02-07 H.J. Lu <hjl@gnu.org>
16954
16955 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
16956
fde5badd
UW
169572002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
16958
16959 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
16960
162f023b
JH
16961Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
16962
16963 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
16964 * i386.c (x86_order_regs_for_local_alloc): New global function.
16965 * i386.h (REG_ALLOC_ORDER): CLeanup.
16966 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
16967
9b462c42
RH
169682002-02-07 Richard Henderson <rth@redhat.com>
16969
85aa876c 16970 PR optimization/2463
9b462c42
RH
16971 * alias.c (find_base_value): Recall base values for fixed hard regs.
16972 * loop.c (loop_regs_update): Don't use single_set on non-insns.
16973
06e455a9
AO
169742002-02-07 Alexandre Oliva <aoliva@redhat.com>
16975
16976 * config/mips/mips.md (define_delay) [mips16]: Adjust required
16977 length.
16978
edd1967d
RH
169792002-02-06 Richard Henderson <rth@redhat.com>
16980
16981 PR c/5609
16982 * stmt.c (resolve_operand_name_1): Take more care with mixed
16983 named and unnamed operands.
16984
a2cd028f
JJ
169852002-02-06 Janis Johnson <janis187@us.ibm.com>
16986 Jan Hubicka <jh@suse.cz>
16987
16988 * loop.c (remove_constant_addition): Avoid clobbering a shared
16989 CONST expression.
16990
e8487c04
UW
169912002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
16992
16993 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
16994 * config/s390/t-linux64: New file.
16995 * config/s390/libgcc-glibc.ver: New file.
16996
58d10f89
UW
169972002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
16998
16999 * config/s390/linux64.h: Delete file.
17000 * config/s390/s390x.h: New file.
17001 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17002 as target header file.
17003 * config/s390/linux.h (TARGET_VERSION): Define depending on
17004 DEFAULT_TARGET_64BIT.
17005 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
17006 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
17007 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
17008 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
17009 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
17010 (EXTRA_SPEC): New define.
17011 * config/s390/s390.h (TARGET_VERSION): Define depending on
17012 DEFAULT_TARGET_64BIT.
17013 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
17014
5ce89b2e
JM
170152002-02-06 Jason Merrill <jason@redhat.com>
17016
17017 * c-decl.c (finish_function): Warn about a non-void function with
17018 no return statement and no abnormal exit.
17019 (current_function_returns_abnormally): New variable.
17020 (start_function): Clear it.
17021 (struct c_language_function): Add returns_abnormally.
17022 (push_c_function_context): Save it.
17023 (pop_c_function_context): Restore it.
17024 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
17025 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
17026 an explicit return type.
17027 * c-tree.h: Declare current_function_returns_abnormally.
17028 (C_FUNCTION_IMPLICIT_INT): New macro.
17029 * c-typeck.c (build_function_call): Set it.
17030 (c_expand_return): Set current_function_returns_value even if the
17031 value is erroneous.
17032
caaf2272
JJ
170332002-02-06 Jakub Jelinek <jakub@redhat.com>
17034
17035 PR c/5420:
17036 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
17037 unsafe for reevaluation.
17038
d5129288
JJ
170392002-02-06 Jakub Jelinek <jakub@redhat.com>
17040
17041 PR c/5482:
17042 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
17043 EXPR_STMT, but COMPOUND_STMT, recurse into it.
17044
7fb75099
RH
170452002-02-06 Richard Henderson <rth@redhat.com>
17046
17047 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
17048 be a general_operand. Dest for function value must be a pseudo.
17049
d3a8b6a6
NC
170502002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
17051
17052 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
17053 as SYMBOL_REFs from the constant pool.
17054
3c1299c5
AO
170552002-02-06 Alexandre Oliva <aoliva@redhat.com>
17056
17057 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
17058 passed by invisible reference.
17059
c2c9f6c9
RH
170602002-02-05 Richard Henderson <rth@redhat.com>
17061
17062 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
17063
a824924d
HPN
170642002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
17065
17066 Implement using "base addresses" in insn operands as default.
17067 * config/mmix/mmix.c (mmix_conditional_register_usage): if
17068 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
17069 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
17070 used to read the rtx value.
17071 (mmix_target_asm_function_epilogue): Fix spacing.
17072 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
17073 (mmix_legitimate_address): Ditto.
17074 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
17075 should be loaded with a GETA insn. Don't allocate needless extra
17076 char for nul termination and fix misleading comment.
17077 (mmix_print_operand_address): Handle constants if
17078 TARGET_BASE_ADDRESSES.
17079 (mmix_output_register_setting): Use base addressing if
17080 TARGET_BASE_ADDRESSES and the number of insns is 3.
17081 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
17082 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
17083 to use R as constraint, add LDA to match s.
17084 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
17085 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
17086 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
17087 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
17088 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
17089 order with other fixed registers.
17090 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
17091 other parameter/call-clobbered registers.
17092 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
17093 -mbase-addresses, -mno-base-addresses.
17094 (MMIX Options): Ditto.
17095
73c342b9
JDA
170962002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17097
17098 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
17099
ef238c58
AH
171002002-02-06 Aldy Hernandez <aldyh@redhat.com>
17101
831c4e87 17102 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 17103
ad08e60e
JT
171042002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17105
17106 * config/netbsd.h (WCHAR_TYPE): Define.
17107 (WCHAR_TYPE_SIZE): Ditto.
17108 (WINT_TYPE): Ditto.
17109 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
17110 (WCHAR_UNSIGNED): Ditto.
17111 (WCHAR_TYPE_SIZE): Ditto.
17112 (WINT_TYPE): Ditto.
17113 * config/arm/netbsd.h: Likewise.
17114 * config/i386/netbsd-elf.h: Likewise.
17115 * config/i386/netbsd.h: Likewise.
17116 * config/m68k/netbsd-elf.h: Likewise.
17117 * config/m68k/netbsd.h: Likewise.
17118 * config/ns32k/netbsd.h: Likewise.
17119 * config/sparc/netbsd.h: Likewise.
17120 * config/vax/netbsd.: Likewise.
17121
f913c102
AO
171222002-02-05 Alexandre Oliva <aoliva@redhat.com>
17123
17124 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
17125 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
17126 (TARGET_INITIALIZER): this.
17127 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
17128 (BITFIELD_NBYTES_LIMITED): Markup fix.
17129 * tree.h (default_ms_bitfield_layout_p): Declare.
17130 (record_layout_info): Added prev_field.
17131 * tree.c (default_ms_bitfield_layout_p): New fn.
17132 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
17133 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
17134 * stor-layout.c: Include target.h.
17135 (start_record_layout): Initialize prev_field.
17136 (place_field): Handle MS bit-field layout, and disregard
17137 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
17138 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
17139 * Makefile.in (stor-layout.o): Adjust dependencies.
17140
c13db5d1
JM
171412002-02-05 Jason Merrill <jason@redhat.com>
17142
c13db5d1
JM
17143 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
17144
4505024e
AJ
171452002-02-05 Andreas Jaeger <aj@suse.de>
17146
17147 * crtstuff.c: Fix comments.
17148
794ad79d
RH
171492002-02-05 Richard Henderson <rth@redhat.com>
17150
2e279a9b
RH
17151 PR fortran/3393
17152 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
17153 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
17154
794ad79d
RH
17155 PR fortran/3392
17156 * config/mips/mips.c (function_arg): Handle TImode.
17157 (function_arg_advance): Likewise.
17158
8f909017
AH
171592002-02-05 Aldy Hernandez <aldyh@redhat.com>
17160
c13db5d1
JM
17161 * config/rs6000/altivec.h (vec_step_help): Rename to
17162 __vec_step_help.
8f909017 17163
66daa9e3
AH
171642002-02-05 Aldy Hernandez <aldyh@redhat.com>
17165
c13db5d1 17166 * config/rs6000/altivec.h: Fix typos.
66daa9e3 17167
2696e97b
JT
171682002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17169
17170 * config/arm/netbsd.h: Correct a comment.
17171
3deb2758
AH
171722002-02-05 Aldy Hernandez <aldyh@redhat.com>
17173
c13db5d1
JM
17174 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
17175 building void typed builtins.
3deb2758 17176
c13db5d1
JM
17177 * config/rs6000/altivec.h (vec_ld*): Fix typos.
17178 (vec_step): Implement for C++.
3deb2758 17179
c13db5d1 17180Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
17181
17182 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
17183
ebbb0a63
RH
171842002-02-04 Richard Henderson <rth@redhat.com>
17185
17186 * combine.c (nonzero_bits): Re-introduce special case for
17187 sp/fp/ap wrt REGNO_POINTER_ALIGN.
17188
ae4b4a02
AH
171892002-02-05 Aldy Hernandez <aldyh@redhat.com>
17190
c13db5d1
JM
17191 * doc/extend.texi: Warn about unsupported usage of altivec
17192 builtins.
ae4b4a02 17193
c13db5d1
JM
17194 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
17195 (altivec_predicate_*): New.
ae4b4a02 17196
c13db5d1
JM
17197 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
17198 Add C++ version of vec_*() functions.
ae4b4a02 17199
c13db5d1
JM
17200 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
17201 (bdesc_2arg): Remove altivec predicates.
17202 (altivec_expand_builtin): Handle predicates.
17203 (altivec_init_builtins): Handle predicates.
17204 (altivec_expand_predicate_builtin): New.
ae4b4a02 17205
f6bcf44c
JDA
172062002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17207
17208 * pa.c (DO_FRAME_NOTES): Move forward.
17209 (store_reg): Revise handling of frame notes.
17210 (load_reg): Likewise.
17211 (set_reg_plus_d): Likewise.
17212 (hppa_expand_prologue): Likewise.
17213 (hppa_expand_epilogue): Likewise.
b137f9fc 17214
703b0080
JDA
172152002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17216
17217 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
17218
6f9fdf4d
JJ
172192002-02-04 Jakub Jelinek <jakub@redhat.com>
17220
17221 PR c/4475, c++/3780:
17222 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
17223 * c-common.h (SWITCH_TYPE): Define.
17224 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
17225 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
17226 Rename spareness variable to sparseness.
17227 (expand_end_case_type): Renamed from expand_end_case, use orig_type
17228 if non-NULL instead of TREE_TYPE (orig_index).
17229 * tree.h (expand_end_case_type): Renamed from expand_end_case.
17230 (expand_end_case): Define using expand_end_case_type.
17231 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
17232 to expand_end_case_type.
17233 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
17234
79109502
JDA
172352002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17236
17237 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
17238 (BIGGEST_ALIGNMENT): Change to 128.
17239
e62a5987
JDA
172402002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17241
17242 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
17243
219f24a4
JDA
172442002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17245
17246 * pa.md (call_internal_reg_64bit): Remove unused variable.
17247
3cb66fd7
NC
172482002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
17249
17250 * config/arm/arm.h (machine_function): Add uses_anonymous_args
17251 field.
831c4e87 17252 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 17253 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
17254 replace uses with cfun->machine->uses_anonymous_args.
17255 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
17256
17257 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
17258 any geenral register.
b137f9fc 17259
5d5603e2 172602001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
17261
17262 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
17263 the entry block.
17264
563c12b0
RH
172652002-02-04 Richard Henderson <rth@redhat.com>
17266
17267 * combine.c (force_to_mode): Remove STACK_BIAS code.
17268 (nonzero_bits): Likewise. Replace sp/fp special case with
17269 REGNO_POINTER_ALIGN.
17270
17271 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
17272 (HARD_FRAME_POINTER_REGNUM): New.
17273 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
17274 (FIXED_REGS, CALL_USED_REGS): Update.
17275 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
17276 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
17277 (HARD_REGNO_NREGS): Update for SFP.
17278 (STACK_POINTER_OFFSET): Include bias here ...
17279 (FIRST_PARM_OFFSET): ... not here.
17280 (STACK_BIAS): Remove.
17281 (INIT_EXPANDERS): New.
17282 (STARTING_FRAME_OFFSET): Do not include bias.
17283 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
17284 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
17285 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
17286 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
17287 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
17288 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
17289 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
17290 (MUST_SAVE_REGISTER): Likewise.
17291 (sparc_flat_function_prologue): Likewise.
17292 (sparc_flat_function_epilogue): Likewise.
17293 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
17294 (sparc_init_modes): SFP is GENERAL_REGS.
17295 (sparc_builtin_saveregs): SFP does not have bias applied.
17296
14691f8d
RH
172972002-02-04 Richard Henderson <rth@redhat.com>
17298
17299 * config/alpha/alpha.c (current_function_is_thunk): Don't check
17300 current_function_is_thunk.
17301 (alpha_sa_mask): Distinguish between current_function_is_thunk
17302 called from ASM_OUTPUT_MI_THUNK and not.
17303 (alpha_does_function_need_gp): Thunks always need gp.
17304 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17305 (alpha_output_mi_thunk_osf): New.
17306 * config/alpha/alpha-protos.h: Update.
17307 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
17308
af702de8
RS
173092002-02-04 Richard Sandiford <rsandifo@redhat.com>
17310
17311 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
17312 function types, not when they're taken away.
17313
5b1cacd8
JL
17314Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
17315
17316 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
17317 CODE_LABEL and jump table when replacing a table jump with a
17318 simple jump.
17319
f3e9edff
UW
173202002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17321
17322 * config/s390/s390-protos.h (legitimize_la_operand,
17323 s390_secondary_input_reload_class, s390_plus_operand,
17324 s390_expand_plus_operand): Add prototypes.
17325
17326 config/s390/s390.c (s390_secondary_input_reload_class,
17327 s390_plus_operand, s390_expand_plus_operand): New functions.
17328
17329 (struct s390_address): New member 'pointer'.
17330 (s390_decompose_address): Compute it.
17331 (legitimate_la_operand_p): Use it.
17332 (legitimize_la_operand): New function.
17333 (movti, movdi, movdf splitters): Call it.
17334
17335 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
17336 (PREDICATE_CODES): Add s390_plus_operand.
17337
17338 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
17339 (la_ccclobber): Allow GENERAL_REGS as output operand.
17340
17341 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
17342 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
17343 (*la_64, *la_31, reload_indi, reload_insi): ... these.
17344
3c9a08ec
UW
173452002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17346
17347 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
17348 register names for regular asm () construct.
17349
ac300a45
JJ
173502002-02-04 Jakub Jelinek <jakub@redhat.com>
17351
17352 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
17353 registers.
17354
fa852403
JJ
173552002-02-04 Jakub Jelinek <jakub@redhat.com>
17356
17357 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
17358 pat for recog.
17359
fecaac37
HP
173602002-02-04 Hartmut Penner <hpenner@de.ibm.com>
17361
831c4e87
KC
17362 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
17363 constant pool to be identical by string address and index.
fecaac37 17364
10c45943
AG
173652002-02-04 Anthony Green <green@redhat.com>
17366
17367 * output.h (SECTION_OVERRIDE): Define.
17368 * varasm.c (named_section): Obey SECTION_OVERRIDE.
17369
69474c3c
JT
173702002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17371
17372 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
17373 by existing arm*-*-netbsd* (a.out) target.
17374 (ns32k-*-netbsdelf*): Likewise.
17375 (sparc-*-netbsdelf*): Likewise.
17376 (vax-*-netbsdelf*): Likewise.
17377
939a46f6 173782002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
17379
17380 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
17381 headers and libobjc headers.
17382
173832002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
17384
17385 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
17386 (_mingw.h): Remove duplicate include.
17387
2fd95d71
JT
173882002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17389
17390 * config.gcc: Set cpu_type to m68k for 68010, as well.
17391 (m68010-*-netbsdelf*): New...
17392 (m68k*-*-netbsdelf*): ...targets.
17393 * config/m68k/netbsd-elf.h: New file.
17394
0ea6f6a0
KH
173952002-02-02 Kazu Hirata <kazu@hxi.com>
17396
17397 * config/h8300/h8300.c (hand_list): Move inside function_arg.
17398
cbf1b2da
KH
173992002-02-02 Kazu Hirata <kazu@hxi.com>
17400
17401 * config/h8300/h8300.c (h8_push_ops): Move inside
17402 h8300_init_once.
17403 (h8_pop_ops): Likewise.
17404 (h8_move_ops): Likewise.
17405
0869f126
KH
174062002-02-02 Kazu Hirata <kazu@hxi.com>
17407
17408 * config/h8300/h8300.c (os_task): Make it static.
17409 (monitor): Likewise.
17410 (pragma_saveall): Likewise.
17411
90e65b70
AO
174122002-02-02 Alexandre Oliva <aoliva@redhat.com>
17413
17414 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
17415 constant is a valid sign-extension for Pmode.
17416
9cbcd983
KH
174172002-02-02 Kazu Hirata <kazu@hxi.com>
17418
17419 * config/h8300/h8300.c: Fix formatting.
17420
7a27efc4
KH
174212002-02-02 Kazu Hirata <kazu@hxi.com>
17422
17423 * config/h8300/h8300.md: Fix formatting.
17424
54175a44
KH
174252002-02-02 Kazu Hirata <kazu@hxi.com>
17426
17427 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
17428 predicates of operands[1]. Split the patterns for each
17429 processor variant.
17430
eceb1755
KH
174312002-02-02 Kazu Hirata <kazu@hxi.com>
17432
17433 * config/h8300/h8300.md (xor patterns): Tighten the predicates
17434 of operands[1] to register_operand.
17435
0fef3fd0
NB
174362002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
17437
17438 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
17439 * cpphash.c (_cpp_init_hashtable): Similarly.
17440 * cppinit.c (cpp_create_reader): Default the signed_char flag.
17441 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
17442 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
17443 (cpp_handle_option): Handle the new options.
17444 * cpplex.c (cpp_interpret_charconst): Use new flag.
17445 * cpplib.h (struct cpp_options): New member signed_char.
17446 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
17447 (cpp_options): Handle -fsigned-char and -funsigned-char.
17448 (static_specs): Remove signed_char_spec.
17449 (do_spec1): Don't handle %c.
17450 * system.h: Poison SIGNED_CHAR_SPEC.
17451 * tradcif.y (yylex): Use flag_signed_char.
17452 * tradcpp.h (flag_signed_char): New.
17453 * tradcpp.c (flag_signed_char): New.
17454 (main): Handle new command-line options.
17455 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
17456config:
17457 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
17458 * avr/avr.h: Remove old comments.
17459 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
17460 (CC1_SPEC): Pass -fsigned-char if -mic*.
17461 (SIGNED_CHAR_SPEC): Remove.
17462doc:
17463 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
17464
0617ed52
EC
174652002-02-01 Eric Christopher <echristo@redhat.com>
17466
17467 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
17468 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
17469 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
17470 (ASM_OUTPUT_REG_POP): Ditto.
17471
dfd48d76
NB
174722002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
17473
17474 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
17475 patch.
17476
4a23409e
JJ
174772002-02-02 Jakub Jelinek <jakub@redhat.com>
17478
17479 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
17480
d3c52658
JJ
174812002-02-02 Jakub Jelinek <jakub@redhat.com>
17482
17483 PR c/5304:
17484 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
17485 unconditionally.
17486
02c5a3bd
JJ
174872002-02-01 Janis Johnson <janis187@us.ibm.com>
17488
17489 * cfganal.c: Include tm_p.h.
17490 (keep_with_call_p): Fix the test that determines if a register holds
17491 the return value of a call.
17492
3968de80
DD
174932002-02-01 DJ Delorie <dj@redhat.com>
17494
17495 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
17496 we are given conflicting registers, switch to the other one we
17497 had allocated for us.
17498 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
17499 as TImode so we know when the "other" register is available.
17500
1338ea6c
DB
175012002-02-01 David O'Brien <obrien@FreeBSD.org>
17502
17503 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
17504 sparc/sparc_bi.h.
17505
f015be23
JJ
175062002-02-01 Janis Johnson <janis187@us.ibm.com>
17507
17508 * cfganal.c (keep_with_call_p): New function.
17509 (flow_call_edges_add): Prevent splitting a block between a call and
17510 a single-set instruction that should be kept in the same block.
17511
63708ffc
CR
175122002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
17513
17514 * doc/install.texi (avr): Update outdated URL.
17515
5ee4950e
AH
175162002-01-30 Andrew Haley <aph@cambridge.redhat.com>
17517
831c4e87
KC
17518 * config/stormy16/stormy16.md (pushqi): New.
17519 (popqi): New.
17520 (pushhi): New.
17521 (pophi): New.
17522 (movhi): Remove stack operands.
17523 (movqi): Likewise.
17524 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
17525 nonimmediate_nonstack_operand.
17526 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
17527 New.
17528 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
17529 New.
5ee4950e 17530
b88c0704
JM
175312002-01-31 Jason Merrill <jason@redhat.com>
17532
17533 * Makefile.in (c-parse.c): Handle .output file.
17534 * objc/Make-lang.in (objc-parse.c): Likewise.
17535
ac282977
AO
175362002-02-01 Alexandre Oliva <aoliva@redhat.com>
17537
17538 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
17539 the -me[lb] option is given. Don't output the default flag
17540 twice.
17541
bebc7e8b
ZW
175422002-01-31 Zack Weinberg <zack@codesourcery.com>
17543
17544 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
17545 the primary source file; this has not been done yet.
17546 * c-decl.c (c_expand_body): Reset input_filename from
17547 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
17548
5809eb5f
KH
175492002-01-31 Kazu Hirata <kazu@hxi.com>
17550
17551 * rtlanal.c (subreg_regno_offset): Do not use
17552 SUBREG_REGNO_OFFSET.
17553 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
17554 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
17555
8512bbd7
JM
175562002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
17557
17558 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
17559 version rather than GNATS version in --version output.
17560
74cb3cc8
RS
175612002-01-31 Richard Sandiford <rsandifo@redhat.com>
17562
17563 * ifcvt.c (noce_process_if_block): Make a copy of the destination
17564 when copying back from a temporary.
17565
874b5b14
RH
175662002-01-30 Richard Henderson <rth@redhat.com>
17567
17568 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
17569 and new_dest are the same.
17570
e803a64b
RH
175712002-01-30 Richard Henderson <rth@redhat.com>
17572
89cf7be5 17573 PR opt/5076
e803a64b
RH
17574 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
17575 * rtl.c (note_insn_name): Update.
17576 * emit-rtl.c (remove_unnecessary_notes): Kill it.
17577 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
17578 to perform loop rotation.
17579 (expand_exit_loop_top_cond): New.
17580 * tree.h (expand_exit_loop_top_cond): Declare it.
17581 * c-semantics.c (genrtl_while_stmt): Use it.
17582 (genrtl_for_stmt): Likewise.
17583
0b51254d
AO
175842002-01-30 Alexandre Oliva <aoliva@redhat.com>
17585
17586 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
17587 arguments to 64-bit boundaries on 64-bit ABIs.
17588
71cef493
SE
175892002-01-30 Steve Ellcey <sje@cup.hp.com>
17590
17591 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
17592
6169e5fd
JM
175932002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
17594
17595 * c-decl.c (grokdeclarator): Handle type being a typedef for an
17596 invalid type.
17597
86f808dc
DB
175982002-01-30 David O'Brien <obrien@FreeBSD.org>
17599
17600 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
17601 * config/sparc/sparc_bi.h: Remove file.
17602 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
17603
5748ebeb
RH
176042002-01-30 Richard Henderson <rth@redhat.com>
17605
17606 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
17607
20d32cc2
ZW
176082002-01-30 Zack Weinberg <zack@codesourcery.com>
17609
17610 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
17611
b88c0704 176122002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
17613
17614 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
17615 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
17616 (reg_save): Use DW_CFA_offset_extended_sf instead.
17617
17618 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
17619
37060e78
JJ
176202002-01-29 Jakub Jelinek <jakub@redhat.com>
17621
17622 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
17623 in cselib_lookup.
17624
d18dba68
AH
176252002-01-29 Aldy Hernandez <aldyh@redhat.com>
17626
bebc7e8b
ZW
17627 * rs6000.md ("*call_value_local32"): Remove constraints.
17628 ("*call_value_local64"): Same.
17629 ("*call_value_indirect_nonlocal_aix32"): Same.
17630 ("*call_value_nonlocal_aix32"): Same.
17631 ("*call_value_indirect_nonlocal_aix64"): Same.
17632 ("*call_value_nonlocal_aix64"): Same.
17633 ("*call_value_nonlocal_sysv"): Same.
d18dba68 17634
80a8aac6
RH
176352002-01-29 Richard Henderson <rth@redhat.com>
17636
17637 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
17638
12beba6f
RH
176392002-01-29 Richard Henderson <rth@redhat.com>
17640
17641 * expr.c (force_operand): Ignore flag_pic for detecting pic
17642 address loads.
17643 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
17644 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
17645 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
17646 instead of open-coded loop.
17647 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
17648 be fixed when in use.
17649
2583081e
RH
176502002-01-29 Richard Henderson <rth@redhat.com>
17651
17652 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
17653 * sched-rgn.c (propagate_deps): Update them.
17654 * sched-deps.c (sched_analyze_insn): Update them. Flush the
17655 clobbers list when either gets too long.
17656
3b8d200e
JJ
176572002-01-29 Jakub Jelinek <jakub@redhat.com>
17658
17659 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
17660 and INDEX_REGS the same as GENERAL_REGS.
17661 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
17662
2d3115eb
NB
176632002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
17664
bebc7e8b 17665 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 17666
ecbe845e
UW
176672002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
17668
bebc7e8b 17669 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 17670 movstrsix_31): Remove, replace by ...
bebc7e8b 17671 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
17672 movstrsi_long): ... these. New.
17673 (movstrdi, movstrsi): Adapt.
17674
17675 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 17676 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
17677 Remove unnecessary CC clobber.
17678 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
17679 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
17680
17681 (divmoddi4): Don't partially initialize TImode register.
17682
0b32fca5
GK
176832002-01-29 Geoffrey Keating <geoffk@redhat.com>
17684
17685 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
17686
08ef5437
RH
176872002-01-29 Richard Henderson <rth@redhat.com>
17688
17689 * flow.c (print_rtl_and_abort): Remove.
17690 (print_rtl_and_abort_fcn): Remove.
17691 (verify_local_live_at_start): Use dump_bb instead.
17692 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
17693 (verify_wide_reg_1): Return 2 on mode test failure.
17694
8469e54e
NB
176952002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
17696
17697 PR c/3325, c/3326, c/2511, c/3347
17698 * c-decl.c (enum_decl_context): Remove BITFIELD.
17699 (grokdeclarator): Take bitfield width as an input.
17700 Ensure bitfields are given the correct type. Perform
17701 bitfield width validation with build_bitfield_integer_type
17702 rather than waiting for finish_struct.
17703 (grok_typename, grok_typename_in_parm_context, start_decl,
17704 push_parmdecl, grokfield, start_function): Update calls to
17705 grokdeclarator.
17706 (build_bitfield_integer_type): New function.
17707 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 17708 and build_bitfield_integer_type.
8469e54e
NB
17709 * tree.c (build_nonstandard_integer_type): New function.
17710 * tree.h (build_nonstandard_integer_type): New prototype.
17711objc:
17712 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
17713
ffdeea47
JJ
177142002-01-29 Jakub Jelinek <jakub@redhat.com>
17715
17716 PR other/1502:
17717 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
17718 don't ignore unrecognized -W* options.
17719 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
17720 * cpplib.h (cpp_handle_option): Adjust prototype.
17721 * c-decl.c (c_decode_options): Pass 0 as last argument to
17722 cpp_handle_option.
17723
17724 PR c/2896:
17725 * gcc.c (cpp_unique_options): Split from cpp_options.
17726 (cpp_options): Source cpp_unique_options.
17727 (default_compilers): Use cpp_unique_options instead of cpp_options
17728 when used together with cc1_options.
17729 (static_specs): Add cpp_unique_options.
17730 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
17731 when used together with cc1_options.
17732
1a275226
KH
177332002-01-29 Kazu Hirata <kazu@hxi.com>
17734
17735 * config/h8300/h8300-protos.h: Update the prototype of
17736 output_a_shift.
17737 * config/h8300/h8300.c (output_a_shift): Remove an unused
17738 argument 'insn'. Remove redundant code.
17739 * config/h8300/h8300.md: Adust to the new prototype of
17740 output_a_shift.
17741
a11d9dfc
KH
177422002-01-29 Kazu Hirata <kazu@hxi.com>
17743
17744 * config/h8300/h8300-protos.h: Update the prototypes of
17745 emit_a_rotate and expand_a_rotate.
17746 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
17747 first argument to 'enum rtx_code'.
17748 (expand_a_rotate): Likewise.
17749
871f73e3
KH
177502002-01-28 Kazu Hirata <kazu@hxi.com>
17751
17752 * config/h8300/h8300-protos.h: Update the prototype of
17753 output_simode_bld.
17754 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
17755 'log2'.
17756 * config/h8300/h8300.md: Adjust to the new prototype.
17757
5fc4b751
KH
177582002-01-28 Kazu Hirata <kazu@hxi.com>
17759
17760 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
17761 redundant code.
17762
2d67bd7b
JDA
177632002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
17764
17765 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
17766 is a fixed register before returning pic_offset_table_rtx.
17767 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
17768 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
17769
5a852b3e
JM
177702002-01-28 Jason Merrill <jason@redhat.com>
17771
6bb28965 17772 * dwarf2.h: Sync with src version.
5a852b3e 17773
3bca17dd
PK
177742002-01-28 Paul Koning <pkoning@equallogic.com>
17775
17776 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
17777 BT_FN_VOID_PTR_VAR.
17778 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
17779 * doc/extend.texi (__builtin_prefetch): Update documentation:
17780 first argument is now const void ptr.
17781
7dc3f8c0
KH
177822002-01-28 Kazu Hirata <kazu@hxi.com>
17783
17784 * config/h8300/h8300-protos.h: Remove an unused prototype.
17785
e83cb5f0
RZ
177862002-01-28 Roman Zippel <zippel@linux-m68k.org>
17787
17788 * toplev.c (lang_independent_init): Round up identifier size.
17789
5721cd84
RE
177902002-01-28 Richard Earnshaw <rearnsha@arm.com>
17791
17792 * config.gcc: Revert previous change.
17793
d534119e
AP
177942002-01-28 Andris Pavenis <pavenis@latnet.lv>
17795
17796 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
17797
5a721dab
RE
177982002-01-28 Richard Earnshaw <rearnsha@arm.com>
17799
17800 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
17801 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
17802 other non-elf netbsd config frags.
17803 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
17804 collect2 will does that.
17805 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
17806 shared-lib frobbing will work.
17807
da1775d6
KH
178082002-01-28 Kazu Hirata <kazu@hxi.com>
17809
17810 * config/h8300/h8300.h: Fix formatting.
17811 * config/h8300/h8300.md: Likewise.
17812
8f2e963b
LR
178132002-01-28 Loren J. Rittle <ljrittle@acm.org>
17814
17815 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
17816 the old, removed AAA_standards fix.
17817 * fixinc/fixincl.x: Rebuilt.
17818
fdae5767
HPN
178192002-01-28 Hans-Peter Nilsson <hp@axis.com>
17820
17821 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
17822 atexit call in crtbegin, hooked in after call to frame_dummy;
17823 register EH before registering __fini__start.
17824
2a2ecb63
AH
178252002-01-28 Aldy Hernandez <aldyh@redhat.com>
17826
17827 * config/rs6000/altivec.h: Remove spurious semicolons.
17828
8ed43adf
KH
178292002-01-27 Kazu Hirata <kazu@hxi.com>
17830
17831 * config/h8300/h8300.md: Replace dead bit extraction patterns
17832 with ones that work.
17833
917afb0c
RK
17834Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17835
17836 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
17837 if not STRICT_ALIGNMENT.
17838 * rtl.h (MEM_ALIGN): Likewise.
17839
f70a54cb
CR
178402002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
17841
17842 * doc/invoke.texi (-fdump-translation-unit): Revert this
17843 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
17844
d8fd4914
KH
178452002-01-27 Kazu Hirata <kazu@hxi.com>
17846
17847 * config/h8300/h8300.md (define_constants): New.
17848 (anonymous patterns) Use defined constants appropriately.
17849
15e0e275
KH
178502002-01-27 Kazu Hirata <kazu@hxi.com>
17851
17852 * config/h8300/h8300.c (function_arg): Remove redundant code.
17853
37a0f8a5
RH
178542002-01-26 Richard Henderson <rth@redhat.com>
17855
17856 * sched-deps.c (reg_pending_uses_head): New.
17857 (reg_pending_barrier): Rename from reg_pending_sets_all.
17858 (find_insn_list): Don't mark inline.
17859 (find_insn_mem_list): Remove.
17860 (add_dependence_list, add_dependence_list_and_free): New.
17861 (flush_pending_lists): Replace only_write param with separate
17862 for_read and for_write parameters. Update all callers. Use
17863 add_dependence_list_and_free.
17864 (sched_analyze_1): Do not add reg dependencies here; just set
17865 the pending bits. Use add_dependence_list.
17866 (sched_analyze_2): Likewise.
17867 (sched_analyze_insn): Replace schedule_barrier_found with
17868 reg_pending_barrier. Add all dependencies for pending reg
17869 uses, sets, and clobbers.
17870 (sched_analyze): Don't add reg dependencies for calls, just
17871 set pending bits. Use regs_invalidated_by_call. Treat
17872 sched_before_next_call as a normal list, not a fake insn.
17873 (init_deps): No funny init for sched_before_next_call.
17874 (free_deps): Free pending mems lists. Don't zero reg_last.
17875 (init_deps_global): Init reg_pending_uses.
17876 (finish_deps_global): Free it.
17877 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
17878 (find_insn_mem_list): Remove.
17879 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
17880 (propagate_deps): Use them. Zero temp mem lists.
17881
cea3bd3e
RH
178822002-01-26 Richard Henderson <rth@redhat.com>
17883
17884 * Makefile.in (CRTSTUFF_CFLAGS): New.
17885 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
17886 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
17887 crtstuff.c instead of alpha assembly version.
17888 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
17889 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
17890 not FORCE_{INIT,FINI}_SECTION_ALIGN.
17891 (__do_global_dtors_aux): Mark used.
17892 (frame_dummy, __do_global_ctors_aux): Mark used.
17893 (fini_dummy, init_dummy): Remove.
17894
17895 * config/alpha/crtbegin.asm: Remove file.
17896 * config/alpha/crtend.asm: Remove file.
17897 * config/alpha/t-crtbe: Remove file.
17898 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
17899 (LINK_EH_SPEC): New.
17900
17901 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
17902 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
17903 calling constructors.
17904 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
17905
17906 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
17907 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
17908 CRT_END_INIT_DUMMY hack.
17909 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
17910 FORCE_{INIT,FINI}_SECTION_ALIGN.
17911
17912 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
17913 FORCE_{INIT,FINI}_SECTION_ALIGN.
17914
17915 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
17916 invocation sequence.
17917 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
17918
17919 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
17920 (FORCE_CODE_SECTION_ALIGN): New.
17921
60ffa0e5
RH
179222002-01-26 Richard Henderson <rth@redhat.com>
17923
17924 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
17925
61334ebe
RH
179262002-01-26 Richard Henderson <rth@redhat.com>
17927
17928 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
17929 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
17930
1d788fb6
KH
179312002-01-26 Kazu Hirata <kazu@hxi.com>
17932
17933 * config/h8300/h8300.md: Remove bit extraction patterns that
17934 cannot be triggered.
17935 Restrict each bit extraction pattern to a variant on which the
17936 pattern is tested.
17937
87611f88
JM
179382002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
17939
17940 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
17941
cd74ec59
KH
179422002-01-26 Kazu Hirata <kazu@hxi.com>
17943
17944 * config/h8300/h8300.md: Remove bit test patterns that cannot
17945 be triggered.
17946 Restrict each bit test pattern to a variant on which the
17947 pattern is tested.
17948
93051e0f
KG
179492002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17950
17951 * builtins.c (expand_builtin_strncat): Remove redundant check for
17952 INTEGER_CST.
17953
216c995f
DB
179542002-01-25 David O'Brien <obrien@FreeBSD.org>
17955
17956 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
17957 default setting.
17958 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
17959 existing setting.
17960
33c7f925
GK
179612002-01-25 Geoffrey Keating <geoffk@redhat.com>
17962
17963 * dbxout.c (dbxout_init): Use assemble_name rather than just
17964 stripping off the first character.
17965 (dbxout_source_file): Likewise.
17966
6cd444b4
DD
179672002-01-25 DJ Delorie <dj@redhat.com>
17968
17969 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
17970 using rtx_equal_p, not by comparing pointers.
17971
751551d5
SE
179722002-01-25 Steve Ellcey <sje@cup.hp.com>
17973
17974 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
17975 for PIC_OFFSET_TABLE_REGNUM.
17976 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
17977
e564e618
DB
179782002-01-25 David O'Brien <obrien@FreeBSD.org>
17979
17980 * config.gcc (x86_64-*-freebsd*): New target.
17981 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
17982 value.
17983 (i[34567]86-*-freebsd*): Don't include svr4.h.
17984 * config/i386/freebsd64.h: New file.
17985
ff3aaf17
DR
179862002-01-25 Douglas B Rupp <rupp@gnat.com>
17987
4857d29d
DR
17988 * config/alpha/x-vms (version): Make static.
17989
17990 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
17991 in previous checkin.
17992
ff3aaf17
DR
17993 * Makefile.in (install-headers-cp): New target.
17994 * config.gcc (alpha-dec-*vms*): Install headers with
17995 install-headers-cp
17996
48d79c43
JH
17997Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
17998
17999 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18000 avoid it's copies.
18001
995b5904
RK
18002Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18003
18004 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
18005 of compare_tree_int.
18006 (expand_builtin_strncat): Likewise.
18007 * c-decl.c (finish_struct): Use tree_low_cst.
18008 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
18009 * tree.c (compare_tree_int): Likewise.
18010
75eefe3f
UW
180112002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
18012
18013 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
18014 adjustments even if they are implemented by more than two insns.
18015
5a133afd
JH
18016Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
18017
995b5904 18018 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
18019 * df.h (struct ref): Kill B.
18020 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
18021
18022 * basic-block.h (PROP_EQUAL_NOTES): New flag.
18023 * flow.c (propagate_one_insn): Use it.
18024 (mark_used_regs): Handle NIL.
18025
ead39bdf 180262002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
18027
18028 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
18029 to help folding.
18030
01a2ccd0
DE
180312002-01-25 David Edelsohn <edelsohn@gnu.org>
18032
18033 * rs6000.md (prefetch): Make address V4SI mode so that the address
18034 is restricted to legitimate form for instruction.
18035
fd29f6ea
BW
180362002-01-25 Bob Wilson <bob.wilson@acm.org>
18037
18038 * doc/install.texi (xtensa-*-elf): New target.
18039 (xtensa-*-linux*): New target.
18040 * doc/contrib.texi: Add myself.
18041
55492b32
NC
180422002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
18043
18044 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
18045 purpose register to hold an SImode (or smaller) value.
18046
72c7c913
JJ
180472002-01-25 Jakub Jelinek <jakub@redhat.com>
18048
18049 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
18050 registry only.
18051 * crtstuff.c: Likewise.
18052
c4df4ceb
KH
180532002-01-25 Kazu Hirata <kazu@hxi.com>
18054
18055 * config/h8300/h8300.md (negation patterns): Tighten
18056 predicates to register_operand.
18057
70e531f5
AH
180582002-01-24 Aldy Hernandez <aldyh@redhat.com>
18059
3bca17dd
PK
18060 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
18061 mode, not Pmode.
70e531f5 18062
3bca17dd 18063 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 18064
a4f76ef9
AO
180652002-01-24 Alexandre Oliva <aoliva@redhat.com>
18066
18067 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
18068 modes.
18069
9bf25b09
KH
180702002-01-24 Kazu Hirata <kazu@hxi.com>
18071
18072 * config/h8300/h8300.c (print_operand): Remove support for
18073 operand character 'A'.
18074 * config/h8300/h8300.md (three anonymous patterns): Replace
18075 operand character 'A' with either 'T' or 'S'.
18076
974af6a5
KH
180772002-01-24 Kazu Hirata <kazu@hxi.com>
18078
18079 * config/h8300/h8300.c (print_operand): Remove support for
18080 operand character 'U'.
18081
7a5bb7b8
AP
180822002-01-24 Andris Pavenis <pavenis@latnet.lv>
18083
3bca17dd 18084 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 18085
92a4639e
NC
180862002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
18087
18088 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
18089 values to be assigned to the stack pointer.
18090
467cb2da
HP
180912002-01-14 Hartmut Penner <hpenner@de.ibm.com>
18092
bebc7e8b 18093 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
18094 to const_double needs to be done right for big-endian systems.
18095
3b6cb920
JM
180962002-01-24 Jason Merrill <jason@redhat.com>
18097
b08dd119 18098 PR c++/2432
3b6cb920
JM
18099 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
18100 to can_throw_internal.
18101
f3077311
RH
181022002-01-23 Richard Henderson <rth@redhat.com>
18103
18104 * fold-const.c (fold): Change UINT_MAX test to check vs precision
18105 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
18106
e1d71275
AO
181072002-01-24 Alexandre Oliva <aoliva@redhat.com>
18108
18109 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
18110 (symGOT2reg): Use them, then set as GOT value as unchanging.
18111 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
18112 as a temporary, if possible.
18113 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
18114 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
18115
dc271dbe
KH
181162002-01-23 Kazu Hirata <kazu@hxi.com>
18117
18118 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
18119 accept to accept 0x80 as operands[2].
18120
1a9017f9
AO
181212002-01-24 Alexandre Oliva <aoliva@redhat.com>
18122
18123 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
18124
6932f033
RH
181252002-01-23 Richard Henderson <rth@redhat.com>
18126
18127 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
18128
709619d9
AH
181292002-01-23 Aldy Hernandez <aldyh@redhat.com>
18130
3bca17dd
PK
18131 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
18132 (parmlist_or_identifiers_1): Verify that only a parmlist follows
18133 an attribute.
709619d9 18134
3d709fd3
RH
181352002-01-23 Richard Henderson <rth@redhat.com>
18136
18137 * expr.c (move_by_pieces_1): Extend size before negation.
18138
88a446c0
RH
18139 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
18140 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
18141 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
18142 * config/m68k/t-m68kelf: Likewise.
18143
03984308
BW
181442002-01-23 Bob Wilson <bob.wilson@acm.org>
18145
18146 * config/xtensa/elf.h: New file.
18147 * config/xtensa/lib1funcs.asm: New file.
18148 * config/xtensa/lib2funcs.S: New file.
18149 * config/xtensa/linux.h: New file.
18150 * config/xtensa/t-xtensa: New file.
18151 * config/xtensa/xtensa-config.h: New file.
18152 * config/xtensa/xtensa-protos.h: New file.
18153 * config/xtensa/xtensa.c: New file.
18154 * config/xtensa/xtensa.h: New file.
18155 * config/xtensa/xtensa.md: New file.
18156 * config.gcc (xtensa-*-elf*): New target.
18157 (xtensa-*-linux*): New target.
18158 * cse.c (canon_hash): Compare rtx pointers instead of register
18159 numbers. This is required for the Xtensa port.
18160 * integrate.c (copy_insn_list): Handle case where the static
18161 chain is in memory and the memory address has to be copied to
18162 a register.
18163 * doc/invoke.texi (Option Summary): Add Xtensa options.
18164 (Xtensa Options): New node.
18165 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
18166
c3d5c3fa
ZW
181672002-01-23 Zack Weinberg <zack@codesourcery.com>
18168
a63bea75
ZW
18169 * diagnostic.c (internal_error): Do ICE suppression only
18170 when ENABLE_CHECKING is not defined.
18171
c3d5c3fa
ZW
18172 * c-typeck.c (require_complete_type): Return error_mark_node
18173 if type is error_mark_node.
18174
1398974c
JJ
181752002-01-23 Janis Johnson <janis187@us.ibm.com>
18176
18177 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
18178 -Os and issue a warning.
18179
807633e5
ZW
181802002-01-23 Zack Weinberg <zack@codesourcery.com>
18181
18182 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
18183 current (lack of) need for host configuration by hand.
18184
18185 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
18186 references. Documentation of some target macros moved from
18187 hostconfig.texi to tm.texi.
18188
cf8002d0
WC
181892002-01-23 Will Cohen <wcohen@redhat.com>
18190
18191 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
18192 defined.
18193
d1e76310
KH
181942002-01-23 Kazu Hirata <kazu@hxi.com>
18195
18196 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
18197 operand[3].
18198
b2115575
JM
181992002-01-23 Jason Merrill <jason@redhat.com>
18200
f893c16e
JM
18201 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
18202
b2115575
JM
18203 * function.c (assign_parms): Don't put args of inline functions
18204 into registers when not optimizing.
18205
6bacc7b0
NC
182062002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
18207
18208 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
18209 (prologue_use): New pattern.
18210 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
18211 preference to gen_rtx_USE.
18212 (thumb_expand_prologue): Use gen_prologue_use in preference to
18213 gen_rtx_USE.
18214 (thumb_expand_epilogue): Use gen_prologue_use in preference to
18215 gen_rtx_USE.
18216
a415f7bc
HPN
182172002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
18218
18219 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
18220
5372b3fb
NB
182212002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
18222
18223 PR c/3504
18224 * doc/extend.texi: Correct documentation of __alignof__.
18225
bd571ffc
ZW
182262002-01-22 Zack Weinberg <zack@codesourcery.com>
18227
18228 * params.h: Rename arguments of DEFPARAM so that it will be
18229 recognized as a translation keyword.
18230
333c8841
AH
182312002-01-22 Aldy Hernandez <aldyh@redhat.com>
18232
bd571ffc
ZW
18233 * extend.texi: Document altivec functions.
18234 Fix N-bit adjectives in X86 builtin documentation.
333c8841 18235
38979c65
AO
182362002-01-22 Alexandre Oliva <aoliva@redhat.com>
18237
18238 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
18239 auto_inc_dec values.
18240
7458a9f0
RE
182412002-01-22 Richard Earnshaw <rearnsha@arm.com>
18242
18243 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
18244 after backslash.
18245 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
18246
129bd0c4
AO
182472002-01-22 Alexandre Oliva <aoliva@redhat.com>
18248
18249 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
18250
8b9b74a9
RH
182512002-01-22 Richard Henderson <rth@redhat.com>
18252
18253 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
18254 copy_insn not copy_rtx.
18255
d0c9db30
AM
182562002-01-23 Alan Modra <amodra@bigpond.net.au>
18257
18258 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
18259 "nonzero" as that might add "1" bits. Ensure "constop" is
18260 properly sign extened.
18261 (force_to_mode): Tweak for sign extended constop.
18262
1e7e480e
RH
182632002-01-22 Richard Henderson <rth@redhat.com>
18264
18265 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
18266 for_each_rtx instead of assuming we're already looking at the MEM.
18267 (split_small_symbolic_mem_operand): Likewise.
18268 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18269 * config/alpha/alpha.md (small symbolic memory splitters): Update.
18270
182712002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
18272
18273 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
18274 sequence number for the literal.
18275 (divmoddi_internal_er): Likewise.
18276
b7f2fb96
CR
182772002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18278
18279 PR java/4972
18280 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
18281 in LIBICONV variable.
18282 * configure: Regenerated.
18283
f66a0046
KW
182842002-01-22 Krister Walfridsson <cato@df.lth.se>
18285
18286 * dependence.c (build_def_use): Remove array_idx.
18287
e3b0efd1
KW
18288 * dwarfout.c (last_filename): Remove.
18289 (output_compile_unit_die): Remove last_filename.
18290
d8086cbb
RS
182912002-01-22 Roger Sayle <roger@eyesopen.com>
18292 Richard Henderson <rth@redhat.com>
18293
18294 PR opt/3640
18295 * fold-const.c (fold): Optimize unsigned comparisons against
18296 UINT_MAX (and similar unsigned constants).
18297
e8d52ba0
JJ
182982002-01-22 Janis Johnson <janis187@us.ibm.com>
18299
d8086cbb 18300 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 18301 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 18302 against the predicate.
11303d15 18303
e8d52ba0
JJ
18304 PR target/5379
18305 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
18306 for the address operand.
18307
cc7b420e
RH
183082002-01-22 Richard Henderson <rth@redhat.com>
18309
18310 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
18311
816e265a
CR
183122002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18313
18314 PR other/5450
cc7b420e
RH
18315 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
18316 preprocessor flags.
816e265a 18317
7c884404
JT
183182002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
18319
18320 * config.gcc (x86_64-*-netbsd*): New target.
18321 * config/i386/netbsd64.h: New file.
18322
2b672c08
AH
183232002-01-22 Aldy Hernandez <aldyh@redhat.com>
18324
d8086cbb 18325 * regrename.c (kill_value): Fix typo.
2b672c08
AH
18326
183272002-01-22 Aldy Hernandez <aldyh@redhat.com>
18328
d8086cbb 18329 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 18330
d8086cbb 18331 * config/rs6000/rs6000.h: Same.
2b672c08 18332
d8086cbb
RS
18333 * function.c (instantiate_virtual_regs): Remove
18334 STARTING_FRAME_PHASE.
18335 (assign_stack_local_1): Same.
18336 Calculate frame phase.
2b672c08 18337
4b02997f
NC
183382002-01-22 Nick Clifton <nickc@redhat.com>
18339
18340 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
18341 variable declaration to outer scope in order to simplify
18342 future extensions.
18343 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
18344 arm_hard_regno_mode_ok.
18345 * config/arm/arm-protos.h: Add a prototype for
18346 arm_hard_regno_mode_ok.
18347 * config/arm/arm.c (soft_df_operand): Remove now redundant
18348 check for DImode values using IP_REGNUM.
18349 (nonimmediate_soft_df_operand): Remove now redundant check for
18350 DImode values using IP_REGNUM.
18351 (arm_hard_regno_mode_ok): New function. New check: make sure
18352 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
18353
18354 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
18355 note with a USE.
18356 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
18357
8a827ab2
JM
183582002-01-22 Jason Merrill <jason@redhat.com>
18359
18360 * c-semantics.c (genrtl_compound_stmt): Only check nesting
18361 consistency if this COMPOUND_STMT is scoped.
18362
cf403648
KH
183632002-01-22 Kazu Hirata <kazu@hxi.com>
18364
18365 * predict.c: Fix formatting.
18366 * print-tree.c: Likewise.
18367 * protoize.c: Likewise.
18368 * real.h: Likewise.
18369 * rtl.h: Likewise.
18370 * sbitmap.h: Likewise.
18371 * scan.c: Likewise.
18372 * sched-deps.c: Likewise.
18373 * sched-vis.c: Likewise.
18374 * sdbout.c: Likewise.
18375 * sibcall.c: Likewise.
18376 * ssa.c: Likewise.
18377 * ssa-ccp.c: Likewise.
18378 * ssa-dce.c: Likewise.
18379 * stmt.c: Likewise.
18380 * stor-layout.c: Likewise.
18381 * system.h: Likewise.
18382
aea9695c
RK
18383Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18384
a8765ae7
RK
18385 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
18386 if fits in bounds of base type.
18387
aea9695c
RK
18388 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
18389 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
18390 (add_bound_info, default): If can't find a context, make a
18391 SAVE_EXPR.
18392 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
18393
58bf601b
HPN
183942002-01-22 Hans-Peter Nilsson <hp@axis.com>
18395
18396 * c-typeck.c (parser_build_binary_op): If result from
18397 build_binary_op is ERROR_MARK just return error_mark_node without
18398 further processing.
18399
f982f805
JT
184002002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
18401
18402 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
18403 Split a.out-specific bits into...
18404 * config/netbsd-aout.h: ...this.
18405 * config/netbsd-elf.h: New file.
18406 * config/alpha/netbsd-elf.h: Remove.
18407 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
18408 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 18409 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
18410 (ENDFILE_SPEC): Likewise.
18411 (LINK_SPEC): Likewise.
18412 (CPP_SPEC): Likewise.
18413 (ASM_SPEC): Likewise.
18414 (LIB_SPEC): Likewise.
18415 (SWITCH_TAKES_ARG): Likewise.
18416 (TARGET_MEM_FUNCTIONS): Likewise.
18417 (CPP_PREDEFINES): Redefine.
18418 (ASM_FINAL_SPEC): Remove redefinition.
18419 (ASM_COMMENT_START): Redefine.
18420 (FUNCTION_PROFILER): Define.
18421 (TARGET_VERSION): Redefine.
18422 Comment and formatting cleanup.
18423 * config/i386/netbsd.h: Include <netbsd-aout.h>.
18424 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
18425 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
18426 big- or little-endian.
18427 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
18428 * config.gcc (*-*-netbsd*): Add definitions common to all
18429 NetBSD configs.
18430 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
18431 gnu_ld definitions. Add netbsd-elf.h to and remove
18432 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
18433 tmake_file, and don't lose previous tmake_file contents.
18434 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
18435 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
18436 gnu_ld definitions. Add netbsd-elf.h to tm_file.
18437 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
18438 (mipsel-*-netbsd*): Rename this to...
18439 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
18440 mips/little.h to tm_file for mips*el-*.
18441 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
18442 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
18443 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
18444
2e396476
JDA
184452002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
18446
18447 * pa-protos.h (reg_before_reload_operand): New function prototype.
18448 * pa.c (reg_before_reload_operand): New function implementation.
18449 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
18450 contraints to "*m".
18451
3b5708e7
FS
184522002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18453
18454 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
18455
85e79f96
JDA
184562002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
18457
18458 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
18459 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
18460 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
18461 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
18462 (ENDFILE_SPEC): Undefine.
18463 (STARTFILE_SPEC): Redefine for PA.
18464
38abadee
FS
184652002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18466
18467 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
18468
94f1d97c
DJ
184692002-01-21 Daniel Jacobowitz <drow@mvista.com>
18470
18471 * config.gcc: Add entries to supported PowerPC --with-cpu
18472 types.
18473
0333394e
JJ
184742002-01-21 Jakub Jelinek <jakub@redhat.com>
18475
18476 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
18477 true for 64-bit mode only SSE registers in 32-bit mode.
18478
e9d1b155
KH
184792002-01-21 Kazu Hirata <kazu@hxi.com>
18480
18481 * unwind-dw2.c: Fix formatting.
18482 * unwind-dw2-fde.c: Likewise.
18483 * unwind-dw2-fde.h: Likewise.
18484 * unwind-pe.h: Likewise.
18485 * varasm.c: Likewise.
18486 * varray.h: Likewise.
18487
07338cf8
HPN
184882002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
18489
18490 Remove workaround for register stack overwrite bug in mmix.
18491 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
18492 support for TARGET_REG_STACK_FILL_BUG.
18493 * config/mmix/mmix.h: Remove member has_call_without_parameters.
18494 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
18495 Delete.
18496 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
18497 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
18498 -mno-reg-stack-fill-bug-workaround.
18499 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
18500 machine member has_call_without_parameters.
18501 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
18502 -mreg-stack-fill-bug-workaround and
18503 -mno-reg-stack-fill-bug-workaround.
18504 (MMIX Options): Ditto.
18505
7192cbf1
KH
185062002-01-21 Kazu Hirata <kazu@hxi.com>
18507
18508 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
18509 as appropriate.
18510 Remove redundant code.
18511
d1552d7b
JM
185122002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
18513
18514 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
18515 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
18516 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
18517 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
18518 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
18519 out target macro definitions and non-target-specific comments
18520 mostly taken from old versions of the manual.
18521
ed168e45
KH
185222002-01-20 Kazu Hirata <kazu@hxi.com>
18523
18524 * config/h8300/h8300.h: Fix comment formatting.
18525 * config/ia64/aix.h: Likewise.
18526 * config/ia64/ia64-protos.h: Likewise.
18527 * config/ia64/ia64.c: Likewise.
18528 * config/ia64/ia64.h: Likewise.
18529 * config/ia64/ia64intrin.h: Likewise.
18530 * config/ia64/linux.h: Likewise.
18531 * config/ia64/unwind-aix.c: Likewise.
18532 * config/ia64/unwind-ia64.c: Likewise.
18533
005e3e05
KH
185342002-01-20 Kazu Hirata <kazu@hxi.com>
18535
18536 * config/h8300/h8300.c: Revise comments about shift code.
18537
64bead4c
KH
185382002-01-20 Kazu Hirata <kazu@hxi.com>
18539
18540 * config/h8300/h8300.c (function_arg): Update a comment.
18541
ed863595
KH
185422002-01-20 Kazu Hirata <kazu@hxi.com>
18543
18544 * config/h8300/h8300.md: Update the comments at the beginning
18545 of the file.
18546
5904dc87
KH
185472002-01-20 Kazu Hirata <kazu@hxi.com>
18548
18549 * config/i370/i370.c: Fix comment formatting.
18550 * config/i370/i370.h: Likewise.
18551 * config/i370/i370.md: Likewise.
18552 * config/i370/linux.h: Likewise.
18553
9702143f
RK
18554Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18555
cbafacd1
RK
18556 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
18557
9702143f
RK
18558 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
18559 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
18560 in incomplete case.
18561
6b6996b8
GS
185622002-01-20 Graham Stott <grahams@redhat.com>
18563
18564 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
18565
eab854f6
JDA
185662002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
18567
18568 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
18569
5b029315
TR
185702002-01-19 Tom Rix <trix@redhat.com>
18571
18572 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
18573
1d690052
AH
185742002-01-18 Aldy Hernandez <aldyh@redhat.com>
18575
d8086cbb 18576 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 18577
d8086cbb
RS
18578 * function.c (assign_stack_local_1): Adjust x_frame_offset with
18579 STARTING_FRAME_PHASE.
18580 (STARTING_FRAME_PHASE): New.
18581 (instantiate_virtual_regs): Check saneness of
18582 STARTING_FRAME_PHASE.
1d690052 18583
d8086cbb 18584 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 18585
4dd8c093
AO
185862002-01-19 Alexandre Oliva <aoliva@redhat.com>
18587
18588 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
18589
6f2a28d7
CR
185902002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
18591
18592 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
18593 be used for bootstrapping GCC 3.0.
18594
8763a465
KH
185952002-01-18 Kazu Hirata <kazu@hxi.com>
18596
18597 * config/h8300/h8300.md: Fix an insn length.
18598
3ef42a0c
KH
185992002-01-18 Kazu Hirata <kazu@hxi.com>
18600
18601 * bitmap.h: Fix comment formatting.
18602 * combine.c: Likewise.
18603 * cppfiles.c: Likewise.
18604 * c-pragma.h: Likewise.
18605 * c-typeck.c: Likewise.
18606 * df.c: Likewise.
18607 * dwarf2out.c: Likewise.
18608 * function.c: Likewise.
18609 * gcc.c: Likewise.
18610 * genattrtab.c: Likewise.
18611 * gthr-win32.h: Likewise.
18612 * haifa-sched.c: Likewise.
18613 * predict.c: Likewise.
18614 * rtlanal.c: Likewise.
18615 * rtl.h: Likewise.
18616 * unwind-dw2-fde.h: Likewise.
18617 * unwind-pe.h: Likewise.
18618 * vmsdbgout.c: Likewise.
18619
dd4dc3cd
RK
18620Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18621
18622 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
18623 if type_required and passed decl.
18624
5fb4cf24
AH
186252002-01-17 Aldy Hernandez <aldyh@redhat.com>
18626
d8086cbb
RS
18627 * config.gcc (cpu_type): Include altivec.h in powerpc
18628 extra_headers.
18629 Same for darwin.
5fb4cf24 18630
d8086cbb 18631 * config/rs6000/altivec.h: New.
5fb4cf24 18632
2705baf5
DE
186332002-01-17 David Edelsohn <edelsohn@gnu.org>
18634
18635 * doc/install.texi (*-ibm-aix*): Update assembler and exception
18636 handling information.
18637 * doc/trouble.texi (Interoperation): Add libstdc++ information
18638 for AIX.
18639 (Misunderstandings): Add template instantiation and static template
18640 member information for AIX.
18641
dbd680e1
JM
186422002-01-17 Jason Merrill <jason@redhat.com>
18643
821adc5e
JM
18644 * dbxout.c (dbxout_type): Support const and volatile.
18645
dbd680e1
JM
18646 * except.c (add_partial_entry): Remove backwards compatibility code.
18647 (end_protect_partials): Likewise.
18648
d0e82870
JJ
186492002-01-17 Jakub Jelinek <jakub@redhat.com>
18650
18651 * config/ia64/ia64.md (prologue_use): New.
18652 * config/ia64/ia64.c (ia64_expand_prologue): Use
18653 gen_prologue_use instead of gen_rtx_USE.
18654 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
18655 as CODE_FOR_pred_rel_mutex.
18656 (ia64_sched_reorder2): Likewise.
18657
f9f45c65
EC
186582002-01-16 Eric Christopher <echristo@redhat.com>
18659
18660 * config/mips/r3900.h: Reformat.
18661 (SUBTARGET_CPP_SIZE_SPEC): Remove.
18662 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
18663 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
18664 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
18665 * config/mips/t-elf: Remove mips3 multilib.
18666
c66c8b0e
L
186672002-01-16 H.J. Lu <hjl@gnu.org>
18668
18669 * config/mips/linux.h: Include "mips/abi64.h".
18670
5f083b72
L
186712002-01-16 H.J. Lu <hjl@gnu.org>
18672
18673 * config/mips/t-linux: New.
18674
18675 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
18676
18677 * config/mips/linux.h: Don't include "gofast.h".
18678 (INIT_SUBTARGET_OPTABS): Removed.
18679
af3c90a6
KH
186802002-01-16 Kazu Hirata <kazu@hxi.com>
18681
18682 * config/h8300/h8300-protos.h: Replace emit_a_shift with
18683 output_a_shift.
18684 * config/h8300/h8300.c: Likewise.
18685 * config/h8300/h8300.md: Likewise.
18686
a1bf0a16
KH
186872002-01-16 Kazu Hirata <kazu@hxi.com>
18688
18689 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
18690 spaces after an opcode name.
18691 (pushqi1_h8300hs): Likewise.
18692 (pushhi1_h8300hs): Likewise.
18693
88ab0d1c
KH
186942002-01-16 Kazu Hirata <kazu@hxi.com>
18695
18696 * doc/extend.texi: Replace "option" with "attribute"
18697 appropriately.
18698
51c561e3
JJ
186992002-01-16 Jakub Jelinek <jakub@redhat.com>
18700
18701 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
18702 (and:DI () (const_int -8)).
18703 (split_small_symbolic_mem_operand): Split
18704 (mem (and:DI () (const_int -8)).
18705
b8c1a6b8
JJ
187062002-01-16 Jakub Jelinek <jakub@redhat.com>
18707
18708 PR target/5309:
d8086cbb 18709 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
18710 same way as TYPE_IMUL.
18711 (ultrasparc_sched_reorder): Likewise.
18712 * config/sparc/sparc.md (type): Add comment to update
18713 ultrasparc_sched_reorder when making changes.
18714
1e4e4df2
KH
187152002-01-16 Kazu Hirata <kazu@hxi.com>
18716
18717 * doc/invoke.texi: Change the dump file name of block
18718 reordering pass from 28.bbro to 29.bbro.
18719 Mention -dk option.
18720
14d920c0
JH
18721Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
18722
18723 * i386.md (minsf splitter): Fix pasto.
18724
2e99323f
NC
187252002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
18726
18727 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
18728 to frame pointer initialisation instruction.
18729 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
18730 initialisation instruction.
ab8081c1
NC
18731 (soft_df_operand): Do not accept the IP register.
18732 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 18733
c4031a04
JJ
187342002-01-16 Jakub Jelinek <jakub@redhat.com>
18735
18736 PR target/5357:
18737 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
18738 MASK_V8 being both set.
18739
44b8152b
UW
187402002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
18741
18742 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
18743 insn for GOT register; add REG_MAYBE_DEAD notes instead.
18744 config/s390/s390.md (call, call_value): Add GOT register to
18745 CALL_INSN_FUNCTION_USAGE where needed.
18746 (call_exp, call_value_exp): New.
18747
1d6e90ac
NC
187482002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
18749
18750 * config/arm/arm.c: General formatting tidy up.
18751
187522002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
18753
18754 * calls.c (try_to_integrate): Use "(size_t)" intermediate
18755 cast and when casting an integer literal to "rtx" pointer.
18756 (expand_call): Likewise.
18757 * flow.c (try_pre_increment): Likewise.
18758 (find_use_as_address): Likewise.
18759 * integrate.c (expand_iline_function): Likewise.
18760 * regmove.c (try_auto_increment): Likewise.
18761
1d6e90ac 187622002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
18763
18764 * sched-rgn.c (passed): Use sbitmap_free.
18765 (header): Likewise.
18766 (inner): Likewise.
18767 (in_queue): Likewise.
18768 (in_stack): Likewise.
18769
31fce3c4
EC
187702002-01-15 Eric Christopher <echristo@redhat.com>
18771
18772 * flow.c (propagate_one_insn): Change to use fatal_insn.
18773
c99d986a
KH
187742002-01-15 Kazu Hirata <kazu@hxi.com>
18775
18776 * expmed.c (extract_fixed_bit_field): Remove unused code.
18777 * system.h: Poison SLOW_ZERO_EXTEND.
18778 * doc/tm.texi: Remove.
18779 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
18780 * config/arm/arm.h: Likewise.
18781 * config/avr/avr.h: Likewise.
18782 * config/clipper/clipper.h: Likewise.
18783 * config/convex/convex.h: Likewise.
18784 * config/d30v/d30v.h: Likewise.
18785 * config/dsp16xx/dsp16xx.h: Likewise.
18786 * config/elxsi/elxsi.h: Likewise.
18787 * config/fr30/fr30.h: Likewise.
18788 * config/h8300/h8300.h: Likewise.
18789 * config/i370/i370.h: Likewise.
18790 * config/i386/i386.h: Likewise.
18791 * config/m68k/m68k.h: Likewise.
18792 * config/mips/mips.h: Likewise.
18793 * config/ns32k/ns32k.h: Likewise.
18794 * config/pdp11/pdp11.h: Likewise.
18795 * config/pj/pj.h: Likewise.
18796 * config/s390/s390.h: Likewise.
18797 * config/sh/sh.h: Likewise.
18798 * config/stormy16/stormy16.h: Likewise.
18799 * config/v850/v850.h: Likewise.
18800 * config/vax/vax.h: Likewise.
18801 * config/we32k/we32k.h: Likewise.
18802
acfab996
AH
188032002-01-15 Aldy Hernandez <aldyh@redhat.com>
18804
d8086cbb
RS
18805 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
18806 (altivec_lvsl): Change constraint to b.
18807 (altivec_lvsr): Same.
18808 (altivec_lvebx): Same.
18809 (altivec_lvehx): Same.
18810 (altivec_lvewx): Same.
18811 (altivec_lvxl): Same.
18812 (altivec_lvx): Same.
18813 (altivec_stvx): Add parallel.
18814 (altivec_stvxl): Same.
18815 (altivec_stvehx): Same.
18816 (altivec_stvebx): Same.
18817 (altivec_stvebx): Same.
acfab996 18818
5e505bc9
AH
188192002-01-15 Aldy Hernandez <aldyh@redhat.com>
18820
d8086cbb 18821 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 18822
d8086cbb 18823 * config/rs6000/altivec.h: Delete.
5e505bc9 18824
d8086cbb 18825 * config/rs6000/altivec-defs.h: Add.
5e505bc9 18826
5c41fdfb
JDA
188272002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18828
18829 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
18830 and UMOD modes.
18831
18832 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
18833 less than or equal to eight bytes.
18834
18835 * vax.md (andsi3): Remove constraints and change SET destination
18836 operand type to nonimmediate_operand.
18837 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
18838 when it is a CONST_INT.
18839
de097a2d
JM
188402002-01-15 Jason Merrill <jason@redhat.com>
18841
18842 * c-common.def (FILE_STMT): New code.
18843 * c-common.c (statement_code_p): It's a statement.
18844 * c-common.h (stmt_tree_s): Add x_last_filename.
18845 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
18846 (last_expr_filename): New macro.
18847 * c-semantics.c (begin_stmt_tree): Initialize it.
18848 (add_stmt): If the filename changed, also insert a
18849 FILE_STMT.
18850 (expand_stmt): Handle seeing one.
18851
4a913dd6
EC
188522002-01-15 Eric Christopher <echristo@redhat.com>
18853
18854 * flow.c (propagate_one_insn): Add error message and print out
18855 insn for debugging.
18856
006946e4
JM
188572002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
18858
18859 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
18860 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
18861 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
18862 TRAMPOLINE_ALIGNMENT.
18863 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
18864 to be in bits.
18865 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
18866 PCC_BITFIELD_TYPE_MATTERS.
18867 * config/interix.h (STDC_VALUE): Remove. Use
18868 STDC_0_IN_SYSTEM_HEADERS.
18869 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
18870 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
18871 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
18872
751a1458
CR
188732002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
18874
18875 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
18876 not work on this platform currently.
18877
57771fe8
JM
188782002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
18879
18880 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
18881 readonly_warning in _().
18882
0e83ceb1 188832002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 18884
0e83ceb1 18885 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 18886
8e2e89f7
KH
188872002-01-15 Kazu Hirata <kazu@hxi.com>
18888
0e83ceb1
DR
18889 * config/h8300/h8300.c (print_operand): Remove support for
18890 unused operand characters.
18891
8e2e89f7
KH
18892 * read-rtl.c: Fix formatting.
18893 * real.c: Likewise.
18894 * recog.c: Likewise.
18895 * regclass.c: Likewise.
18896 * regmove.c: Likewise.
18897 * reg-stack.c: Likewise.
18898 * reload1.c: Likewise.
18899 * rtlanal.c: Likewise.
18900
b531087a
KH
189012002-01-15 Kazu Hirata <kazu@hxi.com>
18902
18903 * config/i386/i386.c: Fix formatting.
18904
7c94ce7f
JJ
189052002-01-15 Jakub Jelinek <jakub@redhat.com>
18906
18907 * c-typeck.c (process_init_element): Don't save_expr
18908 COMPOUND_LITERAL_EXPR if just its initializer will be used.
18909
6041bf2f
DE
189102002-01-15 David Edelsohn <edelsohn@gnu.org>
18911
18912 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
18913 emit optional traceback table if optimize_size or TARGET_ELF.
18914 * config/rs6000/rs6000.md (prefetch): New.
18915
8559c8c0
AJ
189162002-01-15 Andreas Jaeger <aj@suse.de>
18917
18918 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
18919
70f122f2
KH
189202002-01-15 Kazu Hirata <kazu@hxi.com>
18921
18922 * mips-tfile.c: Fix formatting.
18923
6a7b4ca6
JH
18924Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
18925
18926 * unroll.c (final_reg_note_copy): Fix previous commit.
18927
e7afe229
KH
189282002-01-14 Kazu Hirata <kazu@hxi.com>
18929
18930 * config/h8300/h8300-protos.h: Remove the prototype for
18931 eq_operator.
18932 * config/h8300/h8300.c (eq_operator): Remove.
18933
7d378549
RH
189342002-01-14 Richard Henderson <rth@redhat.com>
18935
18936 * config/i386/i386.md (prefetch): Tidy.
18937 (prefetch_3dnow): Fix locality operand.
18938
ab093b81
RH
189392002-01-14 Richard Henderson <rth@redhat.com>
18940
18941 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
18942 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
18943
d300f51f
HPN
189442002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
18945
18946 * reload1.c (reload_combine): Pass reg_sum replacement through
18947 copy_rtx in loop performing multiple changes.
18948
655dd289
JJ
189492002-01-14 Jakub Jelinek <jakub@redhat.com>
18950
18951 * except.c (remove_unreachable_regions): New.
18952 (free_eh_status): Clear exception_handler_labels.
18953 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
18954 (find_exception_handler_labels): Don't add the same label more than
18955 once.
18956 (remove_exception_handler_label): Don't die if
18957 find_exception_handler_labels hasn't been called for the current
18958 function yet.
18959
1fba46a7
JH
18960Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
18961
18962 * toplev.c (rest_of_compilation): Rebuild jump labels after
18963 gcse.
18964
0975678f
JM
189652002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
18966
18967 * doc/extend.texi: Move documentation of X86 built-in functions
18968 here.
18969 * doc/invoke.texi: From here.
18970 * doc/sourcebuild.texi: Document location of documentation for
18971 machine built-in functions.
18972
969815c7
CF
189732002-01-13 Christopher Faylor <cgf@redhat.com>
18974
18975 * cppfiles.c (TEST_THRESHOLD): New macro.
18976 (SHOULD_MMAP): Ditto.
18977 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
18978 be used.
18979
494c950b
JH
18980Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
18981
18982 * unroll.c (final_reg_note_copy): Properly handle
18983 REG_LABEL
18984 (unroll_loops): Fix LOOP_CONDITION heuristics.
18985
69a0611f
GK
189862002-01-14 Geoffrey Keating <geoffk@redhat.com>
18987
18988 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
18989 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
18990
b90e45ae
JH
18991Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
18992
18993 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
18994 threaded loop.
18995
8377288b
TR
189962002-01-14 Tom Rix <trix@redhat.com>
18997
18998 * config/rs6000/rs6000.md: Fix typo with sradi.
18999
9f37ccb1
UW
190002002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
19001
19002 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19003 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
19004 (clrstrdi, clrstrsi): Adapt callers.
19005
19006 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
19007
8559c8c0 19008 (movti splitter): Never use register 0 as base register.
9f37ccb1 19009
6c2d03d0
HP
190102002-01-14 Hartmut Penner <hpenner@de.ibm.com>
19011
8559c8c0
AJ
19012 * combine.c (simplify_shift_const): Always generate new rtx
19013 for shift expression instead of reusing given expression.
6c2d03d0 19014
d3e98208
RK
19015Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19016
19017 * config/alpha/alpha.c (alpha_expand_mov): Don't call
19018 alpha_legitimize_address unless mode is Pmode.
19019
9f339dde
GK
190202002-01-13 Geoffrey Keating <geoffk@redhat.com>
19021
19022 * doc/md.texi (Modifiers): Document the '*' constraint for the
19023 user.
19024
19025 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
19026 * doc/extend.texi (Function Attributes): 'interrupt' is valid
19027 for xstormy16 too.
19028
02a10130
RH
190292002-01-13 Richard Henderson <rth@redhat.com>
19030
19031 * reload.c (find_reloads): Use a hard reg destination as reload reg
19032 for an input reload of the source.
19033
61d47787
GP
190342002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19035
19036 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
19037 more generic.
19038
f0df8029
DR
19039Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
19040
19041 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19042 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19043
d2a37256
DR
19044 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
19045
a9e8a5ee
RK
19046Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19047
19048 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
19049
bc06712d
TR
190502002-01-12 Tom Rix <trix@redhat.com>
19051
8559c8c0 19052 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
19053 TARGET_POWERPC64.
19054
7cbe9bb7
RH
190552002-01-12 Richard Henderson <rth@redhat.com>
19056
38b29e64
RH
19057 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
19058
58605ba0
RH
19059 * doc/invoke.texi: Update Alpha options.
19060
7cbe9bb7
RH
19061 * doc/invoke.texi: Update i386 built-in function lists.
19062
9d560860
JH
19063Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
19064
19065 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
19066 referencing outside.
19067
bb93b973
RK
19068Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19069
19070 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
19071 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
19072 offsets, and change line folding.
19073 * optabs.c (expand_binop): Remove warnings.
19074 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 19075
f9f6b7df
GS
190762002-01-12 Graham Stott <grahams@redhat.com>
19077
19078 * attribs.c (handle_deprecated_attribute): constify WHAT.
19079 * diagnostic.c (warn_deprecated_use): Add braces, fixes
19080 dangling else warning and constify WHAT.
19081 * except.h (struct function, struct inline_remap): Move
19082 struct tag forward defs before all prototypes.
19083 (duplicate_eh_regions): Whitespace.
19084
4a692617
NC
190852002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
19086
19087 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19088 MODE_BASE_REG_CLASS.
19089 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
19090
e37af218
RH
190912002-01-12 Richard Henderson <rth@redhat.com>
19092
19093 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
19094 (ix86_expand_vector_move): New.
19095 (bdesc_2arg): Remove andps, andnps, orps, xorps.
19096 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
19097 Remove old prefetch builtins. Special case the logicals removed above.
19098 (ix86_expand_builtin): Likewise.
19099 (safe_vector_operand): Use V4SFmode, not TImode.
19100 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
19101 (ix86_expand_timode_binop_builtin): New.
19102 * config/i386/i386-protos.h: Update.
19103 * config/i386/i386.h (enum ix86_builtins): Update.
19104 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
19105 Use ix86_expand_vector_move in vector move expanders.
19106 (movti_internal, movti_rex64): Add xorps alternative.
19107 (sse_clrv4sf): Rename and adjust from sse_clrti.
19108 (prefetch): Don't work so hard.
19109 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
19110 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
19111 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
19112
6f1a6c5b
RH
191132002-01-11 Richard Henderson <rth@redhat.com>
19114
19115 * config/i386/mmintrin.h: New file.
19116 * config/i386/xmmintrin.h: New file.
19117 * config.gcc (i?86-*-*): Add extra_headers.
19118 * simplify-rtx.c (simplify_unary_operation): Handle saturating
19119 truncation codes.
19120 (simplify_binary_operation): Handle saturating arithmetic codes.
19121 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
19122 not the lowpart subreg.
19123 (ix86_expand_builtin): Return a TImode dummy register instead of 0
19124 on error.
19125 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
19126
cdb574d3
MH
191272002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19128
19129 * conflict.c (conflict_graph_compute): Free regsets when finished.
19130 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 19131
cf11ac55
HB
191322002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19133
19134 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
19135 every where we allocate a register.
19136
76ac938b
MH
191372002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19138
19139 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
19140 * lcm.c (compute_earliest, compute_farthest): Likewise.
19141
a84b4898
JJ
191422002-01-11 Janis Johnson <janis187@us.ibm.com>
19143
19144 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
19145
aaef1c12
JJ
191462002-01-11 Janis Johnson <janis187@us.ibm.com>
19147
19148 * doc/rtl.texi (Insns): Fix 2 typos.
19149
5d22c1a5
JM
191502002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
19151
19152 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
19153 options. Use @table @gcctabopt for MMIX options. Add index
19154 entries for MMIX options. Start new paragraph with first
19155 heading of the machine-dependent options.
19156
3e92902c
CR
191572002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
19158
19159 PR other/5299
19160 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
19161 * combine.c (force_to_mode): Same.
19162 * reload1.c (clear_reload_reg_in_use): Same.
19163
96ae8197
NC
191642002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
19165
19166 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
19167 and 'subtargets'.
19168
9b780582
AJ
191692002-01-11 Andreas Jaeger <aj@suse.de>,
19170 Brad Lucier <lucier@math.purdue.edu>
19171
19172 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
19173 mcpu.
19174
12300dad
DR
19175Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
19176
19177 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
19178 Protect with IN_LIBGCC.
19179 (LINK_EH_SPEC): Add required trailing space.
19180
27511a9a
NP
19181Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
19182
9b780582 19183 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
19184 under the filename which contains them.
19185 (check_identifier, finish_decl_top_level,
19186 lookup_name_current_level_global, shadow_record_fields): Remove.
19187
4daeab16
AJ
191882002-01-11 Andreas Jaeger <aj@suse.de>
19189
19190 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
19191 march.
19192
40571d67
RH
191932002-01-10 Richard Henderson <rth@redhat.com>
19194
19195 * config/alpha/alpha.c (print_operand): Add 'J'.
19196 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
19197 new operand with the sequence number for the lituse. When splitting
19198 the insns, use gen_movdi_er_high_g and generate a sequence number.
19199 (gen_movdi_er_high_g): Print the sequence number if non-zero.
19200
6525c0e7
AH
192012002-01-10 Aldy Hernandez <aldyh@redhat.com>
19202
d8086cbb
RS
19203 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
19204 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
19205 stvxl.
19206 (altivec_expand_builtin): Same.
19207 (altivec_expand_stv_builtin): New.
19208
19209 * config/rs6000/rs6000.h (rs6000_builtins): Same.
19210
19211 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
19212 ("altivec_lvehx"): New.
19213 ("altivec_lvewx"): New.
19214 ("altivec_lvxl"): New.
19215 ("altivec_lvx"): New.
19216 ("altivec_stvx"): New.
19217 ("altivec_stvebx"): New.
19218 ("altivec_stvehx"): New.
19219 ("altivec_stvewx"): New.
19220 ("altivec_stvxl"): New.
6525c0e7 19221
cda94cbb
RH
192222002-01-10 Richard Henderson <rth@redhat.com>
19223
19224 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
19225 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
19226 care not to delete instructions twice.
19227
df2c9a44
ZW
192282002-01-10 Zack Weinberg <zack@codesourcery.com>
19229
19230 * toplev.c: Don't declare environ (it's not used anywhere).
19231 * configure.in: Don't check for declaration of environ.
19232 * config/i386/xm-mingw32.h: Don't #define environ.
19233 * config.in, configure: Regenerate.
19234
5dd8a9b1
ZW
192352002-01-10 Zack Weinberg <zack@codesourcery.com>
19236
19237 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
19238 * configure: Regenerate.
19239
19240 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
19241 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
19242 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
19243 alpha/xm-vms.h.
19244 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
19245 LIMITS_H_TEST here, not in m68k/x-next.
19246 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
19247 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
19248
19249 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
19250 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
19251 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
19252
19253 * config/i386/x-djgpp: Renamed i386/t-djgpp.
19254 * config/m88k/x-dolph: Renamed m88k/t-dolph.
19255 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
19256 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
19257 replacement of quadlib.asm with quadlib.c.
19258
19259 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
19260 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
19261 config/rs6000/xm-beos.h: Delete file.
19262
19263 * config.gcc: Update to match above changes.
19264
d10dd44c
KH
192652002-01-10 Kazu Hirata <kazu@hxi.com>
19266
19267 * config/h8300/h8300.h: Fix comment typos.
19268 * config/h8300/h8300.md: Likewise.
19269 * config/h8300/lib1funcs.asm: Likewise.
19270
04894c5a
DJ
192712002-01-10 Dale Johannesen <dalej@apple.com>
19272
19273 PR optimization/5269
19274 * unroll.c (precondition_loop_p): Make *increment be the correct
19275 sign when n_iterations known, to avoid confusing caller.
19276
adc9fe67
KH
192772002-01-10 Kazu Hirata <kazu@hxi.com>
19278
19279 * doc/extend.texi (deprecated): Fix a typo.
19280
b446e5a2
JH
19281Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
19282
19283 * basic-block.h (update_br_prob_note): Declare.
19284 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
19285 (try_forward_edges): Care negative frequencies and update note.
19286 (outgoing_edges_match): Tweek conditional merging heuristics.
19287 (try_crossjump_to_edge): use update_br_prob_note.
19288 * cfglayout.c (fixup_reorder_chain): Likewise.
19289 * cfrtl.c (update_br_prob_note): New.
19290 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
19291
19292 * i386.c (ix86_decompose_address): Return -1 if address contains
19293 shift.
19294 (legitimate_address_p): Require ix86_decompose_address to return 1.
19295
19296 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
19297 (cprop_insn): Likewise.
19298
a01da83b
KH
192992002-01-10 Kazu Hirata <kazu@hxi.com>
19300
19301 * toplev.c: Fix formatting.
19302 * tree.c: Likewise.
19303 * tree-dump.c: Likewise.
19304 * unroll.c: Likewise.
19305 * unwind-dw2.c: Likewise.
19306 * unwind-dw2-fde.c: Likewise.
19307 * unwind-dw2-fde-glibc.c: Likewise.
19308 * unwind-sjlj.c: Likewise.
19309
9f85bca7
JM
193102002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19311
19312 * doc/invoke.texi: Document PDP-11 options.
19313
f48f56b1
KH
193142002-01-10 Kazu Hirata <kazu@hxi.com>
19315
19316 * config/h8300/h8300.h: Fix formatting.
19317
ead39bdf 193182002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
19319
19320 Add __attribute__ ((deprecated)).
19321 * extend.texi: Document __attribute__ ((deprecated)).
19322 * invoke.texi: Document -Wno-deprecated-declarations.
19323 * testsuite/g++.dg/other/deprecated.C: New C++ test.
19324 * testsuite/gcc.dg/deprecated.c: New C test.
19325 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
19326 (c_common_attribute_table): Add "deprecated" entry.
19327 (handle_deprecated_attribute): New function.
19328 * c-decl.c (deprecated_states): New enum.
19329 deprecated_state: State of "deprecated" handling.
19330 (start_decl): Set deprecated_state based on attributes.
19331 (grokdeclarator): Test for deprecated uses, propagate attribute.
19332 * c-typeck.c (build_component_ref): Test for deprecated fields.
19333 (build_external_ref): Test for deprecated primaries.
19334 * diagnostic.c (warn_deprecated_use) New function to issue
19335 warnings about __attribute__ ((depricated)) references.
19336 * flags.h (warn_deprecated_decl): Extern declared for
19337 -W[no-]deprecated-declarations option.
19338 * print-tree.c (print_node): Show deprecated flag status.
19339 * toplev.c (warn_deprecated_decl): Defined.
19340 (W_options): Added "deprecated-declaration".
19341 * toplev.h (warn_deprecated_use): Extern declared.
19342 * tree.h (struct tree_common): Define deprecated_flag.
19343 (TREE_DEPRECATED): New macro to access flag.
19344 * cp/call.c (build_call): Test for deprecated calls.
19345 * cp/class.c (add_implicitly_declared_members): Set global
19346 flag to tell grokdeclarator to not issue deprecated warnings.
19347 * cp/cp-tree.h: Add extern for adding_implicit_members.
19348 * cp/decl.c (deprecated_states): New enum.
19349 (start_decl): Set deprecated_state based on attributes.
19350 (grokdeclarator): Test for deprecated uses, propagate attribute.
19351 * cp/lex.c (do_identifier): Test for deprecated primaries.
19352 * cp/typeck.c (build_component_ref): Test for deprecated fields.
19353
ead39bdf 193542002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
19355
19356 Fix to assign attributes to inline member functions.
19357 * cp/decl.c (start_method): Handle attrlist.
19358
47073a38
KH
193592002-01-10 Kazu Hirata <kazu@hxi.com>
19360
19361 * combine.c (expand_field_assignment): Use subreg_lsb().
19362
d288e53d
DE
193632002-01-10 David Edelsohn <edelsohn@gnu.org>
19364
19365 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
19366 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
19367 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
19368 Recurse for any operand of AND as long as constant is non-zero.
19369
08a02ffa
KH
193702002-01-10 Kazu Hirata <kazu@hxi.com>
19371
19372 * config/h8300/h8300.md: Remove constraints from expanders.
19373
c203e7fe
KH
193742002-01-10 Kazu Hirata <kazu@hxi.com>
19375
19376 * varasm.c: Fix formatting.
19377 * varray.c: Likewise.
19378 * vmsdbgout.c: Likewise.
19379 * xcoffout.c: Likewise.
19380
bcb3bc6d
JH
19381Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
19382
19383 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 19384 update edge probabilities to match.
bcb3bc6d 19385
0a553c7e
JM
193862002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19387
19388 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
19389 dependencies.
19390 * doc/languages.texi, doc/sourcebuild.texi: New files.
19391 * doc/configfiles.texi: Make a subsubsection. Update.
19392 * doc/configterms.texi: Add @node. Remove warning that this isn't
19393 instructions for building GCC.
19394 * doc/makefile.texi: Make a subsection.
19395 * doc/gccint.texi: Update.
19396
adc7fcb8
JH
19397Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
19398
19399 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
19400
5a4dd0b3
NP
19401Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
19402
19403 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
19404
3987b9db
JH
19405Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
19406
19407 * optabs.c (expand_fix): Look for wider integer modes first.
19408
19409 * i386.md (mov?f): Avoid the fake const double trick for medium
19410 memory model.
19411 (min?f*/max?f*): Prohibit memory operands for i387 variant.
19412 (fop_df_4): Disable for SSE compilation.
19413
ceb15948 194142002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
19415
19416 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 19417 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 19418
e1623399
RH
194192002-01-10 Richard Henderson <rth@redhat.com>
19420
19421 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
19422
c4abb293
RH
194232002-01-10 Richard Henderson <rth@redhat.com>
19424
19425 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
19426 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
19427
d2604ae9
KH
194282002-01-10 Kazu Hirata <kazu@hxi.com>
19429
19430 * combine.c (can_combine_p): Fix a comment typo.
19431
766c7ad1
ZW
194322002-01-09 Zack Weinberg <zack@codesourcery.com>
19433
19434 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
19435 empty list correctly. Change loop index $t to $f for
19436 consistency with rest of Makefile.
19437
95385cbb
AH
194382002-01-08 Aldy Hernandez <aldyh@redhat.com>
19439
19440 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
19441 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19442
19443 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
19444 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
19445 (altivec_init_builtins): Same.
19446 (altivec_expand_unop_builtin): Return NULL_RTX on error.
19447 (altivec_expand_binop_builtin): Same.
19448 (altivec_expand_ternop_builtin): Same.
19449 (bdesc_dst): New.
19450
19451 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
19452 ("altivec_vctuxs"): Fix typo.
19453 ("altivec_vnmsubfp"): Same.
19454 ("altivec_dssall"): New.
19455 ("altivec_mfvscr"): New.
19456 ("altivec_dss"): New.
19457 ("altivec_lvsl"): New.
19458 ("altivec_lvsr"): New.
19459 ("altivec_dstt"): New.
19460 ("altivec_dstst"): New.
19461 ("altivec_dststt"): New.
19462 ("altivec_dst"): New.
19463
19464 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
19465 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19466
e4ac76b4
RH
194672002-01-09 Richard Henderson <rth@redhat.com>
19468
19469 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
19470
c893e4a4
HPN
194712002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
19472
19473 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
19474 function.
19475 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
19476 prototype.
7387c700 19477 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 19478
f4f4d0f8
KH
194792002-01-09 Kazu Hirata <kazu@hxi.com>
19480
19481 * read-rtl.c: Fix formatting.
19482 * real.c: Likewise.
19483 * regclass.c: Likewise.
19484 * regrename.c: Likewise.
19485 * reg-stack.c: Likewise.
19486 * reload1.c: Likewise.
19487 * reload.c: Likewise.
19488 * rtl.c: Likewise.
19489
cc863bea
KH
194902002-01-09 Kazu Hirata <kazu@hxi.com>
19491
19492 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
19493 to extract items in the expr_list chain.
19494
7b4dfe3d
RH
194952002-01-09 Richard Henderson <rth@redhat.com>
19496
19497 * config/vax/vax.c (vax_rtx_cost): Never abort.
19498
1d969638
RH
19499 * config/vax/vax.h (REAL_ARITHMETIC): Define.
19500
7d5ab30e
JH
195012002-01-09 Jan Hubicka <jh@suse.cz>
19502
19503 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
19504
9503f3d1
RH
195052002-01-09 Richard Henderson <rth@redhat.com>
19506
19507 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
19508 Unify code from various alternatives.
19509
42bd17b7
RH
195102002-01-09 Richard Henderson <rth@redhat.com>
19511
19512 * regrename.c (copy_value): Ignore the copy if the source register
19513 is present in the value chain with a narrower mode.
19514
bdca3c33
HB
195152002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19516
cda94cbb
RH
19517 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
19518 for the c4x target. Also improve layout.
bdca3c33 19519
c73a5e94
RH
195202002-01-09 Richard Henderson <rth@redhat.com>
19521
19522 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
19523 * config/m32r/m32r.md (and ior xor splitters): Swap operands
19524 to match insn patterns.
19525
dd0a18c0
RH
195262002-01-09 Richard Henderson <rth@redhat.com>
19527
19528 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
19529 (copyprop_hardreg_forward_1): Likewise.
19530
1fd9ac1e
JDA
195312002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
19532
19533 * pa.md (decrement_and_branch_until_zero): Change predicate for
19534 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
19535
5cb265ec
BM
195362002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
19537
19538 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
19539 gets undefined. For Darwin.
19540
fcd8fa8b
HB
195412002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19542
19543 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
19544
bd3ab23a
MH
195452002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19546
19547 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
19548
21e16bd6
RH
195492002-01-08 Richard Henderson <rth@redhat.com>
19550
19551 * regrename.c (copy_value): Ignore overlapping copies.
19552
a5376276
RH
195532002-01-08 Richard Henderson <rth@redhat.com>
19554
19555 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
19556 as needed to avoid shared structure.
19557
18cf8dda
KH
195582002-01-08 Kazu Hirata <kazu@hxi.com>
19559
19560 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
19561 H8/300H and H8/S.
19562
16c484c7
JM
195632002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19564
19565 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
19566 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
19567 documentation of obsolete macros.
19568 * system.h: Poison these macros.
19569 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
19570 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
19571 config/c4x/c4x.h, config/clipper/clipper.h,
19572 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
19573 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
19574 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
19575 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
19576 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
19577 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
19578 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
19579 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
19580 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
19581 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
19582 config/sparc/sparc.h, config/stormy16/stormy16.h,
19583 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
19584 definitions and commented out definitions of obsolete macros.
19585 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
19586 of MAX_INT_TYPE_SIZE.
19587
14b3e8ef
UW
195882002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
19589
19590 * config/s390/s390.c (s390_preferred_reload_class): Never
19591 return ADDR_REGS if it isn't a subset of the given class.
19592 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
19593 FP_REGS, but all superclasses as well.
19594
19595 * config/s390/s390.c (s390_function_profiler): Fix thinko.
19596
19597 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
19598 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
19599 must not be a const_int.
19600
a693284d
RH
196012002-01-08 Richard Henderson <rth@redhat.com>
19602
19603 * Makefile.in (toplev.o): Depend on options.h.
19604 (gcc.o): Depend on specs.h.
19605
b3ca30df
JJ
196062002-01-08 Jakub Jelinek <jakub@redhat.com>
19607
19608 * expr.c (store_expr): Convert VOIDmode constants back to target's
19609 mode.
19610
24dbb440
GP
196112002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19612
19613 * doc/invoke.texi: Markup gcc as @command. Refer to
19614 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
19615 of http://gcc.gnu.org/thanks.html.
19616
234e114c
DJ
196172002-01-08 Dale Johannesen <dalej@apple.com>
19618
19619 * config/rs6000/rs6000.md: Add missing int register
19620 target case to movdf_low.
19621
0d24f4d1
ZW
196222002-01-08 Zack Weinberg <zack@codesourcery.com>
19623
19624 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
19625 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
19626 (cppinit.o): Depend on except.h.
19627 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
19628 s-specs): New rules.
19629
19630 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
19631 Don't create specs.h/options.h/gencheck.h here. Remove
19632 unnecessary variable settings from last argument of AC_OUTPUT.
19633 * config.in, configure: Regenerate.
19634 * intl.c: Hardcode package name as "gcc".
19635
19636 * cppinit.c: Include except.h.
19637 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
19638 appropriate.
19639 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
19640 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
19641 (!)USING_SJLJ_EXCEPTIONS.
19642 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
19643
ed722f66
JM
196442002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19645
19646 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
19647 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
19648 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
19649 documentation of obsolete macros.
19650 * system.h: Poison these macros.
19651 * config/d30v/d30v.h, config/ns32k/encore.h,
19652 config/stormy16/stormy16.h: Remove definitions and commented out
19653 definitions of obsolete macros.
19654
31e5e29a
NP
19655Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
19656
19657 * objc/objc-act.c (handle_class_ref): Mark the declaration of
19658 %sobjc_class_ref_%s as used - to prevent unwanted compiler
19659 warnings.
19660
bc1fa59c
UW
196612002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
19662
19663 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
19664 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
19665 to insn adjusting stack/frame pointer.
0d24f4d1 19666 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
19667 accept operands that cause the insn to be non-splittable.
19668
a8086abf
GS
196692002-01-08 Graham Stott <grahams@redhat.com>
19670
19671 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
19672 (C_TYPE_FIELDS_VOLATILE): Likewise.
19673 (C_TYPE_BEING_DEFINED): Likewise.
19674 (C_IS_RESERVED_WORD): Likewise.
19675 (C_TYPE_VARIABLE_SIZE): Likewise.
19676 (C_DECL_VARIABLE_SIZE): Likewise.
19677 (C_MISSING_PROTOTYPE_WARNED): Likewise.
19678 (C_SET_EXP_ORIGINAL_CODE): Likewise.
19679 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
19680 parenthesis.
19681 (C_DECL_ANTICIPATED): Likewise.
19682 (c_build_type_variant): Add parenthesis.
19683
3f595aa1
JM
196842002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19685
19686 * gcc.c (option_map): Remove --version.
19687 (process_command): Handle -fversion following the GNU Coding
19688 Standards. Partially addresses PR other/704.
19689
5bc5a8f9
GS
196902002-01-08 Graham Stott <grahams@redhat.com>
19691
19692 * combine.c (combine_instructions): Fix typo.
19693
16ec4ebf
GS
196942002-01-08 Graham Stott <grahams@redhat.com>
19695
19696 * debug.h: Use "tree" and "rtx" throughout.
19697
19698 * debug.c: Likewise.
19699
4b69f385
NC
197002002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
19701
19702 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
19703 constant pool, use the pool's version of the symbol instead.
19704
57d1019b
RH
197052002-01-07 Richard Henderson <rth@redhat.com>
19706
19707 * regrename.c (find_oldest_value_reg): Ignore the value chain if
19708 the original register was copied in a mode with a fewer number of
19709 hard registers than the desired mode.
19710 (copyprop_hardreg_forward_1): Likewise.
19711 (debug_value_data): Fix loop test.
19712 * toplev.c (parse_options_and_default_flags): Reenable
19713 -fcprop-registers at -O1.
19714
197152002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 19716
0d24f4d1
ZW
19717 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
19718 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 19719
0d24f4d1
ZW
19720 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
19721 predicates.
fa066a23 19722
0d24f4d1 19723 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 19724
8f949e7e
JDA
197252002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
19726
19727 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
19728 (pa_output_function_prologue): Output local label at the beginning of
19729 the prologue when profiling.
19730 (hppa_profile_hook): Use the local label rather than the function label.
19731 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
19732
c62f2db5
AH
197332002-01-07 Aldy Hernandez <aldyh@redhat.com>
19734
0d24f4d1
ZW
19735 * config/rs6000/rs6000.c (print_operand): Remove extra space.
19736 (altivec_expand_unop_builtin): Fix thinko.
19737 (altivec_expand_binop_builtin): Same.
19738 (altivec_expand_ternop_builtin): Same.
19739 (altivec_expand_builtin): Same.
c62f2db5 19740
b5235ba7
RH
197412002-01-07 Richard Henderson <rth@redhat.com>
19742
19743 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
19744
7d8ac293
JM
197452002-01-07 Jason Merrill <jason@redhat.com>
19746
19747 * unwind-dw2.c (execute_cfa_program): Use < again.
19748
571a03b8
JJ
197492002-01-07 Jakub Jelinek <jakub@redhat.com>
19750
19751 * predict.c (combine_predictions_for_insn): Avoid division by zero.
19752
2e951384
JJ
197532002-01-07 Jakub Jelinek <jakub@redhat.com>
19754
19755 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
19756 Don't allow -1 - x -> ~x simplifications in the first pass.
19757
20e26713
AH
197582002-01-07 Aldy Hernandez <aldyh@redhat.com>
19759
0d24f4d1
ZW
19760 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
19761 arguments.
19762 (altivec_expand_binop_builtin): Same.
19763 (altivec_expand_unop_builtin): Same.
19764 (print_operand): Fix typo.
19765 (bdesc_1arg): Add vupk* variants.
20e26713 19766
0d24f4d1 19767 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 19768
0d24f4d1 19769 * rs6000.md: Add altivec_vupk* variants.
20e26713 19770
4dd57c18
JM
197712002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
19772
19773 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
19774 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
19775 and last update dates.
19776
0341c5d2
JJ
197772002-01-07 Janis Johnson <janis187@us.ibm.com>
19778
19779 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
19780
c7f3e0b0
MM
197812002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
19782
19783 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
19784 * config/avr/avr.h (CPP_SPEC): Likewise.
19785 (LINK_SPEC): Likewise.
19786 (CRT_BINUTILS_SPECS): Likewise.
19787 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
19788 * doc/invoke.texi (AVR Options): Document them.
19789
6ba4d630
JH
19790Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
19791
19792 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
19793 LABEL_NUSES.
19794
6253d571
GS
197952002-01-07 Graham Stott <grahams@redhat.com>
19796
0d24f4d1
ZW
19797 * config/i386/i386.h: Update copyright date.
19798 (HALF_PIC_PTR): Add parenthesis.
19799 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
19800 (CONSTANT_ALIGNMENT): Add parenthesis.
19801 (DATA_ALIGNMENT): Likewise.
19802 (LOCAL_ALIGNMENT): Likewise.
19803 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
19804 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
19805 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
19806 (HARD_REGNO_NREGS): Add paranethesis.
19807 (VALID_SSE_REG_MODE): Whitespace.
19808 (VALID_MMX_REG_MODE): Whitespace.
19809 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
19810 (ix86_hard_regno_mode_ok): Add parenthesis.
19811 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
19812 (RETURN_IN_MEMORY): Whitespace.
19813 (N_REG_CLASSES): Add parenthesis.
19814 (INTEGER_CLASS_P): Add parenthesis and wrap.
19815 (FLOAT_CLASS_P): Likewise.
19816 (SSE_CLASS_P): Likewise.
19817 (MMX_CLASS_P): Likewise.
19818 (MAYBE_INTEGER_CLASS_P): Likewise.
19819 (MAYBE_FLOAT_CLASS_P): Likewise.
19820 (MAYBE_SSE_CLASS_P): Likewise.
19821 (MAYBE_MMX_CLASS_P): Likewise.
19822 (Q_CLASS_P): Likewise.
19823 (GENERAL_REGNO_P): Uppercase macro parameter.
19824 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
19825 (FP_REGNO_P): Likewise.
19826 (ANY_FP_REGNO_P): Uppercase macro parameter.
19827 (SSE_REGNO_P): Likewise.
19828 (SSE_REGNO): Likewise.
19829 (SSE_REG_P): Likewise.
19830 (SSE_FLOAT_MODE_P): Likewise.
19831 (MMX_REGNO_P): Likewise.
19832 (MMX_REG_P):Likewise.
19833 (STACK_REG_P): Likewise.
19834 (NON_STACK_REG_P): Likewise.
19835 (STACK_TOP_P): Likewise.
19836 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
19837 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
19838 (SECONDARY_MEMORY_NEEDED): Likewise.
19839 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
19840 (MD_ASM_CLOBBERS): Whitespace and wrap.
19841 (MUST_PASS_IN_STACK): Whitespace and wrap.
19842 (RETURN_POPS_ARGS): Add parenthesis.
19843 (INIT_CUMULATIVE_ARGS): Likewise.
19844 (FUNCTION_ARG): Likewise.
19845 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
19846 (SETUP_INCOMING_VARARGS): Likewise.
19847 (BUILD_VA_LIST_TYPE): Add parenthesis.
19848 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
19849 parenthsis.
19850 (EXPAND_BUILTIN_VA_ARG): Likewise.
19851 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
19852 (INITIALIZE_TRAMPOLINE): Add parenthesis.
19853 (INITIAL_ELIMINATION_OFFSET): Likewise.
19854 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
19855 (REGNO_OK_FOR_BASE_P): Likewise.
19856 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
19857 (REGNO_OK_FOR_DIREG_P): Likewise.
19858 (REG_OK_FOR_INDEX_P): Whitespace.
19859 (REG_OK_FOR_BASE_P): Whitespace.
19860 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
19861 parenthesis.
19862 (FIND_BASE_TERM): Fix typo.
19863 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
19864 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
19865 (SYMBOLIC_CONST; Whitespace.
19866 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
19867 (ENCODE_SECTION_INFO): Whitespace.
19868 (FINALIZE_PIC): Remove do { ... } while (0).
19869 (PROMOTE_MODE): Wrap in do { ... } while (0).
19870 (CONST_COSTS): Whitespace.
19871 (RTX_COSTS): Add paramethesis, whitespace and wrap.
19872 (REGISTER_MOVE_COST): Add parenthesis.
19873 (MEMORY_MOVE_COST): Likewise.
19874 (EXTRA_CC_MODES): Whitespace.
19875 (SELECT_CC_MODE): Add parenthesis and whitespace.
19876 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
19877 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
19878 (ASM_OUTPUT_LABEL): Add paramethesis.
19879 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
19880 (ASM_OUTPUT_REG_POP): Likewise.
19881 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
19882 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 19883
07933f72
GS
19884 * config/i386/i386.c: Update copyright.
19885 (CHECK_STACK_LIMIT): Add parenthesis.
19886 (AT_BP): Uppercase macro parameter.
19887 (x86_64_int_parameter_registers): Constify.
19888 (x86_64_int_return_registers): Likewise.
19889 (ix86_compare_op0): Use rtx.
19890 (construct_container): Constify INTREG parameter.
19891 (function_arg): Use rtx.
19892
0b4d32c9
GS
19893 * diagnostic.h: Update copyright date.
19894 (output_buffer_state): Add parenthesis.
19895 (output_buffer_format_args): Likewise.
19896
6253d571
GS
19897 * combine.c (combine_instructions): Replace XEXP (links, 0)
19898 with link.
19899
68f3f6f1
L
199002002-01-06 H.J. Lu <hjl@gnu.org>
19901
19902 * cfgcleanup.c (thread_jump): Fix 2 typos.
19903
199042002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 19905
0d24f4d1 19906 * config.gcc: Add support for --enable-altivec.
480f7f3a 19907
13b8c631
CR
199082002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
19909
19910 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
19911
58ad89b1
JJ
199122002-01-06 Jakub Jelinek <jakub@redhat.com>
19913
19914 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
19915 __objc_class_name_*.
19916
e403b4bc
CR
199172002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
19918
19919 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
19920
e41c7831
RH
199212002-01-06 Richard Henderson <rth@redhat.com>
19922
19923 * reorg.c (emit_delay_sequence): Remove death notes, not merely
19924 nop them out. Increment label reference count for REG_LABEL.
19925 (fill_slots_from_thread): Frob label reference count around
19926 delete_related_insns.
19927
3b3b1e32
RH
199282002-01-05 Richard Henderson <rth@redhat.com>
19929
19930 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
19931 jump threading.
19932
c28abdf0
RH
199332002-01-05 Richard Henderson <rth@redhat.com>
19934
19935 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
19936 * integrate.c (output_inline_function): Likewise.
19937 * toplev.c (rest_of_compilation): Do it here instead. Move call
19938 to remove_unnecessary_notes after emitting abstract instance.
19939 Force an emitted nested function to have its parent emited as well.
19940 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
19941 for null.
19942 (rtl_for_decl_location): Do not look at reload data structures
19943 before reload has run.
19944
c4f2c499
KH
199452002-01-05 Kazu Hirata <kazu@hxi.com>
19946
19947 * cse.c: Fix formatting.
19948 * dwarf2asm.c: Likewise.
19949 * dwarf2out.c: Likewise.
19950 * explow.c: Likewise.
19951 * expmed.c: Likewise.
19952 * function.c: Likewise.
19953 * gcov.c: Likewise.
19954 * gencheck.c: Likewise.
19955 * genrecog.c: Likewise.
19956 * ggc-common.c: Likewise.
19957 * ggc-page.c: Likewise.
19958 * global.c: Likewise.
19959
cf0d9408
KH
199602002-01-05 Kazu Hirata <kazu@hxi.com>
19961
19962 * combine.c: Fix formatting.
19963
bedca03a
CR
199642002-01-05 Craig Rodrigues <crodrigu@bbn.com>
19965
19966 PR middle-end/1557
19967 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
19968
0134bf2d
DE
199692002-01-05 David Edelsohn <edelsohn@gnu.org>
19970
19971 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
19972 as 1 for __powerpc64__ as well.
19973
19974 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
19975
19976 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
19977 return it.
19978
9ca88d5a
DB
199792002-01-05 Daniel Berlin <dan@dberlin.org>
19980
19981 * lcm.c: Revert change, due to performance regression it causes on
19982 SPEC because it's slightly more conservative (sigh, I hate
19983 edge-based LCM).
0d24f4d1 19984
1c570418
JH
19985Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
19986
19987 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
19988
d83bb9f7
NB
199892002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
19990
19991 * doc/cppinternals.texi: Update.
19992
3e0f61ac
HPN
199932002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
19994
19995 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
19996 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
19997 negatives.
19998 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
19999 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20000 kludge for pre-october-14th mmix versions to handle new-found bug
20001 with PUSHJ/PUSHGO and the register stack.
20002 * config/mmix/mmix.h (struct machine_function): Rename member
20003 has_call_value_without_parameters to has_call_without_parameters.
20004 All referers changed.
20005 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
20006 TARGET_MASK_BRANCH_PREDICT): New macros.
20007 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
20008 -mno-reg-stack-fill-bug-workaround.
20009 * config/mmix/mmix.md ("call"): Set struct machine member
20010 has_call_without_parameters.
20011
4deaa2f8
JH
20012Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
20013
20014 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
20015
9f16e871
JH
20016Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
20017
20018 * cfgcleanup.c: Include tm_p.h
20019 (mark_effect): Fix handling of hard register; fix handling of SET
20020
96eb1157
KH
200212002-01-04 Kazu Hirata <kazu@hxi.com>
20022
20023 * config/h8300/h8300.md (anonymous patterns): Check that
20024 operands are registers before using REGNO on them.
20025
48180d68
RM
200262002-01-03 Roland McGrath <roland@frob.com>
20027
20028 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
20029
b0832fe1
JJ
200302002-01-04 Jakub Jelinek <jakub@redhat.com>
20031
20032 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
20033 * c-common.h (genrtl_expr_stmt_value): Likewise.
20034 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
20035 (expand_expr_stmt_value): Add maybe_last argument.
20036 Don't warn about statement with no effect if it is the last statement
20037 in expression statement.
20038 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
20039 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
20040 expand_expr_stmt_value.
20041 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
20042 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
20043 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
20044 as maybe_last to expand_expr_stmt_value.
20045
c1e14513
JL
20046Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
20047
0d24f4d1
ZW
20048 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
20049 be passed in, do not build it.
20050 (c_begin_if_stmt): New function.
20051 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20052 * c-common.h (c_expand_start_cond): Update prototype.
20053 (c_begin_if_stmt): Prototype new function.
20054 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20055 * c-parse.in (if_prefix): Use c_begin_if_stmt,
20056 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 20057
b6ec437a
WC
200582002-01-04 William Cohen <wcohen@redhat.com>
20059
20060 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
20061 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20062 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20063 * config/pa/som.h (ASM_FILE_START): Likewise.
20064
ead39bdf 200652002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
20066
20067 * lcm.c: Include df.h.
20068 Add available_transfer_function prototype.
20069 (compute_available): Rework to use iterative dataflow framework.
20070 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
20071 with bb_info in df.h
20072 (available_transfer_function): New function.
20073
20074 * Makefile.in (lcm.o): add df.h to dependencies.
20075
551cc6fd
RH
200762002-01-04 Richard Henderson <rth@redhat.com>
20077
20078 * config/alpha/alpha.c (some_operand): Accept HIGH.
20079 (input_operand): Likewise; accept simple references to globals.
20080 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
20081 (alpha_const_double_ok_for_letter_p): Likewise.
20082 (alpha_extra_constraint): Likewise.
20083 (alpha_preferred_reload_class): Likewise. Do not force
20084 symbolic constants to memory.
20085 (alpha_legitimate_address_p): Accept simple references
20086 to small_symbolic_operand.
20087 (alpha_legitimize_address): New arg scratch. Be prepared to be
20088 called when no_new_pseudos. Emit simple symbolic references.
20089 Split integers into low, high, and rest.
20090 (alpha_expand_mov): Use alpha_legitimize_address.
20091 (some_small_symbolic_mem_operand): New.
20092 (split_small_symbolic_mem_operand): New.
20093 * config/alpha/alpha-protos.h: Update.
20094 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
20095 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
20096 (EXTRA_CONSTRAINT): Likewise.
20097 (PREFERRED_RELOAD_CLASS): Likewise.
20098 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
20099 (PREDICATE_CODES): Update.
20100 * config/alpha/alpha.md: New post-reload splitters to convert
20101 simplfied symbolic operands to the form that references $29.
20102 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
20103 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
20104
1eaea054
RH
201052002-01-03 Richard Henderson <rth@redhat.com>
20106
20107 * local-alloc.c (function_invariant_p): Update commentary.
20108
c4cc12b7
L
201092002-01-04 H.J. Lu <hjl@gnu.org>
20110
20111 * toplev.c (rest_of_compilation): Fix a typo when calling
20112 cleanup_cfg.
20113
173bf5be
KH
201142002-01-03 Kazu Hirata <kazu@hxi.com>
20115
20116 * c-common.c: Fix formatting.
20117 * diagnostic.c: Likewise.
20118 * doloop.c: Likewise.
20119 * dwarf2out.c: Likewise.
20120
187462ac
KH
201212002-01-03 Kazu Hirata <kazu@hxi.com>
20122
20123 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
20124 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
20125
5d8ebbd8
NB
201262002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20127
20128 * cpperror.c: Update comments and copyright.
20129 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
20130 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
20131
518c1311
JDA
201322002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
20133
20134 * collect2.c (main): Use strcmp when testing for "-shared".
20135
d15a58c0
NB
201362002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20137
20138 * cppmacro.c: Don't include intl.h. Update comments.
20139 (new_number_token): Allocate enough buffer for 64-bit unsigned
20140 integers; update prototype.
20141 * cppmain.c: Update comments.
20142
70f4f91c
WC
201432002-01-03 William Cohen <wcohen@redhat.com>
20144
20145 * function.h (struct function): Add profile.
20146 (current_function_profile): New.
20147 doc/extend.texi: Update documentation.
20148 * final.c (final_start_function): Use current_function_profile
20149 instead of profile_flag.
20150 (profile_after_prologue): Likewise.
20151 * function.c (expand_function_start): Likewise.
20152 (expand_function_start): Likewise.
c4cc12b7 20153 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
20154 (alpha_does_function_need_gp): Likewise.
20155 (alpha_expand_prologue): Likewise.
20156 * config/arm/arm.c (arm_expand_prologue): Likewise.
20157 thumb_expand_prologue: Likewise.
20158 * config/d30v/d30v.c (d30v_stack_info): Likewise.
20159 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
20160 (fr30_expand_prologue): Likewise.
20161 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
20162 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
20163 * config/i386/i386.h (FINALIZE_PIC): Likewise.
20164 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20165 * config/i960/i960.c (i960_output_function_prologue): Likewise.
20166 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
20167 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
20168 (m32r_expand_prologue): Likewise.
20169 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
20170 (m88k_expand_prologue): Likewise.
20171 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
20172 * config/mips/mips.c (compute_frame_size): Likewise.
20173 (mips_expand_prologue): Likewise.
20174 (mips_can_use_return_insn): Likewise.
20175 * config/pa/elf.h (ASM_FILE_START): Likewise.
20176 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20177 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20178 * config/pa/som.h (ASM_FILE_START): Likewise.
20179 * config/romp/romp.c (romp_using_r14): Likewise.
20180 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
20181 (rs6000_stack_info): Likewise.
20182 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 20183 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
20184 * config/v850/v850.c (compute_register_save_size): Likewise.
20185
cb1ac742
JJ
201862002-01-03 Jakub Jelinek <jakub@redhat.com>
20187
20188 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
20189 gen_lowpart_common fails, use gen_lowpart_SUBREG.
20190
61d951df 201912002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 20192
61d951df
TC
20193 * darwin.c (machopic_output_possible_stub_label): Don't generate
20194 stub routines for pseudo-stubs which we've just defined.
20195
505ddab6
KH
201962002-01-03 Kazu Hirata <kazu@hxi.com>
20197
20198 * builtins.c: Fix formatting.
20199 * c-typeck.c: Likewise.
20200 * combine.c: Likewise.
20201 * expr.c: Likewise.
20202 * loop.c: Likewise.
20203
b7e30d8a
AS
202042002-01-03 Andreas Schwab <schwab@suse.de>
20205
20206 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
20207 and return true if _cpp_push_next_buffer pushed a new include
20208 file.
20209 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
20210 _cpp_pop_file_buffer did not push a new file.
20211 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
20212
ff81832f
EC
202132002-01-02 Eric Christopher <echristo@redhat.com>
20214
20215 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
20216 FIND_REG_INC_NOTE call. Update copyright.
20217 * loop.c (canonicalize_condition): Ditto.
20218 * reorg.c (delete_scheduled_jump): Ditto.
20219
8e42ace1
KH
202202002-01-03 Kazu Hirata <kazu@hxi.com>
20221
20222 * gcse.c: Fix formatting.
20223
fb2bf631
GS
202242002-01-03 Graham Stott <grahams@redhat.com>
20225
20226 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
20227 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 20228 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
20229
20230 * system.h: Move forward defs for struct tags rtx_def, union_tree,
20231 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 20232 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
20233
202342002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
20235
20236 * tree.h: Update copyright date.
20237 (IS_EXPR_CODE_CLASS): Add parenthesis.
20238 (TREE_SET_CODE): Add whitespace.
20239 (TREE_CHECK): Add parenthesis.
20240 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
20241 (CST_OR_CONSTRUCTOR_CHECK):
20242 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
20243 (TREE_SYMBOL_REFERENCED): Whitespace.
20244 (INT_CST_LT): Likewise.
20245 (INT_CST_LT_UNSIGNED): Likewise.
20246 (tree_real_cst): Unwrap comment.
20247 (tree_string): Likewise.
20248 (tree_complex): Likewise.
20249 (IDENTIFIER_POINTER): correct cast.
20250 (SAVE_EXPR_CONTEXT): Whitespace.
20251 (EXPR_WFL_FILENAME_NODE): Likewise.
20252 (EXPR_WFL_FILENAME): Remove parenthesis.
20253 (DECL_ORIGIN): Add parenthesis.
20254 (DECL_FROM_INLINE): Use NULL_TREE.
20255 (build_int_2): Whitespace.
20256 (build_type_variant): Add parenthesis.
20257
20258 * gcc/jcf-parse.c: Update copyright date.
20259 (yyparse): Constify resource_filename.
20260
f52eda29
GS
202612002-01-03 Graham Stott <grahams@redhat.com>
20262
20263 * rtl.h: Update copyright date.
20264 (RTL_CHECK1): Wrap long line.
20265 (RTL_CHECK2): Likewise.
20266 (RTL_CHECKC1): Wrap long line and whitespace.
20267 (RTL_CHECKC2): Likewise.
20268 (XWINT): Whitespace.
20269 (XINT): Likewise.
20270 (XSTR): Likewise.
20271 (XEXP): Likewise.
20272 (XVEC): Likewise.
20273 (XMODE): Likewise.
20274 (XBITMAP): Likewise.
20275 (XTREE): Likewise.
20276 (XBBDEF): Likewise.
20277 (XTMPL): Likewise.
20278 (X0WINT): Likewise.
20279 (X0INT):Likewise.
20280 (X0UINT): Likewise.
20281 (X0STR): Likewise.
20282 (X0EXP): Likewise.
20283 (X0VEC): Likewise.
20284 (X0MODE): Likewise.
20285 (X0BITMAP): Likewise.
20286 (X0TREE): Likewise.
20287 (X0BBDEF): Likewise.
20288 (X0ADVFLAGS): Likewise.
20289 (X0CSELIB): Likewise.
20290 (X0MEMATTR): Likewise.
20291 (XCWINT): Likewise.
20292 (XCINT): Likewise.
20293 (XCUINT): Likewise.
20294 (XCSTR): Likewise.
20295 (XCEXP): Likewise.
20296 (XCVEC): Likewise.
20297 (XCMODE): Likewise.
20298 (XCBITMAP): Likewise.
20299 (XCTREE): Likewise.
20300 (XCBBDEF): Likewise.
20301 (XCADVFLAGS): Likewise.
20302 (XCCSELIB): Likewise.
20303 (XC2EXP): Likewise.
20304 (INSN_UID): Likewise.
20305 (PREV_INSN): Likewise.
20306 (PATTERN): Likewise.
20307 (INSN_CODE): Likewise.
20308 (PUT_REG_NOTE_KIND): Likewise.
20309 (CODE_LABEL_NUMBER): Likewise.
20310 (NOTE_SOURCE_FILE): Likewise.
20311 (NOTE_BLOCK): Likewise.
20312 (NOTE_EH_HANDLER): Likewise.
20313 (NOTE_RANGE_INFO): Likewise.
20314 (NOTE_LIVE_INFO): Likewise.
20315 (NOTE_BASIC_BLOCK): Likewise.
20316 (NOTE_EXPECTED_VALUE): Likewise.
20317 (NOTE_LINE_NUMBER): Likewise.
20318 (LABEL_NAME): Likewise.
20319 (LABEL_NUSES): Likewise.
20320 (LABEL_ALTERNATE_NAME): Likewise.
20321 (ADDRESSOF_DECL): Likewise.
20322 (JUMP_LABEL): Likewise.
20323 (LABEL_NEXTREF): Likewise.
20324 (REGNO): Likewise.
20325 (ORIGINAL_REGNO: Likewise.
20326 (HARD_REGISTER_NUM_P): Add parenthesis.
20327 (SUBREG_REG): Whitespace.
20328 (SUBREG_BYTE): Likewise.
20329 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
20330 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
20331 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
20332 (ASM_OPERANDS_INPUT_VEC): Likewise.
20333 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
20334 (ASM_OPERANDS_INPUT): Likewise.
20335 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
20336 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
20337 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
20338 (ASM_OPERANDS_INPUT_MODE): Likewise.
20339 (ASM_OPERANDS_SOURCE_FILE): Likewise.
20340 (ASM_OPERANDS_SOURCE_LINE): Likewise.
20341 (MEM_SET_IN_STRUCT_P): Minor reformat.
20342 (TRAP_CONDITION): Whitespace.
20343 (TRAP_CODE): Likewise.
20344 (COND_EXEC_TEST): Likewise.
20345 (COND_EXEC_CODE): Likewise.
20346 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
20347 (PHI_NODE_P): Add parenthesis.
20348 (plus_constant): Whitespace and add parenthesis.
20349
e03f5d43
KH
203502002-01-03 Kazu Hirata <kazu@hxi.com>
20351
20352 * config/avr/avr.c: Fix comment typos.
20353 * config/c4x/c4x.md: Likewise.
20354 * config/dsp16xx/dsp16xx.h: Likewise.
20355 * config/dsp16xx/dsp16xx.md: Likewise.
20356 * config/i386/i386.md: Likewise.
20357 * config/ia64/ia64.c: Likewise.
20358 * config/m32r/m32r.h: Likewise.
20359 * config/m68hc11/m68hc11.md: Likewise.
20360 * config/mmix/mmix.c: Likewise.
20361 * config/mn10200/mn10200.c: Likewise.
20362 * config/romp/romp.c: Likewise.
20363 * config/sh/sh.c: Likewise.
20364 * config/stormy16/stormy16.c: Likewise.
20365 * config/stormy16/stormy16.h: Likewise.
20366 * config/stormy16/stormy16.md: Likewise.
20367
97e300e9
GS
203682002-01-03 Graham Stott <grahams@redhat.com>
20369
20370 * loop.h: Update copyright date.
0d24f4d1
ZW
20371 (LOOP_MOVABLES): Fix typo.
20372 (LOOP_REGS): Likewise.
20373 (LOOP_IVS): Likewise.
ff81832f 20374
745b26b3
GS
203752002-01-03 Graham Stott <grahams@redhat.com>
20376
20377 * cppinit.c: Update copyright date.
20378 Don't include output.h
20379 * Makefile.in: Update copyright date.
20380 Update dependency.
20381
0a379b7a
CR
203822002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
20383
20384 PR c/5226
20385 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
20386 (-pthread) Add to RS/6000 options.
20387
a8154559
KH
203882002-01-02 Kazu Hirata <kazu@hxi.com>
20389
20390 * except.c: Fix comment typos.
20391 * loop.c: Likewise.
20392 * varasm.c: Likewise.
20393 * doc/tm.texi: Fix a typo.
20394
e6ecc89b
JJ
203952002-01-02 Jakub Jelinek <jakub@redhat.com>
20396
20397 * c-typeck.c (output_init_element): Allow initializing static storage
20398 duration objects with compound literals.
20399
d1094b40
RH
204002002-01-02 Richard Henderson <rth@redhat.com>
20401
20402 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
20403 after abusing it.
20404
0c5d8c82
KG
204052002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20406
5e65297b
KG
20407 * gcc.c (default_compilers): Const-ify.
20408 * mips-tdump.c (stab_names): Likewise.
20409 * mips-tfile.c (map_coff_types, map_coff_storage,
20410 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
20411 pseudo_ops_t, pseudo_ops): Likewise.
20412 * protoize.c (default_include): Likewise
20413
0c5d8c82
KG
20414 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
20415 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
20416 Add array size in declaration.
20417 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
20418 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
20419 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
20420 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
20421 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
20422 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
20423 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
20424 emtens, make_nan): Const-ify.
20425 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
20426 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
20427
817e13c4
JM
204282002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
20429
20430 * config.gcc (ia64-*-*): Set extra_headers.
20431 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
20432 * config/alpha/t-osf: Remove.
20433 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
20434
98095e2b
DE
204352002-01-02 David Edelsohn <edelsohn@gnu.org>
20436
20437 * config/rs6000/t-aix43: Revert previous change.
20438
a4200657
JM
204392002-01-02 Jason Merrill <jason@redhat.com>
20440
20441 * c-decl.c (c_expand_body): Call outlining_inline_function when
20442 emitting an inline function out of line.
20443
54ba1f0d
RH
204442002-01-02 Richard Henderson <rth@redhat.com>
20445
20446 * dwarf2out.c (limbo_die_node): Add created_for member.
20447 (new_die): New argument created_for. Update all callers.
20448 (mark_limbo_die_list): New.
20449 (dwarf2out_init): Register limbo_die_list as a root.
20450 (dwarf2out_finish): Force insert limbo dies into their function
20451 context.
20452
323728aa
NS
204532002-01-02 Nathan Sidwell <nathan@codesourcery.com>
20454
20455 PR c++/5089
20456 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
20457
aefc5826
KH
204582002-01-02 Kazu Hirata <kazu@hxi.com>
20459
20460 * config/h8300/fixunssfsi.c: Update copyright.
20461 Fix comment typos.
20462 Fix formatting.
20463 * config/h8300/h8300.c: Update copyright.
20464 Eliminate warnings.
20465
b1c9bc51
KH
204662002-01-02 Kazu Hirata <kazu@hxi.com>
20467
20468 * config/romp/romp.c: Fix comment formatting.
20469 * config/romp/romp.h: Likewise.
20470 * config/romp/romp.md: Likewise.
20471 * config/s390/s390.c: Likewise.
20472 * config/stormy16/stormy16.c: Likewise.
20473 * config/stormy16/stormy16.h: Likewise.
20474
1574ef13
AO
204752002-01-02 Alexandre Oliva <aoliva@redhat.com>
20476
20477 * c-common.h (genrtl_expr_stmt_value): Declare.
20478 * c-semantics.c (genrtl_goto_stmt): Redirect to...
20479 (genrtl_goto_stmt_value): ... this new function. Pass new
20480 argument down to expand_expr_stmt_value, taking
20481 TREE_ADDRESSABLE into account.
20482 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
20483 STMT_EXPR as addressable, i.e., one whose result we want.
20484 * expr.c (expand_expr): Don't save expression statement value
20485 of labeled_blocks or loop_exprs.
20486 * stmt.c (expand_expr_stmt): Redirect to...
20487 (expand_expr_stmt_value): ... this new function. Use new
20488 argument to tell whether to save expression value.
20489 (expand_end_stmt_expr): Reset last_expr_type and
20490 last_expr_value if we don't have either.
20491 * tree-inline.c (declare_return_variable): Mark its use
20492 statement as addressable.
20493 * tree.h: Document new use of TREE_ADDRESSABLE.
20494 (expand_expr_stmt_value): Declare.
20495
252b88f7
TR
204962002-01-01 Tom Rix <trix@redhat.com>
20497
20498 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
20499 rs6000_emit_allocate_stack.
20500
29f7a208
JM
205012002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
20502
20503 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
20504 ${srcdir}/ginclude/ to every entry in extra_headers.
20505 * configure: Regenerate.
20506 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
20507 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
20508 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
20509 * ginclude/proto.h: Rename to config/convex/proto.h.
20510
2cc2d4bb
RK
20511Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20512
20513 * attribs.c (handle_vector_size_attribute): Use host_integerp
20514 and tree_int_cst; remove warnings.
20515 * caller-save.c (insert_restore): Add cast to get rid of warning.
20516 (insert_save): Likewise.
20517 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
20518 * regmove.c (find_matches): Add temporary var to kill a warning.
20519
f01c9bcd
DR
205202002-01-01 Douglas B Rupp <rupp@gnat.com>
20521
16b61764
DR
20522 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
20523 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
20524 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
20525 (vms-dwarf2eh.o): Add Makefile rule.
20526 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
20527 * config/alpha/vms-dwarf2eh.asm: New file.
20528
f01c9bcd
DR
20529 * gcc.c (delete_if_ordinary): Delete all versions.
20530
91312b81
HPN
205312002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
20532
20533 * config/mmix/mmix.md: Update FIXME to not mention
20534 define_constants.
20535 (MMIX_rJ_REGNUM): New define_constants constant.
20536 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
20537 "*movdicc_real"): Adjust contraints formatting.
20538 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
20539 for branch prediction.
20540 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
20541 output template.
20542 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
20543 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
20544 number. Delete related FIXMEs.
20545 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
20546 from number to MMIX_rJ_REGNUM.
20547 (TARGET_MASK_BRANCH_PREDICT): New.
20548 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
20549 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
20550 value. Add -mbranch-predict and -mno-branch-predict.
20551 (TARGET_VERSION): Drop date.
20552 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
20553 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
20554 for finding out global symbols.
20555 (mmix_asm_output_labelref): Revert condition for global symbol.
20556 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
20557 (mmix_print_operand_punct_valid_p): A '+' is valid.
20558
619acae7 20559See ChangeLog.6 for earlier changes.
This page took 2.45862 seconds and 5 git commands to generate.