]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
993063461cc5d4987816146e5a42f9d1edd4eb6c
[thirdparty/gcc.git] / gcc / ChangeLog
1 2002-05-10 Richard Henderson <rth@redhat.com>
2
3 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
4 Convert integers constants as needed. Replace "nwords" field with
5 "sizeof_bb".
6 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7 * function.h: Fix typo in comment.
8 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9
10 2002-05-10 Roger Sayle <roger@eyesopen.com>
11
12 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
13 into the equivalent (signed char)c > 0.
14
15 2002-05-10 Janis Johnson <janis187@us.ibm.com>
16
17 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
18 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
19 (struct prefetch_info): Fix spelling of member bytes_accessed.
20 (emit_prefetch_instructions): Make dump messages more regular;
21 restructure code to add more dump messages; use new macros for
22 heuristics. (There are no code generation changes in any of this).
23
24 2002-05-10 David S. Miller <davem@redhat.com>
25
26 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
27 (struct rtx_def): Update unchanging flag comment.
28 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
29 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
30 to be handled to INSN too.
31 (dbr_schedule): Likewise.
32 * resource.c (next_insn_no_annul): Likewise.
33
34 * cse.c (rtx_cost): Remove multiplication by power of 2 special
35 casing.
36
37 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38
39 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
40 . as N64/N32 libgcc_s.so subdirs.
41
42 2002-05-10 David S. Miller <davem@redhat.com>
43
44 * config/sparc/sparc.md: Use define_constants for unspec numbers.
45
46 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
47 more accurately.
48 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
49 comment.
50 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
51 * doc/rtl.texi: Document these macros more accurately.
52 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
53 JUMP_INSNs and CALL_INSNs.
54 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
55 or INSN_FROM_TARGET_P if the code is appropriate.
56
57 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
58
59 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
60 before using SYMBOL_REF_FLAG (addr).
61
62 * config/avr/avr-protos.h (avr_io_address_p): Declare.
63 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
64 Make non-static. Update all callers.
65 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
66 New insns to clear/set/test a single bit in I/O address space.
67
68 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
69
70 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
71
72 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
73
74 * Makefile.in: Update.
75 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
76 builtin_define_std): New.
77 (c_common_init): Register CPP builtins callback.
78 * c-common.h (flag_iso, flag_undef): New.
79 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
80 * c-lex.c: Don't include target.h.
81 (cb_register_builtins): Move to c-common.c.
82 (init_c_lex): Don't register hook here.
83 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
84 (cpp_define, cpp_assert): Remove.
85 * gcc.c (cc1_options): Pass -undef to front end.
86 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
87 (TARGET_INITIALIZER): Update.
88 * target.h (struct cpp_reader): Don't predeclare.
89 (struct gcc_target): Remove cpp builtin hook.
90 * tree.c (default_register_cpp_builtins): Remove.
91 doc:
92 * tm.texi: Update.
93
94 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
95
96 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
97
98 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
99
100 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
101 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
102
103 2002-05-09 Jakub Jelinek <jakub@redhat.com>
104
105 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
106 * config/sparc/libgcc-sparc-glibc.ver: New file.
107 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
108 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
109
110 2002-05-09 Jakub Jelinek <jakub@redhat.com>
111
112 PR target/6429
113 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
114 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
115 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
116 base multilibs.
117 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
118 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
119 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
120 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
121
122 2002-05-09 Richard Henderson <rth@redhat.com>
123
124 * config/ia64/ia64.md: Use define_constants for unspec numbers.
125 * config/ia64/ia64.c: Likewise.
126
127 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
128
129 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
130 (save_restore_insns): Likewise.
131 (mips_expand_prologue, mips_expand_epilogue): Update callers.
132 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
133
134 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
135
136 * athlon.md, k6.md, pentium.md, ppro.md): New files.
137 * i386.md: Move scheduling information into new files.
138
139 * i386.md (type attribute): Add "rotate" for rotate insns.
140 (rotate insns): Set type to "rotate".
141 (various attributes and function units): Treat rotate like shift.
142 (pent_pair attribute): Only rotates by one bit position are
143 pairable.
144 (sbb insns): Explicitly set pent_pair attribute on a couple
145 that were missing it.
146
147 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
148
149 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
150 make sure that buffer starts on odd word address.
151 (sh_va_arg): Skip odd fp registers when reading a double precision
152 value.
153
154 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
155
156 * tree.h (preserve_data, object_permanent_p, type_precision):
157 Remove.
158
159 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
160
161 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
162 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
163 doc:
164 * cpp.texi: Update for removal of obsolete features.
165
166 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
167 Jeffrey A Law (law@redhat.com)
168
169 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
170 the DFA interface for Pentium processors.
171 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
172 (attr_pent_pair, ix86_pent_find_pair): Remove.
173 (ix86_sched_reorder_pentium): Remove.
174 (ix86_sched_reorder): Remove reordering for Pentium.
175 * i386.md (Pentium scheduling): Rewrite using DFA description.
176
177 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
178
179 * cfganal.c (can_fallthru): Fix fast path.
180 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
181 with edges to the next block.
182
183 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
184 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
185
186 * final.c (end_final): Use C trees to output data structures for profiling.
187
188 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
189 (profile.o): New dependency profile.h
190 (final.o): New dependency profile.h
191 * profile.h: New file. New global structure profile_info.
192 * final.h (count_edges_instrumented_now): Declare.
193 (current_function_cfg_checksum): Declare.
194 (function_list): New structure.
195 (functions_head, functions_tail): New static variables.
196 (end_final): Emits more data, removed some -ax stuff.
197 (final): Stores function names and chcksums.
198 * gcov-io.h (__write_gcov_string): New function.
199 (__read_gcov_string): New function.
200 * gcov.c (read_profile): New function.
201 (create_program_flow_graph): Uses read_profile instead of reading
202 da_file.
203 (read_files): Removed da_file checking, it's done by read_profile now.
204 * libgcc2.c (bb_function_info): New structure.
205 (bb): New field in structure, removed some -ax stuff.
206 (__bb_exit_func): Changed structure of da_file.
207 * profile.c (count_edges_instrumented_now): New global variable.
208 (current_function_cfg_checksum): New global variable.
209 (max_counter_in_program): New global variable.
210 (get_exec_counts): New function.
211 (compute_checksum): New function.
212 (instrument_edges): Sets count_edges_instrumented_now.
213 (compute_branch_probabilities): Uses get_exec_counts instead of
214 reading da_file.
215 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
216 (init_branch_prob): Removed da_file checking, done in get_exec_counts
217 now.
218 (end_branch_prob): Removed da_file checking, done in get_exec_counts
219 now.
220 * gcov.texi: Updated information about gcov file format.
221
222 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
223
224 * sbitmap.c: Fix formatting.
225 * scan.c: Likewise.
226 * scan-decls.c: Likewise.
227 * sched-deps.c: Likewise.
228 * sched-ebb.c: Likewise.
229 * sched-rgn.c: Likewise.
230 * sched-vis.c: Likewise.
231 * sdbout.c: Likewise.
232 * sibcall.c: Likewise.
233 * simplify-rtx.c: Likewise.
234 * ssa.c: Likewise.
235 * ssa-ccp.c: Likewise.
236 * ssa-dce.c: Likewise.
237 * stmt.c: Likewise.
238 * stor-layout.c: Likewise.
239 * stringpool.c: Likewise.
240
241 2002-05-09 David S. Miller <davem@redhat.com>
242
243 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
244
245 2002-05-07 David S. Miller <davem@redhat.com>
246
247 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
248 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
249 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
250 library implementation clobbers the output before the inputs
251 are fully consumed, use stack temporary for the output.
252
253 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
254
255 * config/netbsd.h (CPP_SPEC): Remove.
256 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
257 * config/i386/netbsd.h (CPP_SPEC): Define.
258 * config/ns32k/netbsd.h (CPP_SPEC): Define.
259 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
260 * config/sparc/netbsd.h (CPP_SPEC): Define.
261 * config/vax/netbsd.h (CPP_SPEC): Define.
262
263 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
264
265 * read-rtl.c: Fix formatting.
266 * real.c: Likewise.
267 * recog.c: Likewise.
268 * regclass.c: Likewise.
269 * regmove.c: Likewise.
270 * reg-stack.c: Likewise.
271 * reload1.c: Likewise.
272 * reload.c: Likewise.
273 * resource.c: Likewise.
274 * rtlanal.c: Likewise.
275 * rtl.c: Likewise.
276 * rtl-error.c: Likewise.
277
278 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
279
280 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
281 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
282
283 2002-05-08 Bernd Schmidt <bernds@redhat.com>
284
285 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
286 use __SSE2__ macro instead.
287 * config/i386/xmmintrin.h: Likewise.
288
289 2002-05-08 Janis Johnson <janis187@us.ibm.com>
290
291 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
292 and use it in all invocations of these macros. Clean up comments.
293 * rtl.c (rtl_check_failed_flag): Add an argument for the name
294 of the flag access macro whose check failed.
295 * doc/rtl.texi (Flags): Document additional flag uses.
296
297 2002-05-08 Robert Spier <rspier@pobox.com>
298 Neil Booth <neil@daikokuya.demon.co.uk>
299
300 PR preprocessor/6521
301 * cppfiles.c (handle_missing_header): Don't do anything
302 different for <> includes.
303 doc:
304 * cppopts.texi: Update documentation for -MG.
305
306 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
307
308 * cpplex.c (cpp_interpret_charconst): Truncate as well as
309 sign-extend.
310 doc:
311 * cpp.texi: Clarify multichar charconst valuation.
312
313 2002-05-08 Mark Mitchell <mark@codesourcery.com>
314
315 * doc/invoke.texi: Document -mwindiss option.
316
317 2002-05-08 Jason Merrill <jason@redhat.com>
318
319 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
320
321 * dwarf2out.c (gen_type_die): Abort on broken recursion.
322
323 PR c++/6381
324 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
325 REAL_CST.
326
327 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
328
329 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
330 little-endian multilibs to override arm/thumb multilibs.
331 Do not build hardware floating point multilibs, nor apcs-26
332 multilibs for the Thumb.
333
334 2002-05-08 Mark Mitchell <mark@codesourcery.com>
335
336 PR c/6569.
337 * varasm.c (mark_weak): New function.
338 (merge_weak): Use it. Do not call declare_weak.
339 (declare_weak): Use merge_weak.
340
341 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
342
343 * cse.c (dead_libcall_p): Update counts.
344 (delete_trivially_dead_insns): Update call of dead_libcall_p.
345
346 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
347
348 * cfglayout.c (function_tail_eff_head): Rename to ...
349 (function_footer): ... this one.
350 (unlink_insn_chain): New functions.
351 (label_for_bb): Only call block_label and emit debug message.
352 (record_effective_endpoints): Actually unlink the headers and footers.
353 (fixup_reorder_cahin): Re-insert the unlinked sequences.
354 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
355 * cfglayout.h (struct reorder_block_def): New fields footer/header;
356 remove eff_head/eff_end.
357 * rtl.h (set_first_insn): Declare.
358 * emit-rtl.c (set_first_insn): New function.
359
360 * cfglayout.c (fixup_reorder_chain): Dump duplicated
361 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
362 cfg_layout_duplicate_bb): New global function.
363 (duplicate_insn_chain): New static function.
364 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
365 cfg_layout_duplicate_bb): Declare.
366 (struct reorder_block_def): Add "original" field.
367 * emit-rtl.c (emit_copy_of_insn_after): New function.
368 * rtl.h (emit_copy_of_insn_after): Declare.
369
370 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
371 (fixup_reorder_chain): properly handle edges to exit block.
372
373 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
374 Jan Hubicka <jh@suse.cz>
375
376 * basic-block.h (note_prediction_to_br_prob): declare.
377 * c-semantics.c: Inlucde predit.h
378 (expand_stmt): predict GOTO_STMT as not taken.
379 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
380 (cleanup_cfg): Do not free tail_recursion_list.
381 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
382 (flow_delete_block): Kill predictions past end of basic block.
383 * output.h (delete_unreachable_blocks): Declare.
384 * predict.c (predicted_by_p, process_note_predictions,
385 process_note_prediction, last_block_p): New function.
386 (estimate_probability): Bypass loop on PRED_CONTINUE;
387 do not handle noreturn heuristics; kill PRED_RETURN; add
388 PRED_EARLY_RETURN.
389 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
390 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
391 * predict.h (IS_TAKEN): New constant.
392 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
393 * rtl.c (NOTE_INSN_PREDICTION): New.
394 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
395 New macro.
396 (insn_note): add NOTE_INSN_PREDICTION.
397 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
398 CFG; free tail_recursion_label_list.
399 * stmt.c: Include predict.h;
400 (return_prediction): New.
401 (expand_value_return): Use it.
402 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
403
404 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
405
406 * config/mips/mips.md: Name the unspecs with define_constant.
407 (*HILO_delay): Rename to 'hilo_delay' (no star).
408 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
409 (reload_outdi, reload_outsi): Likewise.
410
411 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
412
413 * toplev.c: Fix formatting.
414
415 2002-05-07 Janis Johnson <janis187@us.ibm.com>
416
417 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
418 * configure.in (ac_rtlflag_checking): New.
419 * doc/install.texi (--enable-checking): Document RTL flag checking.
420
421 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
422
423 * c-common.c (c_common_init): Set options->unsigned_wchar.
424 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
425 group target dependencies.
426 (init_builtins, cpp_handle_option): Update.
427 * cpplex.c (cpp_interpret_charconst): Update.
428 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
429 signed_char to unsigned_char, group target dependencies.
430 * defaults.h (WCHAR_UNSIGNED): Remove.
431 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
432 config:
433 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
434 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
435 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
436 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
437 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
438 doc:
439 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
440
441 2002-05-07 Mark Mitchell <mark@codesourcery.com>
442
443 * fixinc/inclhack.def (windiss_math1): New fix.
444 (windiss_math2): Likewise.
445 (windiss_valist): Likewise.
446 * fixinc/fixincl.x: Regenerated.
447
448 2002-05-07 Andreas Jaeger <aj@suse.de>
449
450 * genautomata.c (output_internal_min_issue_delay_func): Add
451 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
452 (output_internal_trans_func): Likewise.
453
454 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
455
456 * pa.c (hppa_profile_hook): Use force_reg to get the address
457 of the profile hook into an appropriate pseudo register.
458
459 2002-05-07 Mark Mitchell <mark@codesourcery.com>
460
461 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
462 (LINK_START_SPEC): Handle it.
463 (LINK_OS_SPEC): Likewise.
464 (CPP_SPEC): Likewise.
465 (STARTFILE_SPEC): Likewise.
466 (LIB_SPEC): Likewise.
467 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
468 all platforms.
469 (CRTSAVRES_DEFAULT_SPEC): New macro.
470 (LIB_WINDISS_SPEC): New macro.
471 (CPP_OS_WINDISS_SPEC): Likewise.
472 (STARTFILE_WINDISS_SPEC): Likewise.
473 (ENDFILE_WINDISS_SPEC): Likewise.
474 (LINK_START_WINDISS_SPEC): Likewise.
475 (LINK_OS_WINDISS_SPEC): Likewise.
476 * config/rs6000/windiss.h: New file.
477
478 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
479
480 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
481
482 2002-05-06 David S. Miller <davem@redhat.com>
483
484 * config/sparc/sparc.md (shift insns): Do not mask off
485 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
486 take care of it.
487
488 2002-05-06 Richard Henderson <rth@redhat.com>
489
490 PR c++/6212
491 * expr.c (highest_pow2_factor_for_type): New.
492 (expand_assignment): Use it.
493
494 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
495
496 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
497 unspec_volatile.
498 ("altivec_mfvscr"): Same.
499
500 2002-05-06 Janis Johnson <janis187@us.ibm.com>
501
502 * rtl.h (struct rtx_def): Update comments.
503 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
504 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
505 RTL_FLAG_CHECK macros with list of expected RTL codes.
506 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
507 (rtl_check_failed_flag): New.
508 * reload1.c (reload): Use REG macro before changing rtx to MEM.
509 (reload_cse_noop_set_p): Check rtx code before using access macro.
510 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
511 before using access macro.
512
513 2002-05-06 Janis Johnson <janis187@us.ibm.com>
514
515 * doc/rtl.texi (Flags): Update to reflect current usage.
516
517 2002-05-06 Roger Sayle <roger@eyesopen.com>
518
519 PR opt/3995
520 * fold-const.c (sign_bit_p): New function.
521 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
522 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
523 Reapply fold when converting (A & C) == C into (A & C) != 0.
524 (fold_binary_op_with_conditional_arg): Fix typo in comment.
525
526 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
527
528 * c-common.c (warn_multichar): New.
529 (c_common_init): Set CPP's warn_multichar.
530 * c-common.h (warn_multichar): New.
531 * c-decl.c (warn_multichar): Remove.
532 * c-lex.c (lex_charconst): Update.
533 * c-tree.h (warn_multichar): Remove.
534 * cppexp.c (eval_token): Sign-extend charconst value.
535 * cppinit.c (cpp_create_reader): Set warn_multichar.
536 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
537 each character. Update prototype. Sign-extend the result.
538 * cpplib.h: Fix conditions.
539 (struct cpp_options): Add new warning flag.
540 (cpp_interpret_charconst): Update prototype.
541 doc:
542 * cpp.texi: Update documentation.
543
544 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
545
546 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
547 Fix typo in usage of allof instead of unit.
548
549 2002-05-06 Richard Henderson <rth@redhat.com>
550
551 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
552 and any jump or call for IN.
553
554 2002-05-06 Bernd Schmidt <bernds@redhat.com>
555
556 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
557 -msse2.
558 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
559
560 2002-05-06 Roger Sayle <roger@eyesopen.com>
561
562 * fold-const.c (lshift-double): Cast the high word to an unsigned
563 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
564 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
565 avoid compiler warning. (fold): Remove redundant code from
566 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
567
568 2002-05-06 Jeff Law <law@redhat.com>
569
570 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
571 * pa.c (pa_adjust_cost): Remove all true dependency cost
572 adjustments. Also remove support for non-DFA scheduling.
573 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
574 to adjust true dependency costs. Update various comments.
575 (7100lc, 7200, 7300 scheduling): Simplify by combining the
576 FP ALU & MPY units into a single unit.
577
578 2002-05-06 Catherine Moore <clm@redhat.com>
579
580 * config/v850/v850.c (compute_register_save_size): Make sure
581 to count all of the registers that will be saved.
582
583 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
584
585 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
586
587 2002-05-06 David S. Miller <davem@redhat.com>
588
589 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
590 allow result to overlap input operands in memory.
591
592 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
593
594 doc:
595 * cpp.texi: Update multichar charconst docs.
596
597 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
598
599 * cpplex.c (cpp_interpret_charconst): Sign-extend each
600 character. Don't ignore excess characters. Treat
601 multicharacter character constants as signed.
602 (cpp_parse_escape): Clarify diagnostic.
603
604 2002-05-05 Jakub Jelinek <jakub@redhat.com>
605
606 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
607 use add instead of shift.
608 (ashldi3_sp64): Likewise.
609 (ashlsi3_const1, ashldi3_const1): Remove.
610 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
611 * config/sparc/sparc.c (const1_operand): New.
612
613 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
614
615 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
616
617 2002-05-05 Jakub Jelinek <jakub@redhat.com>
618
619 PR target/6561
620 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
621
622 2002-05-05 Richard Henderson <rth@redhat.com>
623
624 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
625 memory latency adjustments.
626 (alpha_variable_issue): Remove.
627 (alpha_use_dfa_pipeline_interface): New.
628 (alpha_multipass_dfa_lookahead): New.
629 * config/alpha/alpha.md: Remove define_function_unit scheduling;
630 include new dfa scheduling.
631 (attr type): Add none.
632 (blockage): Use it.
633 * config/alpha/ev4.md: New.
634 * config/alpha/ev5.md: New.
635 * config/alpha/ev6.md: New.
636
637 2002-05-05 David S. Miller <davem@redhat.com>
638
639 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
640
641 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
642
643 * cse.c: Fix formatting.
644 * emit-rtl.c: Likewise.
645
646 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
647
648 * genautomata.c (initiate_states): Add additional guard to
649 initialize `units_array'.
650
651 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
652
653 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
654 process_unit_to_form_the_same_automaton_unit_lists,
655 form_the_same_automaton_unit_lists
656 check_unit_distributions_to_automata): New prototypes and
657 functions.
658 (check_automata): Rename it into `check_automata_insn_issues'.
659 (unit_decl): New fields `the_same_automaton_unit' and
660 `the_same_automaton_message_reported_p'.
661 (unit_decl_t): New typedef.
662 (the_same_automaton_lists): New gloval variable.
663 (unit_regexp, unit_set_el, units_array, units_cmp,
664 output_get_cpu_unit_code_func): Use the typedef.
665 (evaluate_max_reserv_cycles): Increment
666 `description->max_insn_reserv_cycles'.
667 (initiate_states): Don't increment `max_cycles_num'.
668 (transform_insn_regexps): Move code around transformation of
669 regexps from `generate'.
670 (generate): Remove call of `transform_insn_regexps'.
671 (expand_automata): Call `transform_insn_regexps' and
672 `check_unit_distributions_to_automata'. Check errors before
673 `generate'.
674
675 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
676 automaton `ultrasparc3_1'.
677
678 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
679
680 * c-common.c (c_common_init): Set up CPP arithmetic.
681 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
682 something reasonable for the host.
683 (sanity_checks): Add checks.
684 (cpp_read_main_file): Call sanity_checks() from here...
685 (cpp_post_options): ... not here.
686 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
687 * cpplib.h (struct cpp_options): New member int_precision.
688
689 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
690
691 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
692
693 2002-05-04 David S. Miller <davem@redhat.com>
694
695 * config/sparc/linux.h, config/sparc/linux64.h
696 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
697
698 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
699 more RTX codes.
700 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
701
702 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
703 of SETs.
704
705 2002-05-05 Tim Josling <tej@melbpc.org.au>
706
707 * treelang; New directory for new sample language treelang.
708
709 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
710
711 * Makefile.in (c-lex.o): Update.
712 * c-lex.c: Include target.h.
713 (cb_register_builtins): New.
714 (init_c_lex): Set builtins callback.
715 * c-lex.h (cpp_define, cpp_assert): New prototypes.
716 * cppinit.c (init_builtins): Use callback, including for
717 GXX_WEAK.
718 * cpplib.h (struct cpp_callbacks): New member.
719 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
720 (TARGET_INITIALIZER): Update.
721 * target.h (struct gcc_target): New hook.
722 * tree.c (default_register_cpp_builtins): New.
723 * tree.h (default_register_cpp_builtins): New.
724 doc:
725 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
726
727 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
728
729 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
730 (cpp_post_options): Move sanity checks to...
731 (sanity_checks): New.
732 * cpplex.c (maybe_read_ucs): Fix prototype.
733 (parse_string, cpp_parse_escape): Cast for %c format specifier.
734 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
735 if necessary.
736
737 2002-05-04 Bernd Schmidt <bernds@redhat.com>
738
739 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
740 builtins. Use V2DI patterns instead of TI for logical operations.
741 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
742 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
743 (ix86_expand_builtins): Change the pattern used for movntdq.
744 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
745 sse2_nandv2di3): New patterns.
746 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
747 on operands.
748 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
749 (cvtdq2pd): Correct mode on operand 1.
750 (sse2_umulsidi3): Describe without unspec.
751 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
752 machine modes.
753 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
754 (ashlv2di3): Likewise, from sse2_ashlv2di3.
755 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
756 ashlv4si3, ashlv2di3): Use SImode for shift count.
757 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
758 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
759 New patterns.
760 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
761 New typedefs.
762 (__m128i, __m128d): New macros.
763 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
764 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
765 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
766 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
767 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
768 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
769 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
770 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
771 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
772 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
773 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
774 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
775 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
776 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
777 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
778 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
779 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
780 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
781 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
782 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
783 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
784 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
785 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
786 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
787 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
788 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
789 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
790 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
791 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
792 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
793 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
794 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
795 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
796 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
797 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
798 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
799 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
800 functions.
801 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
802 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
803
804 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
805
806 * dwarf2out.c: Fix formatting.
807 * varasm.c: Likewise.
808
809 2002-05-04 David Edelsohn <edelsohn@gnu.org>
810
811 PR c/6543
812 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
813 clobber and use result as temporary value.
814
815 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
816
817 * expr.c (force_operand): Use expand_simple_* to handle more
818 cases.
819
820 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
821
822 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
823 and sign-extension.
824 (lex_charconst): Update for change in prototype of
825 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
826 appropriately.
827 * cpphash.h (BITS_PER_CPPCHAR_T): New.
828 * cppinit.c (cpp_create_reader): Initialize them for no
829 change in semantics.
830 (cpp_post_options): Add sanity checks.
831 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
832 and truncation issues. Calculate in type cppchar_t.
833 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
834 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
835 run-time dependent precision correctly. Return whether the
836 result is signed or not.
837 * cpplib.c (dequote_string): Use cppchar_t; update.
838 * cpplib.h (cppchar_signed_t): New.
839 struct cpp_options): New precision members.
840 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
841 * cppexp.c (eval_token): Update.
842
843 2002-05-03 David S. Miller <davem@redhat.com>
844
845 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
846 * config/sparc/sparc.c (sparc_rtx_costs): New function
847 implementing RTX_COSTS and CONST_COSTS.
848 * config/sparc/sparc.h (CONST_COSTS): Delete.
849 (RTX_COSTS_CASES): Define.
850 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
851 the work.
852
853 * config/sparc/sparc.md (DFA schedulers): Split out...
854 * config/sparc/cypress.md, config/sparc/hypersparc.md,
855 config/sparc/sparclet.md, config/sparc/supersparc.md,
856 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
857
858 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
859 checks on it, always defined for Sparc.
860
861 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
862 Tweak, and add more detailed comments.
863
864 2002-05-03 Zack Weinberg <zack@codesourcery.com>
865
866 * Re-apply patch accidentally reverted with
867 DFA scheduler merge: remove all rules and variables to slurp
868 source files out of libiberty and rebuild them with HOST_CC.
869 ($(HOST_PREFIX_1)varray.o): New rule.
870 (genattrtab rule): Word wrap.
871
872 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
873
874 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
875 (CPP_SUBTARGET_SPEC): Define.
876 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
877 cpp_subtarget specs.
878 (CPP_SPEC): Redefine to include %(cpp_subtarget).
879
880 2002-05-03 David S. Miller <davem@redhat.com>
881
882 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
883 * target.h (struct gcc_target): Delete cycle_display member.
884
885 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
886 (rtx_needs_barrier): Delete reference to cycle_display unspec.
887 (ia64_sched_reorder2): Mention need for cycle display handling
888 once such notes exist.
889
890 2002-05-03 Richard Henderson <rth@redhat.com>
891
892 * real.c (etoasc): Strip most trailing zeros for clarity.
893 * sched-vis.c: Include real.h.
894 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
895 * Makefile.in (sched-vis.o): Add real.h.
896
897 2002-05-03 David S. Miller <davem@redhat.com>
898
899 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
900 no longer needed.
901
902 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
903
904 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
905 when we get an out of range literal.
906 (altivec_expand_ternop_builtin): Same.
907 (altivec_expand_unop_builtin): Same.
908 (altivec_expand_builtin): Same, for dss.
909 (altivec_expand_builtin): Use trees instead of rtl when
910 determining literal argument validity.
911
912 2002-05-03 David S. Miller <davem@redhat.com>
913
914 Delete cycle display scheduling hook.
915 * config/ia64/ia64.c (ia64_cycle_display,
916 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
917 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
918 and use emit_insn_before instead of ia64_emit_insn_before.
919 * config/ia64/ia64.md (unspec usage): Delete cycle display.
920 (cycle_display): Delete insn pattern.
921 * config/sparc/sparc.md (unspec usage): Delete cycle display.
922 (cycle_display): Delete insn pattern.
923 * config/sparc/sparc.c (sparc_cycle_display,
924 TARGET_SCHED_CYCLE_DISPLAY): Delete.
925 * doc/md.texi (cycle_display): Don't mention.
926 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
927
928 2002-05-03 Richard Henderson <rth@redhat.com>
929
930 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
931 * recog.h: Declare them.
932
933 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
934 * config/sparc/sparc.md: Use store_data_bypass_p instead.
935 * config/sparc/sparc-protos.h: Update.
936
937 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
938
939 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
940 -D__arch64__. Add -D_LP64.
941 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
942 from sparc.h.
943 (CPP_ARCH64_SPEC): Likewise.
944 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
945 (NO_BUILTIN_SIZE_TYPE): Undef.
946
947 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
948
949 * genautomata.c (min_issue_delay_pass_states): Change return type
950 in the prototype.
951 (min_issue_delay_pass_states): Change the algorithm.
952 (min_issue_delay): Set up min_insn_issue_delay for the state.
953 (output_min_issue_delay_table): Interchange the nested loops and
954 and initiate min_insn_issue_delay for states.
955
956 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
957
958 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
959 jump is simplejump.
960
961 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
962
963 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
964 sequence.
965
966 2002-05-03 Richard Henderson <rth@redhat.com>
967
968 PR opt/6534
969 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
970 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
971 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
972 code before JUMP, not EARLIEST.
973
974 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
975
976 * c-format.c (check_format_info_main): Don't check for presence of
977 parameter for * width until after operand number has been read,
978 and only check for it if format parameters are available.
979 Fixes PR c/6547.
980
981 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
982
983 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
984 (LINK_SPEC): Undef before defining.
985
986 2002-05-03 Jakub Jelinek <jakub@redhat.com>
987
988 PR preprocessor/6489
989 * tradcpp.c (fixup_newlines): New.
990 (main, finclude): Use it.
991
992 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
993
994 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
995 * config/mips/mips.c (mips_unique_section): Strip encoding from
996 decl name.
997
998 2002-05-03 Jakub Jelinek <jakub@redhat.com>
999
1000 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1001 mode.
1002
1003 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1004
1005 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1006 (Specific): Removed buildstats references.
1007 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1008 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1009 Accomodate Solaris versions beyond 8.
1010 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1011 (Specific, *-*-solaris2.8): Removed, obsolete.
1012
1013 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1014
1015 PR target/6542
1016 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1017 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1018 fill leaf_reg_remap with identity.
1019 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1020
1021 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1022
1023 * config/h8300/crti.asm: Remove trailing spaces.
1024 * config/h8300/h8300.c: Likewise.
1025 * config/h8300/lib1funcs.asm: Likewise.
1026
1027 2002-05-02 Jason Merrill <jason@redhat.com>
1028
1029 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1030 * c-decl.c (c_init_decl_processing): Use it.
1031 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1032 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1033 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1034
1035 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1036
1037 * regrename.c: Fix formatting.
1038 * tree.c: Likewise.
1039
1040 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1041
1042 * i386.md (attribute memory): Handle compares properly.
1043
1044 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1045
1046 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1047 to none.
1048
1049 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1050
1051 * function.c: Fix formatting.
1052
1053 2002-05-02 Jan Hubicka <jh@suse.cz>
1054
1055 * haifa-sched.c (schedule_insn): Print table of instructions and
1056 reservations.
1057 (sched_block): Do not print ready list at verbosity level 1.
1058 * sched-vis.c (print_insn): Make global.
1059 * sched-ebb.c (ebb_print_insn): Rename from...
1060 (print_insn): ... this one.
1061 * sched-int.h (print_insn): Declare
1062
1063 2002-05-02 Richard Henderson <rth@redhat.com>
1064
1065 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1066 emitted by cycle_display.
1067
1068 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1069
1070 * doc/install.texi (*-*-freebsd*): Update to latest status.
1071
1072 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1073
1074 PR target/6540
1075 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1076 * config/float-sparc.h: Assume 128-bit long double if
1077 __LONG_DOUBLE_128__ is defined.
1078
1079 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1080
1081 * genattrtab.c (write_function_unit_info): Add a dummy element
1082 when num_units == 0.
1083
1084 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1085
1086 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1087 TYPE_MODE (double_type_node) instead of DFmode.
1088
1089 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1090
1091 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1092 jumps post reload.
1093 * toplev.c (rest_of_compilation): Revert Richard's patch.
1094
1095 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1096
1097 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1098
1099 2002-05-02 Catherine Moore <clm@redhat.com>
1100
1101 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1102
1103 2002-05-02 Kazu Hirata <kazu@hxi.com>
1104
1105 * combine.c: Fix comment typos.
1106 * expr.c: Likewise.
1107 * genautomata.c: Likewise.
1108 * stmt.c: Likewise.
1109 * tree.h: Likewise.
1110
1111 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1112
1113 * doc/install.texi: State GNAT version requirements.
1114
1115 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1116
1117 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1118 of the frame pointer or arg pointer register which strict register
1119 checking is not enabled.
1120
1121 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1122
1123 * gcc.dg/altivec-8.c: New.
1124
1125 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1126 PRE_INC and PRE_DEC for altivec modes.
1127
1128 2002-05-01 Bruce Korb <bkorb@gnu.org>
1129
1130 * fixinc/check.tpl(set-writable): make sure the function exists first
1131 * fixinc/inclhack.def(alpha_assert): fix test_text
1132 * fixinc/tests/base/assert.h: add in missing result
1133
1134 2002-05-01 Jeff Law <law@redhat.com>
1135
1136 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1137 'T' constraint.
1138
1139 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1140
1141 * dbxout.c (dbxout_type): Emit size information for range types,
1142 as well, but only when using GDB extensions.
1143
1144 2002-05-01 Richard Henderson <rth@redhat.com>
1145
1146 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1147 target-independent gnu binutils date test.
1148
1149 2002-05-01 Richard Henderson <rth@redhat.com>
1150
1151 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1152 info before expunging the block.
1153
1154 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1155
1156 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1157 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
1158 -M -or -MM is in effect.
1159
1160 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1161
1162 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1163 A29k configurations.
1164 * doc/install.texi: Update to match.
1165
1166 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1167
1168 PR bootstrap/6514
1169 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1170 for duplicates. Always loop over whole list.
1171
1172 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1173
1174 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1175
1176 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1177
1178 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1179 support routines.
1180
1181 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1182
1183 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1184
1185 2002-05-01 David Edelsohn <edelsohn@gnu.org>
1186
1187 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1188 (nabs_nopower): Same.
1189 (floatdisf2): New pattern.
1190 (absdi2): Convert to define_insn_and_split.
1191 (nabsdi2): Same.
1192 (trunctfsf2): Same.
1193 (floatditf2): Same.
1194 (floatsitf2): Same.
1195 (fix_trunctfdi2): Same.
1196 (fix_trunctfsi2): Same.
1197
1198 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
1199
1200 * doc/install.texi: Update Texinfo version requirement
1201 documentation.
1202
1203 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1204
1205 PR target/6512, PR target/5628
1206 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
1207 when memory is not aligned.
1208 (movdf_insn_v9only_vis): Likewise.
1209 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
1210 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
1211 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
1212
1213 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
1214
1215 * gcc.dg/altivec-7.c: New.
1216
1217 * config/rs6000/altivec.h: Cleanup.
1218
1219 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
1220
1221 * doc/invoke.texi (Option Summary): Add -mvrsave=.
1222 (RS/6000 and PowerPC Options): Document -mvrsave=.
1223
1224 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
1225 (rs6000_altivec_vrsave_string): Same.
1226 (rs6000_override_options): Call rs6000_parse_vrsave_option.
1227 (rs6000_parse_vrsave_option): New.
1228 (rs6000_stack_info): Only generate vrsave instructions when
1229 TARGET_ALTIVEC_VRSAVE.
1230
1231 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
1232 (rs6000_altivec_vrsave_string): Define extern.
1233 (rs6000_altivec_vrsave): Same.
1234 (TARGET_ALTIVEC_VRSAVE): New.
1235
1236 2002-04-30 Richard Henderson <rth@redhat.com>
1237
1238 PR opt/6516
1239 * toplev.c (rest_of_compilation): Don't run cross-jump before
1240 bb-reorder.
1241
1242 2002-04-30 Tom Rix <trix@redhat.com>
1243
1244 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
1245 check which_alternative.
1246
1247 2002-04-30 Kazu Hirata <kazu@hxi.com>
1248
1249 * cpplex.c: Fix comment formatting.
1250 * function.c: Likewise.
1251 * integrate.c: Likewise.
1252 * regrename.c: Likewise.
1253 * sibcall.c: Likewise.
1254 * simplify-rtx.c: Likewise.
1255 * tree-inline.c: Likewise.
1256
1257 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1258
1259 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
1260 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
1261 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
1262 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
1263 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
1264 * pa/x-ada: New file. Define ADA_CFLAGS.
1265
1266 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
1267
1268 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
1269 from MMIX_LAST_REGISTER_FILE_REGNUM.
1270 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
1271 (struct machine_function): New member highest_saved_stack_register
1272 previously static variable in mmix.c.
1273 (MACHINE_DEPENDENT_REORG): Define.
1274 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
1275 (MMIX_OUTPUT_REGNO): New.
1276 (mmix_target_asm_function_prologue): Move calculation of last used
1277 saved-stack-register into...
1278 (mmix_machine_dependent_reorg): New function. Update to also handle
1279 !TARGET_ABI_GNU.
1280 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
1281 register names, simplify somewhat by new variable regno.
1282 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
1283 register.
1284 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
1285 emitting register names.
1286 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
1287 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
1288 Remove fixed FIXME.
1289 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
1290 Declare.
1291
1292 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
1293
1294 2002-04-30 Richard Henderson <rth@redhat.com>
1295
1296 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
1297 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
1298 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
1299 emit_tfmode_cvt): New.
1300 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
1301 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
1302 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
1303 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
1304 * config/sparc/sparc-protos.h: Update.
1305
1306 2002-04-30 Janis Johnson <janis187@us.ibm.com>
1307
1308 * install.texi (Final install): Add to the list of info to include
1309 in a report of a successful bootstrap, and add link to 3.1 list.
1310
1311 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
1312
1313 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
1314 (mode): Add vector modes
1315 (i387): Kill attribute.
1316 (unit): New attribute.
1317 (length_immediate): Grok new types.
1318 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
1319 (modrm): Use "unit".
1320 (memory): Handle MMX/SSE properly.
1321 (scheduling descriptions): Kill uses of fop1.
1322 (sse, mmx, fp patterns): Set type and mode properly.
1323
1324 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
1325
1326 * pa.c (override_options): Default to PA8000 scheduling.
1327 * doc/invoke.texi (HP-PA options): Mention newly added 7300
1328 scheduling parameter.
1329
1330 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
1331 handling of double precision multiplies.
1332
1333 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
1334 fpdiv and fpsqrt instructions.
1335 (7200 & 7300 scheduling): Fix typo in handling of
1336 store-load and store-store penalties.
1337
1338 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1339
1340 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
1341 mips. Add two missing commas.
1342
1343 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
1344
1345 * doc/contrib.texi (Contributors): Update Paolo Carlini's
1346 and Benjamin Kosnik's entries.
1347
1348 2002-04-29 David S. Miller <davem@redhat.com>
1349
1350 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
1351 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
1352 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
1353 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1354
1355 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1356
1357 * combine.c (find_split_point): Use gen_int_mode.
1358
1359 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
1360
1361 Merging code from dfa-branch:
1362
1363 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
1364
1365 * genautomata.c (output_reserv_sets): Fix typo.
1366
1367 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
1368
1369 * genautomata.c (output_reserv_sets): Remove
1370 next_cycle_output_flag.
1371
1372 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
1373
1374 * sched-rgn.c (init_ready_list): Make the DFA code handle
1375 USE/CLOBBER insns in the same way as the traditional
1376 scheduler.
1377 (new_ready): Similarly..
1378
1379 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
1380
1381 * haifa-sched.c (schedule_block): Change the DFA state only after
1382 issuing insn.
1383
1384 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
1385
1386 * pa.c (hppa_use_dfa_pipeline_interface): New function.
1387 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1388 (override_options): Add PA7300 scheduling support.
1389 (pa_adjust_cost): Update various comments. Properly
1390 handle anti and output dependencies when using the
1391 DFA scheduler.
1392 (pa_issue_rate): Add PA7300 scheduling support.
1393 (pa_can_combine_p): Call extract_insn before calling
1394 constrain_operands (taken from mainline tree).
1395 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
1396 * pa.md (cpu attr): Add 7300. Rewrite pipeline
1397 descriptions using DFA descriptions. Add PA7300
1398 scheduling support.
1399
1400 2002-03-30 David S. Miller <davem@redhat.com>
1401
1402 Add UltraSPARC-III DFA scheduling support.
1403 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
1404 Update FP conditional move on register insn patterns to use it, as
1405 appropriate.
1406 (define_attr cpu): Add ultrasparc3.
1407 (define_attr us3load_type): New, update integer load patterns to
1408 set it, as appropriate.
1409 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
1410 (rest): Add UltraSPARC3 scheduling description.
1411 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
1412 (PROCESSOR_ULTRASPARC3): New.
1413 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
1414 ({ASM,CPP}_CPU_SPEC): Likewise.
1415 (REGISTER_MOVE_COST): Likewise.
1416 (RTX_COSTS): Likewise.
1417 * config/sparc/sparc.c (sparc_override_options,
1418 sparc_initialize_trampoline, sparc64_initialize_trampoline,
1419 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1420 sparc_issue_rate): Likewise.
1421 * config/sparc/sol2.h: Likewise.
1422 * config/sparc/sol2-sld-64.h: Likewise.
1423 * config/sparc/linux64.h: Likewise.
1424
1425 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
1426
1427 * doc/md.texi: Add comments about usage the latency time for the
1428 different dependencies and about case when two or more conditions
1429 in different define_insn_reservations returns TRUE for an insn.
1430
1431 * doc/md.texi: Add reference for automaton based pipeline
1432 description.
1433
1434 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
1435
1436 * doc/passes.texi: Add missed information about genattrtab.
1437
1438 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
1439
1440 * genautomata.c (output_automata_list_transition_code): Check
1441 automata_list on NULL.
1442
1443 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
1444
1445 * genautomata.c (output_insn_code_cases,
1446 output_automata_list_min_issue_delay_code,
1447 output_automata_list_transition_code,
1448 output_automata_list_state_alts_code): Comment the functions.
1449
1450 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
1451
1452 * genautomata.c (automata_list_el_t): New typedef.
1453 (get_free_automata_list_el,free_automata_list_el,
1454 free_automata_list, automata_list_hash, automata_list_eq_p,
1455 initiate_automata_lists, automata_list_start, automata_list_add,
1456 automata_list_finish, finish_automata_lists,
1457 output_insn_code_cases, output_automata_list_min_issue_delay_code,
1458 output_automata_list_transition_code,
1459 output_automata_list_state_alts_code, add_automaton_state,
1460 form_important_insn_automata_lists): New functions and prototypes.
1461 (insn_reserv_decl): Add members important_automata_list and
1462 processed_p.
1463 (ainsn): Add members important_p.
1464 (automata_list_el): New structure.
1465 (first_free_automata_list_el, current_automata_list,
1466 automata_list_table): New global variables.
1467 (create_ainsns): Initiate member important_p.
1468 (output_internal_min_issue_delay_func): Generate the switch and
1469 call output_insn_code_cases.
1470 (output_internal_trans_func, output_internal_state_alts_func):
1471 Ditto.
1472 (generate): Call initiate_automata_lists.
1473 (automaton_states): New global variable.
1474 (expand_automata): Call form_important_insn_automata_lists.
1475 (write_automata): Call finish_automata_lists.
1476
1477 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
1478
1479 * genautomata.c (add_excls, add_presence_absence): Check that
1480 cpu units in the sets belong the same automaton.
1481
1482 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
1483 about that cpu units in the sets belong the same automaton.
1484
1485 * doc/md.texi: Ditto.
1486
1487 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
1488 Nitin Gupta <niting@noida.hcltech.com>
1489
1490 * config/sh/sh.c (sh_use_dfa_interface): New function.
1491
1492 (sh_issue_rate): New Function.
1493 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
1494 TARGET_SCHED_ISSUE_RATE: define.
1495
1496 * config/sh/sh.md: Add DFA based pipeline description for SH4.
1497
1498 (define_attr insn_class): New attribute used for DFA
1499 scheduling.
1500 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
1501 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
1502 cmpeqdi_t): Likewise.
1503
1504 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
1505 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
1506 ex_group.
1507 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
1508
1509 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1510
1511 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
1512 break.
1513
1514 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1515
1516 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
1517 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
1518 necessary.
1519 (output_dfa_start_func): Initiate new variable insn_codes_length,
1520 (write_automata): Output definition of the new variable.
1521
1522 2001-10-02 David S. Miller <davem@redhat.com>
1523
1524 * haifa-sched.c (advance_one_cycle): New function.
1525 (schedule_block): Use it.
1526 (queue_to_ready): Use it, and also make sure to advance the DFA
1527 state on all stall cycles, not just those where insn_queue links
1528 are found.
1529
1530 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
1531
1532 * haifa-sched.c (max_issue): Remove last_p argument. Only return
1533 non-zero if the highest-priority instruction could be scheduled.
1534 (choose_ready): Remove last argument from max_issue call.
1535
1536 2001-09-28 David S. Miller <davem@redhat.com>
1537
1538 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
1539 ultrasparc and 3 for other multi-issue sparcs.
1540
1541 2001-09-27 David S. Miller <davem@redhat.com>
1542
1543 * config/sparc/sparc.md (cycle_display): New pattern.
1544 * config/sparc/sparc.c (sparc_cycle_display): New.
1545 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
1546
1547 2001-09-25 David S. Miller <davem@redhat.com>
1548
1549 Convert all of Sparc scheduling to DFA
1550 * config/sparc/sparc.md: Kill all define_function_unit
1551 directives and replace with DFA equivalent.
1552 * config/sparc/sparc.c (ultrasparc_adjust_cost,
1553 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
1554 ultra_fpmode_conflict_exists, ultra_find_type,
1555 ultra_build_types_avail, ultra_flush_pipeline,
1556 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
1557 ultrasparc_variable_issue, ultrasparc_sched_init,
1558 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
1559 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
1560 ultra_cur_hist, ultra_cycles_elapsed): Kill.
1561 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1562 ultrasparc_store_bypass_p): New.
1563 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
1564 Declare.
1565
1566 2001-09-24 David S. Miller <davem@redhat.com>
1567
1568 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
1569 ready->vec[foo] not ready[foo].
1570
1571 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1572
1573 * doc/md.texi: Correct examples for define_insn_reservations
1574 `mult' and `div'.
1575
1576 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1577
1578 * genautomata.c (create_automata): Print message about creation of
1579 each automaton.
1580 (generate): Remove printing meease about creation of
1581 automata.
1582
1583 2001-09-05 David S. Miller <davem@redhat.com>
1584
1585 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
1586 * config/sparc/linux64.h: Likewise.
1587
1588 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
1589
1590 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
1591 schedule_block, sched_init, sched_finish): Add missed calls of
1592 use_dfa_pipeline_interface.
1593
1594 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
1595 Ditto.
1596
1597 * sched-vis.c (get_visual_tbl_length): Ditto.
1598
1599 2001-08-27 Richard Henderson <rth@redhat.com>
1600
1601 * genattr.c (main): Emit state_t even when not doing scheduling.
1602
1603 2001-08-27 Richard Henderson <rth@redhat.com>
1604
1605 * genautomata.c (expand_automata): Always create a description.
1606
1607 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
1608
1609 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
1610 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
1611 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
1612 RTL constructions.
1613
1614 * genattr.c (main): New variable num_insn_reservations. Increase
1615 it if there is DEFINE_INSN_RESERVATION. Output automaton based
1616 pipeline hazard recognizer interface.
1617
1618 * genattrtab.h: New file.
1619
1620 * genattrtab.c: Include genattrtab.h.
1621 (attr_printf, check_attr_test, make_internal_attr,
1622 make_numeric_value): Move protypes into genattrtab.h. Define them
1623 as external.
1624 (num_dfa_decls): New global variable.
1625 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
1626 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
1627 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
1628 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
1629
1630 * genautomata.c: New file.
1631
1632 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
1633
1634 * sched-int.h: (curr_state): Add the external definition for
1635 automaton pipeline interface.
1636 (haifa_insn_data): Add comments for members blockage and units.
1637
1638 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1639 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1640 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1641 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1642 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1643 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1644 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
1645 macros.
1646 (TARGET_SCHED): Use the new macros.
1647
1648 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
1649 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
1650 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
1651 dfa_bubble): New members in gcc_target.sched.
1652
1653 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
1654 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
1655 (insn_queue): Redefine it as pointer to array.
1656 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
1657 INSN_QUEUE_SIZE.
1658 (max_insn_queue_index_macro_value): New variable.
1659 (curr_state, dfa_state_size, ready_try): New varaibles for
1660 automaton interface.
1661 (ready_element, ready_remove, max_issue): New function prototypes
1662 for automaton interface.
1663 (choose_ready): New function prototype.
1664 (insn_unit, blockage_range): Add comments.
1665 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
1666 FUNCTION_UNITS_SIZE == 0.
1667 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
1668 actual_hazard, potential_hazard): Add comments.
1669 (insn_cost): Use cost -1 as undefined value. Remove
1670 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
1671 pipeline interface.
1672 (ready_element, ready_remove): New functions for automaton
1673 interface.
1674 (schedule_insn): Add new code for automaton pipeline interface.
1675 (queue_to_ready): Add new code for automaton pipeline interface.
1676 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
1677 (debug_ready_list): Print newline when the queue is empty.
1678 (max_issue): New function for automaton pipeline interface.
1679 (choose_ready): New function.
1680 (schedule_block): Add new code for automaton pipeline interface.
1681 Print ready list before scheduling each insn.
1682 (sched_init): Add new code for automaton pipeline interface.
1683 Initiate insn cost by -1.
1684 (sched_finish): Free the current automaton state and finalize
1685 automaton pipeline interface.
1686
1687 * sched-rgn.c: Include target.h.
1688 (init_ready_list, new_ready, debug_dependencies): Add new code for
1689 automaton pipeline interface.
1690
1691 * sched-vis.c: Include target.h.
1692 (get_visual_tbl_length): Add code for automaton interface.
1693 (target_units, print_block_visualization): Add comments.
1694
1695 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
1696 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
1697 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
1698 (getruntime.o, genautomata.o): New entries.
1699 (genattrtab.o): Add new dependency file genattrtab.h.
1700 (genattrtab): Add new dependencies. Link it with `libm.a'.
1701 (getruntime.o, hashtab.o): New entries for canadian cross.
1702
1703 * doc/md.texi: Description of automaton based model.
1704
1705 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
1706 Add comments.
1707 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1708 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1709 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1710 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1711 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1712 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1713 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
1714 hook descriptions.
1715 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
1716 MAX_DFA_ISSUE_RATE): New macro descriptions.
1717
1718 * doc/contrib.texi: Add dfa based scheduler contribution.
1719
1720 * doc/gcc.texi: Add more information about genattrtab.
1721
1722 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1723
1724 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
1725 adjust_address_nv call.
1726
1727 2002-04-29 Janis Johnson <janis187@us.ibm.com>
1728
1729 * doc/install.texi (Testing): Provide additional information, and
1730 a stronger encouragement, for running the testsuites.
1731
1732 2002-04-29 DJ Delorie <dj@redhat.com>
1733
1734 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
1735 given in upper case.
1736
1737 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1738
1739 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
1740 Solaris 2 <widec.h> if missing.
1741 * fixinc/fixincl.x: Regenerate.
1742 * fixinc/tests/base/widec.h: New file.
1743
1744 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
1745
1746 * toplev.c (f_options): Add "profile" switch so that
1747 -fno-profile can be used to disable -p.
1748
1749 2002-04-29 Bernd Schmidt <bernds@redhat.com>
1750
1751 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
1752 UV2DImode.
1753 * tree.c (build_common_tree_nodes_2): Likewise.
1754 * tree.h (enum tree_index): Likewise.
1755 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
1756
1757 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
1758 entries.
1759 (init_mmx_sse_builtins): Initialize SSE2 builtins.
1760 (ix86_expand_builtin): Add support for SSE2 builtins.
1761 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
1762 (VALID_SSE_REG_MODE): Use it.
1763 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
1764 (enum ix86_builtins): Add SSE2 builtins.
1765 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
1766 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
1767 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
1768 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
1769 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
1770 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
1771 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
1772 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
1773 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
1774 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
1775 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
1776 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
1777 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
1778 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
1779 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
1780 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
1781 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
1782 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
1783 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
1784 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
1785 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
1786 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
1787 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
1788 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
1789 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
1790 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
1791 lfence_insn): New patterns.
1792 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
1793 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
1794
1795 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
1796
1797 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
1798
1799 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1800
1801 * doc/contrib.texi (Contributors): Add Paolo Carlini and
1802 Janis Johnson.
1803 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
1804 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
1805 and CPU instead of cpu.
1806
1807 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1808
1809 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
1810 variables.
1811 (lang_independent_options): Add -fif-conversion, -fif-conversion2
1812 (rest_of_compilation): Do if conversion only when asked for.
1813 (parse_options_and_default_flags): Set new variables to 1 for -O1
1814 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
1815
1816 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1817
1818 * i386.c (dbx64_register_map): Fix typo.
1819
1820 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1821
1822 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
1823 real_one_half, real_bb_freq_max): New static variables.
1824 (debug_profile_bbauxs): Kill.
1825 (process_note_predictions): Kill unused variable.
1826 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
1827 volatile double.
1828 (propagate_freq): Use REAL_ARITHMETICS.
1829 (estimate_bb_frequencies): Likevise; init new static variables.
1830 * Makefile.in (predict.o): Add dependency on real.h
1831
1832 2002-04-28 David S. Miller <davem@redhat.com>
1833
1834 PR target/6500
1835 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
1836 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
1837 several {reads,writes} instead.
1838 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
1839 Define.
1840
1841 2002-04-27 David S. Miller <davem@redhat.com>
1842
1843 PR target/6494
1844 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
1845 of the stack bias.
1846
1847 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
1848 including signal.h and sys/ucontext.h, not needed.
1849
1850 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
1851
1852 * varasm.c (output_constant_def): Correct test for not calling
1853 ENCODE_SECTION_INFO for INTEGER_CST.
1854
1855 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
1856
1857 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
1858 keep most cases as function eval_token.
1859 (eval_token): New function.
1860 (_cpp_parse_expr): Read token here for improved diagnostics.
1861 Don't use op_as_text. Detect bad ':' here.
1862 (reduce): Don't detect bad ':' here.
1863 (op_as_text): Remove.
1864 * cpphash.h (_cpp_test_assertion): Change prototype.
1865 * cpplib.c (_cpp_test_assertion): Change prototype.
1866
1867 2002-04-28 Richard Henderson <rth@redhat.com>
1868
1869 PR c/5154
1870 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
1871 (ggc_mark_rtx_children): New.
1872
1873 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1874
1875 PR target/6496
1876 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
1877 after call peepholes for UltraSPARC.
1878 (call + jump 64-bit peepholes): Remove.
1879
1880 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1881
1882 PR c/6497
1883 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1884 result as temporary value.
1885
1886 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1887
1888 PR c++/6396
1889 * toplev.c (rest_of_compilation): Only run regrename and copy
1890 propagation if optimizing.
1891
1892 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1893
1894 PR optimization/6475
1895 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
1896 register of REGNO_DECL (i).
1897 * Makefile.in (reload1.o): Add $(TREE_H).
1898
1899 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
1900
1901 * cppexp.c (lex): Update to use state.skip_eval.
1902 (struct op): Remove prio and flags members.
1903 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
1904 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
1905 (LEFT_ASSOC): New macro.
1906 (optab): New table of operator priorities and flags.
1907 (SHIFT): Update.
1908 (_cpp_parse_expr): Clean up logic. Return bool. Use a
1909 malloc-ed parser stack.
1910 (reduce): New; reduce the operator stack.
1911 (_cpp_expand_op_stack): Expand the operator stack as necessary.
1912 * cpphash.h (struct op): Predeclare.
1913 (struct cpp_reader): New members op_stack, op_limit.
1914 (struct lexer_state): New member skip_eval.
1915 (_cpp_parse_expr): Update.
1916 (_cpp_expand_op_stack): New.
1917 * cpplib.c (do_if): Update.
1918 * cppinit.c (cpp_create_reader): Create op stack.
1919 (cpp_destroy): And destroy it.
1920 * cpplib.h (CPP_LAST_CPP_OP): Correct.
1921 (TTYPE_TABLE): Correct.
1922
1923 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1924
1925 PR c/6343
1926 * c-decl.c (duplicate_decls): Call merge_weak.
1927 * c-pragma.c (apply_pragma_weak): Warn about misuse.
1928 * output.h (merge_weak): Prototype merge_weak.
1929 * varasm.c (merge_weak): New function.
1930 (declare_weak): Make sure we don't give an error on VAR_DECLs.
1931 Mark RTL with SYMBOL_REF_WEAK.
1932
1933 2002-04-27 Kurt Garloff <garloff@suse.de>
1934
1935 * tree-inline.c (inlinable_function_p): Improve heuristics
1936 by using a smoother function to cut down allowable inlinable size.
1937 * param.def: Add parameters max-inline-insns-single,
1938 max-inline-slope, min-inline-insns that determine the exact
1939 shape of the above function.
1940 * param.h: Likewise.
1941
1942 2002-04-26 Richard Henderson <rth@redhat.com>
1943
1944 * c-parse.in (malloced_yyss, malloced_yyvs): New.
1945 (yyoverflow): Re-add. Set them.
1946 (free_parser_stacks): New.
1947 * c-common.h: Declare it.
1948 * c-lex.c (c_common_parse_file): Call it.
1949
1950 2002-04-26 Richard Henderson <rth@redhat.com>
1951
1952 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1953 for fallthru search.
1954
1955 2002-04-26 Eric Christopher <echristo@redhat.com>
1956
1957 PR optimization/3700
1958 * config/mips/mips.c (mips_issue_rate): Define. New function.
1959 (TARGET_SCHED_ISSUE_RATE): Use.
1960
1961 2002-04-25 David S. Miller <davem@redhat.com>
1962
1963 PR target/6422
1964 * reorg.c (optimize_skip): Do not allow exception causing
1965 instructions to be considered for delay slots.
1966 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
1967 (relax_delay_slots): Do not try to consider exception causing
1968 instructions as redundant.
1969
1970 2002-04-26 Richard Henderson <rth@redhat.com>
1971
1972 PR c/5225
1973 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1974
1975 2002-04-26 Mark Mitchell <mark@codesourcery.com>
1976
1977 PR bootstrap/6445
1978 * config/i386/i386.md (untyped_call): Return the value in a float
1979 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1980 TARGET_80387.
1981
1982 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
1983
1984 * tree.c (tree_int_cst_lt): Compare constants whose types differ
1985 in unsigned-ness correctly.
1986
1987 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1988
1989 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1990 portable runtime model.
1991
1992 2002-04-26 Richard Henderson <rth@redhat.com>
1993
1994 * c-parse.in (yyoverflow): Revert.
1995
1996 2002-04-26 David Edelsohn <edelsohn@gnu.org>
1997 Richard Henderson <rth@redhat.com>
1998
1999 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2000 result as temporary value.
2001
2002 2002-04-26 Richard Henderson <rth@redhat.com>
2003
2004 PR c/3581
2005 * c-common.c (fix_string_type): Split out of ...
2006 (combine_strings): ... here. Take a varray, not a tree list.
2007 (c_expand_builtin_printf): Use fix_string_type.
2008 * c-common.h: Update decls.
2009 * c-parse.in (string): Remove. Update all uses to use STRING
2010 instead, and not call combine_strings.
2011 (yylexstring): New.
2012 (_yylex): Use it.
2013 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2014 (build_asm_stmt): Likewise.
2015 * objc/objc-act.c (my_build_string): Use fix_string_type.
2016 (build_objc_string_object): Build varray for combine_strings.
2017
2018 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2019
2020 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2021 x86-64.
2022
2023 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
2024
2025 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2026 (HAVE_NO_R_OPERAND): Remove.
2027 (HAVE_VALUE): Remove.
2028 (op_to_prio): Update.
2029 (UNARY): Don't alter flags.
2030 (_cpp_parse_expr): want_value used to indicate whether
2031 a number or unary operator is expected next. Distinguish
2032 unary and binary +/-.
2033 (op_as_text): Update for unary operators.
2034
2035 2002-04-25 Richard Henderson <rth@redhat.com>
2036
2037 PR c/2161
2038 * c-parse.in (yyoverflow): New.
2039
2040 2002-04-25 Richard Henderson <rth@redhat.com>
2041
2042 PR c/2098
2043 * c-common.c (shorten_compare): Simplfy conditions leading to
2044 the generation of a warning.
2045
2046 2002-04-25 Richard Henderson <rth@redhat.com>
2047
2048 PR c/2035
2049 * expmed.c (extract_bit_field): Fall through to generic code rather
2050 than aborting on subreg special case.
2051
2052 2002-04-25 David S. Miller <davem@redhat.com>
2053
2054 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2055 for DECL being NULL.
2056
2057 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2058
2059 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2060
2061 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2062
2063 * c-decl.c (grokdeclarator): Remove outdated ??? note
2064 on invalid declaration of flexible array members.
2065
2066 2002-04-25 Richard Henderson <rth@redhat.com>
2067
2068 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2069
2070 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2071
2072 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2073 needed by the compiler, even if they are used as global regs.
2074
2075 2002-04-25 Matt Hiller <hiller@redhat.com>
2076
2077 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2078 functions.
2079 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2080 of the corresponding functions.
2081 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2082 New prototypes.
2083
2084 2002-04-25 Matt Hiller <hiller@redhat.com>
2085
2086 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2087
2088 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2089 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2090 registers, adjust comment accordingly.
2091 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2092 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2093 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2094 for coprocessor registers.
2095 (ADDITIONAL_REGISTER_NAMES): Include
2096 ALL_COP_ADDITIONAL_REGISTER_NAMES.
2097
2098 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2099 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2100 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2101 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2102 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2103
2104 (mips_char_to_class): Adjust comment to include coprocessor
2105 constraint letters.
2106
2107 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2108 New functions.
2109 (mips_reg_names, mips_regno_to_class): Include coprocessor
2110 information.
2111 (mips_sw_reg_names): Ditto, make non-static.
2112 (mips_move_1word): Handle moves to and from coprocessor registers.
2113 (mips_move_2words): Handle moves to and from coprocessor
2114 registers.
2115 (mips_class_max_nregs, mips_register_move_cost): Handle
2116 coprocessor register classes.
2117 (override_options): Initialize mips_char_to_class and
2118 mips_hard_regno_mode_ok properly for coprocessor registers.
2119
2120 * config/mips/mips.md (movdi_internal, movdi_internal2,
2121 movsi_internal1, movsi_internal2): Add constraint-sets for
2122 coprocessor registers.
2123 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2124 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2125 isn't mips.
2126 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2127 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2128 isn't mips.
2129 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2130 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2131 isn't mips.
2132 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2133 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2134 isn't mips.
2135
2136 * doc/tm.texi: Document feature.
2137
2138 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2139
2140 * integrate.c (function_attribute_inlinable_p): Simplify.
2141 Check the table pointer is not NULL.
2142
2143 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2144
2145 * doc/c-tree.texi: Fix typo in introduction.
2146
2147 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2148
2149 * c-common.h (c_common_parse_file): Update.
2150 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2151 * c-lex.c (YYDEBUG): Get from c-lex.h.
2152 (c_common_parse_file): Update.
2153 * c-lex.h (YYDEBUG, yydebug): New.
2154 * c-parse.in (YYDEBUG): Get from c-lex.h.
2155 (c_set_yydebug): Remove.
2156 * c-tree.h (c_set_yydebug): Remove.
2157 * langhooks-def.h (lhd_do_nothing_i): New.
2158 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2159 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2160 * langhooks.c (lhd_do_nothing_i): New.
2161 (lhd_set_yydebug): Remove.
2162 * langhooks.h (struct lang_hooks): Update.
2163 * toplev.c (set_yydebug): New.
2164 (compile_file): Update call to parse_file hook.
2165 (decode_d_option): Update.
2166 objc:
2167 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2168
2169 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2170
2171 * loop.c (load_mems): Don't change the interface of called functions.
2172
2173 * calls.c (expand_call): Take current_function_pretend_args_size
2174 into account when setting argblock for sibcalls.
2175
2176 2002-04-24 Matt Hiller <hiller@redhat.com>
2177
2178 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2179 * c-lex.c: Ditto.
2180
2181 * cpplex.c (skip_line_comment): Process comment one multibyte
2182 character at a time rather than one char at a time, if
2183 appropriate.
2184 (parse_string): Process string one multibyte character at a time
2185 rather than one char at a time, if appropriate.
2186 * c-lex.c (lex_string): Lex and copy multibyte strings
2187 appropriately.
2188 * cpplib.h (cppchar_t): Change to unsigned.
2189
2190 2002-04-24 Richard Henderson <rth@redhat.com>
2191
2192 PR c/3467
2193 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2194 for c99.
2195
2196 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2197
2198 * sh.c (sh_va_arg): If argument was passed by reference,
2199 dereference the pointer.
2200
2201 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2202
2203 * sh.md (divsi3_i4_media): Use match_operand for input values
2204 rather than hard registers.
2205 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2206 unnecessarily through hard registers. Keep copies of pseudo
2207 registers outside of the libcall sequence.
2208
2209 * sh.md (casesi_shift_media): Add modes.
2210
2211 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
2212 values in memory.
2213
2214 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
2215
2216 * attribs.c (c_common_attribute_table): Move table and handlers
2217 to c-common.c.
2218 (format_attribute_table, lang_attribute_table,
2219 lang_attribute_common): Remove.
2220 (init_attributes): Replace NULL pointers with pointers to the
2221 empty table.
2222 (handle_packed_attribute, handle_nocommon_attribute,
2223 handle_common_attribute, handle_noreturn_attribute,
2224 handle_noinline_attribute, handle_always_inline_attribute,
2225 handle_used_attribute, handle_unused_attribute,
2226 handle_const_attribute, handle_transparent_union_attribute,
2227 handle_constructor_attribute, handle_destructor_attribute,
2228 handle_mode_attribute, handle_section_attribute,
2229 handle_aligned_attribute, handle_weak_attribute,
2230 handle_alias_attribute, handle_visibility_attribute,
2231 handle_no_instrument_function_attribute, handle_malloc_attribute,
2232 handle_no_limit_stack_attribute, handle_pure_attribute,
2233 handle_deprecated_attribute, handle_vector_size_attribute,
2234 vector_size_helper): Move to c-common.c.
2235 * c-common.c (c_common_attribute_table,
2236 handle_packed_attribute, handle_nocommon_attribute,
2237 handle_common_attribute, handle_noreturn_attribute,
2238 handle_noinline_attribute, handle_always_inline_attribute,
2239 handle_used_attribute, handle_unused_attribute,
2240 handle_const_attribute, handle_transparent_union_attribute,
2241 handle_constructor_attribute, handle_destructor_attribute,
2242 handle_mode_attribute, handle_section_attribute,
2243 handle_aligned_attribute, handle_weak_attribute,
2244 handle_alias_attribute, handle_visibility_attribute,
2245 handle_no_instrument_function_attribute, handle_malloc_attribute,
2246 handle_no_limit_stack_attribute, handle_pure_attribute,
2247 handle_deprecated_attribute, handle_vector_size_attribute,
2248 vector_size_helper): Move from attribs.c.
2249 * c-common.h (c_common_attribute_table,
2250 c_common_format_attribute_table): New.
2251 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2252 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2253 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2254 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
2255 (LANG_HOOKS_INITIALIZER): Update.
2256 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
2257 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
2258 * target.h: Update comment.
2259 * tree.c (default_target_attribute_table): Remove.
2260 * tree.h (default_target_attribute_table, format_attribute_table,
2261 lang_attribute_table, lang_attribute_common): Remove.
2262 objc:
2263 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2264 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2265
2266 2002-04-24 Jason Merrill <jason@redhat.com>
2267
2268 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
2269 * dwarf2out.c (dwarf_attr_name): Support it.
2270 (gen_array_type_die): Emit it.
2271 (lookup_type_die): No special handling for VECTOR_TYPE.
2272 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
2273
2274 2002-04-24 Richard Henderson <rth@redhat.com>
2275
2276 * config/mips/mips.md (movdi_usd): Renumber.
2277
2278 2002-04-24 David S. Miller <davem@redhat.com>
2279
2280 PR target/6420
2281 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2282 32-bit Sparc and current_function_returns_struct is true.
2283
2284 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2285
2286 * loop.c (canonicalize_condition): Use gen_int_mode.
2287
2288 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
2289
2290 * config/rs6000/altivec.h: Cleanup file. Add non individual
2291 variants.
2292 (vec_vaddubm): New.
2293 (vec_vadduhm): New.
2294 (vec_vadduwm): New.
2295 (vec_vaddfp): New.
2296 (vec_vaddcuw): New.
2297 (vec_vaddubs): New.
2298 (vec_vaddsbs): New.
2299 (vec_vadduhs): New.
2300 (vec_vadduws): New.
2301 (vec_vaddsws): New.
2302 (vec_vand): New.
2303 (vec_vandc): New.
2304 (vec_vavgub): New.
2305 (vec_vavgsb): New.
2306 (vec_vavguh): New.
2307 (vec_vavgsh): New.
2308 (vec_vavguw): New.
2309 (vec_vavgsw): New.
2310 (vec_vrfip): New.
2311 (vec_vcmpbfp): New.
2312 (vec_vcmpequb): New.
2313 (vec_vcmpequh): New.
2314 (vec_vcmpequw): New.
2315 (vec_vcmpeqfp): New.
2316 (vec_vcmpgefp): New.
2317 (vec_vcmpgtub): New.
2318 (vec_vcmpgtsb): New.
2319 (vec_vcmpgtuh): New.
2320 (vec_vcmpgtsh): New.
2321 (vec_vcmpgtuw): New.
2322 (vec_vcmpgtsw): New.
2323 (vec_vcmpgtfp): New.
2324 (vec_vcmpgefp): New.
2325 (vec_vcfux): New.
2326 (vec_vcfsx): New.
2327 (vec_vctsxs): New.
2328 (vec_vctuxs): New.
2329 (vec_vexptefp): New.
2330 (vec_vrfim): New.
2331 (vec_lvx): New.
2332 (vec_lvebx): New.
2333 (vec_lvehx): New.
2334 (vec_lde): Add vector float variant.
2335 (vec_lvewx): New.
2336 (vec_lvxl): New.
2337 (vec_vlogefp): New.
2338 (vec_vmaddfp): New.
2339 (vec_vmhaddshs): New.
2340 (vec_vmaxub): New.
2341 (vec_vmaxsb): New.
2342 (vec_vmaxuh): New.
2343 (vec_vmaxsh): New.
2344 (vec_vmaxuw): New.
2345 (vec_vmaxsw): New.
2346 (vec_vmaxsw): New.
2347 (vec_vmaxfp): New.
2348 (vec_vmrghb): New.
2349 (vec_vmrghh): New.
2350 (vec_vmrghw): New.
2351 (vec_vmrglb): New.
2352 (vec_vmrglh): New.
2353 (vec_vmrglw): New.
2354 (vec_vminub): New.
2355 (vec_vminsb): New.
2356 (vec_vminuh): New.
2357 (vec_vminsh): New.
2358 (vec_vminuw): New.
2359 (vec_vminsw): New.
2360 (vec_vminfp): New.
2361 (vec_vmladduhm): New.
2362 (vec_vmhraddshs): New.
2363 (vec_msumubm): New.
2364 (vec_vmsummbm): New.
2365 (vec_vmsumuhm): New.
2366 (vec_vmsumshm): New.
2367 (vec_vmsumuhs): New.
2368 (vec_vmsumshs): New.
2369 (vec_vmuleub): New.
2370 (vec_vmulesb): New.
2371 (vec_vmuleuh): New.
2372 (vec_vmulesh): New.
2373 (vec_vmuloub): New.
2374 (vec_mulosb): New.
2375 (vec_vmulouh): New.
2376 (vec_vmulosh): New.
2377 (vec_vnmsubfp): New.
2378 (vec_vnor): New.
2379 (vec_vor): New.
2380 (vec_vpkuhum): New.
2381 (vec_vpkuwum): New.
2382 (vec_vpkpx): New.
2383 (vec_vpkuhus): New.
2384 (vec_vpkshss): New.
2385 (vec_vpkuwus): New.
2386 (vec_vpkswss): New.
2387 (vec_vpkshus): New.
2388 (vec_vpkswus): New.
2389 (vec_vperm): New.
2390 (vec_vrefp): New.
2391 (vec_vrlb): New.
2392 (vec_vrlh): New.
2393 (vec_vrlw): New.
2394 (vec_vrfin): New.
2395 (vec_vrsqrtefp): New.
2396 (vec_vsel): New.
2397 (vec_vslb): New.
2398 (vec_vslh): New.
2399 (vec_vslw): New.
2400 (vec_vsldoi): New.
2401 (vec_vsl): New.
2402 (vec_vslo): New.
2403 (vec_vspltb): New.
2404 (vec_vsplth): New.
2405 (vec_vspltw): New.
2406 (vec_vspltisb): New.
2407 (vec_vspltish): New.
2408 (vec_vspltisw): New.
2409 (vec_vsrb): New.
2410 (vec_vsrh): New.
2411 (vec_vsrw): New.
2412 (vec_vsrab): New.
2413 (vec_vsrah): New.
2414 (vec_vsraw): New.
2415 (vec_vsr): New.
2416 (vec_vsro): New.
2417 (vec_stvx): New.
2418 (vec_stvebx): New.
2419 (vec_stvehx): New.
2420 (vec_stvewx): New.
2421 (vec_stvxl): New.
2422 (vec_vsububm): New.
2423 (vec_vsubuhm): New.
2424 (vec_vsubuwm): New.
2425 (vec_vsubfp): New.
2426 (vec_vsubcuw): New.
2427 (vec_vsububs): New.
2428 (vec_vsubsbs): New.
2429 (vec_vsubuhs): New.
2430 (vec_vsubshs): New.
2431 (vec_vsubuws): New.
2432 (vec_vsubsws): New.
2433 (vec_vsum4ubs): New.
2434 (vec_vsum4sbs): New.
2435 (vec_vsum4shs): New.
2436 (vec_vsum2sws): New.
2437 (vec_vsumsws): New.
2438 (vec_vrfiz): New.
2439 (vec_vupkhsb): New.
2440 (vec_vupkhpx): New.
2441 (vec_vupkhsh): New.
2442 (vec_vupklsb): New.
2443 (vec_vupklpx): New.
2444 (vec_vupklsh): New.
2445 (vec_vxor): New.
2446
2447 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
2448
2449 PR c/5430
2450 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
2451 added literals from substracted literals.
2452 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
2453 (fold) [associate]: Preserve MINUS_EXPR if needed.
2454
2455 2002-04-23 Zack Weinberg <zack@codesourcery.com>
2456
2457 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
2458 are obsoleted.
2459
2460 2002-04-23 Tom Tromey <tromey@redhat.com>
2461
2462 * gcc.c: Added --resource. For PR java/6314.
2463
2464 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2465
2466 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2467 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
2468 these libraries.
2469
2470 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2471
2472 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
2473
2474 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2475
2476 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
2477 workaround.
2478 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
2479 (ix86_expand_clrstr): Fix typo.
2480 * loop.c (gen_load_of_final_value): New.
2481 (loop_givs_rescan, strength_reduce, check_dbra_loop):
2482 Use it.
2483
2484 2002-04-23 Roger Sayle <roger@eyesopen.com>
2485
2486 * builtins.c (builtin_memset_gen_str): New function.
2487 (expand_builtin_memset): Optimize the case of constant length, but
2488 unknown value.
2489
2490 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
2491
2492 * config/rs6000/altivec.h (vec_step): Remove extraneous
2493 parentheses.
2494 (vec_ctu): Cast return.
2495
2496 2002-04-23 Alan Modra <amodra@bigpond.net.au>
2497
2498 PR target/6413
2499 * function.h: (struct function): Add profile_label_no field.
2500 (current_function_profile_label_no): Define.
2501 * function.c: (profile_label_no): New static var.
2502 (expand_function_start): Increment it, and copy to
2503 current_function_profile_label_no.
2504 * output.h (profile_label_no): Delete.
2505 * final.c (profile_label_no): Delete.
2506 (profile_function): Use current_function_profile_label_no.
2507 (final_end_function): Don't increment profile_label_no here.
2508 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
2509 profile_label_no with current_function_profile_label_no.
2510 * config/pa/pa.c (current_function_number): Delete.
2511 (pa_output_function_prologue): Don't output profile label here.
2512 (hppa_profile_hook): Use label_no param rather than
2513 current_function_number.
2514 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
2515 * config/pa/pa.h: .. here.
2516 (FUNCTION_PROFILER): Output profile label here.
2517
2518 2002-04-22 Eric Christopher <echristo@redhat.com>
2519
2520 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
2521 patch of 2002-04-09 due to binutils issues.
2522 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
2523
2524 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2525
2526 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
2527 constraint to 'o' for m=r and r=m alternatives.
2528 ("*movv8hi_internal1"): Same.
2529 ("*movv16qi_internal1"): Same.
2530 ("*movv4sf_internal1"): Same.
2531
2532 2002-04-22 Janis Johnson <janis187@us.ibm.com>
2533
2534 * rtl.h (RTX_FLAG): New macro.
2535 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
2536 * final.c (alter_subreg): Use macro to access rtx flag.
2537 * integrate.c (copy_rtx_and_substitute): Use new access macro.
2538 * print-rtl.c (print_rtx): Use new access macro.
2539
2540 * cse.c (insert): Check rtx code before accessing flag.
2541
2542 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
2543 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
2544 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
2545 convert_const_symbol_ref, make_canonical, make_alternative_compare,
2546 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
2547 simplify_test_exp, optimize_attrs, simplify_by_exploding,
2548 find_and_mark_used_attributes, unmark_used_attributes,
2549 add_values_to_cover, simplify_with_current_value,
2550 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
2551 copy_rtx_unchanging, main): Use new access macros.
2552
2553 2002-04-22 Tom Rix <trix@redhat.com>
2554
2555 * expmed.c (init_expmed): Generate shifted constant once.
2556
2557 2002-04-22 Zack Weinberg <zack@codesourcery.com>
2558
2559 * c-lex.c (lex_charconst): Call convert to get constant in
2560 proper type; don't just smash the type field.
2561 Fixes PR c/6300.
2562
2563 * config.gcc: Add list of obsolete configurations. Disallow
2564 building these without --enable-obsolete.
2565 * doc/install.texi: Document --enable-obsolete and obsoletion
2566 policy. Mention obsoletion of individual targets in
2567 appropriate places.
2568
2569 2002-04-22 Richard Henderson <rth@redhat.com>
2570
2571 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
2572
2573 2002-04-22 Mark Mitchell <mark@codesourcery.com>
2574
2575 PR f/6138.
2576 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
2577 (walk_fixup_memory_subreg): Likewise.
2578 (fixup_var_refs_insn): Adjust accordingly.
2579 (fixup_var_refs_1): Likewise.
2580
2581 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
2582
2583 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
2584 LIBPATH_ARCH64_SPEC): Define.
2585 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
2586 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
2587 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
2588 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
2589
2590 2002-04-22 Joel Sherrill <joel@OARcorp.com>
2591
2592 * gthr-rtems.h: Correct prototypes to remove warnings.
2593
2594 2002-04-22 Richard Henderson <rth@redhat.com>
2595
2596 PR c/6344
2597 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
2598
2599 * gcse.c (free_insn_expr_list_list): New.
2600 (clear_modify_mem_tables): Use it. Fix bit set usage.
2601 (canon_list_insert): Use EXPR_LISTs for expressions.
2602 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
2603
2604 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
2605
2606 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
2607 file change and include code to _cpp_pop_buffer.
2608 * cpphash.h (struct pending_option): Predeclare.
2609 (struct cpp_reader): New member next_include_file.
2610 (_cpp_pop_file_buffer): Update.
2611 (_cpp_push_next_buffer): Update, rename.
2612 * cppinit.c (cpp_destroy): Free include chain and pending here.
2613 (cpp_finish_options): Simplify.
2614 (_cpp_push_next_buffer): Rename and clean up.
2615 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
2616 Clarify.
2617 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
2618
2619 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2620
2621 * config/rs6000/altivec.h (vec_xor): Add variant for both args
2622 being vector signed int.
2623 (vec_andc): Same.
2624 (vec_xor): Add variant for both args being vector signed char.
2625 Remove redundant variant.
2626 (vec_andc): Same.
2627
2628 2002-04-21 David S. Miller <davem@redhat.com>
2629
2630 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
2631 compare mode in output RTL.
2632
2633 2002-04-22 David Edelsohn <edelsohn@gnu.org>
2634
2635 * config/rs6000/rs6000.c (rs6000_override_options): Correct
2636 style and formatting of previous patch.
2637
2638 2002-04-22 Alan Modra <amodra@bigpond.net.au>
2639
2640 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2641 flag_pic for ABI_AIX.
2642
2643 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2644
2645 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
2646 * cppfiles.c (read_include_file): Similarly.
2647 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
2648 uxstrdup ustrchr, ufputs): Similarly.
2649 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
2650 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
2651 cpp_ideq, parse_identifier, parse_number): Similarly.
2652 * cpplib.c (struct directive, dequote_string, D, run_directive,
2653 cpp_push_buffer): Similarly.
2654 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
2655 _cpp_create_definition, check_trad_stringification,
2656 cpp_macro_definition): Similarly.
2657
2658 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2659
2660 * cppmacro.c (funlike_invocation_p): Don't step back
2661 over CPP_EOF.
2662
2663 2002-04-21 David Edelsohn <edelsohn@gnu.org>
2664
2665 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
2666 labelno.
2667
2668 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
2669
2670 * doc/invoke.texi: Remove Chill references.
2671 * doc/gcc.texi: Update last modified date.
2672
2673 2002-04-20 Kazu Hirata <kazu@hxi.com>
2674
2675 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
2676 push and pop. Replace add.l with add.w.
2677
2678 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2679
2680 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
2681 multiply instructions for H8/300H case.
2682
2683 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2684
2685 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
2686 Bum three instructions from each routine.
2687
2688 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
2689
2690 * Makefile.in: Update.
2691 * decl.c (push_c_function_context, pop_c_function_context,
2692 mark_c_function_context): Rename for consistency.
2693 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
2694 * c-tree.h (push_c_function_context, pop_c_function_context,
2695 mark_c_function_context): Rename for consistency.
2696 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2697 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2698 * function.c (init_lang_status, save_lang_status,
2699 restore_lang_status, mark_lang_status, free_lang_status):
2700 Move to langhooks.h.
2701 (push_function_context_to, pop_function_context_from,
2702 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
2703 Update.
2704 * function.h (init_lang_status, save_lang_status,
2705 restore_lang_status, mark_lang_status, free_lang_status):
2706 Move to langhooks.h.
2707 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
2708 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2709 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
2710 LANG_HOOKS_FUNCTION_INITIALIZER): New.
2711 (LANG_HOOKS_INITIALIZER): Update.
2712 (lhd_do_nothing_f): New.
2713 * langhooks.h (struct lang_hooks_for_functions): New.
2714 (struct lang_hooks): New hooks.
2715 * langhooks.c (lhd_do_nothing_f): New.
2716 objc:
2717 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2718 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2719
2720 2002-04-19 David S. Miller <davem@redhat.com>
2721
2722 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
2723 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
2724
2725 2002-04-19 Jakub Jelinek <jakub@redhat.com>
2726
2727 PR optimization/3756
2728 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
2729 x = ((int) y < 0) ? cst1 : cst2.
2730
2731 2002-04-19 Jakub Jelinek <jakub@redhat.com>
2732
2733 PR c/6358
2734 * function.c: Reapply patch for c/6358.
2735 (expand_function_end): Copy decl_rtl's mode, not
2736 current_function_return_rtx mode.
2737
2738 2002-04-19 Joel Sherrill <joel@OARcorp.com>
2739
2740 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
2741 targets.
2742
2743 2002-04-19 Tom Tromey <tromey@redhat.com>
2744
2745 * doc/install.texi (Specific): Update status of Solaris 2.8.
2746 For PR libgcj/6158.
2747
2748 2002-04-19 Andreas Schwab <schwab@suse.de>
2749
2750 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
2751 (PUT_REAL): Restore old definition.
2752
2753 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
2754 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2755
2756 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
2757 binutils 2.11.2 and higher generate smaller binaries than Sun's
2758 native tools.
2759
2760 2002-04-19 Mark Mitchell <mark@codesourcery.com>
2761
2762 PR c++/6352
2763 * toplev.c (rest_of_compilation): Do not defer functions for which
2764 TREE_SYMBOL_REFERENCED has already been set.
2765
2766 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
2767
2768 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
2769 alternative.
2770
2771 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
2772
2773 * builtins.c: Include langhooks.h.
2774 (lang_type_promotes_to): Remove.
2775 (expand_builtin_va_arg): Use new hook.
2776 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
2777 (simple_type_promotes_to): Move to c-typeck.c.
2778 * c-common.h (simple_type_promotes_to): Remove.
2779 * c-decl.c (duplicate_decls, grokdeclarator): Update.
2780 * c-format.c: Include langhooks.h.
2781 (check_format_types): Update.
2782 * c-tree.h (c_type_promotes_to): New.
2783 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
2784 (type_lists_compatible_p): Update.
2785 * langhooks-def.h (lhd_type_promotes_to): New.
2786 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
2787 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2788 * langhooks.c (lhd_type_promotes_to): New.
2789 * langhooks.h (struct lang_hooks_for_types): New hook.
2790 * tree.h (lang_type_promotes_to): Remove.
2791 objc:
2792 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
2793
2794 2002-04-18 Richard Henderson <rth@redhat.com>
2795
2796 * function.c: Revert patch for c/6358.
2797
2798 2002-04-18 Richard Henderson <rth@redhat.com>
2799
2800 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
2801 blocks. Handle multiple references to the TRAP block. Handle
2802 non-adjacent THEN and OTHER blocks.
2803
2804 2002-04-18 Richard Henderson <rth@redhat.com>
2805
2806 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
2807 crash with no type for by-mode libcalls.
2808
2809 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
2810
2811 2002-04-18 Bob Wilson <bob.wilson@acm.org>
2812
2813 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
2814 __xtensa_nonlocal_goto): Use a syscall instructions to flush
2815 the register windows.
2816
2817 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2818
2819 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
2820 appropriate. Document need for extended precision even when
2821 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
2822 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
2823 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
2824 instead of relying on later syntax error when REAL_WIDTH > 5.
2825 * real.c: Define NE based only on whether or not we have a
2826 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
2827 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
2828 define GET_REAL and PUT_REAL as simple memcpy operations; no
2829 need to byteswap or round.
2830 Use #error instead of #ifdef-ing out the entire file, for
2831 prompt error detection.
2832
2833 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
2834
2835 2002-04-18 David S. Miller <davem@redhat.com>
2836
2837 * config/sparc/sparc.h (BRANCH_COST): Define.
2838
2839 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
2840 does it.
2841
2842 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
2843
2844 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
2845 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
2846 propagate_block calls after relaxation loop using new variable
2847 stabilized_prop_flags.
2848
2849 2002-04-18 Richard Henderson <rth@redhat.com>
2850
2851 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
2852 (ia64_va_arg): Expect variable sized types by reference.
2853 * config/ia64/ia64-protos.h: Update.
2854 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
2855 ia64_function_arg_pass_by_reference.
2856
2857 2002-04-18 Richard Henderson <rth@redhat.com>
2858
2859 * ifcvt.c: Include except.h.
2860 (block_has_only_trap): Break out from find_cond_trap.
2861 (find_cond_trap): Use it. Always delete the trap block.
2862 (merge_if_block): Allow then block null. Be less simplistic about
2863 what insns can end a block.
2864 * Makefile.in (ifcvt.o): Depend on except.h.
2865
2866 * config/ia64/ia64.md (trap, conditional_trap): New.
2867
2868 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2869
2870 PR c/6358
2871 * function.c (assign_parms): Assign hard current_function_return_rtx
2872 register here...
2873 (expand_function_end): ...not here.
2874
2875 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
2876
2877 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2878 * c-tree.h (c_incomplete_type_error): New.
2879 * c-typeck.c (require_complete_type, build_component_ref): Update.
2880 (incomplete_type_error): Rename.
2881 * langhooks-def.h (lhd_incomplete_type_error): New.
2882 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
2883 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2884 * langhooks.c (lhd_incomplete_type_error): New.
2885 * langhooks.h (struct lang_hooks_for_types): New hook.
2886 * tree.c (size_in_bytes): Use new hook.
2887 * tree.h (incomplete_type_error): Remove.
2888 objc:
2889 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2890
2891 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2892
2893 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2894 TARGET_FLOAT_FORMAT blocks.
2895
2896 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2897
2898 * doc/install.texi (Downloading the source): Do not mention Chill
2899 any longer, but mention Ada.
2900 (Configuration): Do not mention Chill any longer.
2901
2902 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
2903
2904 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2905
2906 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
2907
2908 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2909 in last patch.
2910
2911 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2912
2913 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2914 instead of unsigned_type.
2915
2916 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2917
2918 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2919 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2920 later.
2921
2922 2002-04-18 Bernd Schmidt <bernds@redhat.com>
2923
2924 * attribs.c (vector_type_node_list): New static variable.
2925 (handle_vector_size_attribute): Use it to avoid generating a
2926 new type node each time we are called.
2927
2928 * combine.c (subst): Avoid trying to make a vector mode subreg of
2929 an integer constant.
2930 (gen_lowpart_for_combine): Likewise.
2931
2932 2002-04-18 Roger Sayle <roger@eyesopen.com>
2933 Jakub Jelinek <jakub@redhat.com>
2934
2935 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2936 for integer constant c (if x has unsigned type or sign bit is not
2937 set in c). This folds the zero/sign extension into the bit-wise and
2938 operation.
2939
2940 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2941
2942 PR middle-end/6205
2943 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2944 otherwise xorps.
2945
2946 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
2947
2948 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2949
2950 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
2951
2952 * gcc.c (read_specs): Detect and fail if an attempt is made to
2953 rename a spec string to an already existing string.
2954
2955 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2956
2957 * config/s390/s390.c (legitimize_pic_address): Do not generate
2958 illegal address constant without CONST.
2959
2960 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2961
2962 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2963 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2964
2965 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2966
2967 PR optimization/6305
2968 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2969 to make sure previous reloads are taken into account. Generate
2970 better code if one operand is an in-range immediate constant.
2971
2972 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
2973
2974 * doc/install.texi (Building): libgcj requires GNU make.
2975
2976 2002-04-17 Jakub Jelinek <jakub@redhat.com>
2977
2978 PR bootstrap/6315
2979 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2980 even if hard quad and register is not floating.
2981 (movtf reg<-mem split): Disallow splitting if hard quad and
2982 register is floating.
2983 (movtf mem<-reg split): Likewise.
2984 * config/sparc/sparc.c (fp_register_operand): New predicate.
2985 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2986
2987 2002-04-17 Zack Weinberg <zack@codesourcery.com>
2988
2989 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2990 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2991 (unprotoize.o): Ditto. Build from protoize.c. Define
2992 UNPROTOIZE on command line.
2993 * protoize.c: Include cppdefault.h. Delete include_defaults.
2994 (in_system_include_dir): Use cpp_include_defaults (defined in
2995 cppdefault.o).
2996 * unprotoize.c: Delete file.
2997
2998 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
2999
3000 * config/rs6000/altivec.h (vec_ld): Add array variants.
3001 (vec_lde): Same.
3002 (vec_ldl): Same.
3003
3004 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3005 Aldy Hernandez <aldyh@redhat.com>
3006
3007 * config/rs6000/altivec.h: Define __ALTIVEC__.
3008 (bool): New.
3009 (__pixel): New.
3010 (pixel): New.
3011 (vec_cfux): New.
3012 (vec_vmaddfp): New.
3013 (vec_vsldoi): New.
3014 Add parentheses to all macro arguments.
3015
3016 2002-04-16 Richard Henderson <rth@redhat.com>
3017
3018 PR c++/6320
3019 * except.c (remove_eh_handler): Insert inner regions at beginning
3020 of sibling chain. Refactor expressions.
3021
3022 2002-04-16 Richard Henderson <rth@redhat.com>
3023
3024 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3025 * config/sparc/sol2-gas-bi.h: New file.
3026 * config.gcc (sparc*-solaris): Add it as needed.
3027 * configure.in (AS_SPARC64_FLAG): Remove check.
3028 * config.in, configure: Regenerate.
3029
3030 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3031
3032 2002-04-16 Richard Henderson <rth@redhat.com>
3033
3034 * config/mips/mips.c (override_options): Don't override N32 for
3035 a 64-bit ISA.
3036
3037 PR 6202
3038 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3039 (HILO_delay): Set can_delay false.
3040
3041 2002-04-16 Dale Johannesen <dalej@apple.com>
3042
3043 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3044 instruction addresses.
3045 (rs6000_output_function_epilogue): Likewise.
3046
3047 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3048
3049 * c-parse.in (poplevel, compstmt_start,
3050 compstmt_primary_start): Add ending ';', in accordance
3051 with POSIX.
3052
3053 2002-04-16 Richard Henderson <rth@redhat.com>
3054
3055 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3056 Adjust tm_file order to get TARGET_DEFAULT set properly.
3057 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3058 * doc/install.texi (sparc-solaris): Update.
3059
3060 2002-04-16 Dale Johannesen <dalej@apple.com>
3061
3062 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3063 comparison operands do not match each other or if modes of
3064 conditions do not match result.
3065
3066 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3067
3068 PR target/6305
3069 * config/s390/s390.md (mulsidi3): Set both subregs of the
3070 multiword register.
3071
3072 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3073
3074 * config/rs6000/altivec.h (vec_addc): Type check.
3075
3076 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3077
3078 PR middle-end/6279
3079 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3080
3081 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3082
3083 2002-04-15 Richard Henderson <rth@redhat.com>
3084
3085 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3086 call_really_used_regs too.
3087
3088 2002-04-15 Richard Henderson <rth@redhat.com>
3089
3090 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3091
3092 2002-04-15 David S. Miller <davem@redhat.com>
3093
3094 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3095 as being CLOBBERed.
3096
3097 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3098
3099 PR c/6290
3100 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3101 CONST_VECTOR is { 0, ... 0 }.
3102
3103 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3104
3105 * doc/install.texi (Installing GCC: Configuration): Clarify
3106 the only supported ways to configure gcc.
3107
3108 2002-04-15 Roland McGrath <roland@frob.com>
3109
3110 * config.gcc (alpha*-*-gnu*): New target configuration.
3111 * config/alpha/gnu.h: New file for it.
3112 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3113
3114 2002-04-16 Mark Mitchell <mark@codesourcery.com>
3115
3116 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3117 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3118 * tree.h (expand_start_stmt_expr): Update prototype.
3119 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3120 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3121 on the STMT_EXPR created for the inline function.
3122
3123 2002-04-15 Richard Henderson <rth@redhat.com>
3124
3125 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3126 config/i386/linux-aout.h, config/i386/linux-oldld.h,
3127 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3128 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3129 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3130 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3131 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3132 Define __gnu_linux__, not gnu_linux.
3133 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3134
3135 2002-04-15 Mark Mitchell <mark@codesourcery.com>
3136
3137 Remove Chill front end.
3138 * gcc.c (default_compilers): Remove Chill entries.
3139 * ch: Remove directory.
3140 * doc/frontends.texi: Remove information about Chill.
3141 * doc/sourcebuild.texi: Likewise.
3142 * doc/standards.texi: Likewise.
3143
3144 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3145
3146 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3147 (LONGLONG_STANDALONE): Define.
3148
3149 2002-04-15 David S. Miller <davem@redhat.com>
3150
3151 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3152 Call emit_library_call with LCT_NORMAL.
3153 (sparc_initialize_trampoline): Use LCT_foo instead of
3154 magic constant in emit_library_call invocations.
3155 (sparc64_initialize_trampoline): Likewise.
3156 (sparc_profile_hook): Likewise.
3157 * config/sparc/sparc.md: Likewise.
3158
3159 * config/sparc/sparc.c (sparc_extra_constraint_check):
3160 Fix type of argument 'c'.
3161 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3162 Likewise.
3163
3164 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3165
3166 * diagnostic.h (output_buffer_state): Redefine.
3167 (output_format_decoder): New macro.
3168 (output_prefixing_rule): Likewise.
3169 (output_line_cutoff): Likewise.
3170 (diagnostic_format_decoder): Adjust.
3171 (diagnostic_prefixing_rule): Likewise.
3172 (diagnostic_line_cutoff): Likewise.
3173 (diagnostic_state): Likewise.
3174 (diagnostic_kind_count): Likewise.
3175 (diagnostic_buffer): Now a macro.
3176
3177 * diagnostic.c (diagnostic_buffer): Remove definition.
3178 (output_is_line_wrapping): Adjust.
3179 (set_real_maximum_length): Likewise.
3180 (output_set_maximum_length): Likewise.
3181 (init_output_buffer): Likewise.
3182 (lhd_print_error_function): Likewise.
3183 (output_do_verbatim): Likewise.
3184
3185 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3186
3187 * cpperror.c (print_location): Don't print include chain
3188 if line == 0.
3189 (cpp_begin_message): Update to use DL_ macros.
3190 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3191 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3192 cpp_notice, cpp_notice_from_errno): Remove.
3193 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3194 level.
3195 (cpp_errno): New.
3196 * cppexp.c (CPP_ICE): Remove.
3197 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3198 lex, integer_overflow, _cpp_parse_expr): Update.
3199 * cppfiles.c (read_include_file, find_include_file,
3200 handle_missing_header, _cpp_read_file, remap_filename): Update.
3201 * cpphash.h (enum error_type): Remove.
3202 (_cpp_begin_message): Update.
3203 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
3204 cpp_handle_option, cpp_post_options): Update.
3205 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
3206 skip_whitespace, parse_identifier, parse_slow, parse_string,
3207 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
3208 cpp_interpret_charconst): Update.
3209 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
3210 lex_macro_node, do_undef, glue_header_name, parse_include,
3211 do_include_common, read_flag, do_line, do_linemarker, do_ident,
3212 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
3213 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
3214 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
3215 _cpp_pop_buffer, do_diagnostic): Update.
3216 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
3217 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
3218 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3219 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3220 cpp_notice, cpp_notice_from_errno): Remove.
3221 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3222 level.
3223 (cpp_errno): New.
3224 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
3225 collect_args, enter_macro_context, save_parameter, parse_params,
3226 _cpp_create_definition, check_trad_stringification,
3227 cpp_macro_definition): Update.
3228 * cppmain.c (cpp_preprocess_file): Update.
3229 * fix-header.c (read_scan_file): Update.
3230
3231 2002-04-14 Andreas Schwab <schwab@suse.de>
3232
3233 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
3234
3235 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3236
3237 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
3238
3239 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3240
3241 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
3242 not gnu_hurd.
3243
3244 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
3245
3246 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
3247
3248 2002-04-13 Joel Sherrill <joel@OARcorp.com>
3249
3250 * config/sparc/t-elf: Enable v8 multilibs. Impacts
3251 sparc-elf and sparc-rtems targets.
3252
3253 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3254
3255 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
3256 defined, and __gnu_hurd__ wherever __GNU__ is defined.
3257 * arm/linux-elf.h: Likewise.
3258 * cris/aout.h: Likewise.
3259 * cris/linux.h: Likewise.
3260 * i370/linux.h: Likewise.
3261 * i386/gnu.h: Likewise.
3262 * i386/linux-aout.h: Likewise.
3263 * i386/linux-oldld.h: Likewise.
3264 * i386/linux.h: Likewise.
3265 * i386/linux64.h: Likewise.
3266 * ia64/linux.h: Likewise.
3267 * m68k/linux-aout.h: Likewise.
3268 * m68k/linux.h: Likewise.
3269 * mips/linux.h: Likewise.
3270 * pa/pa-linux.h: Likewise.
3271 * pj/linux.h: Likewise.
3272 * rs6000/sysv4.h: Likewise.
3273 * s390/linux.h: Likewise.
3274 * sh/linux.h: Likewise.
3275 * sparc/linux-aout.h: Likewise.
3276 * sparc/linux.h: Likewise.
3277 * sparc/linux64.h: Likewise.
3278 * xtensa/linux.h: Likewise.
3279
3280 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
3281
3282 * stmt.c (check_unique_operand_names): Expect operand names to
3283 be strings rather than identifiers. Use simple_cst_equal to
3284 compare them.
3285 (resolve_operand_name_1): Make same identifier to string change here.
3286 * c-parse.in (asm_operand): Convert a named operand into a string.
3287 * cp/parse.y (asm_operand): Likewise.
3288
3289 2002-04-13 Andreas Schwab <schwab@suse.de>
3290
3291 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
3292
3293 2002-04-12 Mark Mitchell <mark@codesourcery.com>
3294
3295 Revert these changes:
3296
3297 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3298
3299 PR c++/5571
3300 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3301
3302 2002-04-12 Richard Henderson <rth@redhat.com>
3303
3304 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
3305 (sparc*-*-solaris): Clean up header files.
3306 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
3307 and plan on generating 64-bit code.
3308 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
3309 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
3310 * config/sparc/sol2-sld-64.h: Rename ...
3311 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
3312 for AS_SPARC64_FLAG not defined.
3313 * config/sparc/sol2-gld-bi.h: New.
3314 * config/sparc/sol2-sld.h: Remove.
3315 * config/sparc/sol26-sld.h: New.
3316 * config/sparc/sol2.h: Tidy comments.
3317 * doc/install.texi: Document sparc-solaris configury changes.
3318
3319 2002-04-12 Richard Henderson <rth@redhat.com>
3320
3321 * recog.c (offsettable_address_p): Match the logic in adjust_address.
3322
3323 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
3324 in 64-bit mode only. Use only for 32-bit or MEDLOW.
3325
3326 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3327
3328 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
3329
3330 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
3331
3332 * pa.c (pa_can_combine_p): Call extract_insn before calling
3333 constrain_operands.
3334
3335 2002-04-12 Douglas B Rupp <rupp@gnat.com>
3336
3337 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
3338 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
3339 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3340 (CPP_PREDEFINES): Handle __declspec.
3341 * config/i386/t-interix (USER_H): Remove.
3342
3343 2002-04-12 DJ Delorie <dj@redhat.com>
3344
3345 * integrate.c (compare_blocks): Make comparisons safe for when
3346 sizeof(int) < sizeof(char *).
3347 (find_block): Likewise.
3348
3349 2002-04-12 Jan Hubicka <jh@suse.cz>
3350 David Edelsohn <edelsohn@gnu.org>
3351
3352 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
3353 registers.
3354 (symbol_ref_operand): New.
3355 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
3356 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
3357
3358 2002-04-12 Andreas Schwab <schwab@suse.de>
3359
3360 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
3361 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
3362 overrides the definition in config/svr4.h.
3363
3364 2002-04-12 Eric Norum <eric.norum@usask.ca>
3365
3366 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
3367 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
3368 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
3369 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
3370 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
3371 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
3372 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
3373 definitions to config/rtems.h and make the targets more similar.
3374
3375 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3376
3377 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
3378 POINTERS_EXTEND_UNSIGNED.
3379 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
3380 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
3381
3382 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
3383 not specified.
3384
3385 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
3386
3387 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
3388 depends on TARGET_SHMEDIA, not TARGET_SH5.
3389
3390 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
3391
3392 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
3393 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
3394
3395 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3396
3397 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
3398 no r0 clobber.
3399
3400 2002-04-12 Andreas Schwab <schwab@suse.de>
3401
3402 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
3403
3404 2002-04-12 Richard Henderson <rth@redhat.com>
3405
3406 PR bootstrap/4191
3407 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
3408
3409 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
3410 modes spanning multiple hard regs.
3411
3412 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
3413
3414 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3415
3416 * pa.c (pa_output_function_prologue): Don't accumulate the total
3417 number of code bytes when using TARGET_64BIT, or gas, SOM and not
3418 the portable runtime.
3419 (output_deferred_plabels): Handle 64bit plabels.
3420 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
3421 generating pic code using the GAS assembler for object formats that
3422 are not SOM (ie., ELF32 and ELF64).
3423 (output_millicode_call): Check attribute type if attribute length is 28.
3424 Likewise use $PIC_pcrel$0. Only call get_attr_length and
3425 dbr_sequence_length once.
3426 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
3427 dbr_sequence_length once.
3428 * pa.h (TARGET_SOM): Define if not defined.
3429 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
3430 with GAS and not SOM.
3431 (jump, call_internal_reg, call_value_internal_reg): Likewise.
3432 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
3433
3434 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3435
3436 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
3437 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
3438 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
3439 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
3440 elfos.h and dbxelf.h values are fine now.
3441 * config/i386/freebsd.h, config/alpha/freebsd.h
3442 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
3443
3444 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3445
3446 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
3447 or set Acpu or Amachine. Reformat.
3448 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3449 define.
3450 (LINK_SPEC): Do not need to undef.
3451 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
3452 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
3453 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3454 define.
3455 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
3456 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
3457 (LINK_SPEC): Do not need to undef.
3458 (DONT_USE_BUILTIN_SETJMP): Do not define.
3459 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
3460 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
3461 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
3462 Remove trailing spaces.
3463 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
3464 __ELF__, or set Acpu or Amachine. Reformat.
3465 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3466 define.
3467
3468 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3469
3470 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
3471 all other *-*-freebsd* targets.
3472
3473 2002-04-11 Richard Henderson <rth@redhat.com>
3474
3475 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
3476
3477 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3478
3479 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
3480 Include {cpu}/{cpu}.h thru tm_file.
3481 (alpha*-*-linux*ecoff): Remove target.
3482 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
3483 (LINK_SPEC): Remove, is not OS independent.
3484 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
3485 (LINK_SPEC): Do not need to #undef any longer.
3486 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
3487 any longer.
3488 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
3489 __ELF__.
3490 (LINK_SPEC): Moved here from alpha/elf.h.
3491 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
3492 SUB_CPP_PREDEFINES.
3493 * config/alpha/linux-ecoff.h: Remove.
3494 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
3495 (CPP_SPEC): Define _POSIX_SOURCE as needed.
3496 (CPP_SUBTARGET_SPEC): Do not define.
3497 (LINK_SPEC): Do not need to #undef any longer.
3498 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
3499 * config/alpha/vms.h: Likewise.
3500
3501 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3502
3503 * doc/extend.texi: Remove old claim that typedefs cannot have
3504 an alignment attribute.
3505
3506 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3507
3508 PR optimization/6177
3509 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
3510 bitpos is 0 and bitsize CONCAT size.
3511
3512 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3513
3514 PR c/6223
3515 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
3516
3517 2002-04-10 David O'Brien <obrien@FreeBSD.org>
3518
3519 * config/alpha/freebsd.h: Minor reformatting.
3520 (CPP_SPEC): Define ELF and add cpp_subtarget.
3521 (ASM_SPEC): No longer needed.
3522
3523 2002-04-11 Richard Henderson <rth@redhat.com>
3524
3525 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
3526 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
3527 (dimode mem/zero splitter): New.
3528
3529 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
3530
3531 * config/cris/cris.c (cris_override_options): Tweak error message
3532 for PIC not implemented.
3533
3534 * config/cris/cris.h: Tweak comments related to parameter-passing.
3535
3536 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
3537
3538 2002-04-10 Richard Henderson <rth@redhat.com>
3539
3540 * except.c (add_ehl_entry): Allow duplicates after landing pad
3541 creation.
3542
3543 2002-04-10 David Edelsohn <edelsohn@gnu.org>
3544
3545 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
3546
3547 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
3548
3549 * c-decl.c (c_init_decl_processing): Move generation of
3550 decls for g77_integer_type_node and friends from here ...
3551 * c-common.c (c_common_nodes_and_builtins): ... to here.
3552
3553 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
3554
3555 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
3556 is only used as frame pointer when frame_pointer_needed is true.
3557
3558 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
3559
3560 PR target/817
3561 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
3562 for the fact that the pool entry uses two words.
3563 (movdf_hard_insn): Similarly. Also, ADR instruction can span
3564 1k bytes.
3565 (movdf_soft_insn): Similarly.
3566 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
3567 for the fact that the pool entry uses three words.
3568
3569 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
3570
3571 * config/mips/mips.c (mips_va_arg): When using the struct version
3572 of the EABI va_list, allow arguments in the register save area to
3573 take up less room than a stack argument.
3574
3575 2002-04-10 Richard Henderson <rth@redhat.com>
3576
3577 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
3578 if EXPAND_INITIALIZER.
3579
3580 2002-04-09 Richard Henderson <rth@redhat.com>
3581
3582 * config/alpha/alpha.md (movdi_er_maybe_g): New.
3583 * config/alpha/alpha.c (alpha_expand_mov): Use it.
3584
3585 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3586
3587 PR optimization/6233
3588 * rtlanal.c (pure_call_p): New function.
3589 * rtl.h (pure_call_p): Declare.
3590 * loop.c (prescan_loop): Use it to set has_nonconst_call.
3591 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
3592
3593 2002-04-09 Eric Christopher <echristo@redhat.com>
3594
3595 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
3596 information to .comm directive.
3597
3598 2002-04-09 Richard Henderson <rth@redhat.com>
3599
3600 PR c/5078
3601 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
3602
3603 2002-04-09 Richard Henderson <rth@redhat.com>
3604
3605 * basic-block.h (flow_delete_block_noexpunge): Declare.
3606 (expunge_block_nocompact): Declare.
3607 * cfg.c (expunge_block_nocompact): Split out from ...
3608 (expunge_block): ... here.
3609 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
3610 (flow_delete_block_noexpunge): Split out from ...
3611 (flow_delete_block): ... here.
3612 * cfgcleanup.c (delete_unreachable_blocks): Compact while
3613 removing dead blocks.
3614 * except.c (exception_handler_labels): Remove.
3615 (exception_handler_label_map): New.
3616 (struct eh_region): Add aka member.
3617 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
3618 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
3619 (for_each_eh_label, for_each_eh_label_1): New.
3620 (init_eh): Register exception_handler_label_map.
3621 (free_eh_status): Use free_region.
3622 (find_exception_handler_labels): Use the map, not the list.
3623 (remove_exception_handler_label): Likewise.
3624 (maybe_remove_eh_handler): Likewise.
3625 (remove_eh_handler): Use the region aka bitmap.
3626 * except.h (exception_handler_labels): Remove.
3627 (for_each_eh_label): Declare.
3628 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
3629 * loop.c (invalidate_loops_containing_label): New.
3630 (find_and_verify_loops): Use it. Use for_each_eh_label.
3631 * sched-rgn.c (is_cfg_nonregular): Use
3632 current_function_has_exception_handlers.
3633
3634 2002-04-09 Richard Henderson <rth@redhat.com>
3635
3636 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
3637 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
3638 Do not return changed status.
3639 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
3640 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
3641 New functions that do return changed status.
3642 * sbitmap.h: Update decls.
3643 * gcse.c, lcm.c: Use _cg functions as needed.
3644
3645 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3646
3647 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
3648 (sh64-*-elf*, sh-*-rtemself*): Likewise.
3649 * config/sh/embed_bb.c: New file.
3650 * config/sh/embed-elf.h: New file.
3651 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
3652 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
3653 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3654 __PTRDIFF_TYPE__ .
3655 (SUBTARGET_CPP_PTR_SPEC): Don't define.
3656 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
3657 Add subtarget_asm_endian_spec.
3658 (ASM_SPEC): Use subtarget_asm_endian_spec.
3659 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
3660 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
3661 (WCHAR_UNSIGNED): Define.
3662 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
3663 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3664 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
3665 Fix value.
3666 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
3667 (sh_adjust_cost): Likewise.
3668 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3669 __PTRDIFF_TYPE__ .
3670 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
3671 (WCHAR_TYPE_SIZE): Likewise.
3672 (ASM_SPEC): Use subtarget_asm_endian_spec.
3673 (SH_ELF_WCHAR_TYPE): #undef/ #define.
3674 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
3675 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
3676 (MAX_WCHAR_TYPE_SIZE): Don't #define .
3677 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
3678 (USER_LABEL_PREFIX): Don't #undef /#define .
3679 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3680 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
3681 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
3682 (ASM_SPEC): Likewise.
3683 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
3684 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
3685 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
3686 (LIB2FUNCS_EXTRA): Define.
3687 * t-sh64 (LIB2FUNCS_EXTRA): Define.
3688 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
3689 (LIB1ASMFUNCS_CACHE): Define.
3690 (LIB2FUNCS_EXTRA): Redefine empty.
3691
3692 2002-04-08 Richard Henderson <rth@redhat.com>
3693
3694 * reorg.c (get_branch_condition): Use reversed_comparison_code.
3695
3696 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3697
3698 * config/m68hc11/larith.asm (__map_data_section): Fix condition
3699 and optimize for size.
3700 (__do_global_ctors): Fix pointer comparison.
3701 (__do_global_dtors): Likewise.
3702
3703 2002-04-09 David S. Miller <davem@redhat.com>
3704
3705 * config/sparc/sparc.c (sparc_extra_constraint_check): New
3706 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
3707 allow reloading pseudos.
3708 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
3709 * config/sparc/sparc-protos.h: Declare it.
3710
3711 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
3712 unsigned comparison warning.
3713 (output_restore_regs): Mark leaf_function as unused.
3714
3715 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3716
3717 * expr.c (is_aligning_offset): New function.
3718 (expand_expr, case COMPONENT_EXPR): Call it.
3719
3720 2002-04-08 David S. Miller <davem@redhat.com>
3721
3722 PR target/6082
3723 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
3724
3725 Make init_priority work on Sparc when using GNU ld.
3726 * config/sparc/linux.h, config/sparc/linux64.h,
3727 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
3728 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
3729 * config/sparc/sol2-gld.h: New file to do the same.
3730 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
3731 sparc/sol2-gld.h to tm_file.
3732
3733 PR optimization/4328
3734 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
3735 * doc/md.texi: Document it.
3736 * config/sparc/sparc.md (movdi_insn_sp64_novis,
3737 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
3738 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
3739 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
3740 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
3741
3742 2002-04-08 Andreas Jaeger <aj@suse.de>
3743
3744 * stmt.c (expand_asm_operands): Revert last patch from Richard
3745 Henderson.
3746
3747 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3748
3749 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
3750 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
3751
3752 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3753
3754 * doc/contrib.texi (Contributors): Add David O'Brien.
3755
3756 2002-04-08 Alan Modra <amodra@bigpond.net.au>
3757
3758 * configure.in (auto-build.h): Use target_alias and build_alias
3759 when running configure.
3760 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
3761 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
3762 * configure: Regenerate.
3763
3764 2002-04-07 David S. Miller <davem@redhat.com>
3765
3766 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
3767
3768 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
3769
3770 PR 5933
3771 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
3772 generating 32-bit pic code.
3773
3774 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3775
3776 * cppinit.c (cpp_create_reader): Initialize
3777 discard_comments_in_macro_exp.
3778 (COMMAND_LINE_OPTIONS): Add "-CC" option.
3779 (cpp_handle_option): Handle "-CC" option.
3780 * cpplex.c (save_comment): If saving a C++ comment in
3781 a directive, convert it to a C comment.
3782 (_cpp_lex_direct): Pass second comment start character to
3783 save_comment to indicate comment type.
3784 * cpplib.c (_cpp_handle_directive): If processing
3785 a "#define" directive and discard_comments_in_macro_exp
3786 is false, re-enable saving of comments.
3787 (lex_macro_node): If discard_comments_in_macro_exp is false,
3788 discard any comments before the macro identifier.
3789 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
3790 member.
3791 * cppmacro.c (cpp_get_token): If expanding a macro while
3792 processing a directive, discard any comments we might encounter.
3793 (parse_params): If discard_comments_in_macro_exp is false,
3794 ignore comments in the macro parameter list.
3795 * gcc.c (cpp_unique_options): Add "-CC" option.
3796 (option_map): Map "--comments-in-macros" to "-CC".
3797 * doc/cppopts.texi: Document "-CC" option.
3798 * f/lang-specs.h: Add "-CC" option.
3799 * testsuite/gcc.dg/cpp/maccom1.c: New test.
3800 * testsuite/gcc.dg/cpp/maccom2.c: New test.
3801 * testsuite/gcc.dg/cpp/maccom3.c: New test.
3802 * testsuite/gcc.dg/cpp/maccom4.c: New test.
3803 * testsuite/gcc.dg/cpp/maccom5.c: New test.
3804 * testsuite/gcc.dg/cpp/maccom6.c: New test.
3805
3806 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3807
3808 PR middle-end/6180
3809 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
3810
3811 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3812
3813 PR c++/5571
3814 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3815
3816 PR opt/5120
3817 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
3818 RTX_UNCHANGING_P for the functions arguments when a tail call
3819 is made.
3820
3821 2002-04-06 Jason Merrill <jason@redhat.com>
3822
3823 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
3824 (parse_options_and_default_flags): Set them appropriately.
3825 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
3826
3827 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
3828
3829 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
3830 here.
3831
3832 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
3833 semicolon.
3834
3835 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
3836 types come in by-reference. Fix typo in comment.
3837
3838 2002-04-05 David S. Miller <davem@redhat.com>
3839
3840 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
3841 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
3842 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
3843 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
3844
3845 2002-04-05 David S. Miller <davem@redhat.com>
3846
3847 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
3848 are not going to emit return instructions, emit at least a nop
3849 for the sake of sane backtraces.
3850
3851 2002-04-05 Richard Henderson <rth@redhat.com>
3852
3853 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
3854
3855 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
3856
3857 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
3858
3859 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
3860
3861 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
3862 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3863 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
3864
3865 2002-04-05 Andreas Schwab <schwab@suse.de>
3866
3867 * c-convert.c: Include c-common.h.
3868 * Makefile.in (c-convert.o): Updated.
3869
3870 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3871
3872 * mklibgcc.in: Use separate libgcc.map for each multilib.
3873 * Makefile.in (distclean): Don't remove libgcc.map here.
3874
3875 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3876
3877 * Makefile.in (s-mlib): Handle --disable-multilib by separate
3878 genmultilib invocation.
3879
3880 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
3881
3882 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
3883 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
3884 to num_gprs for symmetry.
3885 * config/mips/mips.c: Adjust accordingly.
3886
3887 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
3888
3889 * c-common.c (truthvalue_conversion): Rename, update.
3890 * c-common.h (c_common_truthvalue_conversion): New.
3891 * c-convert.c (convert): Update.
3892 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3893 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
3894 * c-typeck.c (build_binary_op, build_unary_op,
3895 build_conditional_expr): Update.
3896 * fold-const.c (constant_boolean_node, fold): Use langhook.
3897 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
3898 * langhooks.h (struct lang_hooks): New hook.
3899 * stmt.c (expand_decl_cleanup): Use langhook.
3900 * tree.h (truthvalue_conversion): Remove.
3901 objc:
3902 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3903
3904 2002-04-05 Alan Modra <amodra@bigpond.net.au>
3905
3906 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3907 Add rules to make null object file.
3908
3909 2002-04-04 Jim Blandy <jimb@redhat.com>
3910
3911 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3912 macro formal parameter names.
3913
3914 2002-04-04 David S. Miller <davem@redhat.com>
3915
3916 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3917
3918 2002-04-04 Richard Henderson <rth@redhat.com>
3919
3920 PR middle-end/5099
3921 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
3922 Support copies into and out of memory. Don't accept allows_reg
3923 and allows_mem as gospel.
3924
3925 2002-04-04 Richard Henderson <rth@redhat.com>
3926
3927 PR opt/6165
3928 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3929 (write_dependence_p): Likewise.
3930
3931 2002-04-04 Richard Henderson <rth@redhat.com>
3932
3933 * predict.c (estimate_bb_frequencies): Do frequency calculation
3934 with a volatile temporary.
3935
3936 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
3937
3938 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3939
3940 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3941
3942 PR c++/6119
3943 * final.c (final_start_function): Don't bump profile_label_no here...
3944 (final_end_function): ...but here.
3945
3946 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3947
3948 * config/sparc/sparc.md (pic): New attribute.
3949 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3950 into stack slots.
3951 (split after do_builtin_setjmp_setup): New.
3952
3953 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3954
3955 PR fortran/6106
3956 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3957 change.
3958
3959 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3960
3961 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3962 UNITS_PER_WORD for zero sized aggregates.
3963
3964 2002-04-03 David S. Miller <davem@redhat.com>
3965
3966 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3967 one-character spec for this, just use %(link_gcc_c_sequence).
3968
3969 2002-04-03 David S. Miller <davem@redhat.com>
3970
3971 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3972 handling.
3973
3974 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3975
3976 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
3977 (DWARF_FRAME_RETURN_COLUMN): Move.
3978 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3979 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
3980 * pa.c (except.h, predict.h): Include.
3981 (FRP): Delete.
3982 (store_reg_modify, set_reg_plus_d): Revise prototypes.
3983 (output_ascii): Add cast.
3984 (store_reg_modify): Revise to add frame notes.
3985 (set_reg_plus_d): Likewise.
3986 (compute_frame_size): Include space for eh data registers in frame if
3987 the current function calls eh_return.
3988 (hppa_expand_prologue): Ensure register %r2 is saved if the current
3989 function calls eh_return. Save eh data registers if the current
3990 function calls eh_return. Fix code to add frame notes. Emit
3991 blockage to prevent insns with frame notes being scheduled in the
3992 delay slot of calls.
3993 (hppa_expand_epilogue): Restore eh data registers and do final stack
3994 adjustment if the current function calls eh_return. Don't add frame
3995 notes.
3996 (output_call): Revise for change in length of call insn. Don't do
3997 return pointer adjustment for an unconditional jump in the delay slot
3998 of a call when using frame notes.
3999 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4000 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4001 (ARG_POINTER_CFA_OFFSET): Define.
4002 * pa.md (return_external_pic): New pattern.
4003 (prologue): Correct formatting. Use return_external_pic if current
4004 function calls eh_return.
4005 (call_internal_symref, call_value_internal_symref,
4006 sibcall_internal_symref, sibcall_value_internal_symref): Change default
4007 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4008 respectively.
4009 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4010
4011 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4012 list of targets to check using "nop" insn.
4013 * configure: Rebuilt.
4014
4015 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4016
4017 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4018
4019 2002-04-03 David S. Miller <davem@redhat.com>
4020
4021 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4022 library sequence passed to the linker.
4023 (LINK_COMMAND_SPEC): Use it.
4024 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4025 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4026 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4027
4028 2002-04-03 Jason Merrill <jason@redhat.com>
4029
4030 * except.c (struct eh_status): Remove protect_list.
4031 (begin_protect_partials, end_protect_partials): Remove.
4032 (add_partial_entry): Remove.
4033 * except.h: Remove prototypes.
4034
4035 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4036 expand_decl_cleanup_eh.
4037
4038 PR c++/5636
4039 * tree.h (CLEANUP_EH_ONLY): New macro.
4040 * stmt.c (expand_decl_cleanup_eh): New fn.
4041 (expand_cleanups): Check CLEANUP_EH_ONLY.
4042 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4043 Use expand_decl_cleanup_eh.
4044 (expand_stmt): Adjust.
4045 * c-common.h: Adjust prototype.
4046
4047 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
4048
4049 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4050 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4051 (cris_target_asm_function_epilogue): Ditto.
4052 (cris_initial_frame_pointer_offset): Ditto.
4053 (cris_simple_epilogue): Ditto.
4054 (cris_expand_builtin_va_arg): Variable-size types come in
4055 by-reference.
4056
4057 2002-04-03 David S. Miller <davem@redhat.com>
4058
4059 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4060 little-endian.
4061 (set_fast_math): Correct 'fsr' type.
4062
4063 2002-04-03 Richard Henderson <rth@redhat.com>
4064
4065 PR opt/3569
4066 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4067 * toplev.c (check_global_declarations): Use it.
4068 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4069 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4070 (LANG_HOOKS_DECLS): Add it.
4071 * langhooks.c (lhd_warn_unused_global_decl): New.
4072 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4073 * c-objc-common.c (c_warn_unused_global_decl): New.
4074 * c-tree.h (c_warn_unused_global_decl): Declare.
4075 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4076
4077 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4078
4079 * langhooks-def.h (lhd_set_decl_assembler_name,
4080 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4081 (LANG_HOOKS_INITIALIZER): Update.
4082 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4083 * langhooks.h (struct lang_hooks): New hook.
4084 * tree.c (set_decl_assembler_name): Move to langhooks.c.
4085 (lang_set_decl_assembler_name): Remove.
4086 (init_obstacks): Don't set hook.
4087 (decl_assembler_name): New function.
4088 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4089 (decl_assembler_name): New.
4090 (lang_set_decl_assembler_name): Remove.
4091
4092 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4093
4094 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4095 works properly with .hidden symbols.
4096 * configure: Rebuilt.
4097 * config.in: Rebuilt.
4098 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4099 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4100 properly with .hidden symbols.
4101
4102 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4103
4104 PR middle-end/6102
4105 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4106 USE argument.
4107
4108 2002-04-03 Richard Henderson <rth@redhat.com>
4109
4110 PR opt/4120
4111 * sched-rgn.c (sets_likely_spilled): New.
4112 (sets_likely_spilled_1): New.
4113 (add_branch_dependences): Use it.
4114
4115 2002-04-02 Richard Henderson <rth@redhat.com>
4116
4117 PR opt/4311
4118 * loop.h (LOOP_FIRST_PASS): New.
4119 * loop.c (strength_reduce): Mind it when deciding to unroll.
4120 * toplev.c (rest_of_compilation): Set it.
4121
4122 2002-04-02 David S. Miller <davem@redhat.com>
4123
4124 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4125 mems_ok_for_ldd_peep when the order of the loads being examined
4126 is reversed.
4127 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4128 existing comment to increase comprehension of this situation.
4129
4130 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4131
4132 * config/sh/sh.md: Don't use union real_extract.
4133
4134 2002-04-02 Richard Henderson <rth@redhat.com>
4135
4136 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4137
4138 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4139
4140 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4141 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4142 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4143 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4144 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4145 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4146 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4147 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4148 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4149 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4150 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4151 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4152 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4153 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4154 Include as many configury headers via tm_file as possible. This
4155 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4156 * config/openbsd-oldgas.h: New file.
4157 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4158 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4159 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4160 config/i386/i386-coff.h, config/i386/i386-interix.h,
4161 config/i386/iscdbx.h, config/i386/linux-aout.h,
4162 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4163 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4164 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4165 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4166 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4167 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4168 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4169 config/i386/vxi386.h: Do not directly include configury headers.
4170 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4171 Directly include configury headers that are no longer automatically
4172 included by the above headers.
4173 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4174 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4175 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4176 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4177 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4178 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4179 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4180 (TARGET_VERSION): Define.
4181 * config/i386/beos-elf.h, config/i386/freebsd.h,
4182 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4183 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4184 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4185 config/i386/sco5.h, config/i386/sysv4.h
4186 (TARGET_VERSION): Do not need to protect.
4187 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4188 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4189 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4190 config/i386/i386-interix.h, config/i386/linux-aout.h,
4191 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4192 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4193 (YES_UNDERSCORES): Do not define - not needed.
4194 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4195 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4196 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4197 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4198 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4199 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
4200 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
4201 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
4202
4203 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
4204 Richard Henderson <rth@redhat.com>
4205
4206 PR c/5484
4207 * function.c (assign_temp): Accept either type or decl argument.
4208 Detect variables whose size is too large to fit into an integer.
4209 * stmt.c (expand_decl): Pass the decl, not the type.
4210
4211 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4212
4213 * protoize.c: Match include directory usage with cppdefault.c.
4214
4215 2002-04-03 Jeffrey A Law (law@redhat.com)
4216 Hans-Peter Nilsson <hp@bitrange.com>
4217
4218 * combine.c (simplify_comparison): Avoid narrowing a comparison
4219 with a paradoxical subreg when doing so would drop signficant bits.
4220
4221 2002-04-02 Steve Ellcey <sje@cup.hp.com>
4222
4223 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
4224 if POINTERS_EXTEND_UNSIGNED is defined.
4225
4226 2002-04-02 Richard Henderson <rth@redhat.com>
4227
4228 PR opt/3967
4229 * local-alloc.c (contains_replace_regs): LO_SUM may contain
4230 replace regs.
4231
4232 2002-04-02 Richard Henderson <rth@redhat.com>
4233
4234 * doc/standards.texi: Document required freestanding libc entry points.
4235
4236 2002-04-02 Alan Modra <amodra@bigpond.net.au>
4237
4238 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
4239 associated splitter. Remove MQ constraint.
4240 (ctrdi_internal4): Correct CCmode clobber.
4241
4242 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4243
4244 * milli64.S ($$dyncall): New function.
4245 * t-linux (LIB1ASMFUNCS): Revise module list.
4246 (LIB1ASMSRC): Use pa/milli64.S.
4247
4248 2002-04-02 Richard Henderson <rth@redhat.com>
4249
4250 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
4251 rename solaris_sys_varargs_h.
4252
4253 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4254
4255 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
4256 the same mode as its component.
4257
4258 2002-04-02 Richard Henderson <rth@redhat.com>
4259
4260 PR opt/190
4261 * final.c (this_is_asm_operands): Export.
4262 * output.h (this_is_asm_operands): Declare.
4263 * config/i386/i386.c (print_operand): Error odd asm operands.
4264
4265 2002-04-02 Richard Henderson <rth@redhat.com>
4266
4267 PR opt/420
4268 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
4269
4270 2002-04-01 Richard Henderson <rth@redhat.com>
4271
4272 PR target/1538
4273 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
4274 * fixinc/fixincl.x: Rebuild.
4275
4276 2002-04-01 Richard Henderson <rth@redhat.com>
4277
4278 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
4279 (atomic_alloc, atomic_free): New.
4280 (SIZE, MASK_FOR, PTR_IN): New.
4281 (emergency_reg_state, emergency_reg_state_free): New.
4282 (emergency_labeled_state, emergency_labeled_state_free): New.
4283 (reg_state_alloced, labeled_state_alloced): New.
4284 (alloc_reg_state, free_reg_state): New.
4285 (alloc_label_state, free_label_state, free_label_states): New.
4286 (push, pop, dup_state_stack, free_state_stack): Use them.
4287 (desc_label_state): Likewise.
4288 (uw_frame_state_for): Free label states and state stack.
4289 (uw_update_reg_address): Eliminate warnings.
4290
4291 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
4292
4293 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
4294 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
4295
4296 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4297
4298 * c-decl.c (grokdeclarator): Update.
4299 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4300 * c-tree.h (c_mark_addressable): New.
4301 * c-typeck.c (default_function_array_conversion, build_unary_op,
4302 build_array_ref, convert_for_assignment): Update.
4303 (mark_addressable): Rename.
4304 * calls.c (try_to_integrate, expand_call): Use langhook.
4305 * expr.c (expand_expr): Use langhook.
4306 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
4307 * langhooks.h (struct lang_hooks): New hook.
4308 * stmt.c (expand_asm_operands): Use langhook.
4309 * tree.h (mark_addressable): Remove.
4310 objc:
4311 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4312
4313 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4314
4315 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
4316 in previous change.
4317
4318 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4319
4320 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
4321 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
4322
4323 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4324
4325 * c-common.c (unsigned_conversion_warning, convert_and_check,
4326 unsigned_type, signed_type, shorten_compare,
4327 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
4328 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
4329 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
4330 New.
4331 * c-decl.c (grokdeclarator): Update.
4332 * c-format.c (check_format_types): Update.
4333 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4334 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4335 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
4336 * convert.c (convert_to_integer): Use new hooks.
4337 * expmed.c (make_tree): Use new hooks.
4338 * expr.c (store_expr): Use new hooks.
4339 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
4340 all_ones_mask_p, unextend, fold): Use new hooks.
4341 * langhooks.h (struct lang_hooks_for_types): New hooks.
4342 * tree.h (signed_or_unsigned_type, signed_type,
4343 unsigned_type): Remove.
4344 objc:
4345 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4346 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4347
4348 2002-03-31 Richard Henderson <rth@redhat.com>
4349
4350 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
4351 (desc_frgr_mem): Fix reference to f16-f31.
4352
4353 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4354
4355 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
4356 RTVEC_ELT): Const-ify.
4357 * varray.h (VARRAY_CHECK): Const-ify.
4358 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
4359 ggc_mark_rtvec, ggc_mark): Const-ify.
4360
4361 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4362
4363 * diagnostic.c: Include langhooks-def.h.
4364 * Makefile.in (diagnostic.o): Update.
4365
4366 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4367
4368 * c-common.c (c_unsafe_for_reeval): Rename.
4369 * c-common.h (c_unsafe_for_reeval): Rename.
4370 * c-decl.c (finish_incomplete_decl): Rename.
4371 (c_init_decl_processing): Don't set langhook.
4372 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4373 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4374 * c-objc-common.c (c_objc_common_init): Don't set langhook.
4375 * c-tree.h (finish_incomplete_decl): Rename.
4376 * langhooks-def.h (lhd_unsafe_for_reeval): New.
4377 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
4378 (LANG_HOOKS_INITIALIZER): Update.
4379 * langhooks.c (lhd_unsafe_For_reeval): New.
4380 * langhooks.h (struct langhooks): New hooks.
4381 * toplev.c (incomplete_decl_finalize_hook): Remove.
4382 (wrapup_global_declarations): Update.
4383 * tree.c (lang_unsafe_for_reeval): Remove.
4384 (unsafe_for_reeval): Update.
4385 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
4386 Remove.
4387 objc:
4388 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4389 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4390
4391 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4392
4393 * diagnostic.c (print_error_function): Remove.
4394 (default_print_error_function): Rename.
4395 (report_error_function): Update.
4396 * diagnostic.h (print_error_function): Remove.
4397 (default_print_error_function): Remove.
4398 * langhooks-def.h (struct diagnostic_context): Predeclare.
4399 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
4400 (LANG_HOOKS_INITIALIZER): Update.
4401 * langhooks.h (struct diagnostic context): Predeclare.
4402 (struct lang_hooks): New hook.
4403
4404 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4405
4406 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
4407 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
4408 !flag_pic.
4409 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
4410 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
4411 of PIC_OFFSET_TABLE_REGNUM thruout.
4412 * config/rs6000/rs6000.md: Likewise.
4413 * config/rs6000/darwin.h: Likewise.
4414
4415 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4416
4417 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
4418 unsigned HOST_WIDE_INT, not unsigned int.
4419
4420 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4421
4422 PR middle-end/6096, middle-end/6098, middle-end/6099
4423 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
4424 CODE_LABELs.
4425 (fill_slots_from_thread): Likewise.
4426
4427 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4428
4429 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
4430 floating fields in float regs.
4431 (function_arg_record_value_2): Likewise.
4432
4433 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4434
4435 * config/mmix/mmix.md (define_constants): Remove misleading
4436 FIXME. Add MMIX_fp_rO_OFFSET.
4437 ("nonlocal_goto_receiver"): Don't have stack-frame address of
4438 saved rO as part of the pattern. Remove FIXME.
4439 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
4440 here, at output-time.
4441
4442 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4443
4444 PR middle-end/6100
4445 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
4446 REG_BR_PRED.
4447 (output_v9branch): Likewise.
4448
4449 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4450
4451 * gcc.c: Revert previous patch for now.
4452 * config/i386/djgpp.h: Likewise.
4453
4454 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4455
4456 * config/mmix/crti.asm (_init): Register _fini with atexit.
4457 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
4458
4459 2002-03-31 Richard Henderson <rth@redhat.com>
4460
4461 PR target/3997
4462 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
4463 (ASM_OUTPUT_DEF_FROM_DECLS): New.
4464
4465 2002-03-31 Richard Henderson <rth@redhat.com>
4466
4467 * libgcc2.c (__bb_exit_func): Make static.
4468
4469 * config/alpha/alpha.md (trap): New.
4470
4471 2002-03-31 Richard Henderson <rth@redhat.com>
4472
4473 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
4474 promoted argument types; build trap.
4475 (expand_builtin_trap): New.
4476 (expand_builtin): Use it.
4477 * stmt.c (expand_nl_goto_receivers): Likewise.
4478 * expr.h (expand_builtin_trap): Declare.
4479 * libfuncs.h (LTI_abort, abort_libfunc): New.
4480 * optabs.c (init_optabs): Init abort_libfunc.
4481
4482 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4483
4484 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
4485 (LINK_COMMAND_SPEC): ... from here.
4486 (init_gcc_specs): Duplicate it here too, omitting
4487 shared_name in the second copy.
4488 (init_spec): Test for duplicate
4489 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
4490
4491 2002-03-30 David S. Miller <davem@redhat.com>
4492
4493 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4494 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
4495
4496 2002-03-30 Roger Sayle <roger@eyesopen.com>
4497 Richard Henderson <rth@redhat.com>
4498
4499 * regmove.c (combine_stack_adjustments_for_block): Avoid
4500 emitting a stack adjustment of zero bytes. Let delete_insn
4501 update bb->head.
4502
4503 2002-03-30 Richard Henderson <rth@redhat.com>
4504
4505 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
4506 (sparc_emitting_epilogue): New.
4507 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
4508 * config/sparc/sparc-protos.h: Update.
4509 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
4510 (TARGET_SWITCHES): Update.
4511 * config/sparc/sparc.md (return): Remove.
4512 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
4513 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
4514 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
4515 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4516 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
4517 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
4518 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
4519 Remove MASK_EPILOGUE.
4520 * doc/invoke.texi: Update.
4521
4522 2002-03-30 Daniel Berlin <dan@dberlin.org>
4523
4524 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
4525 CPP will start the file for us.
4526
4527 2002-03-30 Richard Henderson <rth@redhat.com>
4528
4529 PR target/5446
4530 * config/ia64/ia64.c (group_barrier_needed_p): Special case
4531 prologue_allocate_stack.
4532 (ia64_single_set): Use insn codes for recognition of special
4533 cases, not rtl matching.
4534 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
4535
4536 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
4537
4538 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
4539
4540 2002-03-30 Richard Henderson <rth@redhat.com>
4541
4542 PR target/6032
4543 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
4544 or -fomit-frame-pointer with profiling.
4545 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4546 (FUNCTION_PROFILER): Do nothing.
4547 (PROFILE_HOOK): New.
4548 * config/sparc/sparc.c (sparc_override_options): Don't check
4549 code models for profiling.
4550 (sparc_function_profiler): Remove.
4551 (sparc_profile_hook): New.
4552 * config/sparc/sparc-protos.h: Update.
4553
4554 2002-03-30 Jakub Jelinek <jakub@redhat.com>
4555
4556 PR optimization/6086
4557 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
4558 of SUBREG of volatile MEM or because the MEM was mode dependent,
4559 return CLOBBER instead of unmodified SUBREG.
4560
4561 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
4562
4563 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
4564 when not optimizing.
4565
4566 * toplev.c (rest_of_compilation): Cann mark_constant_function
4567 only when optimizing.
4568
4569 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
4570 are NULL.
4571
4572 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
4573 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
4574 (try_optimize_cfg): clear all AUX fields.
4575
4576 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
4577 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
4578 (ix86_address_cost): Be prepared for SUBREGed registers.
4579 (legitimate_address_p): Accept SUBREGed registers.
4580
4581 2002-03-29 Richard Henderson <rth@redhat.com>
4582
4583 PR target/5672
4584 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
4585
4586 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4587
4588 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
4589 for aggregate and TFmode types.
4590
4591 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4592
4593 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
4594
4595 2002-03-29 Richard Henderson <rth@redhat.com>
4596
4597 PR target/5886
4598 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
4599 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
4600
4601 2002-03-29 Richard Henderson <rth@redhat.com>
4602
4603 PR target/6041
4604 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
4605 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
4606 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
4607 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
4608 conditional.
4609 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
4610
4611 2002-03-29 Dale Johannesen <dalej@apple.com>
4612
4613 * loop.c (combine_movables): Do allow combination of pseudos.
4614
4615 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
4616
4617 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
4618 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
4619 No functional change except ...
4620 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
4621 * doc/install.texi (*-*-freebsd*): Document port configuration.
4622
4623 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4624
4625 * Makefile.in (convert.o, calls.o, expmed.o): Update.
4626 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
4627 Use new hooks.
4628 * builtin-types.def (BT_PTRMODE): Update.
4629 * c-common.c (type_for_size): Rename c_common_type_for_size.
4630 (type_for_mode): Similarly.
4631 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
4632 Use new hook.
4633 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
4634 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
4635 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4636 Redefine.
4637 * c-typeck.c (common_type, comptypes, default_conversion):
4638 Use new hooks.
4639 * calls.c: Include langhooks.h.
4640 (emit_library_call_value_1): Use new hooks. Avoid redundant
4641 calls.
4642 * convert.c: Include langhooks.h
4643 (convert_to_pointer, convert_to_integer): Use new hooks.
4644 * except.c (init_eh): Similarly.
4645 * expmed.c: Include langhooks.h.
4646 (expand_mult_add): Use new hooks.
4647 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
4648 try_casesi): Similarly.
4649 * fold-const.c (optimize_bit_field_compare, make_range,
4650 decode_field_reference, fold_truthop, fold): Similarly.
4651 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
4652 put_var_into_stack): Similarly.
4653 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
4654 LANG_HOOKS_TYPE_FOR_SIZE): New.
4655 (LANG_HOOKS_TYPES_INITIALIZER): Update.
4656 * langhooks.h (lang_hooks_for_types): New hooks.
4657 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
4658 * tree.c (get_unwidened, get_narrower): Similarly.
4659 * tree.h (type_for_mode, type_for_size): Remove.
4660 * varasm.c (force_const_mem): Use new hooks.
4661 * utils2.c (nonbinary_modular_operation): Update.
4662 objc:
4663 * objc-act.c (handle_impent): Update.
4664 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
4665 Redefine.
4666
4667 2002-03-29 Steve Ellcey <sje@cup.hp.com>
4668
4669 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
4670 * config/ia64/ia64.c (basereg_operand): New.
4671 * config/ia64/ia64-protos.h (basereg_operand): Declare.
4672 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
4673
4674 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4675
4676 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
4677 unwind information when frame_pointer_needed.
4678 (mmix_assemble_integer): Tweak wording in comment.
4679
4680 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4681
4682 * Makefile.in (except.o): Update.
4683 * except.c: Include langhooks.h.
4684 (init_eh): Use langhook.
4685 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
4686 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
4687 (LANG_HOOKS_INITIALIZER): Update.
4688 * langhooks.h (lang_hooks_for_types): New.
4689 (struct lang_hooks): Add it.
4690 * tree.c (make_lang_type_fn, make_lang_type): Remove.
4691 * tree.h (make_lang_type_fn, make_lang_type): Remove.
4692 config:
4693 * alpha/alpha.c: Include langhooks.h.
4694 (alpha_build_va_list): Use langhook.
4695 * d30v/d30v.c: Include langhooks.h.
4696 (d30v_build_va_list): Use langhook.
4697 * i386/i386.c: Include langhooks.h.
4698 (ix86_build_va_list): Use langhook.
4699 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
4700 * s390/s390.c: Include langhooks.h.
4701 (s390_build_va_list): Use langhook.
4702 * stormy16/stormy16.c: Include langhooks.h.
4703 (stormy16_build_va_list): Use langhook.
4704
4705 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4706
4707 PR c++/5964
4708 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
4709 attributes.
4710 (length): Compute variable length for branches/calls/jumps here.
4711 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
4712 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
4713 define branch_type attribute.
4714 (divsi3_sp32): Maximum length is 6 not 7.
4715 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
4716 call_address_untyped_struct_value_sp32,
4717 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
4718 * config/sparc/sparc.c (empty_delay_slot): New function.
4719 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
4720 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
4721
4722 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4723
4724 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
4725 nonzero_bits if not needed.
4726 (nonzero_bits) [XOR]: Likewise.
4727 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
4728 reg_last_set_mode and mode are both MODE_INT, but not equal.
4729 (record_value_for_reg): Compute reg_last_set_nonzero_bits
4730 in nonzero_bits_mode for MODE_INT modes.
4731
4732 2002-03-28 Richard Henderson <rth@redhat.com>
4733
4734 PR target/5715
4735 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
4736 to GAS. Correct drift between alternatives.
4737
4738 2002-03-28 Richard Henderson <rth@redhat.com>
4739
4740 PR target/6087
4741 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
4742
4743 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
4744
4745 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
4746 emulation to the linker.
4747
4748 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
4749
4750 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
4751 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
4752
4753 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
4754
4755 * combine.c (simplify_and_const_int): Make sure to apply mask
4756 when force_to_mode returns a constant integer. PR3311.
4757
4758 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4759
4760 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
4761
4762 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4763
4764 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
4765 and Objective-C Dialect Options.
4766
4767 2002-03-28 Richard Henderson <rth@redhat.com>
4768
4769 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
4770 comparison should be done vs !=0 not >0 return code. Tidy cases.
4771
4772 2002-03-28 Richard Henderson <rth@redhat.com>
4773
4774 * c-decl.c (finish_function): New arg can_defer_p. Pass it
4775 on to c_expand_body.
4776 * c-tree.h (finish_function): Update decl.
4777 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
4778
4779 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
4780
4781 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
4782
4783 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
4784
4785 * rtlanal.c: Include flags.h
4786 (may_trap_p): Do not mark FP operations if trapping
4787 if !flag_trapping_math
4788 * Makefile.in (rtlanal.o): Add dependency on flag.h
4789 * ifcvt.c (noce_operand_ok): Avoid the lameness.
4790
4791 2002-03-27 Zack Weinberg <zack@codesourcery.com>
4792
4793 * mips.md: Use dconst1, not 1.0, as first argument of
4794 REAL_VALUE_LDEXP. Don't use union real_extract.
4795
4796 2002-03-28 Alan Modra <amodra@bigpond.net.au>
4797
4798 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
4799 rather than $target. Heed program_prefix and
4800 program_transform_name. Search for gas in cross-compiler case too.
4801 "test -x" rather than "test -f".
4802 (gcc_cv_ld): Likewise.
4803 (gcc_cv_nm): Heed program_prefix and program_transform_name.
4804 (gcc_cv_objdump): Likewise.
4805 * configure: Regenerate.
4806
4807 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4808
4809 * Makefile.in (attribs.o): Update.
4810 * attribs.c: Include langhooks.h.
4811 (decl_attributes): Use langhook.
4812 * c-decl.c (insert_default_attributes): Rename.
4813 * c-tree.h (c_insert_default_attributes): New.
4814 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
4815 (LANG_HOOKS_INITIALIZER): Update.
4816 * langhooks.h (struct lang_hooks): New hook.
4817 * tree.h (insert_default_attributes): Remove.
4818 objc:
4819 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
4820
4821 2002-03-27 Andreas Schwab <schwab@suse.de>
4822
4823 * config/i386/i386.c (classify_argument): Also check for
4824 QUAL_UNION_TYPE.
4825
4826 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4827
4828 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
4829 any more.
4830
4831 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
4832
4833 * i960.md (ret): Set PC.
4834 (nonlocal_goto): Fix expander.
4835 * builtins.c (epxand_builin_longjmp): Check that we've emitted
4836 some jump or call.
4837
4838 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
4839
4840 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
4841 of libcall regions.
4842
4843 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4844
4845 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
4846 assigning to BLOCK_FOR_INSN directly.
4847
4848 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
4849
4850 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
4851
4852 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4853
4854 * c-common.c (c_expand_expr): Fix prototype.
4855 * c-common.h (c_expand_expr): Always declare, update.
4856 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4857 * c-objc-common.c (c_objc_common_init): No global hook.
4858 * expr.c (expand_expr): Use langhook.
4859 * expr.h (enum expand_modifier): Conditionally declare.
4860 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
4861 (LANG_HOOKS_INITIALIZER): Update.
4862 * langhooks.c (lhd_expand_expr): New.
4863 * langhooks.h (struct lang_hooks): New hook.
4864 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
4865 (lang_independent_init): Don't default hook.
4866 objc:
4867 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4868
4869 2002-03-27 Richard Henderson <rth@redhat.com>
4870
4871 PR target/6054
4872 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4873 TARGET_CONST_GP. Simplify conditions.
4874
4875 2002-03-27 Richard Henderson <rth@redhat.com>
4876
4877 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4878 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4879 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4880
4881 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
4882
4883 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
4884 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
4885 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
4886 Remove unnecessary masks.
4887 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
4888 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
4889 -mwindows, -mdll switches and their negations.
4890
4891 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4892
4893 * gcc-common.c (lang_mark_false_label_stack): Remove.
4894 * ggc.h (lang_mark_false_label_stack): Similarly.
4895
4896 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
4897
4898 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4899
4900 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4901 or __rtems_ is defined.
4902
4903 2002-03-26 Richard Henderson <rth@redhat.com>
4904
4905 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4906 if a non-trivial load was emitted.
4907 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
4908 in high+extra+low case.
4909
4910 2002-03-26 Richard Henderson <rth@redhat.com>
4911
4912 * config.gcc (sparc*-solaris): Use float_format=sparc.
4913
4914 2002-03-26 Richard Henderson <rth@redhat.com>
4915
4916 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4917 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4918 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4919 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4920 (WINT_TYPE_SIZE): Fix at 32.
4921
4922 2002-03-26 Richard Henderson <rth@redhat.com>
4923
4924 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4925 until after eh landing pad generation.
4926 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4927 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4928
4929 2002-03-26 Richard Henderson <rth@redhat.com>
4930
4931 * expr.h (ADD_PARM_SIZE): One more convert for INC.
4932
4933 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
4934
4935 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
4936 and warning switches.
4937 (cc1_options): Likewise.
4938
4939 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
4940
4941 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4942 Restore more of the signal context. Set no_reg_stack_frame.
4943 * config/ia64/unwind-ia64.c (unw_state_record):
4944 Add no_reg_stack_frame, comments.
4945 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4946 (uw_update_context): Adjust bsp when unwinding from leaf,
4947 but not signal frame.
4948
4949 2002-03-26 David Edelsohn <edelsohn@gnu.org>
4950
4951 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4952
4953 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4954
4955 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4956
4957 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4958
4959 PR target/5621
4960 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4961 "Add a pool_range attribute", which was lost during the ARM/Thumb
4962 merge.
4963
4964 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4965
4966 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4967 a register into the MAC16 accumulator.
4968
4969 2002-03-26 Andrew Cagney <ac131313@redhat.com>
4970
4971 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
4972 (Warning Options): Document -Wswitch-enum.
4973 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
4974 -Wswitch.
4975 (warn_switch_enum): Define variables.
4976 * flags.h (warn_switch_enum): Declare variables.
4977 * stmt.c (expand_end_case_type): When warn_switch_enum /
4978 -Wswitch-enum, perform switch checks.
4979 Fix PR c/5044.
4980
4981 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4982
4983 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4984 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4985 (reload_muladdsi_compare0_scratch): Delete.
4986
4987 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
4988
4989 * doc/install.texi (*-*-freebsd*): Update.
4990
4991 2002-03-26 Richard Henderson <rth@redhat.com>
4992
4993 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4994 (SUB_PARM_SIZE): Cast DEC to ssizetype.
4995
4996 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4997 types from the normal argument frame.
4998
4999 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5000 variable sized objects by reference.
5001 (sparc_va_arg): Receive them by reference too.
5002
5003 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5004
5005 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5006 code to not restoring global registers.
5007
5008 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
5009
5010 * Makefile.in (ggc-common.o): Update.
5011 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5012 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5013 * c-tree.h (c_mark_tree): New.
5014 * ggc-common.c: Include langhooks.h.
5015 (gcc_mark_trees): Use new langhook.
5016 * ggc-callbacks.c: Delete file.
5017 * ggc.h (lang_mark_tree): Remove.
5018 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5019 (LANG_HOOKS_INITIALIZER): Update.
5020 * langhooks.h (struct lang_hooks): New hook.
5021 objc:
5022 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5023
5024 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5025
5026 * doc/cpp.texi: Exclude entire Top node from printed manual.
5027 Move option index after directive index. Insert page breaks
5028 before GFDL and concept index. Index environment variables
5029 with command line options.
5030 * doc/cppenv.texi: Use @vtable for environment variable list.
5031 Add paragraph explaining semantics of empty elements in path
5032 variables. Exclude a cross-reference to Fishkill from the
5033 manpage. Remove an unnecessary cross-reference of the entry
5034 right above the referer. Don't use @anchor in text that goes
5035 into manpage.
5036 * doc/cppopts.texi: Cross-reference the environment variables
5037 section, not the specific environment variable, for consistency.
5038
5039 2002-03-25 Richard Henderson <rth@redhat.com>
5040
5041 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5042 anywhere in the block. Don't refer to insns that have been
5043 removed from the chain. Iterate backward through the new insns.
5044 Don't refer to edges that have been removed.
5045
5046 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5047
5048 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5049 test for overflow of constant.
5050
5051 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
5052
5053 PR target/2623
5054 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5055 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5056 these patterns on arm_archv4.
5057
5058 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5059
5060 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5061 int".
5062
5063 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5064
5065 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
5066 float_handled, float_handler, float_signal, set_float_handler,
5067 and do_float_handler. Set handler for SIGFPE to crash_signal.
5068 * toplev.h: Don't prototype do_float_handler.
5069
5070 * c-lex.c: Fold parse_float into lex_number. Make warning
5071 about portability of hex float constants more informative, and
5072 don't issue it on top of a syntax error.
5073 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5074 their callers.
5075 * real.h: Define REAL_VALUE_ABS here...
5076 * simplify-rtx.c: ... not here. Fold check_fold_consts,
5077 simplify_unary_real, simplify_binary_real, and
5078 simplify_binary_is2orm1 into their callers.
5079 * tree.c: Fold build_real_from_int_cst_1 into caller.
5080
5081 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5082
5083 * tsystem.h: Include float.h here...
5084 * libgcc2.c: ... not here.
5085
5086 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
5087
5088 Fixes for: PR bootstrap/3591, target/5676
5089 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5090 defined. Do not disable exceptions or rtti.
5091 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5092 mcore.h. Disable exceptions and rtti, since they are not
5093 supported by EPOC.
5094
5095 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
5096
5097 * c-decl.c (maybe_build_cleanup): Remove.
5098 * expr.c (expand_expr): Use langhook.
5099 * langhooks-def.h (lhd_return_null_tree,
5100 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5101 (LANGHOOKS_INITIALIZER): Update.
5102 * langhooks.c (lhd_return_null_tree): New.
5103 * langhooks.h (struct lang_hooks): New hook.
5104 * tree-inline.c (initialize_inlined_parameters): Use langhook.
5105 * tree.h (maybe_build_cleanup): Remove.
5106
5107 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5108
5109 * regrename.c (build_def_use): Move recog_memoized
5110 before extract_insn.
5111
5112 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5113
5114 PR target/6043
5115 * expr.c (emit_group_store): Handle storing into CONCAT.
5116
5117 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5118
5119 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5120 corresponding MATCH_DUP.
5121
5122 2002-03-24 Richard Henderson <rth@redhat.com>
5123
5124 * unroll.c (unroll_loop): Zero label_map.
5125
5126 * gcse.c: Include except.h.
5127 * Makefile.in (gcse.o): Update.
5128
5129 2002-03-24 Richard Henderson <rth@redhat.com>
5130
5131 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5132 Do resolve_unique_section before shared data clause.
5133
5134 2002-03-24 Richard Henderson <rth@redhat.com>
5135
5136 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5137
5138 2002-03-24 Richard Henderson <rth@redhat.com>
5139
5140 * recog.c (peephole2_optimize): Split blocks when EH insns are
5141 generated in the middle of a block. Do global life update if
5142 zapped EH edges.
5143
5144 2002-03-24 Richard Henderson <rth@redhat.com>
5145
5146 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5147
5148 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5149
5150 preprocessor/3951
5151 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5152 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5153 (init_dependency_output): Don't make no_output decision here.
5154
5155 2002-03-24 Andrew Cagney <ac131313@redhat.com>
5156
5157 * stmt.c (check_for_full_enumeration_handling): Remove tests of
5158 warn_switch. Update description.
5159 (expand_end_case_type): Call check_for_full_enumeration_handling
5160 when warn_switch.
5161
5162 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5163
5164 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5165 (m68hc11_split_move): Call it to see if the source and destination
5166 operands use the same direction auto inc/dec mode, otherwise make the
5167 source an offsetable memory operand and generate an add.
5168
5169 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5170
5171 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5172 register for operand 2.
5173 ("*subsi3_zero_extendqi"): Likewise.
5174 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5175 bits so that it is compatible with a pop.
5176 ("*andhi3_gen"): Likewise.
5177 ("xorhi3"): Likewise.
5178
5179 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5180
5181 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5182 -pedantic here...
5183 (cpp_post_options): ... not here.
5184
5185 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5186 Aldy Hernandez <aldyh@redhat.com>
5187
5188 Removal of separate preprocessor cpp0.
5189
5190 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5191 cpp0, install-common): Update.
5192 * c-common.c (flag_preprocess_only): New.
5193 (c_common_init): Preprocess for -E.
5194 * c-common.h (flag_preprocess_only): New.
5195 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5196 * c-objc-common.c (c_init_decl_processing): Exit quickly
5197 for NULL return from c_common_init.
5198 * cpplib.h (cpp_preprocess_file): New.
5199 * cppmain.c (main, general_init, pfile, progname): Remove.
5200 (do_preprocessing): Rename cpp_preprocess_file, don't call
5201 cpp_finish. Don't close stdout here.
5202 (setup_callbacks): Update prototype.
5203 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
5204 Update.
5205 * tradcpp.c (main): Ignore -quiet.
5206 objc:
5207 * lang-specs.h (default_compilers): Preprocess with cc1obj.
5208
5209 2002-03-24 Richard Henderson <rth@redhat.com>
5210
5211 PR optimization/5742
5212 * machmode.def: Add inner mode field to complex modes.
5213 * config/mips/mips.c (mips_function_value): Always define. Add
5214 new argument to handle libcalls.
5215 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
5216 (FUNCTION_VALUE): Likewise.
5217 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
5218 * config/mips/mips-protos.h: Update.
5219
5220 2002-03-23 Richard Henderson <rth@redhat.com>
5221
5222 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
5223 * config/sparc/sparc-protos.h: Update.
5224 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
5225
5226 2002-03-23 Richard Henderson <rth@redhat.com>
5227
5228 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
5229 _start or _init begins the text segment.
5230
5231 2002-03-23 David Edelsohn <edelsohn@gnu.org>
5232
5233 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
5234 not HOST_WIDEST_INT.
5235 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
5236
5237 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
5238
5239 PR java/5489
5240 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
5241 operand argument to output_return_instruction.
5242 * arm.c (arm_print_operand, case 'd'): If the operand is
5243 const_true_rtx then just return.
5244 (arm_print_operand, case 'D'): If the operand is const_true_rtx
5245 then abort.
5246
5247 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5248
5249 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
5250 (Warning Options): Document -Wswitch-default.
5251 * toplev.c (W_options): Add -Wswitch-default. Update comment on
5252 -Wswitch.
5253 (warn_switch_default): Define variable.
5254 (warn_switch): Update comment.
5255 * flags.h (warn_switch_default): Declare variable.
5256 (warn_switch): Update comment.
5257 * stmt.c (expand_end_case): Check for and, when
5258 warn_switch_no_default, warn of a missing default case.
5259
5260 2002-03-23 Alan Modra <amodra@bigpond.net.au>
5261
5262 * real.h (N): Special case 128 bit doubles.
5263
5264 * combine.c (simplify_comparison): When widening modes, ignore
5265 sign extension on CONST_INTs.
5266
5267 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5268
5269 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
5270 passed to adjust_address. Fix comment formatting.
5271
5272
5273 2002-03-22 Zack Weinberg <zack@codesourcery.com>
5274
5275 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
5276 Always make REAL_VALUE_TYPE a struct containing an array of
5277 HOST_WIDE_INT, not a double. Tidy up the code deciding how
5278 big it is. Don't declare or use union real_extract.
5279
5280 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
5281 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
5282 (print_operand), config/arm/arm.c (output_move_double),
5283 config/arm/arm.md (consttable_4, consttable_8),
5284 config/romp/romp.c (output_fpops), config/s390/s390.h
5285 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
5286 (xtensa_output_literal): Don't use union real_extract.
5287
5288 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
5289 (sfmode_constant_to_ulong), config/ns32k/merlin.h
5290 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
5291 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
5292 (PRINT_OPERAND): Don't use local version of union
5293 real_extract.
5294
5295 * config/convex/convex.c (check_float_value), config/vax/vax.c
5296 (vax_float_literal), config/m88k/m88k.md (divdf3),
5297 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
5298 config/pdp11/pdp11.c (output_move_quad): Don't do host
5299 arithmetic on target floating point quantities.
5300
5301 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
5302 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
5303
5304 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
5305 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
5306
5307 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
5308 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
5309 INFINITY.
5310 * print-rtl.c (print_rtx): Disable code which needs
5311 floating-point emulator.
5312 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
5313 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
5314 depending on HOST_FLOAT_FORMAT to be defined properly.
5315
5316 * config/1750a/1750a.c (get_double, float_label): Delete.
5317 (print_operand): Delete huge commented-out chunk. Use
5318 REAL_VALUE_TO_DECIMAL.
5319 * config/1750a/1750a-protos.h: Delete prototypes of deleted
5320 functions.
5321 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
5322 IEEE_FLOAT_FORMAT.
5323 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
5324 Use REAL_VALUE_TO_DECIMAL as ELF version does.
5325 * config/m88k/m88k.c (real_power_of_2_operand,
5326 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
5327 real_extract out of the union; run the input through
5328 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
5329 from that into the union.
5330 * config/pdp11/pdp11.c (output_move_double): Rearrange
5331 parentheses to make automatic indenter happy.
5332
5333 * doc/tm.texi (Cross-compilation): Rename node to "Floating
5334 Point" and rewrite to describe current situation. Also adjust
5335 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
5336 match code.
5337 * doc/rtl.texi: Adjust cross reference.
5338
5339 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5340
5341 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
5342 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
5343 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
5344 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
5345 prevent use of sp as a reload register.
5346 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
5347 non_acc_reg_operand.
5348 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
5349 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
5350 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
5351 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
5352
5353 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
5354
5355 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
5356 * cpplex.c (unterminated): Delete.
5357 (parse_string): No string literal may extend over multiple
5358 lines. Suppress the error when preprocessing assembly.
5359 * cppmain.c (scan_translation_unit): Strings are single-line.
5360
5361 * doc/cpp.texi: Update to match.
5362
5363 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5364
5365 PR optimization/5854
5366 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
5367 Shut up warnings.
5368 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
5369 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
5370 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
5371 const0 if scratch register was not allocated.
5372 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
5373 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
5374 with GEN_INT (...).
5375 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
5376 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
5377 with GEN_INT (...) everywhere. Remove constraints in define_split
5378 patterns.
5379 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
5380 require scratch register for setting 0 into regs/non-pushable memory.
5381
5382 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5383
5384 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
5385 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
5386
5387 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
5388
5389 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
5390 * cppinit.c (cpp_create_reader): On by default.
5391 (cpp_handle_option): Handle -W[no-]endif-labels.
5392 (cpp_post_options): Also enable if -pedantic.
5393 * cpplib.c (do_else): Use it.
5394 (do_endif): Likewise.
5395 * doc/cppopts.texi: Document new option.
5396 * doc/invoke.texi: Document new option.
5397
5398 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
5399
5400 * config/i386/i386.c, config/i386/i386.md: Change all occurences
5401 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
5402
5403 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5404
5405 * flow.c (calculate_global_regs_live): Clear aux fields of
5406 ENTRY and EXIT.
5407
5408 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5409
5410 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
5411 REG or MEM subregs, pass rtx * instead of rtx to it.
5412 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
5413 rtx * instead of rtx to alter_subreg.
5414 * config/m32r/m32r.c (gen_split_move_double): Likewise.
5415 * config/pj/pj.c (pj_output_rval): Likewise.
5416
5417 2002-03-22 Richard Henderson <rth@redhat.com>
5418
5419 PR target/3177
5420 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
5421 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
5422 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
5423 (ia64_expand_prologue): Look at int_regs, not words, for number
5424 of incomming int regs.
5425
5426 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
5427
5428 * expr.c (expand_expr): A RESULT_DECL is part of a call.
5429
5430 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
5431
5432 * toplev.c (flag_loop_optimize, flag_crossjumping):
5433 New static variables.
5434 (rest_of_compilation): Conditionalize crossjumping and
5435 loop optimizer.
5436 (parse_options_and_default_flags): Default loop_optimize and
5437 crossjumping.
5438 (lang_independent_options): Add -fcrossjumping and -floop-optimize
5439 * invoke.texi (crossjumping, loop-optimize): Document.
5440
5441 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5442
5443 * real.c (eiisneg): Move outside #ifdef NANS.
5444
5445 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
5446
5447 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
5448 frequencies match; avoid match on different loop depths.
5449 (try_crossjump_to_bb): Kill tests that no longer brings time
5450 savings.
5451 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
5452 updating code.
5453 (split_edge): Likewise.
5454
5455 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
5456 variable.
5457
5458 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
5459 * cfgrtl.c: Include insn-config.h
5460 (split_block) Dirtify block in presence of conditional execution
5461
5462 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5463
5464 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
5465 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
5466 (function_arg): Constify CUMULATIVE_ARGS.
5467 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
5468 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
5469 (UNITS_PER_DOUBLE): New macro.
5470 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
5471 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
5472 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
5473 fp_regs and stack_words.
5474 (EABI_FLOAT_VARARGS_P): New macro.
5475 * config/mips/mips.c (struct mips_arg_info): New.
5476 (mips_arg_info): New function.
5477 (function_arg_advance): Use it. Add adjustment instructions here
5478 rather than in function_arg.
5479 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
5480 for VOIDmode at the beginning of the function.
5481 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
5482 (function_arg_pass_by_reference): Likewise.
5483 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
5484 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
5485 (mips_va_start): Likewise. Use the new stack_words field of
5486 CUMULATIVE_ARGS to set up overflow area. Reformat.
5487 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
5488 doubles and other types, aligning the overflow pointer for non-doubles
5489 too. Remove some code duplication. Replace hard-coded constants.
5490
5491 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5492
5493 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
5494 (CLASS_UNITS): Undefine.
5495 (CLASS_MAX_NREGS): Use FP_INC.
5496 * config/mips/mips.c (compute_frame_size): Likewise.
5497 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
5498
5499 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
5500
5501 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
5502 prototype, and handle lexing numbers and identifiers.
5503 (parse_identifier): Update to new form of parse_slow.
5504 (parse_number): Fast path only, use parse_slow otherwise.
5505 (_cpp_lex_direct): Update calls to parse_number.
5506
5507 2002-03-21 DJ Delorie <dj@redhat.com>
5508
5509 * bb-reorder.c (make_reorder_chain_1): Protect against
5510 when redundant edges are omitted.
5511 * predict.c (dump_prediction): Likewise.
5512
5513 2002-03-21 Richard Henderson <rth@redhat.com>
5514
5515 PR target/5996
5516 * fixinc/inclhack.def (solaris_stdio_tag): New.
5517 * fixinc/fixincl.x: Regenerate.
5518
5519 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5520
5521 PR c/5597
5522 * c-typeck.c (process_init_element): Flag non-static
5523 initialization of a flexible array member as illegal.
5524
5525 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5526
5527 * config/rs6000/t-linux64: New.
5528 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
5529 t-ppccomm. Use t-rs6000 and t-linux64.
5530 (powerpc64-*-gnu* <tmake_file>): Likewise.
5531 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
5532 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
5533 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
5534
5535 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
5536
5537 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
5538 flag_really_no_inline instead of optimize == 0.
5539
5540 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
5541
5542 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
5543
5544 * flags.h (flag_really_no_inline): New.
5545
5546 * c-common.c (c_common_post_options): Initialize
5547 flag_really_no_inline.
5548
5549 * toplev.c (flag_really_no_inline): New.
5550
5551 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5552
5553 * config/avr/avr.md (length): Fix length computation for
5554 conditional branches.
5555
5556 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
5557
5558 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
5559 sdbout.o, profile.o): Update.
5560 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
5561 langhook.
5562 * c-common.h (gettags): Move here from tree.h.
5563 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
5564 insert_block, getdecls, kept_level_p, global_bindings_p): New.
5565 * dbxout.c (dbxout_init): Use getdecls langhook.
5566 * expr.c (expand_expr): Use insert_block langhook.
5567 * fold-const.c: Include langhooks.h.
5568 (fold_range_test, fold_binary_op_with_conditional_arg,
5569 fold): Use global_bindings_p langhook.
5570 * integrate.c (expand_inline_function): Use insert_block langhook.
5571 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
5572 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
5573 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
5574 LANG_HOOKS_GETDECLS): New.
5575 (LANG_HOOKS_INITIALIZER): Update.
5576 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
5577 langhook.
5578 * langhooks.h (struct lang_hooks_for_decls): New.
5579 (struct lang_hooks): Update.
5580 * profile.c: Include langhooks.h.
5581 (output_func_start_profiler): Use new langhooks.
5582 * sdbout.c: Include langhooks.h.
5583 (sdbout_init, sdbout_finish): Use getdecls langhook.
5584 * stmt.c: Include langhooks.h.
5585 (expand_fixup, fixup_gotos): Use new langhooks.
5586 * stor-layout.c: Include langhooks.h.
5587 (variable_size): Use global_bindings_p langhook.
5588 * toplev.c (compile_file): Use getdecls langhook.
5589 * tree-inline.c (remap_block): Use insert_block langhook.
5590 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
5591 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
5592
5593 2002-03-21 Richard Henderson <rth@redhat.com>
5594
5595 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
5596 constants in .data when -fpic.
5597
5598 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5599
5600 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
5601 where appropriate.
5602
5603 2002-03-21 Tom Tromey <tromey@redhat.com>
5604
5605 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
5606
5607 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5608
5609 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
5610
5611 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
5612
5613 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5614 Richard Henderson <rth@redhat.com>
5615
5616 PR c/5354
5617 * c-common.c (c_expand_expr): Preserve result of a statement
5618 expression if needed.
5619
5620 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5621
5622 PR bootstrap/4195
5623 * genrecog.c (maybe_both_true_mode): Remove.
5624 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
5625 * machmode.def (Pmode): Likewise.
5626
5627 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
5628
5629 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
5630 (nonlocal_mentioned_p_1): New function.
5631 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
5632 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
5633 (mark_constant_function): Recognize pure functions.
5634 * rtl.h (global_reg_mentioned_p): New prototype.
5635 * rtlanal.c (global_reg_mentioned_p,
5636 global_reg_mentioned_p_1): New function.
5637
5638 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5639
5640 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
5641 UNIX assert.h.
5642 * fixinc/fixincl.x: Regenerate.
5643
5644 2002-03-20 Jason Merrill <jason@redhat.com>
5645
5646 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
5647
5648 2002-03-20 Michael Meissner <meissner@redhat.com>
5649
5650 * doc/invoke.texi (Optimize Options): Document that -O2 sets
5651 -fstrict-aliasing.
5652
5653 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5654
5655 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
5656 ".literal_position" directive before the constant pool.
5657
5658 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5659
5660 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
5661 Add Craig Rodrigues.
5662 Add Brad Lucier to testers.
5663
5664 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5665
5666 PR target/4792
5667 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
5668 to if_then_else.
5669 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
5670 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
5671 instead of insn_extract.
5672
5673 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5674
5675 PR bootstrap/4192
5676 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
5677
5678 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
5679 stmt if some case has been output.
5680
5681 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5682
5683 PR c/5972
5684 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
5685 movsfcc_1, movdfcc_1): Add %O2.
5686 * config/i386/i386.c (print_operand): Handle %ON.
5687 Print . before float condition codes in Sun as cmov syntax.
5688 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
5689 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
5690 no longer true.
5691
5692 2002-03-20 Philip Blundell <pb@nexus.co.uk>
5693
5694 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
5695 return instruction if PC was popped.
5696
5697 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5698
5699 * config/xtensa/xtensa.md: Remove unused type attributes.
5700 (adddi_carry, subddi_carry): Change type attribute to "multi".
5701
5702 2002-03-19 Dale Johannesen <dalej@apple.com>
5703
5704 PR optimization/5999, middle-end/5731
5705 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
5706 multiplications by reciprocals.
5707
5708 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
5709
5710 * Makefile.in: Update.
5711 * c-common.c: Include langhooks.h.
5712 (inline_forbidden_p): Use new hook.
5713 * diagnostic.c: Include langhooks.h.
5714 (format_with_decl, announce_function,
5715 default_print_error_function): Use new hook.
5716 * dwarf2out.c (dwarf2_name): Use new hook.
5717 * function.c: Include langhooks.h.
5718 (init_function_start): Use new hook.
5719 * langhooks-def.h (lhd_decl_printable_name): New.
5720 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
5721 (LANGHOOKS_INITIALIZER): Update.
5722 * langhooks.c (lhd_decl_printable_name): New.
5723 * langhooks.h (struct lang_hooks): New hook.
5724 * toplev.c (decl_name, decl_printable_name): Remove.
5725 (open_dump_file): Use new hook.
5726 (process_options): Remove old hook.
5727 * tree.h (decl_printable_name): Remove.
5728 objc:
5729 * objc-act.c (objc_init): Remove old hook.
5730 (objc_printable_name): Export.
5731 * objc-act.h (objc_printable_name): New.
5732 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
5733
5734 2002-03-19 Jim Blandy <jimb@redhat.com>
5735
5736 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
5737 the start_source_file debug hook, not the current line number.
5738
5739 2002-03-19 Richard Henderson <rth@redhat.com>
5740
5741 * flow.c (EH_USES): Provide default.
5742 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
5743 * doc/tm.texi (EH_USES): New.
5744
5745 * config/ia64/ia64.c (ia64_eh_uses): New.
5746 * config/ia64/ia64-protos.h: Update.
5747 * config/ia64/ia64.h (EH_USES): New.
5748
5749 2002-03-19 Richard Henderson <rth@redhat.com>
5750
5751 * varasm.c (output_constant_def): Fix stupid typo.
5752
5753 2002-03-19 Richard Henderson <rth@redhat.com>
5754
5755 PR 5879
5756 * except.c (current_function_has_exception_handlers): New.
5757 * except.h: Declare it.
5758 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
5759 Combine tests that disable all sibcalls for the function.
5760
5761 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
5762
5763 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
5764 for INTEGER_CST.
5765
5766 2002-03-19 Richard Henderson <rth@redhat.com>
5767
5768 PR 5977, 5991
5769 * config/ia64/ia64.c: Revert 2002-03-01 patch.
5770 * config/ia64/ia64.h (INIT_EXPANDERS): New.
5771
5772 2002-03-19 Jim Blandy <jimb@redhat.com>
5773
5774 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
5775 name, even if the replacement list contains no tokens, as required
5776 by Dwarf.
5777
5778 2002-03-19 Jason Merrill <jason@redhat.com>
5779
5780 * varasm.c (globalize_decl): Get the name from the RTL, not
5781 DECL_ASSEMBLER_NAME.
5782
5783 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
5784
5785 2002-03-19 Bob Wilson <bob.wilson@acm.org>
5786
5787 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
5788 subdi_carry): Define.
5789
5790 2002-03-19 David Edelsohn <edelsohn@gnu.org>
5791
5792 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
5793 about -fpic/-fPIC if extra_warnings set.
5794
5795 2002-03-19 David Edelsohn <edelsohn@gnu.org>
5796
5797 * expr.c (expand_expr): Sign-extend CONST_INT generated from
5798 TREE_STRING_POINTER.
5799 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
5800
5801 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5802
5803 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
5804 in favor of SP if FRAME_POINTER_REQUIRED is false.
5805
5806 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
5807
5808 * emit-rtl.c (gen_int_mode): New function.
5809 * rtl.h: Prototype for it.
5810 * combine.c (make_extraction, simplify_comparison), expmed.c
5811 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
5812 (convert_modes, store_field), optabs.c (expand_fix),
5813 simplify-rtx.c (neg_const_int, simplify_unary_real),
5814
5815 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
5816 Use it instead of GEN_INT (trunc_int_for_mode (...)).
5817
5818 2002-03-19 Jakub Jelinek <jakub@redhat.com>
5819
5820 PR c/5656
5821 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
5822 convert_parm_for_inlining.
5823 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
5824 Define.
5825 * langhooks-def.h: Likewise.
5826 * objc/objc-lang.c: Likewise.
5827 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
5828 function.
5829 * tree-inline.c (initialize_inlined_parameters):
5830 Call convert_parm_for_inlining lang hook if needed.
5831 * c-typeck.c (c_convert_parm_for_inlining): New function.
5832 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
5833
5834 2002-03-18 Mark Mitchell <mark@codesourcery.com>
5835
5836 * calls.c (precompute_arguments): Do not assume that temporaries
5837 can be destroyed after expanding the argument.
5838 (expand_call): Likewise.
5839
5840 2002-03-15 Eric Christopher <echristo@redhat.com>
5841
5842 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
5843 Fix register preference on last change.
5844 * config/mips/mips.c (mips_return_in_memory): New function.
5845 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
5846 * config/mips/mips-protos.h: Declare.
5847 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
5848 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
5849
5850 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5851
5852 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
5853 a register too.
5854 (anddi3, iorsi3): Likewise.
5855
5856 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
5857 use %gprel for symbols that are going to be placed in linkonce
5858 sections.
5859
5860 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
5861 RETURN_ADDRESS_POINTER_REGNUM to $ra.
5862 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
5863 not needed. Disregard leaf_function_p().
5864 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
5865 mips16 frame pointer.
5866 * config/mips/mips.md (store ra): Only to small SP offsets.
5867 2001-08-22 Graham Stott <grahams@redhat.com>
5868 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
5869 return a REG rtx for the return address register.
5870
5871 2002-03-18 Bob Wilson <bob.wilson@acm.org>
5872
5873 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
5874 constant-pool addresses as "mode-dependent".
5875 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
5876
5877 2002-03-18 Jakub Jelinek <jakub@redhat.com>
5878
5879 PR target/5740
5880 * expr.c (emit_group_load): Use extract_bit_field if
5881 needed for CONCAT arguments.
5882
5883 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
5884
5885 PR target/4863
5886 * arm.md (tablejump): Make this a define_expand. For PIC add the
5887 offset to the base of the table.
5888 (thumb_tablejump): Matcher for Thumb tablejump insn.
5889 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
5890 as the difference of two labels.
5891 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5892 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
5893 tables in the code.
5894 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5895 * arm.c (get_jump_table_size): If the table is not in the text
5896 section, return zero.
5897
5898 2002-03-18 Bernd Schmidt <bernds@redhat.com>
5899
5900 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
5901 of gen_rtx_SUBREG.
5902 (arm_reload_out_hi): Use gen_lowpart instead of
5903 gen_rtx_SUBREG to access QImode components.
5904 * config/arm/arm.md: Disable zero_extend split for QImode
5905 subregs in BIG_ENDIAN mode.
5906 (storehi_bigend): Match use of least significant byte.
5907 (storeinthi): Remove extraneous SUBREG.
5908 Add missing construction of operands[2].
5909 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
5910 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
5911 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
5912
5913 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
5914
5915 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5916 any_operand.
5917
5918 2002-03-17 Richard Henderson <rth@redhat.com>
5919
5920 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5921 explicitly.
5922
5923 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5924
5925 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5926 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5927
5928 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5929
5930 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5931
5932 * predict.c (estimate_bb_frequencies): Delete unused variables.
5933
5934 2002-03-17 Richard Henderson <rth@redhat.com>
5935
5936 * config/ia64/ia64.c (ia64_attribute_table): Move before
5937 targetm definition. Make static.
5938
5939 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
5940
5941 * c-common.h (yyparse, c_common_parse_file): New.
5942 * c-lang.c: Include c-common.h.
5943 (LANG_HOOKS_PARSE_FILE): Redefine.
5944 * c-lex.c: Include c-common.h.
5945 (yyparse): Rename c_common_parse_file. Call yyparse.
5946 * c-parse.in (yyparse): Remove macro.
5947 * c-tree.h (yyparse_1): Remove.
5948 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
5949 (LANG_HOOKS_INITIALIZER): Update.
5950 * langhooks.h (struct lang_hoooks): New hook parse_file.
5951 * toplev.c (compile_file): Use parse_file hook.
5952 * tree.h (yyparse): Remove.
5953 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
5954
5955 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5956
5957 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
5958 float_truncate, not fix.
5959 ("*truncdfsf2_real"): Ditto.
5960 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
5961
5962 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5963
5964 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
5965
5966 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
5967 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
5968 where appropriate. Make the second reference to
5969 leaf_function_p a function call, as intended. Reindented.
5970
5971 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5972 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5973
5974 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5975 add register to non-constant into sp.
5976
5977 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
5978 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
5979 (mips16_gp_pseudo_rtx): Lose.
5980 (INIT_EXPANDERS): Deleted.
5981 * config/mips/mips.c (mips_init_machine_status): New.
5982 (mips_free_machine_status): New.
5983 (mips_mark_machine_status): New.
5984 (override_options): Set them.
5985 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
5986 (struct machine_function): ... new. Replaced all references.
5987 (mips_add_gc_roots): Don't mark them.
5988 (embedded_pic_fnaddr_reg): New, extracted from...
5989 (embedded_pic_offset): ... here.
5990 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
5991 (movsi): Likewise.
5992
5993 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5994
5995 * cppinit.c: Revert -MD removal.
5996
5997 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5998
5999 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6000 soft registers by default for 68HC12.
6001 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6002 when compiling with -fomit-frame-pointer.
6003 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6004 (expand_epilogue): Likewise.
6005 (m68hc11_gen_rotate): Use exg when rotating by 8.
6006
6007 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6008
6009 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6010 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6011 (splits): Remove unused add splits.
6012 ("*addhi3_68hc12"): Tune constraints.
6013 ("addhi_sp"): Try to use X instead of Y in all cases and if the
6014 constant fits in 8-bits and D is dead use abx/aby instructions.
6015 ("*addhi3"): Remove extern declaration of ix_reg.
6016 ("*subsi3"): Optimize and provide new split.
6017 ("subhi3"): Cleanup.
6018 ("*subhi3_sp"): Avoid saving X if we know it is dead.
6019 (arith splits): For 68hc12 save the address register on the stack
6020 and do the arithmetic operation with a pop.
6021
6022 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6023
6024 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6025 allocating QImode in address registers.
6026 ("*movqi_m68hc11"): Likewise.
6027
6028 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6029
6030 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6031
6032 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6033
6034 * cppinit.c (print_help): Display -MD and -MMD.
6035 Don't display usage string. Update assertion syntax and
6036 typo.
6037 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6038 (cpp_handle_option): Update.
6039
6040 2002-03-15 Chris Demetriou <cgd@broadcom.com>
6041
6042 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6043 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6044 and define it so that regardless of target CPU size,
6045 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6046 of "int" rather than "long."
6047
6048 2002-03-15 Richard Henderson <rth@redhat.com>
6049
6050 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6051 size as a tree.
6052
6053 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6054
6055 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6056 ("tstqi" split): Avoid using memory for tstqi on address register.
6057 (splits): Remove constraints.
6058 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6059 ("cmpdf", "cmpsf"): Remove since not used.
6060 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6061 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6062
6063 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6064
6065 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6066 ("neghi2"): Tighten constraints.
6067 ("one_cmplsi2"): Optimize and simplify split.
6068 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6069
6070 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6071
6072 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6073 and split of AND operation to clear the upper bits.
6074 ("*logicalsi3_zextqi"): Likewise.
6075 ("*logicallhi3_zexthi_ashift8"): Likewise.
6076 ("*logicalsi3_silshr16"): Likewise.
6077 ("logicalsi3_silshl16"): Likewise.
6078 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6079
6080 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6081
6082 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6083 (m68hc11_indirect_p): New function.
6084 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6085 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6086 TARGET_M6812.
6087 (asm_print_register): Likewise.
6088 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6089 (m68hc11_indirect_p): Declare.
6090 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6091 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6092 (TARGET_SWITCHES): New option -mrelax.
6093 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6094 destination.
6095 ("iorsi3", "xorsi3"): Likewise.
6096 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6097 ("*andhi3_mem"): New to handle destination in memory with bclr
6098 and a scratch register.
6099 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6100 ("*andhi3_const"): New when operand2 is constant.
6101 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6102 ("*andhi3_gen"): Cleanup of the old "andhi3".
6103 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6104 ("xorqi3"): Update constraints.
6105
6106 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6107
6108 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6109 for reg_equiv_memory_loc when the operand is a register that does
6110 not get a hard register (stack location).
6111 (tst_operand): After reload, accept all memory operand.
6112 (symbolic_memory_operand): Fix detection of symbolic references.
6113 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6114 accept symbols and any constant.
6115
6116 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6117
6118 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6119 note on the insn that sets the soft frame register.
6120 (must_parenthesize): ix and iy are also reserved names.
6121 (print_operand_address): One more place where parenthesis are required
6122 to avoid confusion with register names.
6123 (m68hc11_gen_movhi): Allow push of stack pointer.
6124 (m68hc11_check_z_replacement): Fix handling of parallel with a
6125 clobber.
6126 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6127 the replacement register is.
6128 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6129 and D8_REGS classes.
6130 (MODES_TIEABLE_P): All modes are tieable except QImode.
6131
6132 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6133
6134 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6135 (___subdi3): Likewise.
6136 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6137 (__map_data_section): Optimize 68hc11 case.
6138
6139 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6140
6141 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6142 than a shift to avoid adding a register with itself.
6143 (m68hc11_memory_move_cost): Take into account NO_REGS.
6144 (m68hc11_register_move_cost): Update and use memory move cost
6145 for soft registers.
6146 (m68hc11_address_cost): Make cost of valid offset not 0 so that
6147 it gives more opportunities to cse to optimize.
6148 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6149 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6150
6151 2002-03-15 Mark Mitchell <mark@codesourcery.com>
6152
6153 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6154 * c-common.def (CLEANUP_STMT): New tree node.
6155 * c-common.h (CLEANUP_DECL): New macro.
6156 (CLEANUP_EXPR): Likewise.
6157 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6158 * expr.c (expand_expr): Tidy.
6159 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6160 * tree-inline.c (initialize_inlined_parameters): Clean up
6161 new local variables.
6162
6163 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6164
6165 PR bootstrap/4128
6166 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6167 before movrXX only, use reg_overlap_mentioned_p.
6168 Only special case NE if just one insn can be generated.
6169
6170 2002-03-15 Jason Merrill <jason@redhat.com>
6171
6172 * varasm.c (assemble_variable): Call resolve_unique_section before
6173 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6174 of error_mark_node.
6175
6176 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6177
6178 PR target/5170
6179 * arm.md (split pattern for thumb shiftable immediates): Add comment
6180 explaining non-obvious test.
6181
6182 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6183
6184 PR target/5712
6185 * arm.md (movaddr, movaddr_insn): Delete.
6186
6187 2002-03-15 Jason Merrill <jason@redhat.com>
6188
6189 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6190 -fkeep-static-consts doesn't apply to comdats.
6191
6192 2002-03-14 Richard Henderson <rth@redhat.com>
6193
6194 * c-decl.c: Include c-pragma.h.
6195 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6196 (finish_function): Tidy.
6197 * c-pragma.c: Include c-common.h.
6198 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
6199 (handle_pragma_weak): Use them.
6200 (init_pragma): Register pending_weaks.
6201 * c-pragma.h (maybe_apply_pragma_weak): Declare.
6202 * print-tree.c (print_node): Print DECL_WEAK.
6203 * varasm.c (mark_weak_decls): Remove.
6204 (remove_from_pending_weak_list): Remove.
6205 (add_weak): Remove.
6206 (asm_emit_uninitialised): Call globalize_decl for weak commons.
6207 (weak_decls): Make a tree_list.
6208 (declare_weak): Cons weak_decls directly.
6209 (globalize_decl): Remove weak_decls elements directly.
6210 (weak_finish): Simplify weak_decls walk. Don't weaken unused
6211 symbols. Don't pretend to handle aliases.
6212 (init_varasm_once): Update weak_decls registry.
6213 * Makefile.in: Update dependencies.
6214
6215 2002-03-14 Richard Henderson <rth@redhat.com>
6216
6217 PR target/5312
6218 * config/ia64/ia64.c: Include tm_p.h last.
6219 (gen_nop_type): Remove duplicate definition.
6220 (cycle_end_fill_slots): Set sched_data for second L slot.
6221 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
6222 (nop_cycles_until): Fix typos.
6223
6224 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6225
6226 PR optimization/5891
6227 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
6228
6229 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
6230
6231 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
6232 descriptors correctly.
6233
6234 2002-03-14 Michael Meissner <meissner@redhat.com>
6235
6236 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
6237 100, allowing MAX_UNROLLED_INSNS to be overridden.
6238
6239 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
6240 --param.
6241
6242 * unroll.c (params.h): Include.
6243 (MAX_UNROLLED_INSNS): Delete, now in params.h.
6244
6245 * doc/invoke.texi (--param max-unroll-insns): Document.
6246
6247 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
6248
6249 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6250
6251 * arm.md: Fix warnings about constraints in peepholes and splits.
6252
6253 2002-03-14 Zack Weinberg <zack@codesourcery.com>
6254
6255 * cpphash.h (struct lexer_state): Remove line_extension member.
6256 * cpplib.c (dequote_string, do_linemarker): New functions.
6257 (linemarker_dir): New data object.
6258 (DIRECTIVE_TABLE): No longer need to interpret #line in
6259 preprocessed source. Delete obsolete comment about return
6260 values of handlers.
6261 (end_directive, directive_diagnostics, _cpp_handle_directive):
6262 Don't muck with line_extension.
6263 (directive_diagnostics): No need to issue warnings for
6264 linemarkers here.
6265 (_cpp_handle_directive): Issue warnings for linemarkers here,
6266 when appropriate. Dispatch linemarkers to do_linemarker, not
6267 do_line.
6268 (do_line): Code to handle linemarkers split out to do_linemarker.
6269 Convert escape sequences in filename argument, both places.
6270
6271 * cppmacro.c (quote_string): Rename cpp_quote_string and
6272 export. All callers changed.
6273 * cpplib.h (cpp_quote_string): Prototype.
6274 * cppmain.c (print_line): Call cpp_quote_string on to_file
6275 before printing it.
6276
6277 * doc/cpp.texi: Document that escapes are now interpreted in
6278 #line and in linemarkers, and that non-printing characters are
6279 converted to octal escapes when linemarkers are generated.
6280
6281 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
6282
6283 * emit-rtl.c (try_split): Use delete_insns.
6284 * recog.c (split_all_insns): Fix terminating condition.
6285
6286 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6287 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6288
6289 PR target/5828
6290 * arm.c (arm_output_epilogue): Fix floating-point register save
6291 adjustment when using a frame pointer.
6292
6293 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
6294
6295 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
6296 * config/mips/mips.c (compute_frame_size): Retrofit them here.
6297 (save_restore_insns, mips_expand_epilogue): And here.
6298 (build_mips16_call_stub): And here.
6299 (mips_function_value): Use the new macros to decide whether a single
6300 or complex float can be returned in floating-point registers. Return
6301 a parallel rtx in the complex case.
6302
6303 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
6304
6305 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
6306 call after liveness analysis.
6307
6308 * recog.c (split_insn): Use delete_insn_and_edges.
6309
6310 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
6311 instructions to have branch prediction notes.
6312 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
6313
6314 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
6315
6316 * configure.in: Don't pass -Wno-long-long to a ADA compiler
6317 that doesn't support it.
6318 * configure: Regenerate.
6319
6320 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6321
6322 PR target/5626
6323 * config/sparc/sparc.md (normal_branch, inverted_branch,
6324 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
6325 inverted_fp_branch): Adjust calls to output_cbranch.
6326 Set length attribute.
6327 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
6328 output_v9branch. Set length attribute.
6329 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
6330 predicates.
6331 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
6332 (output_cbranch): Likewise. Handle far branches.
6333 (output_v9branch): Handle far branches.
6334 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
6335 Adjust prototypes.
6336 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
6337 noov_compare64_op predicates.
6338
6339 2002-03-13 Jason Merrill <jason@redhat.com>
6340
6341 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
6342 into the function and constify it.
6343 * gthr-dce.h, gthr-solaris.h: Likewise.
6344
6345 2002-03-13 David Edelsohn <edelsohn@gnu.org>
6346
6347 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
6348 * config/rs6000/rs6000.c (rs6000_va_arg): Use
6349 std_expand_builtin_va_arg if not ABI_V4.
6350
6351 2002-03-13 Jason Merrill <jason@redhat.com>
6352
6353 * varasm.c (globalize_decl): New fn.
6354 (assemble_start_function): Use it.
6355 (asm_emit_uninitialized): Use it.
6356 (assemble_alias): Use it.
6357 (assemble_variable): Use it.
6358
6359 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
6360
6361 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
6362 2002-03-12 internal visibility change.
6363 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
6364 visibility into SYMBOL_REF_FLAG.
6365
6366 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
6367
6368 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
6369 VOIDmode operand. Add compile-time optimization for constant results.
6370
6371 2002-03-12 Jason Merrill <jason@redhat.com>
6372
6373 * c-typeck.c (convert_for_assignment): Don't allow conversions
6374 between pointers and references. Only allow lvalues to convert to
6375 reference.
6376
6377 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
6378
6379 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
6380 before prologue, to avoid scheduling problems.
6381
6382 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6383
6384 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6385 (ELIMINABLE_REGS): Add sfp->sp.
6386 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
6387
6388 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6389
6390 PR optimization/5892
6391 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
6392
6393 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6394
6395 * loop.c (basic_induction_var): Don't call convert_modes if mode
6396 classes are different.
6397
6398 2002-03-12 Richard Henderson <rth@redhat.com>
6399
6400 PR optimization/5901
6401 * function.c (reposition_prologue_and_epilogue_notes): Position
6402 the markers after/before the last/first insn not deleted.
6403
6404 2002-03-12 Richard Henderson <rth@redhat.com>
6405
6406 PR optimization/5878
6407 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
6408 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
6409 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6410
6411 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
6412 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
6413 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
6414
6415 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
6416 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
6417 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
6418 also. Don't set it if not flag_pic.
6419 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
6420 to be INVALID_REGNUM when not used.
6421
6422 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
6423
6424 * expmed.c (store_bit_field): Reset alias set for memory.
6425 (extract_bit_field): Same.
6426
6427 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6428
6429 * c-common.c (c_tree_code_type, c_tree_code_length,
6430 c_tree_code_name, add_c_tree_codes): Delete.
6431 * c-common.h (add_c_tree_codes): Delete.
6432 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
6433 Define.
6434 * c-objc-common.c (c_objc_common_init): Don't call
6435 add_c_tree_codes, instead set lang_unsafe_for_reeval.
6436 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
6437 objc_tree_code_name, add_objc_tree_codes): Delete.
6438 (objc_init): Don't call add_objc_tree_codes.
6439 * objc/objc-lang.c (tree_code_type, tree_code_length,
6440 tree_code_name): Define.
6441 * toplev.c (lang_independent_init): Don't set
6442 tree_code_length[IDENTIFIER_NODE].
6443 * tree.c (tree_code_type, tree_code_length, tree_code_name):
6444 Delete definitions, moved to language front-ends.
6445 * tree.def (IDENTIFIER_NODE): Hardwire the length.
6446 * tree.h (tree_code_type, tree_code_length, tree_code_name):
6447 Const-ify.
6448 (tree_code_length): Change type to unsigned char.
6449
6450 2002-03-12 Richard Henderson <rth@redhat.com>
6451
6452 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
6453 internal visibility change.
6454
6455 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6456
6457 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
6458 validize_mem() instead of change_address to avoid clobbering
6459 memory attributes.
6460
6461 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
6462
6463 * c-lex.h (position_after_whitespace): Remove.
6464
6465 2002-03-12 Jakub Jelinek <jakub@redhat.com>
6466
6467 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
6468 (lex_string): Use unsigned char pointers.
6469
6470 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6471
6472 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
6473 is not a valid memory_operand.
6474
6475 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6476
6477 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
6478 * config/xtensa/lib1funcs.asm: Fix copyright to include
6479 special case for libgcc files.
6480 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
6481 (__divsi3): Likewise.
6482 (__umodsi3): Likewise.
6483 (__modsi3): Likewise.
6484 * config/xtensa/lib2funcs.S: Fix copyright to include
6485 special case for libgcc files.
6486
6487 2002-03-12 Tom Rix <trix@redhat.com>
6488
6489 * collect2.c (resolve_lib_name): Move outside of
6490 OBJECT_FORMAT_COFF ifdef.
6491 (ignore_library): Same.
6492
6493 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6494
6495 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
6496
6497 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6498
6499 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
6500 to function_section before writing out the constant pool.
6501
6502 2002-03-12 David Edelsohn <edelsohn@gnu.org>
6503
6504 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
6505 zero_constant.
6506 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
6507
6508 2002-03-12 Alan Modra <amodra@bigpond.net.au>
6509
6510 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
6511 (adddi3): Likewise.
6512 (movdf): Likewise.
6513 (movdi): Likewise.
6514 (cmpsi splitter): Likewise.
6515 (modsi3): Fail if <= 0.
6516 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
6517 redundant test when HOST_BITS_PER_WIDE_INT != 32.
6518 (reg_or_sub_cint64_operand): Likewise.
6519 (num_insns_constant_wide): Optimize sign extension.
6520 (rs6000_legitimize_address): Likewise.
6521
6522 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6523
6524 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6525 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6526
6527 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6528
6529 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
6530 address calculation.
6531
6532 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6533
6534 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
6535 scratch register to DImode / TImode.
6536 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
6537 register used does not overlap the target.
6538
6539 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6540
6541 * Makefile.in (debug.o): Depend on debug.h.
6542 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
6543 * debug.c (do_nothing_debug_hooks): Likewise.
6544 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
6545 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
6546 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
6547 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6548 * dwarfout.c (dwarf_debug_hooks): Likewise.
6549 * integrate.c (output_inline_function): Likewise.
6550 * objc/objc-act.c (synth_module_prologue): Likewise.
6551 * sdbout.c (sdb_debug_hooks): Likewise.
6552 * toplev.c (debug_hooks): Likewise.
6553 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6554
6555 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6556
6557 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
6558 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
6559 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
6560 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
6561 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
6562 * defaults.h (POINTER_SIZE): Define.
6563 * doc/tm.texi (POINTER_SIZE): Document default.
6564
6565 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6566
6567 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
6568
6569 2002-03-11 Richard Henderson <rth@redhat.com>
6570
6571 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
6572 if rebuild_label_notes_after_reload.
6573
6574 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
6575
6576 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
6577 emit pic register load if "internal" visibility.
6578 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
6579 (cris_expand_builtin_va_arg): Do all computations on trees.
6580
6581 2002-03-11 Richard Henderson <rth@redhat.com>
6582
6583 * rtlanal.c: Include recog.h.
6584 (keep_with_call_p): Fix thinko.
6585 * Makefile.in (rtlanal.o): Update dependencies.
6586
6587 2002-03-11 Chris Meyer <cmeyer@gatan.com>
6588
6589 * genflags.c (gen_insn): Use IS_VSPACE.
6590 * genoutput.c (output_insn_data): Likewise.
6591 (process_template): Likewise.
6592
6593 2002-03-11 Richard Henderson <rth@redhat.com>
6594
6595 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
6596
6597 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
6598
6599 * Makefile.in: Update.
6600 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
6601 Update documentation.
6602 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
6603 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
6604
6605 2002-03-11 Zack Weinberg <zack@codesourcery.com>
6606
6607 * Makefile.in: Give texi2pod its input file as a command line
6608 argument, not on stdin.
6609
6610 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
6611 Daniel Berlin <dan@dberlin.org>
6612
6613 C++ alias analysis improvement.
6614 * alias.c (record_component_aliases): Record aliases for base
6615 classes too.
6616
6617 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
6618
6619 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
6620
6621 2002-03-11 Douglas B Rupp <rupp@gnat.com>
6622
6623 * toplev.c (vms_fopen): Remove, not needed.
6624
6625 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
6626
6627 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
6628
6629 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
6630 for FP, already done later.
6631
6632 * toplev.c (debug_args): Add entry for VMS_DEBUG.
6633 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
6634
6635 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
6636
6637 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
6638 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
6639 LARGEST_EXPONENT_IS_NORMAL for the given mode.
6640 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
6641 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
6642 (ediv, emul, eldexp, esqrt): Likewise.
6643 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
6644 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
6645 (saturate): New function.
6646 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
6647 (make_nan): Use a saturation value instead of a NaN if
6648 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
6649 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
6650 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
6651 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
6652 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
6653 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
6654 !ROUND_TOWARDS_ZERO.
6655 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
6656 (ROUND_TOWARDS_ZERO): Document.
6657
6658 2002-03-11 Andreas Jaeger <aj@suse.de>
6659
6660 * cfg.c (dump_flow_info): Remove unused variable.
6661
6662 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
6663
6664 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
6665 computations on trees.
6666
6667 2002-03-10 Richard Henderson <rth@redhat.com>
6668
6669 PR 5693:
6670 * reload.c (copy_replacements_1): New.
6671 (copy_replacements): Use it to recurse through the rtx.
6672
6673 2002-03-10 Richard Henderson <rth@redhat.com>
6674
6675 * loop.c (strength_reduce): Compute number of iterations as
6676 unsigned HOST_WIDE_INT.
6677
6678 2002-03-10 Richard Henderson <rth@redhat.com>
6679
6680 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
6681 to move away from the end of the block.
6682
6683 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
6684
6685 PR preprocessor/5899
6686 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
6687
6688 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6689
6690 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
6691
6692 * attribs.c (decl_attributes): Fix signed/unsigned warning.
6693
6694 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
6695
6696 * config/mmix/mmix.c: Improve comments.
6697 (mmix_target_asm_function_prologue): Drop variable
6698 empty_stack_frame. Don't allocate unused slot above fp.
6699 (mmix_target_asm_function_epilogue): Mirror prologue changes.
6700 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
6701 brace in first column.
6702 (enum reg_class): Ditto.
6703 (FIRST_PARM_OFFSET): Now 0.
6704 (USER_LABEL_PREFIX): Remove #if 0:d definition.
6705
6706 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6707
6708 * combine.c (make_extraction): Fix error in last change.
6709
6710 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6711
6712 * c4x.c (c4x_fp_reglist): Const-ify.
6713 * cris.c (cris_print_operand): Likewise.
6714 * i386.c (ix86_va_arg): Likewise.
6715 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
6716 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
6717 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
6718 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
6719 * mcore.h (regno_reg_class): Likewise.
6720 * mips.c (gen_int_relational): Likewise.
6721 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
6722 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
6723 * pdp11.c (move_costs): Likewise.
6724 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
6725 * s390.c (s390_branch_condition_mnemonic, regclass_map):
6726 Likewise.
6727 * s390.h (regclass_map): Likewise.
6728 * sh.c (shift_amounts): Likewise.
6729 * sh.md (rotlsi3): Likewise.
6730
6731 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
6732
6733 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
6734 (ne0+5): Use new clobber to generate proper shift pattern.
6735 Patch by Michael Matz <matz@kde.org>.
6736
6737 2002-03-09 Andreas Schwab <schwab@suse.de>
6738
6739 * gcc.c (validate_all_switches): Also handle `%W{...}'.
6740
6741 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
6742
6743 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
6744
6745 2002-03-09 Jakub Jelinek <jakub@redhat.com>
6746
6747 PR middle-end/5877
6748 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
6749 even for non-representable constants.
6750
6751 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6752
6753 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
6754 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
6755 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
6756 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
6757 (pop_function_context): Compute MAY_SHARE parameter for
6758 fixup_var_refs.
6759 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
6760 (gen_mem_addressof): Call fixup_var_refs with new parm.
6761
6762 * combine.c (make_extraction): Don't make extension of CONST_INT.
6763
6764 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
6765
6766 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
6767 in o32 and o64 ABIs.
6768 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
6769 but getting fixed-size structs passed in registers regardless of
6770 padding in o32 and o64 ABIs.
6771
6772 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
6773 offset before loading address of argument passed by transparent
6774 reference.
6775
6776 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6777
6778 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
6779
6780 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
6781
6782 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
6783 marker such that registers after it are saved.
6784
6785 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6786
6787 * sparc.c (arith_4096_operand): Fix error in last change.
6788
6789 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
6790
6791 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
6792 defaults for MEABI.
6793
6794 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
6795
6796 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
6797 vectors.
6798
6799 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
6800
6801 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
6802
6803 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
6804
6805 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
6806 removed; fix return value.
6807 * combine.c (combine_instructions): Dirtify blocks where we failed to
6808 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
6809 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
6810
6811 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6812
6813 * gcse.c (insert_insn_end_bb): Fix typo in last change.
6814
6815 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
6816
6817 * recog.c (peephole2_optimize): Re-distribute EH edges.
6818
6819 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
6820
6821 * expr.c (expand_expr): Use unsave lang hook.
6822 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
6823 (LANG_HOOKS_INITIALIZER): Update.
6824 * langhooks.h (struct lang_hooks): New hook unsave.
6825 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
6826 (unsave_expr_1): Remove unused lang_unsave_expr_now.
6827 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
6828 (unsave_expr_now): Remove.
6829 * tree.h (unsave_expr_now, lang_unsave,
6830 lang_unsave_expr_now): Remove.
6831 (lhd_unsave): New.
6832
6833 2002-03-08 Andreas Jaeger <aj@suse.de>
6834
6835 * flow.c (propagate_block_delete_insn): Remove unused variable.
6836
6837 2002-03-08 Kazu Hirata <kazu@hxi.com>
6838
6839 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
6840 insn length for memory load/store.
6841
6842 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
6843
6844 * doc/install.texi (--with-libiconv-prefix): Document.
6845
6846 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
6847
6848 * doc/sourcebuild.texi: Fix typo.
6849
6850 2002-03-08 Jakub Jelinek <jakub@redhat.com>
6851
6852 PR c/3711
6853 * builtins.c (std_expand_builtin_va_arg): Do all computations on
6854 trees.
6855
6856 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6857
6858 * rtl.c (copy_most_rtx): Move from here ...
6859 * emit-rtl.c (copy_most_rtx): ... to here.
6860
6861 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
6862
6863 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
6864 SUBTARGET_CPP_SIZE_SPEC.
6865 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
6866
6867 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
6868
6869 2002-03-07 Matt Hiller <hiller@redhat.com>
6870
6871 * gensupport.c (first_dir_md_include): Renamed from include;
6872 change all references.
6873 (last_dir_md_include): Renamed from last_include; change all
6874 references.
6875 (init_md_reader): Unconditionally initialize base_dir whether or
6876 not filename is a relative path.
6877
6878 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
6879
6880 * config/fp-bit.c (_unord_f2): Compile it in even if
6881 US_SOFTWARE_GOFAST is enabled.
6882
6883 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
6884 NULL_RTX. Set all HFmode operations as NULL_RTX.
6885 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
6886 NULL_RTX, try reversing the comparison and the operands.
6887
6888 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6889
6890 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6891 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6892 and MATCH_OP_DUP.
6893
6894 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
6895
6896 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6897
6898 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6899
6900 * basic-block.h (fixup_abnormal_edges): Declare.
6901 * reload1.c (fixup_abnormal_edges): New function.
6902 * reg-stack.c (convert_regs): Use it.
6903
6904 * gcse.c (insert_insn_end_bb): Handle trapping insns.
6905
6906 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6907
6908 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
6909
6910 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
6911 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
6912 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
6913 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
6914 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
6915 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
6916 unless x and y could be infinite.
6917 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
6918 Check that the common type of both arguments is a real, even for
6919 targets without unordered comparisons. Allow an integer argument
6920 to be compared against a real.
6921 (expand_tree_builtin): Use expand_unordered_cmp.
6922 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
6923 * cse.c (fold_rtx): Likewise. Fix indentation.
6924 * fold-const.c (fold_real_zero_addition_p): New.
6925 (fold): Use it, and the new HONOR_... macros.
6926 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
6927 * jump.c (reversed_comparison_code_parts): After searching for
6928 the true comparison mode, use HONOR_NANS to decide whether it
6929 can be safely reversed.
6930 (reverse_condition_maybe_unordered): Remove IEEE check.
6931 * simplify-rtx.c (simplify_binary_operation): Use the new macros
6932 to decide which simplifications are valid. Allow the following
6933 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
6934 and (a - -b) to (a + b).
6935 (simplify_relational_operation): Use HONOR_NANS.
6936 * doc/tm.texi: Document the MODE_HAS_... macros.
6937
6938 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6939
6940 * combine.c (simplify_comparison): If simplifying a logical shift
6941 right and compare with constant, force the comparison to unsigned.
6942
6943 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
6944
6945 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6946
6947 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6948 -mabi=no-altivec
6949 (alt_reg_names): Remove % for vrsave.
6950
6951 2002-03-06 Richard Henderson <rth@redhat.com>
6952
6953 PR optimization/5844
6954 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
6955 if used indicates we've already emitted one copy of an operand.
6956 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
6957 (gen_split): Supply a non-null used.
6958
6959 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6960
6961 * reload1.c (reload): Unshare all rtl after reload is done.
6962
6963 * simplify-rtx.c (simplify_plus_minus): Do not abort,
6964 but simply fail if the expression is too complex to simplify.
6965 (simplify_gen_binary): Handle simplify_plus_minus failures.
6966
6967 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
6968
6969 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
6970 consistently call delete_trivially_dead_insns after CSE and GCSE;
6971 fix DFI_life dumping; do jump threading after liveness; do crossjumping
6972 after liveness2; update comment in last crossjumping.
6973 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
6974
6975 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
6976
6977 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6978 after completing fast dead code elimination.
6979
6980 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6981 COMPARE operator.
6982
6983 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
6984
6985 * version.c: Fix misplaced leading blanks on first line.
6986
6987 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
6988
6989 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6990
6991 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
6992
6993 * cfgcleanup.c (mentions_nonequal_regs): New function.
6994 (thread_jump): Use it.
6995 * toplev.c (rest_of_compilation): Run jump threading after
6996 liveness.
6997
6998 2002-03-06 Jakub Jelinek <jakub@redhat.com>
6999
7000 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7001 patch.
7002
7003 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7004
7005 * predict.c (estimate_bb_frequencies): Do not reload the
7006 frequencies from notes.
7007
7008 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
7009
7010 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7011 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7012
7013 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7014 delete_noop_moves): Return indeger.
7015 * flow.c (ndead): New variable.
7016 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7017 BB argument; update callers.
7018 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7019 (life_analysis): Do not call purge_all_dead_edges.
7020 (update_life_info): Return number of deleted insns; print statistics.
7021 (update_life_info_in_dirty_blocks): likewise.
7022 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7023 return number of insns deleted.
7024
7025 * cse.c: Include timevar.h
7026 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7027 iterate until stabilizes; print statistics; return number of killed
7028 insns.
7029 * Makefile.in: (cse.o): Add timevar.h dependency
7030 * rtl.h (delete_trivially_dead_insns): New.
7031 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7032 * toplev.c (rest_of_compilation): Update callers.
7033
7034 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7035 (try_optimize_cfg): Do not update liveness.
7036 (cleanup-cfg): Loop until try_optimize_cfg and dead code
7037 removal stabilizes; use delete_trivially_dead_insns.
7038
7039 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7040
7041 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7042
7043 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7044 callbacks when processing assembly language.
7045
7046 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7047
7048 * pa.h (ASM_FILE_END): Define.
7049 * som.h (ASM_FILE_END): Delete.
7050
7051 * pa.c (function_arg): Don't pass floats in general registers in
7052 indirect calls if TARGET_ELF32.
7053
7054 2002-03-05 Richard Henderson <rth@redhat.com>
7055
7056 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7057
7058 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7059
7060 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7061
7062 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7063
7064 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7065 -r command line. Don't hide any symbols if not building
7066 shared libgcc.
7067
7068 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
7069
7070 * cfg.c (dump_flow_info): Warn about profile mismatches.
7071 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7072 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7073
7074 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7075
7076 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7077 wide volatile memory by parts.
7078
7079 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7080
7081 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7082 is NULL.
7083
7084 2002-03-05 Richard Henderson <rth@redhat.com>
7085
7086 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7087
7088 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7089
7090 * toplev.c (documented_lang_options): Document more
7091 language-specific options.
7092 * doc/invoke.texi (Warning Options): Correct documentation for
7093 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7094 * c-decl.c (c_decode_option): Use a table to handle warning options.
7095
7096 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
7097
7098 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7099 parameter to mmix_encode_section_info.
7100 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7101 relocatably. Always produce ELF, not mmo if linking relocatably.
7102 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7103 first is non-zero, don't add symbol prefix.
7104 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7105 prototype accordingly.
7106
7107 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7108
7109 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7110
7111 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7112
7113 * configure.in: Increase required makeinfo version to 4.1.
7114 * configure: Regenerate.
7115
7116 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7117
7118 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7119 elsewhere now.
7120
7121 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7122
7123 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7124 * doc/invoke.texi: Fix @math uses.
7125
7126 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7127
7128 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7129 removal
7130
7131 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7132
7133 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7134 (powerpc-*-eabisimaltivec*): Same.
7135
7136 * config/rs6000/t-ppcendian: New.
7137
7138 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7139
7140 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7141 nonimmediate_src_operand and nonimmediate_lsrc_operand to
7142 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7143
7144 2002-03-03 Richard Henderson <rth@redhat.com>
7145
7146 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7147
7148 2002-03-03 Zack Weinberg <zack@codesourcery.com>
7149
7150 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7151 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7152 tree.c, config/m68k/m68k.c:
7153 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7154 REAL_ARITHMETIC blocks unconditional. Delete some further
7155 #ifdef blocks predicated on REAL_ARITHMETIC.
7156 * flags.h, toplev.c: Delete remaining references to
7157 flag_pretend_float.
7158
7159 * doc/invoke.texi: Remove documentation of -fpretend-float.
7160 * doc/tm.texi: Describe the various REAL_* macros as provided by
7161 real.h, not by the target configuration files.
7162
7163 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7164 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7165 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7166 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7167 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7168 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7169 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7170 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7171 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7172 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7173 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7174 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7175 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7176 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7177 config/xtensa/xtensa.h:
7178 Do not define, undefine, or mention in comments any of
7179 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7180 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7181 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7182 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7183 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7184 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7185 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7186 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7187 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7188
7189 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7190
7191 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7192 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7193 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7194 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7195 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7196 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7197 Delete.
7198 * defaults.h (BITS_PER_WORD): Define.
7199 * doc/tm.texi (BITS_PER_WORD): Document default value.
7200
7201 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
7202 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
7203 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
7204
7205 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7206
7207 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
7208 lieu of explicit sizeof/sizeof.
7209 * i386.c (override_options, ix86_init_mmx_sse_builtins,
7210 ix86_expand_builtin): Likewise.
7211 * mips.c (mips_add_gc_roots): Likewise.
7212 * mmix.c (mmix_output_condition): Likewise.
7213 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
7214 altivec_init_builtins): Likewise.
7215 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
7216 * cppexp.c (Nsuff, parse_number): Likewise.
7217 * cppinit.c (builtin_array_end): Likewise.
7218 * gcc.c (n_default_compilers, process_command): Likewise.
7219 * genpreds.c (output_predicate_decls): Likewise.
7220 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
7221 * lcm.c (N_ENTITIES): Likewise.
7222 * stor-layout.c (set_sizetype): Likewise.
7223
7224 2002-03-03 Richard Henderson <rth@redhat.com>
7225
7226 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
7227 for types or labels.
7228
7229 2002-03-03 Richard Henderson <rth@redhat.com>
7230
7231 * c-decl.c (start_decl): Initialized variables are not common.
7232
7233 2002-03-02 Per Bothner <per@bothner.com>
7234
7235 * gcc.c (option_map): Suport new --bootclasspath option.
7236 --CLASSPATH is now just an alias for --classpath.
7237
7238 2002-03-02 Richard Henderson <rth@redhat.com>
7239
7240 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
7241 load if "internal" visibility.
7242 * doc/extend.texi: Document visibility meanings.
7243
7244 2002-03-02 Richard Henderson <rth@redhat.com>
7245
7246 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
7247 to functions as well.
7248
7249 2002-03-02 Richard Henderson <rth@redhat.com>
7250
7251 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
7252 (handle_visibility_attribute): Don't call assemble_visibility.
7253 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
7254 without asmspec. Invoke assemble_alias when needed.
7255 * varasm.c (maybe_assemble_visibility): New.
7256 (assemble_start_function, assemble_variable, assemble_alias): Use it.
7257
7258 2002-03-02 Richard Henderson <rth@redhat.com>
7259
7260 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
7261 invoke ENCODE_SECTION_INFO with first call flag.
7262
7263 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7264 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7265 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
7266 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
7267 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7268 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7269 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
7270 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
7271 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
7272 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
7273 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7274 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
7275 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7276 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
7277 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7278 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
7279 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
7280 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7281 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
7282 config/sh/sh.h, config/sparc/sparc.h,
7283 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7284 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
7285 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
7286 FIRST argument. As needed, examine it and do nothing.
7287
7288 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
7289 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7290 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
7291
7292 * config/arm/t-pe (pe.o): Add dependencies.
7293
7294 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7295
7296 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
7297 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
7298 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
7299 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
7300 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
7301 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
7302 * defaults.h (BITS_PER_UNIT): Define.
7303 * doc/tm.texi (BITS_PER_UNIT): Document default value.
7304
7305 2002-03-02 Kazu Hirata <kazu@hxi.com>
7306
7307 * config/h8300/h8300-protos.h: Add a prototype for
7308 compute_a_shift_length.
7309 * config/h8300/h8300.c (h8300_asm_insn_count): New.
7310 (compute_a_shift_length): Likewise.
7311 (h8300_adjust_insn_length): Do not adjust insn length of shift
7312 insns.
7313 * config/h8300/h8300.md (anonymous shift patterns): Use
7314 compute_a_shift_length.
7315
7316 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7317
7318 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
7319 trunc_int_for_mode.
7320
7321 * emit-rtl.c (offset_address): Call update_temp_slot_address.
7322
7323 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7324
7325 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
7326 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
7327 * flags.h (flag_zero_initialized_in_bss): Declare.
7328 * toplev.c (flag_zero_initialized_in_bss): New flag.
7329 (lang_independent_options): Add flag_zero_initialized_in_bss.
7330 * tree.c (initializer_zerop): New function.
7331 * tree.h (initializer_zerop): Declare.
7332 * varasm.c (assemble_variable): If we can emit bss, put zero
7333 initializers in the bss section.
7334
7335 2002-03-02 Alan Modra <amodra@bigpond.net.au>
7336
7337 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
7338 like more than one symbol per .weak directive.
7339
7340 2002-03-01 Richard Henderson <rth@redhat.com>
7341
7342 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
7343 adjust argument_pointer by pretend_args_size.
7344 (ia64_va_start): Adjust va_start address by -pretend_args_size.
7345
7346 2002-03-01 Kazu Hirata <kazu@hxi.com>
7347
7348 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
7349
7350 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
7351
7352 * toplev.c (rest_of_compilation): Delete dead jumptables before
7353 loop.
7354 * flow.c (delete_dead_jumptables): Make global.
7355 * rtl.h (delete_dead_jumptables): Declare.
7356
7357 2002-03-01 David Edelsohn <edelsohn@gnu.org>
7358
7359 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
7360 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
7361 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
7362
7363 2002-03-01 Kazu Hirata <kazu@hxi.com>
7364
7365 * config/h8300/h8300-protos.h: Fix formatting.
7366 * config/h8300/h8300.c: Likewise.
7367 * config/h8300/h8300.h: Likewise.
7368
7369 2002-03-01 Kazu Hirata <kazu@hxi.com>
7370
7371 * config/h8300/h8300.c (print_operand): Support 16-bit
7372 constant addresses.
7373 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
7374
7375 2002-02-28 Richard Henderson <rth@redhat.com>
7376
7377 * expmed.c (store_bit_field): Prevent generation of CONCATs;
7378 pun complex values as integers; use gen_lowpart instead of
7379 gen_rtx_SUBREG.
7380 (extract_bit_field): Likewise.
7381
7382 2002-03-01 Alan Modra <amodra@bigpond.net.au>
7383 David Edelsohn <edelsohn@gnu.org>
7384
7385 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
7386 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
7387 (SUPPORTS_WEAK): Likewise.
7388 * output.h (add_weak): Add tree param.
7389 * varasm.c (add_weak): Likewise. Save decl.
7390 (struct weak_syms): Add decl field.
7391 (mark_weak_decls): New function.
7392 (init_varasm_once): ggc_add_root mark_weak_decls.
7393 (assemble_start_function): Use ASM_WEAKEN_DECL.
7394 (assemble_variable): Likewise.
7395 (assemble_alias): Likewise.
7396 (declare_weak): Pass decl to add_weak.
7397 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
7398 (remove_from_pending_weak_list): Declare and define for
7399 ASM_WEAKEN_DECL.
7400 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
7401 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
7402 * defaults.h (SUPPORTS_WEAK): Likewise.
7403 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7404 .weak for code sym. Do emit .size for descriptor sym.
7405 (ASM_DECLARE_FUNCTION_SIZE): Define.
7406 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
7407 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
7408 .lglobl unless TARGET_XCOFF. Formatting fixes.
7409 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7410 .weak for code sym.
7411 (HANDLE_PRAGMA_WEAK): Remove.
7412 (ASM_WEAKEN_LABEL): Remove.
7413 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
7414
7415 2002-03-01 Jason Merrill <jason@redhat.com>
7416
7417 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
7418 (TARGET_EXPR_CLEANUP): New macro.
7419
7420 2002-02-28 Steve Ellcey <sje@cup.hp.com>
7421
7422 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
7423 to take ptr_extend into account as third type of extension.
7424 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
7425 fields used by SUBREG_PROMOTED_UNSIGNED_P.
7426 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
7427 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
7428 * calls.c (precompute_arguments): Use new macro.
7429 (expand_call): Ditto.
7430 * combine.c (nonzero_bits): Ditto.
7431 (record_promoted_value): Ditto.
7432 * expr.c (store_expr): Ditto.
7433 (expand_expr): Ditto.
7434 * function.c (assign_parms): Ditto.
7435
7436 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
7437
7438 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
7439 override -shared and -shared-libgcc.
7440
7441 2002-02-28 David O'Brien <obrien@FreeBSD.org>
7442
7443 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
7444 of "ultrasparc".
7445 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
7446 to be broken.
7447
7448 2002-02-28 Richard Henderson <rth@redhat.com>
7449
7450 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
7451 4 cycle latency from MM producers.
7452 (ia64_internal_sched_reorder): Likewise with pipeline flush.
7453
7454 2002-02-28 Jakub Jelinek <jakub@redhat.com>
7455
7456 * mklibgcc.in: Don't use GNU make extension.
7457
7458 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
7459
7460 * c-parse.in (STATIC): New terminal.
7461 (scspec): New non-terminal. Update productions accordingly.
7462 (program): Remove bogus ifc / end ifc.
7463 (array_declarator): Simplify production using STATIC.
7464
7465 2002-02-28 Jim Meyering <meyering@lucent.com>
7466
7467 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
7468 \a still means TARGET_BELL.
7469
7470 2002-02-28 Richard Henderson <rth@redhat.com>
7471
7472 * haifa-sched.c (sched_emit_insn): New.
7473 (schedule_block): Use last_scheduled_insn to track last insn.
7474 * sched-int.h (sched_emit_insn): Prototype.
7475 * config/ia64/ia64.c (last_issued): Remove.
7476 (ia64_variable_issue): Don't set it.
7477 (nop_cycles_until): Use sched_emit_insn.
7478
7479 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
7480
7481 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
7482 extended constants.
7483
7484 2002-02-28 Kazu Hirata <kazu@hxi.com>
7485
7486 * config/h8300/h8300.c: Fix formatting.
7487 * config/h8300/h8300.h: Likewise.
7488
7489 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
7490
7491 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
7492 which may overwrite the high byte of the frame pointer.
7493
7494 2002-02-28 Bo Thorsen <bo@suse.de>
7495
7496 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
7497 (STARTFILE_SPEC): Add 64 bit files.
7498 (ENDFILE_SPEC): Likewise.
7499
7500 2002-02-28 Jason Merrill <jason@redhat.com>
7501
7502 * c-decl.c (finish_function): Only warn about missing return
7503 statement with -Wreturn-type.
7504
7505 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
7506
7507 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
7508
7509 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
7510 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
7511
7512 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
7513
7514 * basic-block.h (BB_REACHABLE): Renumber.
7515 (BB_DIRTY, BB_NEW): New flags.
7516 (clear_bb_flags): Declare.
7517 (update_life_info_in_dirty_blocks): Declare.
7518 * cfg.c (clear_bb_flags): New function.
7519 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
7520 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
7521 reorder_insns, emit_insn_after): Mark block as dirty.
7522 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
7523 (update_life_info_in_dirty_blocks): New function.
7524 * recog.c (apply_change_group): Dirtify block.
7525
7526 * cse.c (cse_insn): Reorder emitting of jump insn to keep
7527 cfg consistent.
7528 * gcse.c (delete_null_pointer_checks): Likewise.
7529
7530 * toplev.c (dump_file_index): Move cse2 after bp,
7531 add DFI_null
7532 (dump_file_info): Similary.
7533 (rest_of_compilation): Avoid most of CFG rebuilds;
7534 do first if converision after null pointer checks, do cse2
7535 after branch prediction; avoid full liveness rebuild after
7536 initializing subregs.
7537 * invoke.texi (-d options): Document -du, renumber.
7538
7539 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
7540 (notice_new_block): Do not set BB_UPDATE_LIFE.
7541 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
7542 merge_blocks_move_successor_nojumps, merge_blocks,
7543 try_crossjump_to_edge): Likewise.
7544 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
7545 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
7546 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
7547 (merge_of_block): Do not use life_data_ok.
7548 (find_if_case_1): Do not use SET_UPDATE_LIFE.
7549 (if_convert): Use BB_DIRTY mechanizm to update life.
7550 * lcm.c (optimize_mode_switching): Update
7551 update_life_info_in_dirty_blocks
7552
7553 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
7554
7555 * Makefile.in (integrate.o): Update.
7556 * c-decl.c (copy_lang_decl): Rename.
7557 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7558 * integrate.c: Include langhooks.h.
7559 (copy_decl_for_inlining): Update to use langhook.
7560 * langhooks-def.h (lhd_do_nothing_t,
7561 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
7562 (LANG_HOOKS_INITIALIZER): Update.
7563 * langhooks.c (lhd_do_nothing_t): New.
7564 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
7565 * tree.h (copy_lang_decl): Remove.
7566 objc:
7567 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7568
7569 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
7570
7571 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
7572 POST_DEC, and POST_MODIFY.
7573
7574 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7575
7576 * c-typeck.c (digest_init): Remove unused parameter; all
7577 callers changed.
7578
7579 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
7580
7581 * expmed.c (expand_shift): Correctly test for low part of a
7582 subreg.
7583
7584 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7585
7586 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
7587 insn UIDs with insn addresses.
7588
7589 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7590
7591 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
7592 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
7593 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
7594 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
7595 gcc.c, toplev.c: Delete code implementing -traditional mode.
7596
7597 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
7598 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
7599 Document removal of -traditional mode for compilation, and
7600 remove documentation only relevant to that mode.
7601
7602 * config/nextstep.h, config/ptx4.h, config/svr4.h,
7603 config/convex/convex.h, config/d30v/d30v.h,
7604 config/i386/dgux.h, config/i386/osf1elf.h,
7605 config/i386/osfelf.h, config/i386/osfrose.h,
7606 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
7607 config/m68k/hp310.h, config/m88k/dgux.h,
7608 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
7609 config/m88k/m88k.h, config/m88k/openbsd.h,
7610 config/mips/abi64.h, config/mips/osfrose.h,
7611 config/mips/svr4-5.h, config/mips/svr4-t.h,
7612 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7613 config/stormy16/stormy16.h: Remove all references to
7614 -traditional from target specs. Delete all mention of the
7615 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
7616 delete a couple of commented-out definitions of
7617 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
7618 to -traditional.
7619
7620 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
7621 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
7622
7623 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7624
7625 * mklibgcc.in: Don't use \n in a line subject to
7626 interpretation by echo.
7627
7628 2002-02-27 Graham Stott <grahams@redhat.com>
7629
7630 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
7631 Constify NAME.
7632
7633 * loop.c (prescan_loop): Handle PARALLEL.
7634
7635 * unroll.c (loop_iterations): Return 0 if the add_val for
7636 a BIV is REG.
7637
7638 * final.c (output_operand_lossage): Constify PFX_STR.
7639
7640 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
7641
7642 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
7643
7644 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
7645 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
7646
7647 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
7648
7649 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7650
7651 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
7652
7653 * cpplex.c (_cpp_lex_token): Handle directives in macro
7654 arguments.
7655 * cpplib.c (_cpp_handle_directive): Save and restore state
7656 if parsing macro args when entering a directive.
7657 * cppmacro.c (collect_args): No need to handle directives
7658 in macro arguments.
7659 (enter_macro_context, replace_args): Use the original macro
7660 definition in case it was redefined whilst collecting arguments.
7661 doc:
7662 * cpp.texi: Update.
7663
7664 2002-02-26 David Edelsohn <edelsohn@gnu.org>
7665
7666 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
7667 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
7668 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
7669 method on AIX.
7670 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
7671 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
7672 (load_toc_v4_PIC_2): Same.
7673
7674 2002-02-26 Alan Modra <amodra@bigpond.net.au>
7675
7676 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
7677
7678 2002-02-26 Richard Henderson <rth@redhat.com>
7679
7680 * config/alpha/alpha.md (ashldi_se): Re-enable.
7681
7682 2002-02-26 Richard Henderson <rth@redhat.com>
7683
7684 * config/alpha/alpha.c (alpha_encode_section_info): Examine
7685 MODULE_LOCAL_P; improve commentary.
7686
7687 2002-02-26 Zack Weinberg <zack@codesourcery.com>
7688
7689 * doc/cpp.texi: Clarify documentation of relationship between
7690 #line and #include.
7691
7692 2002-02-26 Kazu Hirata <kazu@hxi.com>
7693
7694 * config/h8300/h8300-protos.h: Update the prototype for
7695 compute_logical_op_length. Add the prototype for
7696 compute_logical_op_cc.
7697 * config/h8300/h8300.c (compute_logical_op_length): Figure out
7698 code from operands.
7699 (compute_logical_op_cc): New.
7700 * config/h8300/h8300.md: Combine all the logical op patterns
7701 in HImode and SImode. Use compute_logical_op_cc.
7702
7703 2002-02-26 Kelley Cook <kelleycook@comcast.net>
7704
7705 * config/i386/i386.c (print_operand): Don't append ATT-style
7706 length suffixs to x87 opcodes when in Intel mode.
7707
7708 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
7709
7710 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
7711 (init_emit_once): Update calls.
7712 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
7713 (init_syntax_once): Prototype.
7714
7715 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7716
7717 * pa-linux.h (LIB_SPEC): Update definition.
7718 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7719
7720 2002-02-26 Richard Henderson <rth@redhat.com>
7721
7722 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
7723 if we emitted a stop bit.
7724
7725 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7726
7727 * configure.in (libgcc_visibility): Substitute.
7728 * configure: Rebuilt.
7729 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
7730 defined symbols .hidden.
7731
7732 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7733
7734 * attribs.c (c_common_attribute_table): Add visibility.
7735 (handle_visibility_attribute): New function.
7736 * varasm.c (assemble_visibility): New function.
7737 * output.h (assemble_visibility): Add prototype.
7738 * tree.h (MODULE_LOCAL_P): Define.
7739 * crtstuff.c (__dso_handle): Use visibility attribute.
7740 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
7741 for MODULE_LOCAL_P symbols too.
7742 * config/ia64/ia64.c (ia64_encode_section_info): Handle
7743 MODULE_LOCAL_P symbols the same way as local symbols.
7744 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
7745 into .sdata/.sbss by the user.
7746 * doc/extend.texi (Function Attributes): Document visibility
7747 attribute.
7748
7749 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7750
7751 PR debug/5770
7752 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
7753 STRING_CST initializer spanning the whole variable without
7754 embedded zeros.
7755 If expand_expr returned MEM, don't use it.
7756
7757 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
7758
7759 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
7760 generate a die for the lexical block.
7761
7762 2002-02-26 Kazu Hirata <kazu@hxi.com>
7763
7764 * config/h8300/h8300-protos.h: Add a prototype for
7765 compute_logical_op_length.
7766 * config/h8300/h8300.c (compute_logical_op_length): New.
7767 * config/h8300/h8300.md (anonymous logical patterns): Use
7768 compute_logical_op_length for length.
7769
7770 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7771
7772 * dwarf2out.c (modified_type_die): Do not call type_main_variant
7773 for vectors.
7774 (gen_type_die): Same.
7775
7776 * attribs.c (handle_vector_size_attribute): Set debug information.
7777
7778 2002-02-26 Daniel Egger <degger@fhm.edu>
7779
7780 * config/rs6000/rs6000.md: Swap define_insn attributes to
7781 fix incorrect generation of merge high instructions instead
7782 of merge low.
7783
7784 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7785
7786 * c-typeck.c (really_start_incremental_init): Use
7787 bitsize_zero_node for vectors.
7788
7789 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7790
7791 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
7792 ("*set_vrsave_internal"): Same.
7793
7794 2002-02-25 Richard Henderson <rth@redhat.com>
7795
7796 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
7797 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
7798
7799 2002-02-25 Jakub Jelinek <jakub@redhat.com>
7800
7801 PR target/5755
7802 * config/i386/i386.c (ix86_return_pops_args): Only pop
7803 fake structure return argument if it was passed on the stack.
7804
7805 2002-02-25 Jason Merrill <jason@redhat.com>
7806
7807 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
7808 RESULT_DECL.
7809
7810 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
7811
7812 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
7813 link with shared_name only.
7814 * doc/invoke.texi (Link Options): Document new behavior.
7815
7816 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
7817
7818 * c-typeck.c (push_init_level): Handle vectors.
7819
7820 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
7821
7822 * config/sparc/sparc.c (const64_high_operand): Zero-extend
7823 operands of SPARC_SETHI_P.
7824 (input_operand): Likewise.
7825 (sparc_emit_set_const32): Likewise.
7826 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
7827 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
7828 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
7829 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
7830 (movdi_insn_sp64_vis): Likewise.
7831 (movdi split, movdf split): Use SETHI32.
7832 * doc/md.texi: Document SPARC constraints L, M and N.
7833
7834 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
7835
7836 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
7837 ("*set_vrsave_internal"): use mfspr for Darwin.
7838
7839 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
7840 gen_get_vrsave_internal.
7841
7842 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7843
7844 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
7845
7846 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
7847
7848 * cpplex.c (cpp_interpret_charconst): Get signedness or
7849 otherwise of wide character constants correct.
7850 * cppexp.c (lex): Get signedness of wide charconsts correct.
7851
7852 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7853
7854 * optabs.c (widen_operand): Only call convert_modes for
7855 promoted SUBREG if signedness matches.
7856 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
7857
7858 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7859
7860 * cpplib.c (glue_header_name): Use local buffer to build up
7861 header name.
7862
7863 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7864
7865 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
7866
7867 2002-02-23 Kazu Hirata <kazu@hxi.com>
7868
7869 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
7870 H8/300[HS] separately.
7871 * config/h8300/h8300.md: Remove the early clobber constraint
7872 from bit field patterns.
7873
7874 2002-02-23 Kazu Hirata <kazu@hxi.com>
7875
7876 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
7877 register_operand.
7878 (mulhisi3): Likewise.
7879 (umulqisi3): Likewise.
7880 (umulhisi3): Likewise.
7881
7882 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7883
7884 * cppinit.c (output_deps): Correct test for stdout output.
7885 (init_dependency_output): Cure warning.
7886
7887 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7888
7889 * expr.c (store_expr): When converting expression to promoted
7890 equivalent type, allow using SUBREG_REG of TARGET as the target
7891 of the expansion of EXP.
7892 * loop.c (basic_induction_var, case SUBREG): Always look inside.
7893 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
7894 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
7895 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
7896 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
7897
7898 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
7899
7900 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
7901 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
7902 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
7903
7904 2002-02-23 Jakub Jelinek <jakub@redhat.com>
7905
7906 PR optimization/5747
7907 * loop.c (scan_loop): Update reg info if move_movables created new
7908 pseudos.
7909
7910 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7911
7912 * gcc.c (init_gcc_spec): Revert last change.
7913
7914 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7915
7916 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7917 gpc_reg_operand constraint.
7918
7919 2002-02-23 Alan Modra <amodra@bigpond.net.au>
7920
7921 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
7922 Simplify comparison of `low'.
7923 (add_operand): Fix formatting.
7924 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
7925 (mask_operand): Disallow mask to wrap in 64-bit mode.
7926 (rs6000_stack_info): Remove redundant test setting push_p.
7927 (output_toc): Fix formatting.
7928 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
7929 cc_reg_not_cr0_operand constraint.
7930 (booldi3, boolcdi3 splitters): Same.
7931
7932 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
7933
7934 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7935
7936 2002-02-22 David Edelsohn <edelsohn@gnu.org>
7937
7938 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7939 gcc invoked with -shared-libgcc.
7940
7941 2002-02-22 Jakub Jelinek <jakub@redhat.com>
7942
7943 PR c++/5748
7944 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7945 decl if any of elements was TREE_USED.
7946
7947 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
7948
7949 * config/sparc/sol2.h: Don't include sys/mman.h.
7950 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
7951 (arith_4096_operand): Don't throw high bits away.
7952 (const64_operand): Take sign extension of CONST_INTs into account.
7953 (const64_high_operand, sparc_emit_set_const32): Likewise.
7954 (GEN_HIGHINT64): Likewise.
7955 (sparc_emit_set_const64_quick1): Likewise.
7956 (const64_is_2insns): Likewise.
7957 (print_operand): Use trunc_int_for_mode for sign extension.
7958 * config/sparc/sparc.h (SMALL_INT32): Likewise.
7959 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
7960 chars. Assume CONST_INT is already properly sign-extended.
7961 (movdi split): Sign-extend each SImode part.
7962 (andsi3 split): Don't mask high bits off, so that result
7963 remains properly sign-extend.
7964 (iorsi3 split): Likewise.
7965 (xorsi3 split): Likewise.
7966
7967 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
7968
7969 * fold-const.c (fold): Fix typo in comments.
7970
7971 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7972
7973 * Makefile.in (langhooks.o): Update dependencies.
7974
7975 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7976
7977 * langhooks.c: Include flags.h.
7978
7979 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
7980
7981 * testsuite/gcc.dg/attr-alwaysinline.c: New.
7982
7983 * c-common.c (c_common_post_options): Set inline trees by
7984 default.
7985
7986 * doc/extend.texi (Function Attributes): Document always_inline
7987 attribute.
7988 Update documentation about inlining when not optimizing.
7989
7990 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7991
7992 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7993 unless DECL_ALWAYS_INLINE.
7994
7995 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
7996 unless DECL_ALWAYS_INLINE.
7997 (c_disregard_inline_limits): Disregard if always_inline set.
7998
7999 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8000 Disregard if always_inline set.
8001 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8002 unless DECL_ALWAYS_INLINE.
8003
8004 * attribs.c (handle_always_inline_attribute): New.
8005 (c_common_attribute_table): Add always_inline.
8006
8007 * config/rs6000/altivec.h: Add prototypes for builtins
8008 requiring the always_inline attribute.
8009
8010 2002-02-21 Eric Christopher <echristo@redhat.com>
8011
8012 * expmed.c (store_bit_field): Try to simplify the subreg
8013 before generating a new one when when the mode size of
8014 value is less than maxmode.
8015
8016 2002-02-21 Richard Henderson <rth@redhat.com>
8017
8018 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8019 than gen_rtx_PLUS to form the sum.
8020 * explow.c (force_reg): Rearrange to not allocate new pseudo
8021 when force_operand returns a register.
8022 * expr.c (expand_assignment): Allow offset_rtx expansion to
8023 return a sum. Do not force addresses into registers.
8024 (expand_expr): Likewise.
8025 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8026 to canonicalize arithmetic that didn't simpify.
8027 (simplify_plus_minus): New argument force; update
8028 all callers. Don't split CONST unless we can do something with it,
8029 and wouldn't lose the constness of the operands.
8030
8031 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8032 that we generated earlier.
8033
8034 2002-02-21 Tom Tromey <tromey@redhat.com>
8035
8036 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8037 (output_line_info): Use constant `1', with a long explanatory
8038 comment.
8039 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8040
8041 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8042
8043 * jump.c (redirect_jump): If old label has no UID, don't try to
8044 delete it.
8045
8046 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8047
8048 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8049 If input is constant, do shifts at compile time.
8050
8051 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8052
8053 * doc/extend.texi: Fix some more overfull hboxes.
8054
8055 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8056
8057 PR optimization/4994
8058 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8059 register moves.
8060
8061 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8062
8063 PR c++/4574
8064 * expr.h (expand_and): Add mode argument.
8065 * expmed.c (expand_and): Add mode argument.
8066 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8067 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8068 * except.c (expand_builtin_extract_return_addr): Likewise.
8069 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8070 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8071 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8072 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8073 * config/c4x/c4x.md: Use GEN_INT (x) instead of
8074 gen_rtx (CONST_INT, VOIDmode, x).
8075
8076 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8077
8078 PR c/4697:
8079 * stmt.c (warn_if_unused_value): Move side effects test once more.
8080
8081 2002-02-20 Torbjorn Granlund <tege@swox.com>
8082
8083 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8084 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8085
8086 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8087
8088 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8089 SUBREG or ZERO_EXTEND.
8090
8091 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
8092
8093 * sh.h (current_function_anonymous_args): Remove.
8094 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8095 of current_function_varargs and current_function_stdarg is set.
8096 * sh.c (sh_expand_prologue): Check current_function_varargs /
8097 current_function_stdarg / TARGET_SH5 instead of
8098 current_function_anonymous_args.
8099
8100 * sh64.h (TARGET_VERSION): Define.
8101
8102 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8103
8104 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8105 VRSAVE_REGNO on TARGET_ALTIVEC.
8106
8107 2002-02-20 Alan Modra <amodra@bigpond.net.au>
8108
8109 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8110 bits of SImode const_int.
8111 (includes_rshift_p): Likewise.
8112 (print_operand): Call mask_operand and mask64_operand with correct
8113 mode.
8114 (rs6000_output_function_epilogue): Pad traceback table to word.
8115 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8116 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8117 mask64_operand with correct mode.
8118 (FUNCTION_ARG_REGNO_P): Correct parentheses.
8119
8120 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8121
8122 PR debug/4461
8123 * varasm.c (get_pool_constant_mark): New.
8124 * rtl.h (get_pool_constant_mark): Add prototype.
8125 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8126 be represented if it has not been output.
8127
8128 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8129
8130 * combine.c (do_SUBST): Sanity check substitutions of
8131 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8132 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8133 CONST_INT into its operand.
8134 (known_cond): Likewise, for ZERO_EXTEND.
8135 * simplify-rtx.c (simplify_unary_operation): Fix condition to
8136 allow for simplification of wide modes. Reject CONST_INTs in
8137 ZERO_EXTEND when their actual mode is not given.
8138
8139 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8140
8141 * c-decl.c (pushdecl): If no global declaration is found for an
8142 extern declaration in block scope, try a limbo one.
8143
8144 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8145
8146 PR c++/4401
8147 * c-common.c (pointer_int_sum): Moved from...
8148 * c-typeck.c (pointer_int_sum): ...here.
8149 * c-common.h (pointer_int_sum): Add prototype.
8150
8151 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8152
8153 PR c++/5713
8154 * c-decl.c (duplicate_decls): Return 0 if issued error about
8155 redeclaration.
8156
8157 2002-02-20 Roger Sayle <roger@eyesopen.com>
8158 Jakub Jelinek <jakub@redhat.com>
8159
8160 PR c/4389
8161 * tree.c (host_integerp): Ensure that the constant integer is
8162 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8163 when pos is zero or non-zero respectively. Clarify comment.
8164 * c-format.c (check_format_info_recurse): Fix host_integerp
8165 usage; the pos argument should be zero when assigning to a
8166 signed HOST_WIDE_INT.
8167
8168 2002-02-20 Richard Henderson <rth@redhat.com>
8169
8170 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8171 of the operand, rather than assuming TImode.
8172 (ix86_expand_binop_builtin): Cope with commutative patterns
8173 using nonimmediate_operand for both operands.
8174 (ix86_expand_timode_binop_builtin): Likewise.
8175 (ix86_expand_store_builtin): Validate operand 1.
8176 (ix86_expand_unop1_builtin): Likewise.
8177
8178 2002-02-20 Philip Blundell <philb@gnu.org>
8179
8180 PR 5705
8181 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8182
8183 2002-02-20 Richard Henderson <rth@redhat.com>
8184
8185 PR c/5615
8186 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8187
8188 2002-02-20 Tom Tromey <tromey@redhat.com>
8189
8190 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8191 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8192 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8193 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8194 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8195 unconditionally.
8196
8197 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8198
8199 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8200 for (const_int 0) in X not just INTVAL.
8201
8202 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
8203
8204 * doc/extend.texi: Avoid or reduce overfull hboxes.
8205
8206 2002-02-20 Diego Novillo <dnovillo@redhat.com>
8207
8208 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
8209 operations if the field does not start at a mode boundary.
8210
8211 2001-02-20 Joel Sherrill <joel@OARcorp.com>
8212
8213 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
8214 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
8215 Also done for -Acpu and -Amachine.
8216
8217 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
8218
8219 * cppinit.c (init_dependency_output): Take deps output file
8220 from -o if none given with -MF. Suppress normal output.
8221 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
8222 * doc/cpp.texi, doc/invoke.texi: Update.
8223
8224 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8225
8226 * toplev.c (output_quoted_string): Write unprintable
8227 characters with octal escapes.
8228
8229 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8230
8231 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
8232 really_call_used[VRSAVE_REGNO] if not Altivec.
8233
8234 2002-02-19 Alan Modra <amodra@bigpond.net.au>
8235
8236 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
8237 MODE_MASK.
8238 (constant_pool_expr_1): Fix formatting.
8239 (rs6000_legitimize_reload_address): Likewise.
8240
8241 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8242
8243 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
8244 now that we have one.
8245
8246 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8247
8248 * tree.h (struct tree_common): Remove aux. Add unused_0 at
8249 end of first block of bitfields (which was only seven bits);
8250 rename dummy to unused_1; remove comment which is no longer true.
8251
8252 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8253
8254 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
8255
8256 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8257
8258 PR 5399
8259 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
8260 if generating PIC.
8261
8262 PR 5054
8263 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
8264 arm_is_longcall_p rather than inspecting call-type cookie
8265 directly.
8266 (call_value_insn) [TARGET_THUMB]: Likewise.
8267
8268 2002-02-19 Graham Stott <grahams@redhat.com>
8269
8270 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
8271
8272 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8273
8274 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
8275 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
8276 (FP_SAVE_INLINE): Delete.
8277
8278 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
8279 * config/rs6000/eabi.asm: Remove ABI save restore routines.
8280 * config/rs6000/t-ppccomm: Build crtsavres.o.
8281 * config/rs6000/crtsavres.asm: New file.
8282
8283 2002-02-19 Philip Blundell <philb@gnu.org>
8284
8285 * config/arm/arm.c (use_return_insn): Don't reject interrupt
8286 functions.
8287 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
8288 (output_return_instruction): Allow interrupt functions to return with
8289 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
8290 (arm_expand_prologue): Subtract 4 before stacking LR in an
8291 interrupt function.
8292
8293 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8294
8295 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
8296 decl, not just FUNCTION_DECL.
8297 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
8298 (arm_assemble_integer): Likewise.
8299 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
8300 marked local.
8301
8302 2002-02-19 matthew green <mrg@eterna.com.au>
8303
8304 * config.gcc (sparc-*-netbsdelf*): Enable target.
8305 (sparc64-*-netbsd*): New target.
8306 * config/sparc/netbsd-elf.h: New file.
8307 * config/sparc/t-netbsd64: New file.
8308
8309 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8310
8311 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
8312
8313 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
8314
8315 * doc/invoke.texi: explicitly list the style guidelines that
8316 -Weffc++ checks for.
8317
8318 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
8319
8320 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
8321
8322 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
8323
8324 PR other/5718
8325 * gcc.c (cpp_unique_options): Treat -o as indicating object file
8326 only if not -E. If -E, pass -o through to the preprocessor.
8327
8328 2002-02-19 Kazu Hirata <kazu@hxi.com>
8329
8330 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
8331 register number with an appropriate macro.
8332
8333 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8334
8335 * doc/rtl.texi (Constants): Close @code tag.
8336
8337 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
8338
8339 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
8340 ("mmx_uavgv4hi3"): Same.
8341 ("pmulhrwv4hi3"): Same.
8342
8343 * tree-inline.c (walk_tree): Handle vectors.
8344
8345 * c-common.c (constant_expression_warning): Handle vectors.
8346 (overflow_warning): Same.
8347
8348 * sched-deps.c (sched_analyze_2): Handle vectors.
8349
8350 * rtlanal.c (rtx_unstable_p): Handle vectors.
8351 (rtx_varies_p): Same.
8352 (count_occurrences): Same.
8353 (regs_set_between_p): Same.
8354 (modified_between_p): Same.
8355 (modified_in_p): Same.
8356 (volatile_insn_p): Same.
8357 (volatile_refs_p): Same.
8358 (side_effects_p): Same.
8359 (may_trap_p): Same.
8360 (inequality_comparisons_p): Same.
8361 (replace_regs): Same.
8362 (computed_jump_p_1): Same.
8363
8364 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
8365 argument.
8366 (inner_mode_array): New.
8367 (copy_rtx): Handle vectors.
8368 (copy_most_rtx): Same.
8369 (rtx_equal_p): Same.
8370 (get_mode_alignment): Adjust for vectors.
8371
8372 * resource.c (mark_referenced_resources): Handle vectors.
8373 (mark_set_resources): Same.
8374
8375 * reload1.c (eliminate_regs): Handle vectors.
8376 (elimination_effects): Same.
8377 (scan_paradoxical_subregs): Same.
8378
8379 * reload.c (subst_reg_equivs): Handle vectors.
8380
8381 * regrename.c (scan_rtx): Handle vectors.
8382
8383 * regclass.c (reg_scan_mark_refs): Handle vectors.
8384
8385 * recog.c (find_single_use_1): Handle vectors.
8386
8387 * local-alloc.c (equiv_init_varies_p): Handle vectors.
8388 (contains_replace_regs): Same.
8389 (memref_referenced_p): Same.
8390
8391 * integrate.c (copy_rtx_and_substitute): Handle vectors.
8392 (subst_constants): Same.
8393
8394 * genattrtab.c (attr_copy_rtx): Handle vectors.
8395 (encode_units_mask): Same.
8396 (clear_struct_flag): Same.
8397 (count_sub_rtxs): Same.
8398
8399 * gcse.c (want_to_gcse_p): Handle vectors.
8400 (oprs_unchanged_p): Same.
8401 (hash_expr_1): Same.
8402 (oprs_not_set_p): Same.
8403 (expr_killed_p): Same.
8404 (compute_transp): Same.
8405 (store_ops_ok): Same.
8406
8407 * function.c (purge_addressof_1): Do not allow paradoxical subregs
8408 of vectors.
8409 (fixup_var_refs_1): Same.
8410 (instantiate_virtual_regs_1): Same.
8411
8412 * fold-const.c (operand_equal_p): Handle vectors.
8413 (fold): Same.
8414 (rtl_expr_nonnegative_p): Same.
8415
8416 * flow.c (mark_used_regs): Handle vectors.
8417
8418 * df.c (df_uses_record): Handle vectors.
8419
8420 * cselib.c (cselib_subst_to_values): Handle vectors.
8421 (cselib_mem_conflict_p): Same.
8422 (hash_rtx): Same.
8423
8424 * cse.c (canon_reg): Handle vectors.
8425 (fold_rt): Same.
8426 (cse_process_notes): Same.
8427 (count_reg_usage): Same.
8428 (canon_hash): Same.
8429
8430 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
8431
8432 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
8433
8434 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
8435 (gen_rtx): Handle CONST_VECTOR.
8436 (gen_const_vector_0): New.
8437 (copy_rtx_if_shared): CONST_VECTORs can be shared.
8438 (reset_used_flags): Same.
8439 (copy_insn_1): Same.
8440 (initializer_constant_valid_p): Handle VECTOR_CST.
8441
8442 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
8443
8444 * doc/rtl.texi (Constants): Document const_vector.
8445 (CONST0_RTX): Update for vectors.
8446 (RTL sharing): Same.
8447
8448 * print-tree.c (print_node): Add case for VECTOR_CST.
8449
8450 * tree.h (TREE_VECTOR_CST_ELTS): New.
8451 (struct tree_vector): New.
8452 (union tree_node): Add vector node.
8453 (build_vector): Add prototype.
8454
8455 * tree.def (VECTOR_CST): New.
8456
8457 * tree.c (build_vector): New.
8458
8459 * expmed.c (make_tree): Handle CONST_VECTOR.
8460
8461 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
8462 (CONST_VECTOR_ELT): New.
8463 (CONST_VECTOR_NUNITS): New.
8464
8465 * machmode.h (GET_MODE_INNER): New.
8466 (DEF_MACHMODE): Accept 8th arg.
8467
8468 * machmode.def: Add 8th argument for vector inner mode.
8469 Add inner vector modes for vectors.
8470
8471 * rtl.def (VEC_CONST): Remove.
8472 (CONST_VECTOR): New.
8473
8474 * expr.c (clear_storage): Allow vectors.
8475 (is_zeros_p): Handle VECTOR_CST.
8476
8477 * varasm.c (output_constant_pool): Handle vectors.
8478 (rtx_const): Add veclo and vechi fields.
8479 (kind): Add RTX_VECTOR.
8480 (decode_rtx_const): Add case for vector.
8481
8482 * config/rs6000/rs6000-protos.h: Add zero_constant.
8483
8484 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
8485 constants. Force easy vector constants into memory.
8486 (easy_vector_constant): New.
8487 (emit_easy_vector_constant): New.
8488 (rs6000_legitimize_reload_address): Do not generate bad reloads on
8489 darwin.
8490
8491 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
8492 instruction does.
8493 ("altivec_lvxl"): Same.
8494 (altivec_lvebx): Same.
8495 (altivec_lvehx): Same.
8496 (altivec_lvewx): Same.
8497 ("*movv4si_const0"): New.
8498 ("*movv4sf_const0"): New.
8499 ("*movv8hi_const0"): New.
8500 ("*movv16qi_const0"): New.
8501
8502 2002-02-18 Kazu Hirata <kazu@hxi.com>
8503
8504 * config/h8300/h8300.c (notice_update_cc): Use
8505 cc_status.value2.
8506
8507 2002-02-18 Kazu Hirata <kazu@hxi.com>
8508
8509 * config/h8300/h8300.md (divmod patterns): Change the
8510 constraints for operands[1] to register_operand.
8511
8512 2002-02-18 Kazu Hirata <kazu@hxi.com>
8513
8514 * config/h8300/h8300-protos.h: Remove the prototype for
8515 p_operand.
8516 * config/h8300/h8300.c (p_operand): Remove.
8517 * config/h8300/h8300.md: Replace p_operand with
8518 const_int_operand.
8519
8520 2002-02-18 Philip Blundell <pb@nexus.co.uk>
8521
8522 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
8523 comment.
8524 (output_return_instruction): Allow use of LDR to unstack
8525 return addresss even for interrupt handlers or when
8526 interworking. If compiling for ARMv5, use interworking-safe
8527 return instructions by default. Remove duplicated code and
8528 lengthy "strcat" sequences.
8529
8530 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8531
8532 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
8533 (LINK_EH_SPEC): Define.
8534 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
8535
8536 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
8537
8538 * config/s390/s390.c (s390_emit_prologue): Do not set the
8539 frame_related flag for call-clobbered registers.
8540
8541 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
8542
8543 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
8544 (construct_container): Fix handling of SSE operands.
8545 (ix86_expand_builtin): Fix handling of 64bit pointers.
8546 (mmx_maskmovq_rex): New pattern.
8547
8548 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
8549
8550 * regrename.c (kill_set_value): Handle subregs properly.
8551
8552 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
8553
8554 * objc/objc-act.c (handle_impent): Remove leading '*'
8555 from objc_class_name.
8556
8557 2002-02-17 Richard Henderson <rth@redhat.com>
8558
8559 * config/alpha/alpha.c (some_small_symbolic_operand,
8560 some_small_symbolic_operand_1, split_small_symbolic_operand,
8561 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
8562 Handle small SYMBOL_REFs anywhere, not just inside memories.
8563 * config/alpha/alpha-protos.h: Update.
8564 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8565 * config/alpha/alpha.md (small symbolic operand splitter): Update.
8566
8567 2002-02-17 Roland McGrath <roland@frob.com>
8568
8569 * config.gcc (powerpc-*-gnu-gnualtivec*,
8570 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
8571 * config/rs6000/gnu.h: New file.
8572 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
8573 Grok "gnu" in rs6000_abi_name.
8574 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
8575 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
8576 Grok -mcall-gnu analogous to -mcall-linux et al.
8577 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8578 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
8579 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
8580
8581 2002-02-17 Jakub Jelinek <jakub@redhat.com>
8582
8583 PR c/3444:
8584 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
8585 shortening.
8586
8587 2002-02-17 Philipp Thomas <pthomas@suse.de>
8588
8589 * config/cris/cris.h: Undefine STARTFILE_SPEC and
8590 ENDFILE_SPEC before (re)defining them.
8591
8592 2002-02-17 Kazu Hirata <kazu@hxi.com>
8593
8594 * config/h8300/h8300.c: Fix formatting.
8595 * config/h8300/h8300.h: Likewise.
8596
8597 2002-02-17 Philipp Thomas <pthomas@suse.de>
8598
8599 * doc/tm.texi: Explain why empty strings should not be
8600 marked for translation.
8601
8602 2002-02-17 Philipp Thomas <pthomas@suse.de>
8603
8604 * final.c (output_operand_lossage): Changed to accept
8605 printf style arguments. Change calls where necessary.
8606 * output.h (output_operand_lossage): Change declaration
8607 accordingly. Update copyright.
8608 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
8609 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
8610 Update copyright date where necessary.
8611
8612 * config/i386/i386.c (print_operand): Likewise. Remove use of
8613 sprintf.
8614
8615 * config/cris/cris.c (cris_operand_lossage): Likewise.
8616 Rename parameter so that exgettext recognizes it as
8617 translatable message.
8618 (LOSE_AND_RETURN): Rename parameter to msgid.
8619
8620 2002-02-17 Kazu Hirata <kazu@hxi.com>
8621
8622 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
8623 hard coded register number with an appropriate macro.
8624 (HARD_REGNO_MODE_OK): Likewise.
8625 (ARG_POINTER_REGNUM): Likewise.
8626 (STATIC_CHAIN_REGNUM): Likewise.
8627 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8628 * config/h8300/h8300.md (define_constants): Define more
8629 register numbers.
8630
8631 2002-02-17 Philipp Thomas <pthomas@suse.de>
8632
8633 * config/i386/i386.h: Don't mark empty strings for translation.
8634
8635 2002-02-16 H.J. Lu <hjl@gnu.org>
8636
8637 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
8638
8639 2002-02-16 Zack Weinberg <zack@codesourcery.com>
8640
8641 * cppinit.c (merge_include_chains): Check for brack being
8642 NULL before attempting to merge it with qtail.
8643
8644 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8645
8646 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
8647 DBX_DEBUG.
8648
8649 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8650
8651 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
8652
8653 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8654
8655 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
8656 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
8657 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
8658
8659 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8660
8661 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
8662 now only if !TARGET_FIX.
8663 (*movsi_nt_vms_fix): New pattern.
8664
8665 2002-02-16 Douglas B Rupp <rupp@gnat.com>
8666
8667 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
8668 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
8669 (alpha_sa_mask, alpha_sa_size): Reflect above change.
8670 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
8671 (alpha_start_function, alpha_expand_epilogue): Likewise.
8672 (unicosmk_gen_dsib): Likewise.
8673
8674 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8675
8676 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
8677
8678 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
8679
8680 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
8681 check_and_change_labels, s390_final_chunkify): Delete.
8682 (s390_split_branches, s390_chunkify_pool): New functions.
8683 (s390_function_prologue): Call them.
8684
8685 * config/s390/s390.h (S390_REL_MAX): Delete.
8686 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
8687
8688 * config/s390/s390.md (cjump, icjump, jump): Fix length
8689 attribute calculation.
8690
8691
8692 2002-02-15 David Edelsohn <edelsohn@gnu.org>
8693
8694 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
8695 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
8696
8697 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8698
8699 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
8700 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8701 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
8702
8703 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8704
8705 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
8706
8707 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8708
8709 * reload.c (find_dummy_reload): Check that an output register
8710 is valid for its mode.
8711
8712 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
8713
8714 * combine.c (known_cond): After replacing the REG of a SUBREG, try
8715 to simplify it.
8716
8717 * function.c (assign_parms): Demote promoted argument passed by
8718 transparent reference.
8719
8720 2001-02-14 Joel Sherrill <joel@OARcorp.com>
8721
8722 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
8723 -Acpu() and -Amachine() to eliminate warnings.
8724
8725 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
8726
8727 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
8728
8729 2002-02-14 Kazu Hirata <kazu@hxi.com>
8730
8731 * config/h8300/h8300-protos.h: Update the prototype for
8732 const_costs.
8733 * config/h8300/h8300.c (const_costs): Treat SET as a little
8734 more expensive operation.
8735 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
8736 reference to const_costs.
8737
8738 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
8739
8740 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
8741
8742 2002-02-14 Jakub Jelinek <jakub@redhat.com>
8743
8744 PR c/5503:
8745 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
8746 use arguments from newtype.
8747
8748 2002-02-13 Eric Christopher <echristo@redhat.com>
8749
8750 * config/mips/mips.c (override_options): Add check for march/mipsX
8751 on the same command line. Fix error message in cpu processing.
8752 Remove architecture and ISA checks.
8753
8754 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
8755
8756 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
8757
8758 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
8759
8760 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
8761
8762 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
8763 alternatives.
8764 ("*movv8hi_internal1"): Same.
8765 ("*movv16qi_internal1"): Same.
8766 ("*movv4sf_internal1"): Same.
8767
8768 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
8769 not push_reload for altivec modes.
8770
8771 2002-02-13 Joel Sherrill <joel@OARcorp.com>
8772
8773 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
8774 all RTEMS targets including removal of #includes from config/*/rtems*.h
8775 file and adding them to tm_file setting. Added xm_defines=POSIX to
8776 many targets.
8777 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
8778 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
8779 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
8780 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
8781 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
8782 config/m68k/rtemself.h: Ditto.
8783 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
8784 config/mips/rtems64.h: Ditto.
8785 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
8786 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
8787 Ditto.
8788 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
8789 config/sparc/rtemself.h: Ditto.
8790 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
8791 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
8792 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
8793 more like arm-elf.
8794 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
8795 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
8796 target made more similar to i386-elf.
8797 * config/i386/t-rtems-i386: Added soft float support and multilibs.
8798 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
8799 be similar to config/m68k/t-m68kelf.
8800 * gthr-rtems.h: Encapsulate with extern "C" for C++.
8801
8802 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
8803
8804 * regmove.c (kill_value): Handle subregs.
8805
8806 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
8807
8808 * i386.md (mul patterns): Allow memory operand to be first;
8809 add expanders where needed; fix constraints.
8810 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
8811 Allow memory operand to be the first.
8812
8813 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
8814 operands.
8815
8816 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8817
8818 PR c/5681:
8819 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
8820 GET_MODE (x).
8821
8822 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8823
8824 PR optimization/5547:
8825 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
8826 all valid IA-32 address modes involving non-scaled %ebx and
8827 GOT/GOTOFF as displacement.
8828
8829 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
8830
8831 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
8832 after emitting ltorg insns.
8833
8834 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
8835 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
8836 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
8837 *abssf2): Fix "op_type" attribute.
8838
8839 2002-02-13 Douglas B Rupp <rupp@gnat.com>
8840
8841 * mkconfig.sh: Avoid using a subshell redirect.
8842 ($output.T): Change to $(output)T.
8843 (ENABLE_NLS): Remove unneeded undef.
8844
8845 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
8846 * config/alpha/x-vms (libsubdir): Define.
8847
8848 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
8849 register frame procedures. Optimize retrieving context.
8850
8851 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
8852 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
8853 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
8854
8855 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8856
8857 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
8858 Make same change as for find_base_value.
8859
8860 2002-02-13 Kazu Hirata <kazu@hxi.com>
8861
8862 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
8863 of QImode and SImode.
8864
8865 2002-02-13 Kazu Hirata <kazu@hxi.com>
8866
8867 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
8868 length computation of movsi.
8869 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
8870
8871 2002-02-13 Kazu Hirata <kazu@hxi.com>
8872
8873 * config/h8300/h8300.md (subqi3): Tighten the predicate for
8874 operands[2] to register_operand.
8875
8876 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
8877
8878 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8879
8880 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
8881
8882 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
8883 for altivec_lvx* and altivec_stvx*.
8884 ("*movv4si_internal"): Add constraint for loading from GPRs.
8885 ("*movv8hi_internal1"): Same.
8886 ("*movv16qi_internal1"): Same.
8887 ("*movv4sf_internal1"): Same.
8888
8889 * config/rs6000/rs6000.c (altivec_register_operand): New.
8890
8891 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8892 altivec_register_operand.
8893
8894 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
8895
8896 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8897 handle SYMBOL_REF.
8898
8899 2002-02-13 Stan Shebs <shebs@apple.com>
8900
8901 * c-typeck.c (digest_init): Handle vectors.
8902 (really_start_incremental_init): Same.
8903 (pop_init_level): Same.
8904 (process_init_element): Same.
8905
8906 * varasm.c (output_constant): Same.
8907
8908 * expr.c (clear_storage): Same.
8909 (store_constructor): Same.
8910
8911 2002-02-12 Eric Christopher <echristo@redhat.com>
8912
8913 * explow.c (hard_function_value): Add comment explaining
8914 signed/unsigned comparison.
8915
8916 2002-02-12 Jakub Jelinek <jakub@redhat.com>
8917
8918 * jump.c (never_reached_warning): Add finish argument.
8919 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
8920 real insn after end.
8921 * rtl.h (never_reached_warning): Adjust prototype.
8922 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
8923 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
8924 never_reached_warning.
8925
8926 2002-02-12 Graham Stott <grahams@redhat.com>
8927
8928 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8929
8930 2002-02-12 Kazu Hirata <kazu@hxi.com>
8931
8932 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
8933 logical shifts on H8/300.
8934 (shift_alg_si): Improve several shifts on H8/300.
8935 (get_shift_alg): Likewise.
8936
8937 2002-02-12 Graham Stott <grahams@redhat.com>
8938
8939 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8940
8941 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8942
8943 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8944 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8945
8946 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
8947
8948 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
8949 non-CONST_INT through default_assemble_integer.
8950 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
8951 <case 8>: Abort for CONST_DOUBLE.
8952
8953 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8954
8955 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8956 is specified.
8957 * config/pa/pa-linux.h (LIB_SPEC): Delete.
8958 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8959
8960 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
8961
8962 * config/stormy16/stormy16.md (zero_extendqihi2): New.
8963
8964 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
8965
8966 * regrename.c (regrename_optimize): Don't accept a
8967 part-clobbered register if the replaced register is not part
8968 clobbered.
8969
8970 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8971 take padding into account when computing the argument value.
8972
8973 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8974
8975 * combine.c (try_combine): Apply substitutions in
8976 CALL_INSN_FUNCTION_USAGE too.
8977
8978 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
8979
8980 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8981 __builtin_altivec_abs*.
8982 (bdesc_abs): New.
8983
8984 * config/rs6000/rs6000.h (rs6000_builtins): Add
8985 ALTIVEC_BUILTIN_ABS*.
8986
8987 * config/rs6000/altivec.h: Use const char for builtins expecting
8988 literals.
8989 (vec_abs): New versions for C and C++.
8990 (vec_abss): Same.
8991
8992 2002-02-10 Kazu Hirata <kazu@hxi.com>
8993
8994 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8995 using Pmode.
8996
8997 2002-02-10 Kazu Hirata <kazu@hxi.com>
8998
8999 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9000 constant definition from h8300.md.
9001 (FRAME_POINTER_REGNUM): Likewise.
9002 * config/h8300/h8300.md (define_constants): Add FP_REG.
9003
9004 2002-02-10 Kazu Hirata <kazu@hxi.com>
9005
9006 * config/h8300/h8300.c (print_operand): Remove redundant code.
9007
9008 2002-02-10 Kazu Hirata <kazu@hxi.com>
9009
9010 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9011 * config/h8300/h8300.c (byte_reg): Make it static.
9012
9013 2002-02-10 Richard Henderson <rth@redhat.com>
9014
9015 PR c/5623
9016 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9017
9018 2002-02-10 Richard Henderson <rth@redhat.com>
9019
9020 PR c++/5624
9021 * tree.c (append_random_chars): Don't abort if main_input_filename
9022 does not exist.
9023
9024 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9025
9026 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9027
9028 2002-02-10 Kazu Hirata <kazu@hxi.com>
9029
9030 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9031 (pushhi1): Likewise.
9032
9033 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
9034
9035 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9036 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9037
9038 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9039
9040 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9041 remove MASK_VIS.
9042 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9043
9044 2002-02-09 Kazu Hirata <kazu@hxi.com>
9045
9046 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9047 a half of an SImode register on H8/300.
9048
9049 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9050
9051 * i386.md (movdi_2): Add missing '!'.
9052
9053 2002-02-09 Kazu Hirata <kazu@hxi.com>
9054
9055 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9056 definitions.
9057
9058 2002-02-09 Kazu Hirata <kazu@hxi.com>
9059
9060 * config/h8300/h8300.md (length): Correct the distance valid
9061 for the short branch.
9062
9063 2002-02-09 Kazu Hirata <kazu@hxi.com>
9064
9065 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9066
9067 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9068
9069 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9070 registers in SImode.
9071 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9072 part-clobbered.
9073
9074 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9075 patch.
9076
9077 Contribute sh64-elf.
9078 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9079 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9080 (sh_cannot_modify_jumps_p): New function.
9081 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9082 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9083 (sh_ms_bitfield_layout_p): New function.
9084 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
9085 Zack Weinberg <zack@codesourcery.com>
9086 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9087 expand_simple_binop instead of expand_binop.
9088 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
9089 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9090 use of .quad and .uaquad.
9091 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9092 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9093 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9094 * config/sh/sh.md (movdi_const, movdi_const_32bit,
9095 movdi_const_16bit): Make sure all CONSTs have modes.
9096 (sym2PIC): Ditto, but by adjusting all callers.
9097 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9098 if the prologue calls the SHmedia argument decoder or register
9099 saver.
9100 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9101 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9102 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9103 (sh_expand_epilogue): Don't emit USE of return target register.
9104 (prepare_move_operands): Legitimize DImode PIC addresses.
9105 (sh_media_register_for_return): Skip tr0, used to initialize the
9106 PIC register.
9107 (sh_expand_prologue): Remove explicit USE of return register.
9108 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
9109 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
9110 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9111 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9112 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9113 EXTRA_CONSTRAINT_T.
9114 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9115 (MOVI_SHORI_BASE_OPERAND_P): New.
9116 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9117 (EXTRA_CONSTRAINT_T): Define in terms of them.
9118 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9119 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9120 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9121 alternatives supporting TARGET_REGS.
9122 (UNSPEC_GOTPLT): New constant.
9123 (movdi split): Move incrementing of LABEL_NUSES...
9124 (movdi_const, movdi_const_32bit): Here. Use
9125 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9126 (movdi_const_16bit): New.
9127 (call, call_value) [flag_pic]: Use GOTPLT.
9128 (call_pop, call_value_pop): New expands.
9129 (call_pop_compact, call_pop_rettramp): New insns.
9130 (call_value_pop_compact, call_value_pop_rettramp): New insns.
9131 (sibcall) [flag_pic]: Use GOT.
9132 (builtint_setjmp_receiver): Remove bogus, unused expand.
9133 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9134 (*pt, *ptb, ptrel): New insns.
9135 (sym2GOT): Handle DImode GOT.
9136 (sym2GOTPLT, symGOTPLT2reg): New expands.
9137 (sym2PIC): New expand.
9138 (shcompact_return_tramp): Use GOTPLT to return trampoline.
9139 (shcompact_return_tramp_i): Use return register explicitly.
9140 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9141 disable flag_reorder_blocks.
9142 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9143 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9144 clobbers, for clarity.
9145 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9146 restoring of r0 in macl as MAYBE_DEAD.
9147 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
9148 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9149 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9150 alter_subreg all over.
9151 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9152 reload, instead of emitting instructions that would require
9153 reloading.
9154 (casesi_load_media): Add missing modes.
9155 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
9156 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9157 as used if the argument decoder is called.
9158 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9159 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9160 Pmode, then extend it to DImode if necessary.
9161 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9162 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9163 constants in FPU-enabled SHmedia, let them be loaded from memory.
9164 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9165 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9166 Adjust whitespace in assembly output templates.
9167 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9168 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9169 mode of if_then_else.
9170 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
9171 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9172 sh.h.
9173 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
9174 Joern Rennecke <amylaar@redhat.com>
9175 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9176 (SUBTARGET_CPP_PTR_SPEC): New.
9177 (SUBTARGET_CPP_SPEC): Remove.
9178 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9179 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9180 Fix typo in previous checkin.
9181 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
9182 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9183 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
9184 Alexandre Oliva <aoliva@redhat.com>
9185 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9186 what single FP register can hold for SHmedia target.
9187 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9188 Alexandre Oliva <aoliva@redhat.com>
9189 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9190 Do not split into SUBREG.
9191 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
9192 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9193 and added new functions as specified in SH5 ABI r9.
9194 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
9195 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9196 8-byte boundary.
9197 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
9198 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
9199 gen_consttable_4 and gen_consttable_8. Emit multiple labels
9200 and consttable_window_ends.
9201 2001-06-03 Graham Stott <grahams@redhat,com>
9202 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
9203 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
9204 * config/sh/sh.c (print_operand): Handle floating-point pair,
9205 vector and matrix registers.
9206 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
9207 vector modes into account.
9208 * config/sh/sh.md (movv2sf): Split move between registers into
9209 movdf.
9210 (movv4sf, movv16sf): Introduce insns that get split only after
9211 reload.
9212 * config/sh/shmedia.h: Fix Copyright dates.
9213 * config/sh/ushmedia.h: Likewise. Move loop counter
9214 declarations into conditionals that uses them.
9215 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
9216 loop boundary.
9217 * config/sh/sshmedia.h: Fix Copyright dates.
9218 (sh_media_PUTCFG): Fix constraints.
9219 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
9220 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
9221 ptrmemfunc_vbit_in_delta for SH5.
9222 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
9223 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
9224 * invoke.texi: Likewise.
9225 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9226 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
9227 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
9228 GCC_pop_shmedia_regs_nofpu): New global symbols.
9229 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
9230 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
9231 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
9232 compact function with nonlocal labels.
9233 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
9234 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
9235 (initial_elimination_offset): Account for their stack space.
9236 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
9237 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
9238 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
9239 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
9240 least one of the operands to be a register.
9241 (movv2sf): Likewise. Renamed to movv2sf_i.
9242 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
9243 prepare_move_operands() before emitting SHmedia insns.
9244 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
9245 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
9246 Don't save nor initialize r12. Don't mis-align the stack.
9247 Pad the code with a nop.
9248 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
9249 stack.
9250 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
9251 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
9252 [__SHMEDIA__]: Implement.
9253 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
9254 * config/sh/sh.md: Set latency of `pt' closer to reality.
9255 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
9256 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
9257 Set move, load and store type attributes.
9258 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
9259 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
9260 profiling.
9261 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
9262 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
9263 * config/sh/sh.c (sh_media_register_for_return): New function.
9264 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
9265 branch-target register.
9266 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
9267 * config/sh/sh.md (return_media_i): Use any call-clobbered
9268 branch-target register.
9269 (return_media): If r18 wasn't copied in the prologue, copy it
9270 here.
9271 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
9272 Clear class FP0_REGS.
9273 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
9274 from elf.h.
9275 2001-03-08 DJ Delorie <dj@redhat.com>
9276 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
9277 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
9278 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
9279 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
9280 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
9281 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
9282 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
9283 return value correctly for call_cookie.
9284 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
9285 * config/sh/crt1.asm (start): Modified so as to call
9286 ___setup_argv_and_call_main.
9287 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
9288 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
9289 SHmedia mode.
9290 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
9291 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
9292 (STRIP_NAME_ENCODING): Use it.
9293 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
9294 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
9295 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
9296 prepare_scc_operands().
9297 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
9298 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
9299 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
9300 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
9301 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
9302 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
9303 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
9304 used in shcompact_incoming_args.
9305 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
9306 change.
9307 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
9308 mode.
9309 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
9310 Adjust accordingly.
9311 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
9312 Simplify. Adjust. Add sanity check.
9313 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
9314 FPU_SINGLE_BIT.
9315 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
9316 TARGET_SHCOMPACT.
9317 (udivsi3, divsi3): Use them.
9318 (force_mode_for_call): New insn.
9319 (call, call_value, sibcall_value): Emit it before SHcompact
9320 calls.
9321 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
9322 * config/sh/sh.md (call, call_value, sibcall): Make sure the
9323 call cookie is non-NULL before taking its value.
9324 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
9325 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
9326 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
9327 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
9328 block.
9329 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
9330 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
9331 temporary for stack adjusts. Use MACL and MACH to pass
9332 arguments to shcompact_incoming_args.
9333 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
9334 clobber r1.
9335 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
9336 (nested_trampoline): Load static chain address into r1.
9337 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
9338 2001-01-07 Alexandre Oliva <aoliva@redhat.com
9339 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
9340 fp_arith_reg_operand().
9341 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
9342 * config/sh/sh.md (casesi): Sign-extend the first two operands,
9343 and use signed compares for them.
9344 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
9345 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
9346 ones properly aligned.
9347 (find_barrier): Account for extra alignment needed for 8-byte wide
9348 constants.
9349 (machine_dependent_reorg): Require a label for the second 4-byte
9350 constant after an 8-byte one.
9351 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
9352 change.
9353 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
9354 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
9355 last_float when switching float modes.
9356 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
9357 auto-increment for general-purpose registers.
9358 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
9359 result.
9360 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
9361 for stack adjust.
9362 * config/sh/sh.c (sh_builtin_saveregs): Support using all
9363 registers for varargs.
9364 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
9365 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
9366 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
9367 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
9368 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
9369 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
9370 call_cookie accordingly.
9371 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
9372 (SHCOMPACT_BYREF): Likewise.
9373 (SHCOMPACT_FORCE_ON_STACK): New macro.
9374 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
9375 (sh_builtin_saveregs): Likewise.
9376 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9377 shcompact_incoming_args): Use new shift values. Support
9378 sequences of consecutive and non-consecutive pushes/pops.
9379 * config/sh/sh.md (return): Don't explicitly use PR_REG.
9380 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
9381 * config/sh/sh.h (TEXT_SECTION): Define.
9382 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
9383 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
9384 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
9385 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
9386 return values on FPU-enabled SHmedia.
9387 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
9388 FPU-enabled SHmedia.
9389 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
9390 value is returned in a non-FP reg and is not returned by
9391 reference.
9392 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
9393 jump_ind.
9394 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
9395 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
9396 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
9397 quad-aligned to be passed by callee-copy reference.
9398 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
9399 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
9400 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
9401 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
9402 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
9403 copying low-numbered FP regs to r7 and r8.
9404 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
9405 FP regs to general-purpose regs only if the copy was passed on the
9406 stack.
9407 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
9408 copying FP reg to r9.
9409 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
9410 copy FP regs to general-purpose regs only in outgoing calls.
9411 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
9412 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
9413 HOST_WIDE_INT.
9414 * config/sh/sh.h (struct sh_args): Document all fields.
9415 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
9416 passed partially on the stack should not consider making
9417 sibcalls.
9418 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
9419 stack_regs only for incoming calls. When passing FP args,
9420 make sure there are FP regs available before modifying
9421 call_cookie.
9422 (SHCOMPACT_BYREF): Pass double args in general-purpose
9423 registers by reference.
9424 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
9425 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
9426 attempt to generate sibcalls if the caller got any arguments
9427 by reference.
9428 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
9429 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
9430 to 8-byte boundaries.
9431 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
9432 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
9433 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
9434 stored in the stack.
9435 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
9436 for the offsets to have the ISA bit set.
9437 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
9438 invocation. Use beq instead of bgt to mark end of sequence of
9439 loads.
9440 (shcompact_incoming_args): Fix store of r2. Use beq instead of
9441 bgt to mark end of sequence of stores.
9442 * config/sh/sh.c (arith_operand): Don't check whether
9443 CONST_OK_FOR_J for now.
9444 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
9445 instead of long for conversion.
9446 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
9447 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
9448 before passing it to fprintf.
9449 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
9450 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
9451 Call set_fpscr before reading/writing SR.
9452 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
9453 Call set_fpscr.
9454 * config/sh/lib1funcs.asm: Add `.align 2' directives before
9455 SHmedia code.
9456 (FMOVD_WORKS): Define on SH5 with FPU.
9457 (set_fpscr): Define on SH5. Remove separate _fpscr_values
9458 setting.
9459 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
9460 _fpscr_values.
9461 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
9462 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
9463 address.
9464 (ia_main_table): Ditto.
9465 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
9466 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
9467 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
9468 the definitions from sh.h.
9469 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
9470 TARGET_SH5.
9471 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
9472 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
9473 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9474 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
9475 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
9476 Increment LABEL_NUSES.
9477
9478 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
9479 TARGET_SH5.
9480 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
9481 defined.
9482 * config/sh/elf.h (SIZE_TYPE): Likewise.
9483 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9484 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9485 shcompact_incoming_args): Load switch table addresses using
9486 datalabel.
9487 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9488 (NO_BUILTIN_SIZE_TYPE): Define.
9489 (SIZE_TYPE): Don't define.
9490 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9491 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
9492 definition of __SH5__=32 for -m5-compact-nofpu.
9493 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
9494 ADDR_DIFF_VEC.
9495 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
9496 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
9497 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
9498 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
9499 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
9500 (INSN_LENGTH_ALIGNMENT): Likewise.
9501 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9502 * config/sh/sh.md (call, call_value, sibcall): Simplify
9503 copying of non-branch-target register.
9504 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9505 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
9506 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
9507 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9508 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
9509 floating-point values as structs.
9510 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
9511 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
9512 general-purpose register.
9513 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
9514 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9515 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
9516 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
9517 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
9518 (ENCODE_SECTION_INFO): Enclose variables and constants in
9519 DATALABEL unspecs.
9520 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
9521 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
9522 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
9523 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
9524 only for LABEL_REFs. For SYMBOL_REFs, prepend
9525 SH_DATALABEL_ENCODING to the symbol name.
9526 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
9527 convert_mode().
9528 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9529 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
9530 UNSPEC_DATALABEL.
9531 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
9532 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
9533 (DATALABEL_REF_P): Don't require CONST.
9534 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
9535 REL label.
9536 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
9537 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
9538 right.
9539 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
9540 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
9541 Use shallow_copy_rtx and PUT_MODE to change the mode of
9542 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
9543 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
9544 on SHmedia using GENERAL_REGs.
9545 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9546 bltu_media_i): Fix reversion of conditions.
9547 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
9548 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
9549 * config/sh/sh.c (output_far_jump): Save r13 in macl.
9550 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
9551 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
9552 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
9553 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
9554 (GCC_nested_trampoline): Likewise.
9555 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
9556 * config/sh/sh.c (gen_datalabel_ref): Define.
9557 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
9558 (INITIALIZE_TRAMPOLINE): Likewise.
9559 (TRAMPOLINE_ADJUST_ADDRESS): Define.
9560 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
9561 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
9562 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
9563 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
9564 (ic_invalidate): Adjust for SH5.
9565 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
9566 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
9567 _nested_trampoline.
9568 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
9569 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
9570 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
9571 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
9572 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
9573 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
9574 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
9575 * config/sh/sh.c (target_reg_operand): Match only target-branch
9576 registers and pseudos that aren't virtual registers.
9577 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9578 Copy operands that don't match target_reg_operand to pseudos.
9579 (call_media, call_value_media, sibcall_media): Use
9580 target_reg_operand instead of target_operand.
9581 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
9582 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
9583 * config/sh/sh.c (target_reg_operand): Match hardware registers
9584 other than branch-target registers.
9585 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
9586 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
9587 (fpscr_values) [SH5 == 32]: Define.
9588 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
9589 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9590 Handle function addresses coming in SUBREGs.
9591 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
9592 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9593 shcompact_return_trampoline): Use datalabel where appropriate.
9594 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
9595 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
9596 general-purpose register to copy one branch-target register to
9597 another.
9598 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
9599 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
9600 SYMBOL_REFs with VOIDmode.
9601 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9602 bltu_media_i): New insns.
9603 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
9604 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
9605 (INIT_CUMULATIVE_ARGS): Likewise.
9606 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
9607 * machmode.def (V16SFmode): New mode.
9608 * c-common.c (type_for_mode): Support V2SF and V16SF.
9609 * tree.c (build_common_tree_nodes_2): Likewise.
9610 * tree.h (tree_index): Likewise.
9611 * calls.c (emit_call_1): Take args_so_far. Adjust all
9612 callers. Introduce CALL_POPS_ARGS.
9613 * tm.texi (CALL_POPS_ARGS): Document.
9614 * config/sh/crt1.asm: Implement in SHmedia mode.
9615 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
9616 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
9617 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
9618 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
9619 Implement divsi and udivsi in SHmedia mode. Introduce
9620 SHcompact trampolines.
9621 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
9622 only in SHmedia64.
9623 (regno_reg_class): Rewrite.
9624 (fp_reg_names): Remove.
9625 (sh_register_names, sh_additional_register_names): New.
9626 (print_operand): Added `u'. Support SUBREGs in addresses.
9627 Add parentheses around shifted CONSTs.
9628 (output_file_start): Output .mode and .abi directives.
9629 (shiftcosts, addsubcosts, multcosts): Adjust.
9630 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
9631 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
9632 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
9633 bytes, not registers. Take into account the need for the
9634 SHcompact incoming args trampoline. Adjust all callers.
9635 (sh_expand_prologue): Take stack_regs into account. Call
9636 incoming args trampoline. Keep stack aligned as per SH5 ABI.
9637 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
9638 stack aligned as per SH5 ABI.
9639 (sh_builtin_saveregs): Support SH5 ABI.
9640 (sh_build_va_list, sh_va_start): Likewise.
9641 (initial_elimination_offset): Take alignment into account.
9642 Compute location of PR according to the SH5 stack frame.
9643 (arith_reg_operand): Reject branch-target registers.
9644 (shmedia_6bit_operand): New.
9645 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
9646 (target_reg_operand): Match DImode only. Accept SUBREGs.
9647 (target_operand): New.
9648 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
9649 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
9650 SIBCALL_REGS for SHmedia.
9651 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
9652 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
9653 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
9654 (TARGET_SWITCHES): New SH5 flags.
9655 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
9656 VALID_REGISTER_P to disable unsupported registers.
9657 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
9658 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
9659 (FUNCTION_ARG_PADDING): Define.
9660 (FASTEST_ALIGNMENT): Adjust.
9661 (SH_REGISTER_NAMES_INITIALIZER): New.
9662 (sh_register_names): Declare.
9663 (DEBUG_REGISTER_NAMES): Define.
9664 (REGISTER_NAMES): Define based on sh_register_names.
9665 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
9666 (sh_additional_register_names): Declare.
9667 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
9668 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
9669 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
9670 (REGISTER_NATURAL_MODE): Define.
9671 (FIRST_PSEUDO_REGISTER): Adjust.
9672 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
9673 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
9674 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
9675 (VECTOR_MODE_SUPPORTED_P): Define.
9676 (REG_CLASS_CONTENTS): Adjust.
9677 (SMALL_REGISTER_CLASSES): Adjust.
9678 (REG_ALLOC_ORDER): Adjust.
9679 (INDEX_REG_CLASS): Adjust.
9680 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
9681 (CONST_OK_FOR_LETTER_P): Adjust.
9682 (PREFERRED_RELOAD_CLASS): Adjust.
9683 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
9684 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
9685 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
9686 (FIRST_FP_PARM_REG): Adjust.
9687 (CALL_POPS_ARGS): Define.
9688 (FUNCTION_ARG_REGNO_P): Adjust.
9689 (struct sh_args): New fields.
9690 (GET_SH_ARG_CLASS): Adjust.
9691 (INIT_CUMULATIVE_ARGS): Adjust.
9692 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
9693 (FUNCTION_ARG_ADVANCE): Adjust.
9694 (FUNCTION_ARG): Adjust.
9695 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
9696 (FUNCTION_ARG_CALLEE_COPIES): Define.
9697 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
9698 (STRICT_ARGUMENT_NAMING): Define.
9699 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
9700 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
9701 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
9702 (SETUP_INCOMING_VARARGS): Adjust.
9703 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
9704 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
9705 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
9706 (SUBREG_OK_FOR_INDEX_P): Adjust.
9707 (EXTRA_CONSTRAINT_S): Update.
9708 (EXTRA_CONSTRAINT_T): New.
9709 (EXTRA_CONSTRAINT): Adjust.
9710 (GO_IF_LEGITIMATE_INDEX): Adjust.
9711 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
9712 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
9713 (MOVE_MAX): Adjust.
9714 (MAX_MOVE_MAX): Define.
9715 (Pmode): Adjust.
9716 (CONST_COSTS): Adjust.
9717 (REGISTER_MOVE_COST): Adjust.
9718 (BRANCH_COST): Adjust.
9719 (TEXT_SECTION_ASM_OP): Adjust.
9720 (DBX_REGISTER_NUMBER): Adjust.
9721 (ASM_OUTPUT_DOUBLE_INT): New.
9722 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
9723 (PREDICATE_CODES): Adjust.
9724 (PROMOTE_MODE): Adjust.
9725 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
9726 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
9727 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
9728 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
9729 (DR0_REG, DR2_REG, DR4_REG): Renumber.
9730 (TR0_REG, TR1_REG, TR2_REG): New.
9731 (XD0_REG): Renumber.
9732 (UNSPEC_COMPACT_ARGS): New.
9733 (type): Added pt and ptabs.
9734 (length): Default to 4 on SHmedia. Default pt length to 12
9735 and 20 on SHmedia32 and SHmedia64, respectively.
9736 (pt): New function unit.
9737 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
9738 Add whitespace between operands of SHmedia instructions.
9739 (movdicc): Fix.
9740 (adddi3_media, addsi3_media): Adjust constraints.
9741 (subsi3) [SHmedia]: Force operand 1 into a register.
9742 (udivsi3_i1_media, udivsi3_i4_media): New.
9743 (udivsi3): Support SHmedia.
9744 (divsi3_i1_media, divsi3_i4_media): New.
9745 (divsi3): Support SHmedia.
9746 (anddi3, iordi3, xordi3): Adjust constraints.
9747 (zero_extendhidi2, zero_extendqidi2): New.
9748 (extendsidi2, extendhidi2, extendqidi2): New.
9749 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
9750 (pop_e, pop_fpul, pop_4): Likewise.
9751 (movsi_media): Support FP and BT registers.
9752 (movsi_media_nofpu): New. Adjust splits to DImode.
9753 (lduw, ldub): Renamed to zero_extend* above.
9754 (movqi_media): Fix typo.
9755 (movdi_media): Support FP and BT registers.
9756 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
9757 (movdi_const_32bit): New.
9758 (shori_media): Require immediate operand. Use `u' for output.
9759 (movdf_media, movsf_media): Simplified.
9760 (movdf_media_nofpu, movsf_media_nofpu): New.
9761 (movdf, movsf): Adjust
9762 (movv2sf, movv2sf, movv16sf): New.
9763 (beq_media, beq_media_i): Adjust constraints. Don't use
9764 scratch BT register.
9765 (bne_media, bne_media_i): Likewise.
9766 (bgt_media, bgt_media_i): Likewise.
9767 (bge_media, bge_media_i): Likewise.
9768 (bgtu_media, bgtu_media_i): Likewise.
9769 (bgeu_media, bgeu_media_i): Likewise.
9770 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
9771 bunordered): Emit jump insn. Force operands to registers when
9772 needed.
9773 (jump_media, jump): Simplify.
9774 (call_compact, call_compact_rettramp): New.
9775 (call_value_compact, call_value_compact_rettramp): New.
9776 (call_media, call_value_media): Simplify.
9777 (sibcall_compact, sibcall_media): New.
9778 (call, call_value): Adjust for SHmedia and SHcompact.
9779 (sibcall, sibcall_value, untyped_call): Likewise.
9780 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
9781 (indirect_jump): Adjust for SHmedia.
9782 (casesi_jump_media): New.
9783 (nop): Re-enable for SHmedia.
9784 (call_site): Restrict to SH1.
9785 (casesi): Adjust for SHmedia.
9786 (casesi_shift_media, casesi_load_media): New.
9787 (return): Explicitly use PR register. Call return trampoline
9788 on SHcompact.
9789 (return_i): Explicitly use PR register.
9790 (shcompact_return_tramp, shcompact_return_tramp_i): New.
9791 (return_media): Adjust.
9792 (shcompact_incoming_args): New.
9793 (epilogue): Adjust.
9794 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9795 (movstrsi): Disable on SH5.
9796 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
9797 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
9798 (subsf3, subsf3_media): Likewise.
9799 (mulsf3, mulsf3_media, mac_media): Likewise.
9800 (divsf3, divsf3_media): Likewise.
9801 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
9802 (floatsisf2, fux_truncsfsi2): Likewise.
9803 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
9804 constraints.
9805 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
9806 (cmpunsf_media, cmpsf): Likewise.
9807 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
9808 (abssf2, abssf2_media): Likewise.
9809 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
9810 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
9811 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
9812 (floatsidf2, fix_truncdfsi2): Likewise.
9813 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
9814 constraints.
9815 (cmpeqdf_media, cmpgtdf_media): Likewise.
9816 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
9817 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
9818 (absdf2, absdf2_media): Likewise.
9819 (extendsfdf2, extendsfdf2_media): Likewise.
9820 (truncsfdf2, truncsfdf2_media): Likewise.
9821 * config/sh/sh64.h: New file.
9822 * config/sh/t-sh64: New file.
9823 * config/sh/shmedia.h: New file.
9824 * config/sh/ushmedia.h: New file.
9825 * config/sh/sshmedia.h: New file.
9826 * configure.in: Added sh64-*-elf.
9827 * configure: Rebuilt.
9828 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
9829 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
9830 (reg_class_from_letter): Use `b' for TARGET_REGS.
9831 (print_operand): Support `%M', `%m', `AND' and
9832 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
9833 (andcosts): Adjust for SHmedia.
9834 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
9835 Likewise.
9836 (target_reg_operand): New function.
9837 * config/sh/sh-protos.h (target_reg_operand): Declare.
9838 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
9839 FP registers on SH5.
9840 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
9841 on SH4.
9842 (TARGET_REGISTER_P): New macro.
9843 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
9844 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
9845 (EXTRA_CONSTRAINT_S): New macro.
9846 (EXTRA_CONSTRAINT): Adjust.
9847 (FLOAT_TYPE_SIZE): Define to 32.
9848 (Pmode): DImode on SHmedia.
9849 (CONST_COSTS): Adjust for SHmedia literals.
9850 (PREDICATE_CODES): Added target_reg_operand.
9851 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
9852 * config/sh/sh.md: Remove all attrs from SHmedia insns.
9853 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
9854 (cmpdi): Accept SHmedia.
9855 (movdicc_false, movdicc_true): New insns.
9856 (movdicc): New expand.
9857 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
9858 no_new_pseudos.
9859 (addsi3_media): Match `S' constraint.
9860 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
9861 (negdi2): Expand for SHmedia.
9862 (one_cmpldi2): New expand.
9863 (zero_extendsidi2): Change from expand to insn.
9864 (extendsidi2): Add constraints.
9865 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
9866 LD/ST address. Fix SI immediate loading split.
9867 (movhi_media, movqi_media, lduw, ldub): New insns.
9868 (movhi, movqi): Accept SHmedia.
9869 (shori_media, movdi_media): Relax input constraints. Split
9870 symbolic constants.
9871 (movdf_media, movsf_media): New insn. New split to movdi.
9872 (movdf, movsf): Match on SHmedia.
9873 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
9874 bgeu_media): New insns and splits. New insns with `_i' suffix.
9875 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
9876 (bunordered): New expand.
9877 (jump_compact): Renamed from `jump'.
9878 (jump_media): New insn.
9879 (jump): New expand.
9880 (call_media, call_value_media): New insns.
9881 (call, call_value): Adjust.
9882 (indirect_jump_compact): Renamed from `indirect_jump'.
9883 (indirect_jump_media): New insn.
9884 (indirect_jump): New expand.
9885 (untyped_call, return): Accept SHmedia.
9886 (return_media): New insn.
9887 (prologue, epilogue, blockage): Accept SHmedia.
9888 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9889 (sunordered): New expand.
9890 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
9891 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
9892 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
9893 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
9894 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
9895 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
9896 abssf2_media): New insns.
9897 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
9898 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
9899 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
9900 floatdidf2, floatsidf2_media, fix_truncdfdi2,
9901 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
9902 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
9903 absdf2_media): New insns.
9904 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
9905 (extendsfdf2_media, truncdfsf2_media): New insns.
9906 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
9907 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
9908 * config/sh/sh.h (CONST_OK_FOR_J): Document.
9909 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
9910 * config/sh/sh.md (adddi3): New expand.
9911 (adddi3_media, adddi3z_media): New insns.
9912 (adddi3_compact): Renamed from adddi3.
9913 (addsi3_media): Use add.l r63 to add constant zero.
9914 (subdi3): New expand.
9915 (subdi3_media): New insn.
9916 (subdi3_compact): Renamed from subdi3.
9917 (mulsidi3): New expand.
9918 (mulsidi3_media): New insn.
9919 (mulsidi3_compact): Renamed from mulsidi3.
9920 (umulsidi3): New expand.
9921 (umulsidi3_media): New insn.
9922 (umulsidi3_compact): Renamed from umulsidi3.
9923 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
9924 (ashlsi3, ashrsi3, lshrsi3): Use them.
9925 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
9926 (ashldi3, ashrdi3, lshrdi3): Use them.
9927 (zero_extendsidi2): New expand.
9928 (extendsidi2): New insn.
9929 (movsi_media): New insn. Split to movdi to load constants.
9930 (movsi): Enable for shmedia.
9931 (movdi_media): New insn. Use shori_media to load wide constants.
9932 (short_media): New insn.
9933 (movdi): Enable for shmedia.
9934 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
9935 * config/sh/sh.h (CPP_SPEC): Added `m5'.
9936 (SUBTARGET_CPP_SPEC): Added `!m5'.
9937 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9938 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
9939 to all other SH variants.
9940 (TARGET_DEFAULT): Set to SH1_BIT.
9941 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9942 (BITS_PER_WORD): Raise to 64 on shmedia.
9943 (MAX_BITS_PER_WORD): Change to 64.
9944 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9945 (INT_TYPE_SIZE): Keep as 32.
9946 (UNITS_PER_WORD): Raise to 8 on shmedia.
9947 (MIN_UNITS_PER_WORD): Keep as 4.
9948 (POINTER_SIZE): Raise to 64 on shmedia.
9949 (CONST_OK_FOR_J): New macro.
9950 (CONST_OK_FOR_LETTER_P): Use it.
9951 (processor_type): Add PROCESSOR_SH5.
9952 * config/sh/sh.md: Conditionalize all expands, insns and
9953 splits to TARGET_SH1.
9954 (cpu): Added sh5.
9955 (addsi3_compact): Renamed from...
9956 (addsi3): Now an expand.
9957 (addsi3_media, subsi3_media): New insns.
9958 (subsi3): Don't negate constants with SHmedia.
9959
9960 * hooks.c: New file.
9961 * hooks.h: New file.
9962 * Makefile.in (HOOKS_H): New.
9963 (TARGET_DEF_H): Added $(HOOKS_H).
9964 (OBJS): Added hooks.o.
9965 (cfgcleanup.o, bb-reorder.o): Added target.h.
9966 (hooks.o): Added dependencies.
9967 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
9968 (TARGET_INITIALIZER): this.
9969 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
9970 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
9971 * bb-reorder.c: Include target.h.
9972 (reorder_basic_blocks): Skip if cannot modify jumps.
9973 * cfgcleanup.c: Include target.h.
9974 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
9975
9976 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9977
9978 * config/mips/mips.md (casesi_internal, casesi_internal_di):
9979 Protect jump delay slot instructions with .set noreorder and
9980 .set nomacro.
9981
9982 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9983
9984 * config/mips/mips.md (casesi_internal_di): Calculate
9985 the index into the target offset table correctly.
9986
9987 2002-02-08 Richard Henderson <rth@redhat.com>
9988
9989 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
9990 * final.c (output_addr_const): Accept and discard SUBREG.
9991 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
9992 mark them unknown instead.
9993 (simplify_subtraction): Handle RTX_UNKNOWN.
9994 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
9995
9996 2002-02-08 David Edelsohn <edelsohn@gnu.org>
9997
9998 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
9999
10000 2002-02-08 Richard Henderson <rth@redhat.com>
10001
10002 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10003
10004 2002-02-08 Andreas Jaeger <aj@suse.de>
10005
10006 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10007 * config/i386/t-linux64: New file.
10008
10009 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10010
10011 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10012 * c-parse.in (compstmt): Clear last_expr_type.
10013
10014 2002-02-07 Richard Henderson <rth@redhat.com>
10015
10016 * loop.c (strength_reduce): Sink final_value when not
10017 eliminating a biv.
10018
10019 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10020
10021 * config/sparc/freebsd.h: Fix mismatched spec {.
10022
10023 2002-02-07 Richard Henderson <rth@redhat.com>
10024
10025 * cfgrtl.c: Include recog.h and insn-config.h.
10026 (keep_with_call_p): Fix general_operand invocation.
10027 * Makefile.in (cfgrtl.o): Update dependencies.
10028
10029 2002-02-07 Kazu Hirata <kazu@hxi.com>
10030
10031 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10032 comment. Accept HImode only if TARGET_H8300.
10033
10034 2002-02-07 Eric Christopher <echristo@redhat.com>
10035
10036 * config/mips/crtn.asm: Cleanup #ifdefs.
10037
10038 2002-02-07 Eric Christopher <echristo@redhat.com>
10039
10040 * config/mips/crti.asm: Add changes for mips16. mips16 uses
10041 register 7 as RA instead of $31.
10042 * config/mips/crtn.asm: Ditto.
10043 * config/mips/mips.c (mips_move_2words): Add case for
10044 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10045 (compute_frame_size): Fix typo.
10046 (save_restore_insns): Ditto. Make documentation about using
10047 register $7 as return register more precise.
10048 (mips_expand_epilogue): Fix comment. Add code to work around not
10049 being able to add to the stack pointer directly.
10050 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10051 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10052 epilogue.
10053
10054 2002-02-07 Tom Rix <trix@redhat.com>
10055
10056 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10057 immediates in ldu and stdu DS opcode field.
10058 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10059 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10060 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10061
10062 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10063
10064 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10065 offset for stack bias.
10066
10067 2002-02-07 H.J. Lu <hjl@gnu.org>
10068
10069 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10070
10071 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10072
10073 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10074
10075 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
10076
10077 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10078 * i386.c (x86_order_regs_for_local_alloc): New global function.
10079 * i386.h (REG_ALLOC_ORDER): CLeanup.
10080 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10081
10082 2002-02-07 Richard Henderson <rth@redhat.com>
10083
10084 PR optimization/2463
10085 * alias.c (find_base_value): Recall base values for fixed hard regs.
10086 * loop.c (loop_regs_update): Don't use single_set on non-insns.
10087
10088 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10089
10090 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10091 length.
10092
10093 2002-02-06 Richard Henderson <rth@redhat.com>
10094
10095 PR c/5609
10096 * stmt.c (resolve_operand_name_1): Take more care with mixed
10097 named and unnamed operands.
10098
10099 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10100 Jan Hubicka <jh@suse.cz>
10101
10102 * loop.c (remove_constant_addition): Avoid clobbering a shared
10103 CONST expression.
10104
10105 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10106
10107 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10108 * config/s390/t-linux64: New file.
10109 * config/s390/libgcc-glibc.ver: New file.
10110
10111 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10112
10113 * config/s390/linux64.h: Delete file.
10114 * config/s390/s390x.h: New file.
10115 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10116 as target header file.
10117 * config/s390/linux.h (TARGET_VERSION): Define depending on
10118 DEFAULT_TARGET_64BIT.
10119 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10120 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10121 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10122 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10123 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10124 (EXTRA_SPEC): New define.
10125 * config/s390/s390.h (TARGET_VERSION): Define depending on
10126 DEFAULT_TARGET_64BIT.
10127 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10128
10129 2002-02-06 Jason Merrill <jason@redhat.com>
10130
10131 * c-decl.c (finish_function): Warn about a non-void function with
10132 no return statement and no abnormal exit.
10133 (current_function_returns_abnormally): New variable.
10134 (start_function): Clear it.
10135 (struct c_language_function): Add returns_abnormally.
10136 (push_c_function_context): Save it.
10137 (pop_c_function_context): Restore it.
10138 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10139 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10140 an explicit return type.
10141 * c-tree.h: Declare current_function_returns_abnormally.
10142 (C_FUNCTION_IMPLICIT_INT): New macro.
10143 * c-typeck.c (build_function_call): Set it.
10144 (c_expand_return): Set current_function_returns_value even if the
10145 value is erroneous.
10146
10147 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10148
10149 PR c/5420:
10150 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10151 unsafe for reevaluation.
10152
10153 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10154
10155 PR c/5482:
10156 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10157 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10158
10159 2002-02-06 Richard Henderson <rth@redhat.com>
10160
10161 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10162 be a general_operand. Dest for function value must be a pseudo.
10163
10164 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10165
10166 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10167 as SYMBOL_REFs from the constant pool.
10168
10169 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10170
10171 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10172 passed by invisible reference.
10173
10174 2002-02-05 Richard Henderson <rth@redhat.com>
10175
10176 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10177
10178 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
10179
10180 Implement using "base addresses" in insn operands as default.
10181 * config/mmix/mmix.c (mmix_conditional_register_usage): if
10182 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10183 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10184 used to read the rtx value.
10185 (mmix_target_asm_function_epilogue): Fix spacing.
10186 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10187 (mmix_legitimate_address): Ditto.
10188 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10189 should be loaded with a GETA insn. Don't allocate needless extra
10190 char for nul termination and fix misleading comment.
10191 (mmix_print_operand_address): Handle constants if
10192 TARGET_BASE_ADDRESSES.
10193 (mmix_output_register_setting): Use base addressing if
10194 TARGET_BASE_ADDRESSES and the number of insns is 3.
10195 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10196 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10197 to use R as constraint, add LDA to match s.
10198 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
10199 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
10200 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
10201 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
10202 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
10203 order with other fixed registers.
10204 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
10205 other parameter/call-clobbered registers.
10206 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
10207 -mbase-addresses, -mno-base-addresses.
10208 (MMIX Options): Ditto.
10209
10210 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10211
10212 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
10213
10214 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
10215
10216 * config/rs6000/altivec.h: Change elem to _S_elem.
10217
10218 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10219
10220 * config/netbsd.h (WCHAR_TYPE): Define.
10221 (WCHAR_TYPE_SIZE): Ditto.
10222 (WINT_TYPE): Ditto.
10223 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
10224 (WCHAR_UNSIGNED): Ditto.
10225 (WCHAR_TYPE_SIZE): Ditto.
10226 (WINT_TYPE): Ditto.
10227 * config/arm/netbsd.h: Likewise.
10228 * config/i386/netbsd-elf.h: Likewise.
10229 * config/i386/netbsd.h: Likewise.
10230 * config/m68k/netbsd-elf.h: Likewise.
10231 * config/m68k/netbsd.h: Likewise.
10232 * config/ns32k/netbsd.h: Likewise.
10233 * config/sparc/netbsd.h: Likewise.
10234 * config/vax/netbsd.: Likewise.
10235
10236 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10237
10238 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
10239 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
10240 (TARGET_INITIALIZER): this.
10241 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
10242 (BITFIELD_NBYTES_LIMITED): Markup fix.
10243 * tree.h (default_ms_bitfield_layout_p): Declare.
10244 (record_layout_info): Added prev_field.
10245 * tree.c (default_ms_bitfield_layout_p): New fn.
10246 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
10247 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
10248 * stor-layout.c: Include target.h.
10249 (start_record_layout): Initialize prev_field.
10250 (place_field): Handle MS bit-field layout, and disregard
10251 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
10252 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
10253 * Makefile.in (stor-layout.o): Adjust dependencies.
10254
10255 2002-02-05 Jason Merrill <jason@redhat.com>
10256
10257 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
10258
10259 2002-02-05 Andreas Jaeger <aj@suse.de>
10260
10261 * crtstuff.c: Fix comments.
10262
10263 2002-02-05 Richard Henderson <rth@redhat.com>
10264
10265 PR fortran/3393
10266 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
10267 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10268
10269 PR fortran/3392
10270 * config/mips/mips.c (function_arg): Handle TImode.
10271 (function_arg_advance): Likewise.
10272
10273 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10274
10275 * config/rs6000/altivec.h (vec_step_help): Rename to
10276 __vec_step_help.
10277
10278 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10279
10280 * config/rs6000/altivec.h: Fix typos.
10281
10282 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10283
10284 * config/arm/netbsd.h: Correct a comment.
10285
10286 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10287
10288 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
10289 building void typed builtins.
10290
10291 * config/rs6000/altivec.h (vec_ld*): Fix typos.
10292 (vec_step): Implement for C++.
10293
10294 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10295
10296 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
10297
10298 2002-02-04 Richard Henderson <rth@redhat.com>
10299
10300 * combine.c (nonzero_bits): Re-introduce special case for
10301 sp/fp/ap wrt REGNO_POINTER_ALIGN.
10302
10303 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10304
10305 * doc/extend.texi: Warn about unsupported usage of altivec
10306 builtins.
10307
10308 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
10309 (altivec_predicate_*): New.
10310
10311 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
10312 Add C++ version of vec_*() functions.
10313
10314 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
10315 (bdesc_2arg): Remove altivec predicates.
10316 (altivec_expand_builtin): Handle predicates.
10317 (altivec_init_builtins): Handle predicates.
10318 (altivec_expand_predicate_builtin): New.
10319
10320 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10321
10322 * pa.c (DO_FRAME_NOTES): Move forward.
10323 (store_reg): Revise handling of frame notes.
10324 (load_reg): Likewise.
10325 (set_reg_plus_d): Likewise.
10326 (hppa_expand_prologue): Likewise.
10327 (hppa_expand_epilogue): Likewise.
10328
10329 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10330
10331 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
10332
10333 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10334
10335 PR c/4475, c++/3780:
10336 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
10337 * c-common.h (SWITCH_TYPE): Define.
10338 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
10339 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
10340 Rename spareness variable to sparseness.
10341 (expand_end_case_type): Renamed from expand_end_case, use orig_type
10342 if non-NULL instead of TREE_TYPE (orig_index).
10343 * tree.h (expand_end_case_type): Renamed from expand_end_case.
10344 (expand_end_case): Define using expand_end_case_type.
10345 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
10346 to expand_end_case_type.
10347 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
10348
10349 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10350
10351 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
10352 (BIGGEST_ALIGNMENT): Change to 128.
10353
10354 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10355
10356 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
10357
10358 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10359
10360 * pa.md (call_internal_reg_64bit): Remove unused variable.
10361
10362 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
10363
10364 * config/arm/arm.h (machine_function): Add uses_anonymous_args
10365 field.
10366 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
10367 * config/arm/arm.c (current_function_anonymous_args): Delete,
10368 replace uses with cfun->machine->uses_anonymous_args.
10369 (arm_reorg): Do not reset uses_anonymous_args.
10370
10371 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
10372 any geenral register.
10373
10374 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
10375
10376 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
10377 the entry block.
10378
10379 2002-02-04 Richard Henderson <rth@redhat.com>
10380
10381 * combine.c (force_to_mode): Remove STACK_BIAS code.
10382 (nonzero_bits): Likewise. Replace sp/fp special case with
10383 REGNO_POINTER_ALIGN.
10384
10385 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
10386 (HARD_FRAME_POINTER_REGNUM): New.
10387 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
10388 (FIXED_REGS, CALL_USED_REGS): Update.
10389 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
10390 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
10391 (HARD_REGNO_NREGS): Update for SFP.
10392 (STACK_POINTER_OFFSET): Include bias here ...
10393 (FIRST_PARM_OFFSET): ... not here.
10394 (STACK_BIAS): Remove.
10395 (INIT_EXPANDERS): New.
10396 (STARTING_FRAME_OFFSET): Do not include bias.
10397 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
10398 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
10399 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
10400 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
10401 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
10402 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
10403 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
10404 (MUST_SAVE_REGISTER): Likewise.
10405 (sparc_flat_function_prologue): Likewise.
10406 (sparc_flat_function_epilogue): Likewise.
10407 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
10408 (sparc_init_modes): SFP is GENERAL_REGS.
10409 (sparc_builtin_saveregs): SFP does not have bias applied.
10410
10411 2002-02-04 Richard Henderson <rth@redhat.com>
10412
10413 * config/alpha/alpha.c (current_function_is_thunk): Don't check
10414 current_function_is_thunk.
10415 (alpha_sa_mask): Distinguish between current_function_is_thunk
10416 called from ASM_OUTPUT_MI_THUNK and not.
10417 (alpha_does_function_need_gp): Thunks always need gp.
10418 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10419 (alpha_output_mi_thunk_osf): New.
10420 * config/alpha/alpha-protos.h: Update.
10421 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
10422
10423 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
10424
10425 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
10426 function types, not when they're taken away.
10427
10428 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
10429
10430 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
10431 CODE_LABEL and jump table when replacing a table jump with a
10432 simple jump.
10433
10434 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10435
10436 * config/s390/s390-protos.h (legitimize_la_operand,
10437 s390_secondary_input_reload_class, s390_plus_operand,
10438 s390_expand_plus_operand): Add prototypes.
10439
10440 config/s390/s390.c (s390_secondary_input_reload_class,
10441 s390_plus_operand, s390_expand_plus_operand): New functions.
10442
10443 (struct s390_address): New member 'pointer'.
10444 (s390_decompose_address): Compute it.
10445 (legitimate_la_operand_p): Use it.
10446 (legitimize_la_operand): New function.
10447 (movti, movdi, movdf splitters): Call it.
10448
10449 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
10450 (PREDICATE_CODES): Add s390_plus_operand.
10451
10452 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
10453 (la_ccclobber): Allow GENERAL_REGS as output operand.
10454
10455 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
10456 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
10457 (*la_64, *la_31, reload_indi, reload_insi): ... these.
10458
10459 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10460
10461 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
10462 register names for regular asm () construct.
10463
10464 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10465
10466 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
10467 registers.
10468
10469 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10470
10471 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
10472 pat for recog.
10473
10474 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
10475
10476 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
10477 constant pool to be identical by string address and index.
10478
10479 2002-02-04 Anthony Green <green@redhat.com>
10480
10481 * output.h (SECTION_OVERRIDE): Define.
10482 * varasm.c (named_section): Obey SECTION_OVERRIDE.
10483
10484 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
10485
10486 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
10487 by existing arm*-*-netbsd* (a.out) target.
10488 (ns32k-*-netbsdelf*): Likewise.
10489 (sparc-*-netbsdelf*): Likewise.
10490 (vax-*-netbsdelf*): Likewise.
10491
10492 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
10493
10494 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
10495 headers and libobjc headers.
10496
10497 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
10498
10499 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
10500 (_mingw.h): Remove duplicate include.
10501
10502 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
10503
10504 * config.gcc: Set cpu_type to m68k for 68010, as well.
10505 (m68010-*-netbsdelf*): New...
10506 (m68k*-*-netbsdelf*): ...targets.
10507 * config/m68k/netbsd-elf.h: New file.
10508
10509 2002-02-02 Kazu Hirata <kazu@hxi.com>
10510
10511 * config/h8300/h8300.c (hand_list): Move inside function_arg.
10512
10513 2002-02-02 Kazu Hirata <kazu@hxi.com>
10514
10515 * config/h8300/h8300.c (h8_push_ops): Move inside
10516 h8300_init_once.
10517 (h8_pop_ops): Likewise.
10518 (h8_move_ops): Likewise.
10519
10520 2002-02-02 Kazu Hirata <kazu@hxi.com>
10521
10522 * config/h8300/h8300.c (os_task): Make it static.
10523 (monitor): Likewise.
10524 (pragma_saveall): Likewise.
10525
10526 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
10527
10528 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
10529 constant is a valid sign-extension for Pmode.
10530
10531 2002-02-02 Kazu Hirata <kazu@hxi.com>
10532
10533 * config/h8300/h8300.c: Fix formatting.
10534
10535 2002-02-02 Kazu Hirata <kazu@hxi.com>
10536
10537 * config/h8300/h8300.md: Fix formatting.
10538
10539 2002-02-02 Kazu Hirata <kazu@hxi.com>
10540
10541 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
10542 predicates of operands[1]. Split the patterns for each
10543 processor variant.
10544
10545 2002-02-02 Kazu Hirata <kazu@hxi.com>
10546
10547 * config/h8300/h8300.md (xor patterns): Tighten the predicates
10548 of operands[1] to register_operand.
10549
10550 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10551
10552 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
10553 * cpphash.c (_cpp_init_hashtable): Similarly.
10554 * cppinit.c (cpp_create_reader): Default the signed_char flag.
10555 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
10556 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
10557 (cpp_handle_option): Handle the new options.
10558 * cpplex.c (cpp_interpret_charconst): Use new flag.
10559 * cpplib.h (struct cpp_options): New member signed_char.
10560 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
10561 (cpp_options): Handle -fsigned-char and -funsigned-char.
10562 (static_specs): Remove signed_char_spec.
10563 (do_spec1): Don't handle %c.
10564 * system.h: Poison SIGNED_CHAR_SPEC.
10565 * tradcif.y (yylex): Use flag_signed_char.
10566 * tradcpp.h (flag_signed_char): New.
10567 * tradcpp.c (flag_signed_char): New.
10568 (main): Handle new command-line options.
10569 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
10570 config:
10571 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
10572 * avr/avr.h: Remove old comments.
10573 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
10574 (CC1_SPEC): Pass -fsigned-char if -mic*.
10575 (SIGNED_CHAR_SPEC): Remove.
10576 doc:
10577 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
10578
10579 2002-02-01 Eric Christopher <echristo@redhat.com>
10580
10581 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
10582 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
10583 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
10584 (ASM_OUTPUT_REG_POP): Ditto.
10585
10586 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10587
10588 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
10589 patch.
10590
10591 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10592
10593 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
10594
10595 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10596
10597 PR c/5304:
10598 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
10599 unconditionally.
10600
10601 2002-02-01 Janis Johnson <janis187@us.ibm.com>
10602
10603 * cfganal.c: Include tm_p.h.
10604 (keep_with_call_p): Fix the test that determines if a register holds
10605 the return value of a call.
10606
10607 2002-02-01 DJ Delorie <dj@redhat.com>
10608
10609 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
10610 we are given conflicting registers, switch to the other one we
10611 had allocated for us.
10612 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
10613 as TImode so we know when the "other" register is available.
10614
10615 2002-02-01 David O'Brien <obrien@FreeBSD.org>
10616
10617 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
10618 sparc/sparc_bi.h.
10619
10620 2002-02-01 Janis Johnson <janis187@us.ibm.com>
10621
10622 * cfganal.c (keep_with_call_p): New function.
10623 (flow_call_edges_add): Prevent splitting a block between a call and
10624 a single-set instruction that should be kept in the same block.
10625
10626 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
10627
10628 * doc/install.texi (avr): Update outdated URL.
10629
10630 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
10631
10632 * config/stormy16/stormy16.md (pushqi): New.
10633 (popqi): New.
10634 (pushhi): New.
10635 (pophi): New.
10636 (movhi): Remove stack operands.
10637 (movqi): Likewise.
10638 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
10639 nonimmediate_nonstack_operand.
10640 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
10641 New.
10642 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
10643 New.
10644
10645 2002-01-31 Jason Merrill <jason@redhat.com>
10646
10647 * Makefile.in (c-parse.c): Handle .output file.
10648 * objc/Make-lang.in (objc-parse.c): Likewise.
10649
10650 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
10651
10652 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
10653 the -me[lb] option is given. Don't output the default flag
10654 twice.
10655
10656 2002-01-31 Zack Weinberg <zack@codesourcery.com>
10657
10658 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
10659 the primary source file; this has not been done yet.
10660 * c-decl.c (c_expand_body): Reset input_filename from
10661 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
10662
10663 2002-01-31 Kazu Hirata <kazu@hxi.com>
10664
10665 * rtlanal.c (subreg_regno_offset): Do not use
10666 SUBREG_REGNO_OFFSET.
10667 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
10668 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
10669
10670 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10671
10672 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
10673 version rather than GNATS version in --version output.
10674
10675 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
10676
10677 * ifcvt.c (noce_process_if_block): Make a copy of the destination
10678 when copying back from a temporary.
10679
10680 2002-01-30 Richard Henderson <rth@redhat.com>
10681
10682 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
10683 and new_dest are the same.
10684
10685 2002-01-30 Richard Henderson <rth@redhat.com>
10686
10687 PR opt/5076
10688 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
10689 * rtl.c (note_insn_name): Update.
10690 * emit-rtl.c (remove_unnecessary_notes): Kill it.
10691 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
10692 to perform loop rotation.
10693 (expand_exit_loop_top_cond): New.
10694 * tree.h (expand_exit_loop_top_cond): Declare it.
10695 * c-semantics.c (genrtl_while_stmt): Use it.
10696 (genrtl_for_stmt): Likewise.
10697
10698 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
10699
10700 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
10701 arguments to 64-bit boundaries on 64-bit ABIs.
10702
10703 2002-01-30 Steve Ellcey <sje@cup.hp.com>
10704
10705 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
10706
10707 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10708
10709 * c-decl.c (grokdeclarator): Handle type being a typedef for an
10710 invalid type.
10711
10712 2002-01-30 David O'Brien <obrien@FreeBSD.org>
10713
10714 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
10715 * config/sparc/sparc_bi.h: Remove file.
10716 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
10717
10718 2002-01-30 Richard Henderson <rth@redhat.com>
10719
10720 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
10721
10722 2002-01-30 Zack Weinberg <zack@codesourcery.com>
10723
10724 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
10725
10726 2002-01-30 Jason Merrill <jason@redhat.com>
10727
10728 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
10729 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
10730 (reg_save): Use DW_CFA_offset_extended_sf instead.
10731
10732 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
10733
10734 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10735
10736 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
10737 in cselib_lookup.
10738
10739 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
10740
10741 * rs6000.md ("*call_value_local32"): Remove constraints.
10742 ("*call_value_local64"): Same.
10743 ("*call_value_indirect_nonlocal_aix32"): Same.
10744 ("*call_value_nonlocal_aix32"): Same.
10745 ("*call_value_indirect_nonlocal_aix64"): Same.
10746 ("*call_value_nonlocal_aix64"): Same.
10747 ("*call_value_nonlocal_sysv"): Same.
10748
10749 2002-01-29 Richard Henderson <rth@redhat.com>
10750
10751 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
10752
10753 2002-01-29 Richard Henderson <rth@redhat.com>
10754
10755 * expr.c (force_operand): Ignore flag_pic for detecting pic
10756 address loads.
10757 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
10758 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
10759 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
10760 instead of open-coded loop.
10761 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
10762 be fixed when in use.
10763
10764 2002-01-29 Richard Henderson <rth@redhat.com>
10765
10766 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
10767 * sched-rgn.c (propagate_deps): Update them.
10768 * sched-deps.c (sched_analyze_insn): Update them. Flush the
10769 clobbers list when either gets too long.
10770
10771 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10772
10773 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
10774 and INDEX_REGS the same as GENERAL_REGS.
10775 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
10776
10777 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
10778
10779 * tree.c (build_nonstandard_integer_type): Correct prototype.
10780
10781 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
10782
10783 * config/s390/s390.md (movstrsico, movstrdix_64,
10784 movstrsix_31): Remove, replace by ...
10785 (movstrdi_short, movstrsi_short, movstrdi_long,
10786 movstrsi_long): ... these. New.
10787 (movstrdi, movstrsi): Adapt.
10788
10789 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
10790 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
10791 Remove unnecessary CC clobber.
10792 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
10793 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
10794
10795 (divmoddi4): Don't partially initialize TImode register.
10796
10797 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
10798
10799 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
10800
10801 2002-01-29 Richard Henderson <rth@redhat.com>
10802
10803 * flow.c (print_rtl_and_abort): Remove.
10804 (print_rtl_and_abort_fcn): Remove.
10805 (verify_local_live_at_start): Use dump_bb instead.
10806 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
10807 (verify_wide_reg_1): Return 2 on mode test failure.
10808
10809 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
10810
10811 PR c/3325, c/3326, c/2511, c/3347
10812 * c-decl.c (enum_decl_context): Remove BITFIELD.
10813 (grokdeclarator): Take bitfield width as an input.
10814 Ensure bitfields are given the correct type. Perform
10815 bitfield width validation with build_bitfield_integer_type
10816 rather than waiting for finish_struct.
10817 (grok_typename, grok_typename_in_parm_context, start_decl,
10818 push_parmdecl, grokfield, start_function): Update calls to
10819 grokdeclarator.
10820 (build_bitfield_integer_type): New function.
10821 (finish_struct): Move bitfield validation to grokdeclarator
10822 and build_bitfield_integer_type.
10823 * tree.c (build_nonstandard_integer_type): New function.
10824 * tree.h (build_nonstandard_integer_type): New prototype.
10825 objc:
10826 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
10827
10828 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10829
10830 PR other/1502:
10831 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
10832 don't ignore unrecognized -W* options.
10833 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
10834 * cpplib.h (cpp_handle_option): Adjust prototype.
10835 * c-decl.c (c_decode_options): Pass 0 as last argument to
10836 cpp_handle_option.
10837
10838 PR c/2896:
10839 * gcc.c (cpp_unique_options): Split from cpp_options.
10840 (cpp_options): Source cpp_unique_options.
10841 (default_compilers): Use cpp_unique_options instead of cpp_options
10842 when used together with cc1_options.
10843 (static_specs): Add cpp_unique_options.
10844 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
10845 when used together with cc1_options.
10846
10847 2002-01-29 Kazu Hirata <kazu@hxi.com>
10848
10849 * config/h8300/h8300-protos.h: Update the prototype of
10850 output_a_shift.
10851 * config/h8300/h8300.c (output_a_shift): Remove an unused
10852 argument 'insn'. Remove redundant code.
10853 * config/h8300/h8300.md: Adust to the new prototype of
10854 output_a_shift.
10855
10856 2002-01-29 Kazu Hirata <kazu@hxi.com>
10857
10858 * config/h8300/h8300-protos.h: Update the prototypes of
10859 emit_a_rotate and expand_a_rotate.
10860 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
10861 first argument to 'enum rtx_code'.
10862 (expand_a_rotate): Likewise.
10863
10864 2002-01-28 Kazu Hirata <kazu@hxi.com>
10865
10866 * config/h8300/h8300-protos.h: Update the prototype of
10867 output_simode_bld.
10868 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
10869 'log2'.
10870 * config/h8300/h8300.md: Adjust to the new prototype.
10871
10872 2002-01-28 Kazu Hirata <kazu@hxi.com>
10873
10874 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
10875 redundant code.
10876
10877 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10878
10879 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
10880 is a fixed register before returning pic_offset_table_rtx.
10881 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
10882 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
10883
10884 2002-01-28 Jason Merrill <jason@redhat.com>
10885
10886 * dwarf2.h: Sync with src version.
10887
10888 2002-01-28 Paul Koning <pkoning@equallogic.com>
10889
10890 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
10891 BT_FN_VOID_PTR_VAR.
10892 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
10893 * doc/extend.texi (__builtin_prefetch): Update documentation:
10894 first argument is now const void ptr.
10895
10896 2002-01-28 Kazu Hirata <kazu@hxi.com>
10897
10898 * config/h8300/h8300-protos.h: Remove an unused prototype.
10899
10900 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
10901
10902 * toplev.c (lang_independent_init): Round up identifier size.
10903
10904 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10905
10906 * config.gcc: Revert previous change.
10907
10908 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
10909
10910 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10911
10912 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10913
10914 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
10915 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
10916 other non-elf netbsd config frags.
10917 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
10918 collect2 will does that.
10919 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
10920 shared-lib frobbing will work.
10921
10922 2002-01-28 Kazu Hirata <kazu@hxi.com>
10923
10924 * config/h8300/h8300.h: Fix formatting.
10925 * config/h8300/h8300.md: Likewise.
10926
10927 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
10928
10929 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10930 the old, removed AAA_standards fix.
10931 * fixinc/fixincl.x: Rebuilt.
10932
10933 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
10934
10935 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10936 atexit call in crtbegin, hooked in after call to frame_dummy;
10937 register EH before registering __fini__start.
10938
10939 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
10940
10941 * config/rs6000/altivec.h: Remove spurious semicolons.
10942
10943 2002-01-27 Kazu Hirata <kazu@hxi.com>
10944
10945 * config/h8300/h8300.md: Replace dead bit extraction patterns
10946 with ones that work.
10947
10948 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10949
10950 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
10951 if not STRICT_ALIGNMENT.
10952 * rtl.h (MEM_ALIGN): Likewise.
10953
10954 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
10955
10956 * doc/invoke.texi (-fdump-translation-unit): Revert this
10957 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
10958
10959 2002-01-27 Kazu Hirata <kazu@hxi.com>
10960
10961 * config/h8300/h8300.md (define_constants): New.
10962 (anonymous patterns) Use defined constants appropriately.
10963
10964 2002-01-27 Kazu Hirata <kazu@hxi.com>
10965
10966 * config/h8300/h8300.c (function_arg): Remove redundant code.
10967
10968 2002-01-26 Richard Henderson <rth@redhat.com>
10969
10970 * sched-deps.c (reg_pending_uses_head): New.
10971 (reg_pending_barrier): Rename from reg_pending_sets_all.
10972 (find_insn_list): Don't mark inline.
10973 (find_insn_mem_list): Remove.
10974 (add_dependence_list, add_dependence_list_and_free): New.
10975 (flush_pending_lists): Replace only_write param with separate
10976 for_read and for_write parameters. Update all callers. Use
10977 add_dependence_list_and_free.
10978 (sched_analyze_1): Do not add reg dependencies here; just set
10979 the pending bits. Use add_dependence_list.
10980 (sched_analyze_2): Likewise.
10981 (sched_analyze_insn): Replace schedule_barrier_found with
10982 reg_pending_barrier. Add all dependencies for pending reg
10983 uses, sets, and clobbers.
10984 (sched_analyze): Don't add reg dependencies for calls, just
10985 set pending bits. Use regs_invalidated_by_call. Treat
10986 sched_before_next_call as a normal list, not a fake insn.
10987 (init_deps): No funny init for sched_before_next_call.
10988 (free_deps): Free pending mems lists. Don't zero reg_last.
10989 (init_deps_global): Init reg_pending_uses.
10990 (finish_deps_global): Free it.
10991 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
10992 (find_insn_mem_list): Remove.
10993 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
10994 (propagate_deps): Use them. Zero temp mem lists.
10995
10996 2002-01-26 Richard Henderson <rth@redhat.com>
10997
10998 * Makefile.in (CRTSTUFF_CFLAGS): New.
10999 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11000 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11001 crtstuff.c instead of alpha assembly version.
11002 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11003 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
11004 not FORCE_{INIT,FINI}_SECTION_ALIGN.
11005 (__do_global_dtors_aux): Mark used.
11006 (frame_dummy, __do_global_ctors_aux): Mark used.
11007 (fini_dummy, init_dummy): Remove.
11008
11009 * config/alpha/crtbegin.asm: Remove file.
11010 * config/alpha/crtend.asm: Remove file.
11011 * config/alpha/t-crtbe: Remove file.
11012 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11013 (LINK_EH_SPEC): New.
11014
11015 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11016 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
11017 calling constructors.
11018 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11019
11020 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11021 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11022 CRT_END_INIT_DUMMY hack.
11023 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11024 FORCE_{INIT,FINI}_SECTION_ALIGN.
11025
11026 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11027 FORCE_{INIT,FINI}_SECTION_ALIGN.
11028
11029 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11030 invocation sequence.
11031 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11032
11033 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11034 (FORCE_CODE_SECTION_ALIGN): New.
11035
11036 2002-01-26 Richard Henderson <rth@redhat.com>
11037
11038 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11039
11040 2002-01-26 Richard Henderson <rth@redhat.com>
11041
11042 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11043 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11044
11045 2002-01-26 Kazu Hirata <kazu@hxi.com>
11046
11047 * config/h8300/h8300.md: Remove bit extraction patterns that
11048 cannot be triggered.
11049 Restrict each bit extraction pattern to a variant on which the
11050 pattern is tested.
11051
11052 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11053
11054 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11055
11056 2002-01-26 Kazu Hirata <kazu@hxi.com>
11057
11058 * config/h8300/h8300.md: Remove bit test patterns that cannot
11059 be triggered.
11060 Restrict each bit test pattern to a variant on which the
11061 pattern is tested.
11062
11063 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11064
11065 * builtins.c (expand_builtin_strncat): Remove redundant check for
11066 INTEGER_CST.
11067
11068 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11069
11070 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11071 default setting.
11072 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11073 existing setting.
11074
11075 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11076
11077 * dbxout.c (dbxout_init): Use assemble_name rather than just
11078 stripping off the first character.
11079 (dbxout_source_file): Likewise.
11080
11081 2002-01-25 DJ Delorie <dj@redhat.com>
11082
11083 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11084 using rtx_equal_p, not by comparing pointers.
11085
11086 2002-01-25 Steve Ellcey <sje@cup.hp.com>
11087
11088 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11089 for PIC_OFFSET_TABLE_REGNUM.
11090 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11091
11092 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11093
11094 * config.gcc (x86_64-*-freebsd*): New target.
11095 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11096 value.
11097 (i[34567]86-*-freebsd*): Don't include svr4.h.
11098 * config/i386/freebsd64.h: New file.
11099
11100 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11101
11102 * config/alpha/x-vms (version): Make static.
11103
11104 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11105 in previous checkin.
11106
11107 * Makefile.in (install-headers-cp): New target.
11108 * config.gcc (alpha-dec-*vms*): Install headers with
11109 install-headers-cp
11110
11111 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11112
11113 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11114 avoid it's copies.
11115
11116 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11117
11118 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11119 of compare_tree_int.
11120 (expand_builtin_strncat): Likewise.
11121 * c-decl.c (finish_struct): Use tree_low_cst.
11122 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11123 * tree.c (compare_tree_int): Likewise.
11124
11125 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11126
11127 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11128 adjustments even if they are implemented by more than two insns.
11129
11130 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
11131
11132 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11133 * df.h (struct ref): Kill B.
11134 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11135
11136 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11137 * flow.c (propagate_one_insn): Use it.
11138 (mark_used_regs): Handle NIL.
11139
11140 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11141
11142 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11143 to help folding.
11144
11145 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11146
11147 * rs6000.md (prefetch): Make address V4SI mode so that the address
11148 is restricted to legitimate form for instruction.
11149
11150 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11151
11152 * doc/install.texi (xtensa-*-elf): New target.
11153 (xtensa-*-linux*): New target.
11154 * doc/contrib.texi: Add myself.
11155
11156 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11157
11158 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11159 purpose register to hold an SImode (or smaller) value.
11160
11161 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11162
11163 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11164 registry only.
11165 * crtstuff.c: Likewise.
11166
11167 2002-01-25 Kazu Hirata <kazu@hxi.com>
11168
11169 * config/h8300/h8300.md (negation patterns): Tighten
11170 predicates to register_operand.
11171
11172 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11173
11174 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11175 mode, not Pmode.
11176
11177 * builtins.c (expand_builtin_prefetch): Same.
11178
11179 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11180
11181 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11182 modes.
11183
11184 2002-01-24 Kazu Hirata <kazu@hxi.com>
11185
11186 * config/h8300/h8300.c (print_operand): Remove support for
11187 operand character 'A'.
11188 * config/h8300/h8300.md (three anonymous patterns): Replace
11189 operand character 'A' with either 'T' or 'S'.
11190
11191 2002-01-24 Kazu Hirata <kazu@hxi.com>
11192
11193 * config/h8300/h8300.c (print_operand): Remove support for
11194 operand character 'U'.
11195
11196 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11197
11198 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11199
11200 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
11201
11202 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
11203 values to be assigned to the stack pointer.
11204
11205 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11206
11207 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
11208 to const_double needs to be done right for big-endian systems.
11209
11210 2002-01-24 Jason Merrill <jason@redhat.com>
11211
11212 PR c++/2432
11213 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
11214 to can_throw_internal.
11215
11216 2002-01-23 Richard Henderson <rth@redhat.com>
11217
11218 * fold-const.c (fold): Change UINT_MAX test to check vs precision
11219 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
11220
11221 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11222
11223 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
11224 (symGOT2reg): Use them, then set as GOT value as unchanging.
11225 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
11226 as a temporary, if possible.
11227 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
11228 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
11229
11230 2002-01-23 Kazu Hirata <kazu@hxi.com>
11231
11232 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
11233 accept to accept 0x80 as operands[2].
11234
11235 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11236
11237 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
11238
11239 2002-01-23 Richard Henderson <rth@redhat.com>
11240
11241 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
11242
11243 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
11244
11245 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
11246 (parmlist_or_identifiers_1): Verify that only a parmlist follows
11247 an attribute.
11248
11249 2002-01-23 Richard Henderson <rth@redhat.com>
11250
11251 * expr.c (move_by_pieces_1): Extend size before negation.
11252
11253 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
11254 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
11255 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
11256 * config/m68k/t-m68kelf: Likewise.
11257
11258 2002-01-23 Bob Wilson <bob.wilson@acm.org>
11259
11260 * config/xtensa/elf.h: New file.
11261 * config/xtensa/lib1funcs.asm: New file.
11262 * config/xtensa/lib2funcs.S: New file.
11263 * config/xtensa/linux.h: New file.
11264 * config/xtensa/t-xtensa: New file.
11265 * config/xtensa/xtensa-config.h: New file.
11266 * config/xtensa/xtensa-protos.h: New file.
11267 * config/xtensa/xtensa.c: New file.
11268 * config/xtensa/xtensa.h: New file.
11269 * config/xtensa/xtensa.md: New file.
11270 * config.gcc (xtensa-*-elf*): New target.
11271 (xtensa-*-linux*): New target.
11272 * cse.c (canon_hash): Compare rtx pointers instead of register
11273 numbers. This is required for the Xtensa port.
11274 * integrate.c (copy_insn_list): Handle case where the static
11275 chain is in memory and the memory address has to be copied to
11276 a register.
11277 * doc/invoke.texi (Option Summary): Add Xtensa options.
11278 (Xtensa Options): New node.
11279 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
11280
11281 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11282
11283 * diagnostic.c (internal_error): Do ICE suppression only
11284 when ENABLE_CHECKING is not defined.
11285
11286 * c-typeck.c (require_complete_type): Return error_mark_node
11287 if type is error_mark_node.
11288
11289 2002-01-23 Janis Johnson <janis187@us.ibm.com>
11290
11291 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
11292 -Os and issue a warning.
11293
11294 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11295
11296 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
11297 current (lack of) need for host configuration by hand.
11298
11299 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
11300 references. Documentation of some target macros moved from
11301 hostconfig.texi to tm.texi.
11302
11303 2002-01-23 Will Cohen <wcohen@redhat.com>
11304
11305 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
11306 defined.
11307
11308 2002-01-23 Kazu Hirata <kazu@hxi.com>
11309
11310 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
11311 operand[3].
11312
11313 2002-01-23 Jason Merrill <jason@redhat.com>
11314
11315 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
11316
11317 * function.c (assign_parms): Don't put args of inline functions
11318 into registers when not optimizing.
11319
11320 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
11321
11322 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
11323 (prologue_use): New pattern.
11324 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
11325 preference to gen_rtx_USE.
11326 (thumb_expand_prologue): Use gen_prologue_use in preference to
11327 gen_rtx_USE.
11328 (thumb_expand_epilogue): Use gen_prologue_use in preference to
11329 gen_rtx_USE.
11330
11331 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
11332
11333 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
11334
11335 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
11336
11337 PR c/3504
11338 * doc/extend.texi: Correct documentation of __alignof__.
11339
11340 2002-01-22 Zack Weinberg <zack@codesourcery.com>
11341
11342 * params.h: Rename arguments of DEFPARAM so that it will be
11343 recognized as a translation keyword.
11344
11345 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11346
11347 * extend.texi: Document altivec functions.
11348 Fix N-bit adjectives in X86 builtin documentation.
11349
11350 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11351
11352 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
11353 auto_inc_dec values.
11354
11355 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
11356
11357 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
11358 after backslash.
11359 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
11360
11361 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11362
11363 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
11364
11365 2002-01-22 Richard Henderson <rth@redhat.com>
11366
11367 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
11368 copy_insn not copy_rtx.
11369
11370 2002-01-23 Alan Modra <amodra@bigpond.net.au>
11371
11372 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
11373 "nonzero" as that might add "1" bits. Ensure "constop" is
11374 properly sign extened.
11375 (force_to_mode): Tweak for sign extended constop.
11376
11377 2002-01-22 Richard Henderson <rth@redhat.com>
11378
11379 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
11380 for_each_rtx instead of assuming we're already looking at the MEM.
11381 (split_small_symbolic_mem_operand): Likewise.
11382 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11383 * config/alpha/alpha.md (small symbolic memory splitters): Update.
11384
11385 2002-01-22 Richard Henderson <rth@redhat.com>
11386
11387 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
11388 sequence number for the literal.
11389 (divmoddi_internal_er): Likewise.
11390
11391 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11392
11393 PR java/4972
11394 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
11395 in LIBICONV variable.
11396 * configure: Regenerated.
11397
11398 2002-01-22 Krister Walfridsson <cato@df.lth.se>
11399
11400 * dependence.c (build_def_use): Remove array_idx.
11401
11402 * dwarfout.c (last_filename): Remove.
11403 (output_compile_unit_die): Remove last_filename.
11404
11405 2002-01-22 Roger Sayle <roger@eyesopen.com>
11406 Richard Henderson <rth@redhat.com>
11407
11408 PR opt/3640
11409 * fold-const.c (fold): Optimize unsigned comparisons against
11410 UINT_MAX (and similar unsigned constants).
11411
11412 2002-01-22 Janis Johnson <janis187@us.ibm.com>
11413
11414 * Makefile.in (loop.o): Depend on OPTABS_H.
11415 * loop.c (emit_prefetch_instructions): Check the prefetch operand
11416 against the predicate.
11417
11418 PR target/5379
11419 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
11420 for the address operand.
11421
11422 2002-01-22 Richard Henderson <rth@redhat.com>
11423
11424 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
11425
11426 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11427
11428 PR other/5450
11429 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
11430 preprocessor flags.
11431
11432 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
11433
11434 * config.gcc (x86_64-*-netbsd*): New target.
11435 * config/i386/netbsd64.h: New file.
11436
11437 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11438
11439 * regrename.c (kill_value): Fix typo.
11440
11441 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11442
11443 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
11444
11445 * config/rs6000/rs6000.h: Same.
11446
11447 * function.c (instantiate_virtual_regs): Remove
11448 STARTING_FRAME_PHASE.
11449 (assign_stack_local_1): Same.
11450 Calculate frame phase.
11451
11452 2002-01-22 Nick Clifton <nickc@redhat.com>
11453
11454 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
11455 variable declaration to outer scope in order to simplify
11456 future extensions.
11457 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
11458 arm_hard_regno_mode_ok.
11459 * config/arm/arm-protos.h: Add a prototype for
11460 arm_hard_regno_mode_ok.
11461 * config/arm/arm.c (soft_df_operand): Remove now redundant
11462 check for DImode values using IP_REGNUM.
11463 (nonimmediate_soft_df_operand): Remove now redundant check for
11464 DImode values using IP_REGNUM.
11465 (arm_hard_regno_mode_ok): New function. New check: make sure
11466 that DImode values are not stored in IP_REGNUM.
11467
11468 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
11469 note with a USE.
11470 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
11471
11472 2002-01-22 Jason Merrill <jason@redhat.com>
11473
11474 * c-semantics.c (genrtl_compound_stmt): Only check nesting
11475 consistency if this COMPOUND_STMT is scoped.
11476
11477 2002-01-22 Kazu Hirata <kazu@hxi.com>
11478
11479 * predict.c: Fix formatting.
11480 * print-tree.c: Likewise.
11481 * protoize.c: Likewise.
11482 * real.h: Likewise.
11483 * rtl.h: Likewise.
11484 * sbitmap.h: Likewise.
11485 * scan.c: Likewise.
11486 * sched-deps.c: Likewise.
11487 * sched-vis.c: Likewise.
11488 * sdbout.c: Likewise.
11489 * sibcall.c: Likewise.
11490 * ssa.c: Likewise.
11491 * ssa-ccp.c: Likewise.
11492 * ssa-dce.c: Likewise.
11493 * stmt.c: Likewise.
11494 * stor-layout.c: Likewise.
11495 * system.h: Likewise.
11496
11497 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11498
11499 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
11500 if fits in bounds of base type.
11501
11502 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
11503 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
11504 (add_bound_info, default): If can't find a context, make a
11505 SAVE_EXPR.
11506 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
11507
11508 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
11509
11510 * c-typeck.c (parser_build_binary_op): If result from
11511 build_binary_op is ERROR_MARK just return error_mark_node without
11512 further processing.
11513
11514 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
11515
11516 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
11517 Split a.out-specific bits into...
11518 * config/netbsd-aout.h: ...this.
11519 * config/netbsd-elf.h: New file.
11520 * config/alpha/netbsd-elf.h: Remove.
11521 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
11522 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
11523 (STARTFILE_SPEC): Remove redundant definition.
11524 (ENDFILE_SPEC): Likewise.
11525 (LINK_SPEC): Likewise.
11526 (CPP_SPEC): Likewise.
11527 (ASM_SPEC): Likewise.
11528 (LIB_SPEC): Likewise.
11529 (SWITCH_TAKES_ARG): Likewise.
11530 (TARGET_MEM_FUNCTIONS): Likewise.
11531 (CPP_PREDEFINES): Redefine.
11532 (ASM_FINAL_SPEC): Remove redefinition.
11533 (ASM_COMMENT_START): Redefine.
11534 (FUNCTION_PROFILER): Define.
11535 (TARGET_VERSION): Redefine.
11536 Comment and formatting cleanup.
11537 * config/i386/netbsd.h: Include <netbsd-aout.h>.
11538 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
11539 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
11540 big- or little-endian.
11541 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
11542 * config.gcc (*-*-netbsd*): Add definitions common to all
11543 NetBSD configs.
11544 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
11545 gnu_ld definitions. Add netbsd-elf.h to and remove
11546 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
11547 tmake_file, and don't lose previous tmake_file contents.
11548 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
11549 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
11550 gnu_ld definitions. Add netbsd-elf.h to tm_file.
11551 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
11552 (mipsel-*-netbsd*): Rename this to...
11553 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
11554 mips/little.h to tm_file for mips*el-*.
11555 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
11556 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
11557 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
11558
11559 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
11560
11561 * pa-protos.h (reg_before_reload_operand): New function prototype.
11562 * pa.c (reg_before_reload_operand): New function implementation.
11563 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
11564 contraints to "*m".
11565
11566 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11567
11568 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
11569
11570 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
11571
11572 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
11573 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
11574 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
11575 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
11576 (ENDFILE_SPEC): Undefine.
11577 (STARTFILE_SPEC): Redefine for PA.
11578
11579 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11580
11581 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
11582
11583 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
11584
11585 * config.gcc: Add entries to supported PowerPC --with-cpu
11586 types.
11587
11588 2002-01-21 Jakub Jelinek <jakub@redhat.com>
11589
11590 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
11591 true for 64-bit mode only SSE registers in 32-bit mode.
11592
11593 2002-01-21 Kazu Hirata <kazu@hxi.com>
11594
11595 * unwind-dw2.c: Fix formatting.
11596 * unwind-dw2-fde.c: Likewise.
11597 * unwind-dw2-fde.h: Likewise.
11598 * unwind-pe.h: Likewise.
11599 * varasm.c: Likewise.
11600 * varray.h: Likewise.
11601
11602 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
11603
11604 Remove workaround for register stack overwrite bug in mmix.
11605 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
11606 support for TARGET_REG_STACK_FILL_BUG.
11607 * config/mmix/mmix.h: Remove member has_call_without_parameters.
11608 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
11609 Delete.
11610 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
11611 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
11612 -mno-reg-stack-fill-bug-workaround.
11613 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
11614 machine member has_call_without_parameters.
11615 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
11616 -mreg-stack-fill-bug-workaround and
11617 -mno-reg-stack-fill-bug-workaround.
11618 (MMIX Options): Ditto.
11619
11620 2002-01-21 Kazu Hirata <kazu@hxi.com>
11621
11622 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
11623 as appropriate.
11624 Remove redundant code.
11625
11626 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
11627
11628 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
11629 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11630 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11631 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
11632 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
11633 out target macro definitions and non-target-specific comments
11634 mostly taken from old versions of the manual.
11635
11636 2002-01-20 Kazu Hirata <kazu@hxi.com>
11637
11638 * config/h8300/h8300.h: Fix comment formatting.
11639 * config/ia64/aix.h: Likewise.
11640 * config/ia64/ia64-protos.h: Likewise.
11641 * config/ia64/ia64.c: Likewise.
11642 * config/ia64/ia64.h: Likewise.
11643 * config/ia64/ia64intrin.h: Likewise.
11644 * config/ia64/linux.h: Likewise.
11645 * config/ia64/unwind-aix.c: Likewise.
11646 * config/ia64/unwind-ia64.c: Likewise.
11647
11648 2002-01-20 Kazu Hirata <kazu@hxi.com>
11649
11650 * config/h8300/h8300.c: Revise comments about shift code.
11651
11652 2002-01-20 Kazu Hirata <kazu@hxi.com>
11653
11654 * config/h8300/h8300.c (function_arg): Update a comment.
11655
11656 2002-01-20 Kazu Hirata <kazu@hxi.com>
11657
11658 * config/h8300/h8300.md: Update the comments at the beginning
11659 of the file.
11660
11661 2002-01-20 Kazu Hirata <kazu@hxi.com>
11662
11663 * config/i370/i370.c: Fix comment formatting.
11664 * config/i370/i370.h: Likewise.
11665 * config/i370/i370.md: Likewise.
11666 * config/i370/linux.h: Likewise.
11667
11668 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11669
11670 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
11671
11672 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
11673 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
11674 in incomplete case.
11675
11676 2002-01-20 Graham Stott <grahams@redhat.com>
11677
11678 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
11679
11680 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
11681
11682 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
11683
11684 2002-01-19 Tom Rix <trix@redhat.com>
11685
11686 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
11687
11688 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
11689
11690 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
11691
11692 * function.c (assign_stack_local_1): Adjust x_frame_offset with
11693 STARTING_FRAME_PHASE.
11694 (STARTING_FRAME_PHASE): New.
11695 (instantiate_virtual_regs): Check saneness of
11696 STARTING_FRAME_PHASE.
11697
11698 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
11699
11700 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
11701
11702 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
11703
11704 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
11705
11706 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
11707 be used for bootstrapping GCC 3.0.
11708
11709 2002-01-18 Kazu Hirata <kazu@hxi.com>
11710
11711 * config/h8300/h8300.md: Fix an insn length.
11712
11713 2002-01-18 Kazu Hirata <kazu@hxi.com>
11714
11715 * bitmap.h: Fix comment formatting.
11716 * combine.c: Likewise.
11717 * cppfiles.c: Likewise.
11718 * c-pragma.h: Likewise.
11719 * c-typeck.c: Likewise.
11720 * df.c: Likewise.
11721 * dwarf2out.c: Likewise.
11722 * function.c: Likewise.
11723 * gcc.c: Likewise.
11724 * genattrtab.c: Likewise.
11725 * gthr-win32.h: Likewise.
11726 * haifa-sched.c: Likewise.
11727 * predict.c: Likewise.
11728 * rtlanal.c: Likewise.
11729 * rtl.h: Likewise.
11730 * unwind-dw2-fde.h: Likewise.
11731 * unwind-pe.h: Likewise.
11732 * vmsdbgout.c: Likewise.
11733
11734 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11735
11736 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
11737 if type_required and passed decl.
11738
11739 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
11740
11741 * config.gcc (cpu_type): Include altivec.h in powerpc
11742 extra_headers.
11743 Same for darwin.
11744
11745 * config/rs6000/altivec.h: New.
11746
11747 2002-01-17 David Edelsohn <edelsohn@gnu.org>
11748
11749 * doc/install.texi (*-ibm-aix*): Update assembler and exception
11750 handling information.
11751 * doc/trouble.texi (Interoperation): Add libstdc++ information
11752 for AIX.
11753 (Misunderstandings): Add template instantiation and static template
11754 member information for AIX.
11755
11756 2002-01-17 Jason Merrill <jason@redhat.com>
11757
11758 * dbxout.c (dbxout_type): Support const and volatile.
11759
11760 * except.c (add_partial_entry): Remove backwards compatibility code.
11761 (end_protect_partials): Likewise.
11762
11763 2002-01-17 Jakub Jelinek <jakub@redhat.com>
11764
11765 * config/ia64/ia64.md (prologue_use): New.
11766 * config/ia64/ia64.c (ia64_expand_prologue): Use
11767 gen_prologue_use instead of gen_rtx_USE.
11768 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
11769 as CODE_FOR_pred_rel_mutex.
11770 (ia64_sched_reorder2): Likewise.
11771
11772 2002-01-16 Eric Christopher <echristo@redhat.com>
11773
11774 * config/mips/r3900.h: Reformat.
11775 (SUBTARGET_CPP_SIZE_SPEC): Remove.
11776 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
11777 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
11778 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
11779 * config/mips/t-elf: Remove mips3 multilib.
11780
11781 2002-01-16 H.J. Lu <hjl@gnu.org>
11782
11783 * config/mips/linux.h: Include "mips/abi64.h".
11784
11785 2002-01-16 H.J. Lu <hjl@gnu.org>
11786
11787 * config/mips/t-linux: New.
11788
11789 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
11790
11791 * config/mips/linux.h: Don't include "gofast.h".
11792 (INIT_SUBTARGET_OPTABS): Removed.
11793
11794 2002-01-16 Kazu Hirata <kazu@hxi.com>
11795
11796 * config/h8300/h8300-protos.h: Replace emit_a_shift with
11797 output_a_shift.
11798 * config/h8300/h8300.c: Likewise.
11799 * config/h8300/h8300.md: Likewise.
11800
11801 2002-01-16 Kazu Hirata <kazu@hxi.com>
11802
11803 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
11804 spaces after an opcode name.
11805 (pushqi1_h8300hs): Likewise.
11806 (pushhi1_h8300hs): Likewise.
11807
11808 2002-01-16 Kazu Hirata <kazu@hxi.com>
11809
11810 * doc/extend.texi: Replace "option" with "attribute"
11811 appropriately.
11812
11813 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11814
11815 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
11816 (and:DI () (const_int -8)).
11817 (split_small_symbolic_mem_operand): Split
11818 (mem (and:DI () (const_int -8)).
11819
11820 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11821
11822 PR target/5309:
11823 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
11824 same way as TYPE_IMUL.
11825 (ultrasparc_sched_reorder): Likewise.
11826 * config/sparc/sparc.md (type): Add comment to update
11827 ultrasparc_sched_reorder when making changes.
11828
11829 2002-01-16 Kazu Hirata <kazu@hxi.com>
11830
11831 * doc/invoke.texi: Change the dump file name of block
11832 reordering pass from 28.bbro to 29.bbro.
11833 Mention -dk option.
11834
11835 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
11836
11837 * i386.md (minsf splitter): Fix pasto.
11838
11839 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
11840
11841 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
11842 to frame pointer initialisation instruction.
11843 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
11844 initialisation instruction.
11845 (soft_df_operand): Do not accept the IP register.
11846 (nonimmediate_soft_df_operand): Do not accept the IP register.
11847
11848 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11849
11850 PR target/5357:
11851 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
11852 MASK_V8 being both set.
11853
11854 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
11855
11856 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
11857 insn for GOT register; add REG_MAYBE_DEAD notes instead.
11858 config/s390/s390.md (call, call_value): Add GOT register to
11859 CALL_INSN_FUNCTION_USAGE where needed.
11860 (call_exp, call_value_exp): New.
11861
11862 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
11863
11864 * config/arm/arm.c: General formatting tidy up.
11865
11866 2002-01-16 Graham Stott <grahams@redhat.com>
11867
11868 * calls.c (try_to_integrate): Use "(size_t)" intermediate
11869 cast and when casting an integer literal to "rtx" pointer.
11870 (expand_call): Likewise.
11871 * flow.c (try_pre_increment): Likewise.
11872 (find_use_as_address): Likewise.
11873 * integrate.c (expand_iline_function): Likewise.
11874 * regmove.c (try_auto_increment): Likewise.
11875
11876 2002-01-16 Graham Stott <grahams@redhat.com>
11877
11878 * sched-rgn.c (passed): Use sbitmap_free.
11879 (header): Likewise.
11880 (inner): Likewise.
11881 (in_queue): Likewise.
11882 (in_stack): Likewise.
11883
11884 2002-01-15 Eric Christopher <echristo@redhat.com>
11885
11886 * flow.c (propagate_one_insn): Change to use fatal_insn.
11887
11888 2002-01-15 Kazu Hirata <kazu@hxi.com>
11889
11890 * expmed.c (extract_fixed_bit_field): Remove unused code.
11891 * system.h: Poison SLOW_ZERO_EXTEND.
11892 * doc/tm.texi: Remove.
11893 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
11894 * config/arm/arm.h: Likewise.
11895 * config/avr/avr.h: Likewise.
11896 * config/clipper/clipper.h: Likewise.
11897 * config/convex/convex.h: Likewise.
11898 * config/d30v/d30v.h: Likewise.
11899 * config/dsp16xx/dsp16xx.h: Likewise.
11900 * config/elxsi/elxsi.h: Likewise.
11901 * config/fr30/fr30.h: Likewise.
11902 * config/h8300/h8300.h: Likewise.
11903 * config/i370/i370.h: Likewise.
11904 * config/i386/i386.h: Likewise.
11905 * config/m68k/m68k.h: Likewise.
11906 * config/mips/mips.h: Likewise.
11907 * config/ns32k/ns32k.h: Likewise.
11908 * config/pdp11/pdp11.h: Likewise.
11909 * config/pj/pj.h: Likewise.
11910 * config/s390/s390.h: Likewise.
11911 * config/sh/sh.h: Likewise.
11912 * config/stormy16/stormy16.h: Likewise.
11913 * config/v850/v850.h: Likewise.
11914 * config/vax/vax.h: Likewise.
11915 * config/we32k/we32k.h: Likewise.
11916
11917 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11918
11919 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
11920 (altivec_lvsl): Change constraint to b.
11921 (altivec_lvsr): Same.
11922 (altivec_lvebx): Same.
11923 (altivec_lvehx): Same.
11924 (altivec_lvewx): Same.
11925 (altivec_lvxl): Same.
11926 (altivec_lvx): Same.
11927 (altivec_stvx): Add parallel.
11928 (altivec_stvxl): Same.
11929 (altivec_stvehx): Same.
11930 (altivec_stvebx): Same.
11931 (altivec_stvebx): Same.
11932
11933 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11934
11935 * config.gcc: Change altivec.h to altivec-defs.h.
11936
11937 * config/rs6000/altivec.h: Delete.
11938
11939 * config/rs6000/altivec-defs.h: Add.
11940
11941 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11942
11943 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11944 and UMOD modes.
11945
11946 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11947 less than or equal to eight bytes.
11948
11949 * vax.md (andsi3): Remove constraints and change SET destination
11950 operand type to nonimmediate_operand.
11951 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
11952 when it is a CONST_INT.
11953
11954 2002-01-15 Jason Merrill <jason@redhat.com>
11955
11956 * c-common.def (FILE_STMT): New code.
11957 * c-common.c (statement_code_p): It's a statement.
11958 * c-common.h (stmt_tree_s): Add x_last_filename.
11959 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
11960 (last_expr_filename): New macro.
11961 * c-semantics.c (begin_stmt_tree): Initialize it.
11962 (add_stmt): If the filename changed, also insert a
11963 FILE_STMT.
11964 (expand_stmt): Handle seeing one.
11965
11966 2002-01-15 Eric Christopher <echristo@redhat.com>
11967
11968 * flow.c (propagate_one_insn): Add error message and print out
11969 insn for debugging.
11970
11971 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11972
11973 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
11974 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
11975 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
11976 TRAMPOLINE_ALIGNMENT.
11977 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
11978 to be in bits.
11979 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
11980 PCC_BITFIELD_TYPE_MATTERS.
11981 * config/interix.h (STDC_VALUE): Remove. Use
11982 STDC_0_IN_SYSTEM_HEADERS.
11983 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
11984 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
11985 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
11986
11987 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
11988
11989 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11990 not work on this platform currently.
11991
11992 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11993
11994 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11995 readonly_warning in _().
11996
11997 2002-01-15 Douglas B Rupp <rupp@gnat.com>
11998
11999 * gcc.c (delete_if_ordinary): Backout previous change.
12000
12001 2002-01-15 Kazu Hirata <kazu@hxi.com>
12002
12003 * config/h8300/h8300.c (print_operand): Remove support for
12004 unused operand characters.
12005
12006 * read-rtl.c: Fix formatting.
12007 * real.c: Likewise.
12008 * recog.c: Likewise.
12009 * regclass.c: Likewise.
12010 * regmove.c: Likewise.
12011 * reg-stack.c: Likewise.
12012 * reload1.c: Likewise.
12013 * rtlanal.c: Likewise.
12014
12015 2002-01-15 Kazu Hirata <kazu@hxi.com>
12016
12017 * config/i386/i386.c: Fix formatting.
12018
12019 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12020
12021 * c-typeck.c (process_init_element): Don't save_expr
12022 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12023
12024 2002-01-15 David Edelsohn <edelsohn@gnu.org>
12025
12026 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12027 emit optional traceback table if optimize_size or TARGET_ELF.
12028 * config/rs6000/rs6000.md (prefetch): New.
12029
12030 2002-01-15 Andreas Jaeger <aj@suse.de>
12031
12032 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12033
12034 2002-01-15 Kazu Hirata <kazu@hxi.com>
12035
12036 * mips-tfile.c: Fix formatting.
12037
12038 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12039
12040 * unroll.c (final_reg_note_copy): Fix previous commit.
12041
12042 2002-01-14 Kazu Hirata <kazu@hxi.com>
12043
12044 * config/h8300/h8300-protos.h: Remove the prototype for
12045 eq_operator.
12046 * config/h8300/h8300.c (eq_operator): Remove.
12047
12048 2002-01-14 Richard Henderson <rth@redhat.com>
12049
12050 * config/i386/i386.md (prefetch): Tidy.
12051 (prefetch_3dnow): Fix locality operand.
12052
12053 2002-01-14 Richard Henderson <rth@redhat.com>
12054
12055 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12056 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12057
12058 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12059
12060 * reload1.c (reload_combine): Pass reg_sum replacement through
12061 copy_rtx in loop performing multiple changes.
12062
12063 2002-01-14 Jakub Jelinek <jakub@redhat.com>
12064
12065 * except.c (remove_unreachable_regions): New.
12066 (free_eh_status): Clear exception_handler_labels.
12067 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12068 (find_exception_handler_labels): Don't add the same label more than
12069 once.
12070 (remove_exception_handler_label): Don't die if
12071 find_exception_handler_labels hasn't been called for the current
12072 function yet.
12073
12074 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12075
12076 * toplev.c (rest_of_compilation): Rebuild jump labels after
12077 gcse.
12078
12079 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12080
12081 * doc/extend.texi: Move documentation of X86 built-in functions
12082 here.
12083 * doc/invoke.texi: From here.
12084 * doc/sourcebuild.texi: Document location of documentation for
12085 machine built-in functions.
12086
12087 2002-01-13 Christopher Faylor <cgf@redhat.com>
12088
12089 * cppfiles.c (TEST_THRESHOLD): New macro.
12090 (SHOULD_MMAP): Ditto.
12091 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12092 be used.
12093
12094 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12095
12096 * unroll.c (final_reg_note_copy): Properly handle
12097 REG_LABEL
12098 (unroll_loops): Fix LOOP_CONDITION heuristics.
12099
12100 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12101
12102 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12103 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12104
12105 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12106
12107 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12108 threaded loop.
12109
12110 2002-01-14 Tom Rix <trix@redhat.com>
12111
12112 * config/rs6000/rs6000.md: Fix typo with sradi.
12113
12114 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
12115
12116 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12117 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12118 (clrstrdi, clrstrsi): Adapt callers.
12119
12120 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12121
12122 (movti splitter): Never use register 0 as base register.
12123
12124 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12125
12126 * combine.c (simplify_shift_const): Always generate new rtx
12127 for shift expression instead of reusing given expression.
12128
12129 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12130
12131 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12132 alpha_legitimize_address unless mode is Pmode.
12133
12134 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12135
12136 * doc/md.texi (Modifiers): Document the '*' constraint for the
12137 user.
12138
12139 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12140 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12141 for xstormy16 too.
12142
12143 2002-01-13 Richard Henderson <rth@redhat.com>
12144
12145 * reload.c (find_reloads): Use a hard reg destination as reload reg
12146 for an input reload of the source.
12147
12148 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12149
12150 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12151 more generic.
12152
12153 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12154
12155 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12156 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12157
12158 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12159
12160 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12161
12162 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12163
12164 2002-01-12 Tom Rix <trix@redhat.com>
12165
12166 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12167 TARGET_POWERPC64.
12168
12169 2002-01-12 Richard Henderson <rth@redhat.com>
12170
12171 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12172
12173 * doc/invoke.texi: Update Alpha options.
12174
12175 * doc/invoke.texi: Update i386 built-in function lists.
12176
12177 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12178
12179 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12180 referencing outside.
12181
12182 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12183
12184 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12185 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12186 offsets, and change line folding.
12187 * optabs.c (expand_binop): Remove warnings.
12188 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12189
12190 2002-01-12 Graham Stott <grahams@redhat.com>
12191
12192 * attribs.c (handle_deprecated_attribute): constify WHAT.
12193 * diagnostic.c (warn_deprecated_use): Add braces, fixes
12194 dangling else warning and constify WHAT.
12195 * except.h (struct function, struct inline_remap): Move
12196 struct tag forward defs before all prototypes.
12197 (duplicate_eh_regions): Whitespace.
12198
12199 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
12200
12201 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12202 MODE_BASE_REG_CLASS.
12203 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
12204
12205 2002-01-12 Richard Henderson <rth@redhat.com>
12206
12207 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
12208 (ix86_expand_vector_move): New.
12209 (bdesc_2arg): Remove andps, andnps, orps, xorps.
12210 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
12211 Remove old prefetch builtins. Special case the logicals removed above.
12212 (ix86_expand_builtin): Likewise.
12213 (safe_vector_operand): Use V4SFmode, not TImode.
12214 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
12215 (ix86_expand_timode_binop_builtin): New.
12216 * config/i386/i386-protos.h: Update.
12217 * config/i386/i386.h (enum ix86_builtins): Update.
12218 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
12219 Use ix86_expand_vector_move in vector move expanders.
12220 (movti_internal, movti_rex64): Add xorps alternative.
12221 (sse_clrv4sf): Rename and adjust from sse_clrti.
12222 (prefetch): Don't work so hard.
12223 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
12224 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
12225 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
12226
12227 2002-01-11 Richard Henderson <rth@redhat.com>
12228
12229 * config/i386/mmintrin.h: New file.
12230 * config/i386/xmmintrin.h: New file.
12231 * config.gcc (i?86-*-*): Add extra_headers.
12232 * simplify-rtx.c (simplify_unary_operation): Handle saturating
12233 truncation codes.
12234 (simplify_binary_operation): Handle saturating arithmetic codes.
12235 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
12236 not the lowpart subreg.
12237 (ix86_expand_builtin): Return a TImode dummy register instead of 0
12238 on error.
12239 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
12240
12241 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12242
12243 * conflict.c (conflict_graph_compute): Free regsets when finished.
12244 * ssa.c (compute_coalesced_reg_partition): Likewise.
12245
12246 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12247
12248 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
12249 every where we allocate a register.
12250
12251 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12252
12253 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
12254 * lcm.c (compute_earliest, compute_farthest): Likewise.
12255
12256 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12257
12258 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
12259
12260 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12261
12262 * doc/rtl.texi (Insns): Fix 2 typos.
12263
12264 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
12265
12266 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
12267 options. Use @table @gcctabopt for MMIX options. Add index
12268 entries for MMIX options. Start new paragraph with first
12269 heading of the machine-dependent options.
12270
12271 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
12272
12273 PR other/5299
12274 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
12275 * combine.c (force_to_mode): Same.
12276 * reload1.c (clear_reload_reg_in_use): Same.
12277
12278 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
12279
12280 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
12281 and 'subtargets'.
12282
12283 2002-01-11 Andreas Jaeger <aj@suse.de>,
12284 Brad Lucier <lucier@math.purdue.edu>
12285
12286 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
12287 mcpu.
12288
12289 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
12290
12291 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
12292 Protect with IN_LIBGCC.
12293 (LINK_EH_SPEC): Add required trailing space.
12294
12295 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
12296
12297 * c-tree.h: Move function declarations so that they are listed
12298 under the filename which contains them.
12299 (check_identifier, finish_decl_top_level,
12300 lookup_name_current_level_global, shadow_record_fields): Remove.
12301
12302 2002-01-11 Andreas Jaeger <aj@suse.de>
12303
12304 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
12305 march.
12306
12307 2002-01-10 Richard Henderson <rth@redhat.com>
12308
12309 * config/alpha/alpha.c (print_operand): Add 'J'.
12310 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
12311 new operand with the sequence number for the lituse. When splitting
12312 the insns, use gen_movdi_er_high_g and generate a sequence number.
12313 (gen_movdi_er_high_g): Print the sequence number if non-zero.
12314
12315 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
12316
12317 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
12318 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
12319 stvxl.
12320 (altivec_expand_builtin): Same.
12321 (altivec_expand_stv_builtin): New.
12322
12323 * config/rs6000/rs6000.h (rs6000_builtins): Same.
12324
12325 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
12326 ("altivec_lvehx"): New.
12327 ("altivec_lvewx"): New.
12328 ("altivec_lvxl"): New.
12329 ("altivec_lvx"): New.
12330 ("altivec_stvx"): New.
12331 ("altivec_stvebx"): New.
12332 ("altivec_stvehx"): New.
12333 ("altivec_stvewx"): New.
12334 ("altivec_stvxl"): New.
12335
12336 2002-01-10 Richard Henderson <rth@redhat.com>
12337
12338 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
12339 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
12340 care not to delete instructions twice.
12341
12342 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12343
12344 * toplev.c: Don't declare environ (it's not used anywhere).
12345 * configure.in: Don't check for declaration of environ.
12346 * config/i386/xm-mingw32.h: Don't #define environ.
12347 * config.in, configure: Regenerate.
12348
12349 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12350
12351 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
12352 * configure: Regenerate.
12353
12354 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
12355 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
12356 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
12357 alpha/xm-vms.h.
12358 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
12359 LIMITS_H_TEST here, not in m68k/x-next.
12360 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
12361 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
12362
12363 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
12364 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
12365 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
12366
12367 * config/i386/x-djgpp: Renamed i386/t-djgpp.
12368 * config/m88k/x-dolph: Renamed m88k/t-dolph.
12369 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
12370 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
12371 replacement of quadlib.asm with quadlib.c.
12372
12373 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
12374 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
12375 config/rs6000/xm-beos.h: Delete file.
12376
12377 * config.gcc: Update to match above changes.
12378
12379 2002-01-10 Kazu Hirata <kazu@hxi.com>
12380
12381 * config/h8300/h8300.h: Fix comment typos.
12382 * config/h8300/h8300.md: Likewise.
12383 * config/h8300/lib1funcs.asm: Likewise.
12384
12385 2002-01-10 Dale Johannesen <dalej@apple.com>
12386
12387 PR optimization/5269
12388 * unroll.c (precondition_loop_p): Make *increment be the correct
12389 sign when n_iterations known, to avoid confusing caller.
12390
12391 2002-01-10 Kazu Hirata <kazu@hxi.com>
12392
12393 * doc/extend.texi (deprecated): Fix a typo.
12394
12395 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
12396
12397 * basic-block.h (update_br_prob_note): Declare.
12398 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
12399 (try_forward_edges): Care negative frequencies and update note.
12400 (outgoing_edges_match): Tweek conditional merging heuristics.
12401 (try_crossjump_to_edge): use update_br_prob_note.
12402 * cfglayout.c (fixup_reorder_chain): Likewise.
12403 * cfrtl.c (update_br_prob_note): New.
12404 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
12405
12406 * i386.c (ix86_decompose_address): Return -1 if address contains
12407 shift.
12408 (legitimate_address_p): Require ix86_decompose_address to return 1.
12409
12410 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
12411 (cprop_insn): Likewise.
12412
12413 2002-01-10 Kazu Hirata <kazu@hxi.com>
12414
12415 * toplev.c: Fix formatting.
12416 * tree.c: Likewise.
12417 * tree-dump.c: Likewise.
12418 * unroll.c: Likewise.
12419 * unwind-dw2.c: Likewise.
12420 * unwind-dw2-fde.c: Likewise.
12421 * unwind-dw2-fde-glibc.c: Likewise.
12422 * unwind-sjlj.c: Likewise.
12423
12424 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12425
12426 * doc/invoke.texi: Document PDP-11 options.
12427
12428 2002-01-10 Kazu Hirata <kazu@hxi.com>
12429
12430 * config/h8300/h8300.h: Fix formatting.
12431
12432 2002-01-10 Ira Ruben <ira@apple.com>
12433
12434 Add __attribute__ ((deprecated)).
12435 * extend.texi: Document __attribute__ ((deprecated)).
12436 * invoke.texi: Document -Wno-deprecated-declarations.
12437 * testsuite/g++.dg/other/deprecated.C: New C++ test.
12438 * testsuite/gcc.dg/deprecated.c: New C test.
12439 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
12440 (c_common_attribute_table): Add "deprecated" entry.
12441 (handle_deprecated_attribute): New function.
12442 * c-decl.c (deprecated_states): New enum.
12443 deprecated_state: State of "deprecated" handling.
12444 (start_decl): Set deprecated_state based on attributes.
12445 (grokdeclarator): Test for deprecated uses, propagate attribute.
12446 * c-typeck.c (build_component_ref): Test for deprecated fields.
12447 (build_external_ref): Test for deprecated primaries.
12448 * diagnostic.c (warn_deprecated_use) New function to issue
12449 warnings about __attribute__ ((depricated)) references.
12450 * flags.h (warn_deprecated_decl): Extern declared for
12451 -W[no-]deprecated-declarations option.
12452 * print-tree.c (print_node): Show deprecated flag status.
12453 * toplev.c (warn_deprecated_decl): Defined.
12454 (W_options): Added "deprecated-declaration".
12455 * toplev.h (warn_deprecated_use): Extern declared.
12456 * tree.h (struct tree_common): Define deprecated_flag.
12457 (TREE_DEPRECATED): New macro to access flag.
12458 * cp/call.c (build_call): Test for deprecated calls.
12459 * cp/class.c (add_implicitly_declared_members): Set global
12460 flag to tell grokdeclarator to not issue deprecated warnings.
12461 * cp/cp-tree.h: Add extern for adding_implicit_members.
12462 * cp/decl.c (deprecated_states): New enum.
12463 (start_decl): Set deprecated_state based on attributes.
12464 (grokdeclarator): Test for deprecated uses, propagate attribute.
12465 * cp/lex.c (do_identifier): Test for deprecated primaries.
12466 * cp/typeck.c (build_component_ref): Test for deprecated fields.
12467
12468 2002-01-10 Ira Ruben <ira@apple.com>
12469
12470 Fix to assign attributes to inline member functions.
12471 * cp/decl.c (start_method): Handle attrlist.
12472
12473 2002-01-10 Kazu Hirata <kazu@hxi.com>
12474
12475 * combine.c (expand_field_assignment): Use subreg_lsb().
12476
12477 2002-01-10 David Edelsohn <edelsohn@gnu.org>
12478
12479 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
12480 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
12481 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
12482 Recurse for any operand of AND as long as constant is non-zero.
12483
12484 2002-01-10 Kazu Hirata <kazu@hxi.com>
12485
12486 * config/h8300/h8300.md: Remove constraints from expanders.
12487
12488 2002-01-10 Kazu Hirata <kazu@hxi.com>
12489
12490 * varasm.c: Fix formatting.
12491 * varray.c: Likewise.
12492 * vmsdbgout.c: Likewise.
12493 * xcoffout.c: Likewise.
12494
12495 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
12496
12497 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
12498 update edge probabilities to match.
12499
12500 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12501
12502 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
12503 dependencies.
12504 * doc/languages.texi, doc/sourcebuild.texi: New files.
12505 * doc/configfiles.texi: Make a subsubsection. Update.
12506 * doc/configterms.texi: Add @node. Remove warning that this isn't
12507 instructions for building GCC.
12508 * doc/makefile.texi: Make a subsection.
12509 * doc/gccint.texi: Update.
12510
12511 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
12512
12513 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
12514
12515 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
12516
12517 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
12518
12519 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
12520
12521 * optabs.c (expand_fix): Look for wider integer modes first.
12522
12523 * i386.md (mov?f): Avoid the fake const double trick for medium
12524 memory model.
12525 (min?f*/max?f*): Prohibit memory operands for i387 variant.
12526 (fop_df_4): Disable for SSE compilation.
12527
12528 2002-01-10 Graham Stott <grahams@redhat.com>
12529
12530 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
12531 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
12532
12533 2002-01-10 Richard Henderson <rth@redhat.com>
12534
12535 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
12536
12537 2002-01-10 Richard Henderson <rth@redhat.com>
12538
12539 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
12540 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
12541
12542 2002-01-10 Kazu Hirata <kazu@hxi.com>
12543
12544 * combine.c (can_combine_p): Fix a comment typo.
12545
12546 2002-01-09 Zack Weinberg <zack@codesourcery.com>
12547
12548 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
12549 empty list correctly. Change loop index $t to $f for
12550 consistency with rest of Makefile.
12551
12552 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
12553
12554 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
12555 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12556
12557 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
12558 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
12559 (altivec_init_builtins): Same.
12560 (altivec_expand_unop_builtin): Return NULL_RTX on error.
12561 (altivec_expand_binop_builtin): Same.
12562 (altivec_expand_ternop_builtin): Same.
12563 (bdesc_dst): New.
12564
12565 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
12566 ("altivec_vctuxs"): Fix typo.
12567 ("altivec_vnmsubfp"): Same.
12568 ("altivec_dssall"): New.
12569 ("altivec_mfvscr"): New.
12570 ("altivec_dss"): New.
12571 ("altivec_lvsl"): New.
12572 ("altivec_lvsr"): New.
12573 ("altivec_dstt"): New.
12574 ("altivec_dstst"): New.
12575 ("altivec_dststt"): New.
12576 ("altivec_dst"): New.
12577
12578 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
12579 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12580
12581 2002-01-09 Richard Henderson <rth@redhat.com>
12582
12583 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
12584
12585 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
12586
12587 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
12588 function.
12589 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
12590 prototype.
12591 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
12592
12593 2002-01-09 Kazu Hirata <kazu@hxi.com>
12594
12595 * read-rtl.c: Fix formatting.
12596 * real.c: Likewise.
12597 * regclass.c: Likewise.
12598 * regrename.c: Likewise.
12599 * reg-stack.c: Likewise.
12600 * reload1.c: Likewise.
12601 * reload.c: Likewise.
12602 * rtl.c: Likewise.
12603
12604 2002-01-09 Kazu Hirata <kazu@hxi.com>
12605
12606 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
12607 to extract items in the expr_list chain.
12608
12609 2002-01-09 Richard Henderson <rth@redhat.com>
12610
12611 * config/vax/vax.c (vax_rtx_cost): Never abort.
12612
12613 * config/vax/vax.h (REAL_ARITHMETIC): Define.
12614
12615 2002-01-09 Jan Hubicka <jh@suse.cz>
12616
12617 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
12618
12619 2002-01-09 Richard Henderson <rth@redhat.com>
12620
12621 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
12622 Unify code from various alternatives.
12623
12624 2002-01-09 Richard Henderson <rth@redhat.com>
12625
12626 * regrename.c (copy_value): Ignore the copy if the source register
12627 is present in the value chain with a narrower mode.
12628
12629 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12630
12631 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
12632 for the c4x target. Also improve layout.
12633
12634 2002-01-09 Richard Henderson <rth@redhat.com>
12635
12636 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
12637 * config/m32r/m32r.md (and ior xor splitters): Swap operands
12638 to match insn patterns.
12639
12640 2002-01-09 Richard Henderson <rth@redhat.com>
12641
12642 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
12643 (copyprop_hardreg_forward_1): Likewise.
12644
12645 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
12646
12647 * pa.md (decrement_and_branch_until_zero): Change predicate for
12648 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
12649
12650 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12651
12652 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
12653 gets undefined. For Darwin.
12654
12655 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12656
12657 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
12658
12659 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12660
12661 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
12662
12663 2002-01-08 Richard Henderson <rth@redhat.com>
12664
12665 * regrename.c (copy_value): Ignore overlapping copies.
12666
12667 2002-01-08 Richard Henderson <rth@redhat.com>
12668
12669 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
12670 as needed to avoid shared structure.
12671
12672 2002-01-08 Kazu Hirata <kazu@hxi.com>
12673
12674 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
12675 H8/300H and H8/S.
12676
12677 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12678
12679 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
12680 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
12681 documentation of obsolete macros.
12682 * system.h: Poison these macros.
12683 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
12684 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
12685 config/c4x/c4x.h, config/clipper/clipper.h,
12686 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
12687 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
12688 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
12689 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
12690 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12691 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
12692 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12693 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
12694 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
12695 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12696 config/sparc/sparc.h, config/stormy16/stormy16.h,
12697 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
12698 definitions and commented out definitions of obsolete macros.
12699 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
12700 of MAX_INT_TYPE_SIZE.
12701
12702 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
12703
12704 * config/s390/s390.c (s390_preferred_reload_class): Never
12705 return ADDR_REGS if it isn't a subset of the given class.
12706 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
12707 FP_REGS, but all superclasses as well.
12708
12709 * config/s390/s390.c (s390_function_profiler): Fix thinko.
12710
12711 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
12712 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
12713 must not be a const_int.
12714
12715 2002-01-08 Richard Henderson <rth@redhat.com>
12716
12717 * Makefile.in (toplev.o): Depend on options.h.
12718 (gcc.o): Depend on specs.h.
12719
12720 2002-01-08 Jakub Jelinek <jakub@redhat.com>
12721
12722 * expr.c (store_expr): Convert VOIDmode constants back to target's
12723 mode.
12724
12725 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12726
12727 * doc/invoke.texi: Markup gcc as @command. Refer to
12728 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
12729 of http://gcc.gnu.org/thanks.html.
12730
12731 2002-01-08 Dale Johannesen <dalej@apple.com>
12732
12733 * config/rs6000/rs6000.md: Add missing int register
12734 target case to movdf_low.
12735
12736 2002-01-08 Zack Weinberg <zack@codesourcery.com>
12737
12738 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
12739 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
12740 (cppinit.o): Depend on except.h.
12741 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
12742 s-specs): New rules.
12743
12744 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
12745 Don't create specs.h/options.h/gencheck.h here. Remove
12746 unnecessary variable settings from last argument of AC_OUTPUT.
12747 * config.in, configure: Regenerate.
12748 * intl.c: Hardcode package name as "gcc".
12749
12750 * cppinit.c: Include except.h.
12751 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
12752 appropriate.
12753 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
12754 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
12755 (!)USING_SJLJ_EXCEPTIONS.
12756 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
12757
12758 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12759
12760 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
12761 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
12762 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
12763 documentation of obsolete macros.
12764 * system.h: Poison these macros.
12765 * config/d30v/d30v.h, config/ns32k/encore.h,
12766 config/stormy16/stormy16.h: Remove definitions and commented out
12767 definitions of obsolete macros.
12768
12769 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
12770
12771 * objc/objc-act.c (handle_class_ref): Mark the declaration of
12772 %sobjc_class_ref_%s as used - to prevent unwanted compiler
12773 warnings.
12774
12775 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
12776
12777 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
12778 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
12779 to insn adjusting stack/frame pointer.
12780 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
12781 accept operands that cause the insn to be non-splittable.
12782
12783 2002-01-08 Graham Stott <grahams@redhat.com>
12784
12785 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
12786 (C_TYPE_FIELDS_VOLATILE): Likewise.
12787 (C_TYPE_BEING_DEFINED): Likewise.
12788 (C_IS_RESERVED_WORD): Likewise.
12789 (C_TYPE_VARIABLE_SIZE): Likewise.
12790 (C_DECL_VARIABLE_SIZE): Likewise.
12791 (C_MISSING_PROTOTYPE_WARNED): Likewise.
12792 (C_SET_EXP_ORIGINAL_CODE): Likewise.
12793 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
12794 parenthesis.
12795 (C_DECL_ANTICIPATED): Likewise.
12796 (c_build_type_variant): Add parenthesis.
12797
12798 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12799
12800 * gcc.c (option_map): Remove --version.
12801 (process_command): Handle -fversion following the GNU Coding
12802 Standards. Partially addresses PR other/704.
12803
12804 2002-01-08 Graham Stott <grahams@redhat.com>
12805
12806 * combine.c (combine_instructions): Fix typo.
12807
12808 2002-01-08 Graham Stott <grahams@redhat.com>
12809
12810 * debug.h: Use "tree" and "rtx" throughout.
12811
12812 * debug.c: Likewise.
12813
12814 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
12815
12816 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
12817 constant pool, use the pool's version of the symbol instead.
12818
12819 2002-01-07 Richard Henderson <rth@redhat.com>
12820
12821 * regrename.c (find_oldest_value_reg): Ignore the value chain if
12822 the original register was copied in a mode with a fewer number of
12823 hard registers than the desired mode.
12824 (copyprop_hardreg_forward_1): Likewise.
12825 (debug_value_data): Fix loop test.
12826 * toplev.c (parse_options_and_default_flags): Reenable
12827 -fcprop-registers at -O1.
12828
12829 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12830
12831 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
12832 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
12833
12834 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
12835 predicates.
12836
12837 * config/rs6000/rs6000.md: Add altivec predicate patterns.
12838
12839 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
12840
12841 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
12842 (pa_output_function_prologue): Output local label at the beginning of
12843 the prologue when profiling.
12844 (hppa_profile_hook): Use the local label rather than the function label.
12845 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
12846
12847 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12848
12849 * config/rs6000/rs6000.c (print_operand): Remove extra space.
12850 (altivec_expand_unop_builtin): Fix thinko.
12851 (altivec_expand_binop_builtin): Same.
12852 (altivec_expand_ternop_builtin): Same.
12853 (altivec_expand_builtin): Same.
12854
12855 2002-01-07 Richard Henderson <rth@redhat.com>
12856
12857 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
12858
12859 2002-01-07 Jason Merrill <jason@redhat.com>
12860
12861 * unwind-dw2.c (execute_cfa_program): Use < again.
12862
12863 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12864
12865 * predict.c (combine_predictions_for_insn): Avoid division by zero.
12866
12867 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12868
12869 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
12870 Don't allow -1 - x -> ~x simplifications in the first pass.
12871
12872 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12873
12874 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
12875 arguments.
12876 (altivec_expand_binop_builtin): Same.
12877 (altivec_expand_unop_builtin): Same.
12878 (print_operand): Fix typo.
12879 (bdesc_1arg): Add vupk* variants.
12880
12881 * rs6000.h (rs6000_builtins): Add vupk* enums.
12882
12883 * rs6000.md: Add altivec_vupk* variants.
12884
12885 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
12886
12887 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
12888 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
12889 and last update dates.
12890
12891 2002-01-07 Janis Johnson <janis187@us.ibm.com>
12892
12893 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12894
12895 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
12896
12897 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
12898 * config/avr/avr.h (CPP_SPEC): Likewise.
12899 (LINK_SPEC): Likewise.
12900 (CRT_BINUTILS_SPECS): Likewise.
12901 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12902 * doc/invoke.texi (AVR Options): Document them.
12903
12904 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
12905
12906 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12907 LABEL_NUSES.
12908
12909 2002-01-07 Graham Stott <grahams@redhat.com>
12910
12911 * config/i386/i386.h: Update copyright date.
12912 (HALF_PIC_PTR): Add parenthesis.
12913 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
12914 (CONSTANT_ALIGNMENT): Add parenthesis.
12915 (DATA_ALIGNMENT): Likewise.
12916 (LOCAL_ALIGNMENT): Likewise.
12917 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
12918 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
12919 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
12920 (HARD_REGNO_NREGS): Add paranethesis.
12921 (VALID_SSE_REG_MODE): Whitespace.
12922 (VALID_MMX_REG_MODE): Whitespace.
12923 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
12924 (ix86_hard_regno_mode_ok): Add parenthesis.
12925 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
12926 (RETURN_IN_MEMORY): Whitespace.
12927 (N_REG_CLASSES): Add parenthesis.
12928 (INTEGER_CLASS_P): Add parenthesis and wrap.
12929 (FLOAT_CLASS_P): Likewise.
12930 (SSE_CLASS_P): Likewise.
12931 (MMX_CLASS_P): Likewise.
12932 (MAYBE_INTEGER_CLASS_P): Likewise.
12933 (MAYBE_FLOAT_CLASS_P): Likewise.
12934 (MAYBE_SSE_CLASS_P): Likewise.
12935 (MAYBE_MMX_CLASS_P): Likewise.
12936 (Q_CLASS_P): Likewise.
12937 (GENERAL_REGNO_P): Uppercase macro parameter.
12938 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12939 (FP_REGNO_P): Likewise.
12940 (ANY_FP_REGNO_P): Uppercase macro parameter.
12941 (SSE_REGNO_P): Likewise.
12942 (SSE_REGNO): Likewise.
12943 (SSE_REG_P): Likewise.
12944 (SSE_FLOAT_MODE_P): Likewise.
12945 (MMX_REGNO_P): Likewise.
12946 (MMX_REG_P):Likewise.
12947 (STACK_REG_P): Likewise.
12948 (NON_STACK_REG_P): Likewise.
12949 (STACK_TOP_P): Likewise.
12950 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
12951 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
12952 (SECONDARY_MEMORY_NEEDED): Likewise.
12953 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
12954 (MD_ASM_CLOBBERS): Whitespace and wrap.
12955 (MUST_PASS_IN_STACK): Whitespace and wrap.
12956 (RETURN_POPS_ARGS): Add parenthesis.
12957 (INIT_CUMULATIVE_ARGS): Likewise.
12958 (FUNCTION_ARG): Likewise.
12959 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
12960 (SETUP_INCOMING_VARARGS): Likewise.
12961 (BUILD_VA_LIST_TYPE): Add parenthesis.
12962 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
12963 parenthsis.
12964 (EXPAND_BUILTIN_VA_ARG): Likewise.
12965 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
12966 (INITIALIZE_TRAMPOLINE): Add parenthesis.
12967 (INITIAL_ELIMINATION_OFFSET): Likewise.
12968 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
12969 (REGNO_OK_FOR_BASE_P): Likewise.
12970 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
12971 (REGNO_OK_FOR_DIREG_P): Likewise.
12972 (REG_OK_FOR_INDEX_P): Whitespace.
12973 (REG_OK_FOR_BASE_P): Whitespace.
12974 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
12975 parenthesis.
12976 (FIND_BASE_TERM): Fix typo.
12977 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
12978 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
12979 (SYMBOLIC_CONST; Whitespace.
12980 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
12981 (ENCODE_SECTION_INFO): Whitespace.
12982 (FINALIZE_PIC): Remove do { ... } while (0).
12983 (PROMOTE_MODE): Wrap in do { ... } while (0).
12984 (CONST_COSTS): Whitespace.
12985 (RTX_COSTS): Add paramethesis, whitespace and wrap.
12986 (REGISTER_MOVE_COST): Add parenthesis.
12987 (MEMORY_MOVE_COST): Likewise.
12988 (EXTRA_CC_MODES): Whitespace.
12989 (SELECT_CC_MODE): Add parenthesis and whitespace.
12990 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
12991 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
12992 (ASM_OUTPUT_LABEL): Add paramethesis.
12993 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
12994 (ASM_OUTPUT_REG_POP): Likewise.
12995 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
12996 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12997
12998 * config/i386/i386.c: Update copyright.
12999 (CHECK_STACK_LIMIT): Add parenthesis.
13000 (AT_BP): Uppercase macro parameter.
13001 (x86_64_int_parameter_registers): Constify.
13002 (x86_64_int_return_registers): Likewise.
13003 (ix86_compare_op0): Use rtx.
13004 (construct_container): Constify INTREG parameter.
13005 (function_arg): Use rtx.
13006
13007 * diagnostic.h: Update copyright date.
13008 (output_buffer_state): Add parenthesis.
13009 (output_buffer_format_args): Likewise.
13010
13011 * combine.c (combine_instructions): Replace XEXP (links, 0)
13012 with link.
13013
13014 2002-01-06 H.J. Lu <hjl@gnu.org>
13015
13016 * cfgcleanup.c (thread_jump): Fix 2 typos.
13017
13018 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13019
13020 * config.gcc: Add support for --enable-altivec.
13021
13022 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13023
13024 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13025
13026 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13027
13028 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13029 __objc_class_name_*.
13030
13031 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13032
13033 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13034
13035 2002-01-06 Richard Henderson <rth@redhat.com>
13036
13037 * reorg.c (emit_delay_sequence): Remove death notes, not merely
13038 nop them out. Increment label reference count for REG_LABEL.
13039 (fill_slots_from_thread): Frob label reference count around
13040 delete_related_insns.
13041
13042 2002-01-05 Richard Henderson <rth@redhat.com>
13043
13044 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13045 jump threading.
13046
13047 2002-01-05 Richard Henderson <rth@redhat.com>
13048
13049 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13050 * integrate.c (output_inline_function): Likewise.
13051 * toplev.c (rest_of_compilation): Do it here instead. Move call
13052 to remove_unnecessary_notes after emitting abstract instance.
13053 Force an emitted nested function to have its parent emited as well.
13054 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13055 for null.
13056 (rtl_for_decl_location): Do not look at reload data structures
13057 before reload has run.
13058
13059 2002-01-05 Kazu Hirata <kazu@hxi.com>
13060
13061 * cse.c: Fix formatting.
13062 * dwarf2asm.c: Likewise.
13063 * dwarf2out.c: Likewise.
13064 * explow.c: Likewise.
13065 * expmed.c: Likewise.
13066 * function.c: Likewise.
13067 * gcov.c: Likewise.
13068 * gencheck.c: Likewise.
13069 * genrecog.c: Likewise.
13070 * ggc-common.c: Likewise.
13071 * ggc-page.c: Likewise.
13072 * global.c: Likewise.
13073
13074 2002-01-05 Kazu Hirata <kazu@hxi.com>
13075
13076 * combine.c: Fix formatting.
13077
13078 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13079
13080 PR middle-end/1557
13081 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13082
13083 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13084
13085 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13086 as 1 for __powerpc64__ as well.
13087
13088 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13089
13090 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13091 return it.
13092
13093 2002-01-05 Daniel Berlin <dan@dberlin.org>
13094
13095 * lcm.c: Revert change, due to performance regression it causes on
13096 SPEC because it's slightly more conservative (sigh, I hate
13097 edge-based LCM).
13098
13099 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13100
13101 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13102
13103 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13104
13105 * doc/cppinternals.texi: Update.
13106
13107 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13108
13109 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13110 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13111 negatives.
13112 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
13113 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13114 kludge for pre-october-14th mmix versions to handle new-found bug
13115 with PUSHJ/PUSHGO and the register stack.
13116 * config/mmix/mmix.h (struct machine_function): Rename member
13117 has_call_value_without_parameters to has_call_without_parameters.
13118 All referers changed.
13119 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13120 TARGET_MASK_BRANCH_PREDICT): New macros.
13121 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13122 -mno-reg-stack-fill-bug-workaround.
13123 * config/mmix/mmix.md ("call"): Set struct machine member
13124 has_call_without_parameters.
13125
13126 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13127
13128 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13129
13130 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13131
13132 * cfgcleanup.c: Include tm_p.h
13133 (mark_effect): Fix handling of hard register; fix handling of SET
13134
13135 2002-01-04 Kazu Hirata <kazu@hxi.com>
13136
13137 * config/h8300/h8300.md (anonymous patterns): Check that
13138 operands are registers before using REGNO on them.
13139
13140 2002-01-03 Roland McGrath <roland@frob.com>
13141
13142 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13143
13144 2002-01-04 Jakub Jelinek <jakub@redhat.com>
13145
13146 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13147 * c-common.h (genrtl_expr_stmt_value): Likewise.
13148 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13149 (expand_expr_stmt_value): Add maybe_last argument.
13150 Don't warn about statement with no effect if it is the last statement
13151 in expression statement.
13152 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13153 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13154 expand_expr_stmt_value.
13155 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13156 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13157 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13158 as maybe_last to expand_expr_stmt_value.
13159
13160 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
13161
13162 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13163 be passed in, do not build it.
13164 (c_begin_if_stmt): New function.
13165 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13166 * c-common.h (c_expand_start_cond): Update prototype.
13167 (c_begin_if_stmt): Prototype new function.
13168 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13169 * c-parse.in (if_prefix): Use c_begin_if_stmt,
13170 c_begin_while_stmt and c_finish_while_stmt_cond.
13171
13172 2002-01-04 William Cohen <wcohen@redhat.com>
13173
13174 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13175 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13176 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13177 * config/pa/som.h (ASM_FILE_START): Likewise.
13178
13179 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
13180
13181 * lcm.c: Include df.h.
13182 Add available_transfer_function prototype.
13183 (compute_available): Rework to use iterative dataflow framework.
13184 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13185 with bb_info in df.h
13186 (available_transfer_function): New function.
13187
13188 * Makefile.in (lcm.o): add df.h to dependencies.
13189
13190 2002-01-04 Richard Henderson <rth@redhat.com>
13191
13192 * config/alpha/alpha.c (some_operand): Accept HIGH.
13193 (input_operand): Likewise; accept simple references to globals.
13194 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13195 (alpha_const_double_ok_for_letter_p): Likewise.
13196 (alpha_extra_constraint): Likewise.
13197 (alpha_preferred_reload_class): Likewise. Do not force
13198 symbolic constants to memory.
13199 (alpha_legitimate_address_p): Accept simple references
13200 to small_symbolic_operand.
13201 (alpha_legitimize_address): New arg scratch. Be prepared to be
13202 called when no_new_pseudos. Emit simple symbolic references.
13203 Split integers into low, high, and rest.
13204 (alpha_expand_mov): Use alpha_legitimize_address.
13205 (some_small_symbolic_mem_operand): New.
13206 (split_small_symbolic_mem_operand): New.
13207 * config/alpha/alpha-protos.h: Update.
13208 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
13209 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13210 (EXTRA_CONSTRAINT): Likewise.
13211 (PREFERRED_RELOAD_CLASS): Likewise.
13212 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
13213 (PREDICATE_CODES): Update.
13214 * config/alpha/alpha.md: New post-reload splitters to convert
13215 simplfied symbolic operands to the form that references $29.
13216 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
13217 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
13218
13219 2002-01-03 Richard Henderson <rth@redhat.com>
13220
13221 * local-alloc.c (function_invariant_p): Update commentary.
13222
13223 2002-01-04 H.J. Lu <hjl@gnu.org>
13224
13225 * toplev.c (rest_of_compilation): Fix a typo when calling
13226 cleanup_cfg.
13227
13228 2002-01-03 Kazu Hirata <kazu@hxi.com>
13229
13230 * c-common.c: Fix formatting.
13231 * diagnostic.c: Likewise.
13232 * doloop.c: Likewise.
13233 * dwarf2out.c: Likewise.
13234
13235 2002-01-03 Kazu Hirata <kazu@hxi.com>
13236
13237 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
13238 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
13239
13240 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13241
13242 * cpperror.c: Update comments and copyright.
13243 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
13244 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
13245
13246 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13247
13248 * collect2.c (main): Use strcmp when testing for "-shared".
13249
13250 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13251
13252 * cppmacro.c: Don't include intl.h. Update comments.
13253 (new_number_token): Allocate enough buffer for 64-bit unsigned
13254 integers; update prototype.
13255 * cppmain.c: Update comments.
13256
13257 2002-01-03 William Cohen <wcohen@redhat.com>
13258
13259 * function.h (struct function): Add profile.
13260 (current_function_profile): New.
13261 doc/extend.texi: Update documentation.
13262 * final.c (final_start_function): Use current_function_profile
13263 instead of profile_flag.
13264 (profile_after_prologue): Likewise.
13265 * function.c (expand_function_start): Likewise.
13266 (expand_function_start): Likewise.
13267 * config/alpha/alpha.c (direct_call_operand):
13268 (alpha_does_function_need_gp): Likewise.
13269 (alpha_expand_prologue): Likewise.
13270 * config/arm/arm.c (arm_expand_prologue): Likewise.
13271 thumb_expand_prologue: Likewise.
13272 * config/d30v/d30v.c (d30v_stack_info): Likewise.
13273 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
13274 (fr30_expand_prologue): Likewise.
13275 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
13276 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
13277 * config/i386/i386.h (FINALIZE_PIC): Likewise.
13278 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
13279 * config/i960/i960.c (i960_output_function_prologue): Likewise.
13280 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13281 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
13282 (m32r_expand_prologue): Likewise.
13283 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
13284 (m88k_expand_prologue): Likewise.
13285 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
13286 * config/mips/mips.c (compute_frame_size): Likewise.
13287 (mips_expand_prologue): Likewise.
13288 (mips_can_use_return_insn): Likewise.
13289 * config/pa/elf.h (ASM_FILE_START): Likewise.
13290 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13291 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13292 * config/pa/som.h (ASM_FILE_START): Likewise.
13293 * config/romp/romp.c (romp_using_r14): Likewise.
13294 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
13295 (rs6000_stack_info): Likewise.
13296 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13297 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
13298 * config/v850/v850.c (compute_register_save_size): Likewise.
13299
13300 2002-01-03 Jakub Jelinek <jakub@redhat.com>
13301
13302 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
13303 gen_lowpart_common fails, use gen_lowpart_SUBREG.
13304
13305 2002-01-03 Turly O'Connor <turly@apple.com>
13306
13307 * darwin.c (machopic_output_possible_stub_label): Don't generate
13308 stub routines for pseudo-stubs which we've just defined.
13309
13310 2002-01-03 Kazu Hirata <kazu@hxi.com>
13311
13312 * builtins.c: Fix formatting.
13313 * c-typeck.c: Likewise.
13314 * combine.c: Likewise.
13315 * expr.c: Likewise.
13316 * loop.c: Likewise.
13317
13318 2002-01-03 Andreas Schwab <schwab@suse.de>
13319
13320 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
13321 and return true if _cpp_push_next_buffer pushed a new include
13322 file.
13323 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
13324 _cpp_pop_file_buffer did not push a new file.
13325 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
13326
13327 2002-01-02 Eric Christopher <echristo@redhat.com>
13328
13329 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
13330 FIND_REG_INC_NOTE call. Update copyright.
13331 * loop.c (canonicalize_condition): Ditto.
13332 * reorg.c (delete_scheduled_jump): Ditto.
13333
13334 2002-01-03 Kazu Hirata <kazu@hxi.com>
13335
13336 * gcse.c: Fix formatting.
13337
13338 2002-01-03 Graham Stott <grahams@redhat.com>
13339
13340 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
13341 forward defs for struct tags rtx_def, union_tree, rtvec_def
13342 also output corresponding typedefs for rtx, tree, and rtvec.
13343
13344 * system.h: Move forward defs for struct tags rtx_def, union_tree,
13345 rtvec_def along with corresponding typedefs for rtx, tree, and
13346 rtvec to config.h, hconfig.h, tconfig.h.
13347
13348 2002-01-03 Graham Stott <grahams@redhat.com>
13349
13350 * tree.h: Update copyright date.
13351 (IS_EXPR_CODE_CLASS): Add parenthesis.
13352 (TREE_SET_CODE): Add whitespace.
13353 (TREE_CHECK): Add parenthesis.
13354 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
13355 (CST_OR_CONSTRUCTOR_CHECK):
13356 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
13357 (TREE_SYMBOL_REFERENCED): Whitespace.
13358 (INT_CST_LT): Likewise.
13359 (INT_CST_LT_UNSIGNED): Likewise.
13360 (tree_real_cst): Unwrap comment.
13361 (tree_string): Likewise.
13362 (tree_complex): Likewise.
13363 (IDENTIFIER_POINTER): correct cast.
13364 (SAVE_EXPR_CONTEXT): Whitespace.
13365 (EXPR_WFL_FILENAME_NODE): Likewise.
13366 (EXPR_WFL_FILENAME): Remove parenthesis.
13367 (DECL_ORIGIN): Add parenthesis.
13368 (DECL_FROM_INLINE): Use NULL_TREE.
13369 (build_int_2): Whitespace.
13370 (build_type_variant): Add parenthesis.
13371
13372 * gcc/jcf-parse.c: Update copyright date.
13373 (yyparse): Constify resource_filename.
13374
13375 2002-01-03 Graham Stott <grahams@redhat.com>
13376
13377 * rtl.h: Update copyright date.
13378 (RTL_CHECK1): Wrap long line.
13379 (RTL_CHECK2): Likewise.
13380 (RTL_CHECKC1): Wrap long line and whitespace.
13381 (RTL_CHECKC2): Likewise.
13382 (XWINT): Whitespace.
13383 (XINT): Likewise.
13384 (XSTR): Likewise.
13385 (XEXP): Likewise.
13386 (XVEC): Likewise.
13387 (XMODE): Likewise.
13388 (XBITMAP): Likewise.
13389 (XTREE): Likewise.
13390 (XBBDEF): Likewise.
13391 (XTMPL): Likewise.
13392 (X0WINT): Likewise.
13393 (X0INT):Likewise.
13394 (X0UINT): Likewise.
13395 (X0STR): Likewise.
13396 (X0EXP): Likewise.
13397 (X0VEC): Likewise.
13398 (X0MODE): Likewise.
13399 (X0BITMAP): Likewise.
13400 (X0TREE): Likewise.
13401 (X0BBDEF): Likewise.
13402 (X0ADVFLAGS): Likewise.
13403 (X0CSELIB): Likewise.
13404 (X0MEMATTR): Likewise.
13405 (XCWINT): Likewise.
13406 (XCINT): Likewise.
13407 (XCUINT): Likewise.
13408 (XCSTR): Likewise.
13409 (XCEXP): Likewise.
13410 (XCVEC): Likewise.
13411 (XCMODE): Likewise.
13412 (XCBITMAP): Likewise.
13413 (XCTREE): Likewise.
13414 (XCBBDEF): Likewise.
13415 (XCADVFLAGS): Likewise.
13416 (XCCSELIB): Likewise.
13417 (XC2EXP): Likewise.
13418 (INSN_UID): Likewise.
13419 (PREV_INSN): Likewise.
13420 (PATTERN): Likewise.
13421 (INSN_CODE): Likewise.
13422 (PUT_REG_NOTE_KIND): Likewise.
13423 (CODE_LABEL_NUMBER): Likewise.
13424 (NOTE_SOURCE_FILE): Likewise.
13425 (NOTE_BLOCK): Likewise.
13426 (NOTE_EH_HANDLER): Likewise.
13427 (NOTE_RANGE_INFO): Likewise.
13428 (NOTE_LIVE_INFO): Likewise.
13429 (NOTE_BASIC_BLOCK): Likewise.
13430 (NOTE_EXPECTED_VALUE): Likewise.
13431 (NOTE_LINE_NUMBER): Likewise.
13432 (LABEL_NAME): Likewise.
13433 (LABEL_NUSES): Likewise.
13434 (LABEL_ALTERNATE_NAME): Likewise.
13435 (ADDRESSOF_DECL): Likewise.
13436 (JUMP_LABEL): Likewise.
13437 (LABEL_NEXTREF): Likewise.
13438 (REGNO): Likewise.
13439 (ORIGINAL_REGNO: Likewise.
13440 (HARD_REGISTER_NUM_P): Add parenthesis.
13441 (SUBREG_REG): Whitespace.
13442 (SUBREG_BYTE): Likewise.
13443 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
13444 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
13445 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
13446 (ASM_OPERANDS_INPUT_VEC): Likewise.
13447 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
13448 (ASM_OPERANDS_INPUT): Likewise.
13449 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
13450 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
13451 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
13452 (ASM_OPERANDS_INPUT_MODE): Likewise.
13453 (ASM_OPERANDS_SOURCE_FILE): Likewise.
13454 (ASM_OPERANDS_SOURCE_LINE): Likewise.
13455 (MEM_SET_IN_STRUCT_P): Minor reformat.
13456 (TRAP_CONDITION): Whitespace.
13457 (TRAP_CODE): Likewise.
13458 (COND_EXEC_TEST): Likewise.
13459 (COND_EXEC_CODE): Likewise.
13460 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
13461 (PHI_NODE_P): Add parenthesis.
13462 (plus_constant): Whitespace and add parenthesis.
13463
13464 2002-01-03 Kazu Hirata <kazu@hxi.com>
13465
13466 * config/avr/avr.c: Fix comment typos.
13467 * config/c4x/c4x.md: Likewise.
13468 * config/dsp16xx/dsp16xx.h: Likewise.
13469 * config/dsp16xx/dsp16xx.md: Likewise.
13470 * config/i386/i386.md: Likewise.
13471 * config/ia64/ia64.c: Likewise.
13472 * config/m32r/m32r.h: Likewise.
13473 * config/m68hc11/m68hc11.md: Likewise.
13474 * config/mmix/mmix.c: Likewise.
13475 * config/mn10200/mn10200.c: Likewise.
13476 * config/romp/romp.c: Likewise.
13477 * config/sh/sh.c: Likewise.
13478 * config/stormy16/stormy16.c: Likewise.
13479 * config/stormy16/stormy16.h: Likewise.
13480 * config/stormy16/stormy16.md: Likewise.
13481
13482 2002-01-03 Graham Stott <grahams@redhat.com>
13483
13484 * loop.h: Update copyright date.
13485 (LOOP_MOVABLES): Fix typo.
13486 (LOOP_REGS): Likewise.
13487 (LOOP_IVS): Likewise.
13488
13489 2002-01-03 Graham Stott <grahams@redhat.com>
13490
13491 * cppinit.c: Update copyright date.
13492 Don't include output.h
13493 * Makefile.in: Update copyright date.
13494 Update dependency.
13495
13496 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
13497
13498 PR c/5226
13499 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
13500 (-pthread) Add to RS/6000 options.
13501
13502 2002-01-02 Kazu Hirata <kazu@hxi.com>
13503
13504 * except.c: Fix comment typos.
13505 * loop.c: Likewise.
13506 * varasm.c: Likewise.
13507 * doc/tm.texi: Fix a typo.
13508
13509 2002-01-02 Jakub Jelinek <jakub@redhat.com>
13510
13511 * c-typeck.c (output_init_element): Allow initializing static storage
13512 duration objects with compound literals.
13513
13514 2002-01-02 Richard Henderson <rth@redhat.com>
13515
13516 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
13517 after abusing it.
13518
13519 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13520
13521 * gcc.c (default_compilers): Const-ify.
13522 * mips-tdump.c (stab_names): Likewise.
13523 * mips-tfile.c (map_coff_types, map_coff_storage,
13524 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
13525 pseudo_ops_t, pseudo_ops): Likewise.
13526 * protoize.c (default_include): Likewise
13527
13528 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
13529 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
13530 Add array size in declaration.
13531 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
13532 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
13533 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
13534 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
13535 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
13536 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
13537 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
13538 emtens, make_nan): Const-ify.
13539 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
13540 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
13541
13542 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
13543
13544 * config.gcc (ia64-*-*): Set extra_headers.
13545 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
13546 * config/alpha/t-osf: Remove.
13547 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
13548
13549 2002-01-02 David Edelsohn <edelsohn@gnu.org>
13550
13551 * config/rs6000/t-aix43: Revert previous change.
13552
13553 2002-01-02 Jason Merrill <jason@redhat.com>
13554
13555 * c-decl.c (c_expand_body): Call outlining_inline_function when
13556 emitting an inline function out of line.
13557
13558 2002-01-02 Richard Henderson <rth@redhat.com>
13559
13560 * dwarf2out.c (limbo_die_node): Add created_for member.
13561 (new_die): New argument created_for. Update all callers.
13562 (mark_limbo_die_list): New.
13563 (dwarf2out_init): Register limbo_die_list as a root.
13564 (dwarf2out_finish): Force insert limbo dies into their function
13565 context.
13566
13567 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
13568
13569 PR c++/5089
13570 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
13571
13572 2002-01-02 Kazu Hirata <kazu@hxi.com>
13573
13574 * config/h8300/fixunssfsi.c: Update copyright.
13575 Fix comment typos.
13576 Fix formatting.
13577 * config/h8300/h8300.c: Update copyright.
13578 Eliminate warnings.
13579
13580 2002-01-02 Kazu Hirata <kazu@hxi.com>
13581
13582 * config/romp/romp.c: Fix comment formatting.
13583 * config/romp/romp.h: Likewise.
13584 * config/romp/romp.md: Likewise.
13585 * config/s390/s390.c: Likewise.
13586 * config/stormy16/stormy16.c: Likewise.
13587 * config/stormy16/stormy16.h: Likewise.
13588
13589 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
13590
13591 * c-common.h (genrtl_expr_stmt_value): Declare.
13592 * c-semantics.c (genrtl_goto_stmt): Redirect to...
13593 (genrtl_goto_stmt_value): ... this new function. Pass new
13594 argument down to expand_expr_stmt_value, taking
13595 TREE_ADDRESSABLE into account.
13596 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
13597 STMT_EXPR as addressable, i.e., one whose result we want.
13598 * expr.c (expand_expr): Don't save expression statement value
13599 of labeled_blocks or loop_exprs.
13600 * stmt.c (expand_expr_stmt): Redirect to...
13601 (expand_expr_stmt_value): ... this new function. Use new
13602 argument to tell whether to save expression value.
13603 (expand_end_stmt_expr): Reset last_expr_type and
13604 last_expr_value if we don't have either.
13605 * tree-inline.c (declare_return_variable): Mark its use
13606 statement as addressable.
13607 * tree.h: Document new use of TREE_ADDRESSABLE.
13608 (expand_expr_stmt_value): Declare.
13609
13610 2002-01-01 Tom Rix <trix@redhat.com>
13611
13612 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
13613 rs6000_emit_allocate_stack.
13614
13615 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
13616
13617 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
13618 ${srcdir}/ginclude/ to every entry in extra_headers.
13619 * configure: Regenerate.
13620 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
13621 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
13622 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
13623 * ginclude/proto.h: Rename to config/convex/proto.h.
13624
13625 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13626
13627 * attribs.c (handle_vector_size_attribute): Use host_integerp
13628 and tree_int_cst; remove warnings.
13629 * caller-save.c (insert_restore): Add cast to get rid of warning.
13630 (insert_save): Likewise.
13631 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
13632 * regmove.c (find_matches): Add temporary var to kill a warning.
13633
13634 2002-01-01 Douglas B Rupp <rupp@gnat.com>
13635
13636 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
13637 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
13638 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
13639 (vms-dwarf2eh.o): Add Makefile rule.
13640 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
13641 * config/alpha/vms-dwarf2eh.asm: New file.
13642
13643 * gcc.c (delete_if_ordinary): Delete all versions.
13644
13645 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
13646
13647 * config/mmix/mmix.md: Update FIXME to not mention
13648 define_constants.
13649 (MMIX_rJ_REGNUM): New define_constants constant.
13650 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
13651 "*movdicc_real"): Adjust contraints formatting.
13652 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
13653 for branch prediction.
13654 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
13655 output template.
13656 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
13657 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
13658 number. Delete related FIXMEs.
13659 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
13660 from number to MMIX_rJ_REGNUM.
13661 (TARGET_MASK_BRANCH_PREDICT): New.
13662 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
13663 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
13664 value. Add -mbranch-predict and -mno-branch-predict.
13665 (TARGET_VERSION): Drop date.
13666 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
13667 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
13668 for finding out global symbols.
13669 (mmix_asm_output_labelref): Revert condition for global symbol.
13670 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
13671 (mmix_print_operand_punct_valid_p): A '+' is valid.
13672
13673 See ChangeLog.6 for earlier changes.