]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
regen: Use c_fix = format instead of sed
[gcc.git] / gcc / ChangeLog
CommitLineData
4c526be3
BK
12002-05-21 Bruce Korb <bkorb@gnu.org>
2
3 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
4 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
5 * fixinc/fixincl.x: regen.
4c526be3 6
f87c27b4
KH
72002-05-21 Kazu Hirata <kazu@cs.umass.edu>
8
9 * cfgbuild.c: Fix formatting.
10 * cfg.c: Likewise.
11 * cfgcleanup.c: Likewise.
12 * cfglayout.c: Likewise.
13 * cfgloop.c: Likewise.
14 * cfgrtl.c: Likewise.
15
3d78f2e9
RH
162002-05-21 Richard Henderson <rth@redhat.com>
17
18 * c-common.h (enum rid): Add RID_THREAD.
19 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
20 (grokdeclarator): Grok __thread.
21 * c-parse.in (reswords): Add __thread.
22 (rid_to_yy): Add RID_THREAD.
23
24 * tree.h (DECL_THREAD_LOCAL): New.
25 (struct tree_decl): Add thread_local_flag.
26 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
27 * tree.c (staticp): TLS variables are not static.
28
29 * target-def.h (TARGET_HAVE_TLS): New.
30 * target.h (have_tls): New.
31 * output.h (SECTION_TLS): New.
32 * varasm.c (assemble_variable): TLS variables can't be common for now.
33 (default_section_type_flags): Handle .tdata and .tbss.
34 (default_elf_asm_named_section): Handle SECTION_TLS.
35 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
36
37 * flags.h (flag_tls_default): Declare.
38 * toplev.c (flag_tls_default): Define.
39 (display_help): Display help for it.
40 (decode_f_option): Set it.
41
42 * doc/extend.texi (Thread-Local): New node describing language-level
43 thread-local storage.
44 * doc/invoke.texi (-ftls-model): Document.
45
46 * fixinc/inclhack.def (thread_keyword): New.
47 * fixinc/fixincl.x: Rebuild.
48
a151daf0
JL
492002-05-21 Jeffrey A Law <law@redhat.com>
50
c7539aa0
JL
51 * optabs.c (expand_binop): For double-word integer multiplies,
52 do not compute intermediate results into something that is
53 not a register (such as a SUBREG or MEM).
54
a151daf0
JL
55 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
56 (ix86_sched_reorder): Make sure to initialize scheduling
57 data even when there's only one insn in the ready queue.
58
96b1f73b
VM
592002-05-21 Vladimir Makarov <vmakarov@redhat.com>
60
61 * genautomata.c (reserv_sets_hash_value): Fix a typo.
62
dceb2b75
VM
632002-05-21 Vladimir Makarov <vmakarov@redhat.com>
64
65 * genautomata.c (reserv_sets_hash_value): Define hash_value as
66 set_el_t. Transform the hash value into unsigned.
67 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
68 (transform_3): Add code to process `(A,B)+(D,E)'.
69
159d5964
NY
702002-05-21 NIIBE Yutaka <gniibe@m17n.org>
71
72 * reload1.c (do_output_reload): Run delete_output_reload
73 only if optimizing.
74
cf5124f6
RS
752002-05-21 Roger Sayle <roger@eyesopen.com>
76
77 PR middle-end/6600
78 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
79 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
80 (can_store_by_pieces): ... and here to limit the largest mode used.
81 Add a comment to document this function.
82
380e6ade
RH
832002-05-21 Richard Henderson <rth@redhat.com>
84
85 * flow.c (life_analysis): Fix test for deleted label.
86
1f95326c
NB
872002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
88
89 * doc/tm.texi: Fix typo.
90
2a1dc0d8
ZW
912002-05-21 Zack Weinberg <zack@codesourcery.com>
92
93 * c-common.c (c_common_init): Set options->unsigned_char from
94 flag_signed_char.
95 (cb_register_builtins): Define __STRICT_ANSI__ and
96 __CHAR_UNSIGNED__ here...
97 * cppinit.c (init_builtins): Not here.
98 (cpp_create_reader): unsigned_char option defaults to 0, not
99 !DEFAULT_SIGNED_CHAR.
100 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
101 and -funsigned-char.
102
103 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
104 * cpphash.c (_cpp_init_hashtable): Don't set it.
105 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
106 directly. Clarify comment.
107
d29146f2 1082002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 109
f5eb2fc8
ZD
110 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
111 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
112 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
113 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 114 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 115 flow_preorder_transversal_compute): Too.
d29146f2 116 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
117 find_sub_basic_blocks): Too.
118 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 119 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
120 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
121 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
122 * combine.c (this_basic_block): Type changed to basic_block.
123 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
124 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
125 get_last_value, distribute_notes, distribute_links): Too.
126 * final.c (compute_alignments): Too.
127 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
128 * function.c (thread_prologue_and_epilogue_insns): Too.
129 * gcse.c (compute_code_hoist_vbeinout): Too.
130 * global.c (build_insn_chain): Too.
131 * ifcvt.c (find_if_block, find_cond_trap): Too.
132 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
133 * regmove.c (regmove_optimize): Too.
134 * resource.c (find_basic_block): Too.
135 * sched-ebb.c (schedule_ebbs): Too.
136 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 137
68bd6dd6
AJ
1382002-05-21 Andreas Jaeger <aj@suse.de>
139
140 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
141
35a76aac
RH
1422002-05-21 Richard Henderson <rth@redhat.com>
143
144 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
145 unspec names, not numbers.
146
2870428f
JM
1472002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
148
149 * doc/sourcebuild.texi: Mention snapshot-README and
150 snapshot-index.html as needing updating for new front ends.
151
b0ad77d5
KG
1522002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
153
154 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
155 disabling checking, and avoid multiple evaluation of RTX.
156
279be7c8
RE
1572002-05-21 Richard Earnshaw <rearnsha@arm.com>
158
159 * bitmap.c (bitmap_find_bit): Return early if we have the correct
160 element cached.
161
193a563a
JH
162Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
163
164 * profile.c (gen_edge_profiler): Set alias set before the memory is
165 used.
166
31825e57
DM
1672002-05-20 David S. Miller <davem@redhat.com>
168
169 * cselib.c (max_value_regs): New.
170 (cselib_lookup, cselib_invalidate_regno): Initialize it when
171 adding new entries to the REG_VALUES table and we are dealing with
172 a hard register.
173 (clear_table): Initialize it.
174 (cselib_invalidate_regno): Use it to determine which hard
175 registers to scan when mode is not VOIDmode.
176
68bd6dd6 1772002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
178
179 * tradcpp.c (fixup_newlines): Use old-style function header.
180
e0a09fda
KW
1812002-05-20 Krister Walfridsson <cato@df.lth.se>
182
183 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
184
e0c13c70
L
1852002-05-20 H.J. Lu (hjl@gnu.org)
186
187 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
188
189 * config/mips/mips.h (DFMODE_NAN): Defined.
190 (SFMODE_NAN): Likewise.
191
4c11675d 1922002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 193
2a1dc0d8
ZW
194 * combine.c (cant_combine_insn_p): Back out my
195 previous patch.
4c11675d 196
6a4d6760
KH
1972002-05-20 Kazu Hirata <kazu@cs.umass.edu>
198
199 * params.c: Fix formatting.
200 * params.h: Likewise.
201 * predict.c: Likewise.
202 * prefix.c: Likewise.
203 * print-rtl.c: Likewise.
204 * print-tree.c: Likewise.
205 * profile.c: Likewise.
206
5715ca64
L
2072002-05-20 H.J. Lu (hjl@gnu.org)
208
209 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
210
00b89f01
NC
2112002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
212
213 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
214 switches straight on to the assembler, do not abbreviate them.
215 * config/arm/elf.h (ASM_SPEC): As above.
216 * config/arm/semi.h (ASM_SPEC): As above.
217 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
218 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
219 -mcpu=xscale on to the assembler by default.
220 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
221
1441374b
RH
2222002-05-20 Richard Henderson <rth@redhat.com>
223
224 * cse.c (canon_hash): Reorder do_not_record test. Always
225 allow pic_offset_table_rtx.
226
c0fe508e
TM
2272002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
228
229 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
230 (expand_binop): Ditto (3 times).
231
f362c762
MM
2322002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
233
234 * Makefile.in (distclean): Remove QMTest stuff.
235 (QMTEST_PATH): New variable.
236 (QMTESTFLAGS): Likewise.
237 (QMTESTRUNFLAGS): Likewise.
238 (QMTEST): Likewise.
239 (QMTEST_GPP_TESTS): Likewise.
240 (QMTEST_DIR): Likewise.
241 (QMTEST_DIR/context): New target.
242 (qmtest-g++): Likeise.
243 (qmtest-gui): Likewise.
244 (QMTEST_DIR/gpp-expected.qmr): Likewise.
245
16861f33
AH
2462002-05-19 Aldy Hernandez <aldyh@redhat.com>
247
2a1dc0d8
ZW
248 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
249 an altivec register if TARGET_ALTIVEC.
16861f33 250
2a1dc0d8
ZW
251 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
252 to ALTIVEC_VECTOR_MODE.
253 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
254 (rs6000_va_arg): Vectors may go in registers if they are not
255 altivec vectors.
16861f33 256
23459e15
KH
2572002-05-19 Kazu Hirata <kazu@cs.umass.edu>
258
259 * protoize.c: Fix formatting.
260
174cc7d1
RH
2612002-05-19 Richard Henderson <rth@redhat.com>
262
263 * gensupport.c (init_include_reader): Merge into ...
264 (process_include): ... here. Simplify composite path creation.
265 Plug memory leaks. Fix file/line number tracking. Do not
266 process_define_cond_exec. Return void.
267 (process_rtx): Don't check process_include return value.
268
918ed612
ZD
2692002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
270
271 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
272 fields.
273 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
274 traversing basic block chain.
275 (create_basic_block_structure, create_basic_block): Declaration changed.
276 (link_block, unlink_block): Declare.
277 * cfg.c (entry_exit_blocks): Initialize new fields.
278 (link_block, unlink_block): New.
279 (expunge_block_nocompact): Unlink basic block.
280 (dump_flow_info): Print prev_bb/next_bb fields.
281 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
282 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
283 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
284 * cfgrtl.c (create_basic_block_structure, create_basic_block,
285 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
286 (verify_flow_info): Check that list agrees with numbering.
287
e0322d5c
NB
2882002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
289
290 * c-common.c (preprocessing_asm): New macro.
291 * c-lex.h (builtin_define, builtin_assert): Use pfile.
292doc:
293 * tm.texi: Update.
294config/alpha:
295 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
296 (CPP_SPEC): Simplify.
297 (TARGET_CPU_CPP_BUILTINS): Update.
298 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
299 (CPP_SPEC): Simplify.
300 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
301 (TARGET_OS_CPP_BUILTINS): Update.
302 * osf.h (CPP_XFLOAT_SPEC): Kill.
303 (TARGET_OS_CPP_BUILTINS): Update.
304 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
305 * osf5.h (CPP_XFLOAT_SPEC): Kill.
306 * vms.h (CPP_SUBTARGET_SPEC): Kill.
307 (TARGET_OS_CPP_BUILTINS): Update.
308
121f5c2c
RH
3092002-05-19 Richard Henderson <rth@redhat.com>
310
311 * varasm.c (default_binds_local_p): Fix typo.
312
651c5ed9
MM
3132002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
314
315 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
316 CONST_INT operand to the correct mode after adding 1 to it.
317
bce0deb2
MM
3182002-05-19 Mark Mitchell <mark@codesourcery.com>
319
320 * config.gcc (powerpc-wrs-windiss*): New target.
321
4aa74a4f
FS
3222002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
323
324 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
325 (ashrdi3): Use it.
326
a15135c9
MM
3272002-05-18 Mark Mitchell <mark@codesourcery.com>
328
329 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
330 alphasort.
331 * config.in: Regenerated.
332 * configure: Regenerated.
333
47754fd5
RH
3342002-05-19 Richard Henderson <rth@redhat.com>
335
336 * target-def.h (TARGET_BINDS_LOCAL_P): New.
337 * target.h (struct gcc_target): Move boolean fields to the end.
338 Add binds_local_p.
339 * varasm.c (default_binds_local_p): New.
340 * output.h: Declare it.
341
342 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
343 * config/cris/cris.c (cris_encode_section_info): Likewise.
344 * config/i386/i386.c (i386_encode_section_info): Likewise.
345 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
346 * config/sh/sh.c (sh_encode_section_info): Likewise.
347
348 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
349 (TARGET_BINDS_LOCAL_P): New.
350
fc881338
RH
3512002-05-19 Richard Henderson <rth@redhat.com>
352
353 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
354 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
355 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
356
357 * toplev.c (display_help): Kill -a -ax help.
358
68bd6dd6 359 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
360 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
361 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
362 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
363 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
364
365 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
366 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
367
368 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
369 (ix86_output_function_block_profiler): Kill.
370 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
371 (m68hc11_function_block_profiler): Kill.
372 * config/m68hc11/m68hc11-protos.h: Update.
373 * config/m88k/m88k.c (output_block_profiler): Kill.
374 (output_function_block_profiler): Kill.
375 * config/m88k/m88k-protos.h: Update.
376
772c5265
RH
3772002-05-19 Richard Henderson <rth@redhat.com>
378
379 * system.h (STRIP_NAME_ENCODING): Poison it.
380 * output.h (STRIP_NAME_ENCODING): Remove.
381 (default_strip_name_encoding): Declare.
382 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
383 * target.h (strip_name_encoding): New.
384 * varasm.c (default_strip_name_encoding): New.
385
386 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
387 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
388 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
389 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
390 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
391 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
392 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
393 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
394 config/v850/v850.h: Use the hook, not the macro.
395
396 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
397 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
398 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
399 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
400 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
401 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 402 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
403 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
404 config/v850/v850.c, config/v850/v850.h:
405 Move STRIP_NAME_ENCODING to out-of-line function and add
406 TARGET_STRIP_NAME_ENCODING.
407
408 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
409 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
410 with TARGET_STRIP_NAME_ENCODING referencing existing function;
411 make function static.
412
413 * xcoffout.c: Include target.h
414 * Makefile.in (xcoffout.o): Update.
415
416 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
417 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
418 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
419 reloc argument unused.
420 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
421
422 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
423 STRIP_NAME_ENCODING docs.
424
8f9eb495
AJ
4252002-05-19 Andreas Jaeger <aj@suse.de>
426
427 * gengenrtl.c: Add prototype for excluded_rtx.
428
429 * real.h: Add prototype for exact_real_truncate.
430
fb49053f
RH
4312002-05-18 Richard Henderson <rth@redhat.com>
432
433 * system.h (ENCODE_SECTION_INFO): Poison it.
434 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
435 * target.h (encode_section_info): New.
436 * varasm.c (make_decl_rtl, output_constant_def): Use it.
437 * hooks.c (hook_tree_int_void): New.
438 * hooks.h: Declare it.
439
440 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
441 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
442 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
443 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
444 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
445 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
446 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
447 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
448 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
449 config/mcore/mcore-protos.h, config/mcore/mcore.c,
450 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
451 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
452 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
453 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
454 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
455 referencing existing function. Make function static.
456
457 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 458 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
459 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
460 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
461 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 462 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
463 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
464 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
465 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
466 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 467 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
468 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
469 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
470 Move ENCODE_SECTION_INFO to out-of-line function and add
471 TARGET_ENCODE_SECTION_INFO.
472
473 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
474 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
475
476 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
477 from SUBTARGET_*
478 (switch_to_section): Replace in_rdata case with in_readonly_data.
479
480 * config/h8300/h8300.c (h8300_encode_label): Make static.
481 * config/h8300/h8300-protos.h: Update.
482
483 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
484 from rs6000_encode_section_info; make static.
485 (rs6000_xcoff_encode_section_info): New.
486
487 * config/v850/v850.c (v850_encode_data_area): Make static.
488 * config/v850/v850-protos.h: Update.
489
490 * config/vax/vax.c: Include flags.h.
491 (vms_select_section): Fix typo.
492
493 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
494 ENCODE_SECTION_INFO docs.
495
9fe08fd0
RH
4962002-05-18 Richard Henderson <rth@redhat.com>
497
498 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
499 REGISTER_TARGET_PRAGMAS.
500 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
501
410b770f
RH
502 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
503
b64a1b53
RH
5042002-05-18 Richard Henderson <rth@redhat.com>
505
506 * system.h (SELECT_RTX_SECTION): Poison.
507 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
508 * target.h (select_rtx_section): New.
509 * varasm.c (output_constant_pool): Use it.
510 (default_select_rtx_section, default_elf_select_rtx_section): New.
511 * output.h: Declare them.
512
513 * config/darwin.h (SELECT_RTX_SECTION): Move ...
514 * config/darwin.c (machopic_select_rtx_section): ... here.
515 * config/darwin-protos.h: Update.
516
517 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
518 * config/nextstep.c (machopic_select_rtx_section): ... here.
519 (nextstep_select_section): Rename variable to avoid macro clash.
520 * config/nextstep-protos.h: Update.
521
522 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
523 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
524 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 525 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
526 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
527 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 528 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
529 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
530 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
531 (SELECT_RTX_SECTION): Remove.
532
533 * config/darwin.h, config/elfos.h, config/nextstep.h,
534 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
535 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
536 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
537 config/sparc/lynx.h, config/xtensa/xtensa.c
538 (TARGET_ASM_SELECT_RTX_SECTION): New.
539
540 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
541 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
542 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
543 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
544 (ia64_aix_select_rtx_section): New.
545 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
546 redefining.
547 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 548 Support ELF SHF_MERGE features.
b64a1b53
RH
549 * config/mips/mips-protos.h: Update.
550 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
551 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
552 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
553 make static, fall back to default_elf_select_rtx_section.
554 * config/rs6000/rs6000-protos.h: Update.
555 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
556 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
557 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
558 * config/romp/romp.c (romp_select_rtx_section): New.
559 * config/s390/s390.c (s390_select_rtx_section): New.
560 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
561 declarations before target macro definition.
562 (xtensa_emit_call): Use static buffer.
563 (xtensa_select_rtx_section): New.
564 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
565 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
566 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
567
568 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
569 SELECT_RTX_SECTION docs.
570
571Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
572
573 * i386.md (movsi/movdi): Fix template.
574 (sse2 patterns): Set attributes consistently.
575
576 * i386.md (pushqi2, ashrqi_*): Fix constraint.
577
6835a09c
TM
5782002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
579
580 * optabs.c (complex_part_zero_p): New.
581 * (expand_cmplxdiv_straight): Use it.
582 * (expand_cmplxdiv_wide): Ditto.
583 * (expand_binop): Ditto.
584
d48bc59a
RH
5852002-05-18 Richard Henderson <rth@redhat.com>
586
587 * final.c (HAVE_READONLY_DATA_SECTION): New.
588 (shorten_branches): Use it instead of ifdefs.
589 * varasm.c (enum in_section): Add in_readonly_data.
590 (text_section, data_section): Tidy.
591 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
592
593 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
594 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
595 (READONLY_DATA_SECTION): Don't undef.
596
597 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
598 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
599 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
600
601 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
602 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
603 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
604 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
605
606 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
607 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
608 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
609 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
610 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
611 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
612 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
613 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
614 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
615
616 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
617 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
618 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
619 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
620 config/pa/pa64-hpux.h, config/sparc/litecoff.h
621 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
622
623 * config/elfos.h, config/netware.h, config/svr3.h,
624 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
625 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
626 config/h8300/h8300.h, config/i386/i386-interix.h,
627 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
628 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
629
630 * config/elfos.h, config/netware.h, config/svr3.h,
631 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
632 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
633 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
634 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
635
636 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
637 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
638 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
639 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
640 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
641 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
642 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
643 config/rs6000/sysv4.h, config/v850/v850.h
644 (EXTRA_SECTIONS): Remove in_const/in_rdata.
645 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
646
647 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
648 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
649 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
650 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
651 * config/alpha/alpha.c (alpha_start_function): Likewise.
652 (alpha_write_linkage): Likewise.
653 * config/m32r/m32r.c (m32r_select_section): Likewise.
654 * config/m88k/m88k.c (m88k_select_section): Likewise.
655 * config/mips/mips.c (mips_select_rtx_section): Likewise.
656 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
657 (rs6000_elf_select_section): Likewise.
658 * config/v850/v850.c (v850_select_section): Likewise.
659
660 * config/1750a/1750a.h, config/i860/sysv3.h
661 (READONLY_DATA_SECTION_ASM_OP): New.
662 READONLY_DATA_SECTION_ASM_OP.
663 * config/i386/interix.c, config/i386/winnt.c
664 (i386_pe_unique_section): Always use .rdata prefix.
665 * config/pa/som.h (readonly_data): Always switch to read-only section.
666 (READONLY_DATA_SECTION): Predicate on flag_pic.
667 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
668 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
669 (READONLY_DATA_SECTION): Update.
670
e964a556
JT
6712002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
672
673 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 674 is used without -Wformat.
e964a556
JT
675 * c-common.h (warn_format_zero_length): Declare extern.
676 * c-decl.c (warn_options): Add "format-zero-length".
677 * c-format.c (warn_format_zero_length): Declare.
678 (set_Wformat): Set warn_format_zero_length for -Wformat.
679 (check_format_info): Only warn about zero-length formats if
680 warn_format_zero_length is true. Include the format type
681 name in the warning message.
682 * doc/invoke.texi: Document -Wformat-zero-length.
683 * testsuite/gcc.dg/format/zero-length-1.c: New test.
684
d92b4486
KH
6852002-05-18 Kazu Hirata <kazu@cs.umass.edu>
686
687 * timevar.c: Fix formatting.
688 * tlink.c: Likewise.
689 * toplev.c: Likewise.
690 * tree-dump.c: Likewise.
691 * tree-inline.c: Likewise.
692
43612ffb
NB
6932002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
694
695 * cppinit.c (cpp_post_options): If preprocessed, turn off
696 traditional. If traditional, turn off column numbers.
697 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
698 * cpptrad.c (handle_newline): Update line_base.
699 (skip_comment): Handle -Wcomment.
700
f24a153a
ZW
7012002-05-17 Zack Weinberg <zack@codesourcery.com>
702
703 * cppinit.c (struct builtin): Remove unused fields.
704 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
705 (operator_array): New - was second half of builtin_array.
706 (init_builtins): Simplify loop over builtin_array/operator_array.
707
12403335
NB
7082002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
709
710 * defaults.h (UNIQUE_SECTION): Remove.
711 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
712
1f8c3c5b
RH
7132002-05-17 Richard Henderson <rth@redhat.com>
714
715 * expr.c (init_expr_once): Don't use start/end_sequence.
716 Use rtx_alloc instead of emit_insn.
717 * toplev.c (lang_dependent_init): Run init_expr_once here ...
718 (lang_independent_init): ... not here.
719
4664f4c4
JT
7202002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
721
722 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
723
93febe68
MM
7242002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
725
726 * config/avr/avr.c (avr_regs_to_save): New function. Also check
727 for fixed registers, possibly used for global register variables.
728 (initial_elimination_offset, avr_output_function_prologue,
729 avr_output_function_epilogue): Move common code to avr_regs_to_save.
730
004cb263
NB
7312002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
732
733 * Makefile.in: Update for cpptrad.c.
734 * cpphash.h (struct cpp_buffer): New members for buffer
735 overlays.
736 (struct cpp_reader): New members for traditional output.
737 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
738 * cppinit.c (cpp_create_reader): Set trad_line.
739 (cpp_destroy): Free trad_out_base if used.
740 (cpp_read_main_file): Overlay an empty buffer if traditional.
741 (cpp_finish_options): Don't do builtins.
742 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
743 (cpp_handle_option): Handle it.
744 * cpplex.c (continue_after_nul): New.
745 (_cpp_lex_direct): Use handle_nul.
746 * cpplib.h (struct cpp_options): New traditional option.
747 * cpptrad.c: New file.
748
bdcae02b
NB
7492002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
750
751 * c-common.c (c_common_init_options): Use C89 for Objective-C,
752 and set the options flag.
753 * cppinit.c (lang_flags): Remove objc.
754 (lang_defaults): Remove OBJC and OBJCXX.
755 (set_lang): Update.
756 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
757 (cpp_handle_option): Remove -+ and -lang-objc++.
758 For ObjC, just set a flag.
759 (print_help): Update.
760 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
761
0fca60ab
RO
7622002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
763
764 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
765 bootstrap with -mips3.
766
dd3f0101
KH
7672002-05-17 Kazu Hirata <kazu@cs.umass.edu>
768
769 * final.c: Fix formatting.
770 * fix-header.c: Likewise.
771 * flow.c: Likewise.
772 * fold-const.c: Likewise.
773 * function.c: Likewise.
774
5ca9299f
DM
7752002-05-17 David S. Miller <davem@redhat.com>
776
777 PR c/6689, PR optimization/6615
778 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
779 and make it a pointer to rtx. Update comments.
780 (update_equiv_regs): When scanning for equivalences, record
781 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
782 it while making the equiv replacements.
783
508bc172
RO
7842002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
785
786 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
787
5cd983a6
KK
7882002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
789
790 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
791 when encoding visibility into SYMBOL_REF_FLAG.
792
ce0f3925
RS
7932002-05-17 Richard Sandiford <rsandifo@redhat.com>
794
795 * expr.c (force_operand): Fix reversed move.
796
06809951
GP
7972002-05-17 Kurt Wall <kwall@kurtwerks.com>
798
799 * doc/install.texi (Testing): Mention two common DejaGnu warnings
800 that can be ignored.
801
8022002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
803
804 * doc/install.texi (Final install): Recommend to install into a
805 "clean" target directory.
806
1d5d7a21
RH
8072002-05-17 Richard Henderson <rth@redhat.com>
808
809 * config/ia64/ia64.md: Use braced strings instead of quoted strings
810 for code blocks. Tidy whitespace.
811
ae46c4e0
RH
8122002-05-17 Richard Henderson <rth@redhat.com>
813
814 * hooks.c (hook_tree_bool_false): New.
815 * hooks.h: Declare it.
816 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
817 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
818 * target.h (select_section, unique_section): New.
819 (in_small_data_p): New.
820 * varasm.c (resolve_unique_section): Use hooks instead of macros.
821 (variable_section, output_constant_def_contents): Likewise.
822 (default_select_section, default_unique_section): New.
823 (categorize_decl_for_section, default_elf_select_section): New.
824 * output.h: Declare them.
825
826 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
827 (TARGET_ASM_SELECT_SECTION): New.
828 (SELECT_SECTION): Move ...
829 * config/darwin.c (machopic_select_section): ... here.
830 * config/darwin-protos.h: Update.
831
832 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
833 (SELECT_SECTION): Move ...
834 * config/nextstep.c (nextstep_select_section): ... here.
835 * config/nextstep-protos.h: Update.
836
837 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
838 (TARGET_ASM_SELECT_SECTION): New.
839 * config/svr3.h (SELECT_SECTION): Remove.
840
841 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
842 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
843 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
844 (alpha_encode_section_info): Use it.
845 * config/alpha/alpha-protos.h: Update.
846 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
847 (SELECT_SECTION, UNIQUE_SECTION): Remove.
848 (TARGET_ASM_SELECT_SECTION): New.
849 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
850
851 * config/arm/pe.h (UNIQUE_SECTION): Remove.
852 (TARGET_ASM_UNIQUE_SECTION): New.
853
854 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
855 (avr_unique_section): Rename from unique_section; make static.
856 * config/avr/avr-protos.h: Update.
857 * config/avr/avr.h (UNIQUE_SECTION): Remove.
858
859 * config/c4x/c4x.h (SELECT_SECTION): Remove.
860
861 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
862 (TARGET_ASM_UNIQUE_SECTION): New.
863 * config/i386/i386-interix.h: Likewise.
864 * config/i386/win32.h: Likewise.
865 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
866 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
867 * config/i386/sco5.h (SELECT_SECTION): Remove.
868 (TARGET_ASM_SELECT_SECTION): New.
869 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
870
871 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
872 instead of SELECT_SECTION.
873 * config/m68k/dpx2.h: Likewise.
874 * config/rs6000/lynx.h: Likewise.
875
876 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
877 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
878 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
879 (ia64_in_small_data_p): New.
880 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
881 (ia64_aix_select_section, ia64_aix_unique_section): New.
882 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
883 (SELECT_SECTION, UNIQUE_SECTION): Remove.
884
885 * config/m32r/m32r.h (SELECT_SECTION): Remove.
886 (TARGET_ASM_SELECT_SECTION): New.
887 * config/m32r/m32r.c (m32r_select_section): Take align argument.
888 * config/m32r/m32r-protos.h: Update.
889
890 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
891 (SELECT_SECTION): Move ...
892 * config/m88k/m88k.c (m88k_select_section): ... here.
893
894 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
895 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
896 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
897 (mcore_unique_section): Make static.
898 * config/mcore/mcore-protos.h: Update.
899
900 * config/mips/elf.h (UNIQUE_SECTION): Remove.
901 (TARGET_ASM_UNIQUE_SECTION): New.
902 * config/mips/elf64.h: Likewise.
903 * config/mips/iris6gld.h: Likewise.
904 * config/mips/linux.h: Likewise.
905 * config/mips/mips-protos.h: Update.
906 * config/mips/mips.c (mips_select_section): Add align argument.
907 * config/mips/mips.h (SELECT_SECTION): Remove.
908 (TARGET_ASM_SELECT_SECTION): New.
909
910 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
911 * config/mmix/mmix.c (mmix_select_section): Remove.
912 (mmix_unique_section): Remove.
913 * config/mmix/mmix-protos.h: Update.
914
915 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
916 (SELECT_SECTION): Move ...
917 * config/pa/pa.c (pa_select_section): ... here.
918 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
919
920 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
921 from rs6000_select_section and make static.
922 (rs6000_elf_unique_section): Similarly.
923 (rs6000_xcoff_select_section): From xcoff.h.
924 (rs6000_xcoff_unique_section): Likewise.
925 * config/rs6000/rs6000-protos.h: Update.
926 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
927 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
928 * config/rs6000/xcoff.h: Likewise.
929
930 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
931 (SELECT_SECTION): Move ...
932 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
933
934 * config/v850/v850.h (SELECT_SECTION): Move ...
935 * config/v850/v850.c (v850_select_section): ... here.
936 (TARGET_ASM_SELECT_SECTION): New.
937
938 * config/vax/vms.h (SELECT_SECTION): Move ...
939 * config/vax/vax.c (vms_select_section): ... here.
940 (TARGET_ASM_SELECT_SECTION): New.
941
942 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
943 for the target hooks.
944
eaeb23a7
NC
9452002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
946
947 * config/arm/arm.c (emit_multi_reg_push): Do not set
948 RTX_FRAME_RELATED_P on the SEQUENCE.
949
a00fe19f
RH
9502002-05-16 Richard Henderson <rth@redhat.com>
951
952 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
953 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
954
5ccff482
RH
9552002-05-16 Richard Henderson <rth@redhat.com>
956
957 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
958
068d7739
RH
959 * config/ia64/ia64.c (saveable_obstack): Do not declare.
960
0b17ab2f
RH
9612002-05-16 Richard Henderson <rth@redhat.com>
962
963 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
964 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
965 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
966 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
967 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
968 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
969 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
970 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
971 Revert "Basic block renumbering removal", and two followup patches.
972
8ae86b3c
JT
9732002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
974
975 * lcm.c (optimize_mode_switching): Revert previous change.
976
4e9f27af
ZD
9772002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
978
979 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
980 with only extant block numbers.
981
3cdc1dbc
JT
9822002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
983
984 * lcm.c (optimize_mode_switching): Fix typo.
985
fbfb3b09
ZD
9862002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
987
988 * flow.c (calculate_global_regs_live): Queue blocks in program order.
989
b4b0fb02
RO
9902002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
991
992 * doc/install.texi (Configuration): Document PWDCMD.
993
63b827c5
DJ
9942002-05-16 Dale Johannesen <dalej@apple.com>
995
996 * combine.c (cant_combine_insn_p): Reenable combinations
997 involving hard regs unless CLASS_LIKELY_SPILLED_P.
998
748d29c1
NB
9992002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1000
1001 * c-common.c (cb_register_builtins): Handle more built-ins
1002 here rather than in gcc.c specs.
1003 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
1004 (cpp_options): Pass -O flags even when only preprocessing.
1005 * toplev.c (set_fast_math_flags): New prototype.
1006 (fast_math_flags_set_p): New.
1007 (set_no_fast_math_flags): Remove.
1008 (decode_f_option): Update.
1009 * toplev.h (set_fast_math_flags): Update.
1010 (fast_math_flags_set_p): New.
1011 (set_no_fast_math_flags): Remove.
1012config:
1013 * c4x/c4x.c (c4x_override_options): Update.
1014
5279d739
ZW
10152002-05-16 Zack Weinberg <zack@codesourcery.com>
1016
1017 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
1018 Default-define here.
1019 (builtin_define_with_value): Can now wrap the expansion in
1020 quotation marks if such is wanted.
a00fe19f 1021 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
1022 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
1023 here.
1024 (c_common_init): Set options->stdc_0_in_system_headers.
1025 * c-lex.h: Update prototype of builtin_define_with_value.
1026 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
1027 and REGISTER_PREFIX.
1028
1029 * cppinit.c (VERS, ULP, C, X): Kill.
1030 (builtin_array): Remove entries for __VERSION__,
1031 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
1032 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
1033 a constant.
1034 (init_builtins): Kill off a bunch of now-dead code.
1035 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
1036 -fno-leading-underscore.
1037 (cpp_handle_option): Remove code to set user_label_prefix.
1038 (cpp_post_options): Likewise.
1039
1040 * cpplib.h (struct cpp_options): Remove user_label_prefix.
1041 (stdc_0_in_system_headers): New.
1042 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
1043 stdc_0_in_system_headers) too to decide the value of __STDC__.
1044
1045 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 1046 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
1047 (initialize_builtins): Don't define __REGISTER_PREFIX__
1048 or __USER_LABEL_PREFIX__.
1049 (install_value): Wrap compound statement in dummy loop so the
1050 macro works properly in an if statement.
1051
1052
62e6ca55
JJ
10532002-05-16 Janis Johnson <janis187@us.ibm.com>
1054
1055 * loop.h (struct loop_info): Add member has_prefetch.
1056 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
1057 (prescan_loop): Initialize has_prefetch.
1058 (struct prefetch_info): Change prefetch_in_loop and
1059 prefetch_before_loop from bit fields to ints.
1060 (emit_prefetch_instructions): Several small fixes.
1061 (check_dbra_loop): Don't reverse loop that uses prefetch.
1062
1e6347d8
RO
10632002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1064
1065 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
1066 * configure.in: Likewise.
1067 * fixinc/check.tpl: Likewise.
1068 * fixinc/fixinc.dgux: Likewise.
1069 * fixinc/fixinc.svr4: Likewise.
1070 * fixinc/fixinc.winnt: Likewise.
1071 * fixinc/fixincl.sh: Likewise.
1072 * fixproto: Likewise.
1073 * configure: Regenerate.
1074
355e4ec4
ZD
10752002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1076
1077 Basic block renumbering removal:
1078 * basic_block.h (struct basic_block_def): Renamed index to sindex,
1079 added prev_bb and next_bb fields.
1080 (n_basic_blocks): Renamed to num_basic_blocks.
1081 (last_basic_block): New, index of last basic block.
1082 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1083 traversing basic block chain.
1084 (BLOCK_NUM): index -> sindex.
1085 (create_basic_block_structure, create_basic_block): Declaration changed.
1086 (debug_num2bb): Declare.
1087 (expunge_block_nocompact): Declaration removed.
1088 (link_block, unlink_block, compact_blocks): Declare.
1089 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
1090 * cfg.c (entry_exit_blocks): Initialize new fields.
1091 (clear_edges, alloc_block, expunge_block, cached_make_edge,
1092 redirect_edge_pred, dump_flow_info, dump_edge_info,
1093 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
1094 free_aux_for_edges): Modified.
1095 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
1096 (expunge_block_nocompact): Removed.
1097 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
1098 find_unreachable_blocks, create_edge_list, print_edge_list,
1099 verify_edge_list, flow_edge_list_print, remove_fake_successors,
1100 remove_fake_edges, flow_reverse_top_sort_order_compute,
1101 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1102 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
1103 flow_dfs_compute_reverse_execute): Modified.
1104 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
1105 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
1106 Modified.
1107 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1108 merge_blocks_move_predecessor_nojumps,
1109 merge_blocks_move_successor_nojumps, merge_blocks,
1110 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
1111 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
1112 * cfglayout.c (skip_insns_after_block, label_for_bb,
1113 record_effective_endpoints, scope_to_insns_finalize,
1114 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
1115 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
1116 cfg_layout_duplicate_bb): Modified.
1117 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
1118 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1119 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
1120 flow_loops_find, flow_loop_outside_edge_p): Modified.
1121 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1122 flow_delete_block, compute_bb_for_insn, split_block,
1123 try_redirect_by_replacing_jump, redirect_edge_and_branch,
1124 force_nonfallthru_and_redirect, tidy_fallthru_edge,
1125 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
1126 commit_edge_insertions, commit_edge_insertions_watch_calls,
1127 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
1128 purge_all_dead_edges): Modified.
1129 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
1130 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1131 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
1132 Modified.
1133 * conflict.c (conflict_graph_compute): Modified.
1134 * df.c (FOR_ALL_BBS): Removed.
1135 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1136 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
1137 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
1138 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
1139 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1140 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
1141 * final.c (compute_alignments, final_scan_insn): Modified.
1142 * flow.c (verify_local_live_at_start, update_life_info,
1143 update_life_info_in_dirty_blocks, free_basic_block_vars,
1144 delete_noop_moves, calculate_global_regs_live,
1145 initialize_uninitialized_subregs, allocate_bb_life_data,
1146 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
1147 mark_used_reg, count_or_remove_death_notes): Modified.
1148 * function.c (thread_prologue_and_epilogue_insns): Modified.
1149 * gcse.c (struct null_pointer_info): Change typo of current_block
1150 to basic_block.
1151 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
1152 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
1153 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
1154 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
1155 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
1156 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
1157 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
1158 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
1159 pre_delete, one_pre_gcse_pass, compute_transpout,
1160 invalidate_nonnull_info, delete_null_pointer_checks_1,
1161 free_code_hoist_mem, compute_code_hoist_vbeinout,
1162 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1163 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
1164 compute_store_table, build_store_vectors, insert_insn_start_bb,
1165 insert_store, replace_store_insn, free_store_memory, store_motion):
1166 Modified.
1167 * global.c (global_alloc, global_conflicts, mark_elimination,
1168 build_insn_chain): Modified.
1169 * graph.c (print_rtl_graph_with_bb): Modified.
1170 * haifa-sched.c (sched_init): Modified.
1171 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1172 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
1173 if_convert): Modified.
1174 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
1175 compute_insert_delete, pre_edge_lcm, compute_available,
1176 compute_farthest, compute_nearerout, compute_rev_insert_delete,
1177 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
1178 Modified.
1179 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
1180 * loop.c (loop_dump_aux): Modified.
1181 * predict.c (combine_predictions_for_insn, estimate_probability,
1182 last_basic_block_p, process_note_prediction, process_note_predictions,
1183 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
1184 expensive_function_p, estimate_bb_frequencies,
1185 compute_function_frequency): Modified.
1186 * print-rtl.c (print_rtx): Modified.
1187 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
1188 get_exec_counts, compute_branch_probabilities, compute_checksum,
1189 branch_prob, find_spanning_tree): Modified.
1190 * recog.c (split_all_insns, peephole2_optimize): Modified.
1191 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
1192 convert_regs_1, convert_regs_2, convert_regs): Modified.
1193 * regclass.c (scan_one_insn, regclass): Modified.
1194 * regmove.c (mark_flags_life_zones, regmove_optimize,
1195 combine_stack_adjustments): Modified.
1196 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
1197 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
1198 * reorg.c (dbr_schedule): Modified.
1199 * resource.c (find_basic_block, init_resource_info): Modified.
1200 * sbitmap.c (sbitmap_intersection_of_succs,
1201 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
1202 sbitmap_union_of_preds): Modified.
1203 * sched-deps.c (init_dependency_caches): Modified.
1204 * sched-ebb.c (schedule_ebbs): Modified.
1205 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
1206 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
1207 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
1208 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
1209 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
1210 ssa_const_prop): Modified.
1211 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
1212 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
1213 * ssa.c (remove_phi_alternative, find_evaluations,
1214 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
1215 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
1216 make_regs_equivalent_over_bad_edges,
1217 make_equivalent_phi_alternatives_equival,
1218 compute_conservative_reg_partition,
1219 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
1220 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
1221 Modified.
1222
5a566bed
MM
12232002-05-16 Mark Mitchell <mark@codesourcery.com>
1224
1225 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
1226
48f6efae
NC
12272002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1228
1229 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
1230 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1231 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
1232 calling CONSTANT_POOL_ADDRESS_P.
1233 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
1234 to decide whether to define __arm__ or __thumb.
355e4ec4 1235 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
1236 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1237
b166fadd
NB
12382002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1239
1240 * config/arc/arc.h (CPP_PREDEFINES): Remove.
1241 (CPP_SPEC): Update.
1242 (TARGET_CPU_CPP_BUILTINS): New.
1243
601328bb
NB
12442002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1245
1246 * cpphash.h (cpp_macro): Move here, and make expansion a union.
1247 * cppmacro.c (cpp_macro): Remove.
1248 (enter_macro_context, replace_args, warn_of_redefinition,
1249 _cpp_create_definition, cpp_macro_definition): Update.
1250
ff48be5c
JM
12512002-05-16 Jason Merrill <jason@redhat.com>
1252
1253 * config/mips/mips.c (mips_output_external): Don't do sdata
1254 optimization for a variable with DECL_COMDAT set.
1255
805c42ba
AH
12562002-05-15 Aldy Hernandez <aldyh@redhat.com>
1257
355e4ec4
ZD
1258 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
1259 Cleanups for accepting modifiers on pointers.
1260 Fix predicate typos.
1261 Allow long pointers as well as int pointers.
805c42ba 1262
34fb9ba5
RH
12632002-05-15 Richard Henderson <rth@redhat.com>
1264
1265 * varasm.c (merge_weak): Remove special case for extern and common.
1266
62e118f5
MH
12672002-05-15 Matt Hiller <hiller@redhat.com>
1268
1269 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 1270 XFAILing.
62e118f5
MH
1271 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
1272 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
1273 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
1274 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
1275 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
1276 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
1277
fefac463
AH
12782002-05-15 Aldy Hernandez <aldyh@redhat.com>
1279
355e4ec4 1280 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 1281
5f004351
AH
12822002-05-15 Aldy Hernandez <aldyh@redhat.com>
1283
355e4ec4
ZD
1284 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
1285 ("altivec_mfvscr"): Read from VSCR.
1286
1287 Add vscr sets for the following insns: altivec_vctuxs,
1288 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
1289 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
1290 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
1291 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
1292 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
1293 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
1294 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
1295 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
1296 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
1297 altivec_vsum2sws, altivec_vsumsws.
1298
1299 * config/rs6000/rs6000.h: Add VSCR fixed register.
1300 (CALL_REALLY_USED_REGISTERS): Add vscr.
1301 (CALL_USED_REGISTERS): Same.
1302 (FIXED_REGISTERS): Same.
1303 (REG_ALLOC_ORDER): Same.
1304 (reg_class): Add VSCR_REGS.
1305 (REG_CLASS_NAMES): Same.
1306 (REG_CLASS_CONTENTS): Same.
1307 (VSCR_REGNO): New.
1308 (REGISTER_NAMES): Add vscr.
1309 (DEBUG_REGISTER_NAMES): Same.
1310 (ADDITIONAL_REGISTER_NAMES): Same.
1311 (FIRST_PSEUDO_REGISTER): Increment.
1312 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 1313
033afd11
RH
13142002-05-15 Jakub Jelinek <jakub@redhat.com>
1315
1316 * fold-const.c (fold): Fix a typo.
1317
13182002-05-15 Eric Botcazou <ebotcazou@multimania.com>
1319
1320 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
1321 comparison against the highest or lowest integer value before
1322 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
1323 transformation and that of an unsigned comparison against 0
1324 right after.
1325
14285ace
RH
13262002-05-15 Richard Henderson <rth@redhat.com>
1327
1328 * varasm.c (merge_weak): Error for any weakening after definition.
1329 Adjust weakening after use warning to catch more cases.
1330 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
1331 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
1332
194734e9
JH
1333Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1334
1335 * invoke.texi (-malign-double): Re-add lost warning.
1336
1337 * i386-protos.h (x86_output_mi_thunk): Declare.
1338 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
1339 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
1340
1341 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
1342 when flag_asynchronous_unwind_tables is set.
1343
1344 * flags.h (flag_reorder_functions): Declare.
1345 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 1346 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
1347 * Makefile.in (predict.o): Add dependency on target.h and params.h
1348 * defaults.h (HOT_TEXT_SECTION_NAME,
1349 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
1350 * predict.c (choose_function_section): New function.
1351 (estimate_bb_frequencies): Use it.
1352 * toplev.c (flag_reorder_functions): New global variable.
1353 (lang_independent_options): New.
1354 (parse_options_and_default_flags): Set.
1355 * varasm.c (assemble_start_function): Bypass functdion alignment
1356 for never executed functions.
1357 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
1358 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
1359 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1360 Document.
1361
1362 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
1363
1364 * predict.c: Inlude profile.h
1365 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
1366 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
1367 Use the information about maximal counter in the program.
1368
1369 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
1370
1371 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
1372 probably_never_executed_bb_p): New functions.
1373 * cfgcleanup.c (outgoing_edges_match): Use them.
1374 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
1375 (maybe_hot_bb_p, probably_cold_bb_p,
1376 probably_never_executed_bb_p): New functions.
1377
1378 * function.h (function): Add new field function_frequency.
1379 * predict.c (compute_function_frequency): New function.
1380 (estimate_probability): Call it.
1381
61ad9a34
JJ
13822002-03-09 Jakub Jelinek <jakub@redhat.com>
1383
1384 PR optimization/5172, optimization/5200
1385 * gcse.c (gcse_main): Disable store_motion.
1386
a11eba95
ZW
13872002-05-14 Zack Weinberg <zack@codesourcery.com>
1388
1389 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
1390 (c_common_nodes_and_builtins): Use it.
1391 (builtin_define_with_value): New function.
1392 (cb_register_builtins): Define __SIZE_TYPE__,
1393 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
1394 using builtin_define_with_value. Use consistent notation when
1395 defining __GXX_WEAK__.
1396 (WCHAR_TYPE_SIZE): Don't redefine.
1397 (combine_strings): Don't use WCHAR_TYPE_SIZE.
1398
1399 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
1400 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
1401 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
1402 * tradcpp.c (initialize_builtins): Likewise.
1403 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
1404
1405 * c-lex.h (builtin_define_with_value): Prototype.
1406 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
1407 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
1408 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
1409
1410 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
1411 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
1412 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
1413 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
1414 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
1415 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
1416 config/sparc/sol2-bi.h, config/sparc/sparc.h:
1417 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
1418 to __SIZE_TYPE__ etc from all spec strings. When this makes
1419 extra specs empty, delete them.
1420
1c31ecf6
JDA
14212002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
1422
1423 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
1424 for PA8000 or generating dwarf2 call frame information.
1425 (output_call): Remove DO_FRAME_NOTES check from return pointer
1426 optimization.
1427 (following_call): Return 0 when scheduling for PA8000 or generating
1428 dwarf2 call frame information. Revise comment.
1429
ac9cfada
NB
14302002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1431
1432config/alpha:
1433 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
1434 and __IEEE_FP_INEXACT as appropriate.
1435 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
1436 (CPP_SPEC): Remove ieee defines.
1437 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
1438
9b690711
RH
14392002-05-14 Richard Henderson <rth@redhat.com>
1440
1441 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
1442 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
1443
e6471be6
NB
14442002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1445
e6471be6
NB
1446 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
1447 (CPP_SPEC): Update.
1448 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
1449 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
1450 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
1451 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
1452 (EXTRA_SPECS): Update.
1453 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
1454 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
1455 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
1456 define TARGET_OS_CPP_BUILTINS if necessary.
1457
e5f5feea
NB
14582002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1459
1460 * gcc.c (cpp_options): Must pass -m* and -f* options
1461 to the front end even when only preprocessing.
1462 (cc1_options): Remove redundant -lang-c.
1463 * tradcpp.c (main): Ignore -m options.
1464objc:
1465 * lang-specs.h: Similarly.
1466
317638a8
VM
14672002-05-14 Vladimir Makarov <vmakarov@redhat.com>
1468
1469 * genautomata.c (transform_3): Add code for transformation
1470 `(A,B,...)+C -> A+C,B,...'.
1471
4d604303
JH
1472Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
1473
1474 * final.c (end_final): Do not output profile_arcs constructor, when
1475 no functions are instrumented.
1476
b18b06ed
JH
1477Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
1478
1479 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
1480
a12f97f0
GP
14812002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1482
1483 * doc/install.texi: Remove special markup originally required for
1484 HTML generation with texi2html.
1485
c1ae3eb4
AS
14862002-05-14 Andreas Schwab <schwab@suse.de>
1487
1488 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
1489 SELECT_SECTION.
1490 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
1491
1492 * varasm.c (resolve_unique_section): Add third parameter
1493 flag_function_or_data_sections and use it instead of
1494 flag_function_sections.
1495 (assemble_start_function): Pass flag_function_sections.
1496 (asm_emit_uninitialised): Pass flag_data_sections.
1497 (assemble_variable): Likewise.
1498
8ee41eaf
RH
14992002-05-14 Richard Henderson <rth@redhat.com>
1500
1501 * config/i386/i386.md: Use define_constants for unspec numbers.
1502 * config/i386/i386.c: Likewise.
1503
e6471be6
NB
15042002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1505
1506 * doc/contrib.texi: Update my entry.
1507
c297b764
MM
15082002-05-13 Mark Mitchell <mark@codesourcery.com>
1509
1510 * fixinc/inclhack.def (winidss_valist): Limit applicability.
1511 * fixinc/fixincl.x: Regenerated.
1512 * fixinc/tests/base/math.h: Update.
1513 * fixinc/tests/base/testing.h: Likewise.
1514
0b42c8f8
ZW
15152002-05-13 Zack Weinberg <zack@codesourcery.com>
1516
1517 * genattr.c (gen_attr): Don't emit a comma after the last
1518 enumerator.
1519
546c093e
RH
15202002-05-13 Richard Henderson <rth@redhat.com>
1521
1522 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
1523 by non-local gotos.
1524 * recog.c (peephole2_optimize): Likewise.
1525
85be8c2d
AP
15262002-05-13 Andris Pavenis <pavenis@lanet.lv>
1527
1528 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
1529 input to O_BINARY.
1530
765b8f90
JL
15312002-05-13 Jeffrey A Law (law@redhat.com)
1532
fe4b3c79
JL
1533 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
1534 Update prototype and callers.
1535 (propagate_one_insn): Stack pointer adjustments kill MEMs on
1536 the mem_set_list which reference the stack pointer, as do
1537 calls to constant functions as they may clobber outgoing
1538 argument space.
1539
16133d00
JL
1540 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
1541
765b8f90
JL
1542 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1543 (ia32_multipass_dfa_lookahead): New function.
1544
63826d5b
NB
15452002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1546
1547 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
1548 (translate_options): Remove 'V'.
1549 (process_command): Similarly.
1550doc:
1551 * invoke.texi: Remove documentation of 'V'.
1552
dcb41ced
UW
15532002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1554
1555 * config/s390/linux.h: Revert 2002-04-22 changes.
1556
8dfea428
SM
15572002-05-13 Scott Marks <SMarks@mobile-mind.com>
1558
1559 * config/fr30/fr30.md: Only allow splits of immediate loads
1560 if the destination is a register.
1561
12a41c22
NB
15622002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1563
1564 * Makefile.in (c-common.o, cppinit.o): Update.
1565 * c-common.c: Include except.h.
1566 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
1567 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
1568 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
1569 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
1570 CPP_PREDEFINES): Handle here.
1571config:
1572 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
1573 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
1574 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
1575 TARGET_OS_CPP_BUILTINS.
1576 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
1577 (CPP_SPEC, EXTRA_SPECS): Update.
1578 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
1579 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
1580 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
1581 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
1582 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
1583doc:
1584 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
1585 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
1586
5692c7bc
ZW
15872002-05-12 Zack Weinberg <zack@codesourcery.com>
1588
1589 * emit-rtl.c (global_rtl): Update comment.
1590 (const_double_htab, const_double_htab_hash,
1591 const_double_htab_hash, lookup_const_double): New.
1592 (const_int_htab_hash, const_int_htab_eq): Remove const
1593 qualifiers, which cause tons of warnings with RTL checking on.
1594 (gen_rtx_CONST_DOUBLE): Deleted.
1595 (const_double_from_real_value): New function - bears some
1596 resemblance to the former immed_real_const_1.
1597 (immed_double_const): Moved here from varasm.c and
1598 simplified.
1599 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
1600 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
1601 (gen_rtx): Use immed_double_const.
1602 (init_emit_once): Initialize the const_double_htab. Use
1603 REAL_VALUE_FROM_INT where possible. Can now use
1604 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
1605 * varasm.c (struct varasm_status): Remove x_const_double_chain.
1606 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
1607 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
1608 (init_varasm_status, mark_varasm_status): Don't touch
1609 x_const_double_chain.
1610
1611 * output.h: Delete prototype for clear_const_double_mem.
1612 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
1613 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
1614 const_double_from_real_value, not immed_real_const_1, and use
1615 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
1616 CONST_DOUBLE_ATOF.
1617 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
1618 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
1619 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
1620 (gen_rtx_REG): Second arg is unsigned.
1621
1622 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
1623 (excluded_rtx): New, return true for CONST_DOUBLE.
1624 (genmacro): Write nothing for excluded codes.
1625 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
1626 * expr.c (expand_expr): Likewise.
1627 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
1628 CONST_DOUBLE_CHAIN.
1629 * toplev.c (rest_of_compilation): Don't call
1630 clear_const_double_mem.
1631
1632 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
1633 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
1634 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
1635 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
1636 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
1637 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
1638 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
1639 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
1640
31397a7b
KG
16412002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1642
1643 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1644
1b70d38a
TT
16452002-05-12 Tom Tromey <tromey@redhat.com>
1646
1647 * tree.h (copy_node): Don't mention TREE_PERMANENT.
1648
9a5834ae
ZW
16492002-05-12 Zack Weinberg <zack@codesourcery.com>
1650
1651 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
1652 (scan_comma_elt): New function. Accepts whitespace in comma lists.
1653 * gensupport.h: Prototype new routines.
1654 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
1655 use of printf.
1656 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
1657 (next_comma_elt): Use scan_comma_elt.
1658
1659 * config/i386/i386.md: Use new attribute notation to break up
1660 long lines in define_attr forms.
1661
51286de6
RH
16622002-05-12 Richard Henderson <rth@redhat.com>
1663
1664 * expr.c (compress_float_constant): New.
1665 (emit_move_insn): Use it.
1666 (float_extend_from_mem): New.
1667 (init_expr_once): Initialize it.
1668 * real.c (exact_real_truncate): New.
1669
1670 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1671 dropped into memory; penalize for size.
1672 (RTX_COSTS): FLOAT_EXTEND is free.
1673 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1674 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1675
6412341e
RH
16762002-05-12 Richard Henderson <rth@redhat.com>
1677
1678 * profile.h (profile_info): Add missing extern to declaration.
1679 * profile.c (profile_info): Define it.
1680
12877f09
JDA
16812002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1682
1683 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1684 used for DImode and TImode.
1685
387f9e32
NB
16862002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
1687
1688 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1689 fake a newline.
1690
e1a0f69c
ZW
16912002-05-11 Zack Weinberg <zack@codesourcery.com>
1692
1693 * config/rs6000/rs6000.c (rs6000_default_long_calls,
1694 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1695 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1696 (rs6000_override_options): Handle -m(no-)longcall.
1697 (init_cumulative_args, output_mi_thunk): Check for both
1698 longcall and shortcall attributes on the function.
1699 (rs6000_attribute_table): Add "shortcall".
1700 (rs6000_handle_longcall_attribute): Update comment.
1701 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1702 altivec_expand_ternop_builtin): Add default clauses to switches
1703 to silence warnings.
1704
1705 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1706 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
1707 (TARGET_OPTIONS): Add longcall and no-longcall.
1708
1709 * config/rs6000/rs6000.md (call_nonlocal_sysv,
1710 call_value_nonlocal_sysv): Split by alternatives. One pair
1711 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1712 the call cookie. The other pair accepts only LR/CTR and has
1713 no restriction.
1714
1715 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1716 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1717 tmake_file.
1718 * config/rs6000/rs6000-c.c: New file.
1719 * config/rs6000/t-rs6000-c-rule: New file.
1720 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1721 Prototype rs6000_pragma_longcall.
1722
1723 * doc/extend.texi: Document shortcall attribute.
1724 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1725
9c64026d
JDA
17262002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1727
1728 * reorg.c (dbr_schedule): Remove unnecessary test.
1729
6c81a490
JH
1730Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1731
1732 * i386.md (testsi to testqi spliters): New.
1733
1734 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
1735
1736 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1737
1738 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
1739
1740 * basic-block.h: New flag EDGE_CAN_FALLTHRU
1741 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1742 that can be made fallthru.
1743
1744 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
1745
1746 * cfglayout.c (cleanup_unconditional_jumps): New static function.
1747 (cfg_layout_initialize): Use it.
4c476cf3 1748
e4447d94
MM
17492002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
1750
1751 * config/avr/avr.c (avr_mcu_types): Update supported devices.
1752 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1753 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1754
3a538a66
KH
17552002-05-11 Kazu Hirata <kazu@cs.umass.edu>
1756
1757 * dbxout.c: Fix formatting.
1758 * dependence.c: Likewise.
1759 * df.c: Likewise.
1760 * diagnostic.c: Likewise.
1761 * doloop.c: Likewise.
1762 * dominance.c: Likewise.
1763 * doschk.c: Likewise.
1764 * dwarf2asm.c: Likewise.
1765 * dwarf2out.c: Likewise.
1766 * dwarfout.c: Likewise.
1767
2292e8fc
RH
17682002-05-10 Richard Henderson <rth@redhat.com>
1769
1770 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
1771 Convert integers constants as needed. Replace "nwords" field with
1772 "sizeof_bb".
1773 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1774 * function.h: Fix typo in comment.
1775 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1776
dbfb1116
RS
17772002-05-10 Roger Sayle <roger@eyesopen.com>
1778
1779 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1780 into the equivalent (signed char)c > 0.
1781
79a497cd
JJ
17822002-05-10 Janis Johnson <janis187@us.ibm.com>
1783
1784 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1785 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1786 (struct prefetch_info): Fix spelling of member bytes_accessed.
1787 (emit_prefetch_instructions): Make dump messages more regular;
1788 restructure code to add more dump messages; use new macros for
1789 heuristics. (There are no code generation changes in any of this).
1790
6c45cb0d
DM
17912002-05-10 David S. Miller <davem@redhat.com>
1792
7440af14
DM
1793 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1794 (struct rtx_def): Update unchanging flag comment.
1795 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1796 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1797 to be handled to INSN too.
1798 (dbr_schedule): Likewise.
1799 * resource.c (next_insn_no_annul): Likewise.
1800
6c45cb0d
DM
1801 * cse.c (rtx_cost): Remove multiplication by power of 2 special
1802 casing.
1803
29f21e4f
GP
18042002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1805
1806 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1807 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1808 (possibly) work around broken /bin/sh.
1809
e4ba88da
RO
18102002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1811
1812 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1813 . as N64/N32 libgcc_s.so subdirs.
1814
4f4778ee
DM
18152002-05-10 David S. Miller <davem@redhat.com>
1816
1817 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
1818
1819 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1820 more accurately.
1821 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1822 comment.
1823 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1824 * doc/rtl.texi: Document these macros more accurately.
1825 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1826 JUMP_INSNs and CALL_INSNs.
1827 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1828 or INSN_FROM_TARGET_P if the code is appropriate.
1829
1a499b92
MM
18302002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1831
1832 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1833 before using SYMBOL_REF_FLAG (addr).
1834
1835 * config/avr/avr-protos.h (avr_io_address_p): Declare.
1836 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1837 Make non-static. Update all callers.
1838 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1839 New insns to clear/set/test a single bit in I/O address space.
1840
65212b66
KG
18412002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1842
1843 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1844
3df89291
NB
18452002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1846
1847 * Makefile.in: Update.
1848 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1849 builtin_define_std): New.
1850 (c_common_init): Register CPP builtins callback.
1851 * c-common.h (flag_iso, flag_undef): New.
1852 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1853 * c-lex.c: Don't include target.h.
1854 (cb_register_builtins): Move to c-common.c.
1855 (init_c_lex): Don't register hook here.
1856 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1857 (cpp_define, cpp_assert): Remove.
1858 * gcc.c (cc1_options): Pass -undef to front end.
1859 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1860 (TARGET_INITIALIZER): Update.
1861 * target.h (struct cpp_reader): Don't predeclare.
1862 (struct gcc_target): Remove cpp builtin hook.
1863 * tree.c (default_register_cpp_builtins): Remove.
1864doc:
1865 * tm.texi: Update.
1866
32fa4565
NB
18672002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1868
1869 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1870
23357c55
RO
18712002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1872
1873 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1874 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1875
5aa26af0
JJ
18762002-05-09 Jakub Jelinek <jakub@redhat.com>
1877
1878 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1879 * config/sparc/libgcc-sparc-glibc.ver: New file.
1880 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1881 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1882
2937267b
JJ
18832002-05-09 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR target/6429
1886 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1887 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1888 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1889 base multilibs.
1890 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1891 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1892 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1893 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1894
086c0f96
RH
18952002-05-09 Richard Henderson <rth@redhat.com>
1896
1897 * config/ia64/ia64.md: Use define_constants for unspec numbers.
1898 * config/ia64/ia64.c: Likewise.
1899
a8b4881f
RS
19002002-05-09 Richard Sandiford <rsandifo@redhat.com>
1901
1902 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1903 (save_restore_insns): Likewise.
1904 (mips_expand_prologue, mips_expand_epilogue): Update callers.
1905 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1906
890d52e8
JL
1907Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
1908
af2728a4
JL
1909 * athlon.md, k6.md, pentium.md, ppro.md): New files.
1910 * i386.md: Move scheduling information into new files.
1911
890d52e8
JL
1912 * i386.md (type attribute): Add "rotate" for rotate insns.
1913 (rotate insns): Set type to "rotate".
1914 (various attributes and function units): Treat rotate like shift.
1915 (pent_pair attribute): Only rotates by one bit position are
1916 pairable.
1917 (sbb insns): Explicitly set pent_pair attribute on a couple
1918 that were missing it.
1919
f78ec36a
R
1920Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1921
1922 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1923 make sure that buffer starts on odd word address.
1924 (sh_va_arg): Skip odd fp registers when reading a double precision
1925 value.
1926
ff431459
NB
19272002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1928
1929 * tree.h (preserve_data, object_permanent_p, type_precision):
1930 Remove.
1931
c3bf3e6e
NB
19322002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1933
1934 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1935 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1936doc:
1937 * cpp.texi: Update for removal of obsolete features.
1938
02263a8a
JH
1939Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
1940 Jeffrey A Law (law@redhat.com)
1941
1942 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
1943 the DFA interface for Pentium processors.
1944 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1945 (attr_pent_pair, ix86_pent_find_pair): Remove.
1946 (ix86_sched_reorder_pentium): Remove.
1947 (ix86_sched_reorder): Remove reordering for Pentium.
1948 * i386.md (Pentium scheduling): Rewrite using DFA description.
1949
3e638a90
JH
1950Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1951
1952 * cfganal.c (can_fallthru): Fix fast path.
1953 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1954 with edges to the next block.
1955
b7c9bf28
JH
1956Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
1957 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1958
1959 * final.c (end_final): Use C trees to output data structures for profiling.
1960
1961 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
1962 (profile.o): New dependency profile.h
1963 (final.o): New dependency profile.h
1964 * profile.h: New file. New global structure profile_info.
1965 * final.h (count_edges_instrumented_now): Declare.
1966 (current_function_cfg_checksum): Declare.
1967 (function_list): New structure.
1968 (functions_head, functions_tail): New static variables.
1969 (end_final): Emits more data, removed some -ax stuff.
1970 (final): Stores function names and chcksums.
1971 * gcov-io.h (__write_gcov_string): New function.
1972 (__read_gcov_string): New function.
1973 * gcov.c (read_profile): New function.
1974 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 1975 da_file.
5692c7bc
ZW
1976 (read_files): Removed da_file checking, it's done by read_profile now.
1977 * libgcc2.c (bb_function_info): New structure.
1978 (bb): New field in structure, removed some -ax stuff.
1979 (__bb_exit_func): Changed structure of da_file.
1980 * profile.c (count_edges_instrumented_now): New global variable.
1981 (current_function_cfg_checksum): New global variable.
1982 (max_counter_in_program): New global variable.
1983 (get_exec_counts): New function.
1984 (compute_checksum): New function.
1985 (instrument_edges): Sets count_edges_instrumented_now.
1986 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 1987 reading da_file.
5692c7bc
ZW
1988 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1989 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 1990 now.
5692c7bc 1991 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 1992 now.
5692c7bc 1993 * gcov.texi: Updated information about gcov file format.
b7c9bf28 1994
786de7eb
KH
19952002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1996
1997 * sbitmap.c: Fix formatting.
1998 * scan.c: Likewise.
1999 * scan-decls.c: Likewise.
2000 * sched-deps.c: Likewise.
2001 * sched-ebb.c: Likewise.
2002 * sched-rgn.c: Likewise.
2003 * sched-vis.c: Likewise.
2004 * sdbout.c: Likewise.
2005 * sibcall.c: Likewise.
2006 * simplify-rtx.c: Likewise.
2007 * ssa.c: Likewise.
2008 * ssa-ccp.c: Likewise.
2009 * ssa-dce.c: Likewise.
2010 * stmt.c: Likewise.
2011 * stor-layout.c: Likewise.
2012 * stringpool.c: Likewise.
2013
b7764693
DM
20142002-05-09 David S. Miller <davem@redhat.com>
2015
2016 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
2017
4e7d5d27
DM
20182002-05-07 David S. Miller <davem@redhat.com>
2019
2020 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
2021 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
2022 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
2023 library implementation clobbers the output before the inputs
2024 are fully consumed, use stack temporary for the output.
2025
f979570e
JT
20262002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
2027
2028 * config/netbsd.h (CPP_SPEC): Remove.
2029 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
2030 * config/i386/netbsd.h (CPP_SPEC): Define.
2031 * config/ns32k/netbsd.h (CPP_SPEC): Define.
2032 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
2033 * config/sparc/netbsd.h (CPP_SPEC): Define.
2034 * config/vax/netbsd.h (CPP_SPEC): Define.
2035
a6a2274a
KH
20362002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2037
2038 * read-rtl.c: Fix formatting.
2039 * real.c: Likewise.
2040 * recog.c: Likewise.
2041 * regclass.c: Likewise.
2042 * regmove.c: Likewise.
2043 * reg-stack.c: Likewise.
2044 * reload1.c: Likewise.
2045 * reload.c: Likewise.
2046 * resource.c: Likewise.
2047 * rtlanal.c: Likewise.
2048 * rtl.c: Likewise.
2049 * rtl-error.c: Likewise.
2050
461b48d5
JDA
20512002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2052
2053 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
2054 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
2055
95d075ff
BS
20562002-05-08 Bernd Schmidt <bernds@redhat.com>
2057
2058 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
2059 use __SSE2__ macro instead.
2060 * config/i386/xmmintrin.h: Likewise.
2061
2d4cc6a7
JJ
20622002-05-08 Janis Johnson <janis187@us.ibm.com>
2063
2064 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
2065 and use it in all invocations of these macros. Clean up comments.
2066 * rtl.c (rtl_check_failed_flag): Add an argument for the name
2067 of the flag access macro whose check failed.
2068 * doc/rtl.texi (Flags): Document additional flag uses.
2069
3f8ffc7c
RS
20702002-05-08 Robert Spier <rspier@pobox.com>
2071 Neil Booth <neil@daikokuya.demon.co.uk>
2072
2073 PR preprocessor/6521
2074 * cppfiles.c (handle_missing_header): Don't do anything
2075 different for <> includes.
2076doc:
2077 * cppopts.texi: Update documentation for -MG.
2078
b9e2d17b
NB
20792002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
2080
2081 * cpplex.c (cpp_interpret_charconst): Truncate as well as
2082 sign-extend.
2083doc:
2084 * cpp.texi: Clarify multichar charconst valuation.
2085
8d8269fa
MM
20862002-05-08 Mark Mitchell <mark@codesourcery.com>
2087
2088 * doc/invoke.texi: Document -mwindiss option.
2089
29b91443
JM
20902002-05-08 Jason Merrill <jason@redhat.com>
2091
2092 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
2093
2094 * dwarf2out.c (gen_type_die): Abort on broken recursion.
2095
2096 PR c++/6381
2097 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
2098 REAL_CST.
2099
6c76b950
NC
21002002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
2101
2102 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
2103 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 2104 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
2105 multilibs for the Thumb.
2106
f90bf7ca
MM
21072002-05-08 Mark Mitchell <mark@codesourcery.com>
2108
2109 PR c/6569.
2110 * varasm.c (mark_weak): New function.
2111 (merge_weak): Use it. Do not call declare_weak.
2112 (declare_weak): Use merge_weak.
2113
1e150f2c
JH
2114Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2115
2116 * cse.c (dead_libcall_p): Update counts.
2117 (delete_trivially_dead_insns): Update call of dead_libcall_p.
2118
969d70ca
JH
2119Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2120
2121 * cfglayout.c (function_tail_eff_head): Rename to ...
2122 (function_footer): ... this one.
2123 (unlink_insn_chain): New functions.
2124 (label_for_bb): Only call block_label and emit debug message.
2125 (record_effective_endpoints): Actually unlink the headers and footers.
2126 (fixup_reorder_cahin): Re-insert the unlinked sequences.
2127 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
2128 * cfglayout.h (struct reorder_block_def): New fields footer/header;
2129 remove eff_head/eff_end.
2130 * rtl.h (set_first_insn): Declare.
2131 * emit-rtl.c (set_first_insn): New function.
2132
2133 * cfglayout.c (fixup_reorder_chain): Dump duplicated
2134 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2135 cfg_layout_duplicate_bb): New global function.
2136 (duplicate_insn_chain): New static function.
2137 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2138 cfg_layout_duplicate_bb): Declare.
2139 (struct reorder_block_def): Add "original" field.
2140 * emit-rtl.c (emit_copy_of_insn_after): New function.
2141 * rtl.h (emit_copy_of_insn_after): Declare.
2142
2143 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
2144 (fixup_reorder_chain): properly handle edges to exit block.
2145
2146Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2147 Jan Hubicka <jh@suse.cz>
2148
2149 * basic-block.h (note_prediction_to_br_prob): declare.
2150 * c-semantics.c: Inlucde predit.h
2151 (expand_stmt): predict GOTO_STMT as not taken.
2152 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
2153 (cleanup_cfg): Do not free tail_recursion_list.
2154 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
2155 (flow_delete_block): Kill predictions past end of basic block.
2156 * output.h (delete_unreachable_blocks): Declare.
2157 * predict.c (predicted_by_p, process_note_predictions,
2158 process_note_prediction, last_block_p): New function.
2159 (estimate_probability): Bypass loop on PRED_CONTINUE;
2160 do not handle noreturn heuristics; kill PRED_RETURN; add
2161 PRED_EARLY_RETURN.
2162 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
2163 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
2164 * predict.h (IS_TAKEN): New constant.
2165 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
2166 * rtl.c (NOTE_INSN_PREDICTION): New.
2167 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
2168 New macro.
2169 (insn_note): add NOTE_INSN_PREDICTION.
2170 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
2171 CFG; free tail_recursion_label_list.
2172 * stmt.c: Include predict.h;
2173 (return_prediction): New.
2174 (expand_value_return): Use it.
2175 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
2176
41f8d041
RS
21772002-05-08 Richard Sandiford <rsandifo@redhat.com>
2178
2179 * config/mips/mips.md: Name the unspecs with define_constant.
2180 (*HILO_delay): Rename to 'hilo_delay' (no star).
2181 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
2182 (reload_outdi, reload_outsi): Likewise.
2183
9cabb1d8
KH
21842002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2185
2186 * toplev.c: Fix formatting.
2187
4c76f856
JJ
21882002-05-07 Janis Johnson <janis187@us.ibm.com>
2189
2190 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
2191 * configure.in (ac_rtlflag_checking): New.
2192 * doc/install.texi (--enable-checking): Document RTL flag checking.
2193
44a147ad
NB
21942002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2195
2196 * c-common.c (c_common_init): Set options->unsigned_wchar.
2197 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
2198 group target dependencies.
2199 (init_builtins, cpp_handle_option): Update.
2200 * cpplex.c (cpp_interpret_charconst): Update.
2201 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
2202 signed_char to unsigned_char, group target dependencies.
2203 * defaults.h (WCHAR_UNSIGNED): Remove.
2204 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
2205config:
2206 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
2207 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
2208 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
2209 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
2210 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
2211doc:
2212 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
2213
cace4f93
MM
22142002-05-07 Mark Mitchell <mark@codesourcery.com>
2215
2216 * fixinc/inclhack.def (windiss_math1): New fix.
2217 (windiss_math2): Likewise.
2218 (windiss_valist): Likewise.
2219 * fixinc/fixincl.x: Regenerated.
2220
e2ff6cee
AJ
22212002-05-07 Andreas Jaeger <aj@suse.de>
2222
2223 * genautomata.c (output_internal_min_issue_delay_func): Add
2224 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
2225 (output_internal_trans_func): Likewise.
2226
bdad4be5
JL
2227Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
2228
2229 * pa.c (hppa_profile_hook): Use force_reg to get the address
2230 of the profile hook into an appropriate pseudo register.
2231
a1ffecd9
MM
22322002-05-07 Mark Mitchell <mark@codesourcery.com>
2233
2234 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
2235 (LINK_START_SPEC): Handle it.
2236 (LINK_OS_SPEC): Likewise.
2237 (CPP_SPEC): Likewise.
2238 (STARTFILE_SPEC): Likewise.
2239 (LIB_SPEC): Likewise.
2240 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
2241 all platforms.
2242 (CRTSAVRES_DEFAULT_SPEC): New macro.
2243 (LIB_WINDISS_SPEC): New macro.
2244 (CPP_OS_WINDISS_SPEC): Likewise.
2245 (STARTFILE_WINDISS_SPEC): Likewise.
2246 (ENDFILE_WINDISS_SPEC): Likewise.
2247 (LINK_START_WINDISS_SPEC): Likewise.
2248 (LINK_OS_WINDISS_SPEC): Likewise.
2249 * config/rs6000/windiss.h: New file.
e2ff6cee 2250
df966bff
AH
22512002-05-07 Aldy Hernandez <aldyh@redhat.com>
2252
a5c76ee6 2253 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 2254
db84f1bd
DM
22552002-05-06 David S. Miller <davem@redhat.com>
2256
2257 * config/sparc/sparc.md (shift insns): Do not mask off
2258 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
2259 take care of it.
2260
818c0c94
RH
22612002-05-06 Richard Henderson <rth@redhat.com>
2262
2263 PR c++/6212
2264 * expr.c (highest_pow2_factor_for_type): New.
2265 (expand_assignment): Use it.
2266
61e0b50f
AH
22672002-05-06 Aldy Hernandez <aldyh@redhat.com>
2268
818c0c94
RH
2269 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
2270 unspec_volatile.
2271 ("altivec_mfvscr"): Same.
61e0b50f 2272
5a63e069
JJ
22732002-05-06 Janis Johnson <janis187@us.ibm.com>
2274
2275 * rtl.h (struct rtx_def): Update comments.
2276 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
2277 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
2278 RTL_FLAG_CHECK macros with list of expected RTL codes.
2279 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
2280 (rtl_check_failed_flag): New.
2281 * reload1.c (reload): Use REG macro before changing rtx to MEM.
2282 (reload_cse_noop_set_p): Check rtx code before using access macro.
2283 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
2284 before using access macro.
2285
4afe3952
JJ
22862002-05-06 Janis Johnson <janis187@us.ibm.com>
2287
2288 * doc/rtl.texi (Flags): Update to reflect current usage.
2289
1f77b5da
RS
22902002-05-06 Roger Sayle <roger@eyesopen.com>
2291
2292 PR opt/3995
2293 * fold-const.c (sign_bit_p): New function.
2294 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 2295 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
2296 Reapply fold when converting (A & C) == C into (A & C) != 0.
2297 (fold_binary_op_with_conditional_arg): Fix typo in comment.
2298
a5a49440
NB
22992002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2300
2301 * c-common.c (warn_multichar): New.
2302 (c_common_init): Set CPP's warn_multichar.
2303 * c-common.h (warn_multichar): New.
2304 * c-decl.c (warn_multichar): Remove.
2305 * c-lex.c (lex_charconst): Update.
2306 * c-tree.h (warn_multichar): Remove.
2307 * cppexp.c (eval_token): Sign-extend charconst value.
2308 * cppinit.c (cpp_create_reader): Set warn_multichar.
2309 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
2310 each character. Update prototype. Sign-extend the result.
2311 * cpplib.h: Fix conditions.
2312 (struct cpp_options): Add new warning flag.
2313 (cpp_interpret_charconst): Update prototype.
2314doc:
2315 * cpp.texi: Update documentation.
2316
83e0be55
VM
23172002-05-06 Vladimir Makarov <vmakarov@redhat.com>
2318
2319 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2320 Fix typo in usage of allof instead of unit.
2321
688ec718
RH
23222002-05-06 Richard Henderson <rth@redhat.com>
2323
2324 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
2325 and any jump or call for IN.
2326
f6536266
BS
23272002-05-06 Bernd Schmidt <bernds@redhat.com>
2328
e2ff6cee 2329 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
2330 -msse2.
2331 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 2332
0316d49b
RS
23332002-05-06 Roger Sayle <roger@eyesopen.com>
2334
2335 * fold-const.c (lshift-double): Cast the high word to an unsigned
2336 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
2337 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
2338 avoid compiler warning. (fold): Remove redundant code from
2339 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
2340
5d50fab3
JL
23412002-05-06 Jeff Law <law@redhat.com>
2342
2343 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
2344 * pa.c (pa_adjust_cost): Remove all true dependency cost
2345 adjustments. Also remove support for non-DFA scheduling.
2346 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
2347 to adjust true dependency costs. Update various comments.
2348 (7100lc, 7200, 7300 scheduling): Simplify by combining the
2349 FP ALU & MPY units into a single unit.
2350
a17a104c
CM
23512002-05-06 Catherine Moore <clm@redhat.com>
2352
2353 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 2354 to count all of the registers that will be saved.
a17a104c 2355
7799175f
JH
2356Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2357
2358 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
2359
0ac941a0
DM
23602002-05-06 David S. Miller <davem@redhat.com>
2361
2362 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
2363 allow result to overlap input operands in memory.
2364
95ff5d3f
NB
23652002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
2366
2367doc:
2368 * cpp.texi: Update multichar charconst docs.
2369
639e8b0c
NB
23702002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
2371
2372 * cpplex.c (cpp_interpret_charconst): Sign-extend each
2373 character. Don't ignore excess characters. Treat
2374 multicharacter character constants as signed.
2375 (cpp_parse_escape): Clarify diagnostic.
2376
84ea5bc1
JJ
23772002-05-05 Jakub Jelinek <jakub@redhat.com>
2378
2379 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
2380 use add instead of shift.
2381 (ashldi3_sp64): Likewise.
2382 (ashlsi3_const1, ashldi3_const1): Remove.
2383 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
2384 * config/sparc/sparc.c (const1_operand): New.
2385
40cd22f2
JT
23862002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
2387
2388 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
2389
cac01076
JJ
23902002-05-05 Jakub Jelinek <jakub@redhat.com>
2391
2392 PR target/6561
2393 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
2394
98791e3a
RH
23952002-05-05 Richard Henderson <rth@redhat.com>
2396
2397 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
2398 memory latency adjustments.
2399 (alpha_variable_issue): Remove.
2400 (alpha_use_dfa_pipeline_interface): New.
2401 (alpha_multipass_dfa_lookahead): New.
2402 * config/alpha/alpha.md: Remove define_function_unit scheduling;
2403 include new dfa scheduling.
2404 (attr type): Add none.
2405 (blockage): Use it.
2406 * config/alpha/ev4.md: New.
2407 * config/alpha/ev5.md: New.
2408 * config/alpha/ev6.md: New.
2409
309527ce
DM
24102002-05-05 David S. Miller <davem@redhat.com>
2411
2412 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
2413
68252e27
KH
24142002-05-05 Kazu Hirata <kazu@cs.umass.edu>
2415
2416 * cse.c: Fix formatting.
2417 * emit-rtl.c: Likewise.
2418
30cc9d00
VM
24192002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2420
2421 * genautomata.c (initiate_states): Add additional guard to
2422 initialize `units_array'.
2423
deb09eff
VM
24242002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2425
2426 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
2427 process_unit_to_form_the_same_automaton_unit_lists,
2428 form_the_same_automaton_unit_lists
2429 check_unit_distributions_to_automata): New prototypes and
2430 functions.
2431 (check_automata): Rename it into `check_automata_insn_issues'.
2432 (unit_decl): New fields `the_same_automaton_unit' and
2433 `the_same_automaton_message_reported_p'.
2434 (unit_decl_t): New typedef.
2435 (the_same_automaton_lists): New gloval variable.
2436 (unit_regexp, unit_set_el, units_array, units_cmp,
2437 output_get_cpu_unit_code_func): Use the typedef.
2438 (evaluate_max_reserv_cycles): Increment
2439 `description->max_insn_reserv_cycles'.
2440 (initiate_states): Don't increment `max_cycles_num'.
2441 (transform_insn_regexps): Move code around transformation of
2442 regexps from `generate'.
2443 (generate): Remove call of `transform_insn_regexps'.
2444 (expand_automata): Call `transform_insn_regexps' and
2445 `check_unit_distributions_to_automata'. Check errors before
2446 `generate'.
2447
2448 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
2449 automaton `ultrasparc3_1'.
e2ff6cee 2450
2443d4e1
NB
24512002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
2452
2453 * c-common.c (c_common_init): Set up CPP arithmetic.
2454 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
2455 something reasonable for the host.
2456 (sanity_checks): Add checks.
2457 (cpp_read_main_file): Call sanity_checks() from here...
2458 (cpp_post_options): ... not here.
2459 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
2460 * cpplib.h (struct cpp_options): New member int_precision.
2461
791a949f
FS
24622002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2463
2464 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
2465
091fb516
DM
24662002-05-04 David S. Miller <davem@redhat.com>
2467
f60ebeb7
DM
2468 * config/sparc/linux.h, config/sparc/linux64.h
2469 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
2470
214c6394
DM
2471 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
2472 more RTX codes.
2473 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
2474
091fb516
DM
2475 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
2476 of SETs.
2477
f2fdc802
TJ
24782002-05-05 Tim Josling <tej@melbpc.org.au>
2479
e2ff6cee 2480 * treelang; New directory for new sample language treelang.
f2fdc802 2481
3d90d290
NB
24822002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2483
2484 * Makefile.in (c-lex.o): Update.
2485 * c-lex.c: Include target.h.
2486 (cb_register_builtins): New.
2487 (init_c_lex): Set builtins callback.
2488 * c-lex.h (cpp_define, cpp_assert): New prototypes.
2489 * cppinit.c (init_builtins): Use callback, including for
2490 GXX_WEAK.
2491 * cpplib.h (struct cpp_callbacks): New member.
2492 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
2493 (TARGET_INITIALIZER): Update.
2494 * target.h (struct gcc_target): New hook.
2495 * tree.c (default_register_cpp_builtins): New.
2496 * tree.h (default_register_cpp_builtins): New.
2497doc:
2498 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
2499
625458d0
NB
25002002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2501
2502 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
2503 (cpp_post_options): Move sanity checks to...
2504 (sanity_checks): New.
2505 * cpplex.c (maybe_read_ucs): Fix prototype.
2506 (parse_string, cpp_parse_escape): Cast for %c format specifier.
2507 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
2508 if necessary.
2509
916b60b7
BS
25102002-05-04 Bernd Schmidt <bernds@redhat.com>
2511
2512 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
2513 builtins. Use V2DI patterns instead of TI for logical operations.
2514 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
2515 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
2516 (ix86_expand_builtins): Change the pattern used for movntdq.
2517 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
2518 sse2_nandv2di3): New patterns.
2519 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
2520 on operands.
2521 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
2522 (cvtdq2pd): Correct mode on operand 1.
2523 (sse2_umulsidi3): Describe without unspec.
2524 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
2525 machine modes.
2526 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
2527 (ashlv2di3): Likewise, from sse2_ashlv2di3.
2528 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
2529 ashlv4si3, ashlv2di3): Use SImode for shift count.
2530 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
2531 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
2532 New patterns.
2533 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
2534 New typedefs.
2535 (__m128i, __m128d): New macros.
2536 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
2537 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
2538 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
2539 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
2540 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 2541 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
2542 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
2543 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 2544 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
2545 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
2546 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
2547 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
2548 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
2549 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
2550 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
2551 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
2552 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
2553 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
2554 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
2555 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
2556 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
2557 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
2558 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
2559 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
2560 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
2561 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
2562 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
2563 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
2564 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
2565 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
2566 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
2567 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
2568 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
2569 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
2570 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
2571 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
2572 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
2573 functions.
e2ff6cee 2574 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
2575 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
2576
c26fbbca
KH
25772002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2578
2579 * dwarf2out.c: Fix formatting.
2580 * varasm.c: Likewise.
2581
0387639b
DE
25822002-05-04 David Edelsohn <edelsohn@gnu.org>
2583
2584 PR c/6543
2585 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
2586 clobber and use result as temporary value.
2587
8a28dbcc
JH
2588Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2589
2590 * expr.c (force_operand): Use expand_simple_* to handle more
2591 cases.
2592
4268e8bb
NB
25932002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2594
2595 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
2596 and sign-extension.
2597 (lex_charconst): Update for change in prototype of
2598 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
2599 appropriately.
2600 * cpphash.h (BITS_PER_CPPCHAR_T): New.
2601 * cppinit.c (cpp_create_reader): Initialize them for no
2602 change in semantics.
2603 (cpp_post_options): Add sanity checks.
2604 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
2605 and truncation issues. Calculate in type cppchar_t.
2606 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
2607 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
2608 run-time dependent precision correctly. Return whether the
2609 result is signed or not.
2610 * cpplib.c (dequote_string): Use cppchar_t; update.
2611 * cpplib.h (cppchar_signed_t): New.
2612 struct cpp_options): New precision members.
2613 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 2614 * cppexp.c (eval_token): Update.
4268e8bb 2615
af54350e
DM
26162002-05-03 David S. Miller <davem@redhat.com>
2617
2ce04b6b
DM
2618 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
2619 * config/sparc/sparc.c (sparc_rtx_costs): New function
2620 implementing RTX_COSTS and CONST_COSTS.
2621 * config/sparc/sparc.h (CONST_COSTS): Delete.
2622 (RTX_COSTS_CASES): Define.
2623 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
2624 the work.
2625
a1d9bd0c
DM
2626 * config/sparc/sparc.md (DFA schedulers): Split out...
2627 * config/sparc/cypress.md, config/sparc/hypersparc.md,
2628 config/sparc/sparclet.md, config/sparc/supersparc.md,
2629 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
2630
e87bb82e
DM
2631 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
2632 checks on it, always defined for Sparc.
2633
af54350e
DM
2634 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
2635 Tweak, and add more detailed comments.
2636
935bfb44
ZW
26372002-05-03 Zack Weinberg <zack@codesourcery.com>
2638
2639 * Re-apply patch accidentally reverted with
2640 DFA scheduler merge: remove all rules and variables to slurp
2641 source files out of libiberty and rebuild them with HOST_CC.
2642 ($(HOST_PREFIX_1)varray.o): New rule.
2643 (genattrtab rule): Word wrap.
2644
fa7a0712
JT
26452002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2646
2647 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
2648 (CPP_SUBTARGET_SPEC): Define.
2649 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
2650 cpp_subtarget specs.
2651 (CPP_SPEC): Redefine to include %(cpp_subtarget).
2652
14c93978
DM
26532002-05-03 David S. Miller <davem@redhat.com>
2654
2655 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2656 * target.h (struct gcc_target): Delete cycle_display member.
2657
14d118d6
DM
2658 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
2659 (rtx_needs_barrier): Delete reference to cycle_display unspec.
2660 (ia64_sched_reorder2): Mention need for cycle display handling
2661 once such notes exist.
935bfb44 2662
b3ae1ccd
RH
26632002-05-03 Richard Henderson <rth@redhat.com>
2664
2665 * real.c (etoasc): Strip most trailing zeros for clarity.
2666 * sched-vis.c: Include real.h.
2667 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
2668 * Makefile.in (sched-vis.o): Add real.h.
2669
8f39865a
DM
26702002-05-03 David S. Miller <davem@redhat.com>
2671
2672 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2673 no longer needed.
2674
b44140e7
AH
26752002-05-03 Aldy Hernandez <aldyh@redhat.com>
2676
935bfb44
ZW
2677 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2678 when we get an out of range literal.
2679 (altivec_expand_ternop_builtin): Same.
2680 (altivec_expand_unop_builtin): Same.
2681 (altivec_expand_builtin): Same, for dss.
2682 (altivec_expand_builtin): Use trees instead of rtl when
2683 determining literal argument validity.
b44140e7 2684
aaaed752
DM
26852002-05-03 David S. Miller <davem@redhat.com>
2686
2687 Delete cycle display scheduling hook.
2688 * config/ia64/ia64.c (ia64_cycle_display,
2689 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2690 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2691 and use emit_insn_before instead of ia64_emit_insn_before.
2692 * config/ia64/ia64.md (unspec usage): Delete cycle display.
2693 (cycle_display): Delete insn pattern.
2694 * config/sparc/sparc.md (unspec usage): Delete cycle display.
2695 (cycle_display): Delete insn pattern.
2696 * config/sparc/sparc.c (sparc_cycle_display,
2697 TARGET_SCHED_CYCLE_DISPLAY): Delete.
2698 * doc/md.texi (cycle_display): Don't mention.
2699 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 2700
b37c2614
RH
27012002-05-03 Richard Henderson <rth@redhat.com>
2702
2703 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2704 * recog.h: Declare them.
2705
2706 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2707 * config/sparc/sparc.md: Use store_data_bypass_p instead.
2708 * config/sparc/sparc-protos.h: Update.
935bfb44 2709
e1c1132e
JT
27102002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2711
2712 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2713 -D__arch64__. Add -D_LP64.
2714 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2715 from sparc.h.
2716 (CPP_ARCH64_SPEC): Likewise.
2717 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2718 (NO_BUILTIN_SIZE_TYPE): Undef.
2719
0b2fb0d7
VM
27202002-05-03 Vladimir Makarov <vmakarov@redhat.com>
2721
2722 * genautomata.c (min_issue_delay_pass_states): Change return type
2723 in the prototype.
2724 (min_issue_delay_pass_states): Change the algorithm.
2725 (min_issue_delay): Set up min_insn_issue_delay for the state.
2726 (output_min_issue_delay_table): Interchange the nested loops and
2727 and initiate min_insn_issue_delay for states.
935bfb44 2728
3d4ce12a
JH
2729Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
2730
2731 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
2732 jump is simplejump.
2733
2734Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
2735
2736 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
2737 sequence.
2738
b5482208
RH
27392002-05-03 Richard Henderson <rth@redhat.com>
2740
2741 PR opt/6534
2742 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2743 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2744 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2745 code before JUMP, not EARLIEST.
2746
5a3085c5
JM
27472002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
2748
2749 * c-format.c (check_format_info_main): Don't check for presence of
2750 parameter for * width until after operand number has been read,
2751 and only check for it if format parameters are available.
2752 Fixes PR c/6547.
2753
40039424
JT
27542002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2755
2756 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2757 (LINK_SPEC): Undef before defining.
2758
8157303b
JJ
27592002-05-03 Jakub Jelinek <jakub@redhat.com>
2760
2761 PR preprocessor/6489
2762 * tradcpp.c (fixup_newlines): New.
2763 (main, finclude): Use it.
2764
66319f5c
RS
27652002-05-03 Richard Sandiford <rsandifo@redhat.com>
2766
2767 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2768 * config/mips/mips.c (mips_unique_section): Strip encoding from
2769 decl name.
2770
ce8076ad
JJ
27712002-05-03 Jakub Jelinek <jakub@redhat.com>
2772
2773 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2774 mode.
2775
975c6e4e
RO
27762002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2777
2778 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2779 (Specific): Removed buildstats references.
2780 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2781 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2782 Accomodate Solaris versions beyond 8.
2783 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2784 (Specific, *-*-solaris2.8): Removed, obsolete.
2785
d70e94ec
JJ
27862002-05-03 Jakub Jelinek <jakub@redhat.com>
2787
2788 PR target/6542
2789 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2790 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2791 fill leaf_reg_remap with identity.
2792 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2793
6b148bd9
KH
27942002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2795
2796 * config/h8300/crti.asm: Remove trailing spaces.
2797 * config/h8300/h8300.c: Likewise.
2798 * config/h8300/lib1funcs.asm: Likewise.
2799
609688f3
JM
28002002-05-02 Jason Merrill <jason@redhat.com>
2801
2802 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2803 * c-decl.c (c_init_decl_processing): Use it.
2804 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2805 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2806 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2807
3b03c671
KH
28082002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2809
2810 * regrename.c: Fix formatting.
2811 * tree.c: Likewise.
2812
3b4961bd
JH
2813Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2814
2815 * i386.md (attribute memory): Handle compares properly.
2816
19cba4a0
JH
2817Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
2818
3b4961bd 2819 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
2820 to none.
2821
797a6ac1
KH
28222002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2823
2824 * function.c: Fix formatting.
2825
6d0de005
JH
28262002-05-02 Jan Hubicka <jh@suse.cz>
2827
2828 * haifa-sched.c (schedule_insn): Print table of instructions and
2829 reservations.
2830 (sched_block): Do not print ready list at verbosity level 1.
2831 * sched-vis.c (print_insn): Make global.
2832 * sched-ebb.c (ebb_print_insn): Rename from...
2833 (print_insn): ... this one.
2834 * sched-int.h (print_insn): Declare
2835
0bfb9a69
RH
28362002-05-02 Richard Henderson <rth@redhat.com>
2837
2838 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2839 emitted by cycle_display.
2840
6b976d99
LR
28412002-05-02 Loren J. Rittle <ljrittle@acm.org>
2842
2843 * doc/install.texi (*-*-freebsd*): Update to latest status.
2844
0a295052
JJ
28452002-05-02 Jakub Jelinek <jakub@redhat.com>
2846
2847 PR target/6540
2848 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2849 * config/float-sparc.h: Assume 128-bit long double if
2850 __LONG_DOUBLE_128__ is defined.
2851
842d5d6c
VM
28522002-05-02 Vladimir Makarov <vmakarov@redhat.com>
2853
2854 * genattrtab.c (write_function_unit_info): Add a dummy element
2855 when num_units == 0.
2856
3d7a6309
HB
28572002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2858
2859 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2860 TYPE_MODE (double_type_node) instead of DFmode.
2861
1b6763cf
JH
2862Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
2863
2864 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2865 jumps post reload.
2866 * toplev.c (rest_of_compilation): Revert Richard's patch.
2867
b303008e
JDA
28682001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2869
2870 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2871
6ed7412a
CM
28722002-05-02 Catherine Moore <clm@redhat.com>
2873
2874 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2875
e0a2f705
KH
28762002-05-02 Kazu Hirata <kazu@hxi.com>
2877
b32d6163 2878 * combine.c: Fix comment typos.
e0a2f705
KH
2879 * expr.c: Likewise.
2880 * genautomata.c: Likewise.
2881 * stmt.c: Likewise.
2882 * tree.h: Likewise.
2883
38e23049
JM
28842002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
2885
2886 * doc/install.texi: State GNAT version requirements.
2887
40f4a97d
NC
28882002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2889
2890 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2891 of the frame pointer or arg pointer register which strict register
2892 checking is not enabled.
2893
0d6d6892
AH
28942002-05-02 Aldy Hernandez <aldyh@redhat.com>
2895
b5482208 2896 * gcc.dg/altivec-8.c: New.
0d6d6892 2897
b5482208
RH
2898 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2899 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 2900
abaa8559
BK
29012002-05-01 Bruce Korb <bkorb@gnu.org>
2902
2903 * fixinc/check.tpl(set-writable): make sure the function exists first
2904 * fixinc/inclhack.def(alpha_assert): fix test_text
2905 * fixinc/tests/base/assert.h: add in missing result
2906
ecab2143
JL
29072002-05-01 Jeff Law <law@redhat.com>
2908
2909 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2910 'T' constraint.
2911
ea619b46
JB
29122002-05-01 Joel Brobecker <brobecker@gnat.com>
2913
2914 * dbxout.c (dbxout_type): Emit size information for range types,
2915 as well, but only when using GDB extensions.
2916
c72931a6
RH
29172002-05-01 Richard Henderson <rth@redhat.com>
2918
2919 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2920 target-independent gnu binutils date test.
2921
2150ad33
RH
29222002-05-01 Richard Henderson <rth@redhat.com>
2923
2924 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2925 info before expunging the block.
2926
1651cc96
JJ
29272002-05-01 Jakub Jelinek <jakub@redhat.com>
2928
2929 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2930 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
2931 -M -or -MM is in effect.
2932
8998d5bf
ZW
29332002-05-01 Zack Weinberg <zack@codesourcery.com>
2934
2935 * config.gcc: Correct test of --enable-obsolete. Obsolete all
2936 A29k configurations.
2937 * doc/install.texi: Update to match.
2938
a81eed10
FS
29392002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2940
2941 PR bootstrap/6514
2942 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2943 for duplicates. Always loop over whole list.
2944
8d53318f
RK
2945Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2946
2947 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2948
4109b118
JS
29492002-05-01 Joel Sherrill <joel@OARcorp.com>
2950
2951 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2952 support routines.
2953
c4a9c570
JS
29542002-05-01 Joel Sherrill <joel@OARcorp.com>
2955
2956 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2957
ea112fc4
DE
29582002-05-01 David Edelsohn <edelsohn@gnu.org>
2959
2960 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2961 (nabs_nopower): Same.
2962 (floatdisf2): New pattern.
2963 (absdi2): Convert to define_insn_and_split.
2964 (nabsdi2): Same.
2965 (trunctfsf2): Same.
2966 (floatditf2): Same.
2967 (floatsitf2): Same.
2968 (fix_trunctfdi2): Same.
2969 (fix_trunctfsi2): Same.
2970
dda78254
JM
29712002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
2972
2973 * doc/install.texi: Update Texinfo version requirement
2974 documentation.
2975
26aeede4
JJ
29762002-05-01 Jakub Jelinek <jakub@redhat.com>
2977
2978 PR target/6512, PR target/5628
2979 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2980 when memory is not aligned.
2981 (movdf_insn_v9only_vis): Likewise.
2982 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2983 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2984 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2985
9b7bc465
AH
29862002-05-01 Aldy Hernandez <aldyh@redhat.com>
2987
8998d5bf 2988 * gcc.dg/altivec-7.c: New.
9b7bc465 2989
8998d5bf 2990 * config/rs6000/altivec.h: Cleanup.
9b7bc465 2991
08b57fb3
AH
29922002-04-30 Aldy Hernandez <aldyh@redhat.com>
2993
8998d5bf
ZW
2994 * doc/invoke.texi (Option Summary): Add -mvrsave=.
2995 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 2996
8998d5bf
ZW
2997 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2998 (rs6000_altivec_vrsave_string): Same.
2999 (rs6000_override_options): Call rs6000_parse_vrsave_option.
3000 (rs6000_parse_vrsave_option): New.
3001 (rs6000_stack_info): Only generate vrsave instructions when
3002 TARGET_ALTIVEC_VRSAVE.
08b57fb3 3003
8998d5bf
ZW
3004 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
3005 (rs6000_altivec_vrsave_string): Define extern.
3006 (rs6000_altivec_vrsave): Same.
3007 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 3008
8e8c38cd
RH
30092002-04-30 Richard Henderson <rth@redhat.com>
3010
3011 PR opt/6516
3012 * toplev.c (rest_of_compilation): Don't run cross-jump before
3013 bb-reorder.
3014
4be9e9cb
TR
30152002-04-30 Tom Rix <trix@redhat.com>
3016
8998d5bf 3017 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
3018 check which_alternative.
3019
1eeeb6a4
KH
30202002-04-30 Kazu Hirata <kazu@hxi.com>
3021
3022 * cpplex.c: Fix comment formatting.
3023 * function.c: Likewise.
3024 * integrate.c: Likewise.
3025 * regrename.c: Likewise.
3026 * sibcall.c: Likewise.
3027 * simplify-rtx.c: Likewise.
3028 * tree-inline.c: Likewise.
3029
ed9d6ff9
JDA
30302002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3031
3032 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
3033 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
3034 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
3035 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
3036 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
3037 * pa/x-ada: New file. Define ADA_CFLAGS.
3038
1f2641b6
HPN
30392002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
3040
3041 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
3042 from MMIX_LAST_REGISTER_FILE_REGNUM.
3043 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
3044 (struct machine_function): New member highest_saved_stack_register
3045 previously static variable in mmix.c.
3046 (MACHINE_DEPENDENT_REORG): Define.
3047 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
3048 (MMIX_OUTPUT_REGNO): New.
3049 (mmix_target_asm_function_prologue): Move calculation of last used
3050 saved-stack-register into...
3051 (mmix_machine_dependent_reorg): New function. Update to also handle
3052 !TARGET_ABI_GNU.
3053 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
3054 register names, simplify somewhat by new variable regno.
3055 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
3056 register.
3057 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
3058 emitting register names.
3059 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
3060 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
3061 Remove fixed FIXME.
3062 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
3063 Declare.
3064
3065 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
3066
73985940
RH
30672002-04-30 Richard Henderson <rth@redhat.com>
3068
3069 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
3070 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
3071 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
3072 emit_tfmode_cvt): New.
3073 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
3074 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
3075 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
3076 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
3077 * config/sparc/sparc-protos.h: Update.
3078
2b46bc67
JJ
30792002-04-30 Janis Johnson <janis187@us.ibm.com>
3080
3081 * install.texi (Final install): Add to the list of info to include
3082 in a report of a successful bootstrap, and add link to 3.1 list.
3083
3d34cd91
JH
3084Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
3085
3086 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
3087 (mode): Add vector modes
3088 (i387): Kill attribute.
3089 (unit): New attribute.
3090 (length_immediate): Grok new types.
3091 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
3092 (modrm): Use "unit".
3093 (memory): Handle MMX/SSE properly.
3094 (scheduling descriptions): Kill uses of fop1.
3095 (sse, mmx, fp patterns): Set type and mode properly.
3096
3193c415
JL
3097Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
3098
30482eb0
JL
3099 * pa.c (override_options): Default to PA8000 scheduling.
3100 * doc/invoke.texi (HP-PA options): Mention newly added 7300
3101 scheduling parameter.
3102
3193c415
JL
3103 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
3104 handling of double precision multiplies.
3105
3106 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
3107 fpdiv and fpsqrt instructions.
3108 (7200 & 7300 scheduling): Fix typo in handling of
3109 store-load and store-store penalties.
3110
c0a34cb7
GP
31112002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3112
3113 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
3114 mips. Add two missing commas.
3115
8bce0628
PC
31162002-04-30 Paolo Carlini <pcarlini@unitus.it>
3117
3118 * doc/contrib.texi (Contributors): Update Paolo Carlini's
3119 and Benjamin Kosnik's entries.
3120
84643cbf
DM
31212002-04-29 David S. Miller <davem@redhat.com>
3122
3123 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
3124 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
3125 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
3126 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
3127
da6886f6
FS
31282002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3129
3130 * combine.c (find_split_point): Use gen_int_mode.
3131
fae15c93
VM
31322002-04-29 Vladimir Makarov <vmakarov@redhat.com>
3133
3134 Merging code from dfa-branch:
8998d5bf 3135
fae15c93
VM
3136 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
3137
3138 * genautomata.c (output_reserv_sets): Fix typo.
3139
3140 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
3141
3142 * genautomata.c (output_reserv_sets): Remove
3143 next_cycle_output_flag.
3144
3145 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
3146
8998d5bf
ZW
3147 * sched-rgn.c (init_ready_list): Make the DFA code handle
3148 USE/CLOBBER insns in the same way as the traditional
3149 scheduler.
3150 (new_ready): Similarly..
fae15c93
VM
3151
3152 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
3153
3154 * haifa-sched.c (schedule_block): Change the DFA state only after
3155 issuing insn.
3156
3157 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
3158
3159 * pa.c (hppa_use_dfa_pipeline_interface): New function.
3160 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3161 (override_options): Add PA7300 scheduling support.
3162 (pa_adjust_cost): Update various comments. Properly
3163 handle anti and output dependencies when using the
3164 DFA scheduler.
3165 (pa_issue_rate): Add PA7300 scheduling support.
3166 (pa_can_combine_p): Call extract_insn before calling
3167 constrain_operands (taken from mainline tree).
3168 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
3169 * pa.md (cpu attr): Add 7300. Rewrite pipeline
3170 descriptions using DFA descriptions. Add PA7300
3171 scheduling support.
3172
3173 2002-03-30 David S. Miller <davem@redhat.com>
3174
3175 Add UltraSPARC-III DFA scheduling support.
3176 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
3177 Update FP conditional move on register insn patterns to use it, as
3178 appropriate.
3179 (define_attr cpu): Add ultrasparc3.
3180 (define_attr us3load_type): New, update integer load patterns to
3181 set it, as appropriate.
3182 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
3183 (rest): Add UltraSPARC3 scheduling description.
3184 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
3185 (PROCESSOR_ULTRASPARC3): New.
3186 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
3187 ({ASM,CPP}_CPU_SPEC): Likewise.
3188 (REGISTER_MOVE_COST): Likewise.
3189 (RTX_COSTS): Likewise.
3190 * config/sparc/sparc.c (sparc_override_options,
3191 sparc_initialize_trampoline, sparc64_initialize_trampoline,
3192 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3193 sparc_issue_rate): Likewise.
3194 * config/sparc/sol2.h: Likewise.
3195 * config/sparc/sol2-sld-64.h: Likewise.
3196 * config/sparc/linux64.h: Likewise.
8998d5bf 3197
fae15c93
VM
3198 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
3199
3200 * doc/md.texi: Add comments about usage the latency time for the
3201 different dependencies and about case when two or more conditions
3202 in different define_insn_reservations returns TRUE for an insn.
3203
3204 * doc/md.texi: Add reference for automaton based pipeline
3205 description.
8998d5bf 3206
fae15c93
VM
3207 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
3208
3209 * doc/passes.texi: Add missed information about genattrtab.
3210
3211 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
3212
3213 * genautomata.c (output_automata_list_transition_code): Check
3214 automata_list on NULL.
3215
3216 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
3217
3218 * genautomata.c (output_insn_code_cases,
3219 output_automata_list_min_issue_delay_code,
3220 output_automata_list_transition_code,
3221 output_automata_list_state_alts_code): Comment the functions.
3222
3223 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
3224
3225 * genautomata.c (automata_list_el_t): New typedef.
3226 (get_free_automata_list_el,free_automata_list_el,
3227 free_automata_list, automata_list_hash, automata_list_eq_p,
3228 initiate_automata_lists, automata_list_start, automata_list_add,
3229 automata_list_finish, finish_automata_lists,
3230 output_insn_code_cases, output_automata_list_min_issue_delay_code,
3231 output_automata_list_transition_code,
3232 output_automata_list_state_alts_code, add_automaton_state,
3233 form_important_insn_automata_lists): New functions and prototypes.
3234 (insn_reserv_decl): Add members important_automata_list and
3235 processed_p.
3236 (ainsn): Add members important_p.
3237 (automata_list_el): New structure.
3238 (first_free_automata_list_el, current_automata_list,
3239 automata_list_table): New global variables.
3240 (create_ainsns): Initiate member important_p.
3241 (output_internal_min_issue_delay_func): Generate the switch and
3242 call output_insn_code_cases.
3243 (output_internal_trans_func, output_internal_state_alts_func):
3244 Ditto.
3245 (generate): Call initiate_automata_lists.
3246 (automaton_states): New global variable.
3247 (expand_automata): Call form_important_insn_automata_lists.
3248 (write_automata): Call finish_automata_lists.
8998d5bf 3249
fae15c93
VM
3250 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
3251
3252 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 3253 cpu units in the sets belong the same automaton.
fae15c93
VM
3254
3255 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
3256 about that cpu units in the sets belong the same automaton.
3257
3258 * doc/md.texi: Ditto.
8998d5bf 3259
2799d721
VM
3260 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
3261 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 3262
fae15c93
VM
3263 * config/sh/sh.c (sh_use_dfa_interface): New function.
3264
3265 (sh_issue_rate): New Function.
3266 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
3267 TARGET_SCHED_ISSUE_RATE: define.
3268
3269 * config/sh/sh.md: Add DFA based pipeline description for SH4.
3270
8998d5bf
ZW
3271 (define_attr insn_class): New attribute used for DFA
3272 scheduling.
fae15c93
VM
3273 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
3274 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
3275 cmpeqdi_t): Likewise.
3276
3277 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 3278 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
3279 ex_group.
3280 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 3281
fae15c93
VM
3282 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
3283
3284 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
3285 break.
3286
3287 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
3288
3289 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
3290 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
3291 necessary.
3292 (output_dfa_start_func): Initiate new variable insn_codes_length,
3293 (write_automata): Output definition of the new variable.
8998d5bf 3294
fae15c93
VM
3295 2001-10-02 David S. Miller <davem@redhat.com>
3296
3297 * haifa-sched.c (advance_one_cycle): New function.
3298 (schedule_block): Use it.
3299 (queue_to_ready): Use it, and also make sure to advance the DFA
3300 state on all stall cycles, not just those where insn_queue links
3301 are found.
3302
3303 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
3304
3305 * haifa-sched.c (max_issue): Remove last_p argument. Only return
3306 non-zero if the highest-priority instruction could be scheduled.
3307 (choose_ready): Remove last argument from max_issue call.
3308
3309 2001-09-28 David S. Miller <davem@redhat.com>
3310
3311 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
3312 ultrasparc and 3 for other multi-issue sparcs.
3313
3314 2001-09-27 David S. Miller <davem@redhat.com>
3315
3316 * config/sparc/sparc.md (cycle_display): New pattern.
3317 * config/sparc/sparc.c (sparc_cycle_display): New.
3318 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
3319
3320 2001-09-25 David S. Miller <davem@redhat.com>
3321
3322 Convert all of Sparc scheduling to DFA
3323 * config/sparc/sparc.md: Kill all define_function_unit
3324 directives and replace with DFA equivalent.
3325 * config/sparc/sparc.c (ultrasparc_adjust_cost,
3326 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
3327 ultra_fpmode_conflict_exists, ultra_find_type,
3328 ultra_build_types_avail, ultra_flush_pipeline,
3329 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
3330 ultrasparc_variable_issue, ultrasparc_sched_init,
3331 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
3332 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
3333 ultra_cur_hist, ultra_cycles_elapsed): Kill.
3334 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3335 ultrasparc_store_bypass_p): New.
3336 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
3337 Declare.
3338
3339 2001-09-24 David S. Miller <davem@redhat.com>
3340
3341 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
3342 ready->vec[foo] not ready[foo].
3343
3344 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
3345
3346 * doc/md.texi: Correct examples for define_insn_reservations
3347 `mult' and `div'.
3348
3349 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
3350
3351 * genautomata.c (create_automata): Print message about creation of
3352 each automaton.
3353 (generate): Remove printing meease about creation of
3354 automata.
3355
3356 2001-09-05 David S. Miller <davem@redhat.com>
3357
3358 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
3359 * config/sparc/linux64.h: Likewise.
3360
3361 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
3362
3363 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
3364 schedule_block, sched_init, sched_finish): Add missed calls of
3365 use_dfa_pipeline_interface.
3366
3367 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
3368 Ditto.
3369
3370 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 3371
fae15c93
VM
3372 2001-08-27 Richard Henderson <rth@redhat.com>
3373
3374 * genattr.c (main): Emit state_t even when not doing scheduling.
3375
3376 2001-08-27 Richard Henderson <rth@redhat.com>
3377
3378 * genautomata.c (expand_automata): Always create a description.
3379
3380 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
3381
8998d5bf 3382 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
3383 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
3384 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
3385 RTL constructions.
3386
3387 * genattr.c (main): New variable num_insn_reservations. Increase
3388 it if there is DEFINE_INSN_RESERVATION. Output automaton based
3389 pipeline hazard recognizer interface.
3390
3391 * genattrtab.h: New file.
3392
3393 * genattrtab.c: Include genattrtab.h.
3394 (attr_printf, check_attr_test, make_internal_attr,
3395 make_numeric_value): Move protypes into genattrtab.h. Define them
3396 as external.
3397 (num_dfa_decls): New global variable.
3398 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
3399 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
3400 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
3401 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
3402
3403 * genautomata.c: New file.
3404
3405 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
3406
8998d5bf 3407 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
3408 automaton pipeline interface.
3409 (haifa_insn_data): Add comments for members blockage and units.
3410
3411 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3412 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3413 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3414 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3415 TARGET_SCHED_DFA_POST_CYCLE_INSN,
3416 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3417 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
3418 macros.
3419 (TARGET_SCHED): Use the new macros.
3420
3421 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
3422 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
3423 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
3424 dfa_bubble): New members in gcc_target.sched.
3425
8998d5bf 3426 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
3427 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
3428 (insn_queue): Redefine it as pointer to array.
3429 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
3430 INSN_QUEUE_SIZE.
3431 (max_insn_queue_index_macro_value): New variable.
3432 (curr_state, dfa_state_size, ready_try): New varaibles for
3433 automaton interface.
3434 (ready_element, ready_remove, max_issue): New function prototypes
3435 for automaton interface.
3436 (choose_ready): New function prototype.
3437 (insn_unit, blockage_range): Add comments.
3438 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
3439 FUNCTION_UNITS_SIZE == 0.
3440 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
3441 actual_hazard, potential_hazard): Add comments.
3442 (insn_cost): Use cost -1 as undefined value. Remove
3443 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
3444 pipeline interface.
3445 (ready_element, ready_remove): New functions for automaton
3446 interface.
3447 (schedule_insn): Add new code for automaton pipeline interface.
3448 (queue_to_ready): Add new code for automaton pipeline interface.
3449 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
3450 (debug_ready_list): Print newline when the queue is empty.
3451 (max_issue): New function for automaton pipeline interface.
3452 (choose_ready): New function.
3453 (schedule_block): Add new code for automaton pipeline interface.
3454 Print ready list before scheduling each insn.
3455 (sched_init): Add new code for automaton pipeline interface.
3456 Initiate insn cost by -1.
3457 (sched_finish): Free the current automaton state and finalize
3458 automaton pipeline interface.
3459
3460 * sched-rgn.c: Include target.h.
3461 (init_ready_list, new_ready, debug_dependencies): Add new code for
3462 automaton pipeline interface.
3463
3464 * sched-vis.c: Include target.h.
3465 (get_visual_tbl_length): Add code for automaton interface.
3466 (target_units, print_block_visualization): Add comments.
3467
8998d5bf 3468 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
3469 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
3470 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
3471 (getruntime.o, genautomata.o): New entries.
3472 (genattrtab.o): Add new dependency file genattrtab.h.
3473 (genattrtab): Add new dependencies. Link it with `libm.a'.
3474 (getruntime.o, hashtab.o): New entries for canadian cross.
3475
3476 * doc/md.texi: Description of automaton based model.
3477
3478 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
3479 Add comments.
3480 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3481 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3482 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3483 TARGET_SCHED_DFA_POST_CYCLE_INSN,
3484 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3485 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3486 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
3487 hook descriptions.
3488 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
3489 MAX_DFA_ISSUE_RATE): New macro descriptions.
3490
3491 * doc/contrib.texi: Add dfa based scheduler contribution.
3492
3493 * doc/gcc.texi: Add more information about genattrtab.
3494
a2ff290c
RK
3495Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3496
3497 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
3498 adjust_address_nv call.
3499
f97903cc
JJ
35002002-04-29 Janis Johnson <janis187@us.ibm.com>
3501
3502 * doc/install.texi (Testing): Provide additional information, and
3503 a stronger encouragement, for running the testsuites.
3504
f41a6bf1
DD
35052002-04-29 DJ Delorie <dj@redhat.com>
3506
3507 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
3508 given in upper case.
3509
d8af0868
RO
35102002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3511
3512 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
3513 Solaris 2 <widec.h> if missing.
3514 * fixinc/fixincl.x: Regenerate.
3515 * fixinc/tests/base/widec.h: New file.
3516
1034407f
NC
35172002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
3518
3519 * toplev.c (f_options): Add "profile" switch so that
3520 -fno-profile can be used to disable -p.
3521
fbe5eb6d
BS
35222002-04-29 Bernd Schmidt <bernds@redhat.com>
3523
3524 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
3525 UV2DImode.
3526 * tree.c (build_common_tree_nodes_2): Likewise.
3527 * tree.h (enum tree_index): Likewise.
3528 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
3529
3530 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
3531 entries.
3532 (init_mmx_sse_builtins): Initialize SSE2 builtins.
3533 (ix86_expand_builtin): Add support for SSE2 builtins.
3534 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
3535 (VALID_SSE_REG_MODE): Use it.
3536 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
3537 (enum ix86_builtins): Add SSE2 builtins.
3538 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
3539 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
3540 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
3541 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
3542 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
3543 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
3544 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
3545 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
3546 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
3547 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
3548 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
3549 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
3550 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
3551 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
3552 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
3553 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
3554 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
3555 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
3556 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
3557 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
3558 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
3559 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
3560 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
3561 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
3562 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
3563 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
3564 lfence_insn): New patterns.
3565 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
3566 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
3567
44aefada
JH
3568Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
3569
3570 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
3571
d5482cdc
GP
35722002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3573
3574 * doc/contrib.texi (Contributors): Add Paolo Carlini and
3575 Janis Johnson.
3576 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
3577 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
3578 and CPU instead of cpu.
3579
2c4b77f3
JH
3580Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3581
3582 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
3583 variables.
3584 (lang_independent_options): Add -fif-conversion, -fif-conversion2
3585 (rest_of_compilation): Do if conversion only when asked for.
3586 (parse_options_and_default_flags): Set new variables to 1 for -O1
3587 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
3588
3de72741
JH
3589Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3590
3591 * i386.c (dbx64_register_map): Fix typo.
3592
8aa18a7d
JH
3593Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3594
3595 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
3596 real_one_half, real_bb_freq_max): New static variables.
3597 (debug_profile_bbauxs): Kill.
3598 (process_note_predictions): Kill unused variable.
3599 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
3600 volatile double.
3601 (propagate_freq): Use REAL_ARITHMETICS.
3602 (estimate_bb_frequencies): Likevise; init new static variables.
3603 * Makefile.in (predict.o): Add dependency on real.h
3604
1bbad4c6
DM
36052002-04-28 David S. Miller <davem@redhat.com>
3606
3607 PR target/6500
3608 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
3609 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
3610 several {reads,writes} instead.
3611 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
3612 Define.
3613
3ef3f384
DM
36142002-04-27 David S. Miller <davem@redhat.com>
3615
3616 PR target/6494
3617 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
3618 of the stack bias.
3619
3620 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
3621 including signal.h and sys/ucontext.h, not needed.
3622
ec493bcb
HPN
36232002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
3624
3625 * varasm.c (output_constant_def): Correct test for not calling
3626 ENCODE_SECTION_INFO for INTEGER_CST.
3627
60284a59
NB
36282002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
3629
3630 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
3631 keep most cases as function eval_token.
3632 (eval_token): New function.
3633 (_cpp_parse_expr): Read token here for improved diagnostics.
3634 Don't use op_as_text. Detect bad ':' here.
3635 (reduce): Don't detect bad ':' here.
3636 (op_as_text): Remove.
3637 * cpphash.h (_cpp_test_assertion): Change prototype.
3638 * cpplib.c (_cpp_test_assertion): Change prototype.
3639
349a4b40
RH
36402002-04-28 Richard Henderson <rth@redhat.com>
3641
3642 PR c/5154
8998d5bf 3643 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
3644 (ggc_mark_rtx_children): New.
3645
7a03f82f
JJ
36462002-04-28 Jakub Jelinek <jakub@redhat.com>
3647
3648 PR target/6496
3649 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
3650 after call peepholes for UltraSPARC.
3651 (call + jump 64-bit peepholes): Remove.
3652
80103f96
FS
36532002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3654
3655 PR c/6497
3656 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
3657 result as temporary value.
3658
06990986
JJ
36592002-04-28 Jakub Jelinek <jakub@redhat.com>
3660
3661 PR c++/6396
3662 * toplev.c (rest_of_compilation): Only run regrename and copy
3663 propagation if optimizing.
3664
a20fd5ac
JJ
36652002-04-28 Jakub Jelinek <jakub@redhat.com>
3666
3667 PR optimization/6475
3668 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
3669 register of REGNO_DECL (i).
3670 * Makefile.in (reload1.o): Add $(TREE_H).
3671
87ed109f
NB
36722002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
3673
3674 * cppexp.c (lex): Update to use state.skip_eval.
3675 (struct op): Remove prio and flags members.
3676 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3677 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3678 (LEFT_ASSOC): New macro.
3679 (optab): New table of operator priorities and flags.
3680 (SHIFT): Update.
3681 (_cpp_parse_expr): Clean up logic. Return bool. Use a
3682 malloc-ed parser stack.
3683 (reduce): New; reduce the operator stack.
3684 (_cpp_expand_op_stack): Expand the operator stack as necessary.
3685 * cpphash.h (struct op): Predeclare.
3686 (struct cpp_reader): New members op_stack, op_limit.
3687 (struct lexer_state): New member skip_eval.
3688 (_cpp_parse_expr): Update.
3689 (_cpp_expand_op_stack): New.
3690 * cpplib.c (do_if): Update.
3691 * cppinit.c (cpp_create_reader): Create op stack.
3692 (cpp_destroy): And destroy it.
3693 * cpplib.h (CPP_LAST_CPP_OP): Correct.
3694 (TTYPE_TABLE): Correct.
3695
45806a3f
FS
36962002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3697
3698 PR c/6343
3699 * c-decl.c (duplicate_decls): Call merge_weak.
3700 * c-pragma.c (apply_pragma_weak): Warn about misuse.
3701 * output.h (merge_weak): Prototype merge_weak.
3702 * varasm.c (merge_weak): New function.
3703 (declare_weak): Make sure we don't give an error on VAR_DECLs.
3704 Mark RTL with SYMBOL_REF_WEAK.
3705
a6227154
KG
37062002-04-27 Kurt Garloff <garloff@suse.de>
3707
3708 * tree-inline.c (inlinable_function_p): Improve heuristics
3709 by using a smoother function to cut down allowable inlinable size.
3710 * param.def: Add parameters max-inline-insns-single,
3711 max-inline-slope, min-inline-insns that determine the exact
3712 shape of the above function.
3713 * param.h: Likewise.
3714
94a50397
RH
37152002-04-26 Richard Henderson <rth@redhat.com>
3716
3717 * c-parse.in (malloced_yyss, malloced_yyvs): New.
3718 (yyoverflow): Re-add. Set them.
3719 (free_parser_stacks): New.
3720 * c-common.h: Declare it.
3721 * c-lex.c (c_common_parse_file): Call it.
3722
9c0a0632
RH
37232002-04-26 Richard Henderson <rth@redhat.com>
3724
3725 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3726 for fallthru search.
3727
b875d2ee
EC
37282002-04-26 Eric Christopher <echristo@redhat.com>
3729
3730 PR optimization/3700
3731 * config/mips/mips.c (mips_issue_rate): Define. New function.
3732 (TARGET_SCHED_ISSUE_RATE): Use.
3733
1db828df
DM
37342002-04-25 David S. Miller <davem@redhat.com>
3735
3736 PR target/6422
3737 * reorg.c (optimize_skip): Do not allow exception causing
3738 instructions to be considered for delay slots.
3739 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3740 (relax_delay_slots): Do not try to consider exception causing
3741 instructions as redundant.
3742
ae5d234e
RH
37432002-04-26 Richard Henderson <rth@redhat.com>
3744
3745 PR c/5225
3746 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3747
7d793e9b
MM
37482002-04-26 Mark Mitchell <mark@codesourcery.com>
3749
3750 PR bootstrap/6445
3751 * config/i386/i386.md (untyped_call): Return the value in a float
3752 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3753 TARGET_80387.
3754
b13ab42c
AO
37552002-04-26 Alexandre Oliva <aoliva@redhat.com>
3756
3757 * tree.c (tree_int_cst_lt): Compare constants whose types differ
3758 in unsigned-ness correctly.
3759
5e56f909
JDA
37602002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3761
3762 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3763 portable runtime model.
3764
bde3c0c0
RH
37652002-04-26 Richard Henderson <rth@redhat.com>
3766
a6227154 3767 * c-parse.in (yyoverflow): Revert.
bde3c0c0 3768
5276df18
DE
37692002-04-26 David Edelsohn <edelsohn@gnu.org>
3770 Richard Henderson <rth@redhat.com>
3771
3772 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3773 result as temporary value.
3774
b84a3874
RH
37752002-04-26 Richard Henderson <rth@redhat.com>
3776
3777 PR c/3581
3778 * c-common.c (fix_string_type): Split out of ...
3779 (combine_strings): ... here. Take a varray, not a tree list.
3780 (c_expand_builtin_printf): Use fix_string_type.
3781 * c-common.h: Update decls.
3782 * c-parse.in (string): Remove. Update all uses to use STRING
3783 instead, and not call combine_strings.
3784 (yylexstring): New.
3785 (_yylex): Use it.
3786 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3787 (build_asm_stmt): Likewise.
3788 * objc/objc-act.c (my_build_string): Use fix_string_type.
3789 (build_objc_string_object): Build varray for combine_strings.
3790
d8ae8cd4
BT
37912002-04-26 Bo Thorsen <bo@suse.co.uk>
3792
3793 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3794 x86-64.
3795
f8b954fc
NB
37962002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
3797
3798 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3799 (HAVE_NO_R_OPERAND): Remove.
3800 (HAVE_VALUE): Remove.
3801 (op_to_prio): Update.
3802 (UNARY): Don't alter flags.
3803 (_cpp_parse_expr): want_value used to indicate whether
3804 a number or unary operator is expected next. Distinguish
3805 unary and binary +/-.
3806 (op_as_text): Update for unary operators.
3807
6052bef0
RH
38082002-04-25 Richard Henderson <rth@redhat.com>
3809
3810 PR c/2161
3811 * c-parse.in (yyoverflow): New.
3812
5c5b2283
RH
38132002-04-25 Richard Henderson <rth@redhat.com>
3814
3815 PR c/2098
3816 * c-common.c (shorten_compare): Simplfy conditions leading to
3817 the generation of a warning.
3818
28ce94d4
RH
38192002-04-25 Richard Henderson <rth@redhat.com>
3820
3821 PR c/2035
3822 * expmed.c (extract_bit_field): Fall through to generic code rather
3823 than aborting on subreg special case.
3824
6bfd0c63
DM
38252002-04-25 David S. Miller <davem@redhat.com>
3826
3827 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3828 for DECL being NULL.
3829
7a430e3b
SC
38302002-04-25 Steve Christiansen <smc@us.ibm.com>
3831
3832 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3833
45c42d7d
EB
38342002-04-25 Eric Botcazou <ebotcazou@multimania.com>
3835
3836 * c-decl.c (grokdeclarator): Remove outdated ??? note
3837 on invalid declaration of flexible array members.
3838
eb7715a4
RH
38392002-04-25 Richard Henderson <rth@redhat.com>
3840
3841 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3842
cf5ee720
UW
38432002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3844
3845 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3846 needed by the compiler, even if they are used as global regs.
3847
d604bca3
MH
38482002-04-25 Matt Hiller <hiller@redhat.com>
3849
3850 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3851 functions.
3852 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3853 of the corresponding functions.
3854 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3855 New prototypes.
b875d2ee 3856
d604bca3
MH
38572002-04-25 Matt Hiller <hiller@redhat.com>
3858
3859 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3860
3861 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3862 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3863 registers, adjust comment accordingly.
3864 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3865 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3866 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3867 for coprocessor registers.
3868 (ADDITIONAL_REGISTER_NAMES): Include
3869 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 3870
d604bca3
MH
3871 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3872 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3873 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3874 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3875 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3876
3877 (mips_char_to_class): Adjust comment to include coprocessor
3878 constraint letters.
3879
3880 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3881 New functions.
3882 (mips_reg_names, mips_regno_to_class): Include coprocessor
3883 information.
3884 (mips_sw_reg_names): Ditto, make non-static.
3885 (mips_move_1word): Handle moves to and from coprocessor registers.
3886 (mips_move_2words): Handle moves to and from coprocessor
3887 registers.
3888 (mips_class_max_nregs, mips_register_move_cost): Handle
3889 coprocessor register classes.
3890 (override_options): Initialize mips_char_to_class and
3891 mips_hard_regno_mode_ok properly for coprocessor registers.
3892
3893 * config/mips/mips.md (movdi_internal, movdi_internal2,
3894 movsi_internal1, movsi_internal2): Add constraint-sets for
3895 coprocessor registers.
3896 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3897 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3898 isn't mips.
3899 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3900 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3901 isn't mips.
3902 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3903 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3904 isn't mips.
3905 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3906 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3907 isn't mips.
b875d2ee 3908
d604bca3
MH
3909 * doc/tm.texi: Document feature.
3910
b9a26d09
NB
39112002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3912
3913 * integrate.c (function_attribute_inlinable_p): Simplify.
3914 Check the table pointer is not NULL.
3915
ab5973b7
SB
39162002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
3917
3918 * doc/c-tree.texi: Fix typo in introduction.
3919
ff45c01e
NB
39202002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3921
3922 * c-common.h (c_common_parse_file): Update.
3923 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3924 * c-lex.c (YYDEBUG): Get from c-lex.h.
3925 (c_common_parse_file): Update.
3926 * c-lex.h (YYDEBUG, yydebug): New.
3927 * c-parse.in (YYDEBUG): Get from c-lex.h.
3928 (c_set_yydebug): Remove.
3929 * c-tree.h (c_set_yydebug): Remove.
3930 * langhooks-def.h (lhd_do_nothing_i): New.
3931 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3932 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3933 * langhooks.c (lhd_do_nothing_i): New.
3934 (lhd_set_yydebug): Remove.
3935 * langhooks.h (struct lang_hooks): Update.
3936 * toplev.c (set_yydebug): New.
3937 (compile_file): Update call to parse_file hook.
3938 (decode_d_option): Update.
3939objc:
3940 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3941
fcae219a
R
3942Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
3943
3944 * loop.c (load_mems): Don't change the interface of called functions.
3945
3946 * calls.c (expand_call): Take current_function_pretend_args_size
3947 into account when setting argblock for sibcalls.
3948
d0fea45a
MH
39492002-04-24 Matt Hiller <hiller@redhat.com>
3950
3951 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3952 * c-lex.c: Ditto.
3953
3954 * cpplex.c (skip_line_comment): Process comment one multibyte
3955 character at a time rather than one char at a time, if
3956 appropriate.
3957 (parse_string): Process string one multibyte character at a time
3958 rather than one char at a time, if appropriate.
3959 * c-lex.c (lex_string): Lex and copy multibyte strings
3960 appropriately.
3961 * cpplib.h (cppchar_t): Change to unsigned.
3962
2d1b5436
RH
39632002-04-24 Richard Henderson <rth@redhat.com>
3964
3965 PR c/3467
3966 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3967 for c99.
3968
5e039e6b
R
3969Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
3970
3971 * sh.c (sh_va_arg): If argument was passed by reference,
3972 dereference the pointer.
309d8365
R
3973
3974 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
3975
3976 * sh.md (divsi3_i4_media): Use match_operand for input values
3977 rather than hard registers.
3978 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3979 unnecessarily through hard registers. Keep copies of pseudo
3980 registers outside of the libcall sequence.
3981
3982 * sh.md (casesi_shift_media): Add modes.
b700634a
R
3983
3984 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3985 values in memory.
3986
349ae713
NB
39872002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
3988
3989 * attribs.c (c_common_attribute_table): Move table and handlers
3990 to c-common.c.
3991 (format_attribute_table, lang_attribute_table,
3992 lang_attribute_common): Remove.
3993 (init_attributes): Replace NULL pointers with pointers to the
3994 empty table.
3995 (handle_packed_attribute, handle_nocommon_attribute,
3996 handle_common_attribute, handle_noreturn_attribute,
3997 handle_noinline_attribute, handle_always_inline_attribute,
3998 handle_used_attribute, handle_unused_attribute,
3999 handle_const_attribute, handle_transparent_union_attribute,
4000 handle_constructor_attribute, handle_destructor_attribute,
4001 handle_mode_attribute, handle_section_attribute,
4002 handle_aligned_attribute, handle_weak_attribute,
4003 handle_alias_attribute, handle_visibility_attribute,
4004 handle_no_instrument_function_attribute, handle_malloc_attribute,
4005 handle_no_limit_stack_attribute, handle_pure_attribute,
4006 handle_deprecated_attribute, handle_vector_size_attribute,
4007 vector_size_helper): Move to c-common.c.
4008 * c-common.c (c_common_attribute_table,
4009 handle_packed_attribute, handle_nocommon_attribute,
4010 handle_common_attribute, handle_noreturn_attribute,
4011 handle_noinline_attribute, handle_always_inline_attribute,
4012 handle_used_attribute, handle_unused_attribute,
4013 handle_const_attribute, handle_transparent_union_attribute,
4014 handle_constructor_attribute, handle_destructor_attribute,
4015 handle_mode_attribute, handle_section_attribute,
4016 handle_aligned_attribute, handle_weak_attribute,
4017 handle_alias_attribute, handle_visibility_attribute,
4018 handle_no_instrument_function_attribute, handle_malloc_attribute,
4019 handle_no_limit_stack_attribute, handle_pure_attribute,
4020 handle_deprecated_attribute, handle_vector_size_attribute,
4021 vector_size_helper): Move from attribs.c.
4022 * c-common.h (c_common_attribute_table,
4023 c_common_format_attribute_table): New.
4024 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4025 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
4026 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
4027 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
4028 (LANG_HOOKS_INITIALIZER): Update.
4029 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
4030 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
4031 * target.h: Update comment.
4032 * tree.c (default_target_attribute_table): Remove.
4033 * tree.h (default_target_attribute_table, format_attribute_table,
4034 lang_attribute_table, lang_attribute_common): Remove.
4035objc:
4036 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4037 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
4038
84f0ace0
JM
40392002-04-24 Jason Merrill <jason@redhat.com>
4040
4041 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
4042 * dwarf2out.c (dwarf_attr_name): Support it.
4043 (gen_array_type_die): Emit it.
4044 (lookup_type_die): No special handling for VECTOR_TYPE.
4045 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
4046
120eaf28
RH
40472002-04-24 Richard Henderson <rth@redhat.com>
4048
4049 * config/mips/mips.md (movdi_usd): Renumber.
4050
e732178c
DM
40512002-04-24 David S. Miller <davem@redhat.com>
4052
4053 PR target/6420
4054 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
4055 32-bit Sparc and current_function_returns_struct is true.
4056
e879eb2f
JH
4057Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
4058
4059 * loop.c (canonicalize_condition): Use gen_int_mode.
4060
4287a893
AH
40612002-04-24 Aldy Hernandez <aldyh@redhat.com>
4062
4063 * config/rs6000/altivec.h: Cleanup file. Add non individual
4064 variants.
4065 (vec_vaddubm): New.
4066 (vec_vadduhm): New.
4067 (vec_vadduwm): New.
4068 (vec_vaddfp): New.
4069 (vec_vaddcuw): New.
4070 (vec_vaddubs): New.
4071 (vec_vaddsbs): New.
4072 (vec_vadduhs): New.
4073 (vec_vadduws): New.
4074 (vec_vaddsws): New.
4075 (vec_vand): New.
4076 (vec_vandc): New.
4077 (vec_vavgub): New.
4078 (vec_vavgsb): New.
4079 (vec_vavguh): New.
4080 (vec_vavgsh): New.
4081 (vec_vavguw): New.
4082 (vec_vavgsw): New.
4083 (vec_vrfip): New.
4084 (vec_vcmpbfp): New.
4085 (vec_vcmpequb): New.
4086 (vec_vcmpequh): New.
4087 (vec_vcmpequw): New.
4088 (vec_vcmpeqfp): New.
4089 (vec_vcmpgefp): New.
4090 (vec_vcmpgtub): New.
4091 (vec_vcmpgtsb): New.
4092 (vec_vcmpgtuh): New.
4093 (vec_vcmpgtsh): New.
4094 (vec_vcmpgtuw): New.
4095 (vec_vcmpgtsw): New.
4096 (vec_vcmpgtfp): New.
4097 (vec_vcmpgefp): New.
4098 (vec_vcfux): New.
4099 (vec_vcfsx): New.
4100 (vec_vctsxs): New.
4101 (vec_vctuxs): New.
4102 (vec_vexptefp): New.
4103 (vec_vrfim): New.
4104 (vec_lvx): New.
4105 (vec_lvebx): New.
4106 (vec_lvehx): New.
4107 (vec_lde): Add vector float variant.
4108 (vec_lvewx): New.
4109 (vec_lvxl): New.
4110 (vec_vlogefp): New.
4111 (vec_vmaddfp): New.
4112 (vec_vmhaddshs): New.
4113 (vec_vmaxub): New.
4114 (vec_vmaxsb): New.
4115 (vec_vmaxuh): New.
4116 (vec_vmaxsh): New.
4117 (vec_vmaxuw): New.
4118 (vec_vmaxsw): New.
4119 (vec_vmaxsw): New.
4120 (vec_vmaxfp): New.
4121 (vec_vmrghb): New.
4122 (vec_vmrghh): New.
4123 (vec_vmrghw): New.
4124 (vec_vmrglb): New.
4125 (vec_vmrglh): New.
4126 (vec_vmrglw): New.
4127 (vec_vminub): New.
4128 (vec_vminsb): New.
4129 (vec_vminuh): New.
4130 (vec_vminsh): New.
4131 (vec_vminuw): New.
4132 (vec_vminsw): New.
4133 (vec_vminfp): New.
4134 (vec_vmladduhm): New.
4135 (vec_vmhraddshs): New.
4136 (vec_msumubm): New.
4137 (vec_vmsummbm): New.
4138 (vec_vmsumuhm): New.
4139 (vec_vmsumshm): New.
4140 (vec_vmsumuhs): New.
4141 (vec_vmsumshs): New.
4142 (vec_vmuleub): New.
4143 (vec_vmulesb): New.
4144 (vec_vmuleuh): New.
4145 (vec_vmulesh): New.
4146 (vec_vmuloub): New.
4147 (vec_mulosb): New.
4148 (vec_vmulouh): New.
4149 (vec_vmulosh): New.
4150 (vec_vnmsubfp): New.
4151 (vec_vnor): New.
4152 (vec_vor): New.
4153 (vec_vpkuhum): New.
4154 (vec_vpkuwum): New.
4155 (vec_vpkpx): New.
4156 (vec_vpkuhus): New.
4157 (vec_vpkshss): New.
4158 (vec_vpkuwus): New.
4159 (vec_vpkswss): New.
4160 (vec_vpkshus): New.
4161 (vec_vpkswus): New.
4162 (vec_vperm): New.
4163 (vec_vrefp): New.
4164 (vec_vrlb): New.
4165 (vec_vrlh): New.
4166 (vec_vrlw): New.
4167 (vec_vrfin): New.
4168 (vec_vrsqrtefp): New.
4169 (vec_vsel): New.
4170 (vec_vslb): New.
4171 (vec_vslh): New.
4172 (vec_vslw): New.
4173 (vec_vsldoi): New.
4174 (vec_vsl): New.
4175 (vec_vslo): New.
4176 (vec_vspltb): New.
4177 (vec_vsplth): New.
4178 (vec_vspltw): New.
4179 (vec_vspltisb): New.
4180 (vec_vspltish): New.
4181 (vec_vspltisw): New.
4182 (vec_vsrb): New.
4183 (vec_vsrh): New.
4184 (vec_vsrw): New.
4185 (vec_vsrab): New.
4186 (vec_vsrah): New.
4187 (vec_vsraw): New.
4188 (vec_vsr): New.
4189 (vec_vsro): New.
4190 (vec_stvx): New.
4191 (vec_stvebx): New.
4192 (vec_stvehx): New.
4193 (vec_stvewx): New.
4194 (vec_stvxl): New.
4195 (vec_vsububm): New.
4196 (vec_vsubuhm): New.
4197 (vec_vsubuwm): New.
4198 (vec_vsubfp): New.
4199 (vec_vsubcuw): New.
4200 (vec_vsububs): New.
4201 (vec_vsubsbs): New.
4202 (vec_vsubuhs): New.
4203 (vec_vsubshs): New.
4204 (vec_vsubuws): New.
4205 (vec_vsubsws): New.
4206 (vec_vsum4ubs): New.
4207 (vec_vsum4sbs): New.
4208 (vec_vsum4shs): New.
4209 (vec_vsum2sws): New.
4210 (vec_vsumsws): New.
4211 (vec_vrfiz): New.
4212 (vec_vupkhsb): New.
4213 (vec_vupkhpx): New.
4214 (vec_vupkhsh): New.
4215 (vec_vupklsb): New.
4216 (vec_vupklpx): New.
4217 (vec_vupklsh): New.
4218 (vec_vxor): New.
4219
cff27795
EB
42202002-04-23 Eric Botcazou <ebotcazou@multimania.com>
4221
4222 PR c/5430
4223 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
4224 added literals from substracted literals.
4225 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
4226 (fold) [associate]: Preserve MINUS_EXPR if needed.
4227
952bca84
ZW
42282002-04-23 Zack Weinberg <zack@codesourcery.com>
4229
4230 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
4231 are obsoleted.
4232
50cb2154
TT
42332002-04-23 Tom Tromey <tromey@redhat.com>
4234
4235 * gcc.c: Added --resource. For PR java/6314.
4236
271f61fb
DB
42372002-04-23 David O'Brien <obrien@FreeBSD.org>
4238
9566d1e9 4239 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
4240 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
4241 these libraries.
4242
bdabbc80
DB
42432002-04-23 David O'Brien <obrien@FreeBSD.org>
4244
4245 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
4246
74411039
JH
4247Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
4248
4249 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
4250 workaround.
4251 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
4252 (ix86_expand_clrstr): Fix typo.
4253 * loop.c (gen_load_of_final_value): New.
4254 (loop_givs_rescan, strength_reduce, check_dbra_loop):
4255 Use it.
4256
1a887f86
RS
42572002-04-23 Roger Sayle <roger@eyesopen.com>
4258
4259 * builtins.c (builtin_memset_gen_str): New function.
4260 (expand_builtin_memset): Optimize the case of constant length, but
4261 unknown value.
4262
8d3441e0
AH
42632002-04-23 Aldy Hernandez <aldyh@redhat.com>
4264
cff27795
EB
4265 * config/rs6000/altivec.h (vec_step): Remove extraneous
4266 parentheses.
4267 (vec_ctu): Cast return.
8d3441e0 4268
f6f315fe
AM
42692002-04-23 Alan Modra <amodra@bigpond.net.au>
4270
4271 PR target/6413
4272 * function.h: (struct function): Add profile_label_no field.
4273 (current_function_profile_label_no): Define.
4274 * function.c: (profile_label_no): New static var.
4275 (expand_function_start): Increment it, and copy to
4276 current_function_profile_label_no.
4277 * output.h (profile_label_no): Delete.
4278 * final.c (profile_label_no): Delete.
4279 (profile_function): Use current_function_profile_label_no.
4280 (final_end_function): Don't increment profile_label_no here.
4281 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
4282 profile_label_no with current_function_profile_label_no.
4283 * config/pa/pa.c (current_function_number): Delete.
4284 (pa_output_function_prologue): Don't output profile label here.
4285 (hppa_profile_hook): Use label_no param rather than
4286 current_function_number.
4287 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
4288 * config/pa/pa.h: .. here.
4289 (FUNCTION_PROFILER): Output profile label here.
4290
d239cdc0
EC
42912002-04-22 Eric Christopher <echristo@redhat.com>
4292
4293 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
4294 patch of 2002-04-09 due to binutils issues.
4295 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
4296
04428ad4
AH
42972002-04-22 Aldy Hernandez <aldyh@redhat.com>
4298
cff27795
EB
4299 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
4300 constraint to 'o' for m=r and r=m alternatives.
4301 ("*movv8hi_internal1"): Same.
4302 ("*movv16qi_internal1"): Same.
4303 ("*movv4sf_internal1"): Same.
04428ad4 4304
2adc7f12
JJ
43052002-04-22 Janis Johnson <janis187@us.ibm.com>
4306
4307 * rtl.h (RTX_FLAG): New macro.
4308 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
4309 * final.c (alter_subreg): Use macro to access rtx flag.
4310 * integrate.c (copy_rtx_and_substitute): Use new access macro.
4311 * print-rtl.c (print_rtx): Use new access macro.
4312
4313 * cse.c (insert): Check rtx code before accessing flag.
4314
4315 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
4316 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
4317 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
4318 convert_const_symbol_ref, make_canonical, make_alternative_compare,
4319 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
4320 simplify_test_exp, optimize_attrs, simplify_by_exploding,
4321 find_and_mark_used_attributes, unmark_used_attributes,
4322 add_values_to_cover, simplify_with_current_value,
4323 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
4324 copy_rtx_unchanging, main): Use new access macros.
4325
b7c89afe
TR
43262002-04-22 Tom Rix <trix@redhat.com>
4327
4328 * expmed.c (init_expmed): Generate shifted constant once.
4329
9340544b
ZW
43302002-04-22 Zack Weinberg <zack@codesourcery.com>
4331
4332 * c-lex.c (lex_charconst): Call convert to get constant in
4333 proper type; don't just smash the type field.
4334 Fixes PR c/6300.
4335
4336 * config.gcc: Add list of obsolete configurations. Disallow
4337 building these without --enable-obsolete.
4338 * doc/install.texi: Document --enable-obsolete and obsoletion
4339 policy. Mention obsoletion of individual targets in
4340 appropriate places.
4341
f942d7a5
RH
43422002-04-22 Richard Henderson <rth@redhat.com>
4343
4344 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
4345
43462002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
4347
4348 PR f/6138.
4349 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
4350 (walk_fixup_memory_subreg): Likewise.
4351 (fixup_var_refs_insn): Adjust accordingly.
4352 (fixup_var_refs_1): Likewise.
4353
232b0b45
UW
43542002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
4355
4356 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
4357 LIBPATH_ARCH64_SPEC): Define.
4358 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
4359 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
4360 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
4361 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
4362
1b61552b
JS
43632002-04-22 Joel Sherrill <joel@OARcorp.com>
4364
4365 * gthr-rtems.h: Correct prototypes to remove warnings.
4366
0fe854a7
RH
43672002-04-22 Richard Henderson <rth@redhat.com>
4368
4369 PR c/6344
4370 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
4371
4372 * gcse.c (free_insn_expr_list_list): New.
4373 (clear_modify_mem_tables): Use it. Fix bit set usage.
4374 (canon_list_insert): Use EXPR_LISTs for expressions.
4375 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
4376
af0d16cd
NB
43772002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
4378
4379 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
4380 file change and include code to _cpp_pop_buffer.
4381 * cpphash.h (struct pending_option): Predeclare.
4382 (struct cpp_reader): New member next_include_file.
4383 (_cpp_pop_file_buffer): Update.
4384 (_cpp_push_next_buffer): Update, rename.
4385 * cppinit.c (cpp_destroy): Free include chain and pending here.
4386 (cpp_finish_options): Simplify.
4387 (_cpp_push_next_buffer): Rename and clean up.
4388 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
4389 Clarify.
4390 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
4391
0d918572
AH
43922002-04-22 Aldy Hernandez <aldyh@redhat.com>
4393
0fe854a7
RH
4394 * config/rs6000/altivec.h (vec_xor): Add variant for both args
4395 being vector signed int.
4396 (vec_andc): Same.
4397 (vec_xor): Add variant for both args being vector signed char.
4398 Remove redundant variant.
4399 (vec_andc): Same.
0d918572 4400
77e2c290
DM
44012002-04-21 David S. Miller <davem@redhat.com>
4402
4403 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
4404 compare mode in output RTL.
4405
ee2ca2a2
DE
44062002-04-22 David Edelsohn <edelsohn@gnu.org>
4407
4408 * config/rs6000/rs6000.c (rs6000_override_options): Correct
4409 style and formatting of previous patch.
4410
894bdff6
AM
44112002-04-22 Alan Modra <amodra@bigpond.net.au>
4412
4413 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
4414 flag_pic for ABI_AIX.
4415
562a5c27
NB
44162002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
4417
4418 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
4419 * cppfiles.c (read_include_file): Similarly.
4420 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
4421 uxstrdup ustrchr, ufputs): Similarly.
4422 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
4423 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
4424 cpp_ideq, parse_identifier, parse_number): Similarly.
4425 * cpplib.c (struct directive, dequote_string, D, run_directive,
4426 cpp_push_buffer): Similarly.
4427 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
4428 _cpp_create_definition, check_trad_stringification,
4429 cpp_macro_definition): Similarly.
4430
9ac3b1be
NB
44312002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
4432
4433 * cppmacro.c (funlike_invocation_p): Don't step back
4434 over CPP_EOF.
4435
9dda4cc8
DE
44362002-04-21 David Edelsohn <edelsohn@gnu.org>
4437
4438 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
4439 labelno.
4440
20764052
JM
44412002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
4442
4443 * doc/invoke.texi: Remove Chill references.
4444 * doc/gcc.texi: Update last modified date.
4445
26b29884
KH
44462002-04-20 Kazu Hirata <kazu@hxi.com>
4447
4448 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
4449 push and pop. Replace add.l with add.w.
4450
59184677
TM
44512002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4452
4453 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
4454 multiply instructions for H8/300H case.
4455
b1113e0a
TM
44562002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4457
4458 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
4459 Bum three instructions from each routine.
4460
b03e38e1
NB
44612002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
4462
4463 * Makefile.in: Update.
4464 * decl.c (push_c_function_context, pop_c_function_context,
4465 mark_c_function_context): Rename for consistency.
4466 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
4467 * c-tree.h (push_c_function_context, pop_c_function_context,
4468 mark_c_function_context): Rename for consistency.
4469 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4470 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4471 * function.c (init_lang_status, save_lang_status,
4472 restore_lang_status, mark_lang_status, free_lang_status):
4473 Move to langhooks.h.
4474 (push_function_context_to, pop_function_context_from,
4475 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
4476 Update.
4477 * function.h (init_lang_status, save_lang_status,
4478 restore_lang_status, mark_lang_status, free_lang_status):
4479 Move to langhooks.h.
4480 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
4481 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
4482 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
4483 LANG_HOOKS_FUNCTION_INITIALIZER): New.
4484 (LANG_HOOKS_INITIALIZER): Update.
4485 (lhd_do_nothing_f): New.
4486 * langhooks.h (struct lang_hooks_for_functions): New.
4487 (struct lang_hooks): New hooks.
4488 * langhooks.c (lhd_do_nothing_f): New.
4489objc:
4490 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4491 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4492
db430d26
DM
44932002-04-19 David S. Miller <davem@redhat.com>
4494
4495 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
4496 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
4497
0f2a3457
JJ
44982002-04-19 Jakub Jelinek <jakub@redhat.com>
4499
4500 PR optimization/3756
4501 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
4502 x = ((int) y < 0) ? cst1 : cst2.
4503
ce5e43d0
JJ
45042002-04-19 Jakub Jelinek <jakub@redhat.com>
4505
4506 PR c/6358
4507 * function.c: Reapply patch for c/6358.
4508 (expand_function_end): Copy decl_rtl's mode, not
4509 current_function_return_rtx mode.
4510
45112002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
4512
4513 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
4514 targets.
4515
40e7f8ea
TT
45162002-04-19 Tom Tromey <tromey@redhat.com>
4517
4518 * doc/install.texi (Specific): Update status of Solaris 2.8.
4519 For PR libgcj/6158.
4520
62a12b27
AS
45212002-04-19 Andreas Schwab <schwab@suse.de>
4522
4523 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
4524 (PUT_REAL): Restore old definition.
4525
1405141b
DN
45262002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
4527 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4528
4529 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
4530 binutils 2.11.2 and higher generate smaller binaries than Sun's
4531 native tools.
4532
303a3927
MM
45332002-04-19 Mark Mitchell <mark@codesourcery.com>
4534
4535 PR c++/6352
4536 * toplev.c (rest_of_compilation): Do not defer functions for which
4537 TREE_SYMBOL_REFERENCED has already been set.
4538
de80110b
JH
4539Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
4540
4541 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
4542 alternative.
4543
ab393bf1
NB
45442002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
4545
4546 * builtins.c: Include langhooks.h.
4547 (lang_type_promotes_to): Remove.
4548 (expand_builtin_va_arg): Use new hook.
4549 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
4550 (simple_type_promotes_to): Move to c-typeck.c.
4551 * c-common.h (simple_type_promotes_to): Remove.
4552 * c-decl.c (duplicate_decls, grokdeclarator): Update.
4553 * c-format.c: Include langhooks.h.
4554 (check_format_types): Update.
4555 * c-tree.h (c_type_promotes_to): New.
4556 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
4557 (type_lists_compatible_p): Update.
4558 * langhooks-def.h (lhd_type_promotes_to): New.
4559 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
4560 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4561 * langhooks.c (lhd_type_promotes_to): New.
4562 * langhooks.h (struct lang_hooks_for_types): New hook.
4563 * tree.h (lang_type_promotes_to): Remove.
4564objc:
4565 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4566
0cd3301b
RH
45672002-04-18 Richard Henderson <rth@redhat.com>
4568
58533fa2 4569 * function.c: Revert patch for c/6358.
0cd3301b
RH
4570
45712002-04-18 Richard Henderson <rth@redhat.com>
4572
58533fa2
RH
4573 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
4574 blocks. Handle multiple references to the TRAP block. Handle
4575 non-adjacent THEN and OTHER blocks.
0cd3301b 4576
58533fa2
RH
45772002-04-18 Richard Henderson <rth@redhat.com>
4578
4579 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
4580 crash with no type for by-mode libcalls.
4581
4582 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 4583
57174693
BW
45842002-04-18 Bob Wilson <bob.wilson@acm.org>
4585
4586 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
4587 __xtensa_nonlocal_goto): Use a syscall instructions to flush
4588 the register windows.
4589
46468cd9
ZW
45902002-04-18 Zack Weinberg <zack@codesourcery.com>
4591
4592 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
4593 appropriate. Document need for extended precision even when
4594 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
4595 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
4596 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
4597 instead of relying on later syntax error when REAL_WIDTH > 5.
4598 * real.c: Define NE based only on whether or not we have a
4599 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
4600 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
4601 define GET_REAL and PUT_REAL as simple memcpy operations; no
4602 need to byteswap or round.
4603 Use #error instead of #ifdef-ing out the entire file, for
4604 prompt error detection.
4605
4606 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
4607
2f82dbf8
DM
46082002-04-18 David S. Miller <davem@redhat.com>
4609
4610 * config/sparc/sparc.h (BRANCH_COST): Define.
4611
4612 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
4613 does it.
4614
566576e7
HPN
46152002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
4616
4617 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
4618 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
4619 propagate_block calls after relaxation loop using new variable
4620 stabilized_prop_flags.
4621
51dcde6f
RH
46222002-04-18 Richard Henderson <rth@redhat.com>
4623
4624 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
4625 (ia64_va_arg): Expect variable sized types by reference.
4626 * config/ia64/ia64-protos.h: Update.
46468cd9 4627 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
4628 ia64_function_arg_pass_by_reference.
4629
26406018
RH
46302002-04-18 Richard Henderson <rth@redhat.com>
4631
46468cd9
ZW
4632 * ifcvt.c: Include except.h.
4633 (block_has_only_trap): Break out from find_cond_trap.
4634 (find_cond_trap): Use it. Always delete the trap block.
4635 (merge_if_block): Allow then block null. Be less simplistic about
4636 what insns can end a block.
4637 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 4638
26406018
RH
4639 * config/ia64/ia64.md (trap, conditional_trap): New.
4640
a3acf46d
JJ
46412002-04-18 Jakub Jelinek <jakub@redhat.com>
4642
4643 PR c/6358
4644 * function.c (assign_parms): Assign hard current_function_return_rtx
4645 register here...
4646 (expand_function_end): ...not here.
4647
7a228918
NB
46482002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
4649
4650 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4651 * c-tree.h (c_incomplete_type_error): New.
4652 * c-typeck.c (require_complete_type, build_component_ref): Update.
4653 (incomplete_type_error): Rename.
4654 * langhooks-def.h (lhd_incomplete_type_error): New.
4655 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
4656 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4657 * langhooks.c (lhd_incomplete_type_error): New.
4658 * langhooks.h (struct lang_hooks_for_types): New hook.
4659 * tree.c (size_in_bytes): Use new hook.
4660 * tree.h (incomplete_type_error): Remove.
4661objc:
4662 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4663
f18664c1
ZW
46642002-04-18 Zack Weinberg <zack@codesourcery.com>
4665
4666 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
4667 TARGET_FLOAT_FORMAT blocks.
4668
8ecab453
GP
46692002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4670
4671 * doc/install.texi (Downloading the source): Do not mention Chill
4672 any longer, but mention Ada.
4673 (Configuration): Do not mention Chill any longer.
4674
528d8489
HPN
46752002-04-18 Hans-Peter Nilsson <hp@axis.com>
4676
4677 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4678
91da27c5
JH
4679Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
4680
4681 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4682 in last patch.
4683
a32db605
JJ
46842002-04-18 Jakub Jelinek <jakub@redhat.com>
4685
4686 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4687 instead of unsigned_type.
4688
5a28d8cc
JH
4689Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4690
4691 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4692 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4693 later.
4694
3d980b9f
BS
46952002-04-18 Bernd Schmidt <bernds@redhat.com>
4696
4697 * attribs.c (vector_type_node_list): New static variable.
4698 (handle_vector_size_attribute): Use it to avoid generating a
4699 new type node each time we are called.
4700
2e676d78
BS
4701 * combine.c (subst): Avoid trying to make a vector mode subreg of
4702 an integer constant.
4703 (gen_lowpart_for_combine): Likewise.
46468cd9 4704
58c2956c
RS
47052002-04-18 Roger Sayle <roger@eyesopen.com>
4706 Jakub Jelinek <jakub@redhat.com>
4707
4708 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4709 for integer constant c (if x has unsigned type or sign bit is not
4710 set in c). This folds the zero/sign extension into the bit-wise and
4711 operation.
4712
692efa8e
JJ
47132002-04-18 Jakub Jelinek <jakub@redhat.com>
4714
4715 PR middle-end/6205
4716 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4717 otherwise xorps.
4718
1372d4ce
NY
47192002-04-17 NIIBE Yutaka <gniibe@m17n.org>
4720
4721 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4722
169ce44d
NC
47232002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
4724
4725 * gcc.c (read_specs): Detect and fail if an attempt is made to
4726 rename a spec string to an already existing string.
4727
b30d2115
UW
47282002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4729
4730 * config/s390/s390.c (legitimize_pic_address): Do not generate
4731 illegal address constant without CONST.
4732
d6964c30
KG
47332002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4734
4735 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4736 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4737
7c82a1ed
UW
47382002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4739
4740 PR optimization/6305
4741 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4742 to make sure previous reloads are taken into account. Generate
4743 better code if one operand is an in-range immediate constant.
4744
58db9d1a
AH
47452002-04-16 Andrew Haley <aph@cambridge.redhat.com>
4746
4747 * doc/install.texi (Building): libgcj requires GNU make.
4748
2a732575
JJ
47492002-04-17 Jakub Jelinek <jakub@redhat.com>
4750
4751 PR bootstrap/6315
4752 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4753 even if hard quad and register is not floating.
4754 (movtf reg<-mem split): Disallow splitting if hard quad and
4755 register is floating.
4756 (movtf mem<-reg split): Likewise.
4757 * config/sparc/sparc.c (fp_register_operand): New predicate.
4758 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4759
75a65e46
ZW
47602002-04-17 Zack Weinberg <zack@codesourcery.com>
4761
4762 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4763 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4764 (unprotoize.o): Ditto. Build from protoize.c. Define
4765 UNPROTOIZE on command line.
4766 * protoize.c: Include cppdefault.h. Delete include_defaults.
4767 (in_system_include_dir): Use cpp_include_defaults (defined in
4768 cppdefault.o).
4769 * unprotoize.c: Delete file.
4770
650f0e97
AH
47712002-04-17 Aldy Hernandez <aldyh@redhat.com>
4772
46468cd9
ZW
4773 * config/rs6000/altivec.h (vec_ld): Add array variants.
4774 (vec_lde): Same.
4775 (vec_ldl): Same.
650f0e97 4776
71a0ab0c 47772002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 4778 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 4779
46468cd9
ZW
4780 * config/rs6000/altivec.h: Define __ALTIVEC__.
4781 (bool): New.
4782 (__pixel): New.
4783 (pixel): New.
4784 (vec_cfux): New.
4785 (vec_vmaddfp): New.
4786 (vec_vsldoi): New.
4787 Add parentheses to all macro arguments.
71a0ab0c 4788
ff2c46ac
RH
47892002-04-16 Richard Henderson <rth@redhat.com>
4790
4791 PR c++/6320
4792 * except.c (remove_eh_handler): Insert inner regions at beginning
4793 of sibling chain. Refactor expressions.
4794
f1ba94dd
RH
47952002-04-16 Richard Henderson <rth@redhat.com>
4796
f0871dfe
RH
4797 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4798 * config/sparc/sol2-gas-bi.h: New file.
4799 * config.gcc (sparc*-solaris): Add it as needed.
4800 * configure.in (AS_SPARC64_FLAG): Remove check.
4801 * config.in, configure: Regenerate.
4802
4803 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4804
48052002-04-16 Richard Henderson <rth@redhat.com>
4806
4807 * config/mips/mips.c (override_options): Don't override N32 for
4808 a 64-bit ISA.
409d3c60 4809
f1ba94dd
RH
4810 PR 6202
4811 * config/mips/mips.md (can_delay): Split out of existing define_delays.
4812 (HILO_delay): Set can_delay false.
4813
178c3eff
DJ
48142002-04-16 Dale Johannesen <dalej@apple.com>
4815
4816 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4817 instruction addresses.
4818 (rs6000_output_function_epilogue): Likewise.
4819
7d6f6369
PC
48202002-04-16 Paolo Carlini <pcarlini@unitus.it>
4821
4822 * c-parse.in (poplevel, compstmt_start,
4823 compstmt_primary_start): Add ending ';', in accordance
4824 with POSIX.
4825
8947df0c
RH
48262002-04-16 Richard Henderson <rth@redhat.com>
4827
4828 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4829 Adjust tm_file order to get TARGET_DEFAULT set properly.
4830 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4831 * doc/install.texi (sparc-solaris): Update.
4832
3148ad6d
DJ
48332002-04-16 Dale Johannesen <dalej@apple.com>
4834
4835 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4836 comparison operands do not match each other or if modes of
4837 conditions do not match result.
4838
014cb9b6 48392002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 4840
014cb9b6
HP
4841 PR target/6305
4842 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 4843 multiword register.
562a69be 4844
014cb9b6 48452002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 4846
8947df0c 4847 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 4848
a9772b60
JJ
48492002-04-16 Jakub Jelinek <jakub@redhat.com>
4850
4851 PR middle-end/6279
4852 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4853
4854 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4855
861829ed
RH
48562002-04-15 Richard Henderson <rth@redhat.com>
4857
4858 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4859 call_really_used_regs too.
4860
bcf2fe9c
RH
48612002-04-15 Richard Henderson <rth@redhat.com>
4862
4863 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4864
629111c7
DM
48652002-04-15 David S. Miller <davem@redhat.com>
4866
4867 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4868 as being CLOBBERed.
4869
98ef3137
JJ
48702002-04-16 Jakub Jelinek <jakub@redhat.com>
4871
4872 PR c/6290
4873 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4874 CONST_VECTOR is { 0, ... 0 }.
4875
0aa911c5
LR
48762002-04-15 Loren J. Rittle <ljrittle@acm.org>
4877
4878 * doc/install.texi (Installing GCC: Configuration): Clarify
4879 the only supported ways to configure gcc.
4880
83248d49 48812002-04-15 Roland McGrath <roland@frob.com>
46468cd9 4882
83248d49
RM
4883 * config.gcc (alpha*-*-gnu*): New target configuration.
4884 * config/alpha/gnu.h: New file for it.
4885 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4886
b2123dc0
MM
48872002-04-16 Mark Mitchell <mark@codesourcery.com>
4888
4889 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4890 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4891 * tree.h (expand_start_stmt_expr): Update prototype.
4892 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4893 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4894 on the STMT_EXPR created for the inline function.
46468cd9 4895
8fe2d853
RH
48962002-04-15 Richard Henderson <rth@redhat.com>
4897
4898 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4899 config/i386/linux-aout.h, config/i386/linux-oldld.h,
4900 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4901 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4902 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4903 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4904 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4905 Define __gnu_linux__, not gnu_linux.
4906 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4907
07cdae91
MM
49082002-04-15 Mark Mitchell <mark@codesourcery.com>
4909
4910 Remove Chill front end.
4911 * gcc.c (default_compilers): Remove Chill entries.
4912 * ch: Remove directory.
4913 * doc/frontends.texi: Remove information about Chill.
4914 * doc/sourcebuild.texi: Likewise.
4915 * doc/standards.texi: Likewise.
4916
41823c5e
DR
49172002-04-15 Douglas B Rupp <rupp@gnat.com>
4918
4919 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4920 (LONGLONG_STANDALONE): Define.
4921
eb29ddb6
DM
49222002-04-15 David S. Miller <davem@redhat.com>
4923
4924 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4925 Call emit_library_call with LCT_NORMAL.
4926 (sparc_initialize_trampoline): Use LCT_foo instead of
4927 magic constant in emit_library_call invocations.
4928 (sparc64_initialize_trampoline): Likewise.
4929 (sparc_profile_hook): Likewise.
4930 * config/sparc/sparc.md: Likewise.
4931
4932 * config/sparc/sparc.c (sparc_extra_constraint_check):
4933 Fix type of argument 'c'.
4934 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4935 Likewise.
4936
bd6bec6b
GDR
49372002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4938
4939 * diagnostic.h (output_buffer_state): Redefine.
4940 (output_format_decoder): New macro.
4941 (output_prefixing_rule): Likewise.
4942 (output_line_cutoff): Likewise.
4943 (diagnostic_format_decoder): Adjust.
4944 (diagnostic_prefixing_rule): Likewise.
4945 (diagnostic_line_cutoff): Likewise.
4946 (diagnostic_state): Likewise.
4947 (diagnostic_kind_count): Likewise.
4948 (diagnostic_buffer): Now a macro.
4949
4950 * diagnostic.c (diagnostic_buffer): Remove definition.
4951 (output_is_line_wrapping): Adjust.
4952 (set_real_maximum_length): Likewise.
4953 (output_set_maximum_length): Likewise.
4954 (init_output_buffer): Likewise.
4955 (lhd_print_error_function): Likewise.
4956 (output_do_verbatim): Likewise.
4957
ebef4e8c
NB
49582002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
4959
4960 * cpperror.c (print_location): Don't print include chain
4961 if line == 0.
4962 (cpp_begin_message): Update to use DL_ macros.
4963 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4964 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4965 cpp_notice, cpp_notice_from_errno): Remove.
4966 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4967 level.
4968 (cpp_errno): New.
4969 * cppexp.c (CPP_ICE): Remove.
4970 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4971 lex, integer_overflow, _cpp_parse_expr): Update.
4972 * cppfiles.c (read_include_file, find_include_file,
4973 handle_missing_header, _cpp_read_file, remap_filename): Update.
4974 * cpphash.h (enum error_type): Remove.
4975 (_cpp_begin_message): Update.
4976 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4977 cpp_handle_option, cpp_post_options): Update.
4978 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4979 skip_whitespace, parse_identifier, parse_slow, parse_string,
4980 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4981 cpp_interpret_charconst): Update.
4982 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4983 lex_macro_node, do_undef, glue_header_name, parse_include,
4984 do_include_common, read_flag, do_line, do_linemarker, do_ident,
4985 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4986 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4987 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4988 _cpp_pop_buffer, do_diagnostic): Update.
4989 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4990 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4991 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4992 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4993 cpp_notice, cpp_notice_from_errno): Remove.
4994 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4995 level.
4996 (cpp_errno): New.
4997 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4998 collect_args, enter_macro_context, save_parameter, parse_params,
4999 _cpp_create_definition, check_trad_stringification,
5000 cpp_macro_definition): Update.
5001 * cppmain.c (cpp_preprocess_file): Update.
5002 * fix-header.c (read_scan_file): Update.
5003
c19a3859
AS
50042002-04-14 Andreas Schwab <schwab@suse.de>
5005
5006 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
5007
10fdbed6
JD
50082002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5009
5010 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
5011
77660a9a
MM
50122002-04-13 Mark Mitchell <mark@codesourcery.com>
5013
5014 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
5015 not gnu_hurd.
5016
e0ff1ded
HPN
50172002-04-13 Hans-Peter Nilsson <hp@axis.com>
5018
5019 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
5020
2341c7ea
JS
50212002-04-13 Joel Sherrill <joel@OARcorp.com>
5022
5023 * config/sparc/t-elf: Enable v8 multilibs. Impacts
5024 sparc-elf and sparc-rtems targets.
5025
d29350c0
MM
50262002-04-13 Mark Mitchell <mark@codesourcery.com>
5027
5028 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
5029 defined, and __gnu_hurd__ wherever __GNU__ is defined.
5030 * arm/linux-elf.h: Likewise.
5031 * cris/aout.h: Likewise.
5032 * cris/linux.h: Likewise.
5033 * i370/linux.h: Likewise.
5034 * i386/gnu.h: Likewise.
5035 * i386/linux-aout.h: Likewise.
5036 * i386/linux-oldld.h: Likewise.
5037 * i386/linux.h: Likewise.
5038 * i386/linux64.h: Likewise.
5039 * ia64/linux.h: Likewise.
5040 * m68k/linux-aout.h: Likewise.
5041 * m68k/linux.h: Likewise.
5042 * mips/linux.h: Likewise.
5043 * pa/pa-linux.h: Likewise.
5044 * pj/linux.h: Likewise.
5045 * rs6000/sysv4.h: Likewise.
5046 * s390/linux.h: Likewise.
5047 * sh/linux.h: Likewise.
5048 * sparc/linux-aout.h: Likewise.
5049 * sparc/linux.h: Likewise.
5050 * sparc/linux64.h: Likewise.
5051 * xtensa/linux.h: Likewise.
5052
fc552851
RS
50532002-04-13 Richard Sandiford <rsandifo@redhat.com>
5054
5055 * stmt.c (check_unique_operand_names): Expect operand names to
5056 be strings rather than identifiers. Use simple_cst_equal to
5057 compare them.
5058 (resolve_operand_name_1): Make same identifier to string change here.
5059 * c-parse.in (asm_operand): Convert a named operand into a string.
5060 * cp/parse.y (asm_operand): Likewise.
5061
1d405c5e
AS
50622002-04-13 Andreas Schwab <schwab@suse.de>
5063
5064 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
5065
c740732f
MM
50662002-04-12 Mark Mitchell <mark@codesourcery.com>
5067
5068 Revert these changes:
5069
5070 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5071
5072 PR c++/5571
5073 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5074
3fc602a0
RH
50752002-04-12 Richard Henderson <rth@redhat.com>
5076
5077 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
5078 (sparc*-*-solaris): Clean up header files.
5079 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
5080 and plan on generating 64-bit code.
5081 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
5082 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
5083 * config/sparc/sol2-sld-64.h: Rename ...
5084 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
5085 for AS_SPARC64_FLAG not defined.
5086 * config/sparc/sol2-gld-bi.h: New.
5087 * config/sparc/sol2-sld.h: Remove.
5088 * config/sparc/sol26-sld.h: New.
5089 * config/sparc/sol2.h: Tidy comments.
5090 * doc/install.texi: Document sparc-solaris configury changes.
5091
2f15e255
RH
50922002-04-12 Richard Henderson <rth@redhat.com>
5093
5094 * recog.c (offsettable_address_p): Match the logic in adjust_address.
5095
5096 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
5097 in 64-bit mode only. Use only for 32-bit or MEDLOW.
5098
cc8475cb
RO
50992002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5100
5101 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
5102
6f133a4a
JL
5103Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
5104
ef1b8858 5105 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
5106 constrain_operands.
5107
1329e600
DR
51082002-04-12 Douglas B Rupp <rupp@gnat.com>
5109
5110 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
5111 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
5112 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 5113 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
5114 * config/i386/t-interix (USER_H): Remove.
5115
0339d239
DD
51162002-04-12 DJ Delorie <dj@redhat.com>
5117
5118 * integrate.c (compare_blocks): Make comparisons safe for when
5119 sizeof(int) < sizeof(char *).
5120 (find_block): Likewise.
5121
cc4d5fec
JH
51222002-04-12 Jan Hubicka <jh@suse.cz>
5123 David Edelsohn <edelsohn@gnu.org>
5124
5125 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
5126 registers.
5127 (symbol_ref_operand): New.
5128 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
5129 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
5130
93215a1b
AS
51312002-04-12 Andreas Schwab <schwab@suse.de>
5132
5133 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
5134 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
5135 overrides the definition in config/svr4.h.
46468cd9 5136
1d80248e
EN
51372002-04-12 Eric Norum <eric.norum@usask.ca>
5138
5139 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
5140 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
5141 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
5142 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
5143 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
5144 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
5145 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
5146 definitions to config/rtems.h and make the targets more similar.
5147
fa1591cb
RK
5148Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5149
fa06ab5c
RK
5150 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
5151 POINTERS_EXTEND_UNSIGNED.
5152 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
5153 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
5154
fa1591cb
RK
5155 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
5156 not specified.
5157
12e85a0e
R
5158Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
5159
5160 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
5161 depends on TARGET_SHMEDIA, not TARGET_SH5.
5162
1ab3e58a
HPN
51632002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
5164
5165 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
5166 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
5167
18778292
R
5168Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
5169
5170 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
5171 no r0 clobber.
5172
9002507c
AS
51732002-04-12 Andreas Schwab <schwab@suse.de>
5174
5175 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
5176
9be40833
RH
51772002-04-12 Richard Henderson <rth@redhat.com>
5178
5179 PR bootstrap/4191
5180 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
5181
5182 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
5183 modes spanning multiple hard regs.
46468cd9 5184
9be40833
RH
5185 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
5186
3d9268b6
JDA
51872002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5188
5189 * pa.c (pa_output_function_prologue): Don't accumulate the total
5190 number of code bytes when using TARGET_64BIT, or gas, SOM and not
5191 the portable runtime.
5192 (output_deferred_plabels): Handle 64bit plabels.
5193 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
5194 generating pic code using the GAS assembler for object formats that
5195 are not SOM (ie., ELF32 and ELF64).
5196 (output_millicode_call): Check attribute type if attribute length is 28.
5197 Likewise use $PIC_pcrel$0. Only call get_attr_length and
5198 dbr_sequence_length once.
5199 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
5200 dbr_sequence_length once.
5201 * pa.h (TARGET_SOM): Define if not defined.
5202 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
5203 with GAS and not SOM.
5204 (jump, call_internal_reg, call_value_internal_reg): Likewise.
5205 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
5206
d360fd18
DB
52072002-04-11 David O'Brien <obrien@FreeBSD.org>
5208
5209 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
5210 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
5211 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
5212 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
5213 elfos.h and dbxelf.h values are fine now.
5214 * config/i386/freebsd.h, config/alpha/freebsd.h
5215 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
5216
5b8fcab6
DB
52172002-04-11 David O'Brien <obrien@FreeBSD.org>
5218
5219 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
5220 or set Acpu or Amachine. Reformat.
5221 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5222 define.
5223 (LINK_SPEC): Do not need to undef.
5224 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
5225 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
5226 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5227 define.
5228 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
5229 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
5230 (LINK_SPEC): Do not need to undef.
5231 (DONT_USE_BUILTIN_SETJMP): Do not define.
5232 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
5233 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
5234 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
5235 Remove trailing spaces.
5236 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
5237 __ELF__, or set Acpu or Amachine. Reformat.
5238 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5239 define.
5240
fee42cc1
DB
52412002-04-11 David O'Brien <obrien@FreeBSD.org>
5242
5243 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
5244 all other *-*-freebsd* targets.
5245
77a403e4
RH
52462002-04-11 Richard Henderson <rth@redhat.com>
5247
5248 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
5249
cf0005c6
DB
52502002-04-11 David O'Brien <obrien@FreeBSD.org>
5251
5252 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
5253 Include {cpu}/{cpu}.h thru tm_file.
5254 (alpha*-*-linux*ecoff): Remove target.
5255 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
5256 (LINK_SPEC): Remove, is not OS independent.
5257 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
5258 (LINK_SPEC): Do not need to #undef any longer.
5259 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
5260 any longer.
5261 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
5262 __ELF__.
5263 (LINK_SPEC): Moved here from alpha/elf.h.
5264 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
5265 SUB_CPP_PREDEFINES.
5266 * config/alpha/linux-ecoff.h: Remove.
5267 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
5268 (CPP_SPEC): Define _POSIX_SOURCE as needed.
5269 (CPP_SUBTARGET_SPEC): Do not define.
5270 (LINK_SPEC): Do not need to #undef any longer.
5271 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
5272 * config/alpha/vms.h: Likewise.
5273
9be40833 52742002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
5275
5276 * doc/extend.texi: Remove old claim that typedefs cannot have
5277 an alignment attribute.
5278
010f87c4
JJ
52792002-04-11 Jakub Jelinek <jakub@redhat.com>
5280
5281 PR optimization/6177
5282 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
5283 bitpos is 0 and bitsize CONCAT size.
5284
578fc63d
JJ
52852002-04-11 Jakub Jelinek <jakub@redhat.com>
5286
5287 PR c/6223
5288 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
5289
bf9b85ce
DB
52902002-04-10 David O'Brien <obrien@FreeBSD.org>
5291
5292 * config/alpha/freebsd.h: Minor reformatting.
5293 (CPP_SPEC): Define ELF and add cpp_subtarget.
5294 (ASM_SPEC): No longer needed.
5295
7425707d
RH
52962002-04-11 Richard Henderson <rth@redhat.com>
5297
5298 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
5299 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
5300 (dimode mem/zero splitter): New.
5301
1a05e874
HPN
53022002-04-11 Hans-Peter Nilsson <hp@axis.com>
5303
5304 * config/cris/cris.c (cris_override_options): Tweak error message
5305 for PIC not implemented.
5306
5307 * config/cris/cris.h: Tweak comments related to parameter-passing.
5308
5309 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
5310
6f3d0447
RH
53112002-04-10 Richard Henderson <rth@redhat.com>
5312
5313 * except.c (add_ehl_entry): Allow duplicates after landing pad
5314 creation.
5315
174bf2b1
DE
53162002-04-10 David Edelsohn <edelsohn@gnu.org>
5317
5318 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
5319
03f10472
TM
53202002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
5321
5322 * c-decl.c (c_init_decl_processing): Move generation of
5323 decls for g77_integer_type_node and friends from here ...
5324 * c-common.c (c_common_nodes_and_builtins): ... to here.
5325
2f460a0a
UW
53262002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
5327
5328 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
5329 is only used as frame pointer when frame_pointer_needed is true.
5330
0be5cf85
RE
53312002-04-10 Richard Earnshaw <rearnsha@arm.com>
5332
5333 PR target/817
5334 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
5335 for the fact that the pool entry uses two words.
5336 (movdf_hard_insn): Similarly. Also, ADR instruction can span
5337 1k bytes.
5338 (movdf_soft_insn): Similarly.
5339 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
5340 for the fact that the pool entry uses three words.
5341
bf6d4777
RS
53422002-04-10 Richard Sandiford <rsandifo@redhat.com>
5343
5344 * config/mips/mips.c (mips_va_arg): When using the struct version
5345 of the EABI va_list, allow arguments in the register save area to
5346 take up less room than a stack argument.
5347
c2e9dc85
RH
53482002-04-10 Richard Henderson <rth@redhat.com>
5349
5350 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
5351 if EXPAND_INITIALIZER.
5352
bc8e8e97
RH
53532002-04-09 Richard Henderson <rth@redhat.com>
5354
5355 * config/alpha/alpha.md (movdi_er_maybe_g): New.
5356 * config/alpha/alpha.c (alpha_expand_mov): Use it.
5357
a6a063b8
AM
53582002-04-10 Alan Modra <amodra@bigpond.net.au>
5359
5360 PR optimization/6233
5361 * rtlanal.c (pure_call_p): New function.
5362 * rtl.h (pure_call_p): Declare.
5363 * loop.c (prescan_loop): Use it to set has_nonconst_call.
5364 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
5365
7b2e1077
EC
53662002-04-09 Eric Christopher <echristo@redhat.com>
5367
5368 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
5369 information to .comm directive.
5370
d8a50944
RH
53712002-04-09 Richard Henderson <rth@redhat.com>
5372
5373 PR c/5078
5374 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
5375
6a58eee9
RH
53762002-04-09 Richard Henderson <rth@redhat.com>
5377
5378 * basic-block.h (flow_delete_block_noexpunge): Declare.
5379 (expunge_block_nocompact): Declare.
5380 * cfg.c (expunge_block_nocompact): Split out from ...
5381 (expunge_block): ... here.
5382 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
5383 (flow_delete_block_noexpunge): Split out from ...
5384 (flow_delete_block): ... here.
5385 * cfgcleanup.c (delete_unreachable_blocks): Compact while
5386 removing dead blocks.
5387 * except.c (exception_handler_labels): Remove.
5388 (exception_handler_label_map): New.
5389 (struct eh_region): Add aka member.
5390 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
5391 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
5392 (for_each_eh_label, for_each_eh_label_1): New.
5393 (init_eh): Register exception_handler_label_map.
5394 (free_eh_status): Use free_region.
5395 (find_exception_handler_labels): Use the map, not the list.
5396 (remove_exception_handler_label): Likewise.
5397 (maybe_remove_eh_handler): Likewise.
5398 (remove_eh_handler): Use the region aka bitmap.
5399 * except.h (exception_handler_labels): Remove.
5400 (for_each_eh_label): Declare.
5401 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
5402 * loop.c (invalidate_loops_containing_label): New.
5403 (find_and_verify_loops): Use it. Use for_each_eh_label.
5404 * sched-rgn.c (is_cfg_nonregular): Use
5405 current_function_has_exception_handlers.
5406
b47374fa
RH
54072002-04-09 Richard Henderson <rth@redhat.com>
5408
5409 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
5410 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
5411 Do not return changed status.
5412 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
5413 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
5414 New functions that do return changed status.
5415 * sbitmap.h: Update decls.
5416 * gcse.c, lcm.c: Use _cg functions as needed.
5417
1951818c
R
5418Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5419
5420 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
5421 (sh64-*-elf*, sh-*-rtemself*): Likewise.
5422 * config/sh/embed_bb.c: New file.
5423 * config/sh/embed-elf.h: New file.
5424 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
5425 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
5426 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5427 __PTRDIFF_TYPE__ .
5428 (SUBTARGET_CPP_PTR_SPEC): Don't define.
5429 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
5430 Add subtarget_asm_endian_spec.
5431 (ASM_SPEC): Use subtarget_asm_endian_spec.
5432 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
5433 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
5434 (WCHAR_UNSIGNED): Define.
5435 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
5436 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5437 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
5438 Fix value.
5439 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
5440 (sh_adjust_cost): Likewise.
5441 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5442 __PTRDIFF_TYPE__ .
5443 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
5444 (WCHAR_TYPE_SIZE): Likewise.
5445 (ASM_SPEC): Use subtarget_asm_endian_spec.
5446 (SH_ELF_WCHAR_TYPE): #undef/ #define.
5447 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
5448 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
5449 (MAX_WCHAR_TYPE_SIZE): Don't #define .
5450 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
5451 (USER_LABEL_PREFIX): Don't #undef /#define .
5452 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5453 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
5454 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
5455 (ASM_SPEC): Likewise.
5456 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
5457 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
5458 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
5459 (LIB2FUNCS_EXTRA): Define.
5460 * t-sh64 (LIB2FUNCS_EXTRA): Define.
5461 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
5462 (LIB1ASMFUNCS_CACHE): Define.
5463 (LIB2FUNCS_EXTRA): Redefine empty.
5464
34295799
RH
54652002-04-08 Richard Henderson <rth@redhat.com>
5466
5467 * reorg.c (get_branch_condition): Use reversed_comparison_code.
5468
e8766a39
SC
54692002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5470
5471 * config/m68hc11/larith.asm (__map_data_section): Fix condition
5472 and optimize for size.
5473 (__do_global_ctors): Fix pointer comparison.
5474 (__do_global_dtors): Likewise.
5475
f451b552
DM
54762002-04-09 David S. Miller <davem@redhat.com>
5477
5478 * config/sparc/sparc.c (sparc_extra_constraint_check): New
5479 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
5480 allow reloading pseudos.
5481 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
5482 * config/sparc/sparc-protos.h: Declare it.
5483
5484 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
5485 unsigned comparison warning.
5486 (output_restore_regs): Mark leaf_function as unused.
5487
1ce7f3c2
RK
5488Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5489
5490 * expr.c (is_aligning_offset): New function.
5491 (expand_expr, case COMPONENT_EXPR): Call it.
5492
7a31a340
DM
54932002-04-08 David S. Miller <davem@redhat.com>
5494
5495 PR target/6082
5496 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
5497
5498 Make init_priority work on Sparc when using GNU ld.
5499 * config/sparc/linux.h, config/sparc/linux64.h,
5500 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
5501 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
5502 * config/sparc/sol2-gld.h: New file to do the same.
5503 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
5504 sparc/sol2-gld.h to tm_file.
5505
5506 PR optimization/4328
5507 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
5508 * doc/md.texi: Document it.
5509 * config/sparc/sparc.md (movdi_insn_sp64_novis,
5510 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
5511 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
5512 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
5513 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
5514
11579f33
AJ
55152002-04-08 Andreas Jaeger <aj@suse.de>
5516
5517 * stmt.c (expand_asm_operands): Revert last patch from Richard
5518 Henderson.
5519
b57215d9
GP
55202002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5521
5522 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
5523 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
5524
55252002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5526
5527 * doc/contrib.texi (Contributors): Add David O'Brien.
5528
534d0cc0
AM
55292002-04-08 Alan Modra <amodra@bigpond.net.au>
5530
5531 * configure.in (auto-build.h): Use target_alias and build_alias
5532 when running configure.
5533 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
5534 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
5535 * configure: Regenerate.
5536
19fe522a
DM
55372002-04-07 David S. Miller <davem@redhat.com>
5538
5539 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
5540
bf2d0b8e
JDA
55412002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5542
5543 PR 5933
5544 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
5545 generating 32-bit pic code.
5546
477cdac7
JT
55472002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5548
5549 * cppinit.c (cpp_create_reader): Initialize
5550 discard_comments_in_macro_exp.
5551 (COMMAND_LINE_OPTIONS): Add "-CC" option.
5552 (cpp_handle_option): Handle "-CC" option.
5553 * cpplex.c (save_comment): If saving a C++ comment in
5554 a directive, convert it to a C comment.
5555 (_cpp_lex_direct): Pass second comment start character to
5556 save_comment to indicate comment type.
5557 * cpplib.c (_cpp_handle_directive): If processing
5558 a "#define" directive and discard_comments_in_macro_exp
5559 is false, re-enable saving of comments.
5560 (lex_macro_node): If discard_comments_in_macro_exp is false,
5561 discard any comments before the macro identifier.
5562 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
5563 member.
5564 * cppmacro.c (cpp_get_token): If expanding a macro while
5565 processing a directive, discard any comments we might encounter.
5566 (parse_params): If discard_comments_in_macro_exp is false,
5567 ignore comments in the macro parameter list.
5568 * gcc.c (cpp_unique_options): Add "-CC" option.
5569 (option_map): Map "--comments-in-macros" to "-CC".
5570 * doc/cppopts.texi: Document "-CC" option.
5571 * f/lang-specs.h: Add "-CC" option.
5572 * testsuite/gcc.dg/cpp/maccom1.c: New test.
5573 * testsuite/gcc.dg/cpp/maccom2.c: New test.
5574 * testsuite/gcc.dg/cpp/maccom3.c: New test.
5575 * testsuite/gcc.dg/cpp/maccom4.c: New test.
5576 * testsuite/gcc.dg/cpp/maccom5.c: New test.
5577 * testsuite/gcc.dg/cpp/maccom6.c: New test.
5578
f1526122
JDA
55792002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5580
5581 PR middle-end/6180
5582 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
5583
b1896e61
MM
55842002-04-06 Mark Mitchell <mark@codesourcery.com>
5585
0154eaa8
MM
5586 PR c++/5571
5587 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5588
b1896e61
MM
5589 PR opt/5120
5590 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
5591 RTX_UNCHANGING_P for the functions arguments when a tail call
5592 is made.
5593
b0148884
JM
55942002-04-06 Jason Merrill <jason@redhat.com>
5595
5596 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
5597 (parse_options_and_default_flags): Set them appropriately.
5598 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
5599
392fc5b0
HPN
56002002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
5601
5602 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
5603 here.
5604
5605 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
5606 semicolon.
5607
5608 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
5609 types come in by-reference. Fix typo in comment.
5610
2d69e3cb
DM
56112002-04-05 David S. Miller <davem@redhat.com>
5612
5613 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
5614 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5615 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
5616 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
5617
56182002-04-05 David S. Miller <davem@redhat.com>
5619
5620 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
5621 are not going to emit return instructions, emit at least a nop
5622 for the sake of sane backtraces.
5623
5f9fb0e3
RH
56242002-04-05 Richard Henderson <rth@redhat.com>
5625
5626 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
5627
49f37a0d
JJ
56282002-04-05 Jakub Jeilnek <jakub@redhat.com>
5629
5630 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
5631
974a3101
AO
56322002-04-05 Alexandre Oliva <aoliva@redhat.com>
5633
5634 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
5635 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5636 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
5637
2e04a694
AS
56382002-04-05 Andreas Schwab <schwab@suse.de>
5639
a40179bd 5640 * c-convert.c: Include c-common.h.
2e04a694
AS
5641 * Makefile.in (c-convert.o): Updated.
5642
1f785b7c
JJ
56432002-04-05 Jakub Jelinek <jakub@redhat.com>
5644
5645 * mklibgcc.in: Use separate libgcc.map for each multilib.
5646 * Makefile.in (distclean): Don't remove libgcc.map here.
5647
4d2fb38b
JJ
56482002-04-05 Jakub Jelinek <jakub@redhat.com>
5649
5650 * Makefile.in (s-mlib): Handle --disable-multilib by separate
5651 genmultilib invocation.
5652
bb63e5a0
RS
56532002-04-04 Richard Sandiford <rsandifo@redhat.com>
5654
5655 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
5656 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
5657 to num_gprs for symmetry.
5658 * config/mips/mips.c: Adjust accordingly.
5659
8ab80eaa
NB
56602002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
5661
5662 * c-common.c (truthvalue_conversion): Rename, update.
5663 * c-common.h (c_common_truthvalue_conversion): New.
5664 * c-convert.c (convert): Update.
5665 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5666 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
5667 * c-typeck.c (build_binary_op, build_unary_op,
5668 build_conditional_expr): Update.
5669 * fold-const.c (constant_boolean_node, fold): Use langhook.
5670 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5671 * langhooks.h (struct lang_hooks): New hook.
5672 * stmt.c (expand_decl_cleanup): Use langhook.
5673 * tree.h (truthvalue_conversion): Remove.
5674objc:
5675 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5676
a2e9374a
AM
56772002-04-05 Alan Modra <amodra@bigpond.net.au>
5678
5679 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5680 Add rules to make null object file.
5681
64d08263
JB
56822002-04-04 Jim Blandy <jimb@redhat.com>
5683
5684 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5685 macro formal parameter names.
5686
aa7634dd
DM
56872002-04-04 David S. Miller <davem@redhat.com>
5688
5689 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5690
ecc114f7
RH
56912002-04-04 Richard Henderson <rth@redhat.com>
5692
5693 PR middle-end/5099
5694 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5695 Support copies into and out of memory. Don't accept allows_reg
5696 and allows_mem as gospel.
5697
c4484b8f
RH
56982002-04-04 Richard Henderson <rth@redhat.com>
5699
5700 PR opt/6165
5701 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5702 (write_dependence_p): Likewise.
5703
39002160
RH
57042002-04-04 Richard Henderson <rth@redhat.com>
5705
5706 * predict.c (estimate_bb_frequencies): Do frequency calculation
5707 with a volatile temporary.
5708
f53ebe71
UW
57092002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
5710
5711 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5712
15e0ecab
JJ
57132002-04-04 Jakub Jelinek <jakub@redhat.com>
5714
5715 PR c++/6119
5716 * final.c (final_start_function): Don't bump profile_label_no here...
5717 (final_end_function): ...but here.
5718
ffd386b0
JJ
57192002-04-04 Jakub Jelinek <jakub@redhat.com>
5720
5721 * config/sparc/sparc.md (pic): New attribute.
5722 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5723 into stack slots.
5724 (split after do_builtin_setjmp_setup): New.
5725
8b156b3e
JJ
57262002-04-04 Jakub Jelinek <jakub@redhat.com>
5727
5728 PR fortran/6106
5729 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5730 change.
5731
014c0998
JJ
57322002-04-04 Jakub Jelinek <jakub@redhat.com>
5733
5734 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5735 UNITS_PER_WORD for zero sized aggregates.
5736
4d8611d9
DM
57372002-04-03 David S. Miller <davem@redhat.com>
5738
5739 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5740 one-character spec for this, just use %(link_gcc_c_sequence).
5741
b03ad99d
DM
57422002-04-03 David S. Miller <davem@redhat.com>
5743
5744 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5745 handling.
5746
823fbbce
JDA
57472002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5748
5749 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5750 (DWARF_FRAME_RETURN_COLUMN): Move.
5751 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5752 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5753 * pa.c (except.h, predict.h): Include.
5754 (FRP): Delete.
5755 (store_reg_modify, set_reg_plus_d): Revise prototypes.
5756 (output_ascii): Add cast.
5757 (store_reg_modify): Revise to add frame notes.
5758 (set_reg_plus_d): Likewise.
5759 (compute_frame_size): Include space for eh data registers in frame if
5760 the current function calls eh_return.
5761 (hppa_expand_prologue): Ensure register %r2 is saved if the current
5762 function calls eh_return. Save eh data registers if the current
5763 function calls eh_return. Fix code to add frame notes. Emit
5764 blockage to prevent insns with frame notes being scheduled in the
5765 delay slot of calls.
5766 (hppa_expand_epilogue): Restore eh data registers and do final stack
5767 adjustment if the current function calls eh_return. Don't add frame
5768 notes.
5769 (output_call): Revise for change in length of call insn. Don't do
5770 return pointer adjustment for an unconditional jump in the delay slot
5771 of a call when using frame notes.
5772 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5773 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5774 (ARG_POINTER_CFA_OFFSET): Define.
5775 * pa.md (return_external_pic): New pattern.
5776 (prologue): Correct formatting. Use return_external_pic if current
5777 function calls eh_return.
5778 (call_internal_symref, call_value_internal_symref,
5779 sibcall_internal_symref, sibcall_value_internal_symref): Change default
5780 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5781 respectively.
5782 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5783
5784 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5785 list of targets to check using "nop" insn.
5786 * configure: Rebuilt.
5787
4078e224
AM
57882002-04-04 Alan Modra <amodra@bigpond.net.au>
5789
5790 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5791
bbd7687d
DM
57922002-04-03 David S. Miller <davem@redhat.com>
5793
5794 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5795 library sequence passed to the linker.
5796 (LINK_COMMAND_SPEC): Use it.
5797 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5798 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5799 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5800
659e5a7a
JM
58012002-04-03 Jason Merrill <jason@redhat.com>
5802
5803 * except.c (struct eh_status): Remove protect_list.
5804 (begin_protect_partials, end_protect_partials): Remove.
5805 (add_partial_entry): Remove.
5806 * except.h: Remove prototypes.
5807
5808 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5809 expand_decl_cleanup_eh.
5810
5811 PR c++/5636
5812 * tree.h (CLEANUP_EH_ONLY): New macro.
5813 * stmt.c (expand_decl_cleanup_eh): New fn.
5814 (expand_cleanups): Check CLEANUP_EH_ONLY.
5815 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5816 Use expand_decl_cleanup_eh.
5817 (expand_stmt): Adjust.
5818 * c-common.h: Adjust prototype.
5819
053d3344
HPN
58202002-04-04 Hans-Peter Nilsson <hp@axis.com>
5821
5822 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5823 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5824 (cris_target_asm_function_epilogue): Ditto.
5825 (cris_initial_frame_pointer_offset): Ditto.
5826 (cris_simple_epilogue): Ditto.
5827 (cris_expand_builtin_va_arg): Variable-size types come in
5828 by-reference.
5829
61ab5260
DM
58302002-04-03 David S. Miller <davem@redhat.com>
5831
5832 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5833 little-endian.
5834 (set_fast_math): Correct 'fsr' type.
5835
ef4f94ac
RH
58362002-04-03 Richard Henderson <rth@redhat.com>
5837
36c2272c 5838 PR opt/3569
ef4f94ac
RH
5839 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5840 * toplev.c (check_global_declarations): Use it.
5841 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5842 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5843 (LANG_HOOKS_DECLS): Add it.
5844 * langhooks.c (lhd_warn_unused_global_decl): New.
5845 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5846 * c-objc-common.c (c_warn_unused_global_decl): New.
5847 * c-tree.h (c_warn_unused_global_decl): Declare.
5848 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5849
599bba86
NB
58502002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
5851
5852 * langhooks-def.h (lhd_set_decl_assembler_name,
5853 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5854 (LANG_HOOKS_INITIALIZER): Update.
5855 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5856 * langhooks.h (struct lang_hooks): New hook.
5857 * tree.c (set_decl_assembler_name): Move to langhooks.c.
5858 (lang_set_decl_assembler_name): Remove.
5859 (init_obstacks): Don't set hook.
5860 (decl_assembler_name): New function.
5861 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5862 (decl_assembler_name): New.
5863 (lang_set_decl_assembler_name): Remove.
5864
cf7b8b0d
JJ
58652002-04-03 Jakub Jelinek <jakub@redhat.com>
5866
5867 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5868 works properly with .hidden symbols.
5869 * configure: Rebuilt.
5870 * config.in: Rebuilt.
5871 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5872 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5873 properly with .hidden symbols.
5874
faf6db38
JJ
58752002-04-03 Jakub Jelinek <jakub@redhat.com>
5876
5877 PR middle-end/6102
5878 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5879 USE argument.
5880
68c17f30
RH
58812002-04-03 Richard Henderson <rth@redhat.com>
5882
5883 PR opt/4120
5884 * sched-rgn.c (sets_likely_spilled): New.
5885 (sets_likely_spilled_1): New.
5886 (add_branch_dependences): Use it.
5887
6584b4aa
RH
58882002-04-02 Richard Henderson <rth@redhat.com>
5889
5890 PR opt/4311
5891 * loop.h (LOOP_FIRST_PASS): New.
5892 * loop.c (strength_reduce): Mind it when deciding to unroll.
5893 * toplev.c (rest_of_compilation): Set it.
5894
0acf409f
DM
58952002-04-02 David S. Miller <davem@redhat.com>
5896
5897 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5898 mems_ok_for_ldd_peep when the order of the loads being examined
5899 is reversed.
5900 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5901 existing comment to increase comprehension of this situation.
5902
85654444
ZW
59032002-04-02 Zack Weinberg <zack@codesourcery.com>
5904
5905 * config/sh/sh.md: Don't use union real_extract.
5906
543828ca
RH
59072002-04-02 Richard Henderson <rth@redhat.com>
5908
5909 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5910
39ed301b
DB
59112002-04-02 David O'Brien <obrien@FreeBSD.org>
5912
5913 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5914 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5915 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5916 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5917 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5918 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5919 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5920 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5921 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5922 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5923 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5924 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5925 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5926 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5927 Include as many configury headers via tm_file as possible. This
5928 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5929 * config/openbsd-oldgas.h: New file.
5930 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5931 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5932 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5933 config/i386/i386-coff.h, config/i386/i386-interix.h,
5934 config/i386/iscdbx.h, config/i386/linux-aout.h,
5935 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5936 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5937 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5938 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5939 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5940 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5941 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5942 config/i386/vxi386.h: Do not directly include configury headers.
5943 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5944 Directly include configury headers that are no longer automatically
5945 included by the above headers.
5946 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5947 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5948 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5949 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5950 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5951 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5952 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5953 (TARGET_VERSION): Define.
5954 * config/i386/beos-elf.h, config/i386/freebsd.h,
5955 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5956 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5957 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5958 config/i386/sco5.h, config/i386/sysv4.h
5959 (TARGET_VERSION): Do not need to protect.
5960 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5961 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5962 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5963 config/i386/i386-interix.h, config/i386/linux-aout.h,
5964 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5965 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5966 (YES_UNDERSCORES): Do not define - not needed.
5967 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5968 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5969 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5970 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5971 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5972 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5973 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5974 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5975
9432c136
EB
59762002-04-02 Eric Botcazou <ebotcazou@multimania.com>
5977 Richard Henderson <rth@redhat.com>
5978
5979 PR c/5484
5980 * function.c (assign_temp): Accept either type or decl argument.
5981 Detect variables whose size is too large to fit into an integer.
5982 * stmt.c (expand_decl): Pass the decl, not the type.
5983
058b1275
DB
59842002-04-02 David O'Brien <obrien@FreeBSD.org>
5985
5986 * protoize.c: Match include directory usage with cppdefault.c.
5987
5add6d1a 59882002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 5989 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
5990
5991 * combine.c (simplify_comparison): Avoid narrowing a comparison
5992 with a paradoxical subreg when doing so would drop signficant bits.
5993
1e533e4b
SE
59942002-04-02 Steve Ellcey <sje@cup.hp.com>
5995
5996 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5997 if POINTERS_EXTEND_UNSIGNED is defined.
5998
7a145e92
RH
59992002-04-02 Richard Henderson <rth@redhat.com>
6000
6001 PR opt/3967
6002 * local-alloc.c (contains_replace_regs): LO_SUM may contain
6003 replace regs.
6004
3a079822
RH
60052002-04-02 Richard Henderson <rth@redhat.com>
6006
6007 * doc/standards.texi: Document required freestanding libc entry points.
6008
c94ccb87
AM
60092002-04-02 Alan Modra <amodra@bigpond.net.au>
6010
6011 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
6012 associated splitter. Remove MQ constraint.
6013 (ctrdi_internal4): Correct CCmode clobber.
6014
fe660a1a
JDA
60152002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6016
6017 * milli64.S ($$dyncall): New function.
6018 * t-linux (LIB1ASMFUNCS): Revise module list.
6019 (LIB1ASMSRC): Use pa/milli64.S.
6020
eadc0202
RH
60212002-04-02 Richard Henderson <rth@redhat.com>
6022
6023 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
6024 rename solaris_sys_varargs_h.
6025
a1471322
RK
6026Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6027
6028 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
6029 the same mode as its component.
6030
c8b94768
RH
60312002-04-02 Richard Henderson <rth@redhat.com>
6032
6033 PR opt/190
6034 * final.c (this_is_asm_operands): Export.
6035 * output.h (this_is_asm_operands): Declare.
6036 * config/i386/i386.c (print_operand): Error odd asm operands.
6037
161eb4fc
RH
60382002-04-02 Richard Henderson <rth@redhat.com>
6039
6040 PR opt/420
6041 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
6042
b88a94c6
RH
60432002-04-01 Richard Henderson <rth@redhat.com>
6044
6045 PR target/1538
6046 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
6047 * fixinc/fixincl.x: Rebuild.
6048
72e32876
RH
60492002-04-01 Richard Henderson <rth@redhat.com>
6050
6051 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
6052 (atomic_alloc, atomic_free): New.
6053 (SIZE, MASK_FOR, PTR_IN): New.
6054 (emergency_reg_state, emergency_reg_state_free): New.
6055 (emergency_labeled_state, emergency_labeled_state_free): New.
6056 (reg_state_alloced, labeled_state_alloced): New.
6057 (alloc_reg_state, free_reg_state): New.
6058 (alloc_label_state, free_label_state, free_label_states): New.
6059 (push, pop, dup_state_stack, free_state_stack): Use them.
6060 (desc_label_state): Likewise.
6061 (uw_frame_state_for): Free label states and state stack.
6062 (uw_update_reg_address): Eliminate warnings.
6063
84d76074
VM
60642002-04-01 Vladimir Makarov <vmakarov@redhat.com>
6065
6066 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 6067 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 6068
dffd7eb6
NB
60692002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6070
6071 * c-decl.c (grokdeclarator): Update.
6072 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6073 * c-tree.h (c_mark_addressable): New.
6074 * c-typeck.c (default_function_array_conversion, build_unary_op,
6075 build_array_ref, convert_for_assignment): Update.
6076 (mark_addressable): Rename.
6077 * calls.c (try_to_integrate, expand_call): Use langhook.
6078 * expr.c (expand_expr): Use langhook.
6079 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
6080 * langhooks.h (struct lang_hooks): New hook.
6081 * stmt.c (expand_asm_operands): Use langhook.
6082 * tree.h (mark_addressable): Remove.
6083objc:
6084 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6085
544ef5b5
BW
60862002-04-01 Bob Wilson <bob.wilson@acm.org>
6087
9be40833
RH
6088 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
6089 in previous change.
544ef5b5 6090
bcf88f9b
BW
60912002-04-01 Bob Wilson <bob.wilson@acm.org>
6092
6093 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
6094 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
6095
ceef8ce4
NB
60962002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6097
6098 * c-common.c (unsigned_conversion_warning, convert_and_check,
6099 unsigned_type, signed_type, shorten_compare,
6100 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
6101 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
6102 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
6103 New.
6104 * c-decl.c (grokdeclarator): Update.
6105 * c-format.c (check_format_types): Update.
6106 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6107 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6108 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
6109 * convert.c (convert_to_integer): Use new hooks.
6110 * expmed.c (make_tree): Use new hooks.
6111 * expr.c (store_expr): Use new hooks.
6112 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
6113 all_ones_mask_p, unextend, fold): Use new hooks.
6114 * langhooks.h (struct lang_hooks_for_types): New hooks.
6115 * tree.h (signed_or_unsigned_type, signed_type,
6116 unsigned_type): Remove.
6117objc:
6118 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6119 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6120
1d9ad0e0
RH
61212002-03-31 Richard Henderson <rth@redhat.com>
6122
6123 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
6124 (desc_frgr_mem): Fix reference to f16-f31.
6125
d544bc39
KG
61262002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6127
6128 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
6129 RTVEC_ELT): Const-ify.
d8750784
KG
6130 * varray.h (VARRAY_CHECK): Const-ify.
6131 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
6132 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 6133
b18101c7
NB
61342002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6135
6136 * diagnostic.c: Include langhooks-def.h.
6137 * Makefile.in (diagnostic.o): Update.
6138
48a7a235
NB
61392002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6140
6141 * c-common.c (c_unsafe_for_reeval): Rename.
6142 * c-common.h (c_unsafe_for_reeval): Rename.
6143 * c-decl.c (finish_incomplete_decl): Rename.
6144 (c_init_decl_processing): Don't set langhook.
6145 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6146 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6147 * c-objc-common.c (c_objc_common_init): Don't set langhook.
6148 * c-tree.h (finish_incomplete_decl): Rename.
6149 * langhooks-def.h (lhd_unsafe_for_reeval): New.
6150 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
6151 (LANG_HOOKS_INITIALIZER): Update.
6152 * langhooks.c (lhd_unsafe_For_reeval): New.
6153 * langhooks.h (struct langhooks): New hooks.
6154 * toplev.c (incomplete_decl_finalize_hook): Remove.
6155 (wrapup_global_declarations): Update.
6156 * tree.c (lang_unsafe_for_reeval): Remove.
6157 (unsafe_for_reeval): Update.
6158 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
6159 Remove.
6160objc:
6161 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6162 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6163
7cb32822
NB
61642002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6165
6166 * diagnostic.c (print_error_function): Remove.
6167 (default_print_error_function): Rename.
6168 (report_error_function): Update.
6169 * diagnostic.h (print_error_function): Remove.
6170 (default_print_error_function): Remove.
6171 * langhooks-def.h (struct diagnostic_context): Predeclare.
6172 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
6173 (LANG_HOOKS_INITIALIZER): Update.
6174 * langhooks.h (struct diagnostic context): Predeclare.
6175 (struct lang_hooks): New hook.
6176
1db02437
FS
61772002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6178
6179 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
6180 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
6181 !flag_pic.
6182 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
6183 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
6184 of PIC_OFFSET_TABLE_REGNUM thruout.
6185 * config/rs6000/rs6000.md: Likewise.
6186 * config/rs6000/darwin.h: Likewise.
6187
3bf1e984
RK
6188Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6189
6190 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
6191 unsigned HOST_WIDE_INT, not unsigned int.
6192
0864c526
JJ
61932002-03-31 Jakub Jelinek <jakub@redhat.com>
6194
6195 PR middle-end/6096, middle-end/6098, middle-end/6099
6196 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
6197 CODE_LABELs.
6198 (fill_slots_from_thread): Likewise.
6199
105b2084
JJ
62002002-03-31 Jakub Jelinek <jakub@redhat.com>
6201
6202 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
6203 floating fields in float regs.
6204 (function_arg_record_value_2): Likewise.
6205
db08fddf
HPN
62062002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6207
6208 * config/mmix/mmix.md (define_constants): Remove misleading
6209 FIXME. Add MMIX_fp_rO_OFFSET.
6210 ("nonlocal_goto_receiver"): Don't have stack-frame address of
6211 saved rO as part of the pattern. Remove FIXME.
6212 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
6213 here, at output-time.
6214
4f31cce8
JJ
62152002-03-31 Jakub Jelinek <jakub@redhat.com>
6216
6217 PR middle-end/6100
6218 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
6219 REG_BR_PRED.
6220 (output_v9branch): Likewise.
6221
ba2b7435
AO
62222002-03-31 Alexandre Oliva <aoliva@redhat.com>
6223
6224 * gcc.c: Revert previous patch for now.
6225 * config/i386/djgpp.h: Likewise.
6226
aa66aa5f 62272002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
6228
6229 * config/mmix/crti.asm (_init): Register _fini with atexit.
6230 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
6231
41ba8a20
RH
62322002-03-31 Richard Henderson <rth@redhat.com>
6233
6234 PR target/3997
6235 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
6236 (ASM_OUTPUT_DEF_FROM_DECLS): New.
6237
adc186ef
RH
62382002-03-31 Richard Henderson <rth@redhat.com>
6239
6240 * libgcc2.c (__bb_exit_func): Make static.
6241
9be40833 6242 * config/alpha/alpha.md (trap): New.
a7648399 6243
9602f5a0
RH
62442002-03-31 Richard Henderson <rth@redhat.com>
6245
6246 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
6247 promoted argument types; build trap.
6248 (expand_builtin_trap): New.
6249 (expand_builtin): Use it.
6250 * stmt.c (expand_nl_goto_receivers): Likewise.
6251 * expr.h (expand_builtin_trap): Declare.
6252 * libfuncs.h (LTI_abort, abort_libfunc): New.
6253 * optabs.c (init_optabs): Init abort_libfunc.
6254
1a0a7539
AO
62552002-03-31 Alexandre Oliva <aoliva@redhat.com>
6256
6257 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
6258 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 6259 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
6260 shared_name in the second copy.
6261 (init_spec): Test for duplicate
6262 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
6263
b5de1a27
DM
62642002-03-30 David S. Miller <davem@redhat.com>
6265
6266 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6267 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
6268
78414d74 62692002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 6270 Richard Henderson <rth@redhat.com>
78414d74 6271
9be40833
RH
6272 * regmove.c (combine_stack_adjustments_for_block): Avoid
6273 emitting a stack adjustment of zero bytes. Let delete_insn
6274 update bb->head.
78414d74 6275
33074e5f
RH
62762002-03-30 Richard Henderson <rth@redhat.com>
6277
6278 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
6279 (sparc_emitting_epilogue): New.
6280 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
6281 * config/sparc/sparc-protos.h: Update.
6282 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
6283 (TARGET_SWITCHES): Update.
6284 * config/sparc/sparc.md (return): Remove.
6285 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
6286 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
6287 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
6288 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6289 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
6290 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
6291 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
6292 Remove MASK_EPILOGUE.
6293 * doc/invoke.texi: Update.
6294
606cc056
DB
62952002-03-30 Daniel Berlin <dan@dberlin.org>
6296
6297 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
6298 CPP will start the file for us.
7b2e1077 6299
bdbe5b8d
RH
63002002-03-30 Richard Henderson <rth@redhat.com>
6301
6302 PR target/5446
6303 * config/ia64/ia64.c (group_barrier_needed_p): Special case
6304 prologue_allocate_stack.
6305 (ia64_single_set): Use insn codes for recognition of special
6306 cases, not rtl matching.
6307 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
6308
4ab95d82
JH
6309Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
6310
6311 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
6312
89a8b315
RH
63132002-03-30 Richard Henderson <rth@redhat.com>
6314
6315 PR target/6032
6316 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
6317 or -fomit-frame-pointer with profiling.
6318 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6319 (FUNCTION_PROFILER): Do nothing.
6320 (PROFILE_HOOK): New.
6321 * config/sparc/sparc.c (sparc_override_options): Don't check
6322 code models for profiling.
6323 (sparc_function_profiler): Remove.
6324 (sparc_profile_hook): New.
6325 * config/sparc/sparc-protos.h: Update.
6326
30984c57
JJ
63272002-03-30 Jakub Jelinek <jakub@redhat.com>
6328
6329 PR optimization/6086
6330 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
6331 of SUBREG of volatile MEM or because the MEM was mode dependent,
6332 return CLOBBER instead of unmodified SUBREG.
6333
1540f9eb
JH
6334Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
6335
89a8b315
RH
6336 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
6337 when not optimizing.
1540f9eb
JH
6338
6339 * toplev.c (rest_of_compilation): Cann mark_constant_function
6340 only when optimizing.
6341
89a8b315
RH
6342 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
6343 are NULL.
1540f9eb
JH
6344
6345 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
6346 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
6347 (try_optimize_cfg): clear all AUX fields.
6348
6349 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
6350 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
6351 (ix86_address_cost): Be prepared for SUBREGed registers.
6352 (legitimate_address_p): Accept SUBREGed registers.
6353
70d95bac
RH
63542002-03-29 Richard Henderson <rth@redhat.com>
6355
6356 PR target/5672
6357 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
6358
d3294cd9
FS
63592002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6360
6361 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
6362 for aggregate and TFmode types.
6363
a106c875
HPN
63642002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
6365
6366 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
6367
7d7a5d6f
RH
63682002-03-29 Richard Henderson <rth@redhat.com>
6369
6e2d670b 6370 PR target/5886
7d7a5d6f
RH
6371 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
6372 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
6373
30c99a84
RH
63742002-03-29 Richard Henderson <rth@redhat.com>
6375
6e2d670b 6376 PR target/6041
30c99a84
RH
6377 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
6378 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
6379 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
6380 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
6381 conditional.
6382 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
6383
02a566dc
DJ
63842002-03-29 Dale Johannesen <dalej@apple.com>
6385
6386 * loop.c (combine_movables): Do allow combination of pseudos.
6387
bc3a44db
LR
63882002-03-29 Loren J. Rittle <ljrittle@acm.org>
6389
6390 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
6391 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
6392 No functional change except ...
6393 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
6394 * doc/install.texi (*-*-freebsd*): Document port configuration.
6395
b0c48229
NB
63962002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
6397
6398 * Makefile.in (convert.o, calls.o, expmed.o): Update.
6399 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
6400 Use new hooks.
6401 * builtin-types.def (BT_PTRMODE): Update.
6402 * c-common.c (type_for_size): Rename c_common_type_for_size.
6403 (type_for_mode): Similarly.
6404 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
6405 Use new hook.
6406 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
6407 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
6408 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
6409 Redefine.
6410 * c-typeck.c (common_type, comptypes, default_conversion):
6411 Use new hooks.
6412 * calls.c: Include langhooks.h.
6413 (emit_library_call_value_1): Use new hooks. Avoid redundant
6414 calls.
6415 * convert.c: Include langhooks.h
6416 (convert_to_pointer, convert_to_integer): Use new hooks.
6417 * except.c (init_eh): Similarly.
6418 * expmed.c: Include langhooks.h.
6419 (expand_mult_add): Use new hooks.
6420 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
6421 try_casesi): Similarly.
6422 * fold-const.c (optimize_bit_field_compare, make_range,
6423 decode_field_reference, fold_truthop, fold): Similarly.
6424 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
6425 put_var_into_stack): Similarly.
6426 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
6427 LANG_HOOKS_TYPE_FOR_SIZE): New.
6428 (LANG_HOOKS_TYPES_INITIALIZER): Update.
6429 * langhooks.h (lang_hooks_for_types): New hooks.
6430 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
6431 * tree.c (get_unwidened, get_narrower): Similarly.
6432 * tree.h (type_for_mode, type_for_size): Remove.
6433 * varasm.c (force_const_mem): Use new hooks.
6434 * utils2.c (nonbinary_modular_operation): Update.
6435objc:
6436 * objc-act.c (handle_impent): Update.
6437 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
6438 Redefine.
6439
e206a74f
SE
64402002-03-29 Steve Ellcey <sje@cup.hp.com>
6441
6442 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
6443 * config/ia64/ia64.c (basereg_operand): New.
6444 * config/ia64/ia64-protos.h (basereg_operand): Declare.
6445 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
6446
7d9b6378
HPN
64472002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
6448
6449 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
6450 unwind information when frame_pointer_needed.
6451 (mmix_assemble_integer): Tweak wording in comment.
6452
f1e639b1
NB
64532002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
6454
6455 * Makefile.in (except.o): Update.
6456 * except.c: Include langhooks.h.
6457 (init_eh): Use langhook.
6458 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
6459 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
6460 (LANG_HOOKS_INITIALIZER): Update.
6461 * langhooks.h (lang_hooks_for_types): New.
6462 (struct lang_hooks): Add it.
6463 * tree.c (make_lang_type_fn, make_lang_type): Remove.
6464 * tree.h (make_lang_type_fn, make_lang_type): Remove.
6465config:
6466 * alpha/alpha.c: Include langhooks.h.
6467 (alpha_build_va_list): Use langhook.
6468 * d30v/d30v.c: Include langhooks.h.
6469 (d30v_build_va_list): Use langhook.
6470 * i386/i386.c: Include langhooks.h.
6471 (ix86_build_va_list): Use langhook.
6472 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
6473 * s390/s390.c: Include langhooks.h.
6474 (s390_build_va_list): Use langhook.
6475 * stormy16/stormy16.c: Include langhooks.h.
6476 (stormy16_build_va_list): Use langhook.
6477
f17f9332
JJ
64782002-03-29 Jakub Jelinek <jakub@redhat.com>
6479
6480 PR c++/5964
6481 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
6482 attributes.
6483 (length): Compute variable length for branches/calls/jumps here.
6484 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
6485 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
6486 define branch_type attribute.
6487 (divsi3_sp32): Maximum length is 6 not 7.
6488 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
6489 call_address_untyped_struct_value_sp32,
6490 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
6491 * config/sparc/sparc.c (empty_delay_slot): New function.
6492 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
6493 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
6494
0a0440c9
JJ
64952002-03-29 Jakub Jelinek <jakub@redhat.com>
6496
6497 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
6498 nonzero_bits if not needed.
6499 (nonzero_bits) [XOR]: Likewise.
6500 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
6501 reg_last_set_mode and mode are both MODE_INT, but not equal.
6502 (record_value_for_reg): Compute reg_last_set_nonzero_bits
6503 in nonzero_bits_mode for MODE_INT modes.
6504
c9045f47
RH
65052002-03-28 Richard Henderson <rth@redhat.com>
6506
6507 PR target/5715
6508 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
6509 to GAS. Correct drift between alternatives.
6510
f8ed1958
RH
65112002-03-28 Richard Henderson <rth@redhat.com>
6512
6513 PR target/6087
6514 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
6515
54e20385
LR
65162002-03-28 Alexandre Oliva <aoliva@redhat.com>
6517
6518 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
6519 emulation to the linker.
6520
65212002-03-28 Loren J. Rittle <ljrittle@acm.org>
6522
6523 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
6524 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
6525
8bc52806
JL
6526Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
6527
6528 * combine.c (simplify_and_const_int): Make sure to apply mask
6529 when force_to_mode returns a constant integer. PR3311.
6530
279dccc5
JDA
65312002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
6532
6533 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
6534
62aaa62c
GP
65352002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6536
6537 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
6538 and Objective-C Dialect Options.
6539
b8de5050
RH
65402002-03-28 Richard Henderson <rth@redhat.com>
6541
6542 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
6543 comparison should be done vs !=0 not >0 return code. Tidy cases.
6544
619708cc
RH
65452002-03-28 Richard Henderson <rth@redhat.com>
6546
6547 * c-decl.c (finish_function): New arg can_defer_p. Pass it
6548 on to c_expand_body.
6549 * c-tree.h (finish_function): Update decl.
6550 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
6551
b1d874d7
JH
6552Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
6553
6554 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
6555
f5eb5fd0
JH
6556Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
6557
6558 * rtlanal.c: Include flags.h
6559 (may_trap_p): Do not mark FP operations if trapping
6560 if !flag_trapping_math
6561 * Makefile.in (rtlanal.o): Add dependency on flag.h
6562 * ifcvt.c (noce_operand_ok): Avoid the lameness.
6563
81b4c798
ZW
65642002-03-27 Zack Weinberg <zack@codesourcery.com>
6565
6566 * mips.md: Use dconst1, not 1.0, as first argument of
6567 REAL_VALUE_LDEXP. Don't use union real_extract.
6568
55a2ea2a
AM
65692002-03-28 Alan Modra <amodra@bigpond.net.au>
6570
6571 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
6572 rather than $target. Heed program_prefix and
6573 program_transform_name. Search for gas in cross-compiler case too.
6574 "test -x" rather than "test -f".
6575 (gcc_cv_ld): Likewise.
6576 (gcc_cv_nm): Heed program_prefix and program_transform_name.
6577 (gcc_cv_objdump): Likewise.
6578 * configure: Regenerate.
6579
7ffb4fd2
NB
65802002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6581
6582 * Makefile.in (attribs.o): Update.
6583 * attribs.c: Include langhooks.h.
6584 (decl_attributes): Use langhook.
6585 * c-decl.c (insert_default_attributes): Rename.
6586 * c-tree.h (c_insert_default_attributes): New.
6587 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
6588 (LANG_HOOKS_INITIALIZER): Update.
6589 * langhooks.h (struct lang_hooks): New hook.
6590 * tree.h (insert_default_attributes): Remove.
6591objc:
6592 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
6593
e4dbaed5
AS
65942002-03-27 Andreas Schwab <schwab@suse.de>
6595
6596 * config/i386/i386.c (classify_argument): Also check for
6597 QUAL_UNION_TYPE.
6598
18b467f1
RO
65992002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6600
6601 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
6602 any more.
6603
d337d653
JH
6604Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
6605
6606 * i960.md (ret): Set PC.
6607 (nonlocal_goto): Fix expander.
6608 * builtins.c (epxand_builin_longjmp): Check that we've emitted
6609 some jump or call.
6610
218aa620
JH
6611Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
6612
6613 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
6614 of libcall regions.
6615
e27a4eaf
ZD
6616Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6617
6618 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
6619 assigning to BLOCK_FOR_INSN directly.
6620
8a12f34c
JH
6621Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
6622
6623 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
6624
c9d892a8
NB
66252002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6626
6627 * c-common.c (c_expand_expr): Fix prototype.
6628 * c-common.h (c_expand_expr): Always declare, update.
6629 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6630 * c-objc-common.c (c_objc_common_init): No global hook.
6631 * expr.c (expand_expr): Use langhook.
6632 * expr.h (enum expand_modifier): Conditionally declare.
6633 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
6634 (LANG_HOOKS_INITIALIZER): Update.
6635 * langhooks.c (lhd_expand_expr): New.
6636 * langhooks.h (struct lang_hooks): New hook.
6637 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
6638 (lang_independent_init): Don't default hook.
6639objc:
6640 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6641
6dad5a56
RH
66422002-03-27 Richard Henderson <rth@redhat.com>
6643
6644 PR target/6054
6645 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
6646 TARGET_CONST_GP. Simplify conditions.
6647
59f96879
RH
66482002-03-27 Richard Henderson <rth@redhat.com>
6649
6650 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6651 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
6652 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6653
f3f1190d
DS
66542002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
6655
6656 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
6657 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
6658 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
6659 Remove unnecessary masks.
6660 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
6661 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
6662 -mwindows, -mdll switches and their negations.
6663
31c816cf
NB
66642002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6665
6666 * gcc-common.c (lang_mark_false_label_stack): Remove.
6667 * ggc.h (lang_mark_false_label_stack): Similarly.
6668
7b2e1077 66692002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
6670
6671 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6672
6673 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6674 or __rtems_ is defined.
6675
1ef9531b
RH
66762002-03-26 Richard Henderson <rth@redhat.com>
6677
6678 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6679 if a non-trivial load was emitted.
6680 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
6681 in high+extra+low case.
6682
300d4093
RH
66832002-03-26 Richard Henderson <rth@redhat.com>
6684
6685 * config.gcc (sparc*-solaris): Use float_format=sparc.
6686
b3689904
RH
66872002-03-26 Richard Henderson <rth@redhat.com>
6688
6689 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6690 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6691 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6692 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6693 (WINT_TYPE_SIZE): Fix at 32.
6694
1eefb6c1
RH
66952002-03-26 Richard Henderson <rth@redhat.com>
6696
6697 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6698 until after eh landing pad generation.
6699 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6700 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6701
361ea006
RH
67022002-03-26 Richard Henderson <rth@redhat.com>
6703
6704 * expr.h (ADD_PARM_SIZE): One more convert for INC.
6705
1de38a88
PE
67062002-03-26 Phil Edwards <pme@gcc.gnu.org>
6707
6708 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
6709 and warning switches.
6710 (cc1_options): Likewise.
6711
d7e60e95 67122002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 6713
d7e60e95
HB
6714 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6715 Restore more of the signal context. Set no_reg_stack_frame.
6716 * config/ia64/unwind-ia64.c (unw_state_record):
6717 Add no_reg_stack_frame, comments.
6718 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6719 (uw_update_context): Adjust bsp when unwinding from leaf,
6720 but not signal frame.
6721
7032923b
DE
67222002-03-26 David Edelsohn <edelsohn@gnu.org>
6723
6724 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6725
8be56275
BW
67262002-03-26 Bob Wilson <bob.wilson@acm.org>
6727
6728 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6729
56fbb855
RE
67302002-03-26 Richard Earnshaw <rearnsha@arm.com>
6731
6732 PR target/5621
6733 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6734 "Add a pool_range attribute", which was lost during the ARM/Thumb
6735 merge.
6736
3437320b
BW
67372002-03-26 Bob Wilson <bob.wilson@acm.org>
6738
6739 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6740 a register into the MAC16 accumulator.
6741
173028e5
AC
67422002-03-26 Andrew Cagney <ac131313@redhat.com>
6743
6744 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6745 (Warning Options): Document -Wswitch-enum.
6746 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
6747 -Wswitch.
6748 (warn_switch_enum): Define variables.
6749 * flags.h (warn_switch_enum): Declare variables.
6750 * stmt.c (expand_end_case_type): When warn_switch_enum /
6751 -Wswitch-enum, perform switch checks.
6752 Fix PR c/5044.
7b2e1077 6753
e14365a7
RE
67542002-03-26 Richard Earnshaw <rearnsha@arm.com>
6755
6756 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6757 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6758 (reload_muladdsi_compare0_scratch): Delete.
6759
46fc709d
LR
67602002-03-26 Loren J. Rittle <ljrittle@acm.org>
6761
6762 * doc/install.texi (*-*-freebsd*): Update.
6763
f36dea3c
RH
67642002-03-26 Richard Henderson <rth@redhat.com>
6765
8e5fe23f
RH
6766 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6767 (SUB_PARM_SIZE): Cast DEC to ssizetype.
6768
6769 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6770 types from the normal argument frame.
6771
f36dea3c
RH
6772 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6773 variable sized objects by reference.
6774 (sparc_va_arg): Receive them by reference too.
6775
1447dc69
HP
67762002-03-26 Hartmut Penner <hpenner@de.ibm.com>
6777
6778 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 6779 code to not restoring global registers.
1447dc69 6780
4f0ade92
NB
67812002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
6782
6783 * Makefile.in (ggc-common.o): Update.
6784 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6785 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6786 * c-tree.h (c_mark_tree): New.
6787 * ggc-common.c: Include langhooks.h.
6788 (gcc_mark_trees): Use new langhook.
6789 * ggc-callbacks.c: Delete file.
6790 * ggc.h (lang_mark_tree): Remove.
6791 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6792 (LANG_HOOKS_INITIALIZER): Update.
6793 * langhooks.h (struct lang_hooks): New hook.
6794objc:
6795 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6796
caba570b
ZW
67972002-03-25 Zack Weinberg <zack@codesourcery.com>
6798
6799 * doc/cpp.texi: Exclude entire Top node from printed manual.
6800 Move option index after directive index. Insert page breaks
6801 before GFDL and concept index. Index environment variables
6802 with command line options.
6803 * doc/cppenv.texi: Use @vtable for environment variable list.
6804 Add paragraph explaining semantics of empty elements in path
6805 variables. Exclude a cross-reference to Fishkill from the
6806 manpage. Remove an unnecessary cross-reference of the entry
6807 right above the referer. Don't use @anchor in text that goes
6808 into manpage.
6809 * doc/cppopts.texi: Cross-reference the environment variables
6810 section, not the specific environment variable, for consistency.
6811
6b2e80b7
RH
68122002-03-25 Richard Henderson <rth@redhat.com>
6813
6814 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6815 anywhere in the block. Don't refer to insns that have been
6816 removed from the chain. Iterate backward through the new insns.
6817 Don't refer to edges that have been removed.
6818
67e469d7
AM
68192002-03-26 Alan Modra <amodra@bigpond.net.au>
6820
6821 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6822 test for overflow of constant.
6823
f2356393
RE
68242002-03-25 Richard Earnshaw <rearnsha@arm.com>
6825
6826 PR target/2623
6827 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6828 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6829 these patterns on arm_archv4.
6830
355426ab
DS
68312002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
6832
6833 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6834 int".
6835
15e5ad76
ZW
68362002-03-25 Zack Weinberg <zack@codesourcery.com>
6837
6838 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
6839 float_handled, float_handler, float_signal, set_float_handler,
6840 and do_float_handler. Set handler for SIGFPE to crash_signal.
6841 * toplev.h: Don't prototype do_float_handler.
6842
6843 * c-lex.c: Fold parse_float into lex_number. Make warning
6844 about portability of hex float constants more informative, and
6845 don't issue it on top of a syntax error.
6846 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6847 their callers.
6848 * real.h: Define REAL_VALUE_ABS here...
6849 * simplify-rtx.c: ... not here. Fold check_fold_consts,
6850 simplify_unary_real, simplify_binary_real, and
6851 simplify_binary_is2orm1 into their callers.
6852 * tree.c: Fold build_real_from_int_cst_1 into caller.
6853
6854 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6855
6856 * tsystem.h: Include float.h here...
6857 * libgcc2.c: ... not here.
6858
56ae9405
NC
68592002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
6860
6861 Fixes for: PR bootstrap/3591, target/5676
6862 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6863 defined. Do not disable exceptions or rtti.
6864 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6865 mcore.h. Disable exceptions and rtti, since they are not
6866 supported by EPOC.
6867
c88770e9
NB
68682002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
6869
6870 * c-decl.c (maybe_build_cleanup): Remove.
6871 * expr.c (expand_expr): Use langhook.
6872 * langhooks-def.h (lhd_return_null_tree,
6873 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6874 (LANGHOOKS_INITIALIZER): Update.
6875 * langhooks.c (lhd_return_null_tree): New.
6876 * langhooks.h (struct lang_hooks): New hook.
6877 * tree-inline.c (initialize_inlined_parameters): Use langhook.
6878 * tree.h (maybe_build_cleanup): Remove.
6879
2ed1f154
JJ
68802002-03-25 Jakub Jelinek <jakub@redhat.com>
6881
6882 * regrename.c (build_def_use): Move recog_memoized
6883 before extract_insn.
6884
6ddae612
JJ
68852002-03-25 Jakub Jelinek <jakub@redhat.com>
6886
6887 PR target/6043
6888 * expr.c (emit_group_store): Handle storing into CONCAT.
6889
ea475b23
JJ
68902002-03-25 Jakub Jelinek <jakub@redhat.com>
6891
6892 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6893 corresponding MATCH_DUP.
6894
e7d482b9
RH
68952002-03-24 Richard Henderson <rth@redhat.com>
6896
cd39fc13
RH
6897 * unroll.c (unroll_loop): Zero label_map.
6898
e7d482b9
RH
6899 * gcse.c: Include except.h.
6900 * Makefile.in (gcse.o): Update.
6901
1bd6476f
RH
69022002-03-24 Richard Henderson <rth@redhat.com>
6903
6904 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6905 Do resolve_unique_section before shared data clause.
6906
2e6c150a
RH
69072002-03-24 Richard Henderson <rth@redhat.com>
6908
6909 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6910
b29afcf8
RH
69112002-03-24 Richard Henderson <rth@redhat.com>
6912
15e5ad76 6913 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
6914 generated in the middle of a block. Do global life update if
6915 zapped EH edges.
6916
05ed1296
RH
69172002-03-24 Richard Henderson <rth@redhat.com>
6918
6919 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6920
3ddbb8a9
NB
69212002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6922
6923 preprocessor/3951
15e5ad76 6924 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
6925 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6926 (init_dependency_output): Don't make no_output decision here.
6927
740b77b6
AC
69282002-03-24 Andrew Cagney <ac131313@redhat.com>
6929
6930 * stmt.c (check_for_full_enumeration_handling): Remove tests of
6931 warn_switch. Update description.
6932 (expand_end_case_type): Call check_for_full_enumeration_handling
6933 when warn_switch.
6934
7590cfd0
SC
69352002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6936
6937 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6938 (m68hc11_split_move): Call it to see if the source and destination
6939 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 6940 source an offsetable memory operand and generate an add.
7590cfd0 6941
2e3d3481
SC
69422002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6943
6944 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6945 register for operand 2.
6946 ("*subsi3_zero_extendqi"): Likewise.
6947 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6948 bits so that it is compatible with a pop.
6949 ("*andhi3_gen"): Likewise.
6950 ("xorhi3"): Likewise.
6951
2784528c
NB
69522002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6953
6954 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6955 -pedantic here...
6956 (cpp_post_options): ... not here.
6957
aaf93206
NB
69582002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6959 Aldy Hernandez <aldyh@redhat.com>
6960
6961 Removal of separate preprocessor cpp0.
6962
6963 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6964 cpp0, install-common): Update.
6965 * c-common.c (flag_preprocess_only): New.
6966 (c_common_init): Preprocess for -E.
6967 * c-common.h (flag_preprocess_only): New.
6968 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6969 * c-objc-common.c (c_init_decl_processing): Exit quickly
6970 for NULL return from c_common_init.
6971 * cpplib.h (cpp_preprocess_file): New.
6972 * cppmain.c (main, general_init, pfile, progname): Remove.
6973 (do_preprocessing): Rename cpp_preprocess_file, don't call
6974 cpp_finish. Don't close stdout here.
6975 (setup_callbacks): Update prototype.
6976 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6977 Update.
6978 * tradcpp.c (main): Ignore -quiet.
6979objc:
6980 * lang-specs.h (default_compilers): Preprocess with cc1obj.
6981
c6e6f5c1
RH
69822002-03-24 Richard Henderson <rth@redhat.com>
6983
6984 PR optimization/5742
6985 * machmode.def: Add inner mode field to complex modes.
6986 * config/mips/mips.c (mips_function_value): Always define. Add
6987 new argument to handle libcalls.
6988 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6989 (FUNCTION_VALUE): Likewise.
6990 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6991 * config/mips/mips-protos.h: Update.
6992
d88e57d1
RH
69932002-03-23 Richard Henderson <rth@redhat.com>
6994
6995 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6996 * config/sparc/sparc-protos.h: Update.
6997 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6998
6dfaf9ba
RH
69992002-03-23 Richard Henderson <rth@redhat.com>
7000
7001 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
7002 _start or _init begins the text segment.
7003
0c769cf8
DE
70042002-03-23 David Edelsohn <edelsohn@gnu.org>
7005
7006 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
7007 not HOST_WIDEST_INT.
7008 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
7009
64e92a26
RE
70102002-03-23 Richard Earnshaw <rearnsha@arm.com>
7011
7012 PR java/5489
7013 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
7014 operand argument to output_return_instruction.
15e5ad76 7015 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
7016 const_true_rtx then just return.
7017 (arm_print_operand, case 'D'): If the operand is const_true_rtx
7018 then abort.
7019
d6961341
AC
70202002-03-23 Andrew Cagney <ac131313@redhat.com>
7021
7022 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
7023 (Warning Options): Document -Wswitch-default.
7024 * toplev.c (W_options): Add -Wswitch-default. Update comment on
7025 -Wswitch.
7026 (warn_switch_default): Define variable.
7027 (warn_switch): Update comment.
7028 * flags.h (warn_switch_default): Declare variable.
7029 (warn_switch): Update comment.
7030 * stmt.c (expand_end_case): Check for and, when
7031 warn_switch_no_default, warn of a missing default case.
15e5ad76 7032
d4c5ac1f
AM
70332002-03-23 Alan Modra <amodra@bigpond.net.au>
7034
bbaa9790
AM
7035 * real.h (N): Special case 128 bit doubles.
7036
d4c5ac1f
AM
7037 * combine.c (simplify_comparison): When widening modes, ignore
7038 sign extension on CONST_INTs.
7039
84bf8c2c
BW
70402002-03-22 Bob Wilson <bob.wilson@acm.org>
7041
7042 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
7043 passed to adjust_address. Fix comment formatting.
7044
7045
b216cd4a
ZW
70462002-03-22 Zack Weinberg <zack@codesourcery.com>
7047
7048 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
7049 Always make REAL_VALUE_TYPE a struct containing an array of
7050 HOST_WIDE_INT, not a double. Tidy up the code deciding how
7051 big it is. Don't declare or use union real_extract.
7052
7053 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
7054 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
7055 (print_operand), config/arm/arm.c (output_move_double),
7056 config/arm/arm.md (consttable_4, consttable_8),
7057 config/romp/romp.c (output_fpops), config/s390/s390.h
7058 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
7059 (xtensa_output_literal): Don't use union real_extract.
7060
7061 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
7062 (sfmode_constant_to_ulong), config/ns32k/merlin.h
7063 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
7064 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
7065 (PRINT_OPERAND): Don't use local version of union
7066 real_extract.
7067
7068 * config/convex/convex.c (check_float_value), config/vax/vax.c
7069 (vax_float_literal), config/m88k/m88k.md (divdf3),
7070 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
7071 config/pdp11/pdp11.c (output_move_quad): Don't do host
7072 arithmetic on target floating point quantities.
7073
7074 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
7075 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
7076
7077 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
7078 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
7079
7080 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
7081 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
7082 INFINITY.
7083 * print-rtl.c (print_rtx): Disable code which needs
7084 floating-point emulator.
7085 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
7086 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
7087 depending on HOST_FLOAT_FORMAT to be defined properly.
7088
7089 * config/1750a/1750a.c (get_double, float_label): Delete.
7090 (print_operand): Delete huge commented-out chunk. Use
7091 REAL_VALUE_TO_DECIMAL.
7092 * config/1750a/1750a-protos.h: Delete prototypes of deleted
7093 functions.
7094 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
7095 IEEE_FLOAT_FORMAT.
7096 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
7097 Use REAL_VALUE_TO_DECIMAL as ELF version does.
7098 * config/m88k/m88k.c (real_power_of_2_operand,
7099 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
7100 real_extract out of the union; run the input through
7101 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
7102 from that into the union.
7103 * config/pdp11/pdp11.c (output_move_double): Rearrange
7104 parentheses to make automatic indenter happy.
7105
7106 * doc/tm.texi (Cross-compilation): Rename node to "Floating
7107 Point" and rewrite to describe current situation. Also adjust
7108 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
7109 match code.
7110 * doc/rtl.texi: Adjust cross reference.
7111
a8cacfd2
BW
71122002-03-22 Bob Wilson <bob.wilson@acm.org>
7113
7114 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
7115 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
7116 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
7117 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
7118 prevent use of sp as a reload register.
7119 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
7120 non_acc_reg_operand.
7121 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
7122 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
7123 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
7124 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
7125
d4e6133f
NB
71262002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7127
b216cd4a
ZW
7128 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
7129 * cpplex.c (unterminated): Delete.
7130 (parse_string): No string literal may extend over multiple
7131 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
7132 * cppmain.c (scan_translation_unit): Strings are single-line.
7133
b216cd4a 7134 * doc/cpp.texi: Update to match.
d4e6133f 7135
65e6c005
JJ
71362002-03-22 Jakub Jelinek <jakub@redhat.com>
7137
7138 PR optimization/5854
7139 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
7140 Shut up warnings.
7141 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
7142 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
7143 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
7144 const0 if scratch register was not allocated.
7145 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
7146 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
7147 with GEN_INT (...).
7148 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
7149 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
7150 with GEN_INT (...) everywhere. Remove constraints in define_split
7151 patterns.
7152 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
7153 require scratch register for setting 0 into regs/non-pushable memory.
7154
7f48c9e1
AO
71552002-03-22 Alexandre Oliva <aoliva@redhat.com>
7156
7157 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
7158 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
7159
909de5da
PE
71602002-03-22 Phil Edwards <pme@gcc.gnu.org>
7161
7162 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
7163 * cppinit.c (cpp_create_reader): On by default.
7164 (cpp_handle_option): Handle -W[no-]endif-labels.
7165 (cpp_post_options): Also enable if -pedantic.
7166 * cpplib.c (do_else): Use it.
7167 (do_endif): Likewise.
7168 * doc/cppopts.texi: Document new option.
7169 * doc/invoke.texi: Document new option.
7170
d8bf17f9
LB
71712002-03-22 Lars Brinkhoff <lars@nocrew.org>
7172
7173 * config/i386/i386.c, config/i386/i386.md: Change all occurences
7174 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
7175
70e0ccd0
AO
71762002-03-22 Alexandre Oliva <aoliva@redhat.com>
7177
7178 * flow.c (calculate_global_regs_live): Clear aux fields of
7179 ENTRY and EXIT.
7180
68882f0f
JJ
71812002-03-22 Jakub Jelinek <jakub@redhat.com>
7182
7183 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
7184 REG or MEM subregs, pass rtx * instead of rtx to it.
7185 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
7186 rtx * instead of rtx to alter_subreg.
7187 * config/m32r/m32r.c (gen_split_move_double): Likewise.
7188 * config/pj/pj.c (pj_output_rval): Likewise.
7189
648fe28b
RH
71902002-03-22 Richard Henderson <rth@redhat.com>
7191
7192 PR target/3177
7193 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
7194 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
7195 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
7196 (ia64_expand_prologue): Look at int_regs, not words, for number
7197 of incomming int regs.
7198
e8dcd824
AM
71992002-03-22 Andrew MacLeod <amacleod@redhat.com>
7200
7201 * expr.c (expand_expr): A RESULT_DECL is part of a call.
7202
96327cdc
JH
7203Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
7204
7205 * toplev.c (flag_loop_optimize, flag_crossjumping):
7206 New static variables.
7207 (rest_of_compilation): Conditionalize crossjumping and
7208 loop optimizer.
7209 (parse_options_and_default_flags): Default loop_optimize and
7210 crossjumping.
7211 (lang_independent_options): Add -fcrossjumping and -floop-optimize
7212 * invoke.texi (crossjumping, loop-optimize): Document.
7213
bc185257
RS
72142002-03-22 Richard Sandiford <rsandifo@redhat.com>
7215
7216 * real.c (eiisneg): Move outside #ifdef NANS.
7217
0a2ed1f1
JH
7218Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
7219
7220 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
7221 frequencies match; avoid match on different loop depths.
7222 (try_crossjump_to_bb): Kill tests that no longer brings time
7223 savings.
7224 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
7225 updating code.
7226 (split_edge): Likewise.
7227
7228 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
7229 variable.
7230
7231 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
7232 * cfgrtl.c: Include insn-config.h
7233 (split_block) Dirtify block in presence of conditional execution
7234
4d72536e
RS
72352002-03-22 Richard Sandiford <rsandifo@redhat.com>
7236
7237 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
7238 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
7239 (function_arg): Constify CUMULATIVE_ARGS.
7240 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
7241 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
7242 (UNITS_PER_DOUBLE): New macro.
7243 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
7244 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
7245 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
7246 fp_regs and stack_words.
7247 (EABI_FLOAT_VARARGS_P): New macro.
7248 * config/mips/mips.c (struct mips_arg_info): New.
7249 (mips_arg_info): New function.
7250 (function_arg_advance): Use it. Add adjustment instructions here
7251 rather than in function_arg.
7252 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
7253 for VOIDmode at the beginning of the function.
7254 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
7255 (function_arg_pass_by_reference): Likewise.
7256 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
7257 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
7258 (mips_va_start): Likewise. Use the new stack_words field of
7259 CUMULATIVE_ARGS to set up overflow area. Reformat.
7260 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
7261 doubles and other types, aligning the overflow pointer for non-doubles
7262 too. Remove some code duplication. Replace hard-coded constants.
7263
e6f884cd
RS
72642002-03-22 Richard Sandiford <rsandifo@redhat.com>
7265
7266 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
7267 (CLASS_UNITS): Undefine.
7268 (CLASS_MAX_NREGS): Use FP_INC.
7269 * config/mips/mips.c (compute_frame_size): Likewise.
7270 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
7271
10cf9bde
NB
72722002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7273
7274 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
7275 prototype, and handle lexing numbers and identifiers.
7276 (parse_identifier): Update to new form of parse_slow.
7277 (parse_number): Fast path only, use parse_slow otherwise.
7278 (_cpp_lex_direct): Update calls to parse_number.
7279
fbc2782e
DD
72802002-03-21 DJ Delorie <dj@redhat.com>
7281
7282 * bb-reorder.c (make_reorder_chain_1): Protect against
7283 when redundant edges are omitted.
7284 * predict.c (dump_prediction): Likewise.
7285
fba39eaf
RH
72862002-03-21 Richard Henderson <rth@redhat.com>
7287
7288 PR target/5996
7289 * fixinc/inclhack.def (solaris_stdio_tag): New.
7290 * fixinc/fixincl.x: Regenerate.
7291
eba80994
EB
72922002-03-21 Eric Botcazou <ebotcazou@multimania.com>
7293
7294 PR c/5597
7295 * c-typeck.c (process_init_element): Flag non-static
7296 initialization of a flexible array member as illegal.
7297
2a78758b
AM
72982002-03-22 Alan Modra <amodra@bigpond.net.au>
7299
7300 * config/rs6000/t-linux64: New.
7301 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
7302 t-ppccomm. Use t-rs6000 and t-linux64.
7303 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
7304 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
7305 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
7306 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 7307
2cb921f4
AH
73082002-03-21 Aldy Hernandez <aldyh@redhat.com>
7309
eba80994
EB
7310 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
7311 flag_really_no_inline instead of optimize == 0.
2cb921f4 7312
eba80994 7313 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 7314
eba80994 7315 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 7316
eba80994 7317 * flags.h (flag_really_no_inline): New.
2cb921f4 7318
659e5a7a 7319 * c-common.c (c_common_post_options): Initialize
eba80994 7320 flag_really_no_inline.
2cb921f4 7321
eba80994 7322 * toplev.c (flag_really_no_inline): New.
2cb921f4 7323
239b8b9d
JJ
73242002-03-21 Jakub Jelinek <jakub@redhat.com>
7325
7326 * config/avr/avr.md (length): Fix length computation for
7327 conditional branches.
7328
43577e6b
NB
73292002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
7330
7331 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
7332 sdbout.o, profile.o): Update.
7333 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
7334 langhook.
7335 * c-common.h (gettags): Move here from tree.h.
7336 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
7337 insert_block, getdecls, kept_level_p, global_bindings_p): New.
7338 * dbxout.c (dbxout_init): Use getdecls langhook.
7339 * expr.c (expand_expr): Use insert_block langhook.
7340 * fold-const.c: Include langhooks.h.
7341 (fold_range_test, fold_binary_op_with_conditional_arg,
7342 fold): Use global_bindings_p langhook.
7343 * integrate.c (expand_inline_function): Use insert_block langhook.
7344 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
7345 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
7346 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
7347 LANG_HOOKS_GETDECLS): New.
7348 (LANG_HOOKS_INITIALIZER): Update.
7349 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
7350 langhook.
7351 * langhooks.h (struct lang_hooks_for_decls): New.
7352 (struct lang_hooks): Update.
7353 * profile.c: Include langhooks.h.
7354 (output_func_start_profiler): Use new langhooks.
7355 * sdbout.c: Include langhooks.h.
7356 (sdbout_init, sdbout_finish): Use getdecls langhook.
7357 * stmt.c: Include langhooks.h.
7358 (expand_fixup, fixup_gotos): Use new langhooks.
7359 * stor-layout.c: Include langhooks.h.
7360 (variable_size): Use global_bindings_p langhook.
7361 * toplev.c (compile_file): Use getdecls langhook.
7362 * tree-inline.c (remap_block): Use insert_block langhook.
7363 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
7364 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
7365
5b19b10c
RH
73662002-03-21 Richard Henderson <rth@redhat.com>
7367
7368 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
7369 constants in .data when -fpic.
7370
e05af335
GP
73712002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7372
7373 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
7374 where appropriate.
7375
60ffc997
TT
73762002-03-21 Tom Tromey <tromey@redhat.com>
7377
7378 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
7379
75897075
RK
7380Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7381
a73afd69 7382 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 7383
75897075
RK
7384 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
7385
312687cf
EB
73862002-03-21 Eric Botcazou <ebotcazou@multimania.com>
7387 Richard Henderson <rth@redhat.com>
7388
7389 PR c/5354
7390 * c-common.c (c_expand_expr): Preserve result of a statement
7391 expression if needed.
7392
f0e1f482
JJ
73932002-03-21 Jakub Jelinek <jakub@redhat.com>
7394
7395 PR bootstrap/4195
7396 * genrecog.c (maybe_both_true_mode): Remove.
7397 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
7398 * machmode.def (Pmode): Likewise.
7399
c14b9960
JW
7400Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
7401
7402 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
7403 (nonlocal_mentioned_p_1): New function.
7404 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
7405 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
7406 (mark_constant_function): Recognize pure functions.
7407 * rtl.h (global_reg_mentioned_p): New prototype.
7408 * rtlanal.c (global_reg_mentioned_p,
7409 global_reg_mentioned_p_1): New function.
7410
aaa4d130
RO
74112002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7412
7413 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
7414 UNIX assert.h.
7415 * fixinc/fixincl.x: Regenerate.
7416
e5c4bd1b
JM
74172002-03-20 Jason Merrill <jason@redhat.com>
7418
7419 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
7420
852b81bb
MM
74212002-03-20 Michael Meissner <meissner@redhat.com>
7422
7423 * doc/invoke.texi (Optimize Options): Document that -O2 sets
7424 -fstrict-aliasing.
7425
86d8c251
BW
74262002-03-20 Bob Wilson <bob.wilson@acm.org>
7427
7428 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
7429 ".literal_position" directive before the constant pool.
7430
0a39c350
GP
74312002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7432
7433 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
7434 Add Craig Rodrigues.
7435 Add Brad Lucier to testers.
7436
71a83373
JJ
74372002-03-20 Jakub Jelinek <jakub@redhat.com>
7438
7439 PR target/4792
7440 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
7441 to if_then_else.
7442 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
7443 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
7444 instead of insn_extract.
7445
a29b099d
JJ
74462002-03-20 Jakub Jelinek <jakub@redhat.com>
7447
7448 PR bootstrap/4192
71a83373 7449 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
7450
7451 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
7452 stmt if some case has been output.
7453
048b1c95
JJ
74542002-03-20 Jakub Jelinek <jakub@redhat.com>
7455
7456 PR c/5972
7457 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
7458 movsfcc_1, movdfcc_1): Add %O2.
7459 * config/i386/i386.c (print_operand): Handle %ON.
7460 Print . before float condition codes in Sun as cmov syntax.
7461 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
7462 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
7463 no longer true.
7464
f4864588
PB
74652002-03-20 Philip Blundell <pb@nexus.co.uk>
7466
7467 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
7468 return instruction if PC was popped.
7469
3a307de4
BW
74702002-03-20 Bob Wilson <bob.wilson@acm.org>
7471
7472 * config/xtensa/xtensa.md: Remove unused type attributes.
7473 (adddi_carry, subddi_carry): Change type attribute to "multi".
7474
048b1c95 74752002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
7476
7477 PR optimization/5999, middle-end/5731
7478 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
7479 multiplications by reciprocals.
7480
7afff7cf
NB
74812002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
7482
7483 * Makefile.in: Update.
7484 * c-common.c: Include langhooks.h.
7485 (inline_forbidden_p): Use new hook.
7486 * diagnostic.c: Include langhooks.h.
7487 (format_with_decl, announce_function,
7488 default_print_error_function): Use new hook.
7489 * dwarf2out.c (dwarf2_name): Use new hook.
7490 * function.c: Include langhooks.h.
7491 (init_function_start): Use new hook.
7492 * langhooks-def.h (lhd_decl_printable_name): New.
7493 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
7494 (LANGHOOKS_INITIALIZER): Update.
7495 * langhooks.c (lhd_decl_printable_name): New.
7496 * langhooks.h (struct lang_hooks): New hook.
7497 * toplev.c (decl_name, decl_printable_name): Remove.
7498 (open_dump_file): Use new hook.
7499 (process_options): Remove old hook.
7500 * tree.h (decl_printable_name): Remove.
7501objc:
7502 * objc-act.c (objc_init): Remove old hook.
7503 (objc_printable_name): Export.
7504 * objc-act.h (objc_printable_name): New.
7505 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
7506
f78ce0b7
JB
75072002-03-19 Jim Blandy <jimb@redhat.com>
7508
7509 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
7510 the start_source_file debug hook, not the current line number.
7511
15b5aef3
RH
75122002-03-19 Richard Henderson <rth@redhat.com>
7513
7514 * flow.c (EH_USES): Provide default.
7515 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
7516 * doc/tm.texi (EH_USES): New.
7517
7518 * config/ia64/ia64.c (ia64_eh_uses): New.
7519 * config/ia64/ia64-protos.h: Update.
7520 * config/ia64/ia64.h (EH_USES): New.
7521
02a7a3fd
RH
75222002-03-19 Richard Henderson <rth@redhat.com>
7523
7524 * varasm.c (output_constant_def): Fix stupid typo.
7525
93f82d60
RH
75262002-03-19 Richard Henderson <rth@redhat.com>
7527
2842be05 7528 PR 5879
93f82d60
RH
7529 * except.c (current_function_has_exception_handlers): New.
7530 * except.h: Declare it.
7531 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
7532 Combine tests that disable all sibcalls for the function.
7533
ed4fbfa0
OH
75342002-03-19 Olivier Hainque <hainque@act-europe.fr>
7535
7536 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
7537 for INTEGER_CST.
7538
ebf0e888
RH
75392002-03-19 Richard Henderson <rth@redhat.com>
7540
1e82682b 7541 PR 5977, 5991
ebf0e888
RH
7542 * config/ia64/ia64.c: Revert 2002-03-01 patch.
7543 * config/ia64/ia64.h (INIT_EXPANDERS): New.
7544
e37b38d7
JB
75452002-03-19 Jim Blandy <jimb@redhat.com>
7546
7547 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
7548 name, even if the replacement list contains no tokens, as required
7549 by Dwarf.
7550
2a4ea326
JM
75512002-03-19 Jason Merrill <jason@redhat.com>
7552
f9d09ae5
JM
7553 * varasm.c (globalize_decl): Get the name from the RTL, not
7554 DECL_ASSEMBLER_NAME.
7555
2a4ea326
JM
7556 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
7557
99b96edb
BW
75582002-03-19 Bob Wilson <bob.wilson@acm.org>
7559
7560 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
7561 subdi_carry): Define.
7562
3774b567
DE
75632002-03-19 David Edelsohn <edelsohn@gnu.org>
7564
7565 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
7566 about -fpic/-fPIC if extra_warnings set.
7567
21ef78aa
DE
75682002-03-19 David Edelsohn <edelsohn@gnu.org>
7569
7570 * expr.c (expand_expr): Sign-extend CONST_INT generated from
7571 TREE_STRING_POINTER.
0c2fdcdf 7572 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 7573
91d4b3fd
RK
7574Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7575
7576 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
7577 in favor of SP if FRAME_POINTER_REQUIRED is false.
7578
2496c7bd
LB
75792002-03-19 Lars Brinkhoff <lars@nocrew.org>
7580
7581 * emit-rtl.c (gen_int_mode): New function.
7582 * rtl.h: Prototype for it.
7583 * combine.c (make_extraction, simplify_comparison), expmed.c
7584 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
7585 (convert_modes, store_field), optabs.c (expand_fix),
7586 simplify-rtx.c (neg_const_int, simplify_unary_real),
7587
7588 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
7589 Use it instead of GEN_INT (trunc_int_for_mode (...)).
7590
f735a153
JJ
75912002-03-19 Jakub Jelinek <jakub@redhat.com>
7592
7593 PR c/5656
7594 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
7595 convert_parm_for_inlining.
7596 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7597 Define.
7598 * langhooks-def.h: Likewise.
7599 * objc/objc-lang.c: Likewise.
7600 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
7601 function.
7602 * tree-inline.c (initialize_inlined_parameters):
7603 Call convert_parm_for_inlining lang hook if needed.
7604 * c-typeck.c (c_convert_parm_for_inlining): New function.
7605 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
7606
1929c971
MM
76072002-03-18 Mark Mitchell <mark@codesourcery.com>
7608
b216cd4a 7609 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
7610 can be destroyed after expanding the argument.
7611 (expand_call): Likewise.
7612
c79ca0ac
EC
76132002-03-15 Eric Christopher <echristo@redhat.com>
7614
7615 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
7616 Fix register preference on last change.
7617 * config/mips/mips.c (mips_return_in_memory): New function.
7618 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
7619 * config/mips/mips-protos.h: Declare.
7620 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
7621 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
7622
07e2e444
AO
76232002-03-18 Alexandre Oliva <aoliva@redhat.com>
7624
1bfbbbcf
AO
7625 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
7626 a register too.
7627 (anddi3, iorsi3): Likewise.
7628
c066429e
AO
7629 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
7630 use %gprel for symbols that are going to be placed in linkonce
7631 sections.
7632
07e2e444
AO
7633 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
7634 RETURN_ADDRESS_POINTER_REGNUM to $ra.
7635 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
7636 not needed. Disregard leaf_function_p().
7637 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
7638 mips16 frame pointer.
7639 * config/mips/mips.md (store ra): Only to small SP offsets.
7640 2001-08-22 Graham Stott <grahams@redhat.com>
7641 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
7642 return a REG rtx for the return address register.
7643
eb8e00ea
BW
76442002-03-18 Bob Wilson <bob.wilson@acm.org>
7645
7646 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
7647 constant-pool addresses as "mode-dependent".
7648 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
7649
cbb92744
JJ
76502002-03-18 Jakub Jelinek <jakub@redhat.com>
7651
7652 PR target/5740
7653 * expr.c (emit_group_load): Use extract_bit_field if
7654 needed for CONCAT arguments.
7655
657d9449
RE
76562002-03-18 Richard Earnshaw <rearnsha@arm.com>
7657
91f3a802 7658 PR target/4863
657d9449
RE
7659 * arm.md (tablejump): Make this a define_expand. For PIC add the
7660 offset to the base of the table.
7661 (thumb_tablejump): Matcher for Thumb tablejump insn.
7662 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
7663 as the difference of two labels.
7664 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7665 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
7666 tables in the code.
7667 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7668 * arm.c (get_jump_table_size): If the table is not in the text
7669 section, return zero.
c79ca0ac 7670
5d5603e2
BS
76712002-03-18 Bernd Schmidt <bernds@redhat.com>
7672
7673 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7674 of gen_rtx_SUBREG.
7675 (arm_reload_out_hi): Use gen_lowpart instead of
7676 gen_rtx_SUBREG to access QImode components.
7677 * config/arm/arm.md: Disable zero_extend split for QImode
7678 subregs in BIG_ENDIAN mode.
7679 (storehi_bigend): Match use of least significant byte.
7680 (storeinthi): Remove extraneous SUBREG.
66c17b64 7681 Add missing construction of operands[2].
5d5603e2
BS
7682 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7683 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7684 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7685
df15fbc7
AH
76862002-03-18 Aldy Hernandez <aldyh@redhat.com>
7687
2496c7bd
LB
7688 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7689 any_operand.
df15fbc7 7690
b83b7fa3
RH
76912002-03-17 Richard Henderson <rth@redhat.com>
7692
7693 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7694 explicitly.
7695
6f7c00fe
HPN
76962002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7697
7698 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7699 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7700
155038f2
KG
77012002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7702
720d42fa
KG
7703 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7704
155038f2
KG
7705 * predict.c (estimate_bb_frequencies): Delete unused variables.
7706
e6542f4e
RH
77072002-03-17 Richard Henderson <rth@redhat.com>
7708
7709 * config/ia64/ia64.c (ia64_attribute_table): Move before
7710 targetm definition. Make static.
7711
52dabb6c
NB
77122002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
7713
7714 * c-common.h (yyparse, c_common_parse_file): New.
7715 * c-lang.c: Include c-common.h.
7716 (LANG_HOOKS_PARSE_FILE): Redefine.
7717 * c-lex.c: Include c-common.h.
7718 (yyparse): Rename c_common_parse_file. Call yyparse.
7719 * c-parse.in (yyparse): Remove macro.
7720 * c-tree.h (yyparse_1): Remove.
7721 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7722 (LANG_HOOKS_INITIALIZER): Update.
7723 * langhooks.h (struct lang_hoooks): New hook parse_file.
7724 * toplev.c (compile_file): Use parse_file hook.
7725 * tree.h (yyparse): Remove.
e6542f4e 7726 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 7727
b5ffe606
HPN
77282002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7729
ba82f58b
HPN
7730 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7731 float_truncate, not fix.
7732 ("*truncdfsf2_real"): Ditto.
7733 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7734
b5ffe606
HPN
7735 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7736
c8d1b2b7
AO
77372002-03-16 Alexandre Oliva <aoliva@redhat.com>
7738
cfb773f9
AO
7739 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7740 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
7741 where appropriate. Make the second reference to
7742 leaf_function_p a function call, as intended. Reindented.
7743
4dffef52
AO
7744 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7745 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7746
4f5bd6d7
AO
7747 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7748 add register to non-constant into sp.
7749
c8d1b2b7
AO
7750 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7751 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7752 (mips16_gp_pseudo_rtx): Lose.
7753 (INIT_EXPANDERS): Deleted.
7754 * config/mips/mips.c (mips_init_machine_status): New.
7755 (mips_free_machine_status): New.
7756 (mips_mark_machine_status): New.
7757 (override_options): Set them.
7758 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7759 (struct machine_function): ... new. Replaced all references.
7760 (mips_add_gc_roots): Don't mark them.
7761 (embedded_pic_fnaddr_reg): New, extracted from...
7762 (embedded_pic_offset): ... here.
7763 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7764 (movsi): Likewise.
7765
b3124fac
NB
77662002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7767
7768 * cppinit.c: Revert -MD removal.
7769
121449b6
SC
77702002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7771
7772 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7773 soft registers by default for 68HC12.
7774 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7775 when compiling with -fomit-frame-pointer.
7776 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7777 (expand_epilogue): Likewise.
7778 (m68hc11_gen_rotate): Use exg when rotating by 8.
7779
840e2ff1
SC
77802002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7781
7782 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7783 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7784 (splits): Remove unused add splits.
7785 ("*addhi3_68hc12"): Tune constraints.
7786 ("addhi_sp"): Try to use X instead of Y in all cases and if the
7787 constant fits in 8-bits and D is dead use abx/aby instructions.
7788 ("*addhi3"): Remove extern declaration of ix_reg.
7789 ("*subsi3"): Optimize and provide new split.
7790 ("subhi3"): Cleanup.
7791 ("*subhi3_sp"): Avoid saving X if we know it is dead.
7792 (arith splits): For 68hc12 save the address register on the stack
7793 and do the arithmetic operation with a pop.
7794
3c9a5efe
SC
77952002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7796
7797 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7798 allocating QImode in address registers.
7799 ("*movqi_m68hc11"): Likewise.
7800
e41f3392
JH
7801Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
7802
7803 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7804
576786b0
NB
78052002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7806
7807 * cppinit.c (print_help): Display -MD and -MMD.
7808 Don't display usage string. Update assertion syntax and
7809 typo.
7810 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7811 (cpp_handle_option): Update.
7812
1ac458d4
CD
78132002-03-15 Chris Demetriou <cgd@broadcom.com>
7814
7815 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7816 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7817 and define it so that regardless of target CPU size,
7818 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7819 of "int" rather than "long."
7820
1fcd592b
RH
78212002-03-15 Richard Henderson <rth@redhat.com>
7822
7823 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7824 size as a tree.
7825
a0df6910
SC
78262002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7827
7828 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7829 ("tstqi" split): Avoid using memory for tstqi on address register.
7830 (splits): Remove constraints.
7831 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7832 ("cmpdf", "cmpsf"): Remove since not used.
7833 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7834 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7835
015a2e59
SC
78362002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7837
7838 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7839 ("neghi2"): Tighten constraints.
7840 ("one_cmplsi2"): Optimize and simplify split.
7841 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7842
cd28557c
SC
78432002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7844
7845 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7846 and split of AND operation to clear the upper bits.
7847 ("*logicalsi3_zextqi"): Likewise.
7848 ("*logicallhi3_zexthi_ashift8"): Likewise.
7849 ("*logicalsi3_silshr16"): Likewise.
7850 ("logicalsi3_silshl16"): Likewise.
7851 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7852
932657df
SC
78532002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7854
7855 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7856 (m68hc11_indirect_p): New function.
7857 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7858 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7859 TARGET_M6812.
7860 (asm_print_register): Likewise.
7861 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7862 (m68hc11_indirect_p): Declare.
7863 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7864 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7865 (TARGET_SWITCHES): New option -mrelax.
7866 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7867 destination.
7868 ("iorsi3", "xorsi3"): Likewise.
7869 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7870 ("*andhi3_mem"): New to handle destination in memory with bclr
7871 and a scratch register.
7872 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7873 ("*andhi3_const"): New when operand2 is constant.
7874 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7875 ("*andhi3_gen"): Cleanup of the old "andhi3".
7876 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7877 ("xorqi3"): Update constraints.
7878
fdffea1a
SC
78792002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7880
7881 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7882 for reg_equiv_memory_loc when the operand is a register that does
7883 not get a hard register (stack location).
7884 (tst_operand): After reload, accept all memory operand.
7885 (symbolic_memory_operand): Fix detection of symbolic references.
7886 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7887 accept symbols and any constant.
7888
6272bc68
SC
78892002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7890
7891 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7892 note on the insn that sets the soft frame register.
7893 (must_parenthesize): ix and iy are also reserved names.
7894 (print_operand_address): One more place where parenthesis are required
7895 to avoid confusion with register names.
7896 (m68hc11_gen_movhi): Allow push of stack pointer.
7897 (m68hc11_check_z_replacement): Fix handling of parallel with a
7898 clobber.
7899 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7900 the replacement register is.
7901 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7902 and D8_REGS classes.
7903 (MODES_TIEABLE_P): All modes are tieable except QImode.
7904
1d2d9def
SC
79052002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7906
7907 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7908 (___subdi3): Likewise.
7909 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7910 (__map_data_section): Optimize 68hc11 case.
7911
a0ccf503
SC
79122002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7913
7914 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7915 than a shift to avoid adding a register with itself.
7916 (m68hc11_memory_move_cost): Take into account NO_REGS.
7917 (m68hc11_register_move_cost): Update and use memory move cost
7918 for soft registers.
7919 (m68hc11_address_cost): Make cost of valid offset not 0 so that
7920 it gives more opportunities to cse to optimize.
7921 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7922 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7923
6e4ae815
MM
79242002-03-15 Mark Mitchell <mark@codesourcery.com>
7925
7926 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7927 * c-common.def (CLEANUP_STMT): New tree node.
7928 * c-common.h (CLEANUP_DECL): New macro.
7929 (CLEANUP_EXPR): Likewise.
7930 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7931 * expr.c (expand_expr): Tidy.
7932 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7933 * tree-inline.c (initialize_inlined_parameters): Clean up
7934 new local variables.
7935
a42519be
JJ
79362002-03-15 Jakub Jelinek <jakub@redhat.com>
7937
7938 PR bootstrap/4128
7939 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7940 before movrXX only, use reg_overlap_mentioned_p.
7941 Only special case NE if just one insn can be generated.
7942
15409448
JM
79432002-03-15 Jason Merrill <jason@redhat.com>
7944
7945 * varasm.c (assemble_variable): Call resolve_unique_section before
7946 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
7947 of error_mark_node.
7948
3a4edb44
RE
79492002-03-15 Richard Earnshaw <rearnsha@arm.com>
7950
7951 PR target/5170
7952 * arm.md (split pattern for thumb shiftable immediates): Add comment
7953 explaining non-obvious test.
7954
32defa36
RE
79552002-03-15 Richard Earnshaw <rearnsha@arm.com>
7956
7957 PR target/5712
7958 * arm.md (movaddr, movaddr_insn): Delete.
7959
5cc90635
JM
79602002-03-15 Jason Merrill <jason@redhat.com>
7961
7962 * toplev.c (wrapup_global_declarations): Clarify variable handling.
7963 -fkeep-static-consts doesn't apply to comdats.
7964
ecb0eece
RH
79652002-03-14 Richard Henderson <rth@redhat.com>
7966
7967 * c-decl.c: Include c-pragma.h.
7968 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7969 (finish_function): Tidy.
7970 * c-pragma.c: Include c-common.h.
7971 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7972 (handle_pragma_weak): Use them.
7973 (init_pragma): Register pending_weaks.
7974 * c-pragma.h (maybe_apply_pragma_weak): Declare.
7975 * print-tree.c (print_node): Print DECL_WEAK.
7976 * varasm.c (mark_weak_decls): Remove.
7977 (remove_from_pending_weak_list): Remove.
7978 (add_weak): Remove.
7979 (asm_emit_uninitialised): Call globalize_decl for weak commons.
7980 (weak_decls): Make a tree_list.
7981 (declare_weak): Cons weak_decls directly.
7982 (globalize_decl): Remove weak_decls elements directly.
7983 (weak_finish): Simplify weak_decls walk. Don't weaken unused
7984 symbols. Don't pretend to handle aliases.
7985 (init_varasm_once): Update weak_decls registry.
7986 * Makefile.in: Update dependencies.
7987
98d2b17e
RH
79882002-03-14 Richard Henderson <rth@redhat.com>
7989
7990 PR target/5312
7991 * config/ia64/ia64.c: Include tm_p.h last.
7992 (gen_nop_type): Remove duplicate definition.
7993 (cycle_end_fill_slots): Set sched_data for second L slot.
7994 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7995 (nop_cycles_until): Fix typos.
7996
f2f4927e
JJ
79972002-03-15 Jakub Jelinek <jakub@redhat.com>
7998
7999 PR optimization/5891
8000 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
8001
5025a549
DM
80022002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
8003
8004 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
8005 descriptors correctly.
8006
03e9dbc9
MM
80072002-03-14 Michael Meissner <meissner@redhat.com>
8008
8009 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
8010 100, allowing MAX_UNROLLED_INSNS to be overridden.
8011
8012 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
8013 --param.
8014
8015 * unroll.c (params.h): Include.
8016 (MAX_UNROLLED_INSNS): Delete, now in params.h.
8017
8018 * doc/invoke.texi (--param max-unroll-insns): Document.
8019
8020 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
8021
12249385
RE
80222002-03-14 Richard Earnshaw <rearnsha@arm.com>
8023
8024 * arm.md: Fix warnings about constraints in peepholes and splits.
8025
f0cce04a
ZW
80262002-03-14 Zack Weinberg <zack@codesourcery.com>
8027
8028 * cpphash.h (struct lexer_state): Remove line_extension member.
8029 * cpplib.c (dequote_string, do_linemarker): New functions.
8030 (linemarker_dir): New data object.
8031 (DIRECTIVE_TABLE): No longer need to interpret #line in
8032 preprocessed source. Delete obsolete comment about return
8033 values of handlers.
8034 (end_directive, directive_diagnostics, _cpp_handle_directive):
8035 Don't muck with line_extension.
8036 (directive_diagnostics): No need to issue warnings for
8037 linemarkers here.
8038 (_cpp_handle_directive): Issue warnings for linemarkers here,
8039 when appropriate. Dispatch linemarkers to do_linemarker, not
8040 do_line.
8041 (do_line): Code to handle linemarkers split out to do_linemarker.
8042 Convert escape sequences in filename argument, both places.
8043
8044 * cppmacro.c (quote_string): Rename cpp_quote_string and
8045 export. All callers changed.
8046 * cpplib.h (cpp_quote_string): Prototype.
8047 * cppmain.c (print_line): Call cpp_quote_string on to_file
8048 before printing it.
8049
8050 * doc/cpp.texi: Document that escapes are now interpreted in
8051 #line and in linemarkers, and that non-printing characters are
8052 converted to octal escapes when linemarkers are generated.
8053
8054Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
8055
8056 * emit-rtl.c (try_split): Use delete_insns.
8057 * recog.c (split_all_insns): Fix terminating condition.
8058
c882c7ac
RE
80592002-03-14 Richard Earnshaw <rearnsha@arm.com>
8060 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8061
8062 PR target/5828
8063 * arm.c (arm_output_epilogue): Fix floating-point register save
8064 adjustment when using a frame pointer.
8065
3f26edaa
RS
80662002-03-14 Richard Sandiford <rsandifo@redhat.com>
8067
8068 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
8069 * config/mips/mips.c (compute_frame_size): Retrofit them here.
8070 (save_restore_insns, mips_expand_epilogue): And here.
8071 (build_mips16_call_stub): And here.
8072 (mips_function_value): Use the new macros to decide whether a single
8073 or complex float can be returned in floating-point registers. Return
8074 a parallel rtx in the complex case.
8075
1e3881c2
JH
8076Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
8077
8078 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
8079 call after liveness analysis.
8080
8081 * recog.c (split_insn): Use delete_insn_and_edges.
8082
8083 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
8084 instructions to have branch prediction notes.
8085 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
8086
200ef634
GK
80872002-03-14 Geoffrey Keating <geoffk@redhat.com>
8088
8089 * configure.in: Don't pass -Wno-long-long to a ADA compiler
8090 that doesn't support it.
8091 * configure: Regenerate.
8092
0b82d204
JJ
80932002-03-13 Jakub Jelinek <jakub@redhat.com>
8094
8095 PR target/5626
8096 * config/sparc/sparc.md (normal_branch, inverted_branch,
8097 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
8098 inverted_fp_branch): Adjust calls to output_cbranch.
8099 Set length attribute.
8100 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
8101 output_v9branch. Set length attribute.
8102 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
8103 predicates.
8104 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
8105 (output_cbranch): Likewise. Handle far branches.
8106 (output_v9branch): Handle far branches.
8107 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
8108 Adjust prototypes.
8109 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
8110 noov_compare64_op predicates.
8111
7a8de19b
JM
81122002-03-13 Jason Merrill <jason@redhat.com>
8113
8114 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
8115 into the function and constify it.
8116 * gthr-dce.h, gthr-solaris.h: Likewise.
8117
2a55fd42
DE
81182002-03-13 David Edelsohn <edelsohn@gnu.org>
8119
8120 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
8121 * config/rs6000/rs6000.c (rs6000_va_arg): Use
8122 std_expand_builtin_va_arg if not ABI_V4.
8123
19c5b1cf
JM
81242002-03-13 Jason Merrill <jason@redhat.com>
8125
8126 * varasm.c (globalize_decl): New fn.
8127 (assemble_start_function): Use it.
8128 (asm_emit_uninitialized): Use it.
8129 (assemble_alias): Use it.
8130 (assemble_variable): Use it.
8131
2a15f5e1
HPN
81322002-03-13 Hans-Peter Nilsson <hp@axis.com>
8133
8134 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 8135 2002-03-12 internal visibility change.
2a15f5e1
HPN
8136 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
8137 visibility into SYMBOL_REF_FLAG.
8138
c0a3eeac
UW
81392002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
8140
8141 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
8142 VOIDmode operand. Add compile-time optimization for constant results.
8143
a1652cee
JM
81442002-03-12 Jason Merrill <jason@redhat.com>
8145
8146 * c-typeck.c (convert_for_assignment): Don't allow conversions
8147 between pointers and references. Only allow lvalues to convert to
8148 reference.
8149
c52a375d
HP
81502002-03-13 Hartmut Penner <hpenner@de.ibm.com>
8151
f0cce04a
ZW
8152 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
8153 before prologue, to avoid scheduling problems.
c52a375d 8154
e387e99b
JJ
81552002-03-13 Jakub Jelinek <jakub@redhat.com>
8156
8157 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
8158 (ELIMINABLE_REGS): Add sfp->sp.
8159 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
8160
81612002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
8162
8163 PR optimization/5892
8164 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
8165
4061c1a3
JJ
81662002-03-13 Jakub Jelinek <jakub@redhat.com>
8167
8168 * loop.c (basic_induction_var): Don't call convert_modes if mode
8169 classes are different.
8170
5b43fed1
RH
81712002-03-12 Richard Henderson <rth@redhat.com>
8172
9f53e965
RH
8173 PR optimization/5901
8174 * function.c (reposition_prologue_and_epilogue_notes): Position
8175 the markers after/before the last/first insn not deleted.
8176
81772002-03-12 Richard Henderson <rth@redhat.com>
8178
8179 PR optimization/5878
5b43fed1
RH
8180 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
8181 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
8182 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8183
8184 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
8185 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
8186 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
8187
8188 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
8189 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
8190 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
8191 also. Don't set it if not flag_pic.
8192 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
8193 to be INVALID_REGNUM when not used.
8194
4e9bb42b
AH
81952002-03-13 Aldy Hernandez <aldyh@redhat.com>
8196
5b43fed1
RH
8197 * expmed.c (store_bit_field): Reset alias set for memory.
8198 (extract_bit_field): Same.
4e9bb42b 8199
2f9834e8
KG
82002002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8201
8202 * c-common.c (c_tree_code_type, c_tree_code_length,
8203 c_tree_code_name, add_c_tree_codes): Delete.
8204 * c-common.h (add_c_tree_codes): Delete.
8205 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
8206 Define.
8207 * c-objc-common.c (c_objc_common_init): Don't call
8208 add_c_tree_codes, instead set lang_unsafe_for_reeval.
8209 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
8210 objc_tree_code_name, add_objc_tree_codes): Delete.
8211 (objc_init): Don't call add_objc_tree_codes.
8212 * objc/objc-lang.c (tree_code_type, tree_code_length,
8213 tree_code_name): Define.
8214 * toplev.c (lang_independent_init): Don't set
8215 tree_code_length[IDENTIFIER_NODE].
8216 * tree.c (tree_code_type, tree_code_length, tree_code_name):
8217 Delete definitions, moved to language front-ends.
8218 * tree.def (IDENTIFIER_NODE): Hardwire the length.
8219 * tree.h (tree_code_type, tree_code_length, tree_code_name):
8220 Const-ify.
8221 (tree_code_length): Change type to unsigned char.
8222
36ad2436
RH
82232002-03-12 Richard Henderson <rth@redhat.com>
8224
8225 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
8226 internal visibility change.
8227
0ae02efa
BW
82282002-03-12 Bob Wilson <bob.wilson@acm.org>
8229
8230 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
8231 validize_mem() instead of change_address to avoid clobbering
8232 memory attributes.
8233
35bb2bee
NB
82342002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
8235
8236 * c-lex.h (position_after_whitespace): Remove.
8237
62ae2529
JJ
82382002-03-12 Jakub Jelinek <jakub@redhat.com>
8239
8240 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
8241 (lex_string): Use unsigned char pointers.
8242
6a45951f
UW
82432002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
8244
8245 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
8246 is not a valid memory_operand.
8247
e2fb85da
BW
82482002-03-12 Bob Wilson <bob.wilson@acm.org>
8249
8250 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
8251 * config/xtensa/lib1funcs.asm: Fix copyright to include
8252 special case for libgcc files.
8253 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
8254 (__divsi3): Likewise.
8255 (__umodsi3): Likewise.
8256 (__modsi3): Likewise.
8257 * config/xtensa/lib2funcs.S: Fix copyright to include
8258 special case for libgcc files.
8259
5b8619f8
TR
82602002-03-12 Tom Rix <trix@redhat.com>
8261
8262 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 8263 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
8264 (ignore_library): Same.
8265
089c8f97
BW
82662002-03-12 Bob Wilson <bob.wilson@acm.org>
8267
8268 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
8269
958c70ff
BW
82702002-03-12 Bob Wilson <bob.wilson@acm.org>
8271
8272 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
8273 to function_section before writing out the constant pool.
8274
a65c591c
DE
82752002-03-12 David Edelsohn <edelsohn@gnu.org>
8276
8277 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
8278 zero_constant.
8279 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
8280
82812002-03-12 Alan Modra <amodra@bigpond.net.au>
8282
8283 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
8284 (adddi3): Likewise.
8285 (movdf): Likewise.
8286 (movdi): Likewise.
8287 (cmpsi splitter): Likewise.
8288 (modsi3): Fail if <= 0.
8289 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
8290 redundant test when HOST_BITS_PER_WIDE_INT != 32.
8291 (reg_or_sub_cint64_operand): Likewise.
8292 (num_insns_constant_wide): Optimize sign extension.
8293 (rs6000_legitimize_address): Likewise.
8294
17720332
AM
82952002-03-12 Andrew MacLeod <amacleod@redhat.com>
8296
8297 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8298 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8299
cd49f073
AM
83002002-03-12 Andrew MacLeod <amacleod@redhat.com>
8301
8302 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
8303 address calculation.
8304
6a4e49c1
UW
83052002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
8306
8307 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
8308 scratch register to DImode / TImode.
8309 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
8310 register used does not overlap the target.
8311
54b6670a
KG
83122002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8313
8314 * Makefile.in (debug.o): Depend on debug.h.
8315 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
8316 * debug.c (do_nothing_debug_hooks): Likewise.
8317 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
8318 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
8319 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
8320 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
8321 * dwarfout.c (dwarf_debug_hooks): Likewise.
8322 * integrate.c (output_inline_function): Likewise.
8323 * objc/objc-act.c (synth_module_prologue): Likewise.
8324 * sdbout.c (sdb_debug_hooks): Likewise.
8325 * toplev.c (debug_hooks): Likewise.
8326 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8327
2465bf76
KG
83282002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8329
8330 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
8331 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
8332 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
8333 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
8334 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
8335 * defaults.h (POINTER_SIZE): Define.
8336 * doc/tm.texi (POINTER_SIZE): Document default.
8337
53f3e9ca
KG
83382002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8339
8340 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
8341
44d3eb5b
RH
83422002-03-11 Richard Henderson <rth@redhat.com>
8343
8344 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
8345 if rebuild_label_notes_after_reload.
8346
4a085d2e
HPN
83472002-03-12 Hans-Peter Nilsson <hp@axis.com>
8348
8349 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
8350 emit pic register load if "internal" visibility.
8351 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
8352 (cris_expand_builtin_va_arg): Do all computations on trees.
8353
bc204393
RH
83542002-03-11 Richard Henderson <rth@redhat.com>
8355
8356 * rtlanal.c: Include recog.h.
8357 (keep_with_call_p): Fix thinko.
8358 * Makefile.in (rtlanal.o): Update dependencies.
8359
6b8b9d7b
CM
83602002-03-11 Chris Meyer <cmeyer@gatan.com>
8361
8362 * genflags.c (gen_insn): Use IS_VSPACE.
8363 * genoutput.c (output_insn_data): Likewise.
8364 (process_template): Likewise.
8365
6c40858f
RH
83662002-03-11 Richard Henderson <rth@redhat.com>
8367
8368 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
8369
40adaa27
NB
83702002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
8371
8372 * Makefile.in: Update.
6c40858f 8373 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 8374 Update documentation.
6c40858f
RH
8375 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
8376 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 8377
049b03f4
ZW
83782002-03-11 Zack Weinberg <zack@codesourcery.com>
8379
8380 * Makefile.in: Give texi2pod its input file as a command line
8381 argument, not on stdin.
8382
61eece67
DN
83832002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
8384 Daniel Berlin <dan@dberlin.org>
8385
8386 C++ alias analysis improvement.
f0cce04a 8387 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
8388 classes too.
8389
a65c591c
DE
83902002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
8391
ff080aba
UW
8392 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
8393
1682dbb1
DR
83942002-03-11 Douglas B Rupp <rupp@gnat.com>
8395
fa2d765a
DR
8396 * toplev.c (vms_fopen): Remove, not needed.
8397
6f1fd286
DR
8398 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
8399
b230e057
DR
8400 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
8401
cb9a8e97
DR
8402 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
8403 for FP, already done later.
8404
1682dbb1
DR
8405 * toplev.c (debug_args): Add entry for VMS_DEBUG.
8406 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
8407
3fcaac1d
RS
84082002-03-11 Richard Sandiford <rsandifo@redhat.com>
8409
8410 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
8411 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
8412 LARGEST_EXPONENT_IS_NORMAL for the given mode.
8413 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
8414 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
8415 (ediv, emul, eldexp, esqrt): Likewise.
8416 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
8417 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
8418 (saturate): New function.
8419 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
8420 (make_nan): Use a saturation value instead of a NaN if
8421 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
8422 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
8423 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
8424 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
8425 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
8426 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
8427 !ROUND_TOWARDS_ZERO.
8428 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
8429 (ROUND_TOWARDS_ZERO): Document.
8430
d25558be
AJ
84312002-03-11 Andreas Jaeger <aj@suse.de>
8432
8433 * cfg.c (dump_flow_info): Remove unused variable.
8434
c71f9ae7
HPN
84352002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
8436
8437 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
8438 computations on trees.
8439
561c9153
RH
84402002-03-10 Richard Henderson <rth@redhat.com>
8441
932b4e3e 8442 PR 5693:
561c9153
RH
8443 * reload.c (copy_replacements_1): New.
8444 (copy_replacements): Use it to recurse through the rtx.
8445
26b738be
RH
84462002-03-10 Richard Henderson <rth@redhat.com>
8447
8448 * loop.c (strength_reduce): Compute number of iterations as
8449 unsigned HOST_WIDE_INT.
8450
8d8a083e
RH
84512002-03-10 Richard Henderson <rth@redhat.com>
8452
8453 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
8454 to move away from the end of the block.
8455
32810ba3
NB
84562002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
8457
8458 PR preprocessor/5899
8459 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 8460
2b03d201
KG
84612002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8462
f90c544c
KG
8463 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
8464
2b03d201
KG
8465 * attribs.c (decl_attributes): Fix signed/unsigned warning.
8466
3ec1b4cb
HPN
84672002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
8468
8469 * config/mmix/mmix.c: Improve comments.
8470 (mmix_target_asm_function_prologue): Drop variable
8471 empty_stack_frame. Don't allocate unused slot above fp.
8472 (mmix_target_asm_function_epilogue): Mirror prologue changes.
8473 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
8474 brace in first column.
8475 (enum reg_class): Ditto.
8476 (FIRST_PARM_OFFSET): Now 0.
8477 (USER_LABEL_PREFIX): Remove #if 0:d definition.
8478
27e486c5
KG
84792002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8480
8481 * combine.c (make_extraction): Fix error in last change.
8482
0139adca
KG
84832002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8484
8485 * c4x.c (c4x_fp_reglist): Const-ify.
8486 * cris.c (cris_print_operand): Likewise.
8487 * i386.c (ix86_va_arg): Likewise.
8488 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
8489 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
8490 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
8491 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
8492 * mcore.h (regno_reg_class): Likewise.
8493 * mips.c (gen_int_relational): Likewise.
8494 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
8495 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 8496 * pdp11.c (move_costs): Likewise.
0139adca
KG
8497 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
8498 * s390.c (s390_branch_condition_mnemonic, regclass_map):
8499 Likewise.
8500 * s390.h (regclass_map): Likewise.
8501 * sh.c (shift_amounts): Likewise.
a4334c36 8502 * sh.md (rotlsi3): Likewise.
0139adca 8503
889b90a1
GK
85042002-03-09 Geoffrey Keating <geoffk@redhat.com>
8505
8506 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
8507 (ne0+5): Use new clobber to generate proper shift pattern.
8508 Patch by Michael Matz <matz@kde.org>.
8509
2877e0ae
AS
85102002-03-09 Andreas Schwab <schwab@suse.de>
8511
8512 * gcc.c (validate_all_switches): Also handle `%W{...}'.
8513
79b51cd7
GK
85142002-03-09 Geoffrey Keating <geoffk@redhat.com>
8515
8516 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
8517
e0f1be5c
JJ
85182002-03-09 Jakub Jelinek <jakub@redhat.com>
8519
8520 PR middle-end/5877
8521 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
8522 even for non-representable constants.
8523
0a7ec763
RK
8524Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8525
93fe8e92
RK
8526 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
8527 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
8528 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
8529 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
8530 (pop_function_context): Compute MAY_SHARE parameter for
8531 fixup_var_refs.
8532 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
8533 (gen_mem_addressof): Call fixup_var_refs with new parm.
8534
0a7ec763
RK
8535 * combine.c (make_extraction): Don't make extension of CONST_INT.
8536
a85cd407
AO
85372002-03-09 Alexandre Oliva <aoliva@redhat.com>
8538
9445b814
AO
8539 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
8540 in o32 and o64 ABIs.
8541 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
8542 but getting fixed-size structs passed in registers regardless of
8543 padding in o32 and o64 ABIs.
8544
a85cd407
AO
8545 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
8546 offset before loading address of argument passed by transparent
8547 reference.
8548
c51fbe40
JDA
85492002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
8550
8551 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
8552
918e70dd
AO
85532002-03-09 Alexandre Oliva <aoliva@redhat.com>
8554
8555 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
8556 marker such that registers after it are saved.
8557
3070dd00
KG
85582002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8559
8560 * sparc.c (arith_4096_operand): Fix error in last change.
8561
e25d11b0
AO
85622002-03-08 Alexandre Oliva <aoliva@redhat.com>
8563
8564 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
8565 defaults for MEABI.
8566
41daaf0e
AH
85672002-03-08 Aldy Hernandez <aldyh@redhat.com>
8568
5b43fed1
RH
8569 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
8570 vectors.
41daaf0e 8571
fa139b00
AH
85722002-03-08 Aldy Hernandez <aldyh@redhat.com>
8573
5b43fed1 8574 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 8575
c51d95ec
JH
8576Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
8577
8578 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
8579 removed; fix return value.
8580 * combine.c (combine_instructions): Dirtify blocks where we failed to
8581 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
8582 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
8583
3b25fbfe
KG
85842002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8585
8586 * gcse.c (insert_insn_end_bb): Fix typo in last change.
8587
189ae0f4
JH
8588Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
8589
8590 * recog.c (peephole2_optimize): Re-distribute EH edges.
8591
24965e7a
NB
85922002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
8593
8594 * expr.c (expand_expr): Use unsave lang hook.
8595 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
8596 (LANG_HOOKS_INITIALIZER): Update.
8597 * langhooks.h (struct lang_hooks): New hook unsave.
8598 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
8599 (unsave_expr_1): Remove unused lang_unsave_expr_now.
8600 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
8601 (unsave_expr_now): Remove.
8602 * tree.h (unsave_expr_now, lang_unsave,
8603 lang_unsave_expr_now): Remove.
8604 (lhd_unsave): New.
8605
1e4e95d6
AJ
86062002-03-08 Andreas Jaeger <aj@suse.de>
8607
8608 * flow.c (propagate_block_delete_insn): Remove unused variable.
8609
054ef905
KH
86102002-03-08 Kazu Hirata <kazu@hxi.com>
8611
8612 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
8613 insn length for memory load/store.
8614
5304400d 86152002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 8616
5304400d
CR
8617 * doc/install.texi (--with-libiconv-prefix): Document.
8618
81034129
MB
86192002-03-08 Michael Y. Brukman <myb2@cornell.edu>
8620
8621 * doc/sourcebuild.texi: Fix typo.
8622
71db7d03
JJ
86232002-03-08 Jakub Jelinek <jakub@redhat.com>
8624
8625 PR c/3711
8626 * builtins.c (std_expand_builtin_va_arg): Do all computations on
8627 trees.
8628
127c1ba5
RK
8629Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8630
8631 * rtl.c (copy_most_rtx): Move from here ...
8632 * emit-rtl.c (copy_most_rtx): ... to here.
8633
8a13c092
AO
86342002-03-08 Alexandre Oliva <aoliva@redhat.com>
8635
5faae4f7
AO
8636 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
8637 SUBTARGET_CPP_SIZE_SPEC.
8638 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
8639
8a13c092
AO
8640 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
8641
4ec59de2
MH
86422002-03-07 Matt Hiller <hiller@redhat.com>
8643
8644 * gensupport.c (first_dir_md_include): Renamed from include;
8645 change all references.
8646 (last_dir_md_include): Renamed from last_include; change all
8647 references.
8648 (init_md_reader): Unconditionally initialize base_dir whether or
8649 not filename is a relative path.
8650
12f61e77
AO
86512002-03-07 Alexandre Oliva <aoliva@redhat.com>
8652
95356058
AO
8653 * config/fp-bit.c (_unord_f2): Compile it in even if
8654 US_SOFTWARE_GOFAST is enabled.
8655
12f61e77
AO
8656 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
8657 NULL_RTX. Set all HFmode operations as NULL_RTX.
8658 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
8659 NULL_RTX, try reversing the comparison and the operands.
8660
6d7a1c4c
UW
86612002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8662
8663 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
8664 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
8665 and MATCH_OP_DUP.
8666
66d54344
JH
8667Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
8668
8669 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8670
068473ec
JH
8671Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8672
8673 * basic-block.h (fixup_abnormal_edges): Declare.
8674 * reload1.c (fixup_abnormal_edges): New function.
8675 * reg-stack.c (convert_regs): Use it.
8676
8677 * gcse.c (insert_insn_end_bb): Handle trapping insns.
8678
8679 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8680
71925bc0
RS
86812002-03-07 Richard Sandiford <rsandifo@redhat.com>
8682
8683 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8684 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8685 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8686 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8687 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8688 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8689 unless x and y could be infinite.
8690 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8691 Check that the common type of both arguments is a real, even for
8692 targets without unordered comparisons. Allow an integer argument
8693 to be compared against a real.
8694 (expand_tree_builtin): Use expand_unordered_cmp.
8695 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8696 * cse.c (fold_rtx): Likewise. Fix indentation.
8697 * fold-const.c (fold_real_zero_addition_p): New.
8698 (fold): Use it, and the new HONOR_... macros.
8699 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8700 * jump.c (reversed_comparison_code_parts): After searching for
8701 the true comparison mode, use HONOR_NANS to decide whether it
8702 can be safely reversed.
8703 (reverse_condition_maybe_unordered): Remove IEEE check.
8704 * simplify-rtx.c (simplify_binary_operation): Use the new macros
8705 to decide which simplifications are valid. Allow the following
8706 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8707 and (a - -b) to (a + b).
8708 (simplify_relational_operation): Use HONOR_NANS.
8709 * doc/tm.texi: Document the MODE_HAS_... macros.
8710
145d3bf2
RE
87112002-03-07 Richard Earnshaw <rearnsha@arm.com>
8712
8713 * combine.c (simplify_comparison): If simplifying a logical shift
8714 right and compare with constant, force the comparison to unsigned.
8715
76a773f3
AH
87162002-03-07 Aldy Hernandez <aldyh@redhat.com>
8717
5b43fed1 8718 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 8719
5b43fed1
RH
8720 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8721 -mabi=no-altivec
8722 (alt_reg_names): Remove % for vrsave.
76a773f3 8723
ab55f58c
RH
87242002-03-06 Richard Henderson <rth@redhat.com>
8725
5ddec02e 8726 PR optimization/5844
ab55f58c
RH
8727 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
8728 if used indicates we've already emitted one copy of an operand.
8729 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8730 (gen_split): Supply a non-null used.
8731
e16e3291
UW
87322002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8733
5b43fed1 8734 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 8735
1e4e95d6 8736 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
8737 but simply fail if the expression is too complex to simplify.
8738 (simplify_gen_binary): Handle simplify_plus_minus failures.
8739
2ca6672b
JH
8740Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
8741
8742 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8743 consistently call delete_trivially_dead_insns after CSE and GCSE;
8744 fix DFI_life dumping; do jump threading after liveness; do crossjumping
8745 after liveness2; update comment in last crossjumping.
8746 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8747
31d0dd4f
JL
8748Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
8749
d094b0b3
JL
8750 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8751 after completing fast dead code elimination.
8752
31d0dd4f
JL
8753 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8754 COMPARE operator.
1e4e95d6 8755
f2b958b1
PE
87562002-03-06 Phil Edwards <pme@gcc.gnu.org>
8757
8758 * version.c: Fix misplaced leading blanks on first line.
8759
a2877a09
JH
8760Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
8761
8762 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8763
fe477d8b
JH
8764Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
8765
8766 * cfgcleanup.c (mentions_nonequal_regs): New function.
8767 (thread_jump): Use it.
8768 * toplev.c (rest_of_compilation): Run jump threading after
8769 liveness.
8770
2041cde4
JJ
87712002-03-06 Jakub Jelinek <jakub@redhat.com>
8772
8773 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8774 patch.
8775
82d68d46
JH
8776Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
8777
8778 * predict.c (estimate_bb_frequencies): Do not reload the
8779 frequencies from notes.
8780
3dec4024
JH
8781Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
8782
8783 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8784 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8785
8786 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8787 delete_noop_moves): Return indeger.
8788 * flow.c (ndead): New variable.
8789 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8790 BB argument; update callers.
8791 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8792 (life_analysis): Do not call purge_all_dead_edges.
8793 (update_life_info): Return number of deleted insns; print statistics.
8794 (update_life_info_in_dirty_blocks): likewise.
8795 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8796 return number of insns deleted.
8797
8798 * cse.c: Include timevar.h
8799 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8800 iterate until stabilizes; print statistics; return number of killed
8801 insns.
8802 * Makefile.in: (cse.o): Add timevar.h dependency
8803 * rtl.h (delete_trivially_dead_insns): New.
8804 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8805 * toplev.c (rest_of_compilation): Update callers.
8806
8807 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8808 (try_optimize_cfg): Do not update liveness.
8809 (cleanup-cfg): Loop until try_optimize_cfg and dead code
8810 removal stabilizes; use delete_trivially_dead_insns.
8811
8812 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8813
c7544dd8
ZW
88142002-03-05 Zack Weinberg <zack@codesourcery.com>
8815
8816 * cppmain.c (setup_callbacks): Disable #pragma and #ident
8817 callbacks when processing assembly language.
8818
50b424a9
JDA
88192002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8820
8821 * pa.h (ASM_FILE_END): Define.
8822 * som.h (ASM_FILE_END): Delete.
8823
8824 * pa.c (function_arg): Don't pass floats in general registers in
8825 indirect calls if TARGET_ELF32.
8826
6185f217
RH
88272002-03-05 Richard Henderson <rth@redhat.com>
8828
8829 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8830
3020a4b2
DS
88312002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
8832
8833 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8834
65649daa
JJ
88352002-03-05 Jakub Jelinek <jakub@redhat.com>
8836
8837 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8838 -r command line. Don't hide any symbols if not building
8839 shared libgcc.
8840
5a1a3e5e
JH
8841Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
8842
8843 * cfg.c (dump_flow_info): Warn about profile mismatches.
8844 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8845 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8846
170c56da
JJ
88472002-03-05 Jakub Jelinek <jakub@redhat.com>
8848
8849 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8850 wide volatile memory by parts.
8851
6d051694
JJ
88522002-03-05 Jakub Jelinek <jakub@redhat.com>
8853
8854 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8855 is NULL.
8856
28bcfd4d
RH
88572002-03-05 Richard Henderson <rth@redhat.com>
8858
5b43fed1 8859 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 8860
75227a33
GK
88612002-03-04 Geoffrey Keating <geoffk@redhat.com>
8862
8863 * toplev.c (documented_lang_options): Document more
8864 language-specific options.
8865 * doc/invoke.texi (Warning Options): Correct documentation for
8866 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8867 * c-decl.c (c_decode_option): Use a table to handle warning options.
8868
4f1aac42
HPN
88692002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
8870
8871 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8872 parameter to mmix_encode_section_info.
8873 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8874 relocatably. Always produce ELF, not mmo if linking relocatably.
8875 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8876 first is non-zero, don't add symbol prefix.
8877 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8878 prototype accordingly.
8879
12345543
KW
88802002-03-04 Krister Walfridsson <cato@df.lth.se>
8881
8882 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8883
8e97db8f
JM
88842002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
8885
8886 * configure.in: Increase required makeinfo version to 4.1.
8887 * configure: Regenerate.
8888
06487868
GK
88892002-03-04 Geoffrey Keating <geoffk@redhat.com>
8890
8891 * .cvsignore: Remove *.info* and genrtl*; these files are generated
8892 elsewhere now.
8893
cff42170
JM
88942002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
8895
8896 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8897 * doc/invoke.texi: Fix @math uses.
8898
974a7f56
JH
8899Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8900
8901 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8902 removal
8903
3b7d0e98
AH
89042002-03-03 Aldy Hernandez <aldyh@redhat.com>
8905
5b43fed1
RH
8906 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8907 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 8908
5b43fed1 8909 * config/rs6000/t-ppcendian: New.
3b7d0e98 8910
65f2f288
HB
89112002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8912
8913 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8914 nonimmediate_src_operand and nonimmediate_lsrc_operand to
8915 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8916
8ce0a8a5
RH
89172002-03-03 Richard Henderson <rth@redhat.com>
8918
8919 * toplev.c (rest_of_decl_compilation): Revert last two changes.
8920
ba31d94e
ZW
89212002-03-03 Zack Weinberg <zack@codesourcery.com>
8922
8923 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8924 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8925 tree.c, config/m68k/m68k.c:
8926 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8927 REAL_ARITHMETIC blocks unconditional. Delete some further
8928 #ifdef blocks predicated on REAL_ARITHMETIC.
8929 * flags.h, toplev.c: Delete remaining references to
8930 flag_pretend_float.
8931
8932 * doc/invoke.texi: Remove documentation of -fpretend-float.
8933 * doc/tm.texi: Describe the various REAL_* macros as provided by
8934 real.h, not by the target configuration files.
8935
8936 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8937 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8938 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8939 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8940 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8941 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8942 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8943 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8944 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8945 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8946 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8947 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8948 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8949 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8950 config/xtensa/xtensa.h:
8951 Do not define, undefine, or mention in comments any of
8952 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8953 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8954 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8955 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8956 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8957 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8958 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8959 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8960 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8961
9a571cfd
KG
89622002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8963
e81dd381
KG
8964 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8965 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8966 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8967 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8968 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8969 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8970 Delete.
8971 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 8972 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 8973
9a571cfd
KG
8974 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8975 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8976 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8977
ca7558fc
KG
89782002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8979
8980 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8981 lieu of explicit sizeof/sizeof.
8982 * i386.c (override_options, ix86_init_mmx_sse_builtins,
8983 ix86_expand_builtin): Likewise.
8984 * mips.c (mips_add_gc_roots): Likewise.
8985 * mmix.c (mmix_output_condition): Likewise.
8986 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8987 altivec_init_builtins): Likewise.
8988 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8989 * cppexp.c (Nsuff, parse_number): Likewise.
8990 * cppinit.c (builtin_array_end): Likewise.
8991 * gcc.c (n_default_compilers, process_command): Likewise.
8992 * genpreds.c (output_predicate_decls): Likewise.
8993 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8994 * lcm.c (N_ENTITIES): Likewise.
8995 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 8996
41c78c88
RH
89972002-03-03 Richard Henderson <rth@redhat.com>
8998
8999 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
9000 for types or labels.
9001
9e9b71e6
RH
90022002-03-03 Richard Henderson <rth@redhat.com>
9003
9004 * c-decl.c (start_decl): Initialized variables are not common.
9005
c26a6db8
PB
90062002-03-02 Per Bothner <per@bothner.com>
9007
9008 * gcc.c (option_map): Suport new --bootclasspath option.
9009 --CLASSPATH is now just an alias for --classpath.
9010
9e8aab55
RH
90112002-03-02 Richard Henderson <rth@redhat.com>
9012
9013 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
9014 load if "internal" visibility.
9015 * doc/extend.texi: Document visibility meanings.
9016
b3bbd220
RH
90172002-03-02 Richard Henderson <rth@redhat.com>
9018
9019 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
9020 to functions as well.
9021
b14707c3
RH
90222002-03-02 Richard Henderson <rth@redhat.com>
9023
9024 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
9025 (handle_visibility_attribute): Don't call assemble_visibility.
9026 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
9027 without asmspec. Invoke assemble_alias when needed.
9028 * varasm.c (maybe_assemble_visibility): New.
9029 (assemble_start_function, assemble_variable, assemble_alias): Use it.
9030
b2003250
RH
90312002-03-02 Richard Henderson <rth@redhat.com>
9032
9033 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
9034 invoke ENCODE_SECTION_INFO with first call flag.
9035
9036 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
9037 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 9038 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
9039 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
9040 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
9041 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
9042 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
9043 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
9044 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
9045 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
9046 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9047 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
9048 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
9049 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
9050 config/mcore/mcore-protos.h, config/mcore/mcore.c,
9051 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
9052 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 9053 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
9054 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
9055 config/sh/sh.h, config/sparc/sparc.h,
9056 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
9057 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
9058 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
9059 FIRST argument. As needed, examine it and do nothing.
9060
ba31d94e 9061 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
9062 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9063 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
9064
9065 * config/arm/t-pe (pe.o): Add dependencies.
9066
5c60f03d
KG
90672002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9068
9069 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
9070 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
9071 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
9072 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
9073 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
9074 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
9075 * defaults.h (BITS_PER_UNIT): Define.
9076 * doc/tm.texi (BITS_PER_UNIT): Document default value.
9077
86855e8c
KH
90782002-03-02 Kazu Hirata <kazu@hxi.com>
9079
9080 * config/h8300/h8300-protos.h: Add a prototype for
9081 compute_a_shift_length.
9082 * config/h8300/h8300.c (h8300_asm_insn_count): New.
9083 (compute_a_shift_length): Likewise.
9084 (h8300_adjust_insn_length): Do not adjust insn length of shift
9085 insns.
9086 * config/h8300/h8300.md (anonymous shift patterns): Use
9087 compute_a_shift_length.
9088
f6041ed8
RK
9089Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9090
35aa3c1c
RK
9091 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
9092 trunc_int_for_mode.
9093
f6041ed8
RK
9094 * emit-rtl.c (offset_address): Call update_temp_slot_address.
9095
27b41650
KG
90962002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9097
9098 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
9099 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
9100 * flags.h (flag_zero_initialized_in_bss): Declare.
9101 * toplev.c (flag_zero_initialized_in_bss): New flag.
9102 (lang_independent_options): Add flag_zero_initialized_in_bss.
9103 * tree.c (initializer_zerop): New function.
9104 * tree.h (initializer_zerop): Declare.
9105 * varasm.c (assemble_variable): If we can emit bss, put zero
9106 initializers in the bss section.
9107
ca734b39
AM
91082002-03-02 Alan Modra <amodra@bigpond.net.au>
9109
9110 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
9111 like more than one symbol per .weak directive.
9112
49b72306
RH
91132002-03-01 Richard Henderson <rth@redhat.com>
9114
9115 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
9116 adjust argument_pointer by pretend_args_size.
9117 (ia64_va_start): Adjust va_start address by -pretend_args_size.
9118
fbf0fe41
KH
91192002-03-01 Kazu Hirata <kazu@hxi.com>
9120
9121 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
9122
0010687d
JH
9123Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
9124
9125 * toplev.c (rest_of_compilation): Delete dead jumptables before
9126 loop.
9127 * flow.c (delete_dead_jumptables): Make global.
9128 * rtl.h (delete_dead_jumptables): Declare.
9129
9429c84c
DE
91302002-03-01 David Edelsohn <edelsohn@gnu.org>
9131
9132 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
9133 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 9134 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 9135
f0b6f9a6
KH
91362002-03-01 Kazu Hirata <kazu@hxi.com>
9137
9138 * config/h8300/h8300-protos.h: Fix formatting.
9139 * config/h8300/h8300.c: Likewise.
9140 * config/h8300/h8300.h: Likewise.
9141
bc8db8a1
KH
91422002-03-01 Kazu Hirata <kazu@hxi.com>
9143
9144 * config/h8300/h8300.c (print_operand): Support 16-bit
9145 constant addresses.
9146 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
9147
32b069d3
RH
91482002-02-28 Richard Henderson <rth@redhat.com>
9149
9150 * expmed.c (store_bit_field): Prevent generation of CONCATs;
9151 pun complex values as integers; use gen_lowpart instead of
9152 gen_rtx_SUBREG.
9153 (extract_bit_field): Likewise.
9154
79c4e63f
AM
91552002-03-01 Alan Modra <amodra@bigpond.net.au>
9156 David Edelsohn <edelsohn@gnu.org>
9157
9158 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
9159 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
9160 (SUPPORTS_WEAK): Likewise.
9161 * output.h (add_weak): Add tree param.
9162 * varasm.c (add_weak): Likewise. Save decl.
9163 (struct weak_syms): Add decl field.
9164 (mark_weak_decls): New function.
9165 (init_varasm_once): ggc_add_root mark_weak_decls.
9166 (assemble_start_function): Use ASM_WEAKEN_DECL.
9167 (assemble_variable): Likewise.
9168 (assemble_alias): Likewise.
9169 (declare_weak): Pass decl to add_weak.
9170 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
9171 (remove_from_pending_weak_list): Declare and define for
9172 ASM_WEAKEN_DECL.
9173 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
9174 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
9175 * defaults.h (SUPPORTS_WEAK): Likewise.
9176 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9177 .weak for code sym. Do emit .size for descriptor sym.
9178 (ASM_DECLARE_FUNCTION_SIZE): Define.
9179 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
9180 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
9181 .lglobl unless TARGET_XCOFF. Formatting fixes.
9182 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9183 .weak for code sym.
9184 (HANDLE_PRAGMA_WEAK): Remove.
9185 (ASM_WEAKEN_LABEL): Remove.
9186 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
9187
6f30f1f1
JM
91882002-03-01 Jason Merrill <jason@redhat.com>
9189
9190 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
9191 (TARGET_EXPR_CLEANUP): New macro.
9192
7879b81e
SE
91932002-02-28 Steve Ellcey <sje@cup.hp.com>
9194
9195 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
9196 to take ptr_extend into account as third type of extension.
9197 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
9198 fields used by SUBREG_PROMOTED_UNSIGNED_P.
9199 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
9200 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
9201 * calls.c (precompute_arguments): Use new macro.
9202 (expand_call): Ditto.
9203 * combine.c (nonzero_bits): Ditto.
9204 (record_promoted_value): Ditto.
9205 * expr.c (store_expr): Ditto.
9206 (expand_expr): Ditto.
9207 * function.c (assign_parms): Ditto.
9208
42d579d8
AO
92092002-02-28 Alexandre Oliva <aoliva@redhat.com>
9210
9211 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
9212 override -shared and -shared-libgcc.
9213
e0054185
DB
92142002-02-28 David O'Brien <obrien@FreeBSD.org>
9215
9216 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
9217 of "ultrasparc".
9218 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
9219 to be broken.
9220
abda4f1c
RH
92212002-02-28 Richard Henderson <rth@redhat.com>
9222
9223 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
9224 4 cycle latency from MM producers.
9225 (ia64_internal_sched_reorder): Likewise with pipeline flush.
9226
c0f08649
JJ
92272002-02-28 Jakub Jelinek <jakub@redhat.com>
9228
9229 * mklibgcc.in: Don't use GNU make extension.
9230
f79f2651
NB
92312002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9232
9233 * c-parse.in (STATIC): New terminal.
9234 (scspec): New non-terminal. Update productions accordingly.
9235 (program): Remove bogus ifc / end ifc.
9236 (array_declarator): Simplify production using STATIC.
9237
001e3fee
JM
92382002-02-28 Jim Meyering <meyering@lucent.com>
9239
9240 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
9241 \a still means TARGET_BELL.
9242
89076bb3
RH
92432002-02-28 Richard Henderson <rth@redhat.com>
9244
9245 * haifa-sched.c (sched_emit_insn): New.
9246 (schedule_block): Use last_scheduled_insn to track last insn.
9247 * sched-int.h (sched_emit_insn): Prototype.
9248 * config/ia64/ia64.c (last_issued): Remove.
9249 (ia64_variable_issue): Don't set it.
9250 (nop_cycles_until): Use sched_emit_insn.
9251
e3aaacf4
AM
92522002-02-28 Andrew MacLeod <amacleod@redhat.com>
9253
9254 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
9255 extended constants.
9256
7f473594
KH
92572002-02-28 Kazu Hirata <kazu@hxi.com>
9258
9259 * config/h8300/h8300.c: Fix formatting.
9260 * config/h8300/h8300.h: Likewise.
9261
b96c434c
MM
92622002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
9263
9264 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
9265 which may overwrite the high byte of the frame pointer.
9266
9b420a6a
BT
92672002-02-28 Bo Thorsen <bo@suse.de>
9268
9269 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
9270 (STARTFILE_SPEC): Add 64 bit files.
9271 (ENDFILE_SPEC): Likewise.
9272
6f30f1f1 92732002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
9274
9275 * c-decl.c (finish_function): Only warn about missing return
9276 statement with -Wreturn-type.
9277
70da1d03
JH
9278Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
9279
9280 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
9281
9282 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
9283 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
9284
38c1593d
JH
9285Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
9286
9287 * basic-block.h (BB_REACHABLE): Renumber.
9288 (BB_DIRTY, BB_NEW): New flags.
9289 (clear_bb_flags): Declare.
9290 (update_life_info_in_dirty_blocks): Declare.
9291 * cfg.c (clear_bb_flags): New function.
9292 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
9293 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
9294 reorder_insns, emit_insn_after): Mark block as dirty.
9295 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
9296 (update_life_info_in_dirty_blocks): New function.
9297 * recog.c (apply_change_group): Dirtify block.
9298
9299 * cse.c (cse_insn): Reorder emitting of jump insn to keep
9300 cfg consistent.
9301 * gcse.c (delete_null_pointer_checks): Likewise.
9302
9303 * toplev.c (dump_file_index): Move cse2 after bp,
9304 add DFI_null
9305 (dump_file_info): Similary.
9306 (rest_of_compilation): Avoid most of CFG rebuilds;
9307 do first if converision after null pointer checks, do cse2
9308 after branch prediction; avoid full liveness rebuild after
9309 initializing subregs.
9310 * invoke.texi (-d options): Document -du, renumber.
9311
9312 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
9313 (notice_new_block): Do not set BB_UPDATE_LIFE.
9314 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
9315 merge_blocks_move_successor_nojumps, merge_blocks,
9316 try_crossjump_to_edge): Likewise.
9317 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
9318 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
9319 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
9320 (merge_of_block): Do not use life_data_ok.
9321 (find_if_case_1): Do not use SET_UPDATE_LIFE.
9322 (if_convert): Use BB_DIRTY mechanizm to update life.
9323 * lcm.c (optimize_mode_switching): Update
9324 update_life_info_in_dirty_blocks
9325
63e1b1c4
NB
93262002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9327
9328 * Makefile.in (integrate.o): Update.
9329 * c-decl.c (copy_lang_decl): Rename.
9330 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9331 * integrate.c: Include langhooks.h.
9332 (copy_decl_for_inlining): Update to use langhook.
9333 * langhooks-def.h (lhd_do_nothing_t,
9334 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
9335 (LANG_HOOKS_INITIALIZER): Update.
9336 * langhooks.c (lhd_do_nothing_t): New.
9337 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
9338 * tree.h (copy_lang_decl): Remove.
9339objc:
9340 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9341
f472fa29
AM
93422002-02-27 Andrew MacLeod <amacleod@redhat.com>
9343
ba31d94e 9344 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
9345 POST_DEC, and POST_MODIFY.
9346
273cf2e4
ZW
93472002-02-27 Zack Weinberg <zack@codesourcery.com>
9348
9349 * c-typeck.c (digest_init): Remove unused parameter; all
9350 callers changed.
9351
4e07d762
GK
93522002-02-27 Geoffrey Keating <geoffk@redhat.com>
9353
9354 * expmed.c (expand_shift): Correctly test for low part of a
9355 subreg.
9356
6bc627b3
UW
93572002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9358
9359 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
9360 insn UIDs with insn addresses.
9361
f458d1d5
ZW
93622002-02-27 Zack Weinberg <zack@codesourcery.com>
9363
9364 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
9365 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
9366 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
9367 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
9368 gcc.c, toplev.c: Delete code implementing -traditional mode.
9369
9370 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
9371 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
9372 Document removal of -traditional mode for compilation, and
9373 remove documentation only relevant to that mode.
9374
9375 * config/nextstep.h, config/ptx4.h, config/svr4.h,
9376 config/convex/convex.h, config/d30v/d30v.h,
9377 config/i386/dgux.h, config/i386/osf1elf.h,
9378 config/i386/osfelf.h, config/i386/osfrose.h,
9379 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
9380 config/m68k/hp310.h, config/m88k/dgux.h,
9381 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
9382 config/m88k/m88k.h, config/m88k/openbsd.h,
9383 config/mips/abi64.h, config/mips/osfrose.h,
9384 config/mips/svr4-5.h, config/mips/svr4-t.h,
9385 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9386 config/stormy16/stormy16.h: Remove all references to
9387 -traditional from target specs. Delete all mention of the
9388 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
9389 delete a couple of commented-out definitions of
9390 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
9391 to -traditional.
9392
9393 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
9394 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
9395
e0b3a8ff
ZW
93962002-02-27 Zack Weinberg <zack@codesourcery.com>
9397
9398 * mklibgcc.in: Don't use \n in a line subject to
9399 interpretation by echo.
9400
5c6a85b7
GS
94012002-02-27 Graham Stott <grahams@redhat.com>
9402
72b05af1
GS
9403 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
9404 Constify NAME.
9405
7d104885
GS
9406 * loop.c (prescan_loop): Handle PARALLEL.
9407
8ed805d2
GS
9408 * unroll.c (loop_iterations): Return 0 if the add_val for
9409 a BIV is REG.
9410
fd478a0a
GS
9411 * final.c (output_operand_lossage): Constify PFX_STR.
9412
5c6a85b7
GS
9413 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
9414
cd98ad03
JH
9415Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
9416
9417 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
9418 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
9419
639ae55b
JH
9420Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
9421
9422 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9423
e808ec9c
NB
94242002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
9425
9426 * cpplex.c (_cpp_lex_token): Handle directives in macro
9427 arguments.
9428 * cpplib.c (_cpp_handle_directive): Save and restore state
9429 if parsing macro args when entering a directive.
9430 * cppmacro.c (collect_args): No need to handle directives
9431 in macro arguments.
9432 (enter_macro_context, replace_args): Use the original macro
9433 definition in case it was redefined whilst collecting arguments.
9434doc:
9435 * cpp.texi: Update.
9436
f585a356
DE
94372002-02-26 David Edelsohn <edelsohn@gnu.org>
9438
9439 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
9440 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
9441 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
9442 method on AIX.
9443 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
9444 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
9445 (load_toc_v4_PIC_2): Same.
9446
94472002-02-26 Alan Modra <amodra@bigpond.net.au>
9448
9449 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
9450
d699058e
RH
94512002-02-26 Richard Henderson <rth@redhat.com>
9452
9453 * config/alpha/alpha.md (ashldi_se): Re-enable.
9454
eadccfbb
RH
94552002-02-26 Richard Henderson <rth@redhat.com>
9456
9457 * config/alpha/alpha.c (alpha_encode_section_info): Examine
9458 MODULE_LOCAL_P; improve commentary.
9459
7080ada1
ZW
94602002-02-26 Zack Weinberg <zack@codesourcery.com>
9461
9462 * doc/cpp.texi: Clarify documentation of relationship between
9463 #line and #include.
9464
b42cff6b
KH
94652002-02-26 Kazu Hirata <kazu@hxi.com>
9466
9467 * config/h8300/h8300-protos.h: Update the prototype for
9468 compute_logical_op_length. Add the prototype for
9469 compute_logical_op_cc.
9470 * config/h8300/h8300.c (compute_logical_op_length): Figure out
9471 code from operands.
9472 (compute_logical_op_cc): New.
9473 * config/h8300/h8300.md: Combine all the logical op patterns
9474 in HImode and SImode. Use compute_logical_op_cc.
9475
831c4e87
KC
94762002-02-26 Kelley Cook <kelleycook@comcast.net>
9477
9478 * config/i386/i386.c (print_operand): Don't append ATT-style
9479 length suffixs to x87 opcodes when in Intel mode.
9480
ff88fe10
RS
94812002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
9482
9483 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
9484 (init_emit_once): Update calls.
9485 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
9486 (init_syntax_once): Prototype.
9487
d4108589
JDA
94882002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9489
9490 * pa-linux.h (LIB_SPEC): Update definition.
9491 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9492
e013f3c7
RH
94932002-02-26 Richard Henderson <rth@redhat.com>
9494
9495 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
9496 if we emitted a stop bit.
9497
9e944a16
JJ
94982002-02-26 Jakub Jelinek <jakub@redhat.com>
9499
9500 * configure.in (libgcc_visibility): Substitute.
9501 * configure: Rebuilt.
9502 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
9503 defined symbols .hidden.
9504
47bd70b5
JJ
95052002-02-26 Jakub Jelinek <jakub@redhat.com>
9506
9507 * attribs.c (c_common_attribute_table): Add visibility.
9508 (handle_visibility_attribute): New function.
9509 * varasm.c (assemble_visibility): New function.
9510 * output.h (assemble_visibility): Add prototype.
9511 * tree.h (MODULE_LOCAL_P): Define.
9512 * crtstuff.c (__dso_handle): Use visibility attribute.
9513 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
9514 for MODULE_LOCAL_P symbols too.
9515 * config/ia64/ia64.c (ia64_encode_section_info): Handle
9516 MODULE_LOCAL_P symbols the same way as local symbols.
9517 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
9518 into .sdata/.sbss by the user.
9519 * doc/extend.texi (Function Attributes): Document visibility
9520 attribute.
9521
6d73371a
JJ
95222002-02-26 Jakub Jelinek <jakub@redhat.com>
9523
9524 PR debug/5770
9525 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
9526 STRING_CST initializer spanning the whole variable without
9527 embedded zeros.
9528 If expand_expr returned MEM, don't use it.
9529
06e224f7
AO
95302002-02-26 Alexandre Oliva <aoliva@redhat.com>
9531
9532 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
9533 generate a die for the lexical block.
9534
40367e2d
KH
95352002-02-26 Kazu Hirata <kazu@hxi.com>
9536
9537 * config/h8300/h8300-protos.h: Add a prototype for
9538 compute_logical_op_length.
9539 * config/h8300/h8300.c (compute_logical_op_length): New.
9540 * config/h8300/h8300.md (anonymous logical patterns): Use
9541 compute_logical_op_length for length.
9542
0e98f924
AH
95432002-02-26 Aldy Hernandez <aldyh@redhat.com>
9544
831c4e87
KC
9545 * dwarf2out.c (modified_type_die): Do not call type_main_variant
9546 for vectors.
9547 (gen_type_die): Same.
0e98f924 9548
831c4e87 9549 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 9550
a50cfd52
DE
95512002-02-26 Daniel Egger <degger@fhm.edu>
9552
831c4e87
KC
9553 * config/rs6000/rs6000.md: Swap define_insn attributes to
9554 fix incorrect generation of merge high instructions instead
9555 of merge low.
a50cfd52 9556
b7997284
AH
95572002-02-26 Aldy Hernandez <aldyh@redhat.com>
9558
831c4e87
KC
9559 * c-typeck.c (really_start_incremental_init): Use
9560 bitsize_zero_node for vectors.
b7997284 9561
376aec5d
AH
95622002-02-26 Aldy Hernandez <aldyh@redhat.com>
9563
831c4e87
KC
9564 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
9565 ("*set_vrsave_internal"): Same.
376aec5d 9566
3b40e71b
RH
95672002-02-25 Richard Henderson <rth@redhat.com>
9568
9569 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
9570 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
9571
232b8f52
JJ
95722002-02-25 Jakub Jelinek <jakub@redhat.com>
9573
9574 PR target/5755
9575 * config/i386/i386.c (ix86_return_pops_args): Only pop
9576 fake structure return argument if it was passed on the stack.
9577
67282790
JM
95782002-02-25 Jason Merrill <jason@redhat.com>
9579
9580 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
9581 RESULT_DECL.
9582
5c181756
AO
95832002-02-25 Alexandre Oliva <aoliva@redhat.com>
9584
9585 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
9586 link with shared_name only.
9587 * doc/invoke.texi (Link Options): Document new behavior.
9588
6786d201
AH
95892002-02-25 Aldy Hernandez <aldyh@redhat.com>
9590
831c4e87 9591 * c-typeck.c (push_init_level): Handle vectors.
6786d201 9592
7d6040e8
AO
95932002-02-25 Alexandre Oliva <aoliva@redhat.com>
9594
9595 * config/sparc/sparc.c (const64_high_operand): Zero-extend
9596 operands of SPARC_SETHI_P.
9597 (input_operand): Likewise.
9598 (sparc_emit_set_const32): Likewise.
9599 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
9600 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9601 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
9602 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
9603 (movdi_insn_sp64_vis): Likewise.
9604 (movdi split, movdf split): Use SETHI32.
9605 * doc/md.texi: Document SPARC constraints L, M and N.
9606
b188f760
AH
96072002-02-25 Aldy Hernandez <aldyh@redhat.com>
9608
831c4e87
KC
9609 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
9610 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 9611
831c4e87
KC
9612 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
9613 gen_get_vrsave_internal.
b188f760 9614
8041889f
RK
9615Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9616
9617 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
9618
a47ed310
NB
96192002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
9620
9621 * cpplex.c (cpp_interpret_charconst): Get signedness or
9622 otherwise of wide character constants correct.
9623 * cppexp.c (lex): Get signedness of wide charconsts correct.
9624
cb8f73be
RK
9625Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9626
9627 * optabs.c (widen_operand): Only call convert_modes for
9628 promoted SUBREG if signedness matches.
9629 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
9630
2450e0b8
NB
96312002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9632
9633 * cpplib.c (glue_header_name): Use local buffer to build up
9634 header name.
9635
70b6aaed
NB
96362002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9637
9638 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
9639
6be580c7
KH
96402002-02-23 Kazu Hirata <kazu@hxi.com>
9641
9642 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
9643 H8/300[HS] separately.
9644 * config/h8300/h8300.md: Remove the early clobber constraint
9645 from bit field patterns.
9646
35dad9f1
KH
96472002-02-23 Kazu Hirata <kazu@hxi.com>
9648
9649 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
9650 register_operand.
9651 (mulhisi3): Likewise.
9652 (umulqisi3): Likewise.
9653 (umulhisi3): Likewise.
9654
ab8e2228
NB
96552002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9656
9657 * cppinit.c (output_deps): Correct test for stdout output.
9658 (init_dependency_output): Cure warning.
9659
ac6f8a15
RK
9660Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9661
9662 * expr.c (store_expr): When converting expression to promoted
9663 equivalent type, allow using SUBREG_REG of TARGET as the target
9664 of the expansion of EXP.
9665 * loop.c (basic_induction_var, case SUBREG): Always look inside.
9666 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
9667 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
9668 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
9669 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9670
f282ffb3
JM
96712002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
9672
9673 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9674 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9675 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9676
44c5edc0
JJ
96772002-02-23 Jakub Jelinek <jakub@redhat.com>
9678
9679 PR optimization/5747
9680 * loop.c (scan_loop): Update reg info if move_movables created new
9681 pseudos.
9682
f98e43c0
DE
96832002-02-23 David Edelsohn <edelsohn@gnu.org>
9684
9685 * gcc.c (init_gcc_spec): Revert last change.
9686
e72247f4
DE
96872002-02-23 David Edelsohn <edelsohn@gnu.org>
9688
9689 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9690 gpc_reg_operand constraint.
9691
96922002-02-23 Alan Modra <amodra@bigpond.net.au>
9693
9694 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9695 Simplify comparison of `low'.
9696 (add_operand): Fix formatting.
9697 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 9698 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
9699 (rs6000_stack_info): Remove redundant test setting push_p.
9700 (output_toc): Fix formatting.
9701 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9702 cc_reg_not_cr0_operand constraint.
9703 (booldi3, boolcdi3 splitters): Same.
9704
a5c30531
AH
97052002-02-23 Aldy Hernandez <aldyh@redhat.com>
9706
831c4e87 9707 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 9708
43710f9f
DE
97092002-02-22 David Edelsohn <edelsohn@gnu.org>
9710
9711 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9712 gcc invoked with -shared-libgcc.
9713
3256b817
JJ
97142002-02-22 Jakub Jelinek <jakub@redhat.com>
9715
9716 PR c++/5748
9717 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9718 decl if any of elements was TREE_USED.
9719
9e0625a3
AO
97202002-02-22 Alexandre Oliva <aoliva@redhat.com>
9721
9722 * config/sparc/sol2.h: Don't include sys/mman.h.
9723 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9724 (arith_4096_operand): Don't throw high bits away.
9725 (const64_operand): Take sign extension of CONST_INTs into account.
9726 (const64_high_operand, sparc_emit_set_const32): Likewise.
9727 (GEN_HIGHINT64): Likewise.
9728 (sparc_emit_set_const64_quick1): Likewise.
9729 (const64_is_2insns): Likewise.
9730 (print_operand): Use trunc_int_for_mode for sign extension.
9731 * config/sparc/sparc.h (SMALL_INT32): Likewise.
9732 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9733 chars. Assume CONST_INT is already properly sign-extended.
9734 (movdi split): Sign-extend each SImode part.
9735 (andsi3 split): Don't mask high bits off, so that result
9736 remains properly sign-extend.
9737 (iorsi3 split): Likewise.
9738 (xorsi3 split): Likewise.
9739
54fec3d5
RS
97402002-02-22 Richard Sandiford <rsandifo@redhat.com>
9741
9742 * fold-const.c (fold): Fix typo in comments.
9743
667ada9b
DN
97442002-02-21 Diego Novillo <dnovillo@redhat.com>
9745
9746 * Makefile.in (langhooks.o): Update dependencies.
9747
29ac78d5
DN
97482002-02-21 Diego Novillo <dnovillo@redhat.com>
9749
9750 * langhooks.c: Include flags.h.
9751
6aa77e6c
AH
97522002-02-21 Aldy Hernandez <aldyh@redhat.com>
9753
9754 * testsuite/gcc.dg/attr-alwaysinline.c: New.
9755
9756 * c-common.c (c_common_post_options): Set inline trees by
9757 default.
9758
9759 * doc/extend.texi (Function Attributes): Document always_inline
9760 attribute.
9761 Update documentation about inlining when not optimizing.
9762
9763 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9764
9765 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9766 unless DECL_ALWAYS_INLINE.
9767
9768 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9769 unless DECL_ALWAYS_INLINE.
9770 (c_disregard_inline_limits): Disregard if always_inline set.
9771
9772 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9773 Disregard if always_inline set.
9774 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9775 unless DECL_ALWAYS_INLINE.
9776
9777 * attribs.c (handle_always_inline_attribute): New.
9778 (c_common_attribute_table): Add always_inline.
9779
9780 * config/rs6000/altivec.h: Add prototypes for builtins
9781 requiring the always_inline attribute.
9782
c410d49e
EC
97832002-02-21 Eric Christopher <echristo@redhat.com>
9784
9785 * expmed.c (store_bit_field): Try to simplify the subreg
9786 before generating a new one when when the mode size of
9787 value is less than maxmode.
9788
e3c8ea67
RH
97892002-02-21 Richard Henderson <rth@redhat.com>
9790
9791 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9792 than gen_rtx_PLUS to form the sum.
9793 * explow.c (force_reg): Rearrange to not allocate new pseudo
9794 when force_operand returns a register.
9795 * expr.c (expand_assignment): Allow offset_rtx expansion to
9796 return a sum. Do not force addresses into registers.
9797 (expand_expr): Likewise.
9798 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9799 to canonicalize arithmetic that didn't simpify.
9800 (simplify_plus_minus): New argument force; update
9801 all callers. Don't split CONST unless we can do something with it,
9802 and wouldn't lose the constness of the operands.
9803
9804 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9805 that we generated earlier.
9806
c1a046e5
TT
98072002-02-21 Tom Tromey <tromey@redhat.com>
9808
9809 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9810 (output_line_info): Use constant `1', with a long explanatory
9811 comment.
9812 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9813
31fbaad4
R
9814Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
9815
9816 * jump.c (redirect_jump): If old label has no UID, don't try to
9817 delete it.
9818
a7f52356
R
9819Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
9820
9821 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9822 If input is constant, do shifts at compile time.
9823
924fcc4e
JM
98242002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
9825
9826 * doc/extend.texi: Fix some more overfull hboxes.
9827
e5a20888
JJ
98282002-02-21 Jakub Jelinek <jakub@redhat.com>
9829
9830 PR optimization/4994
9831 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9832 register moves.
9833
98342002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
9835
9836 PR c++/4574
9837 * expr.h (expand_and): Add mode argument.
9838 * expmed.c (expand_and): Add mode argument.
9839 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9840 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9841 * except.c (expand_builtin_extract_return_addr): Likewise.
9842 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9843 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9844 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9845 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9846 * config/c4x/c4x.md: Use GEN_INT (x) instead of
9847 gen_rtx (CONST_INT, VOIDmode, x).
9848
7133e992
JJ
98492002-02-21 Jakub Jelinek <jakub@redhat.com>
9850
9851 PR c/4697:
9852 * stmt.c (warn_if_unused_value): Move side effects test once more.
9853
e2ec05a6
TG
98542002-02-20 Torbjorn Granlund <tege@swox.com>
9855
9856 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 9857 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 9858
9dd791c8
AO
9859Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
9860
9861 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9862 SUBREG or ZERO_EXTEND.
9863
7ab56274
R
9864Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
9865
9866 * sh.h (current_function_anonymous_args): Remove.
9867 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9868 of current_function_varargs and current_function_stdarg is set.
9869 * sh.c (sh_expand_prologue): Check current_function_varargs /
9870 current_function_stdarg / TARGET_SH5 instead of
9871 current_function_anonymous_args.
9872
9873 * sh64.h (TARGET_VERSION): Define.
9874
b1765bde
DE
98752002-02-20 David Edelsohn <edelsohn@gnu.org>
9876
9877 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9878 VRSAVE_REGNO on TARGET_ALTIVEC.
9879
98802002-02-20 Alan Modra <amodra@bigpond.net.au>
9881
9882 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9883 bits of SImode const_int.
9884 (includes_rshift_p): Likewise.
9885 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 9886 mode.
b1765bde
DE
9887 (rs6000_output_function_epilogue): Pad traceback table to word.
9888 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9889 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9890 mask64_operand with correct mode.
b1765bde
DE
9891 (FUNCTION_ARG_REGNO_P): Correct parentheses.
9892
149d6f9e
JJ
98932002-02-20 Jakub Jelinek <jakub@redhat.com>
9894
9895 PR debug/4461
9896 * varasm.c (get_pool_constant_mark): New.
9897 * rtl.h (get_pool_constant_mark): Add prototype.
9898 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9899 be represented if it has not been output.
9900
4161da12
AO
99012002-02-20 Alexandre Oliva <aoliva@redhat.com>
9902
9903 * combine.c (do_SUBST): Sanity check substitutions of
9904 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9905 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9906 CONST_INT into its operand.
9907 (known_cond): Likewise, for ZERO_EXTEND.
9908 * simplify-rtx.c (simplify_unary_operation): Fix condition to
9909 allow for simplification of wide modes. Reject CONST_INTs in
9910 ZERO_EXTEND when their actual mode is not given.
9911
3704ef74
AO
99122002-02-20 Alexandre Oliva <aoliva@redhat.com>
9913
9914 * c-decl.c (pushdecl): If no global declaration is found for an
9915 extern declaration in block scope, try a limbo one.
9916
7552da58
JJ
99172002-02-20 Jakub Jelinek <jakub@redhat.com>
9918
9919 PR c++/4401
9920 * c-common.c (pointer_int_sum): Moved from...
9921 * c-typeck.c (pointer_int_sum): ...here.
9922 * c-common.h (pointer_int_sum): Add prototype.
9923
00fae85d
JJ
99242002-02-20 Jakub Jelinek <jakub@redhat.com>
9925
9926 PR c++/5713
9927 * c-decl.c (duplicate_decls): Return 0 if issued error about
9928 redeclaration.
9929
4636c87e
JJ
99302002-02-20 Roger Sayle <roger@eyesopen.com>
9931 Jakub Jelinek <jakub@redhat.com>
9932
9933 PR c/4389
9934 * tree.c (host_integerp): Ensure that the constant integer is
9935 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9936 when pos is zero or non-zero respectively. Clarify comment.
9937 * c-format.c (check_format_info_recurse): Fix host_integerp
9938 usage; the pos argument should be zero when assigning to a
9939 signed HOST_WIDE_INT.
9940
59bef189
RH
99412002-02-20 Richard Henderson <rth@redhat.com>
9942
9943 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9944 of the operand, rather than assuming TImode.
9945 (ix86_expand_binop_builtin): Cope with commutative patterns
9946 using nonimmediate_operand for both operands.
9947 (ix86_expand_timode_binop_builtin): Likewise.
9948 (ix86_expand_store_builtin): Validate operand 1.
9949 (ix86_expand_unop1_builtin): Likewise.
9950
9338ffe6 99512002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 9952
9338ffe6
PB
9953 PR 5705
9954 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9955
f322b423
RH
99562002-02-20 Richard Henderson <rth@redhat.com>
9957
9958 PR c/5615
9959 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9960
d94084f7
TT
99612002-02-20 Tom Tromey <tromey@redhat.com>
9962
9963 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9964 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9965 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9966 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9967 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9968 unconditionally.
9969
37fa124a
AM
9970Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9971
9972 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9973 for (const_int 0) in X not just INTVAL.
9974
6e5bb5ad
JM
99752002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
9976
9977 * doc/extend.texi: Avoid or reduce overfull hboxes.
9978
420e7dfa
DN
99792002-02-20 Diego Novillo <dnovillo@redhat.com>
9980
9981 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9982 operations if the field does not start at a mode boundary.
9983
1b7a2af6
JS
99842001-02-20 Joel Sherrill <joel@OARcorp.com>
9985
9986 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9987 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9988 Also done for -Acpu and -Amachine.
9989
56cd5b95
NB
99902002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
9991
9992 * cppinit.c (init_dependency_output): Take deps output file
9993 from -o if none given with -MF. Suppress normal output.
c410d49e 9994 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
9995 * doc/cpp.texi, doc/invoke.texi: Update.
9996
042cdf71
ZW
99972002-02-19 Zack Weinberg <zack@codesourcery.com>
9998
9999 * toplev.c (output_quoted_string): Write unprintable
10000 characters with octal escapes.
10001
c1f11548
DE
100022002-02-19 David Edelsohn <edelsohn@gnu.org>
10003
10004 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
10005 really_call_used[VRSAVE_REGNO] if not Altivec.
10006
100072002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 10008
c1f11548
DE
10009 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
10010 MODE_MASK.
10011 (constant_pool_expr_1): Fix formatting.
10012 (rs6000_legitimize_reload_address): Likewise.
10013
c964d90e
RK
10014Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10015
10016 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
10017 now that we have one.
10018
ae34ac46
ZW
100192002-02-19 Zack Weinberg <zack@codesourcery.com>
10020
10021 * tree.h (struct tree_common): Remove aux. Add unused_0 at
10022 end of first block of bitfields (which was only seven bits);
10023 rename dummy to unused_1; remove comment which is no longer true.
10024
293c28ee
GS
100252002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10026
10027 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
10028
7b8781c8
PB
100292002-02-19 Philip Blundell <pb@nexus.co.uk>
10030
0cb6c58d 10031 PR 5399
7b8781c8
PB
10032 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
10033 if generating PIC.
10034
10035 PR 5054
10036 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
10037 arm_is_longcall_p rather than inspecting call-type cookie
10038 directly.
10039 (call_value_insn) [TARGET_THUMB]: Likewise.
10040
5c464583
GS
100412002-02-19 Graham Stott <grahams@redhat.com>
10042
10043 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
10044
71c061e6
DE
100452002-02-19 David Edelsohn <edelsohn@gnu.org>
10046
10047 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
10048 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 10049 (FP_SAVE_INLINE): Delete.
71c061e6
DE
10050
10051 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
10052 * config/rs6000/eabi.asm: Remove ABI save restore routines.
10053 * config/rs6000/t-ppccomm: Build crtsavres.o.
10054 * config/rs6000/crtsavres.asm: New file.
10055
3a7731fd
PB
100562002-02-19 Philip Blundell <philb@gnu.org>
10057
10058 * config/arm/arm.c (use_return_insn): Don't reject interrupt
10059 functions.
10060 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
10061 (output_return_instruction): Allow interrupt functions to return with
10062 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
10063 (arm_expand_prologue): Subtract 4 before stacking LR in an
10064 interrupt function.
10065
14f583b8
PB
100662002-02-19 Philip Blundell <pb@nexus.co.uk>
10067
10068 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
10069 decl, not just FUNCTION_DECL.
10070 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
10071 (arm_assemble_integer): Likewise.
10072 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
10073 marked local.
c410d49e 10074
4cb7482c
MG
100752002-02-19 matthew green <mrg@eterna.com.au>
10076
10077 * config.gcc (sparc-*-netbsdelf*): Enable target.
10078 (sparc64-*-netbsd*): New target.
10079 * config/sparc/netbsd-elf.h: New file.
10080 * config/sparc/t-netbsd64: New file.
10081
2df3a718
GS
100822002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10083
10084 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
10085
77f6c1eb
RS
100862002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
10087
10088 * doc/invoke.texi: explicitly list the style guidelines that
10089 -Weffc++ checks for.
10090
fd973d56
JH
10091Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
10092
10093 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
10094
30518e45
NB
100952002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
10096
10097 PR other/5718
10098 * gcc.c (cpp_unique_options): Treat -o as indicating object file
10099 only if not -E. If -E, pass -o through to the preprocessor.
10100
39ea5704
KH
101012002-02-19 Kazu Hirata <kazu@hxi.com>
10102
10103 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
10104 register number with an appropriate macro.
10105
7355dba7
BM
101062002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10107
10108 * doc/rtl.texi (Constants): Close @code tag.
10109
91c8aa9e
AH
101102002-02-19 Aldy Hernandez <aldyh@redhat.com>
10111
10112 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
10113 ("mmx_uavgv4hi3"): Same.
10114 ("pmulhrwv4hi3"): Same.
10115
10116 * tree-inline.c (walk_tree): Handle vectors.
10117
10118 * c-common.c (constant_expression_warning): Handle vectors.
10119 (overflow_warning): Same.
10120
10121 * sched-deps.c (sched_analyze_2): Handle vectors.
10122
10123 * rtlanal.c (rtx_unstable_p): Handle vectors.
10124 (rtx_varies_p): Same.
10125 (count_occurrences): Same.
10126 (regs_set_between_p): Same.
10127 (modified_between_p): Same.
10128 (modified_in_p): Same.
10129 (volatile_insn_p): Same.
10130 (volatile_refs_p): Same.
10131 (side_effects_p): Same.
10132 (may_trap_p): Same.
10133 (inequality_comparisons_p): Same.
10134 (replace_regs): Same.
10135 (computed_jump_p_1): Same.
10136
10137 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
10138 argument.
10139 (inner_mode_array): New.
10140 (copy_rtx): Handle vectors.
10141 (copy_most_rtx): Same.
10142 (rtx_equal_p): Same.
10143 (get_mode_alignment): Adjust for vectors.
10144
10145 * resource.c (mark_referenced_resources): Handle vectors.
10146 (mark_set_resources): Same.
10147
10148 * reload1.c (eliminate_regs): Handle vectors.
10149 (elimination_effects): Same.
10150 (scan_paradoxical_subregs): Same.
10151
10152 * reload.c (subst_reg_equivs): Handle vectors.
10153
10154 * regrename.c (scan_rtx): Handle vectors.
10155
10156 * regclass.c (reg_scan_mark_refs): Handle vectors.
10157
10158 * recog.c (find_single_use_1): Handle vectors.
10159
10160 * local-alloc.c (equiv_init_varies_p): Handle vectors.
10161 (contains_replace_regs): Same.
10162 (memref_referenced_p): Same.
10163
10164 * integrate.c (copy_rtx_and_substitute): Handle vectors.
10165 (subst_constants): Same.
10166
10167 * genattrtab.c (attr_copy_rtx): Handle vectors.
10168 (encode_units_mask): Same.
10169 (clear_struct_flag): Same.
10170 (count_sub_rtxs): Same.
10171
10172 * gcse.c (want_to_gcse_p): Handle vectors.
10173 (oprs_unchanged_p): Same.
10174 (hash_expr_1): Same.
10175 (oprs_not_set_p): Same.
10176 (expr_killed_p): Same.
10177 (compute_transp): Same.
10178 (store_ops_ok): Same.
10179
10180 * function.c (purge_addressof_1): Do not allow paradoxical subregs
10181 of vectors.
10182 (fixup_var_refs_1): Same.
10183 (instantiate_virtual_regs_1): Same.
10184
10185 * fold-const.c (operand_equal_p): Handle vectors.
10186 (fold): Same.
10187 (rtl_expr_nonnegative_p): Same.
10188
10189 * flow.c (mark_used_regs): Handle vectors.
10190
10191 * df.c (df_uses_record): Handle vectors.
10192
10193 * cselib.c (cselib_subst_to_values): Handle vectors.
10194 (cselib_mem_conflict_p): Same.
10195 (hash_rtx): Same.
10196
10197 * cse.c (canon_reg): Handle vectors.
10198 (fold_rt): Same.
10199 (cse_process_notes): Same.
10200 (count_reg_usage): Same.
10201 (canon_hash): Same.
10202
10203 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
10204
10205 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
10206
10207 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
10208 (gen_rtx): Handle CONST_VECTOR.
10209 (gen_const_vector_0): New.
10210 (copy_rtx_if_shared): CONST_VECTORs can be shared.
10211 (reset_used_flags): Same.
10212 (copy_insn_1): Same.
10213 (initializer_constant_valid_p): Handle VECTOR_CST.
10214
10215 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
10216
10217 * doc/rtl.texi (Constants): Document const_vector.
10218 (CONST0_RTX): Update for vectors.
10219 (RTL sharing): Same.
10220
10221 * print-tree.c (print_node): Add case for VECTOR_CST.
10222
10223 * tree.h (TREE_VECTOR_CST_ELTS): New.
10224 (struct tree_vector): New.
10225 (union tree_node): Add vector node.
10226 (build_vector): Add prototype.
10227
10228 * tree.def (VECTOR_CST): New.
10229
10230 * tree.c (build_vector): New.
10231
10232 * expmed.c (make_tree): Handle CONST_VECTOR.
10233
10234 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
10235 (CONST_VECTOR_ELT): New.
10236 (CONST_VECTOR_NUNITS): New.
10237
10238 * machmode.h (GET_MODE_INNER): New.
10239 (DEF_MACHMODE): Accept 8th arg.
10240
10241 * machmode.def: Add 8th argument for vector inner mode.
10242 Add inner vector modes for vectors.
10243
10244 * rtl.def (VEC_CONST): Remove.
10245 (CONST_VECTOR): New.
10246
10247 * expr.c (clear_storage): Allow vectors.
10248 (is_zeros_p): Handle VECTOR_CST.
10249
10250 * varasm.c (output_constant_pool): Handle vectors.
10251 (rtx_const): Add veclo and vechi fields.
10252 (kind): Add RTX_VECTOR.
10253 (decode_rtx_const): Add case for vector.
10254
10255 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 10256
91c8aa9e
AH
10257 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
10258 constants. Force easy vector constants into memory.
10259 (easy_vector_constant): New.
10260 (emit_easy_vector_constant): New.
10261 (rs6000_legitimize_reload_address): Do not generate bad reloads on
10262 darwin.
10263
10264 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
10265 instruction does.
10266 ("altivec_lvxl"): Same.
10267 (altivec_lvebx): Same.
10268 (altivec_lvehx): Same.
10269 (altivec_lvewx): Same.
10270 ("*movv4si_const0"): New.
10271 ("*movv4sf_const0"): New.
10272 ("*movv8hi_const0"): New.
10273 ("*movv16qi_const0"): New.
10274
d4d6d0ce
KH
102752002-02-18 Kazu Hirata <kazu@hxi.com>
10276
10277 * config/h8300/h8300.c (notice_update_cc): Use
10278 cc_status.value2.
10279
4915d3aa
KH
102802002-02-18 Kazu Hirata <kazu@hxi.com>
10281
10282 * config/h8300/h8300.md (divmod patterns): Change the
10283 constraints for operands[1] to register_operand.
10284
82be00ee
KH
102852002-02-18 Kazu Hirata <kazu@hxi.com>
10286
10287 * config/h8300/h8300-protos.h: Remove the prototype for
10288 p_operand.
10289 * config/h8300/h8300.c (p_operand): Remove.
10290 * config/h8300/h8300.md: Replace p_operand with
10291 const_int_operand.
10292
1768c26f
PB
102932002-02-18 Philip Blundell <pb@nexus.co.uk>
10294
10295 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
10296 comment.
10297 (output_return_instruction): Allow use of LDR to unstack
10298 return addresss even for interrupt handlers or when
10299 interworking. If compiling for ARMv5, use interworking-safe
10300 return instructions by default. Remove duplicated code and
10301 lengthy "strcat" sequences.
10302
ccd84f51
FS
103032002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10304
10305 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
10306 (LINK_EH_SPEC): Define.
10307 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
10308
2c153108
UW
103092002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
10310
10311 * config/s390/s390.c (s390_emit_prologue): Do not set the
10312 frame_related flag for call-clobbered registers.
10313
e95d6b23
JH
10314Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
10315
10316 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
10317 (construct_container): Fix handling of SSE operands.
10318 (ix86_expand_builtin): Fix handling of 64bit pointers.
10319 (mmx_maskmovq_rex): New pattern.
10320
c43a12b5
JH
10321Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
10322
10323 * regrename.c (kill_set_value): Handle subregs properly.
10324
aeb85a15
DB
103252002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
10326
10327 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 10328 from objc_class_name.
aeb85a15 10329
a615ca3e
RH
103302002-02-17 Richard Henderson <rth@redhat.com>
10331
10332 * config/alpha/alpha.c (some_small_symbolic_operand,
10333 some_small_symbolic_operand_1, split_small_symbolic_operand,
10334 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
10335 Handle small SYMBOL_REFs anywhere, not just inside memories.
10336 * config/alpha/alpha-protos.h: Update.
10337 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10338 * config/alpha/alpha.md (small symbolic operand splitter): Update.
10339
ddb28441
RM
103402002-02-17 Roland McGrath <roland@frob.com>
10341
10342 * config.gcc (powerpc-*-gnu-gnualtivec*,
10343 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
10344 * config/rs6000/gnu.h: New file.
10345 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
10346 Grok "gnu" in rs6000_abi_name.
10347 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
10348 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
10349 Grok -mcall-gnu analogous to -mcall-linux et al.
10350 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10351 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
10352 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
10353
f6f8ada3
JJ
103542002-02-17 Jakub Jelinek <jakub@redhat.com>
10355
10356 PR c/3444:
10357 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
10358 shortening.
10359
e16b32fc
PT
103602002-02-17 Philipp Thomas <pthomas@suse.de>
10361
10362 * config/cris/cris.h: Undefine STARTFILE_SPEC and
10363 ENDFILE_SPEC before (re)defining them.
10364
f9477efd
KH
103652002-02-17 Kazu Hirata <kazu@hxi.com>
10366
10367 * config/h8300/h8300.c: Fix formatting.
10368 * config/h8300/h8300.h: Likewise.
10369
404ae494
PT
103702002-02-17 Philipp Thomas <pthomas@suse.de>
10371
10372 * doc/tm.texi: Explain why empty strings should not be
10373 marked for translation.
10374
a52453cc
PT
103752002-02-17 Philipp Thomas <pthomas@suse.de>
10376
10377 * final.c (output_operand_lossage): Changed to accept
10378 printf style arguments. Change calls where necessary.
10379 * output.h (output_operand_lossage): Change declaration
10380 accordingly. Update copyright.
10381 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
10382 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
10383 Update copyright date where necessary.
c410d49e 10384
a52453cc
PT
10385 * config/i386/i386.c (print_operand): Likewise. Remove use of
10386 sprintf.
10387
10388 * config/cris/cris.c (cris_operand_lossage): Likewise.
10389 Rename parameter so that exgettext recognizes it as
10390 translatable message.
10391 (LOSE_AND_RETURN): Rename parameter to msgid.
10392
1c11abc4
KH
103932002-02-17 Kazu Hirata <kazu@hxi.com>
10394
10395 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
10396 hard coded register number with an appropriate macro.
10397 (HARD_REGNO_MODE_OK): Likewise.
10398 (ARG_POINTER_REGNUM): Likewise.
10399 (STATIC_CHAIN_REGNUM): Likewise.
10400 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
10401 * config/h8300/h8300.md (define_constants): Define more
10402 register numbers.
10403
a5d17ff3
PT
104042002-02-17 Philipp Thomas <pthomas@suse.de>
10405
10406 * config/i386/i386.h: Don't mark empty strings for translation.
10407
1a7289c4
L
104082002-02-16 H.J. Lu <hjl@gnu.org>
10409
10410 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
10411
afb58288
ZW
104122002-02-16 Zack Weinberg <zack@codesourcery.com>
10413
10414 * cppinit.c (merge_include_chains): Check for brack being
10415 NULL before attempting to merge it with qtail.
10416
d2af4dbd
AC
104172002-02-16 Andrew Cagney <ac131313@redhat.com>
10418
10419 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
10420 DBX_DEBUG.
10421
2e1ed1e3
JDA
104222002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
10423
10424 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
10425
604c75b2
JDA
104262002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
10427
10428 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
10429 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
10430 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
10431
1a42b072
RK
10432Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10433
7303604f 10434 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
10435 now only if !TARGET_FIX.
10436 (*movsi_nt_vms_fix): New pattern.
10437
c2ea1ac6
DR
104382002-02-16 Douglas B Rupp <rupp@gnat.com>
10439
10440 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
10441 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
10442 (alpha_sa_mask, alpha_sa_size): Reflect above change.
10443 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
10444 (alpha_start_function, alpha_expand_epilogue): Likewise.
10445 (unicosmk_gen_dsib): Likewise.
10446
725e58b1
RK
10447Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10448
10449 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
10450
13e58269
UW
104512002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
10452
c410d49e 10453 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
10454 check_and_change_labels, s390_final_chunkify): Delete.
10455 (s390_split_branches, s390_chunkify_pool): New functions.
10456 (s390_function_prologue): Call them.
c410d49e 10457
13e58269
UW
10458 * config/s390/s390.h (S390_REL_MAX): Delete.
10459 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
10460
c410d49e 10461 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
10462 attribute calculation.
10463
10464
34d1b01d
DE
104652002-02-15 David Edelsohn <edelsohn@gnu.org>
10466
10467 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
10468 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
10469
be5cc51a
JDA
104702002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10471
10472 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
10473 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
10474 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
10475
ee96ce90
RS
104762002-02-15 Richard Sandiford <rsandifo@redhat.com>
10477
10478 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
10479
05fa709d
RS
104802002-02-15 Richard Sandiford <rsandifo@redhat.com>
10481
10482 * reload.c (find_dummy_reload): Check that an output register
10483 is valid for its mode.
10484
4606272b
AO
104852002-02-14 Alexandre Oliva <aoliva@redhat.com>
10486
9a360704
AO
10487 * combine.c (known_cond): After replacing the REG of a SUBREG, try
10488 to simplify it.
10489
4606272b
AO
10490 * function.c (assign_parms): Demote promoted argument passed by
10491 transparent reference.
10492
e62d89a1
JS
104932001-02-14 Joel Sherrill <joel@OARcorp.com>
10494
10495 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
10496 -Acpu() and -Amachine() to eliminate warnings.
10497
6c4cf695
UW
104982002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
10499
10500 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
10501
037f11ef
KH
105022002-02-14 Kazu Hirata <kazu@hxi.com>
10503
10504 * config/h8300/h8300-protos.h: Update the prototype for
10505 const_costs.
10506 * config/h8300/h8300.c (const_costs): Treat SET as a little
10507 more expensive operation.
10508 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
10509 reference to const_costs.
10510
fdc76b09
HPN
105112002-02-14 Hans-Peter Nilsson <hp@axis.com>
10512
10513 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
10514
d76e6800
JJ
105152002-02-14 Jakub Jelinek <jakub@redhat.com>
10516
10517 PR c/5503:
10518 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
10519 use arguments from newtype.
10520
5ae590d7
EC
105212002-02-13 Eric Christopher <echristo@redhat.com>
10522
10523 * config/mips/mips.c (override_options): Add check for march/mipsX
10524 on the same command line. Fix error message in cpu processing.
10525 Remove architecture and ISA checks.
10526
b8513691
AH
105272002-02-14 Aldy Hernandez <aldyh@redhat.com>
10528
831c4e87 10529 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 10530
831c4e87 10531 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 10532
78c875e8
AH
105332002-02-14 Aldy Hernandez <aldyh@redhat.com>
10534
831c4e87
KC
10535 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
10536 alternatives.
10537 ("*movv8hi_internal1"): Same.
10538 ("*movv16qi_internal1"): Same.
10539 ("*movv4sf_internal1"): Same.
78c875e8 10540
831c4e87
KC
10541 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
10542 not push_reload for altivec modes.
78c875e8 10543
d76e6800 105442002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
10545
10546 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
10547 all RTEMS targets including removal of #includes from config/*/rtems*.h
10548 file and adding them to tm_file setting. Added xm_defines=POSIX to
10549 many targets.
10550 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
10551 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
10552 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
10553 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
10554 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
10555 config/m68k/rtemself.h: Ditto.
10556 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
10557 config/mips/rtems64.h: Ditto.
10558 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
10559 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
10560 Ditto.
10561 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
10562 config/sparc/rtemself.h: Ditto.
10563 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
10564 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
10565 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
10566 more like arm-elf.
10567 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
10568 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
10569 target made more similar to i386-elf.
10570 * config/i386/t-rtems-i386: Added soft float support and multilibs.
10571 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
10572 be similar to config/m68k/t-m68kelf.
10573 * gthr-rtems.h: Encapsulate with extern "C" for C++.
10574
8686336f
JH
10575Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
10576
10577 * regmove.c (kill_value): Handle subregs.
10578
558740bf
JH
10579Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
10580
10581 * i386.md (mul patterns): Allow memory operand to be first;
10582 add expanders where needed; fix constraints.
10583 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
10584 Allow memory operand to be the first.
10585
10586 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
10587 operands.
10588
21117a17
JJ
105892002-02-13 Jakub Jelinek <jakub@redhat.com>
10590
10591 PR c/5681:
10592 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
10593 GET_MODE (x).
10594
ec65b2e3
JJ
105952002-02-13 Jakub Jelinek <jakub@redhat.com>
10596
10597 PR optimization/5547:
10598 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
10599 all valid IA-32 address modes involving non-scaled %ebx and
10600 GOT/GOTOFF as displacement.
10601
ce50cae8
UW
106022002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
10603
10604 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
10605 after emitting ltorg insns.
10606
10607 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
10608 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
10609 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
10610 *abssf2): Fix "op_type" attribute.
10611
09eb789b
DR
106122002-02-13 Douglas B Rupp <rupp@gnat.com>
10613
2dbe67bb
DR
10614 * mkconfig.sh: Avoid using a subshell redirect.
10615 ($output.T): Change to $(output)T.
10616 (ENABLE_NLS): Remove unneeded undef.
10617
ea5b9a1f
DR
10618 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
10619 * config/alpha/x-vms (libsubdir): Define.
10620
3deb00ce
DR
10621 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
10622 register frame procedures. Optimize retrieving context.
10623
09eb789b
DR
10624 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
10625 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
10626 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
10627
1abade85
RK
10628Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10629
10630 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
10631 Make same change as for find_base_value.
10632
c283e63f
KH
106332002-02-13 Kazu Hirata <kazu@hxi.com>
10634
10635 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
10636 of QImode and SImode.
10637
86039100
KH
106382002-02-13 Kazu Hirata <kazu@hxi.com>
10639
10640 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
10641 length computation of movsi.
10642 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
10643
e1429da0
KH
106442002-02-13 Kazu Hirata <kazu@hxi.com>
10645
10646 * config/h8300/h8300.md (subqi3): Tighten the predicate for
10647 operands[2] to register_operand.
10648
aebfea10
JH
10649Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
10650
10651 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
10652
0ec4e2a8
AH
106532002-02-12 Aldy Hernandez <aldyh@redhat.com>
10654
831c4e87
KC
10655 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
10656 for altivec_lvx* and altivec_stvx*.
10657 ("*movv4si_internal"): Add constraint for loading from GPRs.
10658 ("*movv8hi_internal1"): Same.
10659 ("*movv16qi_internal1"): Same.
10660 ("*movv4sf_internal1"): Same.
0ec4e2a8 10661
831c4e87 10662 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 10663
831c4e87
KC
10664 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10665 altivec_register_operand.
0ec4e2a8 10666
b007569d
HPN
106672002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
10668
10669 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10670 handle SYMBOL_REF.
10671
e6834654
SS
106722002-02-13 Stan Shebs <shebs@apple.com>
10673
831c4e87
KC
10674 * c-typeck.c (digest_init): Handle vectors.
10675 (really_start_incremental_init): Same.
10676 (pop_init_level): Same.
10677 (process_init_element): Same.
e6834654 10678
831c4e87 10679 * varasm.c (output_constant): Same.
e6834654 10680
831c4e87
KC
10681 * expr.c (clear_storage): Same.
10682 (store_constructor): Same.
e6834654 10683
d9b3eb63
EC
106842002-02-12 Eric Christopher <echristo@redhat.com>
10685
10686 * explow.c (hard_function_value): Add comment explaining
10687 signed/unsigned comparison.
10688
56d44285
JJ
106892002-02-12 Jakub Jelinek <jakub@redhat.com>
10690
10691 * jump.c (never_reached_warning): Add finish argument.
10692 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10693 real insn after end.
10694 * rtl.h (never_reached_warning): Adjust prototype.
10695 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10696 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10697 never_reached_warning.
10698
fc209487
GS
106992002-02-12 Graham Stott <grahams@redhat.com>
10700
10701 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10702
1e41e866
KH
107032002-02-12 Kazu Hirata <kazu@hxi.com>
10704
10705 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10706 logical shifts on H8/300.
10707 (shift_alg_si): Improve several shifts on H8/300.
10708 (get_shift_alg): Likewise.
10709
a36a47ad
GS
107102002-02-12 Graham Stott <grahams@redhat.com>
10711
10712 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10713
0aacc8ed
RK
10714Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10715
10716 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10717 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10718
a02ac966
HPN
107192002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
10720
10721 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10722 non-CONST_INT through default_assemble_integer.
10723 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10724 <case 8>: Abort for CONST_DOUBLE.
10725
d6e06ddc
JDA
107262002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10727
10728 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10729 is specified.
10730 * config/pa/pa-linux.h (LIB_SPEC): Delete.
10731 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10732
515342a8
AH
107332002-02-11 Andrew Haley <aph@cambridge.redhat.com>
10734
10735 * config/stormy16/stormy16.md (zero_extendqihi2): New.
10736
cddd8b72
AO
107372002-02-11 Alexandre Oliva <aoliva@redhat.com>
10738
66df7a98
AO
10739 * regrename.c (regrename_optimize): Don't accept a
10740 part-clobbered register if the replaced register is not part
10741 clobbered.
10742
841404cd
AO
10743 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10744 take padding into account when computing the argument value.
10745
1d1ade42
AO
10746 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10747
cddd8b72
AO
10748 * combine.c (try_combine): Apply substitutions in
10749 CALL_INSN_FUNCTION_USAGE too.
10750
5c665b88
AH
107512002-02-11 Aldy Hernandez <aldyh@redhat.com>
10752
77f6c1eb
RS
10753 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10754 __builtin_altivec_abs*.
10755 (bdesc_abs): New.
5c665b88 10756
77f6c1eb
RS
10757 * config/rs6000/rs6000.h (rs6000_builtins): Add
10758 ALTIVEC_BUILTIN_ABS*.
5c665b88 10759
77f6c1eb
RS
10760 * config/rs6000/altivec.h: Use const char for builtins expecting
10761 literals.
10762 (vec_abs): New versions for C and C++.
10763 (vec_abss): Same.
5c665b88 10764
3494f1b4
KH
107652002-02-10 Kazu Hirata <kazu@hxi.com>
10766
10767 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10768 using Pmode.
10769
72431aef
KH
107702002-02-10 Kazu Hirata <kazu@hxi.com>
10771
10772 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10773 constant definition from h8300.md.
10774 (FRAME_POINTER_REGNUM): Likewise.
10775 * config/h8300/h8300.md (define_constants): Add FP_REG.
10776
87e4ee91
KH
107772002-02-10 Kazu Hirata <kazu@hxi.com>
10778
10779 * config/h8300/h8300.c (print_operand): Remove redundant code.
10780
9c188705
KH
107812002-02-10 Kazu Hirata <kazu@hxi.com>
10782
10783 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10784 * config/h8300/h8300.c (byte_reg): Make it static.
10785
fba78abb
RH
107862002-02-10 Richard Henderson <rth@redhat.com>
10787
10788 PR c/5623
10789 * c-typeck.c (incomplete_type_error): Handle flexible array members.
10790
65739e62
RH
107912002-02-10 Richard Henderson <rth@redhat.com>
10792
10793 PR c++/5624
10794 * tree.c (append_random_chars): Don't abort if main_input_filename
10795 does not exist.
10796
247cb9df
HPN
107972002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
10798
10799 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10800
232bd029
KH
108012002-02-10 Kazu Hirata <kazu@hxi.com>
10802
65739e62 10803 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
10804 (pushhi1): Likewise.
10805
276ef573
JDA
108062002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
10807
10808 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10809 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10810
617e9ee5
DB
108112002-02-09 David O'Brien <obrien@FreeBSD.org>
10812
10813 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10814 remove MASK_VIS.
10815 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
10816
6dfa4005
KH
108172002-02-09 Kazu Hirata <kazu@hxi.com>
10818
10819 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10820 a half of an SImode register on H8/300.
10821
749e7b80
JH
10822Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
10823
10824 * i386.md (movdi_2): Add missing '!'.
10825
ca77d87c
KH
108262002-02-09 Kazu Hirata <kazu@hxi.com>
10827
10828 * config/h8300/h8300.h: Fix formatting. Remove commented-out
10829 definitions.
10830
16c96304
KH
108312002-02-09 Kazu Hirata <kazu@hxi.com>
10832
10833 * config/h8300/h8300.md (length): Correct the distance valid
10834 for the short branch.
10835
a364bc90
KH
108362002-02-09 Kazu Hirata <kazu@hxi.com>
10837
10838 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10839
e4ec2cac
AO
108402002-02-09 Alexandre Oliva <aoliva@redhat.com>
10841
a138247b
AO
10842 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10843 registers in SImode.
10844 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10845 part-clobbered.
10846
2b1fd83f
AO
10847 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10848 patch.
d9b3eb63 10849
fa5322fa
AO
10850 Contribute sh64-elf.
10851 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10852 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10853 (sh_cannot_modify_jumps_p): New function.
10854 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10855 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10856 (sh_ms_bitfield_layout_p): New function.
10857 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
10858 Zack Weinberg <zack@codesourcery.com>
10859 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10860 expand_simple_binop instead of expand_binop.
10861 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
10862 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10863 use of .quad and .uaquad.
10864 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10865 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10866 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10867 * config/sh/sh.md (movdi_const, movdi_const_32bit,
10868 movdi_const_16bit): Make sure all CONSTs have modes.
10869 (sym2PIC): Ditto, but by adjusting all callers.
10870 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10871 if the prologue calls the SHmedia argument decoder or register
10872 saver.
10873 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10874 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10875 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10876 (sh_expand_epilogue): Don't emit USE of return target register.
10877 (prepare_move_operands): Legitimize DImode PIC addresses.
10878 (sh_media_register_for_return): Skip tr0, used to initialize the
10879 PIC register.
10880 (sh_expand_prologue): Remove explicit USE of return register.
10881 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
10882 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
10883 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10884 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10885 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10886 EXTRA_CONSTRAINT_T.
10887 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10888 (MOVI_SHORI_BASE_OPERAND_P): New.
10889 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10890 (EXTRA_CONSTRAINT_T): Define in terms of them.
10891 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10892 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10893 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10894 alternatives supporting TARGET_REGS.
10895 (UNSPEC_GOTPLT): New constant.
10896 (movdi split): Move incrementing of LABEL_NUSES...
10897 (movdi_const, movdi_const_32bit): Here. Use
10898 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10899 (movdi_const_16bit): New.
10900 (call, call_value) [flag_pic]: Use GOTPLT.
10901 (call_pop, call_value_pop): New expands.
10902 (call_pop_compact, call_pop_rettramp): New insns.
10903 (call_value_pop_compact, call_value_pop_rettramp): New insns.
10904 (sibcall) [flag_pic]: Use GOT.
10905 (builtint_setjmp_receiver): Remove bogus, unused expand.
10906 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10907 (*pt, *ptb, ptrel): New insns.
10908 (sym2GOT): Handle DImode GOT.
10909 (sym2GOTPLT, symGOTPLT2reg): New expands.
10910 (sym2PIC): New expand.
10911 (shcompact_return_tramp): Use GOTPLT to return trampoline.
10912 (shcompact_return_tramp_i): Use return register explicitly.
10913 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10914 disable flag_reorder_blocks.
10915 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10916 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10917 clobbers, for clarity.
10918 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10919 restoring of r0 in macl as MAYBE_DEAD.
10920 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
10921 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10922 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10923 alter_subreg all over.
10924 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10925 reload, instead of emitting instructions that would require
10926 reloading.
10927 (casesi_load_media): Add missing modes.
10928 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
10929 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10930 as used if the argument decoder is called.
10931 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10932 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10933 Pmode, then extend it to DImode if necessary.
10934 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10935 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10936 constants in FPU-enabled SHmedia, let them be loaded from memory.
10937 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10938 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10939 Adjust whitespace in assembly output templates.
10940 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10941 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10942 mode of if_then_else.
10943 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
10944 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10945 sh.h.
10946 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
10947 Joern Rennecke <amylaar@redhat.com>
10948 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10949 (SUBTARGET_CPP_PTR_SPEC): New.
10950 (SUBTARGET_CPP_SPEC): Remove.
10951 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10952 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10953 Fix typo in previous checkin.
10954 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
10955 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10956 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
10957 Alexandre Oliva <aoliva@redhat.com>
10958 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10959 what single FP register can hold for SHmedia target.
10960 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10961 Alexandre Oliva <aoliva@redhat.com>
10962 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10963 Do not split into SUBREG.
10964 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
10965 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10966 and added new functions as specified in SH5 ABI r9.
10967 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
10968 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10969 8-byte boundary.
10970 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
10971 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10972 gen_consttable_4 and gen_consttable_8. Emit multiple labels
10973 and consttable_window_ends.
10974 2001-06-03 Graham Stott <grahams@redhat,com>
10975 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10976 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
10977 * config/sh/sh.c (print_operand): Handle floating-point pair,
10978 vector and matrix registers.
10979 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10980 vector modes into account.
10981 * config/sh/sh.md (movv2sf): Split move between registers into
10982 movdf.
10983 (movv4sf, movv16sf): Introduce insns that get split only after
10984 reload.
10985 * config/sh/shmedia.h: Fix Copyright dates.
10986 * config/sh/ushmedia.h: Likewise. Move loop counter
10987 declarations into conditionals that uses them.
10988 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10989 loop boundary.
10990 * config/sh/sshmedia.h: Fix Copyright dates.
10991 (sh_media_PUTCFG): Fix constraints.
10992 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
10993 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10994 ptrmemfunc_vbit_in_delta for SH5.
10995 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
10996 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10997 * invoke.texi: Likewise.
10998 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10999 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
11000 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
11001 GCC_pop_shmedia_regs_nofpu): New global symbols.
11002 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
11003 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
11004 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
11005 compact function with nonlocal labels.
11006 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
11007 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
11008 (initial_elimination_offset): Account for their stack space.
11009 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
11010 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
11011 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
11012 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
11013 least one of the operands to be a register.
11014 (movv2sf): Likewise. Renamed to movv2sf_i.
11015 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
11016 prepare_move_operands() before emitting SHmedia insns.
11017 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
11018 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
11019 Don't save nor initialize r12. Don't mis-align the stack.
11020 Pad the code with a nop.
11021 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
11022 stack.
11023 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
11024 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
11025 [__SHMEDIA__]: Implement.
11026 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
11027 * config/sh/sh.md: Set latency of `pt' closer to reality.
11028 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
11029 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
11030 Set move, load and store type attributes.
11031 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
11032 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
11033 profiling.
11034 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
11035 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
11036 * config/sh/sh.c (sh_media_register_for_return): New function.
11037 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
11038 branch-target register.
11039 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
11040 * config/sh/sh.md (return_media_i): Use any call-clobbered
11041 branch-target register.
11042 (return_media): If r18 wasn't copied in the prologue, copy it
11043 here.
11044 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
11045 Clear class FP0_REGS.
11046 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
11047 from elf.h.
11048 2001-03-08 DJ Delorie <dj@redhat.com>
11049 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
11050 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
11051 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
11052 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
11053 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
11054 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
11055 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
11056 return value correctly for call_cookie.
11057 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
11058 * config/sh/crt1.asm (start): Modified so as to call
11059 ___setup_argv_and_call_main.
11060 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
11061 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
11062 SHmedia mode.
11063 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
11064 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
11065 (STRIP_NAME_ENCODING): Use it.
11066 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
11067 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
11068 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
11069 prepare_scc_operands().
11070 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
11071 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
11072 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
11073 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
11074 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
11075 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
11076 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
11077 used in shcompact_incoming_args.
11078 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
11079 change.
11080 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
11081 mode.
11082 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
11083 Adjust accordingly.
11084 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
11085 Simplify. Adjust. Add sanity check.
11086 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
11087 FPU_SINGLE_BIT.
11088 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
11089 TARGET_SHCOMPACT.
11090 (udivsi3, divsi3): Use them.
11091 (force_mode_for_call): New insn.
11092 (call, call_value, sibcall_value): Emit it before SHcompact
11093 calls.
11094 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
11095 * config/sh/sh.md (call, call_value, sibcall): Make sure the
11096 call cookie is non-NULL before taking its value.
11097 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
11098 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
11099 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
11100 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
11101 block.
11102 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
11103 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
11104 temporary for stack adjusts. Use MACL and MACH to pass
11105 arguments to shcompact_incoming_args.
11106 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
11107 clobber r1.
11108 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
11109 (nested_trampoline): Load static chain address into r1.
11110 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
11111 2001-01-07 Alexandre Oliva <aoliva@redhat.com
11112 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
11113 fp_arith_reg_operand().
11114 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
11115 * config/sh/sh.md (casesi): Sign-extend the first two operands,
11116 and use signed compares for them.
11117 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
11118 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
11119 ones properly aligned.
11120 (find_barrier): Account for extra alignment needed for 8-byte wide
11121 constants.
11122 (machine_dependent_reorg): Require a label for the second 4-byte
11123 constant after an 8-byte one.
11124 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
11125 change.
11126 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11127 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
11128 last_float when switching float modes.
11129 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
11130 auto-increment for general-purpose registers.
11131 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
11132 result.
11133 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
11134 for stack adjust.
11135 * config/sh/sh.c (sh_builtin_saveregs): Support using all
11136 registers for varargs.
11137 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
11138 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
11139 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
11140 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
11141 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
11142 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
11143 call_cookie accordingly.
11144 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
11145 (SHCOMPACT_BYREF): Likewise.
11146 (SHCOMPACT_FORCE_ON_STACK): New macro.
11147 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
11148 (sh_builtin_saveregs): Likewise.
11149 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11150 shcompact_incoming_args): Use new shift values. Support
11151 sequences of consecutive and non-consecutive pushes/pops.
11152 * config/sh/sh.md (return): Don't explicitly use PR_REG.
11153 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
11154 * config/sh/sh.h (TEXT_SECTION): Define.
11155 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
11156 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11157 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
11158 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
11159 return values on FPU-enabled SHmedia.
11160 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
11161 FPU-enabled SHmedia.
11162 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
11163 value is returned in a non-FP reg and is not returned by
11164 reference.
11165 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
11166 jump_ind.
11167 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
11168 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
11169 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
11170 quad-aligned to be passed by callee-copy reference.
11171 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
11172 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
11173 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
11174 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
11175 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
11176 copying low-numbered FP regs to r7 and r8.
11177 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
11178 FP regs to general-purpose regs only if the copy was passed on the
11179 stack.
11180 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
11181 copying FP reg to r9.
11182 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
11183 copy FP regs to general-purpose regs only in outgoing calls.
11184 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 11185 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
11186 HOST_WIDE_INT.
11187 * config/sh/sh.h (struct sh_args): Document all fields.
11188 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
11189 passed partially on the stack should not consider making
11190 sibcalls.
11191 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
11192 stack_regs only for incoming calls. When passing FP args,
11193 make sure there are FP regs available before modifying
11194 call_cookie.
11195 (SHCOMPACT_BYREF): Pass double args in general-purpose
11196 registers by reference.
11197 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
11198 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
11199 attempt to generate sibcalls if the caller got any arguments
11200 by reference.
11201 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
11202 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
11203 to 8-byte boundaries.
11204 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
11205 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
11206 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
11207 stored in the stack.
11208 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
11209 for the offsets to have the ISA bit set.
11210 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
11211 invocation. Use beq instead of bgt to mark end of sequence of
11212 loads.
11213 (shcompact_incoming_args): Fix store of r2. Use beq instead of
11214 bgt to mark end of sequence of stores.
11215 * config/sh/sh.c (arith_operand): Don't check whether
11216 CONST_OK_FOR_J for now.
11217 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
11218 instead of long for conversion.
11219 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
11220 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
11221 before passing it to fprintf.
11222 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
11223 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
11224 Call set_fpscr before reading/writing SR.
11225 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
11226 Call set_fpscr.
11227 * config/sh/lib1funcs.asm: Add `.align 2' directives before
11228 SHmedia code.
11229 (FMOVD_WORKS): Define on SH5 with FPU.
11230 (set_fpscr): Define on SH5. Remove separate _fpscr_values
11231 setting.
11232 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
11233 _fpscr_values.
11234 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
11235 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
11236 address.
11237 (ia_main_table): Ditto.
11238 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
11239 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11240 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
11241 the definitions from sh.h.
11242 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
11243 TARGET_SH5.
11244 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
11245 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
11246 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11247 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
11248 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
11249 Increment LABEL_NUSES.
d9b3eb63 11250
fa5322fa
AO
11251 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
11252 TARGET_SH5.
11253 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
11254 defined.
11255 * config/sh/elf.h (SIZE_TYPE): Likewise.
11256 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11257 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11258 shcompact_incoming_args): Load switch table addresses using
11259 datalabel.
11260 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11261 (NO_BUILTIN_SIZE_TYPE): Define.
11262 (SIZE_TYPE): Don't define.
11263 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11264 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
11265 definition of __SH5__=32 for -m5-compact-nofpu.
11266 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
11267 ADDR_DIFF_VEC.
11268 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
11269 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
11270 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
11271 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
11272 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
11273 (INSN_LENGTH_ALIGNMENT): Likewise.
11274 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11275 * config/sh/sh.md (call, call_value, sibcall): Simplify
11276 copying of non-branch-target register.
11277 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 11278 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
11279 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
11280 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11281 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
11282 floating-point values as structs.
11283 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
11284 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
11285 general-purpose register.
11286 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
11287 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
11288 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
11289 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
11290 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
11291 (ENCODE_SECTION_INFO): Enclose variables and constants in
11292 DATALABEL unspecs.
11293 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
11294 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
11295 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
11296 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
11297 only for LABEL_REFs. For SYMBOL_REFs, prepend
11298 SH_DATALABEL_ENCODING to the symbol name.
11299 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
11300 convert_mode().
11301 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
11302 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
11303 UNSPEC_DATALABEL.
11304 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
11305 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
11306 (DATALABEL_REF_P): Don't require CONST.
11307 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
11308 REL label.
11309 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
11310 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
11311 right.
11312 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
11313 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
11314 Use shallow_copy_rtx and PUT_MODE to change the mode of
11315 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
11316 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
11317 on SHmedia using GENERAL_REGs.
11318 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11319 bltu_media_i): Fix reversion of conditions.
11320 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
11321 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
11322 * config/sh/sh.c (output_far_jump): Save r13 in macl.
11323 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
11324 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
11325 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
11326 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
11327 (GCC_nested_trampoline): Likewise.
11328 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
11329 * config/sh/sh.c (gen_datalabel_ref): Define.
11330 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
11331 (INITIALIZE_TRAMPOLINE): Likewise.
11332 (TRAMPOLINE_ADJUST_ADDRESS): Define.
11333 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
11334 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
11335 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
11336 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
11337 (ic_invalidate): Adjust for SH5.
11338 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
11339 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
11340 _nested_trampoline.
11341 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
11342 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
11343 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
11344 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
11345 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
11346 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
11347 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
11348 * config/sh/sh.c (target_reg_operand): Match only target-branch
11349 registers and pseudos that aren't virtual registers.
11350 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11351 Copy operands that don't match target_reg_operand to pseudos.
11352 (call_media, call_value_media, sibcall_media): Use
11353 target_reg_operand instead of target_operand.
11354 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 11355 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
11356 * config/sh/sh.c (target_reg_operand): Match hardware registers
11357 other than branch-target registers.
11358 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
11359 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
11360 (fpscr_values) [SH5 == 32]: Define.
11361 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
11362 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11363 Handle function addresses coming in SUBREGs.
11364 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
11365 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11366 shcompact_return_trampoline): Use datalabel where appropriate.
11367 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
11368 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
11369 general-purpose register to copy one branch-target register to
11370 another.
11371 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
11372 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
11373 SYMBOL_REFs with VOIDmode.
11374 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11375 bltu_media_i): New insns.
11376 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
11377 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
11378 (INIT_CUMULATIVE_ARGS): Likewise.
11379 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
11380 * machmode.def (V16SFmode): New mode.
11381 * c-common.c (type_for_mode): Support V2SF and V16SF.
11382 * tree.c (build_common_tree_nodes_2): Likewise.
11383 * tree.h (tree_index): Likewise.
11384 * calls.c (emit_call_1): Take args_so_far. Adjust all
11385 callers. Introduce CALL_POPS_ARGS.
11386 * tm.texi (CALL_POPS_ARGS): Document.
11387 * config/sh/crt1.asm: Implement in SHmedia mode.
11388 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
11389 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
11390 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
11391 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
11392 Implement divsi and udivsi in SHmedia mode. Introduce
11393 SHcompact trampolines.
11394 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
11395 only in SHmedia64.
11396 (regno_reg_class): Rewrite.
11397 (fp_reg_names): Remove.
11398 (sh_register_names, sh_additional_register_names): New.
11399 (print_operand): Added `u'. Support SUBREGs in addresses.
11400 Add parentheses around shifted CONSTs.
11401 (output_file_start): Output .mode and .abi directives.
11402 (shiftcosts, addsubcosts, multcosts): Adjust.
11403 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
11404 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
11405 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
11406 bytes, not registers. Take into account the need for the
11407 SHcompact incoming args trampoline. Adjust all callers.
11408 (sh_expand_prologue): Take stack_regs into account. Call
11409 incoming args trampoline. Keep stack aligned as per SH5 ABI.
11410 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
11411 stack aligned as per SH5 ABI.
11412 (sh_builtin_saveregs): Support SH5 ABI.
11413 (sh_build_va_list, sh_va_start): Likewise.
11414 (initial_elimination_offset): Take alignment into account.
11415 Compute location of PR according to the SH5 stack frame.
11416 (arith_reg_operand): Reject branch-target registers.
11417 (shmedia_6bit_operand): New.
11418 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
11419 (target_reg_operand): Match DImode only. Accept SUBREGs.
11420 (target_operand): New.
11421 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
11422 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
11423 SIBCALL_REGS for SHmedia.
11424 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
11425 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
11426 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
11427 (TARGET_SWITCHES): New SH5 flags.
11428 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
11429 VALID_REGISTER_P to disable unsupported registers.
11430 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
11431 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
11432 (FUNCTION_ARG_PADDING): Define.
11433 (FASTEST_ALIGNMENT): Adjust.
11434 (SH_REGISTER_NAMES_INITIALIZER): New.
11435 (sh_register_names): Declare.
11436 (DEBUG_REGISTER_NAMES): Define.
11437 (REGISTER_NAMES): Define based on sh_register_names.
11438 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
11439 (sh_additional_register_names): Declare.
11440 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
11441 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
11442 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
11443 (REGISTER_NATURAL_MODE): Define.
11444 (FIRST_PSEUDO_REGISTER): Adjust.
11445 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
11446 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
11447 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
11448 (VECTOR_MODE_SUPPORTED_P): Define.
11449 (REG_CLASS_CONTENTS): Adjust.
11450 (SMALL_REGISTER_CLASSES): Adjust.
11451 (REG_ALLOC_ORDER): Adjust.
11452 (INDEX_REG_CLASS): Adjust.
11453 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
11454 (CONST_OK_FOR_LETTER_P): Adjust.
11455 (PREFERRED_RELOAD_CLASS): Adjust.
11456 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
11457 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
11458 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
11459 (FIRST_FP_PARM_REG): Adjust.
11460 (CALL_POPS_ARGS): Define.
11461 (FUNCTION_ARG_REGNO_P): Adjust.
11462 (struct sh_args): New fields.
11463 (GET_SH_ARG_CLASS): Adjust.
11464 (INIT_CUMULATIVE_ARGS): Adjust.
11465 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
11466 (FUNCTION_ARG_ADVANCE): Adjust.
11467 (FUNCTION_ARG): Adjust.
11468 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
11469 (FUNCTION_ARG_CALLEE_COPIES): Define.
11470 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
11471 (STRICT_ARGUMENT_NAMING): Define.
11472 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
11473 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
11474 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
11475 (SETUP_INCOMING_VARARGS): Adjust.
11476 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
11477 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
11478 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
11479 (SUBREG_OK_FOR_INDEX_P): Adjust.
11480 (EXTRA_CONSTRAINT_S): Update.
11481 (EXTRA_CONSTRAINT_T): New.
11482 (EXTRA_CONSTRAINT): Adjust.
11483 (GO_IF_LEGITIMATE_INDEX): Adjust.
11484 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
11485 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
11486 (MOVE_MAX): Adjust.
11487 (MAX_MOVE_MAX): Define.
11488 (Pmode): Adjust.
11489 (CONST_COSTS): Adjust.
11490 (REGISTER_MOVE_COST): Adjust.
11491 (BRANCH_COST): Adjust.
11492 (TEXT_SECTION_ASM_OP): Adjust.
11493 (DBX_REGISTER_NUMBER): Adjust.
11494 (ASM_OUTPUT_DOUBLE_INT): New.
11495 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
11496 (PREDICATE_CODES): Adjust.
11497 (PROMOTE_MODE): Adjust.
11498 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
11499 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
11500 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
11501 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
11502 (DR0_REG, DR2_REG, DR4_REG): Renumber.
11503 (TR0_REG, TR1_REG, TR2_REG): New.
11504 (XD0_REG): Renumber.
11505 (UNSPEC_COMPACT_ARGS): New.
11506 (type): Added pt and ptabs.
11507 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 11508 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
11509 (pt): New function unit.
11510 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
11511 Add whitespace between operands of SHmedia instructions.
11512 (movdicc): Fix.
11513 (adddi3_media, addsi3_media): Adjust constraints.
11514 (subsi3) [SHmedia]: Force operand 1 into a register.
11515 (udivsi3_i1_media, udivsi3_i4_media): New.
11516 (udivsi3): Support SHmedia.
11517 (divsi3_i1_media, divsi3_i4_media): New.
11518 (divsi3): Support SHmedia.
11519 (anddi3, iordi3, xordi3): Adjust constraints.
11520 (zero_extendhidi2, zero_extendqidi2): New.
11521 (extendsidi2, extendhidi2, extendqidi2): New.
11522 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
11523 (pop_e, pop_fpul, pop_4): Likewise.
11524 (movsi_media): Support FP and BT registers.
11525 (movsi_media_nofpu): New. Adjust splits to DImode.
11526 (lduw, ldub): Renamed to zero_extend* above.
11527 (movqi_media): Fix typo.
11528 (movdi_media): Support FP and BT registers.
11529 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
11530 (movdi_const_32bit): New.
11531 (shori_media): Require immediate operand. Use `u' for output.
11532 (movdf_media, movsf_media): Simplified.
11533 (movdf_media_nofpu, movsf_media_nofpu): New.
11534 (movdf, movsf): Adjust
11535 (movv2sf, movv2sf, movv16sf): New.
11536 (beq_media, beq_media_i): Adjust constraints. Don't use
11537 scratch BT register.
11538 (bne_media, bne_media_i): Likewise.
11539 (bgt_media, bgt_media_i): Likewise.
11540 (bge_media, bge_media_i): Likewise.
11541 (bgtu_media, bgtu_media_i): Likewise.
11542 (bgeu_media, bgeu_media_i): Likewise.
11543 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
11544 bunordered): Emit jump insn. Force operands to registers when
11545 needed.
11546 (jump_media, jump): Simplify.
11547 (call_compact, call_compact_rettramp): New.
11548 (call_value_compact, call_value_compact_rettramp): New.
11549 (call_media, call_value_media): Simplify.
11550 (sibcall_compact, sibcall_media): New.
11551 (call, call_value): Adjust for SHmedia and SHcompact.
11552 (sibcall, sibcall_value, untyped_call): Likewise.
11553 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
11554 (indirect_jump): Adjust for SHmedia.
11555 (casesi_jump_media): New.
11556 (nop): Re-enable for SHmedia.
11557 (call_site): Restrict to SH1.
11558 (casesi): Adjust for SHmedia.
11559 (casesi_shift_media, casesi_load_media): New.
11560 (return): Explicitly use PR register. Call return trampoline
11561 on SHcompact.
11562 (return_i): Explicitly use PR register.
11563 (shcompact_return_tramp, shcompact_return_tramp_i): New.
11564 (return_media): Adjust.
11565 (shcompact_incoming_args): New.
11566 (epilogue): Adjust.
11567 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11568 (movstrsi): Disable on SH5.
11569 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
11570 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
11571 (subsf3, subsf3_media): Likewise.
11572 (mulsf3, mulsf3_media, mac_media): Likewise.
11573 (divsf3, divsf3_media): Likewise.
11574 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
11575 (floatsisf2, fux_truncsfsi2): Likewise.
11576 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
11577 constraints.
11578 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
11579 (cmpunsf_media, cmpsf): Likewise.
11580 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
11581 (abssf2, abssf2_media): Likewise.
11582 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
11583 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
11584 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
11585 (floatsidf2, fix_truncdfsi2): Likewise.
11586 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
11587 constraints.
11588 (cmpeqdf_media, cmpgtdf_media): Likewise.
11589 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
11590 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
11591 (absdf2, absdf2_media): Likewise.
11592 (extendsfdf2, extendsfdf2_media): Likewise.
11593 (truncsfdf2, truncsfdf2_media): Likewise.
11594 * config/sh/sh64.h: New file.
11595 * config/sh/t-sh64: New file.
11596 * config/sh/shmedia.h: New file.
11597 * config/sh/ushmedia.h: New file.
11598 * config/sh/sshmedia.h: New file.
11599 * configure.in: Added sh64-*-elf.
11600 * configure: Rebuilt.
11601 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
11602 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
11603 (reg_class_from_letter): Use `b' for TARGET_REGS.
11604 (print_operand): Support `%M', `%m', `AND' and
11605 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
11606 (andcosts): Adjust for SHmedia.
11607 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
11608 Likewise.
11609 (target_reg_operand): New function.
11610 * config/sh/sh-protos.h (target_reg_operand): Declare.
11611 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
11612 FP registers on SH5.
11613 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
11614 on SH4.
11615 (TARGET_REGISTER_P): New macro.
11616 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
11617 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
11618 (EXTRA_CONSTRAINT_S): New macro.
11619 (EXTRA_CONSTRAINT): Adjust.
11620 (FLOAT_TYPE_SIZE): Define to 32.
11621 (Pmode): DImode on SHmedia.
11622 (CONST_COSTS): Adjust for SHmedia literals.
11623 (PREDICATE_CODES): Added target_reg_operand.
11624 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
11625 * config/sh/sh.md: Remove all attrs from SHmedia insns.
11626 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
11627 (cmpdi): Accept SHmedia.
11628 (movdicc_false, movdicc_true): New insns.
11629 (movdicc): New expand.
11630 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
11631 no_new_pseudos.
11632 (addsi3_media): Match `S' constraint.
11633 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
11634 (negdi2): Expand for SHmedia.
11635 (one_cmpldi2): New expand.
11636 (zero_extendsidi2): Change from expand to insn.
11637 (extendsidi2): Add constraints.
11638 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
11639 LD/ST address. Fix SI immediate loading split.
11640 (movhi_media, movqi_media, lduw, ldub): New insns.
11641 (movhi, movqi): Accept SHmedia.
11642 (shori_media, movdi_media): Relax input constraints. Split
11643 symbolic constants.
11644 (movdf_media, movsf_media): New insn. New split to movdi.
11645 (movdf, movsf): Match on SHmedia.
11646 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
11647 bgeu_media): New insns and splits. New insns with `_i' suffix.
11648 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
11649 (bunordered): New expand.
11650 (jump_compact): Renamed from `jump'.
11651 (jump_media): New insn.
11652 (jump): New expand.
11653 (call_media, call_value_media): New insns.
11654 (call, call_value): Adjust.
11655 (indirect_jump_compact): Renamed from `indirect_jump'.
11656 (indirect_jump_media): New insn.
11657 (indirect_jump): New expand.
11658 (untyped_call, return): Accept SHmedia.
11659 (return_media): New insn.
11660 (prologue, epilogue, blockage): Accept SHmedia.
11661 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11662 (sunordered): New expand.
11663 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
11664 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
11665 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
11666 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
11667 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
11668 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
11669 abssf2_media): New insns.
11670 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11671 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11672 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11673 floatdidf2, floatsidf2_media, fix_truncdfdi2,
11674 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11675 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11676 absdf2_media): New insns.
11677 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11678 (extendsfdf2_media, truncdfsf2_media): New insns.
11679 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
11680 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11681 * config/sh/sh.h (CONST_OK_FOR_J): Document.
11682 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11683 * config/sh/sh.md (adddi3): New expand.
11684 (adddi3_media, adddi3z_media): New insns.
11685 (adddi3_compact): Renamed from adddi3.
11686 (addsi3_media): Use add.l r63 to add constant zero.
11687 (subdi3): New expand.
11688 (subdi3_media): New insn.
11689 (subdi3_compact): Renamed from subdi3.
11690 (mulsidi3): New expand.
11691 (mulsidi3_media): New insn.
11692 (mulsidi3_compact): Renamed from mulsidi3.
11693 (umulsidi3): New expand.
11694 (umulsidi3_media): New insn.
11695 (umulsidi3_compact): Renamed from umulsidi3.
11696 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11697 (ashlsi3, ashrsi3, lshrsi3): Use them.
11698 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11699 (ashldi3, ashrdi3, lshrdi3): Use them.
11700 (zero_extendsidi2): New expand.
11701 (extendsidi2): New insn.
11702 (movsi_media): New insn. Split to movdi to load constants.
11703 (movsi): Enable for shmedia.
11704 (movdi_media): New insn. Use shori_media to load wide constants.
11705 (short_media): New insn.
11706 (movdi): Enable for shmedia.
11707 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
11708 * config/sh/sh.h (CPP_SPEC): Added `m5'.
11709 (SUBTARGET_CPP_SPEC): Added `!m5'.
11710 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11711 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
11712 to all other SH variants.
11713 (TARGET_DEFAULT): Set to SH1_BIT.
11714 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11715 (BITS_PER_WORD): Raise to 64 on shmedia.
11716 (MAX_BITS_PER_WORD): Change to 64.
11717 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11718 (INT_TYPE_SIZE): Keep as 32.
11719 (UNITS_PER_WORD): Raise to 8 on shmedia.
11720 (MIN_UNITS_PER_WORD): Keep as 4.
11721 (POINTER_SIZE): Raise to 64 on shmedia.
11722 (CONST_OK_FOR_J): New macro.
11723 (CONST_OK_FOR_LETTER_P): Use it.
11724 (processor_type): Add PROCESSOR_SH5.
11725 * config/sh/sh.md: Conditionalize all expands, insns and
11726 splits to TARGET_SH1.
11727 (cpu): Added sh5.
11728 (addsi3_compact): Renamed from...
11729 (addsi3): Now an expand.
11730 (addsi3_media, subsi3_media): New insns.
11731 (subsi3): Don't negate constants with SHmedia.
11732
e4ec2cac
AO
11733 * hooks.c: New file.
11734 * hooks.h: New file.
11735 * Makefile.in (HOOKS_H): New.
11736 (TARGET_DEF_H): Added $(HOOKS_H).
11737 (OBJS): Added hooks.o.
11738 (cfgcleanup.o, bb-reorder.o): Added target.h.
11739 (hooks.o): Added dependencies.
11740 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11741 (TARGET_INITIALIZER): this.
11742 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11743 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11744 * bb-reorder.c: Include target.h.
11745 (reorder_basic_blocks): Skip if cannot modify jumps.
11746 * cfgcleanup.c: Include target.h.
11747 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11748
246a46e0
CD
117492002-02-08 Chris Demetriou <cgd@broadcom.com>
11750
831c4e87
KC
11751 * config/mips/mips.md (casesi_internal, casesi_internal_di):
11752 Protect jump delay slot instructions with .set noreorder and
11753 .set nomacro.
246a46e0
CD
11754
117552002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
11756
11757 * config/mips/mips.md (casesi_internal_di): Calculate
11758 the index into the target offset table correctly.
11759
fdf473ae
RH
117602002-02-08 Richard Henderson <rth@redhat.com>
11761
11762 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11763 * final.c (output_addr_const): Accept and discard SUBREG.
11764 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11765 mark them unknown instead.
11766 (simplify_subtraction): Handle RTX_UNKNOWN.
11767 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11768
c50503ac
DE
117692002-02-08 David Edelsohn <edelsohn@gnu.org>
11770
11771 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11772
3660d217
RH
117732002-02-08 Richard Henderson <rth@redhat.com>
11774
11775 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11776
56547299
AJ
117772002-02-08 Andreas Jaeger <aj@suse.de>
11778
11779 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11780 * config/i386/t-linux64: New file.
11781
1cf537c5
JJ
117822002-02-08 Jakub Jelinek <jakub@redhat.com>
11783
11784 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11785 * c-parse.in (compstmt): Clear last_expr_type.
11786
5c7f5a5f
RH
117872002-02-07 Richard Henderson <rth@redhat.com>
11788
11789 * loop.c (strength_reduce): Sink final_value when not
11790 eliminating a biv.
11791
b1138bf3
DB
117922002-02-07 David O'Brien <obrien@FreeBSD.org>
11793
11794 * config/sparc/freebsd.h: Fix mismatched spec {.
11795
b6878a45
RH
117962002-02-07 Richard Henderson <rth@redhat.com>
11797
11798 * cfgrtl.c: Include recog.h and insn-config.h.
11799 (keep_with_call_p): Fix general_operand invocation.
11800 * Makefile.in (cfgrtl.o): Update dependencies.
11801
ae19f5ef
KH
118022002-02-07 Kazu Hirata <kazu@hxi.com>
11803
11804 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11805 comment. Accept HImode only if TARGET_H8300.
11806
b137f9fc
EC
118072002-02-07 Eric Christopher <echristo@redhat.com>
11808
11809 * config/mips/crtn.asm: Cleanup #ifdefs.
11810
118112002-02-07 Eric Christopher <echristo@redhat.com>
11812
11813 * config/mips/crti.asm: Add changes for mips16. mips16 uses
11814 register 7 as RA instead of $31.
11815 * config/mips/crtn.asm: Ditto.
11816 * config/mips/mips.c (mips_move_2words): Add case for
11817 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11818 (compute_frame_size): Fix typo.
11819 (save_restore_insns): Ditto. Make documentation about using
11820 register $7 as return register more precise.
11821 (mips_expand_epilogue): Fix comment. Add code to work around not
11822 being able to add to the stack pointer directly.
11823 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11824 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11825 epilogue.
11826
768070a0
TR
118272002-02-07 Tom Rix <trix@redhat.com>
11828
b137f9fc 11829 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
11830 immediates in ldu and stdu DS opcode field.
11831 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11832 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11833 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11834
225909c3
JS
118352002-02-07 Jeff Sturm <jsturm@one-point.com>
11836
11837 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11838 offset for stack bias.
11839
15fae023
L
118402002-02-07 H.J. Lu <hjl@gnu.org>
11841
11842 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11843
fde5badd
UW
118442002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
11845
11846 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11847
162f023b
JH
11848Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
11849
11850 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11851 * i386.c (x86_order_regs_for_local_alloc): New global function.
11852 * i386.h (REG_ALLOC_ORDER): CLeanup.
11853 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11854
9b462c42
RH
118552002-02-07 Richard Henderson <rth@redhat.com>
11856
85aa876c 11857 PR optimization/2463
9b462c42
RH
11858 * alias.c (find_base_value): Recall base values for fixed hard regs.
11859 * loop.c (loop_regs_update): Don't use single_set on non-insns.
11860
06e455a9
AO
118612002-02-07 Alexandre Oliva <aoliva@redhat.com>
11862
11863 * config/mips/mips.md (define_delay) [mips16]: Adjust required
11864 length.
11865
edd1967d
RH
118662002-02-06 Richard Henderson <rth@redhat.com>
11867
11868 PR c/5609
11869 * stmt.c (resolve_operand_name_1): Take more care with mixed
11870 named and unnamed operands.
11871
a2cd028f
JJ
118722002-02-06 Janis Johnson <janis187@us.ibm.com>
11873 Jan Hubicka <jh@suse.cz>
11874
11875 * loop.c (remove_constant_addition): Avoid clobbering a shared
11876 CONST expression.
11877
e8487c04
UW
118782002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11879
11880 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11881 * config/s390/t-linux64: New file.
11882 * config/s390/libgcc-glibc.ver: New file.
11883
58d10f89
UW
118842002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11885
11886 * config/s390/linux64.h: Delete file.
11887 * config/s390/s390x.h: New file.
11888 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11889 as target header file.
11890 * config/s390/linux.h (TARGET_VERSION): Define depending on
11891 DEFAULT_TARGET_64BIT.
11892 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11893 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11894 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11895 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11896 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11897 (EXTRA_SPEC): New define.
11898 * config/s390/s390.h (TARGET_VERSION): Define depending on
11899 DEFAULT_TARGET_64BIT.
11900 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11901
5ce89b2e
JM
119022002-02-06 Jason Merrill <jason@redhat.com>
11903
11904 * c-decl.c (finish_function): Warn about a non-void function with
11905 no return statement and no abnormal exit.
11906 (current_function_returns_abnormally): New variable.
11907 (start_function): Clear it.
11908 (struct c_language_function): Add returns_abnormally.
11909 (push_c_function_context): Save it.
11910 (pop_c_function_context): Restore it.
11911 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11912 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11913 an explicit return type.
11914 * c-tree.h: Declare current_function_returns_abnormally.
11915 (C_FUNCTION_IMPLICIT_INT): New macro.
11916 * c-typeck.c (build_function_call): Set it.
11917 (c_expand_return): Set current_function_returns_value even if the
11918 value is erroneous.
11919
caaf2272
JJ
119202002-02-06 Jakub Jelinek <jakub@redhat.com>
11921
11922 PR c/5420:
11923 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11924 unsafe for reevaluation.
11925
d5129288
JJ
119262002-02-06 Jakub Jelinek <jakub@redhat.com>
11927
11928 PR c/5482:
11929 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11930 EXPR_STMT, but COMPOUND_STMT, recurse into it.
11931
7fb75099
RH
119322002-02-06 Richard Henderson <rth@redhat.com>
11933
11934 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11935 be a general_operand. Dest for function value must be a pseudo.
11936
d3a8b6a6
NC
119372002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11938
11939 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11940 as SYMBOL_REFs from the constant pool.
11941
3c1299c5
AO
119422002-02-06 Alexandre Oliva <aoliva@redhat.com>
11943
11944 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11945 passed by invisible reference.
11946
c2c9f6c9
RH
119472002-02-05 Richard Henderson <rth@redhat.com>
11948
11949 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11950
a824924d
HPN
119512002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
11952
11953 Implement using "base addresses" in insn operands as default.
11954 * config/mmix/mmix.c (mmix_conditional_register_usage): if
11955 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11956 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11957 used to read the rtx value.
11958 (mmix_target_asm_function_epilogue): Fix spacing.
11959 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11960 (mmix_legitimate_address): Ditto.
11961 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11962 should be loaded with a GETA insn. Don't allocate needless extra
11963 char for nul termination and fix misleading comment.
11964 (mmix_print_operand_address): Handle constants if
11965 TARGET_BASE_ADDRESSES.
11966 (mmix_output_register_setting): Use base addressing if
11967 TARGET_BASE_ADDRESSES and the number of insns is 3.
11968 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11969 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11970 to use R as constraint, add LDA to match s.
11971 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11972 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11973 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11974 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11975 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11976 order with other fixed registers.
11977 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11978 other parameter/call-clobbered registers.
11979 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11980 -mbase-addresses, -mno-base-addresses.
11981 (MMIX Options): Ditto.
11982
73c342b9
JDA
119832002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
11984
11985 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11986
ef238c58
AH
119872002-02-06 Aldy Hernandez <aldyh@redhat.com>
11988
831c4e87 11989 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 11990
ad08e60e
JT
119912002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11992
11993 * config/netbsd.h (WCHAR_TYPE): Define.
11994 (WCHAR_TYPE_SIZE): Ditto.
11995 (WINT_TYPE): Ditto.
11996 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11997 (WCHAR_UNSIGNED): Ditto.
11998 (WCHAR_TYPE_SIZE): Ditto.
11999 (WINT_TYPE): Ditto.
12000 * config/arm/netbsd.h: Likewise.
12001 * config/i386/netbsd-elf.h: Likewise.
12002 * config/i386/netbsd.h: Likewise.
12003 * config/m68k/netbsd-elf.h: Likewise.
12004 * config/m68k/netbsd.h: Likewise.
12005 * config/ns32k/netbsd.h: Likewise.
12006 * config/sparc/netbsd.h: Likewise.
12007 * config/vax/netbsd.: Likewise.
12008
f913c102
AO
120092002-02-05 Alexandre Oliva <aoliva@redhat.com>
12010
12011 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
12012 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
12013 (TARGET_INITIALIZER): this.
12014 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
12015 (BITFIELD_NBYTES_LIMITED): Markup fix.
12016 * tree.h (default_ms_bitfield_layout_p): Declare.
12017 (record_layout_info): Added prev_field.
12018 * tree.c (default_ms_bitfield_layout_p): New fn.
12019 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
12020 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
12021 * stor-layout.c: Include target.h.
12022 (start_record_layout): Initialize prev_field.
12023 (place_field): Handle MS bit-field layout, and disregard
12024 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
12025 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
12026 * Makefile.in (stor-layout.o): Adjust dependencies.
12027
c13db5d1
JM
120282002-02-05 Jason Merrill <jason@redhat.com>
12029
c13db5d1
JM
12030 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
12031
4505024e
AJ
120322002-02-05 Andreas Jaeger <aj@suse.de>
12033
12034 * crtstuff.c: Fix comments.
12035
794ad79d
RH
120362002-02-05 Richard Henderson <rth@redhat.com>
12037
2e279a9b
RH
12038 PR fortran/3393
12039 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
12040 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
12041
794ad79d
RH
12042 PR fortran/3392
12043 * config/mips/mips.c (function_arg): Handle TImode.
12044 (function_arg_advance): Likewise.
12045
8f909017
AH
120462002-02-05 Aldy Hernandez <aldyh@redhat.com>
12047
c13db5d1
JM
12048 * config/rs6000/altivec.h (vec_step_help): Rename to
12049 __vec_step_help.
8f909017 12050
66daa9e3
AH
120512002-02-05 Aldy Hernandez <aldyh@redhat.com>
12052
c13db5d1 12053 * config/rs6000/altivec.h: Fix typos.
66daa9e3 12054
2696e97b
JT
120552002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
12056
12057 * config/arm/netbsd.h: Correct a comment.
12058
3deb2758
AH
120592002-02-05 Aldy Hernandez <aldyh@redhat.com>
12060
c13db5d1
JM
12061 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
12062 building void typed builtins.
3deb2758 12063
c13db5d1
JM
12064 * config/rs6000/altivec.h (vec_ld*): Fix typos.
12065 (vec_step): Implement for C++.
3deb2758 12066
c13db5d1 12067Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
12068
12069 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
12070
ebbb0a63
RH
120712002-02-04 Richard Henderson <rth@redhat.com>
12072
12073 * combine.c (nonzero_bits): Re-introduce special case for
12074 sp/fp/ap wrt REGNO_POINTER_ALIGN.
12075
ae4b4a02
AH
120762002-02-05 Aldy Hernandez <aldyh@redhat.com>
12077
c13db5d1
JM
12078 * doc/extend.texi: Warn about unsupported usage of altivec
12079 builtins.
ae4b4a02 12080
c13db5d1
JM
12081 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
12082 (altivec_predicate_*): New.
ae4b4a02 12083
c13db5d1
JM
12084 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
12085 Add C++ version of vec_*() functions.
ae4b4a02 12086
c13db5d1
JM
12087 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
12088 (bdesc_2arg): Remove altivec predicates.
12089 (altivec_expand_builtin): Handle predicates.
12090 (altivec_init_builtins): Handle predicates.
12091 (altivec_expand_predicate_builtin): New.
ae4b4a02 12092
f6bcf44c
JDA
120932002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12094
12095 * pa.c (DO_FRAME_NOTES): Move forward.
12096 (store_reg): Revise handling of frame notes.
12097 (load_reg): Likewise.
12098 (set_reg_plus_d): Likewise.
12099 (hppa_expand_prologue): Likewise.
12100 (hppa_expand_epilogue): Likewise.
b137f9fc 12101
703b0080
JDA
121022002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12103
12104 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
12105
6f9fdf4d
JJ
121062002-02-04 Jakub Jelinek <jakub@redhat.com>
12107
12108 PR c/4475, c++/3780:
12109 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
12110 * c-common.h (SWITCH_TYPE): Define.
12111 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
12112 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
12113 Rename spareness variable to sparseness.
12114 (expand_end_case_type): Renamed from expand_end_case, use orig_type
12115 if non-NULL instead of TREE_TYPE (orig_index).
12116 * tree.h (expand_end_case_type): Renamed from expand_end_case.
12117 (expand_end_case): Define using expand_end_case_type.
12118 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
12119 to expand_end_case_type.
12120 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
12121
79109502
JDA
121222002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12123
12124 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
12125 (BIGGEST_ALIGNMENT): Change to 128.
12126
e62a5987
JDA
121272002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12128
12129 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
12130
219f24a4
JDA
121312002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12132
12133 * pa.md (call_internal_reg_64bit): Remove unused variable.
12134
3cb66fd7
NC
121352002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
12136
12137 * config/arm/arm.h (machine_function): Add uses_anonymous_args
12138 field.
831c4e87 12139 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 12140 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
12141 replace uses with cfun->machine->uses_anonymous_args.
12142 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
12143
12144 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
12145 any geenral register.
b137f9fc 12146
5d5603e2 121472001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
12148
12149 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
12150 the entry block.
12151
563c12b0
RH
121522002-02-04 Richard Henderson <rth@redhat.com>
12153
12154 * combine.c (force_to_mode): Remove STACK_BIAS code.
12155 (nonzero_bits): Likewise. Replace sp/fp special case with
12156 REGNO_POINTER_ALIGN.
12157
12158 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
12159 (HARD_FRAME_POINTER_REGNUM): New.
12160 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
12161 (FIXED_REGS, CALL_USED_REGS): Update.
12162 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
12163 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
12164 (HARD_REGNO_NREGS): Update for SFP.
12165 (STACK_POINTER_OFFSET): Include bias here ...
12166 (FIRST_PARM_OFFSET): ... not here.
12167 (STACK_BIAS): Remove.
12168 (INIT_EXPANDERS): New.
12169 (STARTING_FRAME_OFFSET): Do not include bias.
12170 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
12171 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
12172 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
12173 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
12174 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
12175 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
12176 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
12177 (MUST_SAVE_REGISTER): Likewise.
12178 (sparc_flat_function_prologue): Likewise.
12179 (sparc_flat_function_epilogue): Likewise.
12180 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
12181 (sparc_init_modes): SFP is GENERAL_REGS.
12182 (sparc_builtin_saveregs): SFP does not have bias applied.
12183
14691f8d
RH
121842002-02-04 Richard Henderson <rth@redhat.com>
12185
12186 * config/alpha/alpha.c (current_function_is_thunk): Don't check
12187 current_function_is_thunk.
12188 (alpha_sa_mask): Distinguish between current_function_is_thunk
12189 called from ASM_OUTPUT_MI_THUNK and not.
12190 (alpha_does_function_need_gp): Thunks always need gp.
12191 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12192 (alpha_output_mi_thunk_osf): New.
12193 * config/alpha/alpha-protos.h: Update.
12194 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
12195
af702de8
RS
121962002-02-04 Richard Sandiford <rsandifo@redhat.com>
12197
12198 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
12199 function types, not when they're taken away.
12200
5b1cacd8
JL
12201Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
12202
12203 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
12204 CODE_LABEL and jump table when replacing a table jump with a
12205 simple jump.
12206
f3e9edff
UW
122072002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12208
12209 * config/s390/s390-protos.h (legitimize_la_operand,
12210 s390_secondary_input_reload_class, s390_plus_operand,
12211 s390_expand_plus_operand): Add prototypes.
12212
12213 config/s390/s390.c (s390_secondary_input_reload_class,
12214 s390_plus_operand, s390_expand_plus_operand): New functions.
12215
12216 (struct s390_address): New member 'pointer'.
12217 (s390_decompose_address): Compute it.
12218 (legitimate_la_operand_p): Use it.
12219 (legitimize_la_operand): New function.
12220 (movti, movdi, movdf splitters): Call it.
12221
12222 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
12223 (PREDICATE_CODES): Add s390_plus_operand.
12224
12225 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
12226 (la_ccclobber): Allow GENERAL_REGS as output operand.
12227
12228 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
12229 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
12230 (*la_64, *la_31, reload_indi, reload_insi): ... these.
12231
3c9a08ec
UW
122322002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12233
12234 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
12235 register names for regular asm () construct.
12236
ac300a45
JJ
122372002-02-04 Jakub Jelinek <jakub@redhat.com>
12238
12239 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
12240 registers.
12241
fa852403
JJ
122422002-02-04 Jakub Jelinek <jakub@redhat.com>
12243
12244 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
12245 pat for recog.
12246
fecaac37
HP
122472002-02-04 Hartmut Penner <hpenner@de.ibm.com>
12248
831c4e87
KC
12249 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
12250 constant pool to be identical by string address and index.
fecaac37 12251
10c45943
AG
122522002-02-04 Anthony Green <green@redhat.com>
12253
12254 * output.h (SECTION_OVERRIDE): Define.
12255 * varasm.c (named_section): Obey SECTION_OVERRIDE.
12256
69474c3c
JT
122572002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
12258
12259 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
12260 by existing arm*-*-netbsd* (a.out) target.
12261 (ns32k-*-netbsdelf*): Likewise.
12262 (sparc-*-netbsdelf*): Likewise.
12263 (vax-*-netbsdelf*): Likewise.
12264
939a46f6 122652002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
12266
12267 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
12268 headers and libobjc headers.
12269
122702002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
12271
12272 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
12273 (_mingw.h): Remove duplicate include.
12274
2fd95d71
JT
122752002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
12276
12277 * config.gcc: Set cpu_type to m68k for 68010, as well.
12278 (m68010-*-netbsdelf*): New...
12279 (m68k*-*-netbsdelf*): ...targets.
12280 * config/m68k/netbsd-elf.h: New file.
12281
0ea6f6a0
KH
122822002-02-02 Kazu Hirata <kazu@hxi.com>
12283
12284 * config/h8300/h8300.c (hand_list): Move inside function_arg.
12285
cbf1b2da
KH
122862002-02-02 Kazu Hirata <kazu@hxi.com>
12287
12288 * config/h8300/h8300.c (h8_push_ops): Move inside
12289 h8300_init_once.
12290 (h8_pop_ops): Likewise.
12291 (h8_move_ops): Likewise.
12292
0869f126
KH
122932002-02-02 Kazu Hirata <kazu@hxi.com>
12294
12295 * config/h8300/h8300.c (os_task): Make it static.
12296 (monitor): Likewise.
12297 (pragma_saveall): Likewise.
12298
90e65b70
AO
122992002-02-02 Alexandre Oliva <aoliva@redhat.com>
12300
12301 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
12302 constant is a valid sign-extension for Pmode.
12303
9cbcd983
KH
123042002-02-02 Kazu Hirata <kazu@hxi.com>
12305
12306 * config/h8300/h8300.c: Fix formatting.
12307
7a27efc4
KH
123082002-02-02 Kazu Hirata <kazu@hxi.com>
12309
12310 * config/h8300/h8300.md: Fix formatting.
12311
54175a44
KH
123122002-02-02 Kazu Hirata <kazu@hxi.com>
12313
12314 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
12315 predicates of operands[1]. Split the patterns for each
12316 processor variant.
12317
eceb1755
KH
123182002-02-02 Kazu Hirata <kazu@hxi.com>
12319
12320 * config/h8300/h8300.md (xor patterns): Tighten the predicates
12321 of operands[1] to register_operand.
12322
0fef3fd0
NB
123232002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
12324
12325 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
12326 * cpphash.c (_cpp_init_hashtable): Similarly.
12327 * cppinit.c (cpp_create_reader): Default the signed_char flag.
12328 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
12329 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
12330 (cpp_handle_option): Handle the new options.
12331 * cpplex.c (cpp_interpret_charconst): Use new flag.
12332 * cpplib.h (struct cpp_options): New member signed_char.
12333 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
12334 (cpp_options): Handle -fsigned-char and -funsigned-char.
12335 (static_specs): Remove signed_char_spec.
12336 (do_spec1): Don't handle %c.
12337 * system.h: Poison SIGNED_CHAR_SPEC.
12338 * tradcif.y (yylex): Use flag_signed_char.
12339 * tradcpp.h (flag_signed_char): New.
12340 * tradcpp.c (flag_signed_char): New.
12341 (main): Handle new command-line options.
12342 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
12343config:
12344 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
12345 * avr/avr.h: Remove old comments.
12346 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
12347 (CC1_SPEC): Pass -fsigned-char if -mic*.
12348 (SIGNED_CHAR_SPEC): Remove.
12349doc:
12350 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
12351
0617ed52
EC
123522002-02-01 Eric Christopher <echristo@redhat.com>
12353
12354 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
12355 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
12356 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
12357 (ASM_OUTPUT_REG_POP): Ditto.
12358
dfd48d76
NB
123592002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
12360
12361 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
12362 patch.
12363
4a23409e
JJ
123642002-02-02 Jakub Jelinek <jakub@redhat.com>
12365
12366 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
12367
d3c52658
JJ
123682002-02-02 Jakub Jelinek <jakub@redhat.com>
12369
12370 PR c/5304:
12371 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
12372 unconditionally.
12373
02c5a3bd
JJ
123742002-02-01 Janis Johnson <janis187@us.ibm.com>
12375
12376 * cfganal.c: Include tm_p.h.
12377 (keep_with_call_p): Fix the test that determines if a register holds
12378 the return value of a call.
12379
3968de80
DD
123802002-02-01 DJ Delorie <dj@redhat.com>
12381
12382 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
12383 we are given conflicting registers, switch to the other one we
12384 had allocated for us.
12385 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
12386 as TImode so we know when the "other" register is available.
12387
1338ea6c
DB
123882002-02-01 David O'Brien <obrien@FreeBSD.org>
12389
12390 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
12391 sparc/sparc_bi.h.
12392
f015be23
JJ
123932002-02-01 Janis Johnson <janis187@us.ibm.com>
12394
12395 * cfganal.c (keep_with_call_p): New function.
12396 (flow_call_edges_add): Prevent splitting a block between a call and
12397 a single-set instruction that should be kept in the same block.
12398
63708ffc
CR
123992002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
12400
12401 * doc/install.texi (avr): Update outdated URL.
12402
5ee4950e
AH
124032002-01-30 Andrew Haley <aph@cambridge.redhat.com>
12404
831c4e87
KC
12405 * config/stormy16/stormy16.md (pushqi): New.
12406 (popqi): New.
12407 (pushhi): New.
12408 (pophi): New.
12409 (movhi): Remove stack operands.
12410 (movqi): Likewise.
12411 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
12412 nonimmediate_nonstack_operand.
12413 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
12414 New.
12415 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
12416 New.
5ee4950e 12417
b88c0704
JM
124182002-01-31 Jason Merrill <jason@redhat.com>
12419
12420 * Makefile.in (c-parse.c): Handle .output file.
12421 * objc/Make-lang.in (objc-parse.c): Likewise.
12422
ac282977
AO
124232002-02-01 Alexandre Oliva <aoliva@redhat.com>
12424
12425 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
12426 the -me[lb] option is given. Don't output the default flag
12427 twice.
12428
bebc7e8b
ZW
124292002-01-31 Zack Weinberg <zack@codesourcery.com>
12430
12431 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
12432 the primary source file; this has not been done yet.
12433 * c-decl.c (c_expand_body): Reset input_filename from
12434 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
12435
5809eb5f
KH
124362002-01-31 Kazu Hirata <kazu@hxi.com>
12437
12438 * rtlanal.c (subreg_regno_offset): Do not use
12439 SUBREG_REGNO_OFFSET.
12440 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
12441 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
12442
8512bbd7
JM
124432002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
12444
12445 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
12446 version rather than GNATS version in --version output.
12447
74cb3cc8
RS
124482002-01-31 Richard Sandiford <rsandifo@redhat.com>
12449
12450 * ifcvt.c (noce_process_if_block): Make a copy of the destination
12451 when copying back from a temporary.
12452
874b5b14
RH
124532002-01-30 Richard Henderson <rth@redhat.com>
12454
12455 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
12456 and new_dest are the same.
12457
e803a64b
RH
124582002-01-30 Richard Henderson <rth@redhat.com>
12459
89cf7be5 12460 PR opt/5076
e803a64b
RH
12461 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
12462 * rtl.c (note_insn_name): Update.
12463 * emit-rtl.c (remove_unnecessary_notes): Kill it.
12464 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
12465 to perform loop rotation.
12466 (expand_exit_loop_top_cond): New.
12467 * tree.h (expand_exit_loop_top_cond): Declare it.
12468 * c-semantics.c (genrtl_while_stmt): Use it.
12469 (genrtl_for_stmt): Likewise.
12470
0b51254d
AO
124712002-01-30 Alexandre Oliva <aoliva@redhat.com>
12472
12473 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
12474 arguments to 64-bit boundaries on 64-bit ABIs.
12475
71cef493
SE
124762002-01-30 Steve Ellcey <sje@cup.hp.com>
12477
12478 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
12479
6169e5fd
JM
124802002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
12481
12482 * c-decl.c (grokdeclarator): Handle type being a typedef for an
12483 invalid type.
12484
86f808dc
DB
124852002-01-30 David O'Brien <obrien@FreeBSD.org>
12486
12487 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
12488 * config/sparc/sparc_bi.h: Remove file.
12489 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
12490
5748ebeb
RH
124912002-01-30 Richard Henderson <rth@redhat.com>
12492
12493 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
12494
20d32cc2
ZW
124952002-01-30 Zack Weinberg <zack@codesourcery.com>
12496
12497 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
12498
b88c0704 124992002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
12500
12501 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
12502 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
12503 (reg_save): Use DW_CFA_offset_extended_sf instead.
12504
12505 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
12506
37060e78
JJ
125072002-01-29 Jakub Jelinek <jakub@redhat.com>
12508
12509 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
12510 in cselib_lookup.
12511
d18dba68
AH
125122002-01-29 Aldy Hernandez <aldyh@redhat.com>
12513
bebc7e8b
ZW
12514 * rs6000.md ("*call_value_local32"): Remove constraints.
12515 ("*call_value_local64"): Same.
12516 ("*call_value_indirect_nonlocal_aix32"): Same.
12517 ("*call_value_nonlocal_aix32"): Same.
12518 ("*call_value_indirect_nonlocal_aix64"): Same.
12519 ("*call_value_nonlocal_aix64"): Same.
12520 ("*call_value_nonlocal_sysv"): Same.
d18dba68 12521
80a8aac6
RH
125222002-01-29 Richard Henderson <rth@redhat.com>
12523
12524 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
12525
12beba6f
RH
125262002-01-29 Richard Henderson <rth@redhat.com>
12527
12528 * expr.c (force_operand): Ignore flag_pic for detecting pic
12529 address loads.
12530 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
12531 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
12532 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
12533 instead of open-coded loop.
12534 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
12535 be fixed when in use.
12536
2583081e
RH
125372002-01-29 Richard Henderson <rth@redhat.com>
12538
12539 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
12540 * sched-rgn.c (propagate_deps): Update them.
12541 * sched-deps.c (sched_analyze_insn): Update them. Flush the
12542 clobbers list when either gets too long.
12543
3b8d200e
JJ
125442002-01-29 Jakub Jelinek <jakub@redhat.com>
12545
12546 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
12547 and INDEX_REGS the same as GENERAL_REGS.
12548 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
12549
2d3115eb
NB
125502002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12551
bebc7e8b 12552 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 12553
ecbe845e
UW
125542002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
12555
bebc7e8b 12556 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 12557 movstrsix_31): Remove, replace by ...
bebc7e8b 12558 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
12559 movstrsi_long): ... these. New.
12560 (movstrdi, movstrsi): Adapt.
12561
12562 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 12563 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
12564 Remove unnecessary CC clobber.
12565 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
12566 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
12567
12568 (divmoddi4): Don't partially initialize TImode register.
12569
0b32fca5
GK
125702002-01-29 Geoffrey Keating <geoffk@redhat.com>
12571
12572 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
12573
08ef5437
RH
125742002-01-29 Richard Henderson <rth@redhat.com>
12575
12576 * flow.c (print_rtl_and_abort): Remove.
12577 (print_rtl_and_abort_fcn): Remove.
12578 (verify_local_live_at_start): Use dump_bb instead.
12579 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
12580 (verify_wide_reg_1): Return 2 on mode test failure.
12581
8469e54e
NB
125822002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12583
12584 PR c/3325, c/3326, c/2511, c/3347
12585 * c-decl.c (enum_decl_context): Remove BITFIELD.
12586 (grokdeclarator): Take bitfield width as an input.
12587 Ensure bitfields are given the correct type. Perform
12588 bitfield width validation with build_bitfield_integer_type
12589 rather than waiting for finish_struct.
12590 (grok_typename, grok_typename_in_parm_context, start_decl,
12591 push_parmdecl, grokfield, start_function): Update calls to
12592 grokdeclarator.
12593 (build_bitfield_integer_type): New function.
12594 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 12595 and build_bitfield_integer_type.
8469e54e
NB
12596 * tree.c (build_nonstandard_integer_type): New function.
12597 * tree.h (build_nonstandard_integer_type): New prototype.
12598objc:
12599 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
12600
ffdeea47
JJ
126012002-01-29 Jakub Jelinek <jakub@redhat.com>
12602
12603 PR other/1502:
12604 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
12605 don't ignore unrecognized -W* options.
12606 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
12607 * cpplib.h (cpp_handle_option): Adjust prototype.
12608 * c-decl.c (c_decode_options): Pass 0 as last argument to
12609 cpp_handle_option.
12610
12611 PR c/2896:
12612 * gcc.c (cpp_unique_options): Split from cpp_options.
12613 (cpp_options): Source cpp_unique_options.
12614 (default_compilers): Use cpp_unique_options instead of cpp_options
12615 when used together with cc1_options.
12616 (static_specs): Add cpp_unique_options.
12617 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
12618 when used together with cc1_options.
12619
1a275226
KH
126202002-01-29 Kazu Hirata <kazu@hxi.com>
12621
12622 * config/h8300/h8300-protos.h: Update the prototype of
12623 output_a_shift.
12624 * config/h8300/h8300.c (output_a_shift): Remove an unused
12625 argument 'insn'. Remove redundant code.
12626 * config/h8300/h8300.md: Adust to the new prototype of
12627 output_a_shift.
12628
a11d9dfc
KH
126292002-01-29 Kazu Hirata <kazu@hxi.com>
12630
12631 * config/h8300/h8300-protos.h: Update the prototypes of
12632 emit_a_rotate and expand_a_rotate.
12633 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
12634 first argument to 'enum rtx_code'.
12635 (expand_a_rotate): Likewise.
12636
871f73e3
KH
126372002-01-28 Kazu Hirata <kazu@hxi.com>
12638
12639 * config/h8300/h8300-protos.h: Update the prototype of
12640 output_simode_bld.
12641 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
12642 'log2'.
12643 * config/h8300/h8300.md: Adjust to the new prototype.
12644
5fc4b751
KH
126452002-01-28 Kazu Hirata <kazu@hxi.com>
12646
12647 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
12648 redundant code.
12649
2d67bd7b
JDA
126502002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12651
12652 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
12653 is a fixed register before returning pic_offset_table_rtx.
12654 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
12655 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
12656
5a852b3e
JM
126572002-01-28 Jason Merrill <jason@redhat.com>
12658
6bb28965 12659 * dwarf2.h: Sync with src version.
5a852b3e 12660
3bca17dd
PK
126612002-01-28 Paul Koning <pkoning@equallogic.com>
12662
12663 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
12664 BT_FN_VOID_PTR_VAR.
12665 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
12666 * doc/extend.texi (__builtin_prefetch): Update documentation:
12667 first argument is now const void ptr.
12668
7dc3f8c0
KH
126692002-01-28 Kazu Hirata <kazu@hxi.com>
12670
12671 * config/h8300/h8300-protos.h: Remove an unused prototype.
12672
e83cb5f0
RZ
126732002-01-28 Roman Zippel <zippel@linux-m68k.org>
12674
12675 * toplev.c (lang_independent_init): Round up identifier size.
12676
5721cd84
RE
126772002-01-28 Richard Earnshaw <rearnsha@arm.com>
12678
12679 * config.gcc: Revert previous change.
12680
d534119e
AP
126812002-01-28 Andris Pavenis <pavenis@latnet.lv>
12682
12683 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12684
5a721dab
RE
126852002-01-28 Richard Earnshaw <rearnsha@arm.com>
12686
12687 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12688 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
12689 other non-elf netbsd config frags.
12690 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12691 collect2 will does that.
12692 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12693 shared-lib frobbing will work.
12694
da1775d6
KH
126952002-01-28 Kazu Hirata <kazu@hxi.com>
12696
12697 * config/h8300/h8300.h: Fix formatting.
12698 * config/h8300/h8300.md: Likewise.
12699
8f2e963b
LR
127002002-01-28 Loren J. Rittle <ljrittle@acm.org>
12701
12702 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12703 the old, removed AAA_standards fix.
12704 * fixinc/fixincl.x: Rebuilt.
12705
fdae5767
HPN
127062002-01-28 Hans-Peter Nilsson <hp@axis.com>
12707
12708 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12709 atexit call in crtbegin, hooked in after call to frame_dummy;
12710 register EH before registering __fini__start.
12711
2a2ecb63
AH
127122002-01-28 Aldy Hernandez <aldyh@redhat.com>
12713
12714 * config/rs6000/altivec.h: Remove spurious semicolons.
12715
8ed43adf
KH
127162002-01-27 Kazu Hirata <kazu@hxi.com>
12717
12718 * config/h8300/h8300.md: Replace dead bit extraction patterns
12719 with ones that work.
12720
917afb0c
RK
12721Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12722
12723 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12724 if not STRICT_ALIGNMENT.
12725 * rtl.h (MEM_ALIGN): Likewise.
12726
f70a54cb
CR
127272002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
12728
12729 * doc/invoke.texi (-fdump-translation-unit): Revert this
12730 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
12731
d8fd4914
KH
127322002-01-27 Kazu Hirata <kazu@hxi.com>
12733
12734 * config/h8300/h8300.md (define_constants): New.
12735 (anonymous patterns) Use defined constants appropriately.
12736
15e0e275
KH
127372002-01-27 Kazu Hirata <kazu@hxi.com>
12738
12739 * config/h8300/h8300.c (function_arg): Remove redundant code.
12740
37a0f8a5
RH
127412002-01-26 Richard Henderson <rth@redhat.com>
12742
12743 * sched-deps.c (reg_pending_uses_head): New.
12744 (reg_pending_barrier): Rename from reg_pending_sets_all.
12745 (find_insn_list): Don't mark inline.
12746 (find_insn_mem_list): Remove.
12747 (add_dependence_list, add_dependence_list_and_free): New.
12748 (flush_pending_lists): Replace only_write param with separate
12749 for_read and for_write parameters. Update all callers. Use
12750 add_dependence_list_and_free.
12751 (sched_analyze_1): Do not add reg dependencies here; just set
12752 the pending bits. Use add_dependence_list.
12753 (sched_analyze_2): Likewise.
12754 (sched_analyze_insn): Replace schedule_barrier_found with
12755 reg_pending_barrier. Add all dependencies for pending reg
12756 uses, sets, and clobbers.
12757 (sched_analyze): Don't add reg dependencies for calls, just
12758 set pending bits. Use regs_invalidated_by_call. Treat
12759 sched_before_next_call as a normal list, not a fake insn.
12760 (init_deps): No funny init for sched_before_next_call.
12761 (free_deps): Free pending mems lists. Don't zero reg_last.
12762 (init_deps_global): Init reg_pending_uses.
12763 (finish_deps_global): Free it.
12764 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
12765 (find_insn_mem_list): Remove.
12766 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12767 (propagate_deps): Use them. Zero temp mem lists.
12768
cea3bd3e
RH
127692002-01-26 Richard Henderson <rth@redhat.com>
12770
12771 * Makefile.in (CRTSTUFF_CFLAGS): New.
12772 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12773 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12774 crtstuff.c instead of alpha assembly version.
12775 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12776 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
12777 not FORCE_{INIT,FINI}_SECTION_ALIGN.
12778 (__do_global_dtors_aux): Mark used.
12779 (frame_dummy, __do_global_ctors_aux): Mark used.
12780 (fini_dummy, init_dummy): Remove.
12781
12782 * config/alpha/crtbegin.asm: Remove file.
12783 * config/alpha/crtend.asm: Remove file.
12784 * config/alpha/t-crtbe: Remove file.
12785 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12786 (LINK_EH_SPEC): New.
12787
12788 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12789 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
12790 calling constructors.
12791 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12792
12793 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12794 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12795 CRT_END_INIT_DUMMY hack.
12796 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12797 FORCE_{INIT,FINI}_SECTION_ALIGN.
12798
12799 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12800 FORCE_{INIT,FINI}_SECTION_ALIGN.
12801
12802 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12803 invocation sequence.
12804 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12805
12806 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12807 (FORCE_CODE_SECTION_ALIGN): New.
12808
60ffa0e5
RH
128092002-01-26 Richard Henderson <rth@redhat.com>
12810
12811 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12812
61334ebe
RH
128132002-01-26 Richard Henderson <rth@redhat.com>
12814
12815 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12816 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12817
1d788fb6
KH
128182002-01-26 Kazu Hirata <kazu@hxi.com>
12819
12820 * config/h8300/h8300.md: Remove bit extraction patterns that
12821 cannot be triggered.
12822 Restrict each bit extraction pattern to a variant on which the
12823 pattern is tested.
12824
87611f88
JM
128252002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
12826
12827 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12828
cd74ec59
KH
128292002-01-26 Kazu Hirata <kazu@hxi.com>
12830
12831 * config/h8300/h8300.md: Remove bit test patterns that cannot
12832 be triggered.
12833 Restrict each bit test pattern to a variant on which the
12834 pattern is tested.
12835
93051e0f
KG
128362002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12837
12838 * builtins.c (expand_builtin_strncat): Remove redundant check for
12839 INTEGER_CST.
12840
216c995f
DB
128412002-01-25 David O'Brien <obrien@FreeBSD.org>
12842
12843 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12844 default setting.
12845 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12846 existing setting.
12847
33c7f925
GK
128482002-01-25 Geoffrey Keating <geoffk@redhat.com>
12849
12850 * dbxout.c (dbxout_init): Use assemble_name rather than just
12851 stripping off the first character.
12852 (dbxout_source_file): Likewise.
12853
6cd444b4
DD
128542002-01-25 DJ Delorie <dj@redhat.com>
12855
12856 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12857 using rtx_equal_p, not by comparing pointers.
12858
751551d5
SE
128592002-01-25 Steve Ellcey <sje@cup.hp.com>
12860
12861 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12862 for PIC_OFFSET_TABLE_REGNUM.
12863 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12864
e564e618
DB
128652002-01-25 David O'Brien <obrien@FreeBSD.org>
12866
12867 * config.gcc (x86_64-*-freebsd*): New target.
12868 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12869 value.
12870 (i[34567]86-*-freebsd*): Don't include svr4.h.
12871 * config/i386/freebsd64.h: New file.
12872
ff3aaf17
DR
128732002-01-25 Douglas B Rupp <rupp@gnat.com>
12874
4857d29d
DR
12875 * config/alpha/x-vms (version): Make static.
12876
12877 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12878 in previous checkin.
12879
ff3aaf17
DR
12880 * Makefile.in (install-headers-cp): New target.
12881 * config.gcc (alpha-dec-*vms*): Install headers with
12882 install-headers-cp
12883
48d79c43
JH
12884Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
12885
12886 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12887 avoid it's copies.
12888
995b5904
RK
12889Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12890
12891 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12892 of compare_tree_int.
12893 (expand_builtin_strncat): Likewise.
12894 * c-decl.c (finish_struct): Use tree_low_cst.
12895 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12896 * tree.c (compare_tree_int): Likewise.
12897
75eefe3f
UW
128982002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
12899
12900 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12901 adjustments even if they are implemented by more than two insns.
12902
5a133afd
JH
12903Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
12904
995b5904 12905 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
12906 * df.h (struct ref): Kill B.
12907 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12908
12909 * basic-block.h (PROP_EQUAL_NOTES): New flag.
12910 * flow.c (propagate_one_insn): Use it.
12911 (mark_used_regs): Handle NIL.
12912
ead39bdf 129132002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
12914
12915 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12916 to help folding.
12917
01a2ccd0
DE
129182002-01-25 David Edelsohn <edelsohn@gnu.org>
12919
12920 * rs6000.md (prefetch): Make address V4SI mode so that the address
12921 is restricted to legitimate form for instruction.
12922
fd29f6ea
BW
129232002-01-25 Bob Wilson <bob.wilson@acm.org>
12924
12925 * doc/install.texi (xtensa-*-elf): New target.
12926 (xtensa-*-linux*): New target.
12927 * doc/contrib.texi: Add myself.
12928
55492b32
NC
129292002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
12930
12931 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12932 purpose register to hold an SImode (or smaller) value.
12933
72c7c913
JJ
129342002-01-25 Jakub Jelinek <jakub@redhat.com>
12935
12936 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12937 registry only.
12938 * crtstuff.c: Likewise.
12939
c4df4ceb
KH
129402002-01-25 Kazu Hirata <kazu@hxi.com>
12941
12942 * config/h8300/h8300.md (negation patterns): Tighten
12943 predicates to register_operand.
12944
70e531f5
AH
129452002-01-24 Aldy Hernandez <aldyh@redhat.com>
12946
3bca17dd
PK
12947 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12948 mode, not Pmode.
70e531f5 12949
3bca17dd 12950 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 12951
a4f76ef9
AO
129522002-01-24 Alexandre Oliva <aoliva@redhat.com>
12953
12954 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12955 modes.
12956
9bf25b09
KH
129572002-01-24 Kazu Hirata <kazu@hxi.com>
12958
12959 * config/h8300/h8300.c (print_operand): Remove support for
12960 operand character 'A'.
12961 * config/h8300/h8300.md (three anonymous patterns): Replace
12962 operand character 'A' with either 'T' or 'S'.
12963
974af6a5
KH
129642002-01-24 Kazu Hirata <kazu@hxi.com>
12965
12966 * config/h8300/h8300.c (print_operand): Remove support for
12967 operand character 'U'.
12968
7a5bb7b8
AP
129692002-01-24 Andris Pavenis <pavenis@latnet.lv>
12970
3bca17dd 12971 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 12972
92a4639e
NC
129732002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
12974
12975 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12976 values to be assigned to the stack pointer.
12977
467cb2da
HP
129782002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12979
bebc7e8b 12980 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
12981 to const_double needs to be done right for big-endian systems.
12982
3b6cb920
JM
129832002-01-24 Jason Merrill <jason@redhat.com>
12984
b08dd119 12985 PR c++/2432
3b6cb920
JM
12986 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12987 to can_throw_internal.
12988
f3077311
RH
129892002-01-23 Richard Henderson <rth@redhat.com>
12990
12991 * fold-const.c (fold): Change UINT_MAX test to check vs precision
12992 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
12993
e1d71275
AO
129942002-01-24 Alexandre Oliva <aoliva@redhat.com>
12995
12996 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12997 (symGOT2reg): Use them, then set as GOT value as unchanging.
12998 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
12999 as a temporary, if possible.
13000 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
13001 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
13002
dc271dbe
KH
130032002-01-23 Kazu Hirata <kazu@hxi.com>
13004
13005 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
13006 accept to accept 0x80 as operands[2].
13007
1a9017f9
AO
130082002-01-24 Alexandre Oliva <aoliva@redhat.com>
13009
13010 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
13011
6932f033
RH
130122002-01-23 Richard Henderson <rth@redhat.com>
13013
13014 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
13015
709619d9
AH
130162002-01-23 Aldy Hernandez <aldyh@redhat.com>
13017
3bca17dd
PK
13018 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
13019 (parmlist_or_identifiers_1): Verify that only a parmlist follows
13020 an attribute.
709619d9 13021
3d709fd3
RH
130222002-01-23 Richard Henderson <rth@redhat.com>
13023
13024 * expr.c (move_by_pieces_1): Extend size before negation.
13025
88a446c0
RH
13026 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
13027 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
13028 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
13029 * config/m68k/t-m68kelf: Likewise.
13030
03984308
BW
130312002-01-23 Bob Wilson <bob.wilson@acm.org>
13032
13033 * config/xtensa/elf.h: New file.
13034 * config/xtensa/lib1funcs.asm: New file.
13035 * config/xtensa/lib2funcs.S: New file.
13036 * config/xtensa/linux.h: New file.
13037 * config/xtensa/t-xtensa: New file.
13038 * config/xtensa/xtensa-config.h: New file.
13039 * config/xtensa/xtensa-protos.h: New file.
13040 * config/xtensa/xtensa.c: New file.
13041 * config/xtensa/xtensa.h: New file.
13042 * config/xtensa/xtensa.md: New file.
13043 * config.gcc (xtensa-*-elf*): New target.
13044 (xtensa-*-linux*): New target.
13045 * cse.c (canon_hash): Compare rtx pointers instead of register
13046 numbers. This is required for the Xtensa port.
13047 * integrate.c (copy_insn_list): Handle case where the static
13048 chain is in memory and the memory address has to be copied to
13049 a register.
13050 * doc/invoke.texi (Option Summary): Add Xtensa options.
13051 (Xtensa Options): New node.
13052 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
13053
c3d5c3fa
ZW
130542002-01-23 Zack Weinberg <zack@codesourcery.com>
13055
a63bea75
ZW
13056 * diagnostic.c (internal_error): Do ICE suppression only
13057 when ENABLE_CHECKING is not defined.
13058
c3d5c3fa
ZW
13059 * c-typeck.c (require_complete_type): Return error_mark_node
13060 if type is error_mark_node.
13061
1398974c
JJ
130622002-01-23 Janis Johnson <janis187@us.ibm.com>
13063
13064 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
13065 -Os and issue a warning.
13066
807633e5
ZW
130672002-01-23 Zack Weinberg <zack@codesourcery.com>
13068
13069 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
13070 current (lack of) need for host configuration by hand.
13071
13072 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
13073 references. Documentation of some target macros moved from
13074 hostconfig.texi to tm.texi.
13075
cf8002d0
WC
130762002-01-23 Will Cohen <wcohen@redhat.com>
13077
13078 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
13079 defined.
13080
d1e76310
KH
130812002-01-23 Kazu Hirata <kazu@hxi.com>
13082
13083 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
13084 operand[3].
13085
b2115575
JM
130862002-01-23 Jason Merrill <jason@redhat.com>
13087
f893c16e
JM
13088 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
13089
b2115575
JM
13090 * function.c (assign_parms): Don't put args of inline functions
13091 into registers when not optimizing.
13092
6bacc7b0
NC
130932002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
13094
13095 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
13096 (prologue_use): New pattern.
13097 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
13098 preference to gen_rtx_USE.
13099 (thumb_expand_prologue): Use gen_prologue_use in preference to
13100 gen_rtx_USE.
13101 (thumb_expand_epilogue): Use gen_prologue_use in preference to
13102 gen_rtx_USE.
13103
a415f7bc
HPN
131042002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
13105
13106 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
13107
5372b3fb
NB
131082002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
13109
13110 PR c/3504
13111 * doc/extend.texi: Correct documentation of __alignof__.
13112
bd571ffc
ZW
131132002-01-22 Zack Weinberg <zack@codesourcery.com>
13114
13115 * params.h: Rename arguments of DEFPARAM so that it will be
13116 recognized as a translation keyword.
13117
333c8841
AH
131182002-01-22 Aldy Hernandez <aldyh@redhat.com>
13119
bd571ffc
ZW
13120 * extend.texi: Document altivec functions.
13121 Fix N-bit adjectives in X86 builtin documentation.
333c8841 13122
38979c65
AO
131232002-01-22 Alexandre Oliva <aoliva@redhat.com>
13124
13125 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
13126 auto_inc_dec values.
13127
7458a9f0
RE
131282002-01-22 Richard Earnshaw <rearnsha@arm.com>
13129
13130 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
13131 after backslash.
13132 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
13133
129bd0c4
AO
131342002-01-22 Alexandre Oliva <aoliva@redhat.com>
13135
13136 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
13137
8b9b74a9
RH
131382002-01-22 Richard Henderson <rth@redhat.com>
13139
13140 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
13141 copy_insn not copy_rtx.
13142
d0c9db30
AM
131432002-01-23 Alan Modra <amodra@bigpond.net.au>
13144
13145 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
13146 "nonzero" as that might add "1" bits. Ensure "constop" is
13147 properly sign extened.
13148 (force_to_mode): Tweak for sign extended constop.
13149
1e7e480e
RH
131502002-01-22 Richard Henderson <rth@redhat.com>
13151
13152 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
13153 for_each_rtx instead of assuming we're already looking at the MEM.
13154 (split_small_symbolic_mem_operand): Likewise.
13155 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13156 * config/alpha/alpha.md (small symbolic memory splitters): Update.
13157
131582002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
13159
13160 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
13161 sequence number for the literal.
13162 (divmoddi_internal_er): Likewise.
13163
b7f2fb96
CR
131642002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13165
13166 PR java/4972
13167 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
13168 in LIBICONV variable.
13169 * configure: Regenerated.
13170
f66a0046
KW
131712002-01-22 Krister Walfridsson <cato@df.lth.se>
13172
13173 * dependence.c (build_def_use): Remove array_idx.
13174
e3b0efd1
KW
13175 * dwarfout.c (last_filename): Remove.
13176 (output_compile_unit_die): Remove last_filename.
13177
d8086cbb
RS
131782002-01-22 Roger Sayle <roger@eyesopen.com>
13179 Richard Henderson <rth@redhat.com>
13180
13181 PR opt/3640
13182 * fold-const.c (fold): Optimize unsigned comparisons against
13183 UINT_MAX (and similar unsigned constants).
13184
e8d52ba0
JJ
131852002-01-22 Janis Johnson <janis187@us.ibm.com>
13186
d8086cbb 13187 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 13188 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 13189 against the predicate.
11303d15 13190
e8d52ba0
JJ
13191 PR target/5379
13192 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
13193 for the address operand.
13194
cc7b420e
RH
131952002-01-22 Richard Henderson <rth@redhat.com>
13196
13197 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
13198
816e265a
CR
131992002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13200
13201 PR other/5450
cc7b420e
RH
13202 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
13203 preprocessor flags.
816e265a 13204
7c884404
JT
132052002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
13206
13207 * config.gcc (x86_64-*-netbsd*): New target.
13208 * config/i386/netbsd64.h: New file.
13209
2b672c08
AH
132102002-01-22 Aldy Hernandez <aldyh@redhat.com>
13211
d8086cbb 13212 * regrename.c (kill_value): Fix typo.
2b672c08
AH
13213
132142002-01-22 Aldy Hernandez <aldyh@redhat.com>
13215
d8086cbb 13216 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 13217
d8086cbb 13218 * config/rs6000/rs6000.h: Same.
2b672c08 13219
d8086cbb
RS
13220 * function.c (instantiate_virtual_regs): Remove
13221 STARTING_FRAME_PHASE.
13222 (assign_stack_local_1): Same.
13223 Calculate frame phase.
2b672c08 13224
4b02997f
NC
132252002-01-22 Nick Clifton <nickc@redhat.com>
13226
13227 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
13228 variable declaration to outer scope in order to simplify
13229 future extensions.
13230 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
13231 arm_hard_regno_mode_ok.
13232 * config/arm/arm-protos.h: Add a prototype for
13233 arm_hard_regno_mode_ok.
13234 * config/arm/arm.c (soft_df_operand): Remove now redundant
13235 check for DImode values using IP_REGNUM.
13236 (nonimmediate_soft_df_operand): Remove now redundant check for
13237 DImode values using IP_REGNUM.
13238 (arm_hard_regno_mode_ok): New function. New check: make sure
13239 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
13240
13241 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
13242 note with a USE.
13243 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
13244
8a827ab2
JM
132452002-01-22 Jason Merrill <jason@redhat.com>
13246
13247 * c-semantics.c (genrtl_compound_stmt): Only check nesting
13248 consistency if this COMPOUND_STMT is scoped.
13249
cf403648
KH
132502002-01-22 Kazu Hirata <kazu@hxi.com>
13251
13252 * predict.c: Fix formatting.
13253 * print-tree.c: Likewise.
13254 * protoize.c: Likewise.
13255 * real.h: Likewise.
13256 * rtl.h: Likewise.
13257 * sbitmap.h: Likewise.
13258 * scan.c: Likewise.
13259 * sched-deps.c: Likewise.
13260 * sched-vis.c: Likewise.
13261 * sdbout.c: Likewise.
13262 * sibcall.c: Likewise.
13263 * ssa.c: Likewise.
13264 * ssa-ccp.c: Likewise.
13265 * ssa-dce.c: Likewise.
13266 * stmt.c: Likewise.
13267 * stor-layout.c: Likewise.
13268 * system.h: Likewise.
13269
aea9695c
RK
13270Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13271
a8765ae7
RK
13272 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
13273 if fits in bounds of base type.
13274
aea9695c
RK
13275 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
13276 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
13277 (add_bound_info, default): If can't find a context, make a
13278 SAVE_EXPR.
13279 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
13280
58bf601b
HPN
132812002-01-22 Hans-Peter Nilsson <hp@axis.com>
13282
13283 * c-typeck.c (parser_build_binary_op): If result from
13284 build_binary_op is ERROR_MARK just return error_mark_node without
13285 further processing.
13286
f982f805
JT
132872002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
13288
13289 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
13290 Split a.out-specific bits into...
13291 * config/netbsd-aout.h: ...this.
13292 * config/netbsd-elf.h: New file.
13293 * config/alpha/netbsd-elf.h: Remove.
13294 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
13295 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 13296 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
13297 (ENDFILE_SPEC): Likewise.
13298 (LINK_SPEC): Likewise.
13299 (CPP_SPEC): Likewise.
13300 (ASM_SPEC): Likewise.
13301 (LIB_SPEC): Likewise.
13302 (SWITCH_TAKES_ARG): Likewise.
13303 (TARGET_MEM_FUNCTIONS): Likewise.
13304 (CPP_PREDEFINES): Redefine.
13305 (ASM_FINAL_SPEC): Remove redefinition.
13306 (ASM_COMMENT_START): Redefine.
13307 (FUNCTION_PROFILER): Define.
13308 (TARGET_VERSION): Redefine.
13309 Comment and formatting cleanup.
13310 * config/i386/netbsd.h: Include <netbsd-aout.h>.
13311 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
13312 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
13313 big- or little-endian.
13314 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
13315 * config.gcc (*-*-netbsd*): Add definitions common to all
13316 NetBSD configs.
13317 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
13318 gnu_ld definitions. Add netbsd-elf.h to and remove
13319 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
13320 tmake_file, and don't lose previous tmake_file contents.
13321 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
13322 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
13323 gnu_ld definitions. Add netbsd-elf.h to tm_file.
13324 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
13325 (mipsel-*-netbsd*): Rename this to...
13326 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
13327 mips/little.h to tm_file for mips*el-*.
13328 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
13329 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
13330 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
13331
2e396476
JDA
133322002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
13333
13334 * pa-protos.h (reg_before_reload_operand): New function prototype.
13335 * pa.c (reg_before_reload_operand): New function implementation.
13336 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
13337 contraints to "*m".
13338
3b5708e7
FS
133392002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13340
13341 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
13342
85e79f96
JDA
133432002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
13344
13345 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
13346 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
13347 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
13348 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
13349 (ENDFILE_SPEC): Undefine.
13350 (STARTFILE_SPEC): Redefine for PA.
13351
38abadee
FS
133522002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13353
13354 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
13355
94f1d97c
DJ
133562002-01-21 Daniel Jacobowitz <drow@mvista.com>
13357
13358 * config.gcc: Add entries to supported PowerPC --with-cpu
13359 types.
13360
0333394e
JJ
133612002-01-21 Jakub Jelinek <jakub@redhat.com>
13362
13363 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
13364 true for 64-bit mode only SSE registers in 32-bit mode.
13365
e9d1b155
KH
133662002-01-21 Kazu Hirata <kazu@hxi.com>
13367
13368 * unwind-dw2.c: Fix formatting.
13369 * unwind-dw2-fde.c: Likewise.
13370 * unwind-dw2-fde.h: Likewise.
13371 * unwind-pe.h: Likewise.
13372 * varasm.c: Likewise.
13373 * varray.h: Likewise.
13374
07338cf8
HPN
133752002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
13376
13377 Remove workaround for register stack overwrite bug in mmix.
13378 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
13379 support for TARGET_REG_STACK_FILL_BUG.
13380 * config/mmix/mmix.h: Remove member has_call_without_parameters.
13381 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
13382 Delete.
13383 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
13384 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
13385 -mno-reg-stack-fill-bug-workaround.
13386 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
13387 machine member has_call_without_parameters.
13388 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
13389 -mreg-stack-fill-bug-workaround and
13390 -mno-reg-stack-fill-bug-workaround.
13391 (MMIX Options): Ditto.
13392
7192cbf1
KH
133932002-01-21 Kazu Hirata <kazu@hxi.com>
13394
13395 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
13396 as appropriate.
13397 Remove redundant code.
13398
d1552d7b
JM
133992002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
13400
13401 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
13402 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13403 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13404 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
13405 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
13406 out target macro definitions and non-target-specific comments
13407 mostly taken from old versions of the manual.
13408
ed168e45
KH
134092002-01-20 Kazu Hirata <kazu@hxi.com>
13410
13411 * config/h8300/h8300.h: Fix comment formatting.
13412 * config/ia64/aix.h: Likewise.
13413 * config/ia64/ia64-protos.h: Likewise.
13414 * config/ia64/ia64.c: Likewise.
13415 * config/ia64/ia64.h: Likewise.
13416 * config/ia64/ia64intrin.h: Likewise.
13417 * config/ia64/linux.h: Likewise.
13418 * config/ia64/unwind-aix.c: Likewise.
13419 * config/ia64/unwind-ia64.c: Likewise.
13420
005e3e05
KH
134212002-01-20 Kazu Hirata <kazu@hxi.com>
13422
13423 * config/h8300/h8300.c: Revise comments about shift code.
13424
64bead4c
KH
134252002-01-20 Kazu Hirata <kazu@hxi.com>
13426
13427 * config/h8300/h8300.c (function_arg): Update a comment.
13428
ed863595
KH
134292002-01-20 Kazu Hirata <kazu@hxi.com>
13430
13431 * config/h8300/h8300.md: Update the comments at the beginning
13432 of the file.
13433
5904dc87
KH
134342002-01-20 Kazu Hirata <kazu@hxi.com>
13435
13436 * config/i370/i370.c: Fix comment formatting.
13437 * config/i370/i370.h: Likewise.
13438 * config/i370/i370.md: Likewise.
13439 * config/i370/linux.h: Likewise.
13440
9702143f
RK
13441Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13442
cbafacd1
RK
13443 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
13444
9702143f
RK
13445 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
13446 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
13447 in incomplete case.
13448
6b6996b8
GS
134492002-01-20 Graham Stott <grahams@redhat.com>
13450
13451 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
13452
eab854f6
JDA
134532002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
13454
13455 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
13456
5b029315
TR
134572002-01-19 Tom Rix <trix@redhat.com>
13458
13459 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
13460
1d690052
AH
134612002-01-18 Aldy Hernandez <aldyh@redhat.com>
13462
d8086cbb 13463 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 13464
d8086cbb
RS
13465 * function.c (assign_stack_local_1): Adjust x_frame_offset with
13466 STARTING_FRAME_PHASE.
13467 (STARTING_FRAME_PHASE): New.
13468 (instantiate_virtual_regs): Check saneness of
13469 STARTING_FRAME_PHASE.
1d690052 13470
d8086cbb 13471 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 13472
4dd8c093
AO
134732002-01-19 Alexandre Oliva <aoliva@redhat.com>
13474
13475 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
13476
6f2a28d7
CR
134772002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
13478
13479 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
13480 be used for bootstrapping GCC 3.0.
13481
8763a465
KH
134822002-01-18 Kazu Hirata <kazu@hxi.com>
13483
13484 * config/h8300/h8300.md: Fix an insn length.
13485
3ef42a0c
KH
134862002-01-18 Kazu Hirata <kazu@hxi.com>
13487
13488 * bitmap.h: Fix comment formatting.
13489 * combine.c: Likewise.
13490 * cppfiles.c: Likewise.
13491 * c-pragma.h: Likewise.
13492 * c-typeck.c: Likewise.
13493 * df.c: Likewise.
13494 * dwarf2out.c: Likewise.
13495 * function.c: Likewise.
13496 * gcc.c: Likewise.
13497 * genattrtab.c: Likewise.
13498 * gthr-win32.h: Likewise.
13499 * haifa-sched.c: Likewise.
13500 * predict.c: Likewise.
13501 * rtlanal.c: Likewise.
13502 * rtl.h: Likewise.
13503 * unwind-dw2-fde.h: Likewise.
13504 * unwind-pe.h: Likewise.
13505 * vmsdbgout.c: Likewise.
13506
dd4dc3cd
RK
13507Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13508
13509 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
13510 if type_required and passed decl.
13511
5fb4cf24
AH
135122002-01-17 Aldy Hernandez <aldyh@redhat.com>
13513
d8086cbb
RS
13514 * config.gcc (cpu_type): Include altivec.h in powerpc
13515 extra_headers.
13516 Same for darwin.
5fb4cf24 13517
d8086cbb 13518 * config/rs6000/altivec.h: New.
5fb4cf24 13519
2705baf5
DE
135202002-01-17 David Edelsohn <edelsohn@gnu.org>
13521
13522 * doc/install.texi (*-ibm-aix*): Update assembler and exception
13523 handling information.
13524 * doc/trouble.texi (Interoperation): Add libstdc++ information
13525 for AIX.
13526 (Misunderstandings): Add template instantiation and static template
13527 member information for AIX.
13528
dbd680e1
JM
135292002-01-17 Jason Merrill <jason@redhat.com>
13530
821adc5e
JM
13531 * dbxout.c (dbxout_type): Support const and volatile.
13532
dbd680e1
JM
13533 * except.c (add_partial_entry): Remove backwards compatibility code.
13534 (end_protect_partials): Likewise.
13535
d0e82870
JJ
135362002-01-17 Jakub Jelinek <jakub@redhat.com>
13537
13538 * config/ia64/ia64.md (prologue_use): New.
13539 * config/ia64/ia64.c (ia64_expand_prologue): Use
13540 gen_prologue_use instead of gen_rtx_USE.
13541 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
13542 as CODE_FOR_pred_rel_mutex.
13543 (ia64_sched_reorder2): Likewise.
13544
f9f45c65
EC
135452002-01-16 Eric Christopher <echristo@redhat.com>
13546
13547 * config/mips/r3900.h: Reformat.
13548 (SUBTARGET_CPP_SIZE_SPEC): Remove.
13549 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
13550 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
13551 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
13552 * config/mips/t-elf: Remove mips3 multilib.
13553
c66c8b0e
L
135542002-01-16 H.J. Lu <hjl@gnu.org>
13555
13556 * config/mips/linux.h: Include "mips/abi64.h".
13557
5f083b72
L
135582002-01-16 H.J. Lu <hjl@gnu.org>
13559
13560 * config/mips/t-linux: New.
13561
13562 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
13563
13564 * config/mips/linux.h: Don't include "gofast.h".
13565 (INIT_SUBTARGET_OPTABS): Removed.
13566
af3c90a6
KH
135672002-01-16 Kazu Hirata <kazu@hxi.com>
13568
13569 * config/h8300/h8300-protos.h: Replace emit_a_shift with
13570 output_a_shift.
13571 * config/h8300/h8300.c: Likewise.
13572 * config/h8300/h8300.md: Likewise.
13573
a1bf0a16
KH
135742002-01-16 Kazu Hirata <kazu@hxi.com>
13575
13576 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
13577 spaces after an opcode name.
13578 (pushqi1_h8300hs): Likewise.
13579 (pushhi1_h8300hs): Likewise.
13580
88ab0d1c
KH
135812002-01-16 Kazu Hirata <kazu@hxi.com>
13582
13583 * doc/extend.texi: Replace "option" with "attribute"
13584 appropriately.
13585
51c561e3
JJ
135862002-01-16 Jakub Jelinek <jakub@redhat.com>
13587
13588 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
13589 (and:DI () (const_int -8)).
13590 (split_small_symbolic_mem_operand): Split
13591 (mem (and:DI () (const_int -8)).
13592
b8c1a6b8
JJ
135932002-01-16 Jakub Jelinek <jakub@redhat.com>
13594
13595 PR target/5309:
d8086cbb 13596 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
13597 same way as TYPE_IMUL.
13598 (ultrasparc_sched_reorder): Likewise.
13599 * config/sparc/sparc.md (type): Add comment to update
13600 ultrasparc_sched_reorder when making changes.
13601
1e4e4df2
KH
136022002-01-16 Kazu Hirata <kazu@hxi.com>
13603
13604 * doc/invoke.texi: Change the dump file name of block
13605 reordering pass from 28.bbro to 29.bbro.
13606 Mention -dk option.
13607
14d920c0
JH
13608Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
13609
13610 * i386.md (minsf splitter): Fix pasto.
13611
2e99323f
NC
136122002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13613
13614 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
13615 to frame pointer initialisation instruction.
13616 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
13617 initialisation instruction.
ab8081c1
NC
13618 (soft_df_operand): Do not accept the IP register.
13619 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 13620
c4031a04
JJ
136212002-01-16 Jakub Jelinek <jakub@redhat.com>
13622
13623 PR target/5357:
13624 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
13625 MASK_V8 being both set.
13626
44b8152b
UW
136272002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
13628
13629 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
13630 insn for GOT register; add REG_MAYBE_DEAD notes instead.
13631 config/s390/s390.md (call, call_value): Add GOT register to
13632 CALL_INSN_FUNCTION_USAGE where needed.
13633 (call_exp, call_value_exp): New.
13634
1d6e90ac
NC
136352002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13636
13637 * config/arm/arm.c: General formatting tidy up.
13638
136392002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
13640
13641 * calls.c (try_to_integrate): Use "(size_t)" intermediate
13642 cast and when casting an integer literal to "rtx" pointer.
13643 (expand_call): Likewise.
13644 * flow.c (try_pre_increment): Likewise.
13645 (find_use_as_address): Likewise.
13646 * integrate.c (expand_iline_function): Likewise.
13647 * regmove.c (try_auto_increment): Likewise.
13648
1d6e90ac 136492002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
13650
13651 * sched-rgn.c (passed): Use sbitmap_free.
13652 (header): Likewise.
13653 (inner): Likewise.
13654 (in_queue): Likewise.
13655 (in_stack): Likewise.
13656
31fce3c4
EC
136572002-01-15 Eric Christopher <echristo@redhat.com>
13658
13659 * flow.c (propagate_one_insn): Change to use fatal_insn.
13660
c99d986a
KH
136612002-01-15 Kazu Hirata <kazu@hxi.com>
13662
13663 * expmed.c (extract_fixed_bit_field): Remove unused code.
13664 * system.h: Poison SLOW_ZERO_EXTEND.
13665 * doc/tm.texi: Remove.
13666 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
13667 * config/arm/arm.h: Likewise.
13668 * config/avr/avr.h: Likewise.
13669 * config/clipper/clipper.h: Likewise.
13670 * config/convex/convex.h: Likewise.
13671 * config/d30v/d30v.h: Likewise.
13672 * config/dsp16xx/dsp16xx.h: Likewise.
13673 * config/elxsi/elxsi.h: Likewise.
13674 * config/fr30/fr30.h: Likewise.
13675 * config/h8300/h8300.h: Likewise.
13676 * config/i370/i370.h: Likewise.
13677 * config/i386/i386.h: Likewise.
13678 * config/m68k/m68k.h: Likewise.
13679 * config/mips/mips.h: Likewise.
13680 * config/ns32k/ns32k.h: Likewise.
13681 * config/pdp11/pdp11.h: Likewise.
13682 * config/pj/pj.h: Likewise.
13683 * config/s390/s390.h: Likewise.
13684 * config/sh/sh.h: Likewise.
13685 * config/stormy16/stormy16.h: Likewise.
13686 * config/v850/v850.h: Likewise.
13687 * config/vax/vax.h: Likewise.
13688 * config/we32k/we32k.h: Likewise.
13689
acfab996
AH
136902002-01-15 Aldy Hernandez <aldyh@redhat.com>
13691
d8086cbb
RS
13692 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13693 (altivec_lvsl): Change constraint to b.
13694 (altivec_lvsr): Same.
13695 (altivec_lvebx): Same.
13696 (altivec_lvehx): Same.
13697 (altivec_lvewx): Same.
13698 (altivec_lvxl): Same.
13699 (altivec_lvx): Same.
13700 (altivec_stvx): Add parallel.
13701 (altivec_stvxl): Same.
13702 (altivec_stvehx): Same.
13703 (altivec_stvebx): Same.
13704 (altivec_stvebx): Same.
acfab996 13705
5e505bc9
AH
137062002-01-15 Aldy Hernandez <aldyh@redhat.com>
13707
d8086cbb 13708 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 13709
d8086cbb 13710 * config/rs6000/altivec.h: Delete.
5e505bc9 13711
d8086cbb 13712 * config/rs6000/altivec-defs.h: Add.
5e505bc9 13713
5c41fdfb
JDA
137142002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
13715
13716 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13717 and UMOD modes.
13718
13719 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13720 less than or equal to eight bytes.
13721
13722 * vax.md (andsi3): Remove constraints and change SET destination
13723 operand type to nonimmediate_operand.
13724 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
13725 when it is a CONST_INT.
13726
de097a2d
JM
137272002-01-15 Jason Merrill <jason@redhat.com>
13728
13729 * c-common.def (FILE_STMT): New code.
13730 * c-common.c (statement_code_p): It's a statement.
13731 * c-common.h (stmt_tree_s): Add x_last_filename.
13732 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13733 (last_expr_filename): New macro.
13734 * c-semantics.c (begin_stmt_tree): Initialize it.
13735 (add_stmt): If the filename changed, also insert a
13736 FILE_STMT.
13737 (expand_stmt): Handle seeing one.
13738
4a913dd6
EC
137392002-01-15 Eric Christopher <echristo@redhat.com>
13740
13741 * flow.c (propagate_one_insn): Add error message and print out
13742 insn for debugging.
13743
006946e4
JM
137442002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13745
13746 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13747 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13748 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13749 TRAMPOLINE_ALIGNMENT.
13750 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
13751 to be in bits.
13752 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13753 PCC_BITFIELD_TYPE_MATTERS.
13754 * config/interix.h (STDC_VALUE): Remove. Use
13755 STDC_0_IN_SYSTEM_HEADERS.
13756 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13757 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13758 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13759
751a1458
CR
137602002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
13761
13762 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13763 not work on this platform currently.
13764
57771fe8
JM
137652002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13766
13767 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13768 readonly_warning in _().
13769
0e83ceb1 137702002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 13771
0e83ceb1 13772 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 13773
8e2e89f7
KH
137742002-01-15 Kazu Hirata <kazu@hxi.com>
13775
0e83ceb1
DR
13776 * config/h8300/h8300.c (print_operand): Remove support for
13777 unused operand characters.
13778
8e2e89f7
KH
13779 * read-rtl.c: Fix formatting.
13780 * real.c: Likewise.
13781 * recog.c: Likewise.
13782 * regclass.c: Likewise.
13783 * regmove.c: Likewise.
13784 * reg-stack.c: Likewise.
13785 * reload1.c: Likewise.
13786 * rtlanal.c: Likewise.
13787
b531087a
KH
137882002-01-15 Kazu Hirata <kazu@hxi.com>
13789
13790 * config/i386/i386.c: Fix formatting.
13791
7c94ce7f
JJ
137922002-01-15 Jakub Jelinek <jakub@redhat.com>
13793
13794 * c-typeck.c (process_init_element): Don't save_expr
13795 COMPOUND_LITERAL_EXPR if just its initializer will be used.
13796
6041bf2f
DE
137972002-01-15 David Edelsohn <edelsohn@gnu.org>
13798
13799 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13800 emit optional traceback table if optimize_size or TARGET_ELF.
13801 * config/rs6000/rs6000.md (prefetch): New.
13802
8559c8c0
AJ
138032002-01-15 Andreas Jaeger <aj@suse.de>
13804
13805 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13806
70f122f2
KH
138072002-01-15 Kazu Hirata <kazu@hxi.com>
13808
13809 * mips-tfile.c: Fix formatting.
13810
6a7b4ca6
JH
13811Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
13812
13813 * unroll.c (final_reg_note_copy): Fix previous commit.
13814
e7afe229
KH
138152002-01-14 Kazu Hirata <kazu@hxi.com>
13816
13817 * config/h8300/h8300-protos.h: Remove the prototype for
13818 eq_operator.
13819 * config/h8300/h8300.c (eq_operator): Remove.
13820
7d378549
RH
138212002-01-14 Richard Henderson <rth@redhat.com>
13822
13823 * config/i386/i386.md (prefetch): Tidy.
13824 (prefetch_3dnow): Fix locality operand.
13825
ab093b81
RH
138262002-01-14 Richard Henderson <rth@redhat.com>
13827
13828 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13829 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13830
d300f51f
HPN
138312002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
13832
13833 * reload1.c (reload_combine): Pass reg_sum replacement through
13834 copy_rtx in loop performing multiple changes.
13835
655dd289
JJ
138362002-01-14 Jakub Jelinek <jakub@redhat.com>
13837
13838 * except.c (remove_unreachable_regions): New.
13839 (free_eh_status): Clear exception_handler_labels.
13840 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13841 (find_exception_handler_labels): Don't add the same label more than
13842 once.
13843 (remove_exception_handler_label): Don't die if
13844 find_exception_handler_labels hasn't been called for the current
13845 function yet.
13846
1fba46a7
JH
13847Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
13848
13849 * toplev.c (rest_of_compilation): Rebuild jump labels after
13850 gcse.
13851
0975678f
JM
138522002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
13853
13854 * doc/extend.texi: Move documentation of X86 built-in functions
13855 here.
13856 * doc/invoke.texi: From here.
13857 * doc/sourcebuild.texi: Document location of documentation for
13858 machine built-in functions.
13859
969815c7
CF
138602002-01-13 Christopher Faylor <cgf@redhat.com>
13861
13862 * cppfiles.c (TEST_THRESHOLD): New macro.
13863 (SHOULD_MMAP): Ditto.
13864 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13865 be used.
13866
494c950b
JH
13867Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
13868
13869 * unroll.c (final_reg_note_copy): Properly handle
13870 REG_LABEL
13871 (unroll_loops): Fix LOOP_CONDITION heuristics.
13872
69a0611f
GK
138732002-01-14 Geoffrey Keating <geoffk@redhat.com>
13874
13875 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13876 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13877
b90e45ae
JH
13878Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
13879
13880 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13881 threaded loop.
13882
8377288b
TR
138832002-01-14 Tom Rix <trix@redhat.com>
13884
13885 * config/rs6000/rs6000.md: Fix typo with sradi.
13886
9f37ccb1
UW
138872002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
13888
13889 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13890 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13891 (clrstrdi, clrstrsi): Adapt callers.
13892
13893 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13894
8559c8c0 13895 (movti splitter): Never use register 0 as base register.
9f37ccb1 13896
6c2d03d0
HP
138972002-01-14 Hartmut Penner <hpenner@de.ibm.com>
13898
8559c8c0
AJ
13899 * combine.c (simplify_shift_const): Always generate new rtx
13900 for shift expression instead of reusing given expression.
6c2d03d0 13901
d3e98208
RK
13902Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13903
13904 * config/alpha/alpha.c (alpha_expand_mov): Don't call
13905 alpha_legitimize_address unless mode is Pmode.
13906
9f339dde
GK
139072002-01-13 Geoffrey Keating <geoffk@redhat.com>
13908
13909 * doc/md.texi (Modifiers): Document the '*' constraint for the
13910 user.
13911
13912 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13913 * doc/extend.texi (Function Attributes): 'interrupt' is valid
13914 for xstormy16 too.
13915
02a10130
RH
139162002-01-13 Richard Henderson <rth@redhat.com>
13917
13918 * reload.c (find_reloads): Use a hard reg destination as reload reg
13919 for an input reload of the source.
13920
61d47787
GP
139212002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13922
13923 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13924 more generic.
13925
f0df8029
DR
13926Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
13927
13928 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13929 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13930
d2a37256
DR
13931 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13932
a9e8a5ee
RK
13933Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13934
13935 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13936
bc06712d
TR
139372002-01-12 Tom Rix <trix@redhat.com>
13938
8559c8c0 13939 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
13940 TARGET_POWERPC64.
13941
7cbe9bb7
RH
139422002-01-12 Richard Henderson <rth@redhat.com>
13943
38b29e64
RH
13944 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13945
58605ba0
RH
13946 * doc/invoke.texi: Update Alpha options.
13947
7cbe9bb7
RH
13948 * doc/invoke.texi: Update i386 built-in function lists.
13949
9d560860
JH
13950Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
13951
13952 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13953 referencing outside.
13954
bb93b973
RK
13955Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13956
13957 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13958 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13959 offsets, and change line folding.
13960 * optabs.c (expand_binop): Remove warnings.
13961 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 13962
f9f6b7df
GS
139632002-01-12 Graham Stott <grahams@redhat.com>
13964
13965 * attribs.c (handle_deprecated_attribute): constify WHAT.
13966 * diagnostic.c (warn_deprecated_use): Add braces, fixes
13967 dangling else warning and constify WHAT.
13968 * except.h (struct function, struct inline_remap): Move
13969 struct tag forward defs before all prototypes.
13970 (duplicate_eh_regions): Whitespace.
13971
4a692617
NC
139722002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
13973
13974 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13975 MODE_BASE_REG_CLASS.
13976 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13977
e37af218
RH
139782002-01-12 Richard Henderson <rth@redhat.com>
13979
13980 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13981 (ix86_expand_vector_move): New.
13982 (bdesc_2arg): Remove andps, andnps, orps, xorps.
13983 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
13984 Remove old prefetch builtins. Special case the logicals removed above.
13985 (ix86_expand_builtin): Likewise.
13986 (safe_vector_operand): Use V4SFmode, not TImode.
13987 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
13988 (ix86_expand_timode_binop_builtin): New.
13989 * config/i386/i386-protos.h: Update.
13990 * config/i386/i386.h (enum ix86_builtins): Update.
13991 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13992 Use ix86_expand_vector_move in vector move expanders.
13993 (movti_internal, movti_rex64): Add xorps alternative.
13994 (sse_clrv4sf): Rename and adjust from sse_clrti.
13995 (prefetch): Don't work so hard.
13996 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13997 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13998 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13999
6f1a6c5b
RH
140002002-01-11 Richard Henderson <rth@redhat.com>
14001
14002 * config/i386/mmintrin.h: New file.
14003 * config/i386/xmmintrin.h: New file.
14004 * config.gcc (i?86-*-*): Add extra_headers.
14005 * simplify-rtx.c (simplify_unary_operation): Handle saturating
14006 truncation codes.
14007 (simplify_binary_operation): Handle saturating arithmetic codes.
14008 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
14009 not the lowpart subreg.
14010 (ix86_expand_builtin): Return a TImode dummy register instead of 0
14011 on error.
14012 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
14013
cdb574d3
MH
140142002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14015
14016 * conflict.c (conflict_graph_compute): Free regsets when finished.
14017 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 14018
cf11ac55
HB
140192002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14020
14021 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
14022 every where we allocate a register.
14023
76ac938b
MH
140242002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14025
14026 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
14027 * lcm.c (compute_earliest, compute_farthest): Likewise.
14028
a84b4898
JJ
140292002-01-11 Janis Johnson <janis187@us.ibm.com>
14030
14031 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
14032
aaef1c12
JJ
140332002-01-11 Janis Johnson <janis187@us.ibm.com>
14034
14035 * doc/rtl.texi (Insns): Fix 2 typos.
14036
5d22c1a5
JM
140372002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
14038
14039 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
14040 options. Use @table @gcctabopt for MMIX options. Add index
14041 entries for MMIX options. Start new paragraph with first
14042 heading of the machine-dependent options.
14043
3e92902c
CR
140442002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
14045
14046 PR other/5299
14047 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
14048 * combine.c (force_to_mode): Same.
14049 * reload1.c (clear_reload_reg_in_use): Same.
14050
96ae8197
NC
140512002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
14052
14053 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
14054 and 'subtargets'.
14055
9b780582
AJ
140562002-01-11 Andreas Jaeger <aj@suse.de>,
14057 Brad Lucier <lucier@math.purdue.edu>
14058
14059 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
14060 mcpu.
14061
12300dad
DR
14062Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
14063
14064 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
14065 Protect with IN_LIBGCC.
14066 (LINK_EH_SPEC): Add required trailing space.
14067
27511a9a
NP
14068Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
14069
9b780582 14070 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
14071 under the filename which contains them.
14072 (check_identifier, finish_decl_top_level,
14073 lookup_name_current_level_global, shadow_record_fields): Remove.
14074
4daeab16
AJ
140752002-01-11 Andreas Jaeger <aj@suse.de>
14076
14077 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
14078 march.
14079
40571d67
RH
140802002-01-10 Richard Henderson <rth@redhat.com>
14081
14082 * config/alpha/alpha.c (print_operand): Add 'J'.
14083 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
14084 new operand with the sequence number for the lituse. When splitting
14085 the insns, use gen_movdi_er_high_g and generate a sequence number.
14086 (gen_movdi_er_high_g): Print the sequence number if non-zero.
14087
6525c0e7
AH
140882002-01-10 Aldy Hernandez <aldyh@redhat.com>
14089
d8086cbb
RS
14090 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
14091 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
14092 stvxl.
14093 (altivec_expand_builtin): Same.
14094 (altivec_expand_stv_builtin): New.
14095
14096 * config/rs6000/rs6000.h (rs6000_builtins): Same.
14097
14098 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
14099 ("altivec_lvehx"): New.
14100 ("altivec_lvewx"): New.
14101 ("altivec_lvxl"): New.
14102 ("altivec_lvx"): New.
14103 ("altivec_stvx"): New.
14104 ("altivec_stvebx"): New.
14105 ("altivec_stvehx"): New.
14106 ("altivec_stvewx"): New.
14107 ("altivec_stvxl"): New.
6525c0e7 14108
cda94cbb
RH
141092002-01-10 Richard Henderson <rth@redhat.com>
14110
14111 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
14112 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
14113 care not to delete instructions twice.
14114
df2c9a44
ZW
141152002-01-10 Zack Weinberg <zack@codesourcery.com>
14116
14117 * toplev.c: Don't declare environ (it's not used anywhere).
14118 * configure.in: Don't check for declaration of environ.
14119 * config/i386/xm-mingw32.h: Don't #define environ.
14120 * config.in, configure: Regenerate.
14121
5dd8a9b1
ZW
141222002-01-10 Zack Weinberg <zack@codesourcery.com>
14123
14124 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
14125 * configure: Regenerate.
14126
14127 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
14128 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
14129 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
14130 alpha/xm-vms.h.
14131 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
14132 LIMITS_H_TEST here, not in m68k/x-next.
14133 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
14134 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
14135
14136 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
14137 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
14138 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
14139
14140 * config/i386/x-djgpp: Renamed i386/t-djgpp.
14141 * config/m88k/x-dolph: Renamed m88k/t-dolph.
14142 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
14143 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
14144 replacement of quadlib.asm with quadlib.c.
14145
14146 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
14147 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
14148 config/rs6000/xm-beos.h: Delete file.
14149
14150 * config.gcc: Update to match above changes.
14151
d10dd44c
KH
141522002-01-10 Kazu Hirata <kazu@hxi.com>
14153
14154 * config/h8300/h8300.h: Fix comment typos.
14155 * config/h8300/h8300.md: Likewise.
14156 * config/h8300/lib1funcs.asm: Likewise.
14157
04894c5a
DJ
141582002-01-10 Dale Johannesen <dalej@apple.com>
14159
14160 PR optimization/5269
14161 * unroll.c (precondition_loop_p): Make *increment be the correct
14162 sign when n_iterations known, to avoid confusing caller.
14163
adc9fe67
KH
141642002-01-10 Kazu Hirata <kazu@hxi.com>
14165
14166 * doc/extend.texi (deprecated): Fix a typo.
14167
b446e5a2
JH
14168Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
14169
14170 * basic-block.h (update_br_prob_note): Declare.
14171 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
14172 (try_forward_edges): Care negative frequencies and update note.
14173 (outgoing_edges_match): Tweek conditional merging heuristics.
14174 (try_crossjump_to_edge): use update_br_prob_note.
14175 * cfglayout.c (fixup_reorder_chain): Likewise.
14176 * cfrtl.c (update_br_prob_note): New.
14177 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
14178
14179 * i386.c (ix86_decompose_address): Return -1 if address contains
14180 shift.
14181 (legitimate_address_p): Require ix86_decompose_address to return 1.
14182
14183 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
14184 (cprop_insn): Likewise.
14185
a01da83b
KH
141862002-01-10 Kazu Hirata <kazu@hxi.com>
14187
14188 * toplev.c: Fix formatting.
14189 * tree.c: Likewise.
14190 * tree-dump.c: Likewise.
14191 * unroll.c: Likewise.
14192 * unwind-dw2.c: Likewise.
14193 * unwind-dw2-fde.c: Likewise.
14194 * unwind-dw2-fde-glibc.c: Likewise.
14195 * unwind-sjlj.c: Likewise.
14196
9f85bca7
JM
141972002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14198
14199 * doc/invoke.texi: Document PDP-11 options.
14200
f48f56b1
KH
142012002-01-10 Kazu Hirata <kazu@hxi.com>
14202
14203 * config/h8300/h8300.h: Fix formatting.
14204
ead39bdf 142052002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
14206
14207 Add __attribute__ ((deprecated)).
14208 * extend.texi: Document __attribute__ ((deprecated)).
14209 * invoke.texi: Document -Wno-deprecated-declarations.
14210 * testsuite/g++.dg/other/deprecated.C: New C++ test.
14211 * testsuite/gcc.dg/deprecated.c: New C test.
14212 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
14213 (c_common_attribute_table): Add "deprecated" entry.
14214 (handle_deprecated_attribute): New function.
14215 * c-decl.c (deprecated_states): New enum.
14216 deprecated_state: State of "deprecated" handling.
14217 (start_decl): Set deprecated_state based on attributes.
14218 (grokdeclarator): Test for deprecated uses, propagate attribute.
14219 * c-typeck.c (build_component_ref): Test for deprecated fields.
14220 (build_external_ref): Test for deprecated primaries.
14221 * diagnostic.c (warn_deprecated_use) New function to issue
14222 warnings about __attribute__ ((depricated)) references.
14223 * flags.h (warn_deprecated_decl): Extern declared for
14224 -W[no-]deprecated-declarations option.
14225 * print-tree.c (print_node): Show deprecated flag status.
14226 * toplev.c (warn_deprecated_decl): Defined.
14227 (W_options): Added "deprecated-declaration".
14228 * toplev.h (warn_deprecated_use): Extern declared.
14229 * tree.h (struct tree_common): Define deprecated_flag.
14230 (TREE_DEPRECATED): New macro to access flag.
14231 * cp/call.c (build_call): Test for deprecated calls.
14232 * cp/class.c (add_implicitly_declared_members): Set global
14233 flag to tell grokdeclarator to not issue deprecated warnings.
14234 * cp/cp-tree.h: Add extern for adding_implicit_members.
14235 * cp/decl.c (deprecated_states): New enum.
14236 (start_decl): Set deprecated_state based on attributes.
14237 (grokdeclarator): Test for deprecated uses, propagate attribute.
14238 * cp/lex.c (do_identifier): Test for deprecated primaries.
14239 * cp/typeck.c (build_component_ref): Test for deprecated fields.
14240
ead39bdf 142412002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
14242
14243 Fix to assign attributes to inline member functions.
14244 * cp/decl.c (start_method): Handle attrlist.
14245
47073a38
KH
142462002-01-10 Kazu Hirata <kazu@hxi.com>
14247
14248 * combine.c (expand_field_assignment): Use subreg_lsb().
14249
d288e53d
DE
142502002-01-10 David Edelsohn <edelsohn@gnu.org>
14251
14252 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
14253 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
14254 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
14255 Recurse for any operand of AND as long as constant is non-zero.
14256
08a02ffa
KH
142572002-01-10 Kazu Hirata <kazu@hxi.com>
14258
14259 * config/h8300/h8300.md: Remove constraints from expanders.
14260
c203e7fe
KH
142612002-01-10 Kazu Hirata <kazu@hxi.com>
14262
14263 * varasm.c: Fix formatting.
14264 * varray.c: Likewise.
14265 * vmsdbgout.c: Likewise.
14266 * xcoffout.c: Likewise.
14267
bcb3bc6d
JH
14268Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
14269
14270 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 14271 update edge probabilities to match.
bcb3bc6d 14272
0a553c7e
JM
142732002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14274
14275 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
14276 dependencies.
14277 * doc/languages.texi, doc/sourcebuild.texi: New files.
14278 * doc/configfiles.texi: Make a subsubsection. Update.
14279 * doc/configterms.texi: Add @node. Remove warning that this isn't
14280 instructions for building GCC.
14281 * doc/makefile.texi: Make a subsection.
14282 * doc/gccint.texi: Update.
14283
adc7fcb8
JH
14284Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
14285
14286 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
14287
5a4dd0b3
NP
14288Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
14289
14290 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
14291
3987b9db
JH
14292Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
14293
14294 * optabs.c (expand_fix): Look for wider integer modes first.
14295
14296 * i386.md (mov?f): Avoid the fake const double trick for medium
14297 memory model.
14298 (min?f*/max?f*): Prohibit memory operands for i387 variant.
14299 (fop_df_4): Disable for SSE compilation.
14300
ceb15948 143012002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
14302
14303 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 14304 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 14305
e1623399
RH
143062002-01-10 Richard Henderson <rth@redhat.com>
14307
14308 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
14309
c4abb293
RH
143102002-01-10 Richard Henderson <rth@redhat.com>
14311
14312 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
14313 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
14314
d2604ae9
KH
143152002-01-10 Kazu Hirata <kazu@hxi.com>
14316
14317 * combine.c (can_combine_p): Fix a comment typo.
14318
766c7ad1
ZW
143192002-01-09 Zack Weinberg <zack@codesourcery.com>
14320
14321 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
14322 empty list correctly. Change loop index $t to $f for
14323 consistency with rest of Makefile.
14324
95385cbb
AH
143252002-01-08 Aldy Hernandez <aldyh@redhat.com>
14326
14327 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
14328 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14329
14330 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
14331 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
14332 (altivec_init_builtins): Same.
14333 (altivec_expand_unop_builtin): Return NULL_RTX on error.
14334 (altivec_expand_binop_builtin): Same.
14335 (altivec_expand_ternop_builtin): Same.
14336 (bdesc_dst): New.
14337
14338 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
14339 ("altivec_vctuxs"): Fix typo.
14340 ("altivec_vnmsubfp"): Same.
14341 ("altivec_dssall"): New.
14342 ("altivec_mfvscr"): New.
14343 ("altivec_dss"): New.
14344 ("altivec_lvsl"): New.
14345 ("altivec_lvsr"): New.
14346 ("altivec_dstt"): New.
14347 ("altivec_dstst"): New.
14348 ("altivec_dststt"): New.
14349 ("altivec_dst"): New.
14350
14351 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
14352 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14353
e4ac76b4
RH
143542002-01-09 Richard Henderson <rth@redhat.com>
14355
14356 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
14357
c893e4a4
HPN
143582002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
14359
14360 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
14361 function.
14362 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
14363 prototype.
7387c700 14364 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 14365
f4f4d0f8
KH
143662002-01-09 Kazu Hirata <kazu@hxi.com>
14367
14368 * read-rtl.c: Fix formatting.
14369 * real.c: Likewise.
14370 * regclass.c: Likewise.
14371 * regrename.c: Likewise.
14372 * reg-stack.c: Likewise.
14373 * reload1.c: Likewise.
14374 * reload.c: Likewise.
14375 * rtl.c: Likewise.
14376
cc863bea
KH
143772002-01-09 Kazu Hirata <kazu@hxi.com>
14378
14379 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
14380 to extract items in the expr_list chain.
14381
7b4dfe3d
RH
143822002-01-09 Richard Henderson <rth@redhat.com>
14383
14384 * config/vax/vax.c (vax_rtx_cost): Never abort.
14385
1d969638
RH
14386 * config/vax/vax.h (REAL_ARITHMETIC): Define.
14387
7d5ab30e
JH
143882002-01-09 Jan Hubicka <jh@suse.cz>
14389
14390 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
14391
9503f3d1
RH
143922002-01-09 Richard Henderson <rth@redhat.com>
14393
14394 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
14395 Unify code from various alternatives.
14396
42bd17b7
RH
143972002-01-09 Richard Henderson <rth@redhat.com>
14398
14399 * regrename.c (copy_value): Ignore the copy if the source register
14400 is present in the value chain with a narrower mode.
14401
bdca3c33
HB
144022002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14403
cda94cbb
RH
14404 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
14405 for the c4x target. Also improve layout.
bdca3c33 14406
c73a5e94
RH
144072002-01-09 Richard Henderson <rth@redhat.com>
14408
14409 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
14410 * config/m32r/m32r.md (and ior xor splitters): Swap operands
14411 to match insn patterns.
14412
dd0a18c0
RH
144132002-01-09 Richard Henderson <rth@redhat.com>
14414
14415 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
14416 (copyprop_hardreg_forward_1): Likewise.
14417
1fd9ac1e
JDA
144182002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
14419
14420 * pa.md (decrement_and_branch_until_zero): Change predicate for
14421 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
14422
5cb265ec
BM
144232002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14424
14425 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
14426 gets undefined. For Darwin.
14427
fcd8fa8b
HB
144282002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14429
14430 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
14431
bd3ab23a
MH
144322002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14433
14434 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
14435
21e16bd6
RH
144362002-01-08 Richard Henderson <rth@redhat.com>
14437
14438 * regrename.c (copy_value): Ignore overlapping copies.
14439
a5376276
RH
144402002-01-08 Richard Henderson <rth@redhat.com>
14441
14442 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
14443 as needed to avoid shared structure.
14444
18cf8dda
KH
144452002-01-08 Kazu Hirata <kazu@hxi.com>
14446
14447 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
14448 H8/300H and H8/S.
14449
16c484c7
JM
144502002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14451
14452 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
14453 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
14454 documentation of obsolete macros.
14455 * system.h: Poison these macros.
14456 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
14457 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
14458 config/c4x/c4x.h, config/clipper/clipper.h,
14459 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
14460 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
14461 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
14462 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
14463 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14464 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
14465 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14466 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
14467 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
14468 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14469 config/sparc/sparc.h, config/stormy16/stormy16.h,
14470 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
14471 definitions and commented out definitions of obsolete macros.
14472 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
14473 of MAX_INT_TYPE_SIZE.
14474
14b3e8ef
UW
144752002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
14476
14477 * config/s390/s390.c (s390_preferred_reload_class): Never
14478 return ADDR_REGS if it isn't a subset of the given class.
14479 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
14480 FP_REGS, but all superclasses as well.
14481
14482 * config/s390/s390.c (s390_function_profiler): Fix thinko.
14483
14484 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
14485 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
14486 must not be a const_int.
14487
a693284d
RH
144882002-01-08 Richard Henderson <rth@redhat.com>
14489
14490 * Makefile.in (toplev.o): Depend on options.h.
14491 (gcc.o): Depend on specs.h.
14492
b3ca30df
JJ
144932002-01-08 Jakub Jelinek <jakub@redhat.com>
14494
14495 * expr.c (store_expr): Convert VOIDmode constants back to target's
14496 mode.
14497
24dbb440
GP
144982002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14499
14500 * doc/invoke.texi: Markup gcc as @command. Refer to
14501 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
14502 of http://gcc.gnu.org/thanks.html.
14503
234e114c
DJ
145042002-01-08 Dale Johannesen <dalej@apple.com>
14505
14506 * config/rs6000/rs6000.md: Add missing int register
14507 target case to movdf_low.
14508
0d24f4d1
ZW
145092002-01-08 Zack Weinberg <zack@codesourcery.com>
14510
14511 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
14512 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
14513 (cppinit.o): Depend on except.h.
14514 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
14515 s-specs): New rules.
14516
14517 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
14518 Don't create specs.h/options.h/gencheck.h here. Remove
14519 unnecessary variable settings from last argument of AC_OUTPUT.
14520 * config.in, configure: Regenerate.
14521 * intl.c: Hardcode package name as "gcc".
14522
14523 * cppinit.c: Include except.h.
14524 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
14525 appropriate.
14526 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
14527 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
14528 (!)USING_SJLJ_EXCEPTIONS.
14529 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
14530
ed722f66
JM
145312002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14532
14533 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
14534 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
14535 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
14536 documentation of obsolete macros.
14537 * system.h: Poison these macros.
14538 * config/d30v/d30v.h, config/ns32k/encore.h,
14539 config/stormy16/stormy16.h: Remove definitions and commented out
14540 definitions of obsolete macros.
14541
31e5e29a
NP
14542Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
14543
14544 * objc/objc-act.c (handle_class_ref): Mark the declaration of
14545 %sobjc_class_ref_%s as used - to prevent unwanted compiler
14546 warnings.
14547
bc1fa59c
UW
145482002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
14549
14550 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
14551 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
14552 to insn adjusting stack/frame pointer.
0d24f4d1 14553 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
14554 accept operands that cause the insn to be non-splittable.
14555
a8086abf
GS
145562002-01-08 Graham Stott <grahams@redhat.com>
14557
14558 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
14559 (C_TYPE_FIELDS_VOLATILE): Likewise.
14560 (C_TYPE_BEING_DEFINED): Likewise.
14561 (C_IS_RESERVED_WORD): Likewise.
14562 (C_TYPE_VARIABLE_SIZE): Likewise.
14563 (C_DECL_VARIABLE_SIZE): Likewise.
14564 (C_MISSING_PROTOTYPE_WARNED): Likewise.
14565 (C_SET_EXP_ORIGINAL_CODE): Likewise.
14566 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
14567 parenthesis.
14568 (C_DECL_ANTICIPATED): Likewise.
14569 (c_build_type_variant): Add parenthesis.
14570
3f595aa1
JM
145712002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14572
14573 * gcc.c (option_map): Remove --version.
14574 (process_command): Handle -fversion following the GNU Coding
14575 Standards. Partially addresses PR other/704.
14576
5bc5a8f9
GS
145772002-01-08 Graham Stott <grahams@redhat.com>
14578
14579 * combine.c (combine_instructions): Fix typo.
14580
16ec4ebf
GS
145812002-01-08 Graham Stott <grahams@redhat.com>
14582
14583 * debug.h: Use "tree" and "rtx" throughout.
14584
14585 * debug.c: Likewise.
14586
4b69f385
NC
145872002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
14588
14589 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
14590 constant pool, use the pool's version of the symbol instead.
14591
57d1019b
RH
145922002-01-07 Richard Henderson <rth@redhat.com>
14593
14594 * regrename.c (find_oldest_value_reg): Ignore the value chain if
14595 the original register was copied in a mode with a fewer number of
14596 hard registers than the desired mode.
14597 (copyprop_hardreg_forward_1): Likewise.
14598 (debug_value_data): Fix loop test.
14599 * toplev.c (parse_options_and_default_flags): Reenable
14600 -fcprop-registers at -O1.
14601
146022002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 14603
0d24f4d1
ZW
14604 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
14605 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 14606
0d24f4d1
ZW
14607 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
14608 predicates.
fa066a23 14609
0d24f4d1 14610 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 14611
8f949e7e
JDA
146122002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
14613
14614 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
14615 (pa_output_function_prologue): Output local label at the beginning of
14616 the prologue when profiling.
14617 (hppa_profile_hook): Use the local label rather than the function label.
14618 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
14619
c62f2db5
AH
146202002-01-07 Aldy Hernandez <aldyh@redhat.com>
14621
0d24f4d1
ZW
14622 * config/rs6000/rs6000.c (print_operand): Remove extra space.
14623 (altivec_expand_unop_builtin): Fix thinko.
14624 (altivec_expand_binop_builtin): Same.
14625 (altivec_expand_ternop_builtin): Same.
14626 (altivec_expand_builtin): Same.
c62f2db5 14627
b5235ba7
RH
146282002-01-07 Richard Henderson <rth@redhat.com>
14629
14630 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
14631
7d8ac293
JM
146322002-01-07 Jason Merrill <jason@redhat.com>
14633
14634 * unwind-dw2.c (execute_cfa_program): Use < again.
14635
571a03b8
JJ
146362002-01-07 Jakub Jelinek <jakub@redhat.com>
14637
14638 * predict.c (combine_predictions_for_insn): Avoid division by zero.
14639
2e951384
JJ
146402002-01-07 Jakub Jelinek <jakub@redhat.com>
14641
14642 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
14643 Don't allow -1 - x -> ~x simplifications in the first pass.
14644
20e26713
AH
146452002-01-07 Aldy Hernandez <aldyh@redhat.com>
14646
0d24f4d1
ZW
14647 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
14648 arguments.
14649 (altivec_expand_binop_builtin): Same.
14650 (altivec_expand_unop_builtin): Same.
14651 (print_operand): Fix typo.
14652 (bdesc_1arg): Add vupk* variants.
20e26713 14653
0d24f4d1 14654 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 14655
0d24f4d1 14656 * rs6000.md: Add altivec_vupk* variants.
20e26713 14657
4dd57c18
JM
146582002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
14659
14660 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
14661 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
14662 and last update dates.
14663
0341c5d2
JJ
146642002-01-07 Janis Johnson <janis187@us.ibm.com>
14665
14666 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
14667
c7f3e0b0
MM
146682002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
14669
14670 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14671 * config/avr/avr.h (CPP_SPEC): Likewise.
14672 (LINK_SPEC): Likewise.
14673 (CRT_BINUTILS_SPECS): Likewise.
14674 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14675 * doc/invoke.texi (AVR Options): Document them.
14676
6ba4d630
JH
14677Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
14678
14679 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14680 LABEL_NUSES.
14681
6253d571
GS
146822002-01-07 Graham Stott <grahams@redhat.com>
14683
0d24f4d1
ZW
14684 * config/i386/i386.h: Update copyright date.
14685 (HALF_PIC_PTR): Add parenthesis.
14686 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14687 (CONSTANT_ALIGNMENT): Add parenthesis.
14688 (DATA_ALIGNMENT): Likewise.
14689 (LOCAL_ALIGNMENT): Likewise.
14690 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14691 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14692 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14693 (HARD_REGNO_NREGS): Add paranethesis.
14694 (VALID_SSE_REG_MODE): Whitespace.
14695 (VALID_MMX_REG_MODE): Whitespace.
14696 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14697 (ix86_hard_regno_mode_ok): Add parenthesis.
14698 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14699 (RETURN_IN_MEMORY): Whitespace.
14700 (N_REG_CLASSES): Add parenthesis.
14701 (INTEGER_CLASS_P): Add parenthesis and wrap.
14702 (FLOAT_CLASS_P): Likewise.
14703 (SSE_CLASS_P): Likewise.
14704 (MMX_CLASS_P): Likewise.
14705 (MAYBE_INTEGER_CLASS_P): Likewise.
14706 (MAYBE_FLOAT_CLASS_P): Likewise.
14707 (MAYBE_SSE_CLASS_P): Likewise.
14708 (MAYBE_MMX_CLASS_P): Likewise.
14709 (Q_CLASS_P): Likewise.
14710 (GENERAL_REGNO_P): Uppercase macro parameter.
14711 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14712 (FP_REGNO_P): Likewise.
14713 (ANY_FP_REGNO_P): Uppercase macro parameter.
14714 (SSE_REGNO_P): Likewise.
14715 (SSE_REGNO): Likewise.
14716 (SSE_REG_P): Likewise.
14717 (SSE_FLOAT_MODE_P): Likewise.
14718 (MMX_REGNO_P): Likewise.
14719 (MMX_REG_P):Likewise.
14720 (STACK_REG_P): Likewise.
14721 (NON_STACK_REG_P): Likewise.
14722 (STACK_TOP_P): Likewise.
14723 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14724 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14725 (SECONDARY_MEMORY_NEEDED): Likewise.
14726 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14727 (MD_ASM_CLOBBERS): Whitespace and wrap.
14728 (MUST_PASS_IN_STACK): Whitespace and wrap.
14729 (RETURN_POPS_ARGS): Add parenthesis.
14730 (INIT_CUMULATIVE_ARGS): Likewise.
14731 (FUNCTION_ARG): Likewise.
14732 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14733 (SETUP_INCOMING_VARARGS): Likewise.
14734 (BUILD_VA_LIST_TYPE): Add parenthesis.
14735 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14736 parenthsis.
14737 (EXPAND_BUILTIN_VA_ARG): Likewise.
14738 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14739 (INITIALIZE_TRAMPOLINE): Add parenthesis.
14740 (INITIAL_ELIMINATION_OFFSET): Likewise.
14741 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14742 (REGNO_OK_FOR_BASE_P): Likewise.
14743 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14744 (REGNO_OK_FOR_DIREG_P): Likewise.
14745 (REG_OK_FOR_INDEX_P): Whitespace.
14746 (REG_OK_FOR_BASE_P): Whitespace.
14747 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14748 parenthesis.
14749 (FIND_BASE_TERM): Fix typo.
14750 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
14751 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14752 (SYMBOLIC_CONST; Whitespace.
14753 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
14754 (ENCODE_SECTION_INFO): Whitespace.
14755 (FINALIZE_PIC): Remove do { ... } while (0).
14756 (PROMOTE_MODE): Wrap in do { ... } while (0).
14757 (CONST_COSTS): Whitespace.
14758 (RTX_COSTS): Add paramethesis, whitespace and wrap.
14759 (REGISTER_MOVE_COST): Add parenthesis.
14760 (MEMORY_MOVE_COST): Likewise.
14761 (EXTRA_CC_MODES): Whitespace.
14762 (SELECT_CC_MODE): Add parenthesis and whitespace.
14763 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14764 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14765 (ASM_OUTPUT_LABEL): Add paramethesis.
14766 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14767 (ASM_OUTPUT_REG_POP): Likewise.
14768 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14769 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 14770
07933f72
GS
14771 * config/i386/i386.c: Update copyright.
14772 (CHECK_STACK_LIMIT): Add parenthesis.
14773 (AT_BP): Uppercase macro parameter.
14774 (x86_64_int_parameter_registers): Constify.
14775 (x86_64_int_return_registers): Likewise.
14776 (ix86_compare_op0): Use rtx.
14777 (construct_container): Constify INTREG parameter.
14778 (function_arg): Use rtx.
14779
0b4d32c9
GS
14780 * diagnostic.h: Update copyright date.
14781 (output_buffer_state): Add parenthesis.
14782 (output_buffer_format_args): Likewise.
14783
6253d571
GS
14784 * combine.c (combine_instructions): Replace XEXP (links, 0)
14785 with link.
14786
68f3f6f1
L
147872002-01-06 H.J. Lu <hjl@gnu.org>
14788
14789 * cfgcleanup.c (thread_jump): Fix 2 typos.
14790
147912002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 14792
0d24f4d1 14793 * config.gcc: Add support for --enable-altivec.
480f7f3a 14794
13b8c631
CR
147952002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14796
14797 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14798
58ad89b1
JJ
147992002-01-06 Jakub Jelinek <jakub@redhat.com>
14800
14801 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14802 __objc_class_name_*.
14803
e403b4bc
CR
148042002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14805
14806 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14807
e41c7831
RH
148082002-01-06 Richard Henderson <rth@redhat.com>
14809
14810 * reorg.c (emit_delay_sequence): Remove death notes, not merely
14811 nop them out. Increment label reference count for REG_LABEL.
14812 (fill_slots_from_thread): Frob label reference count around
14813 delete_related_insns.
14814
3b3b1e32
RH
148152002-01-05 Richard Henderson <rth@redhat.com>
14816
14817 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14818 jump threading.
14819
c28abdf0
RH
148202002-01-05 Richard Henderson <rth@redhat.com>
14821
14822 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14823 * integrate.c (output_inline_function): Likewise.
14824 * toplev.c (rest_of_compilation): Do it here instead. Move call
14825 to remove_unnecessary_notes after emitting abstract instance.
14826 Force an emitted nested function to have its parent emited as well.
14827 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14828 for null.
14829 (rtl_for_decl_location): Do not look at reload data structures
14830 before reload has run.
14831
c4f2c499
KH
148322002-01-05 Kazu Hirata <kazu@hxi.com>
14833
14834 * cse.c: Fix formatting.
14835 * dwarf2asm.c: Likewise.
14836 * dwarf2out.c: Likewise.
14837 * explow.c: Likewise.
14838 * expmed.c: Likewise.
14839 * function.c: Likewise.
14840 * gcov.c: Likewise.
14841 * gencheck.c: Likewise.
14842 * genrecog.c: Likewise.
14843 * ggc-common.c: Likewise.
14844 * ggc-page.c: Likewise.
14845 * global.c: Likewise.
14846
cf0d9408
KH
148472002-01-05 Kazu Hirata <kazu@hxi.com>
14848
14849 * combine.c: Fix formatting.
14850
bedca03a
CR
148512002-01-05 Craig Rodrigues <crodrigu@bbn.com>
14852
14853 PR middle-end/1557
14854 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14855
0134bf2d
DE
148562002-01-05 David Edelsohn <edelsohn@gnu.org>
14857
14858 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14859 as 1 for __powerpc64__ as well.
14860
14861 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14862
14863 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14864 return it.
14865
9ca88d5a
DB
148662002-01-05 Daniel Berlin <dan@dberlin.org>
14867
14868 * lcm.c: Revert change, due to performance regression it causes on
14869 SPEC because it's slightly more conservative (sigh, I hate
14870 edge-based LCM).
0d24f4d1 14871
1c570418
JH
14872Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
14873
14874 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14875
d83bb9f7
NB
148762002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
14877
14878 * doc/cppinternals.texi: Update.
14879
3e0f61ac
HPN
148802002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
14881
14882 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14883 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14884 negatives.
14885 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
14886 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14887 kludge for pre-october-14th mmix versions to handle new-found bug
14888 with PUSHJ/PUSHGO and the register stack.
14889 * config/mmix/mmix.h (struct machine_function): Rename member
14890 has_call_value_without_parameters to has_call_without_parameters.
14891 All referers changed.
14892 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14893 TARGET_MASK_BRANCH_PREDICT): New macros.
14894 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14895 -mno-reg-stack-fill-bug-workaround.
14896 * config/mmix/mmix.md ("call"): Set struct machine member
14897 has_call_without_parameters.
14898
4deaa2f8
JH
14899Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
14900
14901 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14902
9f16e871
JH
14903Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
14904
14905 * cfgcleanup.c: Include tm_p.h
14906 (mark_effect): Fix handling of hard register; fix handling of SET
14907
96eb1157
KH
149082002-01-04 Kazu Hirata <kazu@hxi.com>
14909
14910 * config/h8300/h8300.md (anonymous patterns): Check that
14911 operands are registers before using REGNO on them.
14912
48180d68
RM
149132002-01-03 Roland McGrath <roland@frob.com>
14914
14915 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14916
b0832fe1
JJ
149172002-01-04 Jakub Jelinek <jakub@redhat.com>
14918
14919 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14920 * c-common.h (genrtl_expr_stmt_value): Likewise.
14921 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14922 (expand_expr_stmt_value): Add maybe_last argument.
14923 Don't warn about statement with no effect if it is the last statement
14924 in expression statement.
14925 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14926 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14927 expand_expr_stmt_value.
14928 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14929 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14930 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14931 as maybe_last to expand_expr_stmt_value.
14932
c1e14513
JL
14933Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
14934
0d24f4d1
ZW
14935 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14936 be passed in, do not build it.
14937 (c_begin_if_stmt): New function.
14938 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14939 * c-common.h (c_expand_start_cond): Update prototype.
14940 (c_begin_if_stmt): Prototype new function.
14941 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14942 * c-parse.in (if_prefix): Use c_begin_if_stmt,
14943 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 14944
b6ec437a
WC
149452002-01-04 William Cohen <wcohen@redhat.com>
14946
14947 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14948 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14949 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14950 * config/pa/som.h (ASM_FILE_START): Likewise.
14951
ead39bdf 149522002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
14953
14954 * lcm.c: Include df.h.
14955 Add available_transfer_function prototype.
14956 (compute_available): Rework to use iterative dataflow framework.
14957 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14958 with bb_info in df.h
14959 (available_transfer_function): New function.
14960
14961 * Makefile.in (lcm.o): add df.h to dependencies.
14962
551cc6fd
RH
149632002-01-04 Richard Henderson <rth@redhat.com>
14964
14965 * config/alpha/alpha.c (some_operand): Accept HIGH.
14966 (input_operand): Likewise; accept simple references to globals.
14967 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14968 (alpha_const_double_ok_for_letter_p): Likewise.
14969 (alpha_extra_constraint): Likewise.
14970 (alpha_preferred_reload_class): Likewise. Do not force
14971 symbolic constants to memory.
14972 (alpha_legitimate_address_p): Accept simple references
14973 to small_symbolic_operand.
14974 (alpha_legitimize_address): New arg scratch. Be prepared to be
14975 called when no_new_pseudos. Emit simple symbolic references.
14976 Split integers into low, high, and rest.
14977 (alpha_expand_mov): Use alpha_legitimize_address.
14978 (some_small_symbolic_mem_operand): New.
14979 (split_small_symbolic_mem_operand): New.
14980 * config/alpha/alpha-protos.h: Update.
14981 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14982 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14983 (EXTRA_CONSTRAINT): Likewise.
14984 (PREFERRED_RELOAD_CLASS): Likewise.
14985 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14986 (PREDICATE_CODES): Update.
14987 * config/alpha/alpha.md: New post-reload splitters to convert
14988 simplfied symbolic operands to the form that references $29.
14989 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14990 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14991
1eaea054
RH
149922002-01-03 Richard Henderson <rth@redhat.com>
14993
14994 * local-alloc.c (function_invariant_p): Update commentary.
14995
c4cc12b7
L
149962002-01-04 H.J. Lu <hjl@gnu.org>
14997
14998 * toplev.c (rest_of_compilation): Fix a typo when calling
14999 cleanup_cfg.
15000
173bf5be
KH
150012002-01-03 Kazu Hirata <kazu@hxi.com>
15002
15003 * c-common.c: Fix formatting.
15004 * diagnostic.c: Likewise.
15005 * doloop.c: Likewise.
15006 * dwarf2out.c: Likewise.
15007
187462ac
KH
150082002-01-03 Kazu Hirata <kazu@hxi.com>
15009
15010 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
15011 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
15012
5d8ebbd8
NB
150132002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
15014
15015 * cpperror.c: Update comments and copyright.
15016 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
15017 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
15018
518c1311
JDA
150192002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
15020
15021 * collect2.c (main): Use strcmp when testing for "-shared".
15022
d15a58c0
NB
150232002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
15024
15025 * cppmacro.c: Don't include intl.h. Update comments.
15026 (new_number_token): Allocate enough buffer for 64-bit unsigned
15027 integers; update prototype.
15028 * cppmain.c: Update comments.
15029
70f4f91c
WC
150302002-01-03 William Cohen <wcohen@redhat.com>
15031
15032 * function.h (struct function): Add profile.
15033 (current_function_profile): New.
15034 doc/extend.texi: Update documentation.
15035 * final.c (final_start_function): Use current_function_profile
15036 instead of profile_flag.
15037 (profile_after_prologue): Likewise.
15038 * function.c (expand_function_start): Likewise.
15039 (expand_function_start): Likewise.
c4cc12b7 15040 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
15041 (alpha_does_function_need_gp): Likewise.
15042 (alpha_expand_prologue): Likewise.
15043 * config/arm/arm.c (arm_expand_prologue): Likewise.
15044 thumb_expand_prologue: Likewise.
15045 * config/d30v/d30v.c (d30v_stack_info): Likewise.
15046 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
15047 (fr30_expand_prologue): Likewise.
15048 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
15049 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
15050 * config/i386/i386.h (FINALIZE_PIC): Likewise.
15051 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
15052 * config/i960/i960.c (i960_output_function_prologue): Likewise.
15053 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
15054 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
15055 (m32r_expand_prologue): Likewise.
15056 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
15057 (m88k_expand_prologue): Likewise.
15058 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
15059 * config/mips/mips.c (compute_frame_size): Likewise.
15060 (mips_expand_prologue): Likewise.
15061 (mips_can_use_return_insn): Likewise.
15062 * config/pa/elf.h (ASM_FILE_START): Likewise.
15063 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
15064 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
15065 * config/pa/som.h (ASM_FILE_START): Likewise.
15066 * config/romp/romp.c (romp_using_r14): Likewise.
15067 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
15068 (rs6000_stack_info): Likewise.
15069 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 15070 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
15071 * config/v850/v850.c (compute_register_save_size): Likewise.
15072
cb1ac742
JJ
150732002-01-03 Jakub Jelinek <jakub@redhat.com>
15074
15075 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
15076 gen_lowpart_common fails, use gen_lowpart_SUBREG.
15077
61d951df 150782002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 15079
61d951df
TC
15080 * darwin.c (machopic_output_possible_stub_label): Don't generate
15081 stub routines for pseudo-stubs which we've just defined.
15082
505ddab6
KH
150832002-01-03 Kazu Hirata <kazu@hxi.com>
15084
15085 * builtins.c: Fix formatting.
15086 * c-typeck.c: Likewise.
15087 * combine.c: Likewise.
15088 * expr.c: Likewise.
15089 * loop.c: Likewise.
15090
b7e30d8a
AS
150912002-01-03 Andreas Schwab <schwab@suse.de>
15092
15093 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
15094 and return true if _cpp_push_next_buffer pushed a new include
15095 file.
15096 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
15097 _cpp_pop_file_buffer did not push a new file.
15098 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
15099
ff81832f
EC
151002002-01-02 Eric Christopher <echristo@redhat.com>
15101
15102 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
15103 FIND_REG_INC_NOTE call. Update copyright.
15104 * loop.c (canonicalize_condition): Ditto.
15105 * reorg.c (delete_scheduled_jump): Ditto.
15106
8e42ace1
KH
151072002-01-03 Kazu Hirata <kazu@hxi.com>
15108
15109 * gcse.c: Fix formatting.
15110
fb2bf631
GS
151112002-01-03 Graham Stott <grahams@redhat.com>
15112
15113 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
15114 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 15115 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
15116
15117 * system.h: Move forward defs for struct tags rtx_def, union_tree,
15118 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 15119 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
15120
151212002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
15122
15123 * tree.h: Update copyright date.
15124 (IS_EXPR_CODE_CLASS): Add parenthesis.
15125 (TREE_SET_CODE): Add whitespace.
15126 (TREE_CHECK): Add parenthesis.
15127 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
15128 (CST_OR_CONSTRUCTOR_CHECK):
15129 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
15130 (TREE_SYMBOL_REFERENCED): Whitespace.
15131 (INT_CST_LT): Likewise.
15132 (INT_CST_LT_UNSIGNED): Likewise.
15133 (tree_real_cst): Unwrap comment.
15134 (tree_string): Likewise.
15135 (tree_complex): Likewise.
15136 (IDENTIFIER_POINTER): correct cast.
15137 (SAVE_EXPR_CONTEXT): Whitespace.
15138 (EXPR_WFL_FILENAME_NODE): Likewise.
15139 (EXPR_WFL_FILENAME): Remove parenthesis.
15140 (DECL_ORIGIN): Add parenthesis.
15141 (DECL_FROM_INLINE): Use NULL_TREE.
15142 (build_int_2): Whitespace.
15143 (build_type_variant): Add parenthesis.
15144
15145 * gcc/jcf-parse.c: Update copyright date.
15146 (yyparse): Constify resource_filename.
15147
f52eda29
GS
151482002-01-03 Graham Stott <grahams@redhat.com>
15149
15150 * rtl.h: Update copyright date.
15151 (RTL_CHECK1): Wrap long line.
15152 (RTL_CHECK2): Likewise.
15153 (RTL_CHECKC1): Wrap long line and whitespace.
15154 (RTL_CHECKC2): Likewise.
15155 (XWINT): Whitespace.
15156 (XINT): Likewise.
15157 (XSTR): Likewise.
15158 (XEXP): Likewise.
15159 (XVEC): Likewise.
15160 (XMODE): Likewise.
15161 (XBITMAP): Likewise.
15162 (XTREE): Likewise.
15163 (XBBDEF): Likewise.
15164 (XTMPL): Likewise.
15165 (X0WINT): Likewise.
15166 (X0INT):Likewise.
15167 (X0UINT): Likewise.
15168 (X0STR): Likewise.
15169 (X0EXP): Likewise.
15170 (X0VEC): Likewise.
15171 (X0MODE): Likewise.
15172 (X0BITMAP): Likewise.
15173 (X0TREE): Likewise.
15174 (X0BBDEF): Likewise.
15175 (X0ADVFLAGS): Likewise.
15176 (X0CSELIB): Likewise.
15177 (X0MEMATTR): Likewise.
15178 (XCWINT): Likewise.
15179 (XCINT): Likewise.
15180 (XCUINT): Likewise.
15181 (XCSTR): Likewise.
15182 (XCEXP): Likewise.
15183 (XCVEC): Likewise.
15184 (XCMODE): Likewise.
15185 (XCBITMAP): Likewise.
15186 (XCTREE): Likewise.
15187 (XCBBDEF): Likewise.
15188 (XCADVFLAGS): Likewise.
15189 (XCCSELIB): Likewise.
15190 (XC2EXP): Likewise.
15191 (INSN_UID): Likewise.
15192 (PREV_INSN): Likewise.
15193 (PATTERN): Likewise.
15194 (INSN_CODE): Likewise.
15195 (PUT_REG_NOTE_KIND): Likewise.
15196 (CODE_LABEL_NUMBER): Likewise.
15197 (NOTE_SOURCE_FILE): Likewise.
15198 (NOTE_BLOCK): Likewise.
15199 (NOTE_EH_HANDLER): Likewise.
15200 (NOTE_RANGE_INFO): Likewise.
15201 (NOTE_LIVE_INFO): Likewise.
15202 (NOTE_BASIC_BLOCK): Likewise.
15203 (NOTE_EXPECTED_VALUE): Likewise.
15204 (NOTE_LINE_NUMBER): Likewise.
15205 (LABEL_NAME): Likewise.
15206 (LABEL_NUSES): Likewise.
15207 (LABEL_ALTERNATE_NAME): Likewise.
15208 (ADDRESSOF_DECL): Likewise.
15209 (JUMP_LABEL): Likewise.
15210 (LABEL_NEXTREF): Likewise.
15211 (REGNO): Likewise.
15212 (ORIGINAL_REGNO: Likewise.
15213 (HARD_REGISTER_NUM_P): Add parenthesis.
15214 (SUBREG_REG): Whitespace.
15215 (SUBREG_BYTE): Likewise.
15216 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
15217 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
15218 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
15219 (ASM_OPERANDS_INPUT_VEC): Likewise.
15220 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
15221 (ASM_OPERANDS_INPUT): Likewise.
15222 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
15223 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
15224 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
15225 (ASM_OPERANDS_INPUT_MODE): Likewise.
15226 (ASM_OPERANDS_SOURCE_FILE): Likewise.
15227 (ASM_OPERANDS_SOURCE_LINE): Likewise.
15228 (MEM_SET_IN_STRUCT_P): Minor reformat.
15229 (TRAP_CONDITION): Whitespace.
15230 (TRAP_CODE): Likewise.
15231 (COND_EXEC_TEST): Likewise.
15232 (COND_EXEC_CODE): Likewise.
15233 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
15234 (PHI_NODE_P): Add parenthesis.
15235 (plus_constant): Whitespace and add parenthesis.
15236
e03f5d43
KH
152372002-01-03 Kazu Hirata <kazu@hxi.com>
15238
15239 * config/avr/avr.c: Fix comment typos.
15240 * config/c4x/c4x.md: Likewise.
15241 * config/dsp16xx/dsp16xx.h: Likewise.
15242 * config/dsp16xx/dsp16xx.md: Likewise.
15243 * config/i386/i386.md: Likewise.
15244 * config/ia64/ia64.c: Likewise.
15245 * config/m32r/m32r.h: Likewise.
15246 * config/m68hc11/m68hc11.md: Likewise.
15247 * config/mmix/mmix.c: Likewise.
15248 * config/mn10200/mn10200.c: Likewise.
15249 * config/romp/romp.c: Likewise.
15250 * config/sh/sh.c: Likewise.
15251 * config/stormy16/stormy16.c: Likewise.
15252 * config/stormy16/stormy16.h: Likewise.
15253 * config/stormy16/stormy16.md: Likewise.
15254
97e300e9
GS
152552002-01-03 Graham Stott <grahams@redhat.com>
15256
15257 * loop.h: Update copyright date.
0d24f4d1
ZW
15258 (LOOP_MOVABLES): Fix typo.
15259 (LOOP_REGS): Likewise.
15260 (LOOP_IVS): Likewise.
ff81832f 15261
745b26b3
GS
152622002-01-03 Graham Stott <grahams@redhat.com>
15263
15264 * cppinit.c: Update copyright date.
15265 Don't include output.h
15266 * Makefile.in: Update copyright date.
15267 Update dependency.
15268
0a379b7a
CR
152692002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
15270
15271 PR c/5226
15272 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
15273 (-pthread) Add to RS/6000 options.
15274
a8154559
KH
152752002-01-02 Kazu Hirata <kazu@hxi.com>
15276
15277 * except.c: Fix comment typos.
15278 * loop.c: Likewise.
15279 * varasm.c: Likewise.
15280 * doc/tm.texi: Fix a typo.
15281
e6ecc89b
JJ
152822002-01-02 Jakub Jelinek <jakub@redhat.com>
15283
15284 * c-typeck.c (output_init_element): Allow initializing static storage
15285 duration objects with compound literals.
15286
d1094b40
RH
152872002-01-02 Richard Henderson <rth@redhat.com>
15288
15289 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
15290 after abusing it.
15291
0c5d8c82
KG
152922002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15293
5e65297b
KG
15294 * gcc.c (default_compilers): Const-ify.
15295 * mips-tdump.c (stab_names): Likewise.
15296 * mips-tfile.c (map_coff_types, map_coff_storage,
15297 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
15298 pseudo_ops_t, pseudo_ops): Likewise.
15299 * protoize.c (default_include): Likewise
15300
0c5d8c82
KG
15301 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
15302 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
15303 Add array size in declaration.
15304 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
15305 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
15306 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
15307 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
15308 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
15309 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
15310 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
15311 emtens, make_nan): Const-ify.
15312 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
15313 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
15314
817e13c4
JM
153152002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
15316
15317 * config.gcc (ia64-*-*): Set extra_headers.
15318 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
15319 * config/alpha/t-osf: Remove.
15320 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
15321
98095e2b
DE
153222002-01-02 David Edelsohn <edelsohn@gnu.org>
15323
15324 * config/rs6000/t-aix43: Revert previous change.
15325
a4200657
JM
153262002-01-02 Jason Merrill <jason@redhat.com>
15327
15328 * c-decl.c (c_expand_body): Call outlining_inline_function when
15329 emitting an inline function out of line.
15330
54ba1f0d
RH
153312002-01-02 Richard Henderson <rth@redhat.com>
15332
15333 * dwarf2out.c (limbo_die_node): Add created_for member.
15334 (new_die): New argument created_for. Update all callers.
15335 (mark_limbo_die_list): New.
15336 (dwarf2out_init): Register limbo_die_list as a root.
15337 (dwarf2out_finish): Force insert limbo dies into their function
15338 context.
15339
323728aa
NS
153402002-01-02 Nathan Sidwell <nathan@codesourcery.com>
15341
15342 PR c++/5089
15343 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
15344
aefc5826
KH
153452002-01-02 Kazu Hirata <kazu@hxi.com>
15346
15347 * config/h8300/fixunssfsi.c: Update copyright.
15348 Fix comment typos.
15349 Fix formatting.
15350 * config/h8300/h8300.c: Update copyright.
15351 Eliminate warnings.
15352
b1c9bc51
KH
153532002-01-02 Kazu Hirata <kazu@hxi.com>
15354
15355 * config/romp/romp.c: Fix comment formatting.
15356 * config/romp/romp.h: Likewise.
15357 * config/romp/romp.md: Likewise.
15358 * config/s390/s390.c: Likewise.
15359 * config/stormy16/stormy16.c: Likewise.
15360 * config/stormy16/stormy16.h: Likewise.
15361
1574ef13
AO
153622002-01-02 Alexandre Oliva <aoliva@redhat.com>
15363
15364 * c-common.h (genrtl_expr_stmt_value): Declare.
15365 * c-semantics.c (genrtl_goto_stmt): Redirect to...
15366 (genrtl_goto_stmt_value): ... this new function. Pass new
15367 argument down to expand_expr_stmt_value, taking
15368 TREE_ADDRESSABLE into account.
15369 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
15370 STMT_EXPR as addressable, i.e., one whose result we want.
15371 * expr.c (expand_expr): Don't save expression statement value
15372 of labeled_blocks or loop_exprs.
15373 * stmt.c (expand_expr_stmt): Redirect to...
15374 (expand_expr_stmt_value): ... this new function. Use new
15375 argument to tell whether to save expression value.
15376 (expand_end_stmt_expr): Reset last_expr_type and
15377 last_expr_value if we don't have either.
15378 * tree-inline.c (declare_return_variable): Mark its use
15379 statement as addressable.
15380 * tree.h: Document new use of TREE_ADDRESSABLE.
15381 (expand_expr_stmt_value): Declare.
15382
252b88f7
TR
153832002-01-01 Tom Rix <trix@redhat.com>
15384
15385 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
15386 rs6000_emit_allocate_stack.
15387
29f7a208
JM
153882002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
15389
15390 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
15391 ${srcdir}/ginclude/ to every entry in extra_headers.
15392 * configure: Regenerate.
15393 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
15394 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
15395 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
15396 * ginclude/proto.h: Rename to config/convex/proto.h.
15397
2cc2d4bb
RK
15398Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15399
15400 * attribs.c (handle_vector_size_attribute): Use host_integerp
15401 and tree_int_cst; remove warnings.
15402 * caller-save.c (insert_restore): Add cast to get rid of warning.
15403 (insert_save): Likewise.
15404 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
15405 * regmove.c (find_matches): Add temporary var to kill a warning.
15406
f01c9bcd
DR
154072002-01-01 Douglas B Rupp <rupp@gnat.com>
15408
16b61764
DR
15409 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
15410 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
15411 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
15412 (vms-dwarf2eh.o): Add Makefile rule.
15413 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
15414 * config/alpha/vms-dwarf2eh.asm: New file.
15415
f01c9bcd
DR
15416 * gcc.c (delete_if_ordinary): Delete all versions.
15417
91312b81
HPN
154182002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
15419
15420 * config/mmix/mmix.md: Update FIXME to not mention
15421 define_constants.
15422 (MMIX_rJ_REGNUM): New define_constants constant.
15423 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
15424 "*movdicc_real"): Adjust contraints formatting.
15425 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
15426 for branch prediction.
15427 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
15428 output template.
15429 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
15430 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
15431 number. Delete related FIXMEs.
15432 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
15433 from number to MMIX_rJ_REGNUM.
15434 (TARGET_MASK_BRANCH_PREDICT): New.
15435 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
15436 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
15437 value. Add -mbranch-predict and -mno-branch-predict.
15438 (TARGET_VERSION): Drop date.
15439 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
15440 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
15441 for finding out global symbols.
15442 (mmix_asm_output_labelref): Revert condition for global symbol.
15443 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
15444 (mmix_print_operand_punct_valid_p): A '+' is valid.
15445
619acae7 15446See ChangeLog.6 for earlier changes.
This page took 2.086673 seconds and 5 git commands to generate.