1 2002-05-10 Richard Henderson <rth@redhat.com>
3 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
4 Convert integers constants as needed. Replace "nwords" field with
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".
10 2002-05-10 Roger Sayle <roger@eyesopen.com>
12 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
13 into the equivalent (signed char)c > 0.
15 2002-05-10 Janis Johnson <janis187@us.ibm.com>
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).
24 2002-05-10 David S. Miller <davem@redhat.com>
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.
34 * cse.c (rtx_cost): Remove multiplication by power of 2 special
37 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
40 . as N64/N32 libgcc_s.so subdirs.
42 2002-05-10 David S. Miller <davem@redhat.com>
44 * config/sparc/sparc.md: Use define_constants for unspec numbers.
46 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
48 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
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.
57 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
59 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
60 before using SYMBOL_REF_FLAG (addr).
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.
68 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
70 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
72 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
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.
94 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
96 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
98 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
100 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
101 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
103 2002-05-09 Jakub Jelinek <jakub@redhat.com>
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.
110 2002-05-09 Jakub Jelinek <jakub@redhat.com>
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
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.
122 2002-05-09 Richard Henderson <rth@redhat.com>
124 * config/ia64/ia64.md: Use define_constants for unspec numbers.
125 * config/ia64/ia64.c: Likewise.
127 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
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.
134 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
136 * athlon.md, k6.md, pentium.md, ppro.md): New files.
137 * i386.md: Move scheduling information into new files.
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
144 (sbb insns): Explicitly set pent_pair attribute on a couple
145 that were missing it.
147 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
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
154 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
156 * tree.h (preserve_data, object_permanent_p, type_precision):
159 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
161 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
162 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
164 * cpp.texi: Update for removal of obsolete features.
166 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
167 Jeffrey A Law (law@redhat.com)
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.
177 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
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.
183 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
184 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
186 * final.c (end_final): Use C trees to output data structures for profiling.
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
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
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
218 (end_branch_prob): Removed da_file checking, done in get_exec_counts
220 * gcov.texi: Updated information about gcov file format.
222 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
224 * sbitmap.c: Fix formatting.
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.
235 * ssa-ccp.c: Likewise.
236 * ssa-dce.c: Likewise.
238 * stor-layout.c: Likewise.
239 * stringpool.c: Likewise.
241 2002-05-09 David S. Miller <davem@redhat.com>
243 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
245 2002-05-07 David S. Miller <davem@redhat.com>
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.
253 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
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.
263 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
265 * read-rtl.c: Fix formatting.
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.
276 * rtl-error.c: Likewise.
278 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
280 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
281 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
283 2002-05-08 Bernd Schmidt <bernds@redhat.com>
285 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
286 use __SSE2__ macro instead.
287 * config/i386/xmmintrin.h: Likewise.
289 2002-05-08 Janis Johnson <janis187@us.ibm.com>
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.
297 2002-05-08 Robert Spier <rspier@pobox.com>
298 Neil Booth <neil@daikokuya.demon.co.uk>
301 * cppfiles.c (handle_missing_header): Don't do anything
302 different for <> includes.
304 * cppopts.texi: Update documentation for -MG.
306 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
308 * cpplex.c (cpp_interpret_charconst): Truncate as well as
311 * cpp.texi: Clarify multichar charconst valuation.
313 2002-05-08 Mark Mitchell <mark@codesourcery.com>
315 * doc/invoke.texi: Document -mwindiss option.
317 2002-05-08 Jason Merrill <jason@redhat.com>
319 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
321 * dwarf2out.c (gen_type_die): Abort on broken recursion.
324 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
327 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
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.
334 2002-05-08 Mark Mitchell <mark@codesourcery.com>
337 * varasm.c (mark_weak): New function.
338 (merge_weak): Use it. Do not call declare_weak.
339 (declare_weak): Use merge_weak.
341 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
343 * cse.c (dead_libcall_p): Update counts.
344 (delete_trivially_dead_insns): Update call of dead_libcall_p.
346 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
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.
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.
370 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
371 (fixup_reorder_chain): properly handle edges to exit block.
373 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
374 Jan Hubicka <jh@suse.cz>
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
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):
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.
404 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
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.
411 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
413 * toplev.c: Fix formatting.
415 2002-05-07 Janis Johnson <janis187@us.ibm.com>
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.
421 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
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.
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.
439 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
441 2002-05-07 Mark Mitchell <mark@codesourcery.com>
443 * fixinc/inclhack.def (windiss_math1): New fix.
444 (windiss_math2): Likewise.
445 (windiss_valist): Likewise.
446 * fixinc/fixincl.x: Regenerated.
448 2002-05-07 Andreas Jaeger <aj@suse.de>
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.
454 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
456 * pa.c (hppa_profile_hook): Use force_reg to get the address
457 of the profile hook into an appropriate pseudo register.
459 2002-05-07 Mark Mitchell <mark@codesourcery.com>
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
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.
478 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
480 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
482 2002-05-06 David S. Miller <davem@redhat.com>
484 * config/sparc/sparc.md (shift insns): Do not mask off
485 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
488 2002-05-06 Richard Henderson <rth@redhat.com>
491 * expr.c (highest_pow2_factor_for_type): New.
492 (expand_assignment): Use it.
494 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
496 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
498 ("altivec_mfvscr"): Same.
500 2002-05-06 Janis Johnson <janis187@us.ibm.com>
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.
513 2002-05-06 Janis Johnson <janis187@us.ibm.com>
515 * doc/rtl.texi (Flags): Update to reflect current usage.
517 2002-05-06 Roger Sayle <roger@eyesopen.com>
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.
526 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
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.
542 * cpp.texi: Update documentation.
544 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
546 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
547 Fix typo in usage of allof instead of unit.
549 2002-05-06 Richard Henderson <rth@redhat.com>
551 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
552 and any jump or call for IN.
554 2002-05-06 Bernd Schmidt <bernds@redhat.com>
556 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
558 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
560 2002-05-06 Roger Sayle <roger@eyesopen.com>
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.
568 2002-05-06 Jeff Law <law@redhat.com>
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.
578 2002-05-06 Catherine Moore <clm@redhat.com>
580 * config/v850/v850.c (compute_register_save_size): Make sure
581 to count all of the registers that will be saved.
583 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
585 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
587 2002-05-06 David S. Miller <davem@redhat.com>
589 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
590 allow result to overlap input operands in memory.
592 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
595 * cpp.texi: Update multichar charconst docs.
597 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
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.
604 2002-05-05 Jakub Jelinek <jakub@redhat.com>
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.
613 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
615 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
617 2002-05-05 Jakub Jelinek <jakub@redhat.com>
620 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
622 2002-05-05 Richard Henderson <rth@redhat.com>
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.
633 * config/alpha/ev4.md: New.
634 * config/alpha/ev5.md: New.
635 * config/alpha/ev6.md: New.
637 2002-05-05 David S. Miller <davem@redhat.com>
639 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
641 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
643 * cse.c: Fix formatting.
644 * emit-rtl.c: Likewise.
646 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
648 * genautomata.c (initiate_states): Add additional guard to
649 initialize `units_array'.
651 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
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
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
675 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
676 automaton `ultrasparc3_1'.
678 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
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.
689 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
691 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
693 2002-05-04 David S. Miller <davem@redhat.com>
695 * config/sparc/linux.h, config/sparc/linux64.h
696 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
698 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
700 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
702 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
705 2002-05-05 Tim Josling <tej@melbpc.org.au>
707 * treelang; New directory for new sample language treelang.
709 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
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
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.
725 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
727 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
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
737 2002-05-04 Bernd Schmidt <bernds@redhat.com>
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
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
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):
760 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
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
801 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
802 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
804 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
806 * dwarf2out.c: Fix formatting.
807 * varasm.c: Likewise.
809 2002-05-04 David Edelsohn <edelsohn@gnu.org>
812 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
813 clobber and use result as temporary value.
815 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
817 * expr.c (force_operand): Use expand_simple_* to handle more
820 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
822 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
824 (lex_charconst): Update for change in prototype of
825 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
827 * cpphash.h (BITS_PER_CPPCHAR_T): New.
828 * cppinit.c (cpp_create_reader): Initialize them for no
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.
843 2002-05-03 David S. Miller <davem@redhat.com>
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
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.
858 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
859 checks on it, always defined for Sparc.
861 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
862 Tweak, and add more detailed comments.
864 2002-05-03 Zack Weinberg <zack@codesourcery.com>
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.
872 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
874 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
875 (CPP_SUBTARGET_SPEC): Define.
876 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
878 (CPP_SPEC): Redefine to include %(cpp_subtarget).
880 2002-05-03 David S. Miller <davem@redhat.com>
882 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
883 * target.h (struct gcc_target): Delete cycle_display member.
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.
890 2002-05-03 Richard Henderson <rth@redhat.com>
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.
897 2002-05-03 David S. Miller <davem@redhat.com>
899 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
902 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
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.
912 2002-05-03 David S. Miller <davem@redhat.com>
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.
928 2002-05-03 Richard Henderson <rth@redhat.com>
930 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
931 * recog.h: Declare them.
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.
937 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
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
943 (CPP_ARCH64_SPEC): Likewise.
944 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
945 (NO_BUILTIN_SIZE_TYPE): Undef.
947 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
949 * genautomata.c (min_issue_delay_pass_states): Change return type
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.
956 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
958 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
961 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
963 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
966 2002-05-03 Richard Henderson <rth@redhat.com>
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.
974 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
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.
981 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
983 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
984 (LINK_SPEC): Undef before defining.
986 2002-05-03 Jakub Jelinek <jakub@redhat.com>
989 * tradcpp.c (fixup_newlines): New.
990 (main, finclude): Use it.
992 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
994 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
995 * config/mips/mips.c (mips_unique_section): Strip encoding from
998 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1000 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1003 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
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.
1013 2002-05-03 Jakub Jelinek <jakub@redhat.com>
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.
1021 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1023 * config/h8300/crti.asm: Remove trailing spaces.
1024 * config/h8300/h8300.c: Likewise.
1025 * config/h8300/lib1funcs.asm: Likewise.
1027 2002-05-02 Jason Merrill <jason@redhat.com>
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.
1035 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1037 * regrename.c: Fix formatting.
1040 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1042 * i386.md (attribute memory): Handle compares properly.
1044 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1046 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1049 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1051 * function.c: Fix formatting.
1053 2002-05-02 Jan Hubicka <jh@suse.cz>
1055 * haifa-sched.c (schedule_insn): Print table of instructions and
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
1063 2002-05-02 Richard Henderson <rth@redhat.com>
1065 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1066 emitted by cycle_display.
1068 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1070 * doc/install.texi (*-*-freebsd*): Update to latest status.
1072 2002-05-02 Jakub Jelinek <jakub@redhat.com>
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.
1079 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1081 * genattrtab.c (write_function_unit_info): Add a dummy element
1082 when num_units == 0.
1084 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1086 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1087 TYPE_MODE (double_type_node) instead of DFmode.
1089 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1091 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1093 * toplev.c (rest_of_compilation): Revert Richard's patch.
1095 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1097 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1099 2002-05-02 Catherine Moore <clm@redhat.com>
1101 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1103 2002-05-02 Kazu Hirata <kazu@hxi.com>
1105 * combine.c: Fix comment typos.
1107 * genautomata.c: Likewise.
1111 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1113 * doc/install.texi: State GNAT version requirements.
1115 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
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.
1121 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1123 * gcc.dg/altivec-8.c: New.
1125 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1126 PRE_INC and PRE_DEC for altivec modes.
1128 2002-05-01 Bruce Korb <bkorb@gnu.org>
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
1134 2002-05-01 Jeff Law <law@redhat.com>
1136 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1139 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1141 * dbxout.c (dbxout_type): Emit size information for range types,
1142 as well, but only when using GDB extensions.
1144 2002-05-01 Richard Henderson <rth@redhat.com>
1146 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1147 target-independent gnu binutils date test.
1149 2002-05-01 Richard Henderson <rth@redhat.com>
1151 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1152 info before expunging the block.
1154 2002-05-01 Jakub Jelinek <jakub@redhat.com>
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.
1160 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1162 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1163 A29k configurations.
1164 * doc/install.texi: Update to match.
1166 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1169 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1170 for duplicates. Always loop over whole list.
1172 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1174 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1176 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1178 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1181 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1183 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1185 2002-05-01 David Edelsohn <edelsohn@gnu.org>
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.
1195 (fix_trunctfdi2): Same.
1196 (fix_trunctfsi2): Same.
1198 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
1200 * doc/install.texi: Update Texinfo version requirement
1203 2002-05-01 Jakub Jelinek <jakub@redhat.com>
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.
1213 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
1215 * gcc.dg/altivec-7.c: New.
1217 * config/rs6000/altivec.h: Cleanup.
1219 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
1221 * doc/invoke.texi (Option Summary): Add -mvrsave=.
1222 (RS/6000 and PowerPC Options): Document -mvrsave=.
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.
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.
1236 2002-04-30 Richard Henderson <rth@redhat.com>
1239 * toplev.c (rest_of_compilation): Don't run cross-jump before
1242 2002-04-30 Tom Rix <trix@redhat.com>
1244 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
1245 check which_alternative.
1247 2002-04-30 Kazu Hirata <kazu@hxi.com>
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.
1257 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
1266 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
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
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
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.
1289 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
1292 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
1294 2002-04-30 Richard Henderson <rth@redhat.com>
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.
1306 2002-04-30 Janis Johnson <janis187@us.ibm.com>
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.
1311 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
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.
1324 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
1326 * pa.c (override_options): Default to PA8000 scheduling.
1327 * doc/invoke.texi (HP-PA options): Mention newly added 7300
1328 scheduling parameter.
1330 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
1331 handling of double precision multiplies.
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.
1338 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1340 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
1341 mips. Add two missing commas.
1343 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
1345 * doc/contrib.texi (Contributors): Update Paolo Carlini's
1346 and Benjamin Kosnik's entries.
1348 2002-04-29 David S. Miller <davem@redhat.com>
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.
1355 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1357 * combine.c (find_split_point): Use gen_int_mode.
1359 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
1361 Merging code from dfa-branch:
1363 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
1365 * genautomata.c (output_reserv_sets): Fix typo.
1367 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
1369 * genautomata.c (output_reserv_sets): Remove
1370 next_cycle_output_flag.
1372 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
1374 * sched-rgn.c (init_ready_list): Make the DFA code handle
1375 USE/CLOBBER insns in the same way as the traditional
1377 (new_ready): Similarly..
1379 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
1381 * haifa-sched.c (schedule_block): Change the DFA state only after
1384 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
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
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
1400 2002-03-30 David S. Miller <davem@redhat.com>
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
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.
1425 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
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.
1431 * doc/md.texi: Add reference for automaton based pipeline
1434 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
1436 * doc/passes.texi: Add missed information about genattrtab.
1438 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
1440 * genautomata.c (output_automata_list_transition_code): Check
1441 automata_list on NULL.
1443 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
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.
1450 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
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
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):
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.
1477 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
1479 * genautomata.c (add_excls, add_presence_absence): Check that
1480 cpu units in the sets belong the same automaton.
1482 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
1483 about that cpu units in the sets belong the same automaton.
1485 * doc/md.texi: Ditto.
1487 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
1488 Nitin Gupta <niting@noida.hcltech.com>
1490 * config/sh/sh.c (sh_use_dfa_interface): New function.
1492 (sh_issue_rate): New Function.
1493 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
1494 TARGET_SCHED_ISSUE_RATE: define.
1496 * config/sh/sh.md: Add DFA based pipeline description for SH4.
1498 (define_attr insn_class): New attribute used for DFA
1500 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
1501 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
1502 cmpeqdi_t): Likewise.
1504 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
1505 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
1507 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
1509 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1511 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
1514 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1516 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
1517 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
1519 (output_dfa_start_func): Initiate new variable insn_codes_length,
1520 (write_automata): Output definition of the new variable.
1522 2001-10-02 David S. Miller <davem@redhat.com>
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
1530 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
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.
1536 2001-09-28 David S. Miller <davem@redhat.com>
1538 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
1539 ultrasparc and 3 for other multi-issue sparcs.
1541 2001-09-27 David S. Miller <davem@redhat.com>
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.
1547 2001-09-25 David S. Miller <davem@redhat.com>
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):
1566 2001-09-24 David S. Miller <davem@redhat.com>
1568 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
1569 ready->vec[foo] not ready[foo].
1571 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1573 * doc/md.texi: Correct examples for define_insn_reservations
1576 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1578 * genautomata.c (create_automata): Print message about creation of
1580 (generate): Remove printing meease about creation of
1583 2001-09-05 David S. Miller <davem@redhat.com>
1585 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
1586 * config/sparc/linux64.h: Likewise.
1588 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
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.
1594 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
1597 * sched-vis.c (get_visual_tbl_length): Ditto.
1599 2001-08-27 Richard Henderson <rth@redhat.com>
1601 * genattr.c (main): Emit state_t even when not doing scheduling.
1603 2001-08-27 Richard Henderson <rth@redhat.com>
1605 * genautomata.c (expand_automata): Always create a description.
1607 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
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
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.
1618 * genattrtab.h: New file.
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
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.
1630 * genautomata.c: New file.
1632 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
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.
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
1646 (TARGET_SCHED): Use the new macros.
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.
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
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
1672 (ready_element, ready_remove): New functions for automaton
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.
1687 * sched-rgn.c: Include target.h.
1688 (init_ready_list, new_ready, debug_dependencies): Add new code for
1689 automaton pipeline interface.
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.
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.
1703 * doc/md.texi: Description of automaton based model.
1705 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
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
1715 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
1716 MAX_DFA_ISSUE_RATE): New macro descriptions.
1718 * doc/contrib.texi: Add dfa based scheduler contribution.
1720 * doc/gcc.texi: Add more information about genattrtab.
1722 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1724 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
1725 adjust_address_nv call.
1727 2002-04-29 Janis Johnson <janis187@us.ibm.com>
1729 * doc/install.texi (Testing): Provide additional information, and
1730 a stronger encouragement, for running the testsuites.
1732 2002-04-29 DJ Delorie <dj@redhat.com>
1734 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
1735 given in upper case.
1737 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
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.
1744 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
1746 * toplev.c (f_options): Add "profile" switch so that
1747 -fno-profile can be used to disable -p.
1749 2002-04-29 Bernd Schmidt <bernds@redhat.com>
1751 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
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.
1757 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
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.
1795 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
1797 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
1799 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1801 * doc/contrib.texi (Contributors): Add Paolo Carlini and
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.
1807 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1809 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
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.
1816 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1818 * i386.c (dbx64_register_map): Fix typo.
1820 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
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
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
1832 2002-04-28 David S. Miller <davem@redhat.com>
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):
1841 2002-04-27 David S. Miller <davem@redhat.com>
1844 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
1847 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
1848 including signal.h and sys/ucontext.h, not needed.
1850 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
1852 * varasm.c (output_constant_def): Correct test for not calling
1853 ENCODE_SECTION_INFO for INTEGER_CST.
1855 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
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.
1867 2002-04-28 Richard Henderson <rth@redhat.com>
1870 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
1871 (ggc_mark_rtx_children): New.
1873 2002-04-28 Jakub Jelinek <jakub@redhat.com>
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.
1880 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1883 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1884 result as temporary value.
1886 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1889 * toplev.c (rest_of_compilation): Only run regrename and copy
1890 propagation if optimizing.
1892 2002-04-28 Jakub Jelinek <jakub@redhat.com>
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).
1899 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
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.
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.
1923 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
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.
1933 2002-04-27 Kurt Garloff <garloff@suse.de>
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.
1942 2002-04-26 Richard Henderson <rth@redhat.com>
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.
1950 2002-04-26 Richard Henderson <rth@redhat.com>
1952 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1953 for fallthru search.
1955 2002-04-26 Eric Christopher <echristo@redhat.com>
1957 PR optimization/3700
1958 * config/mips/mips.c (mips_issue_rate): Define. New function.
1959 (TARGET_SCHED_ISSUE_RATE): Use.
1961 2002-04-25 David S. Miller <davem@redhat.com>
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.
1970 2002-04-26 Richard Henderson <rth@redhat.com>
1973 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1975 2002-04-26 Mark Mitchell <mark@codesourcery.com>
1978 * config/i386/i386.md (untyped_call): Return the value in a float
1979 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1982 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
1984 * tree.c (tree_int_cst_lt): Compare constants whose types differ
1985 in unsigned-ness correctly.
1987 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1989 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1990 portable runtime model.
1992 2002-04-26 Richard Henderson <rth@redhat.com>
1994 * c-parse.in (yyoverflow): Revert.
1996 2002-04-26 David Edelsohn <edelsohn@gnu.org>
1997 Richard Henderson <rth@redhat.com>
1999 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2000 result as temporary value.
2002 2002-04-26 Richard Henderson <rth@redhat.com>
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.
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.
2018 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2020 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2023 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
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.
2035 2002-04-25 Richard Henderson <rth@redhat.com>
2038 * c-parse.in (yyoverflow): New.
2040 2002-04-25 Richard Henderson <rth@redhat.com>
2043 * c-common.c (shorten_compare): Simplfy conditions leading to
2044 the generation of a warning.
2046 2002-04-25 Richard Henderson <rth@redhat.com>
2049 * expmed.c (extract_bit_field): Fall through to generic code rather
2050 than aborting on subreg special case.
2052 2002-04-25 David S. Miller <davem@redhat.com>
2054 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2055 for DECL being NULL.
2057 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2059 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2061 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2063 * c-decl.c (grokdeclarator): Remove outdated ??? note
2064 on invalid declaration of flexible array members.
2066 2002-04-25 Richard Henderson <rth@redhat.com>
2068 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2070 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2072 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2073 needed by the compiler, even if they are used as global regs.
2075 2002-04-25 Matt Hiller <hiller@redhat.com>
2077 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
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):
2084 2002-04-25 Matt Hiller <hiller@redhat.com>
2086 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
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.
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.
2104 (mips_char_to_class): Adjust comment to include coprocessor
2107 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2109 (mips_reg_names, mips_regno_to_class): Include coprocessor
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
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.
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
2126 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2127 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2129 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2130 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2132 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2133 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2136 * doc/tm.texi: Document feature.
2138 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2140 * integrate.c (function_attribute_inlinable_p): Simplify.
2141 Check the table pointer is not NULL.
2143 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2145 * doc/c-tree.texi: Fix typo in introduction.
2147 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
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.
2167 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2169 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2171 * loop.c (load_mems): Don't change the interface of called functions.
2173 * calls.c (expand_call): Take current_function_pretend_args_size
2174 into account when setting argblock for sibcalls.
2176 2002-04-24 Matt Hiller <hiller@redhat.com>
2178 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2181 * cpplex.c (skip_line_comment): Process comment one multibyte
2182 character at a time rather than one char at a time, if
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
2188 * cpplib.h (cppchar_t): Change to unsigned.
2190 2002-04-24 Richard Henderson <rth@redhat.com>
2193 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2196 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2198 * sh.c (sh_va_arg): If argument was passed by reference,
2199 dereference the pointer.
2201 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
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.
2209 * sh.md (casesi_shift_media): Add modes.
2211 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
2214 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
2216 * attribs.c (c_common_attribute_table): Move table and handlers
2218 (format_attribute_table, lang_attribute_table,
2219 lang_attribute_common): Remove.
2220 (init_attributes): Replace NULL pointers with pointers to the
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.
2263 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2264 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2266 2002-04-24 Jason Merrill <jason@redhat.com>
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.
2274 2002-04-24 Richard Henderson <rth@redhat.com>
2276 * config/mips/mips.md (movdi_usd): Renumber.
2278 2002-04-24 David S. Miller <davem@redhat.com>
2281 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2282 32-bit Sparc and current_function_returns_struct is true.
2284 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2286 * loop.c (canonicalize_condition): Use gen_int_mode.
2288 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
2290 * config/rs6000/altivec.h: Cleanup file. Add non individual
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.
2329 (vec_vexptefp): New.
2334 (vec_lde): Add vector float variant.
2339 (vec_vmhaddshs): New.
2361 (vec_vmladduhm): New.
2362 (vec_vmhraddshs): New.
2364 (vec_vmsummbm): New.
2365 (vec_vmsumuhm): New.
2366 (vec_vmsumshm): New.
2367 (vec_vmsumuhs): New.
2368 (vec_vmsumshs): New.
2377 (vec_vnmsubfp): New.
2395 (vec_vrsqrtefp): New.
2406 (vec_vspltisb): New.
2407 (vec_vspltish): New.
2408 (vec_vspltisw): New.
2433 (vec_vsum4ubs): New.
2434 (vec_vsum4sbs): New.
2435 (vec_vsum4shs): New.
2436 (vec_vsum2sws): New.
2447 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
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.
2455 2002-04-23 Zack Weinberg <zack@codesourcery.com>
2457 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
2460 2002-04-23 Tom Tromey <tromey@redhat.com>
2462 * gcc.c: Added --resource. For PR java/6314.
2464 2002-04-23 David O'Brien <obrien@FreeBSD.org>
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
2470 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2472 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
2474 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2476 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
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):
2484 2002-04-23 Roger Sayle <roger@eyesopen.com>
2486 * builtins.c (builtin_memset_gen_str): New function.
2487 (expand_builtin_memset): Optimize the case of constant length, but
2490 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
2492 * config/rs6000/altivec.h (vec_step): Remove extraneous
2494 (vec_ctu): Cast return.
2496 2002-04-23 Alan Modra <amodra@bigpond.net.au>
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.
2518 2002-04-22 Eric Christopher <echristo@redhat.com>
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.
2524 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
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.
2532 2002-04-22 Janis Johnson <janis187@us.ibm.com>
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.
2540 * cse.c (insert): Check rtx code before accessing flag.
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.
2553 2002-04-22 Tom Rix <trix@redhat.com>
2555 * expmed.c (init_expmed): Generate shifted constant once.
2557 2002-04-22 Zack Weinberg <zack@codesourcery.com>
2559 * c-lex.c (lex_charconst): Call convert to get constant in
2560 proper type; don't just smash the type field.
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
2569 2002-04-22 Richard Henderson <rth@redhat.com>
2571 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
2573 2002-04-22 Mark Mitchell <mark@codesourcery.com>
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.
2581 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
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.
2590 2002-04-22 Joel Sherrill <joel@OARcorp.com>
2592 * gthr-rtems.h: Correct prototypes to remove warnings.
2594 2002-04-22 Richard Henderson <rth@redhat.com>
2597 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
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).
2604 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
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.
2617 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
2619 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2621 * config/rs6000/altivec.h (vec_xor): Add variant for both args
2622 being vector signed int.
2624 (vec_xor): Add variant for both args being vector signed char.
2625 Remove redundant variant.
2628 2002-04-21 David S. Miller <davem@redhat.com>
2630 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
2631 compare mode in output RTL.
2633 2002-04-22 David Edelsohn <edelsohn@gnu.org>
2635 * config/rs6000/rs6000.c (rs6000_override_options): Correct
2636 style and formatting of previous patch.
2638 2002-04-22 Alan Modra <amodra@bigpond.net.au>
2640 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2641 flag_pic for ABI_AIX.
2643 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
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.
2658 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2660 * cppmacro.c (funlike_invocation_p): Don't step back
2663 2002-04-21 David Edelsohn <edelsohn@gnu.org>
2665 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
2668 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
2670 * doc/invoke.texi: Remove Chill references.
2671 * doc/gcc.texi: Update last modified date.
2673 2002-04-20 Kazu Hirata <kazu@hxi.com>
2675 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
2676 push and pop. Replace add.l with add.w.
2678 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2680 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
2681 multiply instructions for H8/300H case.
2683 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2685 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
2686 Bum three instructions from each routine.
2688 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
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):
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.
2717 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2718 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2720 2002-04-19 David S. Miller <davem@redhat.com>
2722 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
2723 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
2725 2002-04-19 Jakub Jelinek <jakub@redhat.com>
2727 PR optimization/3756
2728 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
2729 x = ((int) y < 0) ? cst1 : cst2.
2731 2002-04-19 Jakub Jelinek <jakub@redhat.com>
2734 * function.c: Reapply patch for c/6358.
2735 (expand_function_end): Copy decl_rtl's mode, not
2736 current_function_return_rtx mode.
2738 2002-04-19 Joel Sherrill <joel@OARcorp.com>
2740 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
2743 2002-04-19 Tom Tromey <tromey@redhat.com>
2745 * doc/install.texi (Specific): Update status of Solaris 2.8.
2748 2002-04-19 Andreas Schwab <schwab@suse.de>
2750 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
2751 (PUT_REAL): Restore old definition.
2753 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
2754 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2756 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
2757 binutils 2.11.2 and higher generate smaller binaries than Sun's
2760 2002-04-19 Mark Mitchell <mark@codesourcery.com>
2763 * toplev.c (rest_of_compilation): Do not defer functions for which
2764 TREE_SYMBOL_REFERENCED has already been set.
2766 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
2768 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
2771 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
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.
2792 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
2794 2002-04-18 Richard Henderson <rth@redhat.com>
2796 * function.c: Revert patch for c/6358.
2798 2002-04-18 Richard Henderson <rth@redhat.com>
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.
2804 2002-04-18 Richard Henderson <rth@redhat.com>
2806 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
2807 crash with no type for by-mode libcalls.
2809 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
2811 2002-04-18 Bob Wilson <bob.wilson@acm.org>
2813 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
2814 __xtensa_nonlocal_goto): Use a syscall instructions to flush
2815 the register windows.
2817 2002-04-18 Zack Weinberg <zack@codesourcery.com>
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.
2833 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
2835 2002-04-18 David S. Miller <davem@redhat.com>
2837 * config/sparc/sparc.h (BRANCH_COST): Define.
2839 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
2842 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
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.
2849 2002-04-18 Richard Henderson <rth@redhat.com>
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.
2857 2002-04-18 Richard Henderson <rth@redhat.com>
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.
2866 * config/ia64/ia64.md (trap, conditional_trap): New.
2868 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2871 * function.c (assign_parms): Assign hard current_function_return_rtx
2873 (expand_function_end): ...not here.
2875 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
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.
2889 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2891 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2893 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2894 TARGET_FLOAT_FORMAT blocks.
2896 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
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.
2902 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
2904 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2906 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
2908 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2911 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2913 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2914 instead of unsigned_type.
2916 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
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
2922 2002-04-18 Bernd Schmidt <bernds@redhat.com>
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.
2928 * combine.c (subst): Avoid trying to make a vector mode subreg of
2929 an integer constant.
2930 (gen_lowpart_for_combine): Likewise.
2932 2002-04-18 Roger Sayle <roger@eyesopen.com>
2933 Jakub Jelinek <jakub@redhat.com>
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
2940 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2943 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2946 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
2948 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2950 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
2952 * gcc.c (read_specs): Detect and fail if an attempt is made to
2953 rename a spec string to an already existing string.
2955 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2957 * config/s390/s390.c (legitimize_pic_address): Do not generate
2958 illegal address constant without CONST.
2960 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2962 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2963 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2965 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
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.
2972 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
2974 * doc/install.texi (Building): libgcj requires GNU make.
2976 2002-04-17 Jakub Jelinek <jakub@redhat.com>
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.
2987 2002-04-17 Zack Weinberg <zack@codesourcery.com>
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
2996 * unprotoize.c: Delete file.
2998 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
3000 * config/rs6000/altivec.h (vec_ld): Add array variants.
3004 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3005 Aldy Hernandez <aldyh@redhat.com>
3007 * config/rs6000/altivec.h: Define __ALTIVEC__.
3014 Add parentheses to all macro arguments.
3016 2002-04-16 Richard Henderson <rth@redhat.com>
3019 * except.c (remove_eh_handler): Insert inner regions at beginning
3020 of sibling chain. Refactor expressions.
3022 2002-04-16 Richard Henderson <rth@redhat.com>
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.
3030 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3032 2002-04-16 Richard Henderson <rth@redhat.com>
3034 * config/mips/mips.c (override_options): Don't override N32 for
3038 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3039 (HILO_delay): Set can_delay false.
3041 2002-04-16 Dale Johannesen <dalej@apple.com>
3043 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3044 instruction addresses.
3045 (rs6000_output_function_epilogue): Likewise.
3047 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3049 * c-parse.in (poplevel, compstmt_start,
3050 compstmt_primary_start): Add ending ';', in accordance
3053 2002-04-16 Richard Henderson <rth@redhat.com>
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.
3060 2002-04-16 Dale Johannesen <dalej@apple.com>
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.
3066 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3069 * config/s390/s390.md (mulsidi3): Set both subregs of the
3072 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3074 * config/rs6000/altivec.h (vec_addc): Type check.
3076 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3079 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3081 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3083 2002-04-15 Richard Henderson <rth@redhat.com>
3085 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3086 call_really_used_regs too.
3088 2002-04-15 Richard Henderson <rth@redhat.com>
3090 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3092 2002-04-15 David S. Miller <davem@redhat.com>
3094 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3097 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3100 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3101 CONST_VECTOR is { 0, ... 0 }.
3103 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3105 * doc/install.texi (Installing GCC: Configuration): Clarify
3106 the only supported ways to configure gcc.
3108 2002-04-15 Roland McGrath <roland@frob.com>
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.
3114 2002-04-16 Mark Mitchell <mark@codesourcery.com>
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.
3123 2002-04-15 Richard Henderson <rth@redhat.com>
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.
3135 2002-04-15 Mark Mitchell <mark@codesourcery.com>
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.
3144 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3146 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3147 (LONGLONG_STANDALONE): Define.
3149 2002-04-15 David S. Miller <davem@redhat.com>
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.
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):
3164 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
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.
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.
3185 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3187 * cpperror.c (print_location): Don't print include chain
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
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
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.
3231 2002-04-14 Andreas Schwab <schwab@suse.de>
3233 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
3235 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3237 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
3239 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3241 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
3244 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
3246 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
3248 2002-04-13 Joel Sherrill <joel@OARcorp.com>
3250 * config/sparc/t-elf: Enable v8 multilibs. Impacts
3251 sparc-elf and sparc-rtems targets.
3253 2002-04-13 Mark Mitchell <mark@codesourcery.com>
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.
3280 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
3282 * stmt.c (check_unique_operand_names): Expect operand names to
3283 be strings rather than identifiers. Use simple_cst_equal to
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.
3289 2002-04-13 Andreas Schwab <schwab@suse.de>
3291 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
3293 2002-04-12 Mark Mitchell <mark@codesourcery.com>
3295 Revert these changes:
3297 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3300 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3302 2002-04-12 Richard Henderson <rth@redhat.com>
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.
3319 2002-04-12 Richard Henderson <rth@redhat.com>
3321 * recog.c (offsettable_address_p): Match the logic in adjust_address.
3323 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
3324 in 64-bit mode only. Use only for 32-bit or MEDLOW.
3326 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3328 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
3330 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
3332 * pa.c (pa_can_combine_p): Call extract_insn before calling
3335 2002-04-12 Douglas B Rupp <rupp@gnat.com>
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.
3343 2002-04-12 DJ Delorie <dj@redhat.com>
3345 * integrate.c (compare_blocks): Make comparisons safe for when
3346 sizeof(int) < sizeof(char *).
3347 (find_block): Likewise.
3349 2002-04-12 Jan Hubicka <jh@suse.cz>
3350 David Edelsohn <edelsohn@gnu.org>
3352 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
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.
3358 2002-04-12 Andreas Schwab <schwab@suse.de>
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.
3364 2002-04-12 Eric Norum <eric.norum@usask.ca>
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.
3375 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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.
3382 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
3385 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
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.
3390 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
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.
3395 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3397 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
3400 2002-04-12 Andreas Schwab <schwab@suse.de>
3402 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
3404 2002-04-12 Richard Henderson <rth@redhat.com>
3407 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
3409 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
3410 modes spanning multiple hard regs.
3412 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
3414 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
3434 2002-04-11 David O'Brien <obrien@FreeBSD.org>
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.
3444 2002-04-11 David O'Brien <obrien@FreeBSD.org>
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
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
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
3468 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3470 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
3471 all other *-*-freebsd* targets.
3473 2002-04-11 Richard Henderson <rth@redhat.com>
3475 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
3477 2002-04-11 David O'Brien <obrien@FreeBSD.org>
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
3488 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
3490 (LINK_SPEC): Moved here from alpha/elf.h.
3491 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
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.
3501 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3503 * doc/extend.texi: Remove old claim that typedefs cannot have
3504 an alignment attribute.
3506 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3508 PR optimization/6177
3509 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
3510 bitpos is 0 and bitsize CONCAT size.
3512 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3515 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
3517 2002-04-10 David O'Brien <obrien@FreeBSD.org>
3519 * config/alpha/freebsd.h: Minor reformatting.
3520 (CPP_SPEC): Define ELF and add cpp_subtarget.
3521 (ASM_SPEC): No longer needed.
3523 2002-04-11 Richard Henderson <rth@redhat.com>
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.
3529 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
3531 * config/cris/cris.c (cris_override_options): Tweak error message
3532 for PIC not implemented.
3534 * config/cris/cris.h: Tweak comments related to parameter-passing.
3536 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
3538 2002-04-10 Richard Henderson <rth@redhat.com>
3540 * except.c (add_ehl_entry): Allow duplicates after landing pad
3543 2002-04-10 David Edelsohn <edelsohn@gnu.org>
3545 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
3547 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
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.
3553 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
3555 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
3556 is only used as frame pointer when frame_pointer_needed is true.
3558 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
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
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.
3569 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
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.
3575 2002-04-10 Richard Henderson <rth@redhat.com>
3577 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
3578 if EXPAND_INITIALIZER.
3580 2002-04-09 Richard Henderson <rth@redhat.com>
3582 * config/alpha/alpha.md (movdi_er_maybe_g): New.
3583 * config/alpha/alpha.c (alpha_expand_mov): Use it.
3585 2002-04-10 Alan Modra <amodra@bigpond.net.au>
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.
3593 2002-04-09 Eric Christopher <echristo@redhat.com>
3595 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
3596 information to .comm directive.
3598 2002-04-09 Richard Henderson <rth@redhat.com>
3601 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
3603 2002-04-09 Richard Henderson <rth@redhat.com>
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.
3634 2002-04-09 Richard Henderson <rth@redhat.com>
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.
3645 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
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
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.
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
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.
3692 2002-04-08 Richard Henderson <rth@redhat.com>
3694 * reorg.c (get_branch_condition): Use reversed_comparison_code.
3696 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
3703 2002-04-09 David S. Miller <davem@redhat.com>
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.
3711 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
3712 unsigned comparison warning.
3713 (output_restore_regs): Mark leaf_function as unused.
3715 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3717 * expr.c (is_aligning_offset): New function.
3718 (expand_expr, case COMPONENT_EXPR): Call it.
3720 2002-04-08 David S. Miller <davem@redhat.com>
3723 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
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.
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.
3742 2002-04-08 Andreas Jaeger <aj@suse.de>
3744 * stmt.c (expand_asm_operands): Revert last patch from Richard
3747 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
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.
3752 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3754 * doc/contrib.texi (Contributors): Add David O'Brien.
3756 2002-04-08 Alan Modra <amodra@bigpond.net.au>
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.
3764 2002-04-07 David S. Miller <davem@redhat.com>
3766 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
3768 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
3771 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
3772 generating 32-bit pic code.
3774 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
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
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.
3806 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3809 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
3811 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3814 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3817 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
3818 RTX_UNCHANGING_P for the functions arguments when a tail call
3821 2002-04-06 Jason Merrill <jason@redhat.com>
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.
3827 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
3829 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
3832 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
3835 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
3836 types come in by-reference. Fix typo in comment.
3838 2002-04-05 David S. Miller <davem@redhat.com>
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.
3845 2002-04-05 David S. Miller <davem@redhat.com>
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.
3851 2002-04-05 Richard Henderson <rth@redhat.com>
3853 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
3855 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
3857 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
3859 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
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.
3865 2002-04-05 Andreas Schwab <schwab@suse.de>
3867 * c-convert.c: Include c-common.h.
3868 * Makefile.in (c-convert.o): Updated.
3870 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3872 * mklibgcc.in: Use separate libgcc.map for each multilib.
3873 * Makefile.in (distclean): Don't remove libgcc.map here.
3875 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3877 * Makefile.in (s-mlib): Handle --disable-multilib by separate
3878 genmultilib invocation.
3880 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
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.
3887 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
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.
3902 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3904 2002-04-05 Alan Modra <amodra@bigpond.net.au>
3906 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3907 Add rules to make null object file.
3909 2002-04-04 Jim Blandy <jimb@redhat.com>
3911 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3912 macro formal parameter names.
3914 2002-04-04 David S. Miller <davem@redhat.com>
3916 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3918 2002-04-04 Richard Henderson <rth@redhat.com>
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.
3925 2002-04-04 Richard Henderson <rth@redhat.com>
3928 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3929 (write_dependence_p): Likewise.
3931 2002-04-04 Richard Henderson <rth@redhat.com>
3933 * predict.c (estimate_bb_frequencies): Do frequency calculation
3934 with a volatile temporary.
3936 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
3938 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3940 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3943 * final.c (final_start_function): Don't bump profile_label_no here...
3944 (final_end_function): ...but here.
3946 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3948 * config/sparc/sparc.md (pic): New attribute.
3949 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3951 (split after do_builtin_setjmp_setup): New.
3953 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3956 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3959 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3961 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3962 UNITS_PER_WORD for zero sized aggregates.
3964 2002-04-03 David S. Miller <davem@redhat.com>
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).
3969 2002-04-03 David S. Miller <davem@redhat.com>
3971 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3974 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
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
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,
4009 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4011 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4012 list of targets to check using "nop" insn.
4013 * configure: Rebuilt.
4015 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4017 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4019 2002-04-03 David S. Miller <davem@redhat.com>
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.
4028 2002-04-03 Jason Merrill <jason@redhat.com>
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.
4035 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4036 expand_decl_cleanup_eh.
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.
4047 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
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
4057 2002-04-03 David S. Miller <davem@redhat.com>
4059 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4061 (set_fast_math): Correct 'fsr' type.
4063 2002-04-03 Richard Henderson <rth@redhat.com>
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.
4077 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
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.
4092 2002-04-03 Jakub Jelinek <jakub@redhat.com>
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.
4102 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4105 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4108 2002-04-03 Richard Henderson <rth@redhat.com>
4111 * sched-rgn.c (sets_likely_spilled): New.
4112 (sets_likely_spilled_1): New.
4113 (add_branch_dependences): Use it.
4115 2002-04-02 Richard Henderson <rth@redhat.com>
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.
4122 2002-04-02 David S. Miller <davem@redhat.com>
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
4127 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4128 existing comment to increase comprehension of this situation.
4130 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4132 * config/sh/sh.md: Don't use union real_extract.
4134 2002-04-02 Richard Henderson <rth@redhat.com>
4136 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4138 2002-04-02 David O'Brien <obrien@FreeBSD.org>
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.
4203 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
4204 Richard Henderson <rth@redhat.com>
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.
4211 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4213 * protoize.c: Match include directory usage with cppdefault.c.
4215 2002-04-03 Jeffrey A Law (law@redhat.com)
4216 Hans-Peter Nilsson <hp@bitrange.com>
4218 * combine.c (simplify_comparison): Avoid narrowing a comparison
4219 with a paradoxical subreg when doing so would drop signficant bits.
4221 2002-04-02 Steve Ellcey <sje@cup.hp.com>
4223 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
4224 if POINTERS_EXTEND_UNSIGNED is defined.
4226 2002-04-02 Richard Henderson <rth@redhat.com>
4229 * local-alloc.c (contains_replace_regs): LO_SUM may contain
4232 2002-04-02 Richard Henderson <rth@redhat.com>
4234 * doc/standards.texi: Document required freestanding libc entry points.
4236 2002-04-02 Alan Modra <amodra@bigpond.net.au>
4238 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
4239 associated splitter. Remove MQ constraint.
4240 (ctrdi_internal4): Correct CCmode clobber.
4242 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4244 * milli64.S ($$dyncall): New function.
4245 * t-linux (LIB1ASMFUNCS): Revise module list.
4246 (LIB1ASMSRC): Use pa/milli64.S.
4248 2002-04-02 Richard Henderson <rth@redhat.com>
4250 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
4251 rename solaris_sys_varargs_h.
4253 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4255 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
4256 the same mode as its component.
4258 2002-04-02 Richard Henderson <rth@redhat.com>
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.
4265 2002-04-02 Richard Henderson <rth@redhat.com>
4268 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
4270 2002-04-01 Richard Henderson <rth@redhat.com>
4273 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
4274 * fixinc/fixincl.x: Rebuild.
4276 2002-04-01 Richard Henderson <rth@redhat.com>
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.
4291 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
4293 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
4294 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
4296 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
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.
4311 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4313 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4315 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
4318 2002-04-01 Bob Wilson <bob.wilson@acm.org>
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).
4323 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
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):
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.
4345 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4346 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4348 2002-03-31 Richard Henderson <rth@redhat.com>
4350 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
4351 (desc_frgr_mem): Fix reference to f16-f31.
4353 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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.
4361 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4363 * diagnostic.c: Include langhooks-def.h.
4364 * Makefile.in (diagnostic.o): Update.
4366 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
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):
4388 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4389 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4391 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
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.
4404 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4406 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
4407 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
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.
4415 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4417 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
4418 unsigned HOST_WIDE_INT, not unsigned int.
4420 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4422 PR middle-end/6096, middle-end/6098, middle-end/6099
4423 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
4425 (fill_slots_from_thread): Likewise.
4427 2002-03-31 Jakub Jelinek <jakub@redhat.com>
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.
4433 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
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.
4442 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4445 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
4447 (output_v9branch): Likewise.
4449 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4451 * gcc.c: Revert previous patch for now.
4452 * config/i386/djgpp.h: Likewise.
4454 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4456 * config/mmix/crti.asm (_init): Register _fini with atexit.
4457 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
4459 2002-03-31 Richard Henderson <rth@redhat.com>
4462 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
4463 (ASM_OUTPUT_DEF_FROM_DECLS): New.
4465 2002-03-31 Richard Henderson <rth@redhat.com>
4467 * libgcc2.c (__bb_exit_func): Make static.
4469 * config/alpha/alpha.md (trap): New.
4471 2002-03-31 Richard Henderson <rth@redhat.com>
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.
4482 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
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'.
4491 2002-03-30 David S. Miller <davem@redhat.com>
4493 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4494 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
4496 2002-03-30 Roger Sayle <roger@eyesopen.com>
4497 Richard Henderson <rth@redhat.com>
4499 * regmove.c (combine_stack_adjustments_for_block): Avoid
4500 emitting a stack adjustment of zero bytes. Let delete_insn
4503 2002-03-30 Richard Henderson <rth@redhat.com>
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.
4522 2002-03-30 Daniel Berlin <dan@dberlin.org>
4524 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
4525 CPP will start the file for us.
4527 2002-03-30 Richard Henderson <rth@redhat.com>
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.
4536 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
4538 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
4540 2002-03-30 Richard Henderson <rth@redhat.com>
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.
4554 2002-03-30 Jakub Jelinek <jakub@redhat.com>
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.
4561 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
4563 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
4564 when not optimizing.
4566 * toplev.c (rest_of_compilation): Cann mark_constant_function
4567 only when optimizing.
4569 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
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.
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.
4581 2002-03-29 Richard Henderson <rth@redhat.com>
4584 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
4586 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4588 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
4589 for aggregate and TFmode types.
4591 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4593 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
4595 2002-03-29 Richard Henderson <rth@redhat.com>
4598 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
4599 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
4601 2002-03-29 Richard Henderson <rth@redhat.com>
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
4609 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
4611 2002-03-29 Dale Johannesen <dalej@apple.com>
4613 * loop.c (combine_movables): Do allow combination of pseudos.
4615 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
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.
4623 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4625 * Makefile.in (convert.o, calls.o, expmed.o): Update.
4626 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
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):
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):
4637 * c-typeck.c (common_type, comptypes, default_conversion):
4639 * calls.c: Include langhooks.h.
4640 (emit_library_call_value_1): Use new hooks. Avoid redundant
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.
4663 * objc-act.c (handle_impent): Update.
4664 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
4667 2002-03-29 Steve Ellcey <sje@cup.hp.com>
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.
4674 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
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.
4680 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
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.
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.
4705 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4708 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
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.
4722 2002-03-29 Jakub Jelinek <jakub@redhat.com>
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.
4732 2002-03-28 Richard Henderson <rth@redhat.com>
4735 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
4736 to GAS. Correct drift between alternatives.
4738 2002-03-28 Richard Henderson <rth@redhat.com>
4741 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
4743 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
4745 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
4746 emulation to the linker.
4748 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
4750 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
4751 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
4753 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
4755 * combine.c (simplify_and_const_int): Make sure to apply mask
4756 when force_to_mode returns a constant integer. PR3311.
4758 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4760 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
4762 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4764 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
4765 and Objective-C Dialect Options.
4767 2002-03-28 Richard Henderson <rth@redhat.com>
4769 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
4770 comparison should be done vs !=0 not >0 return code. Tidy cases.
4772 2002-03-28 Richard Henderson <rth@redhat.com>
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.
4779 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
4781 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
4783 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
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.
4791 2002-03-27 Zack Weinberg <zack@codesourcery.com>
4793 * mips.md: Use dconst1, not 1.0, as first argument of
4794 REAL_VALUE_LDEXP. Don't use union real_extract.
4796 2002-03-28 Alan Modra <amodra@bigpond.net.au>
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.
4807 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
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.
4819 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
4821 2002-03-27 Andreas Schwab <schwab@suse.de>
4823 * config/i386/i386.c (classify_argument): Also check for
4826 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4828 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
4831 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
4833 * i960.md (ret): Set PC.
4834 (nonlocal_goto): Fix expander.
4835 * builtins.c (epxand_builin_longjmp): Check that we've emitted
4838 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
4840 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
4843 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4845 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
4846 assigning to BLOCK_FOR_INSN directly.
4848 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
4850 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
4852 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
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.
4867 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4869 2002-03-27 Richard Henderson <rth@redhat.com>
4872 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4873 TARGET_CONST_GP. Simplify conditions.
4875 2002-03-27 Richard Henderson <rth@redhat.com>
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.
4881 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
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.
4891 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4893 * gcc-common.c (lang_mark_false_label_stack): Remove.
4894 * ggc.h (lang_mark_false_label_stack): Similarly.
4896 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
4898 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4900 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4901 or __rtems_ is defined.
4903 2002-03-26 Richard Henderson <rth@redhat.com>
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.
4910 2002-03-26 Richard Henderson <rth@redhat.com>
4912 * config.gcc (sparc*-solaris): Use float_format=sparc.
4914 2002-03-26 Richard Henderson <rth@redhat.com>
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.
4922 2002-03-26 Richard Henderson <rth@redhat.com>
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.
4929 2002-03-26 Richard Henderson <rth@redhat.com>
4931 * expr.h (ADD_PARM_SIZE): One more convert for INC.
4933 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
4935 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
4936 and warning switches.
4937 (cc1_options): Likewise.
4939 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
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.
4949 2002-03-26 David Edelsohn <edelsohn@gnu.org>
4951 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4953 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4955 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4957 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
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
4964 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4966 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4967 a register into the MAC16 accumulator.
4969 2002-03-26 Andrew Cagney <ac131313@redhat.com>
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
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.
4981 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4983 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4984 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4985 (reload_muladdsi_compare0_scratch): Delete.
4987 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
4989 * doc/install.texi (*-*-freebsd*): Update.
4991 2002-03-26 Richard Henderson <rth@redhat.com>
4993 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4994 (SUB_PARM_SIZE): Cast DEC to ssizetype.
4996 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4997 types from the normal argument frame.
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.
5003 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5005 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5006 code to not restoring global registers.
5008 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
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.
5022 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5024 2002-03-25 Zack Weinberg <zack@codesourcery.com>
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
5036 * doc/cppopts.texi: Cross-reference the environment variables
5037 section, not the specific environment variable, for consistency.
5039 2002-03-25 Richard Henderson <rth@redhat.com>
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.
5046 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5048 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5049 test for overflow of constant.
5051 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
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.
5058 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5060 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5063 2002-03-25 Zack Weinberg <zack@codesourcery.com>
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.
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
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.
5081 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5083 * tsystem.h: Include float.h here...
5084 * libgcc2.c: ... not here.
5086 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
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
5095 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
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.
5107 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5109 * regrename.c (build_def_use): Move recog_memoized
5110 before extract_insn.
5112 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5115 * expr.c (emit_group_store): Handle storing into CONCAT.
5117 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5119 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5120 corresponding MATCH_DUP.
5122 2002-03-24 Richard Henderson <rth@redhat.com>
5124 * unroll.c (unroll_loop): Zero label_map.
5126 * gcse.c: Include except.h.
5127 * Makefile.in (gcse.o): Update.
5129 2002-03-24 Richard Henderson <rth@redhat.com>
5131 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5132 Do resolve_unique_section before shared data clause.
5134 2002-03-24 Richard Henderson <rth@redhat.com>
5136 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5138 2002-03-24 Richard Henderson <rth@redhat.com>
5140 * recog.c (peephole2_optimize): Split blocks when EH insns are
5141 generated in the middle of a block. Do global life update if
5144 2002-03-24 Richard Henderson <rth@redhat.com>
5146 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5148 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
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.
5155 2002-03-24 Andrew Cagney <ac131313@redhat.com>
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
5162 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
5169 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
5179 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5181 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5183 (cpp_post_options): ... not here.
5185 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5186 Aldy Hernandez <aldyh@redhat.com>
5188 Removal of separate preprocessor cpp0.
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):
5205 * tradcpp.c (main): Ignore -quiet.
5207 * lang-specs.h (default_compilers): Preprocess with cc1obj.
5209 2002-03-24 Richard Henderson <rth@redhat.com>
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.
5220 2002-03-23 Richard Henderson <rth@redhat.com>
5222 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
5223 * config/sparc/sparc-protos.h: Update.
5224 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
5226 2002-03-23 Richard Henderson <rth@redhat.com>
5228 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
5229 _start or _init begins the text segment.
5231 2002-03-23 David Edelsohn <edelsohn@gnu.org>
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.
5237 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
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
5247 2002-03-23 Andrew Cagney <ac131313@redhat.com>
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
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.
5260 2002-03-23 Alan Modra <amodra@bigpond.net.au>
5262 * real.h (N): Special case 128 bit doubles.
5264 * combine.c (simplify_comparison): When widening modes, ignore
5265 sign extension on CONST_INTs.
5267 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5269 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
5270 passed to adjust_address. Fix comment formatting.
5273 2002-03-22 Zack Weinberg <zack@codesourcery.com>
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.
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.
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
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.
5301 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
5302 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
5304 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
5305 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
5307 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
5308 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
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.
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
5321 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
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.
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
5337 * doc/rtl.texi: Adjust cross reference.
5339 2002-03-22 Bob Wilson <bob.wilson@acm.org>
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.
5353 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
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.
5361 * doc/cpp.texi: Update to match.
5363 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5365 PR optimization/5854
5366 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
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, ...)
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
5379 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
5380 require scratch register for setting 0 into regs/non-pushable memory.
5382 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5384 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
5385 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
5387 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
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.
5398 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
5400 * config/i386/i386.c, config/i386/i386.md: Change all occurences
5401 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
5403 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5405 * flow.c (calculate_global_regs_live): Clear aux fields of
5408 2002-03-22 Jakub Jelinek <jakub@redhat.com>
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.
5417 2002-03-22 Richard Henderson <rth@redhat.com>
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.
5426 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
5428 * expr.c (expand_expr): A RESULT_DECL is part of a call.
5430 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
5432 * toplev.c (flag_loop_optimize, flag_crossjumping):
5433 New static variables.
5434 (rest_of_compilation): Conditionalize crossjumping and
5436 (parse_options_and_default_flags): Default loop_optimize and
5438 (lang_independent_options): Add -fcrossjumping and -floop-optimize
5439 * invoke.texi (crossjumping, loop-optimize): Document.
5441 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5443 * real.c (eiisneg): Move outside #ifdef NANS.
5445 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
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
5451 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
5453 (split_edge): Likewise.
5455 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
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
5462 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
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.
5491 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
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.
5499 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
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.
5507 2002-03-21 DJ Delorie <dj@redhat.com>
5509 * bb-reorder.c (make_reorder_chain_1): Protect against
5510 when redundant edges are omitted.
5511 * predict.c (dump_prediction): Likewise.
5513 2002-03-21 Richard Henderson <rth@redhat.com>
5516 * fixinc/inclhack.def (solaris_stdio_tag): New.
5517 * fixinc/fixincl.x: Regenerate.
5519 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5522 * c-typeck.c (process_init_element): Flag non-static
5523 initialization of a flexible array member as illegal.
5525 2002-03-22 Alan Modra <amodra@bigpond.net.au>
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.
5535 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
5537 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
5538 flag_really_no_inline instead of optimize == 0.
5540 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
5542 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
5544 * flags.h (flag_really_no_inline): New.
5546 * c-common.c (c_common_post_options): Initialize
5547 flag_really_no_inline.
5549 * toplev.c (flag_really_no_inline): New.
5551 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5553 * config/avr/avr.md (length): Fix length computation for
5554 conditional branches.
5556 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
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
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
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.
5593 2002-03-21 Richard Henderson <rth@redhat.com>
5595 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
5596 constants in .data when -fpic.
5598 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5600 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
5603 2002-03-21 Tom Tromey <tromey@redhat.com>
5605 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
5607 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5609 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
5611 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
5613 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5614 Richard Henderson <rth@redhat.com>
5617 * c-common.c (c_expand_expr): Preserve result of a statement
5618 expression if needed.
5620 2002-03-21 Jakub Jelinek <jakub@redhat.com>
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.
5627 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
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.
5638 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5640 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
5642 * fixinc/fixincl.x: Regenerate.
5644 2002-03-20 Jason Merrill <jason@redhat.com>
5646 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
5648 2002-03-20 Michael Meissner <meissner@redhat.com>
5650 * doc/invoke.texi (Optimize Options): Document that -O2 sets
5653 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5655 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
5656 ".literal_position" directive before the constant pool.
5658 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5660 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
5661 Add Craig Rodrigues.
5662 Add Brad Lucier to testers.
5664 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5667 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
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.
5673 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5676 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
5678 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
5679 stmt if some case has been output.
5681 2002-03-20 Jakub Jelinek <jakub@redhat.com>
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
5692 2002-03-20 Philip Blundell <pb@nexus.co.uk>
5694 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
5695 return instruction if PC was popped.
5697 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5699 * config/xtensa/xtensa.md: Remove unused type attributes.
5700 (adddi_carry, subddi_carry): Change type attribute to "multi".
5702 2002-03-19 Dale Johannesen <dalej@apple.com>
5704 PR optimization/5999, middle-end/5731
5705 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
5706 multiplications by reciprocals.
5708 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
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.
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.
5734 2002-03-19 Jim Blandy <jimb@redhat.com>
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.
5739 2002-03-19 Richard Henderson <rth@redhat.com>
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.
5745 * config/ia64/ia64.c (ia64_eh_uses): New.
5746 * config/ia64/ia64-protos.h: Update.
5747 * config/ia64/ia64.h (EH_USES): New.
5749 2002-03-19 Richard Henderson <rth@redhat.com>
5751 * varasm.c (output_constant_def): Fix stupid typo.
5753 2002-03-19 Richard Henderson <rth@redhat.com>
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.
5761 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
5763 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
5766 2002-03-19 Richard Henderson <rth@redhat.com>
5769 * config/ia64/ia64.c: Revert 2002-03-01 patch.
5770 * config/ia64/ia64.h (INIT_EXPANDERS): New.
5772 2002-03-19 Jim Blandy <jimb@redhat.com>
5774 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
5775 name, even if the replacement list contains no tokens, as required
5778 2002-03-19 Jason Merrill <jason@redhat.com>
5780 * varasm.c (globalize_decl): Get the name from the RTL, not
5781 DECL_ASSEMBLER_NAME.
5783 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
5785 2002-03-19 Bob Wilson <bob.wilson@acm.org>
5787 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
5788 subdi_carry): Define.
5790 2002-03-19 David Edelsohn <edelsohn@gnu.org>
5792 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
5793 about -fpic/-fPIC if extra_warnings set.
5795 2002-03-19 David Edelsohn <edelsohn@gnu.org>
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.
5801 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5803 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
5804 in favor of SP if FRAME_POINTER_REQUIRED is false.
5806 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
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),
5815 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
5816 Use it instead of GEN_INT (trunc_int_for_mode (...)).
5818 2002-03-19 Jakub Jelinek <jakub@redhat.com>
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):
5825 * langhooks-def.h: Likewise.
5826 * objc/objc-lang.c: Likewise.
5827 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
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.
5834 2002-03-18 Mark Mitchell <mark@codesourcery.com>
5836 * calls.c (precompute_arguments): Do not assume that temporaries
5837 can be destroyed after expanding the argument.
5838 (expand_call): Likewise.
5840 2002-03-15 Eric Christopher <echristo@redhat.com>
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.
5850 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5852 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
5854 (anddi3, iorsi3): Likewise.
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
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.
5871 2002-03-18 Bob Wilson <bob.wilson@acm.org>
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.
5877 2002-03-18 Jakub Jelinek <jakub@redhat.com>
5880 * expr.c (emit_group_load): Use extract_bit_field if
5881 needed for CONCAT arguments.
5883 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
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
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.
5898 2002-03-18 Bernd Schmidt <bernds@redhat.com>
5900 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
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.
5913 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
5915 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5918 2002-03-17 Richard Henderson <rth@redhat.com>
5920 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5923 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5925 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5926 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5928 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5930 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5932 * predict.c (estimate_bb_frequencies): Delete unused variables.
5934 2002-03-17 Richard Henderson <rth@redhat.com>
5936 * config/ia64/ia64.c (ia64_attribute_table): Move before
5937 targetm definition. Make static.
5939 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
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.
5955 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
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.
5962 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5964 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
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.
5971 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5972 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5974 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5975 add register to non-constant into sp.
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.
5993 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5995 * cppinit.c: Revert -MD removal.
5997 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
6007 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
6022 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6024 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6025 allocating QImode in address registers.
6026 ("*movqi_m68hc11"): Likewise.
6028 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6030 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6032 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6034 * cppinit.c (print_help): Display -MD and -MMD.
6035 Don't display usage string. Update assertion syntax and
6037 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6038 (cpp_handle_option): Update.
6040 2002-03-15 Chris Demetriou <cgd@broadcom.com>
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."
6048 2002-03-15 Richard Henderson <rth@redhat.com>
6050 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6053 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
6063 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
6070 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
6080 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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
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
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.
6106 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
6116 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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
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.
6132 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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.
6139 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
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
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.
6151 2002-03-15 Mark Mitchell <mark@codesourcery.com>
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.
6163 2002-03-15 Jakub Jelinek <jakub@redhat.com>
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.
6170 2002-03-15 Jason Merrill <jason@redhat.com>
6172 * varasm.c (assemble_variable): Call resolve_unique_section before
6173 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6176 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6179 * arm.md (split pattern for thumb shiftable immediates): Add comment
6180 explaining non-obvious test.
6182 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6185 * arm.md (movaddr, movaddr_insn): Delete.
6187 2002-03-15 Jason Merrill <jason@redhat.com>
6189 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6190 -fkeep-static-consts doesn't apply to comdats.
6192 2002-03-14 Richard Henderson <rth@redhat.com>
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.
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.
6215 2002-03-14 Richard Henderson <rth@redhat.com>
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.
6224 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6226 PR optimization/5891
6227 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
6229 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
6231 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
6232 descriptors correctly.
6234 2002-03-14 Michael Meissner <meissner@redhat.com>
6236 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
6237 100, allowing MAX_UNROLLED_INSNS to be overridden.
6239 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
6242 * unroll.c (params.h): Include.
6243 (MAX_UNROLLED_INSNS): Delete, now in params.h.
6245 * doc/invoke.texi (--param max-unroll-insns): Document.
6247 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
6249 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6251 * arm.md: Fix warnings about constraints in peepholes and splits.
6253 2002-03-14 Zack Weinberg <zack@codesourcery.com>
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
6261 (end_directive, directive_diagnostics, _cpp_handle_directive):
6262 Don't muck with line_extension.
6263 (directive_diagnostics): No need to issue warnings for
6265 (_cpp_handle_directive): Issue warnings for linemarkers here,
6266 when appropriate. Dispatch linemarkers to do_linemarker, not
6268 (do_line): Code to handle linemarkers split out to do_linemarker.
6269 Convert escape sequences in filename argument, both places.
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
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.
6281 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
6283 * emit-rtl.c (try_split): Use delete_insns.
6284 * recog.c (split_all_insns): Fix terminating condition.
6286 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6287 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6290 * arm.c (arm_output_epilogue): Fix floating-point register save
6291 adjustment when using a frame pointer.
6293 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
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.
6303 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
6305 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
6306 call after liveness analysis.
6308 * recog.c (split_insn): Use delete_insn_and_edges.
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.
6314 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
6316 * configure.in: Don't pass -Wno-long-long to a ADA compiler
6317 that doesn't support it.
6318 * configure: Regenerate.
6320 2002-03-13 Jakub Jelinek <jakub@redhat.com>
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
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):
6336 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
6337 noov_compare64_op predicates.
6339 2002-03-13 Jason Merrill <jason@redhat.com>
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.
6345 2002-03-13 David Edelsohn <edelsohn@gnu.org>
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.
6351 2002-03-13 Jason Merrill <jason@redhat.com>
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.
6359 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
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.
6366 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
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.
6371 2002-03-12 Jason Merrill <jason@redhat.com>
6373 * c-typeck.c (convert_for_assignment): Don't allow conversions
6374 between pointers and references. Only allow lvalues to convert to
6377 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
6379 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
6380 before prologue, to avoid scheduling problems.
6382 2002-03-13 Jakub Jelinek <jakub@redhat.com>
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.
6388 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6390 PR optimization/5892
6391 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
6393 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6395 * loop.c (basic_induction_var): Don't call convert_modes if mode
6396 classes are different.
6398 2002-03-12 Richard Henderson <rth@redhat.com>
6400 PR optimization/5901
6401 * function.c (reposition_prologue_and_epilogue_notes): Position
6402 the markers after/before the last/first insn not deleted.
6404 2002-03-12 Richard Henderson <rth@redhat.com>
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.
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.
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.
6422 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
6424 * expmed.c (store_bit_field): Reset alias set for memory.
6425 (extract_bit_field): Same.
6427 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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):
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):
6448 (tree_code_length): Change type to unsigned char.
6450 2002-03-12 Richard Henderson <rth@redhat.com>
6452 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
6453 internal visibility change.
6455 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6457 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
6458 validize_mem() instead of change_address to avoid clobbering
6461 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
6463 * c-lex.h (position_after_whitespace): Remove.
6465 2002-03-12 Jakub Jelinek <jakub@redhat.com>
6467 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
6468 (lex_string): Use unsigned char pointers.
6470 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6472 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
6473 is not a valid memory_operand.
6475 2002-03-12 Bob Wilson <bob.wilson@acm.org>
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.
6487 2002-03-12 Tom Rix <trix@redhat.com>
6489 * collect2.c (resolve_lib_name): Move outside of
6490 OBJECT_FORMAT_COFF ifdef.
6491 (ignore_library): Same.
6493 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6495 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
6497 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6499 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
6500 to function_section before writing out the constant pool.
6502 2002-03-12 David Edelsohn <edelsohn@gnu.org>
6504 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
6506 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
6508 2002-03-12 Alan Modra <amodra@bigpond.net.au>
6510 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
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.
6522 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6524 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6525 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6527 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6529 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
6530 address calculation.
6532 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
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.
6539 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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.
6555 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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.
6565 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6567 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
6569 2002-03-11 Richard Henderson <rth@redhat.com>
6571 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
6572 if rebuild_label_notes_after_reload.
6574 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
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.
6581 2002-03-11 Richard Henderson <rth@redhat.com>
6583 * rtlanal.c: Include recog.h.
6584 (keep_with_call_p): Fix thinko.
6585 * Makefile.in (rtlanal.o): Update dependencies.
6587 2002-03-11 Chris Meyer <cmeyer@gatan.com>
6589 * genflags.c (gen_insn): Use IS_VSPACE.
6590 * genoutput.c (output_insn_data): Likewise.
6591 (process_template): Likewise.
6593 2002-03-11 Richard Henderson <rth@redhat.com>
6595 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
6597 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
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.
6605 2002-03-11 Zack Weinberg <zack@codesourcery.com>
6607 * Makefile.in: Give texi2pod its input file as a command line
6608 argument, not on stdin.
6610 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
6611 Daniel Berlin <dan@dberlin.org>
6613 C++ alias analysis improvement.
6614 * alias.c (record_component_aliases): Record aliases for base
6617 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
6619 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
6621 2002-03-11 Douglas B Rupp <rupp@gnat.com>
6623 * toplev.c (vms_fopen): Remove, not needed.
6625 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
6627 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
6629 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
6630 for FP, already done later.
6632 * toplev.c (debug_args): Add entry for VMS_DEBUG.
6633 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
6635 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
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.
6658 2002-03-11 Andreas Jaeger <aj@suse.de>
6660 * cfg.c (dump_flow_info): Remove unused variable.
6662 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
6664 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
6665 computations on trees.
6667 2002-03-10 Richard Henderson <rth@redhat.com>
6670 * reload.c (copy_replacements_1): New.
6671 (copy_replacements): Use it to recurse through the rtx.
6673 2002-03-10 Richard Henderson <rth@redhat.com>
6675 * loop.c (strength_reduce): Compute number of iterations as
6676 unsigned HOST_WIDE_INT.
6678 2002-03-10 Richard Henderson <rth@redhat.com>
6680 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
6681 to move away from the end of the block.
6683 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
6685 PR preprocessor/5899
6686 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
6688 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6690 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
6692 * attribs.c (decl_attributes): Fix signed/unsigned warning.
6694 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
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.
6706 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6708 * combine.c (make_extraction): Fix error in last change.
6710 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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):
6727 * s390.h (regclass_map): Likewise.
6728 * sh.c (shift_amounts): Likewise.
6729 * sh.md (rotlsi3): Likewise.
6731 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
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>.
6737 2002-03-09 Andreas Schwab <schwab@suse.de>
6739 * gcc.c (validate_all_switches): Also handle `%W{...}'.
6741 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
6743 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
6745 2002-03-09 Jakub Jelinek <jakub@redhat.com>
6748 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
6749 even for non-representable constants.
6751 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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
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.
6762 * combine.c (make_extraction): Don't make extension of CONST_INT.
6764 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
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.
6772 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
6773 offset before loading address of argument passed by transparent
6776 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6778 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
6780 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
6782 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
6783 marker such that registers after it are saved.
6785 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6787 * sparc.c (arith_4096_operand): Fix error in last change.
6789 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
6791 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
6794 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
6796 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
6799 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
6801 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
6803 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
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.
6811 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6813 * gcse.c (insert_insn_end_bb): Fix typo in last change.
6815 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
6817 * recog.c (peephole2_optimize): Re-distribute EH edges.
6819 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
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.
6833 2002-03-08 Andreas Jaeger <aj@suse.de>
6835 * flow.c (propagate_block_delete_insn): Remove unused variable.
6837 2002-03-08 Kazu Hirata <kazu@hxi.com>
6839 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
6840 insn length for memory load/store.
6842 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
6844 * doc/install.texi (--with-libiconv-prefix): Document.
6846 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
6848 * doc/sourcebuild.texi: Fix typo.
6850 2002-03-08 Jakub Jelinek <jakub@redhat.com>
6853 * builtins.c (std_expand_builtin_va_arg): Do all computations on
6856 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6858 * rtl.c (copy_most_rtx): Move from here ...
6859 * emit-rtl.c (copy_most_rtx): ... to here.
6861 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
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.
6867 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
6869 2002-03-07 Matt Hiller <hiller@redhat.com>
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
6875 (init_md_reader): Unconditionally initialize base_dir whether or
6876 not filename is a relative path.
6878 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
6880 * config/fp-bit.c (_unord_f2): Compile it in even if
6881 US_SOFTWARE_GOFAST is enabled.
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.
6888 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6890 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6891 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6894 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
6896 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6898 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6900 * basic-block.h (fixup_abnormal_edges): Declare.
6901 * reload1.c (fixup_abnormal_edges): New function.
6902 * reg-stack.c (convert_regs): Use it.
6904 * gcse.c (insert_insn_end_bb): Handle trapping insns.
6906 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6908 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
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.
6938 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6940 * combine.c (simplify_comparison): If simplifying a logical shift
6941 right and compare with constant, force the comparison to unsigned.
6943 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
6945 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6947 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6949 (alt_reg_names): Remove % for vrsave.
6951 2002-03-06 Richard Henderson <rth@redhat.com>
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.
6959 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6961 * reload1.c (reload): Unshare all rtl after reload is done.
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.
6967 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
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.
6975 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
6977 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6978 after completing fast dead code elimination.
6980 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6983 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
6985 * version.c: Fix misplaced leading blanks on first line.
6987 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
6989 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6991 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
6993 * cfgcleanup.c (mentions_nonequal_regs): New function.
6994 (thread_jump): Use it.
6995 * toplev.c (rest_of_compilation): Run jump threading after
6998 2002-03-06 Jakub Jelinek <jakub@redhat.com>
7000 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7003 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7005 * predict.c (estimate_bb_frequencies): Do not reload the
7006 frequencies from notes.
7008 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
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
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.
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
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.
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.
7039 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7041 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7043 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7044 callbacks when processing assembly language.
7046 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7048 * pa.h (ASM_FILE_END): Define.
7049 * som.h (ASM_FILE_END): Delete.
7051 * pa.c (function_arg): Don't pass floats in general registers in
7052 indirect calls if TARGET_ELF32.
7054 2002-03-05 Richard Henderson <rth@redhat.com>
7056 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7058 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7060 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7062 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7064 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7065 -r command line. Don't hide any symbols if not building
7068 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
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.
7074 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7076 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7077 wide volatile memory by parts.
7079 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7081 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7084 2002-03-05 Richard Henderson <rth@redhat.com>
7086 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7088 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
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.
7096 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
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.
7107 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7109 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7111 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7113 * configure.in: Increase required makeinfo version to 4.1.
7114 * configure: Regenerate.
7116 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7118 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7121 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7123 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7124 * doc/invoke.texi: Fix @math uses.
7126 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7128 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7131 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7133 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7134 (powerpc-*-eabisimaltivec*): Same.
7136 * config/rs6000/t-ppcendian: New.
7138 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
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.
7144 2002-03-03 Richard Henderson <rth@redhat.com>
7146 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7148 2002-03-03 Zack Weinberg <zack@codesourcery.com>
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
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.
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.
7189 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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):
7198 * defaults.h (BITS_PER_WORD): Define.
7199 * doc/tm.texi (BITS_PER_WORD): Document default value.
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.
7205 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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.
7224 2002-03-03 Richard Henderson <rth@redhat.com>
7226 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
7227 for types or labels.
7229 2002-03-03 Richard Henderson <rth@redhat.com>
7231 * c-decl.c (start_decl): Initialized variables are not common.
7233 2002-03-02 Per Bothner <per@bothner.com>
7235 * gcc.c (option_map): Suport new --bootclasspath option.
7236 --CLASSPATH is now just an alias for --classpath.
7238 2002-03-02 Richard Henderson <rth@redhat.com>
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.
7244 2002-03-02 Richard Henderson <rth@redhat.com>
7246 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
7247 to functions as well.
7249 2002-03-02 Richard Henderson <rth@redhat.com>
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.
7258 2002-03-02 Richard Henderson <rth@redhat.com>
7260 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
7261 invoke ENCODE_SECTION_INFO with first call flag.
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.
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.
7292 * config/arm/t-pe (pe.o): Add dependencies.
7294 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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.
7305 2002-03-02 Kazu Hirata <kazu@hxi.com>
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
7313 * config/h8300/h8300.md (anonymous shift patterns): Use
7314 compute_a_shift_length.
7316 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7318 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
7321 * emit-rtl.c (offset_address): Call update_temp_slot_address.
7323 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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.
7335 2002-03-02 Alan Modra <amodra@bigpond.net.au>
7337 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
7338 like more than one symbol per .weak directive.
7340 2002-03-01 Richard Henderson <rth@redhat.com>
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.
7346 2002-03-01 Kazu Hirata <kazu@hxi.com>
7348 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
7350 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
7352 * toplev.c (rest_of_compilation): Delete dead jumptables before
7354 * flow.c (delete_dead_jumptables): Make global.
7355 * rtl.h (delete_dead_jumptables): Declare.
7357 2002-03-01 David Edelsohn <edelsohn@gnu.org>
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.
7363 2002-03-01 Kazu Hirata <kazu@hxi.com>
7365 * config/h8300/h8300-protos.h: Fix formatting.
7366 * config/h8300/h8300.c: Likewise.
7367 * config/h8300/h8300.h: Likewise.
7369 2002-03-01 Kazu Hirata <kazu@hxi.com>
7371 * config/h8300/h8300.c (print_operand): Support 16-bit
7373 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
7375 2002-02-28 Richard Henderson <rth@redhat.com>
7377 * expmed.c (store_bit_field): Prevent generation of CONCATs;
7378 pun complex values as integers; use gen_lowpart instead of
7380 (extract_bit_field): Likewise.
7382 2002-03-01 Alan Modra <amodra@bigpond.net.au>
7383 David Edelsohn <edelsohn@gnu.org>
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
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
7411 (HANDLE_PRAGMA_WEAK): Remove.
7412 (ASM_WEAKEN_LABEL): Remove.
7413 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
7415 2002-03-01 Jason Merrill <jason@redhat.com>
7417 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
7418 (TARGET_EXPR_CLEANUP): New macro.
7420 2002-02-28 Steve Ellcey <sje@cup.hp.com>
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.
7436 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
7438 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
7439 override -shared and -shared-libgcc.
7441 2002-02-28 David O'Brien <obrien@FreeBSD.org>
7443 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
7445 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
7448 2002-02-28 Richard Henderson <rth@redhat.com>
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.
7454 2002-02-28 Jakub Jelinek <jakub@redhat.com>
7456 * mklibgcc.in: Don't use GNU make extension.
7458 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
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.
7465 2002-02-28 Jim Meyering <meyering@lucent.com>
7467 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
7468 \a still means TARGET_BELL.
7470 2002-02-28 Richard Henderson <rth@redhat.com>
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.
7479 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
7481 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
7484 2002-02-28 Kazu Hirata <kazu@hxi.com>
7486 * config/h8300/h8300.c: Fix formatting.
7487 * config/h8300/h8300.h: Likewise.
7489 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
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.
7494 2002-02-28 Bo Thorsen <bo@suse.de>
7496 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
7497 (STARTFILE_SPEC): Add 64 bit files.
7498 (ENDFILE_SPEC): Likewise.
7500 2002-02-28 Jason Merrill <jason@redhat.com>
7502 * c-decl.c (finish_function): Only warn about missing return
7503 statement with -Wreturn-type.
7505 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
7507 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
7509 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
7510 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
7512 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
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.
7526 * cse.c (cse_insn): Reorder emitting of jump insn to keep
7528 * gcse.c (delete_null_pointer_checks): Likewise.
7530 * toplev.c (dump_file_index): Move cse2 after bp,
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.
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
7553 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
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.
7567 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7569 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
7571 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
7572 POST_DEC, and POST_MODIFY.
7574 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7576 * c-typeck.c (digest_init): Remove unused parameter; all
7579 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
7581 * expmed.c (expand_shift): Correctly test for low part of a
7584 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7586 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
7587 insn UIDs with insn addresses.
7589 2002-02-27 Zack Weinberg <zack@codesourcery.com>
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.
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.
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
7620 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
7621 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
7623 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7625 * mklibgcc.in: Don't use \n in a line subject to
7626 interpretation by echo.
7628 2002-02-27 Graham Stott <grahams@redhat.com>
7630 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
7633 * loop.c (prescan_loop): Handle PARALLEL.
7635 * unroll.c (loop_iterations): Return 0 if the add_val for
7638 * final.c (output_operand_lossage): Constify PFX_STR.
7640 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
7642 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
7644 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
7645 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
7647 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
7649 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7651 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
7653 * cpplex.c (_cpp_lex_token): Handle directives in macro
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
7659 (enter_macro_context, replace_args): Use the original macro
7660 definition in case it was redefined whilst collecting arguments.
7664 2002-02-26 David Edelsohn <edelsohn@gnu.org>
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
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.
7674 2002-02-26 Alan Modra <amodra@bigpond.net.au>
7676 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
7678 2002-02-26 Richard Henderson <rth@redhat.com>
7680 * config/alpha/alpha.md (ashldi_se): Re-enable.
7682 2002-02-26 Richard Henderson <rth@redhat.com>
7684 * config/alpha/alpha.c (alpha_encode_section_info): Examine
7685 MODULE_LOCAL_P; improve commentary.
7687 2002-02-26 Zack Weinberg <zack@codesourcery.com>
7689 * doc/cpp.texi: Clarify documentation of relationship between
7692 2002-02-26 Kazu Hirata <kazu@hxi.com>
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
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.
7703 2002-02-26 Kelley Cook <kelleycook@comcast.net>
7705 * config/i386/i386.c (print_operand): Don't append ATT-style
7706 length suffixs to x87 opcodes when in Intel mode.
7708 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
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.
7715 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7717 * pa-linux.h (LIB_SPEC): Update definition.
7718 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7720 2002-02-26 Richard Henderson <rth@redhat.com>
7722 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
7723 if we emitted a stop bit.
7725 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7727 * configure.in (libgcc_visibility): Substitute.
7728 * configure: Rebuilt.
7729 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
7730 defined symbols .hidden.
7732 2002-02-26 Jakub Jelinek <jakub@redhat.com>
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
7749 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7752 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
7753 STRING_CST initializer spanning the whole variable without
7755 If expand_expr returned MEM, don't use it.
7757 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
7759 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
7760 generate a die for the lexical block.
7762 2002-02-26 Kazu Hirata <kazu@hxi.com>
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.
7770 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7772 * dwarf2out.c (modified_type_die): Do not call type_main_variant
7774 (gen_type_die): Same.
7776 * attribs.c (handle_vector_size_attribute): Set debug information.
7778 2002-02-26 Daniel Egger <degger@fhm.edu>
7780 * config/rs6000/rs6000.md: Swap define_insn attributes to
7781 fix incorrect generation of merge high instructions instead
7784 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7786 * c-typeck.c (really_start_incremental_init): Use
7787 bitsize_zero_node for vectors.
7789 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7791 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
7792 ("*set_vrsave_internal"): Same.
7794 2002-02-25 Richard Henderson <rth@redhat.com>
7796 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
7797 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
7799 2002-02-25 Jakub Jelinek <jakub@redhat.com>
7802 * config/i386/i386.c (ix86_return_pops_args): Only pop
7803 fake structure return argument if it was passed on the stack.
7805 2002-02-25 Jason Merrill <jason@redhat.com>
7807 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
7810 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
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.
7816 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
7818 * c-typeck.c (push_init_level): Handle vectors.
7820 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
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.
7834 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
7836 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
7837 ("*set_vrsave_internal"): use mfspr for Darwin.
7839 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
7840 gen_get_vrsave_internal.
7842 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7844 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
7846 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
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.
7852 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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.
7858 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7860 * cpplib.c (glue_header_name): Use local buffer to build up
7863 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7865 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
7867 2002-02-23 Kazu Hirata <kazu@hxi.com>
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.
7874 2002-02-23 Kazu Hirata <kazu@hxi.com>
7876 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
7878 (mulhisi3): Likewise.
7879 (umulqisi3): Likewise.
7880 (umulhisi3): Likewise.
7882 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7884 * cppinit.c (output_deps): Correct test for stdout output.
7885 (init_dependency_output): Cure warning.
7887 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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.
7898 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
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.
7904 2002-02-23 Jakub Jelinek <jakub@redhat.com>
7906 PR optimization/5747
7907 * loop.c (scan_loop): Update reg info if move_movables created new
7910 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7912 * gcc.c (init_gcc_spec): Revert last change.
7914 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7916 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7917 gpc_reg_operand constraint.
7919 2002-02-23 Alan Modra <amodra@bigpond.net.au>
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.
7932 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
7934 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7936 2002-02-22 David Edelsohn <edelsohn@gnu.org>
7938 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7939 gcc invoked with -shared-libgcc.
7941 2002-02-22 Jakub Jelinek <jakub@redhat.com>
7944 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7945 decl if any of elements was TREE_USED.
7947 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
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.
7967 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
7969 * fold-const.c (fold): Fix typo in comments.
7971 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7973 * Makefile.in (langhooks.o): Update dependencies.
7975 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7977 * langhooks.c: Include flags.h.
7979 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
7981 * testsuite/gcc.dg/attr-alwaysinline.c: New.
7983 * c-common.c (c_common_post_options): Set inline trees by
7986 * doc/extend.texi (Function Attributes): Document always_inline
7988 Update documentation about inlining when not optimizing.
7990 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7992 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7993 unless DECL_ALWAYS_INLINE.
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.
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.
8004 * attribs.c (handle_always_inline_attribute): New.
8005 (c_common_attribute_table): Add always_inline.
8007 * config/rs6000/altivec.h: Add prototypes for builtins
8008 requiring the always_inline attribute.
8010 2002-02-21 Eric Christopher <echristo@redhat.com>
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.
8016 2002-02-21 Richard Henderson <rth@redhat.com>
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.
8031 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8032 that we generated earlier.
8034 2002-02-21 Tom Tromey <tromey@redhat.com>
8036 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8037 (output_line_info): Use constant `1', with a long explanatory
8039 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8041 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8043 * jump.c (redirect_jump): If old label has no UID, don't try to
8046 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8048 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8049 If input is constant, do shifts at compile time.
8051 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8053 * doc/extend.texi: Fix some more overfull hboxes.
8055 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8057 PR optimization/4994
8058 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8061 2002-02-21 Jakub Jelinek <jakub@redhat.com>
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).
8076 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8079 * stmt.c (warn_if_unused_value): Move side effects test once more.
8081 2002-02-20 Torbjorn Granlund <tege@swox.com>
8083 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8084 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8086 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8088 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8089 SUBREG or ZERO_EXTEND.
8091 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
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.
8100 * sh64.h (TARGET_VERSION): Define.
8102 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8104 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8105 VRSAVE_REGNO on TARGET_ALTIVEC.
8107 2002-02-20 Alan Modra <amodra@bigpond.net.au>
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
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.
8120 2002-02-20 Jakub Jelinek <jakub@redhat.com>
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.
8128 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
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.
8139 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8141 * c-decl.c (pushdecl): If no global declaration is found for an
8142 extern declaration in block scope, try a limbo one.
8144 2002-02-20 Jakub Jelinek <jakub@redhat.com>
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.
8151 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8154 * c-decl.c (duplicate_decls): Return 0 if issued error about
8157 2002-02-20 Roger Sayle <roger@eyesopen.com>
8158 Jakub Jelinek <jakub@redhat.com>
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.
8168 2002-02-20 Richard Henderson <rth@redhat.com>
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.
8178 2002-02-20 Philip Blundell <philb@gnu.org>
8181 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8183 2002-02-20 Richard Henderson <rth@redhat.com>
8186 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8188 2002-02-20 Tom Tromey <tromey@redhat.com>
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
8197 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8199 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8200 for (const_int 0) in X not just INTVAL.
8202 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
8204 * doc/extend.texi: Avoid or reduce overfull hboxes.
8206 2002-02-20 Diego Novillo <dnovillo@redhat.com>
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.
8211 2001-02-20 Joel Sherrill <joel@OARcorp.com>
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.
8217 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
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.
8224 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8226 * toplev.c (output_quoted_string): Write unprintable
8227 characters with octal escapes.
8229 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8231 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
8232 really_call_used[VRSAVE_REGNO] if not Altivec.
8234 2002-02-19 Alan Modra <amodra@bigpond.net.au>
8236 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
8238 (constant_pool_expr_1): Fix formatting.
8239 (rs6000_legitimize_reload_address): Likewise.
8241 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8243 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
8244 now that we have one.
8246 2002-02-19 Zack Weinberg <zack@codesourcery.com>
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.
8252 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8254 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
8256 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8259 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
8263 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
8264 arm_is_longcall_p rather than inspecting call-type cookie
8266 (call_value_insn) [TARGET_THUMB]: Likewise.
8268 2002-02-19 Graham Stott <grahams@redhat.com>
8270 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
8272 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8274 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
8275 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
8276 (FP_SAVE_INLINE): Delete.
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.
8283 2002-02-19 Philip Blundell <philb@gnu.org>
8285 * config/arm/arm.c (use_return_insn): Don't reject interrupt
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
8293 2002-02-19 Philip Blundell <pb@nexus.co.uk>
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
8302 2002-02-19 matthew green <mrg@eterna.com.au>
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.
8309 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8311 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
8313 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
8315 * doc/invoke.texi: explicitly list the style guidelines that
8316 -Weffc++ checks for.
8318 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
8320 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
8322 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
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.
8328 2002-02-19 Kazu Hirata <kazu@hxi.com>
8330 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
8331 register number with an appropriate macro.
8333 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8335 * doc/rtl.texi (Constants): Close @code tag.
8337 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
8339 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
8340 ("mmx_uavgv4hi3"): Same.
8341 ("pmulhrwv4hi3"): Same.
8343 * tree-inline.c (walk_tree): Handle vectors.
8345 * c-common.c (constant_expression_warning): Handle vectors.
8346 (overflow_warning): Same.
8348 * sched-deps.c (sched_analyze_2): Handle vectors.
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.
8360 (inequality_comparisons_p): Same.
8361 (replace_regs): Same.
8362 (computed_jump_p_1): Same.
8364 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
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.
8372 * resource.c (mark_referenced_resources): Handle vectors.
8373 (mark_set_resources): Same.
8375 * reload1.c (eliminate_regs): Handle vectors.
8376 (elimination_effects): Same.
8377 (scan_paradoxical_subregs): Same.
8379 * reload.c (subst_reg_equivs): Handle vectors.
8381 * regrename.c (scan_rtx): Handle vectors.
8383 * regclass.c (reg_scan_mark_refs): Handle vectors.
8385 * recog.c (find_single_use_1): Handle vectors.
8387 * local-alloc.c (equiv_init_varies_p): Handle vectors.
8388 (contains_replace_regs): Same.
8389 (memref_referenced_p): Same.
8391 * integrate.c (copy_rtx_and_substitute): Handle vectors.
8392 (subst_constants): Same.
8394 * genattrtab.c (attr_copy_rtx): Handle vectors.
8395 (encode_units_mask): Same.
8396 (clear_struct_flag): Same.
8397 (count_sub_rtxs): Same.
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.
8407 * function.c (purge_addressof_1): Do not allow paradoxical subregs
8409 (fixup_var_refs_1): Same.
8410 (instantiate_virtual_regs_1): Same.
8412 * fold-const.c (operand_equal_p): Handle vectors.
8414 (rtl_expr_nonnegative_p): Same.
8416 * flow.c (mark_used_regs): Handle vectors.
8418 * df.c (df_uses_record): Handle vectors.
8420 * cselib.c (cselib_subst_to_values): Handle vectors.
8421 (cselib_mem_conflict_p): Same.
8424 * cse.c (canon_reg): Handle vectors.
8426 (cse_process_notes): Same.
8427 (count_reg_usage): Same.
8430 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
8432 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
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.
8442 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
8444 * doc/rtl.texi (Constants): Document const_vector.
8445 (CONST0_RTX): Update for vectors.
8446 (RTL sharing): Same.
8448 * print-tree.c (print_node): Add case for VECTOR_CST.
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.
8455 * tree.def (VECTOR_CST): New.
8457 * tree.c (build_vector): New.
8459 * expmed.c (make_tree): Handle CONST_VECTOR.
8461 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
8462 (CONST_VECTOR_ELT): New.
8463 (CONST_VECTOR_NUNITS): New.
8465 * machmode.h (GET_MODE_INNER): New.
8466 (DEF_MACHMODE): Accept 8th arg.
8468 * machmode.def: Add 8th argument for vector inner mode.
8469 Add inner vector modes for vectors.
8471 * rtl.def (VEC_CONST): Remove.
8472 (CONST_VECTOR): New.
8474 * expr.c (clear_storage): Allow vectors.
8475 (is_zeros_p): Handle VECTOR_CST.
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.
8482 * config/rs6000/rs6000-protos.h: Add zero_constant.
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
8491 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
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.
8502 2002-02-18 Kazu Hirata <kazu@hxi.com>
8504 * config/h8300/h8300.c (notice_update_cc): Use
8507 2002-02-18 Kazu Hirata <kazu@hxi.com>
8509 * config/h8300/h8300.md (divmod patterns): Change the
8510 constraints for operands[1] to register_operand.
8512 2002-02-18 Kazu Hirata <kazu@hxi.com>
8514 * config/h8300/h8300-protos.h: Remove the prototype for
8516 * config/h8300/h8300.c (p_operand): Remove.
8517 * config/h8300/h8300.md: Replace p_operand with
8520 2002-02-18 Philip Blundell <pb@nexus.co.uk>
8522 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
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.
8530 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
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.
8536 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
8538 * config/s390/s390.c (s390_emit_prologue): Do not set the
8539 frame_related flag for call-clobbered registers.
8541 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
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.
8548 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
8550 * regrename.c (kill_set_value): Handle subregs properly.
8552 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
8554 * objc/objc-act.c (handle_impent): Remove leading '*'
8555 from objc_class_name.
8557 2002-02-17 Richard Henderson <rth@redhat.com>
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.
8567 2002-02-17 Roland McGrath <roland@frob.com>
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.
8581 2002-02-17 Jakub Jelinek <jakub@redhat.com>
8584 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
8587 2002-02-17 Philipp Thomas <pthomas@suse.de>
8589 * config/cris/cris.h: Undefine STARTFILE_SPEC and
8590 ENDFILE_SPEC before (re)defining them.
8592 2002-02-17 Kazu Hirata <kazu@hxi.com>
8594 * config/h8300/h8300.c: Fix formatting.
8595 * config/h8300/h8300.h: Likewise.
8597 2002-02-17 Philipp Thomas <pthomas@suse.de>
8599 * doc/tm.texi: Explain why empty strings should not be
8600 marked for translation.
8602 2002-02-17 Philipp Thomas <pthomas@suse.de>
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.
8612 * config/i386/i386.c (print_operand): Likewise. Remove use of
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.
8620 2002-02-17 Kazu Hirata <kazu@hxi.com>
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
8631 2002-02-17 Philipp Thomas <pthomas@suse.de>
8633 * config/i386/i386.h: Don't mark empty strings for translation.
8635 2002-02-16 H.J. Lu <hjl@gnu.org>
8637 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
8639 2002-02-16 Zack Weinberg <zack@codesourcery.com>
8641 * cppinit.c (merge_include_chains): Check for brack being
8642 NULL before attempting to merge it with qtail.
8644 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8646 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
8649 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8651 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
8653 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
8659 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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.
8665 2002-02-16 Douglas B Rupp <rupp@gnat.com>
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.
8674 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8676 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
8678 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
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.
8685 * config/s390/s390.h (S390_REL_MAX): Delete.
8686 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
8688 * config/s390/s390.md (cjump, icjump, jump): Fix length
8689 attribute calculation.
8692 2002-02-15 David Edelsohn <edelsohn@gnu.org>
8694 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
8695 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
8697 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
8703 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8705 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
8707 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8709 * reload.c (find_dummy_reload): Check that an output register
8710 is valid for its mode.
8712 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
8714 * combine.c (known_cond): After replacing the REG of a SUBREG, try
8717 * function.c (assign_parms): Demote promoted argument passed by
8718 transparent reference.
8720 2001-02-14 Joel Sherrill <joel@OARcorp.com>
8722 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
8723 -Acpu() and -Amachine() to eliminate warnings.
8725 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
8727 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
8729 2002-02-14 Kazu Hirata <kazu@hxi.com>
8731 * config/h8300/h8300-protos.h: Update the prototype for
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.
8738 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
8740 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
8742 2002-02-14 Jakub Jelinek <jakub@redhat.com>
8745 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
8746 use arguments from newtype.
8748 2002-02-13 Eric Christopher <echristo@redhat.com>
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.
8754 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
8756 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
8758 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
8760 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
8762 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
8764 ("*movv8hi_internal1"): Same.
8765 ("*movv16qi_internal1"): Same.
8766 ("*movv4sf_internal1"): Same.
8768 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
8769 not push_reload for altivec modes.
8771 2002-02-13 Joel Sherrill <joel@OARcorp.com>
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
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:
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
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++.
8802 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
8804 * regmove.c (kill_value): Handle subregs.
8806 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
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.
8813 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
8816 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8819 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
8822 2002-02-13 Jakub Jelinek <jakub@redhat.com>
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.
8829 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
8831 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
8832 after emitting ltorg insns.
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.
8839 2002-02-13 Douglas B Rupp <rupp@gnat.com>
8841 * mkconfig.sh: Avoid using a subshell redirect.
8842 ($output.T): Change to $(output)T.
8843 (ENABLE_NLS): Remove unneeded undef.
8845 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
8846 * config/alpha/x-vms (libsubdir): Define.
8848 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
8849 register frame procedures. Optimize retrieving context.
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.
8855 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8857 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
8858 Make same change as for find_base_value.
8860 2002-02-13 Kazu Hirata <kazu@hxi.com>
8862 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
8863 of QImode and SImode.
8865 2002-02-13 Kazu Hirata <kazu@hxi.com>
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.
8871 2002-02-13 Kazu Hirata <kazu@hxi.com>
8873 * config/h8300/h8300.md (subqi3): Tighten the predicate for
8874 operands[2] to register_operand.
8876 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
8878 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8880 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
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.
8889 * config/rs6000/rs6000.c (altivec_register_operand): New.
8891 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8892 altivec_register_operand.
8894 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
8896 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8899 2002-02-13 Stan Shebs <shebs@apple.com>
8901 * c-typeck.c (digest_init): Handle vectors.
8902 (really_start_incremental_init): Same.
8903 (pop_init_level): Same.
8904 (process_init_element): Same.
8906 * varasm.c (output_constant): Same.
8908 * expr.c (clear_storage): Same.
8909 (store_constructor): Same.
8911 2002-02-12 Eric Christopher <echristo@redhat.com>
8913 * explow.c (hard_function_value): Add comment explaining
8914 signed/unsigned comparison.
8916 2002-02-12 Jakub Jelinek <jakub@redhat.com>
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.
8926 2002-02-12 Graham Stott <grahams@redhat.com>
8928 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8930 2002-02-12 Kazu Hirata <kazu@hxi.com>
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.
8937 2002-02-12 Graham Stott <grahams@redhat.com>
8939 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8941 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8943 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8944 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8946 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
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.
8953 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8955 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8957 * config/pa/pa-linux.h (LIB_SPEC): Delete.
8958 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8960 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
8962 * config/stormy16/stormy16.md (zero_extendqihi2): New.
8964 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
8966 * regrename.c (regrename_optimize): Don't accept a
8967 part-clobbered register if the replaced register is not part
8970 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8971 take padding into account when computing the argument value.
8973 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8975 * combine.c (try_combine): Apply substitutions in
8976 CALL_INSN_FUNCTION_USAGE too.
8978 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
8980 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8981 __builtin_altivec_abs*.
8984 * config/rs6000/rs6000.h (rs6000_builtins): Add
8985 ALTIVEC_BUILTIN_ABS*.
8987 * config/rs6000/altivec.h: Use const char for builtins expecting
8989 (vec_abs): New versions for C and C++.
8992 2002-02-10 Kazu Hirata <kazu@hxi.com>
8994 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8997 2002-02-10 Kazu Hirata <kazu@hxi.com>
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.
9004 2002-02-10 Kazu Hirata <kazu@hxi.com>
9006 * config/h8300/h8300.c (print_operand): Remove redundant code.
9008 2002-02-10 Kazu Hirata <kazu@hxi.com>
9010 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9011 * config/h8300/h8300.c (byte_reg): Make it static.
9013 2002-02-10 Richard Henderson <rth@redhat.com>
9016 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9018 2002-02-10 Richard Henderson <rth@redhat.com>
9021 * tree.c (append_random_chars): Don't abort if main_input_filename
9024 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9026 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9028 2002-02-10 Kazu Hirata <kazu@hxi.com>
9030 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9031 (pushhi1): Likewise.
9033 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
9038 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9040 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9042 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9044 2002-02-09 Kazu Hirata <kazu@hxi.com>
9046 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9047 a half of an SImode register on H8/300.
9049 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9051 * i386.md (movdi_2): Add missing '!'.
9053 2002-02-09 Kazu Hirata <kazu@hxi.com>
9055 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9058 2002-02-09 Kazu Hirata <kazu@hxi.com>
9060 * config/h8300/h8300.md (length): Correct the distance valid
9061 for the short branch.
9063 2002-02-09 Kazu Hirata <kazu@hxi.com>
9065 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9067 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
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
9074 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
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
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
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
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
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
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
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
9210 (movv4sf, movv16sf): Introduce insns that get split only after
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
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
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
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
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
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
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
9307 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
9309 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
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
9315 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
9317 (udivsi3, divsi3): Use them.
9318 (force_mode_for_call): New insn.
9319 (call, call_value, sibcall_value): Emit it before SHcompact
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
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
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
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
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
9360 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
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
9392 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
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
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)
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
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
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
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
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.
9454 * config/sh/lib1funcs.asm: Add `.align 2' directives before
9456 (FMOVD_WORKS): Define on SH5 with FPU.
9457 (set_fpscr): Define on SH5. Remove separate _fpscr_values
9459 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
9461 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
9462 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
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
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.
9478 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
9480 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
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
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
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
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
9528 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9529 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
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
9536 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
9537 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
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
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
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
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.
9714 (MAX_MOVE_MAX): Define.
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.
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
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
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.
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
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
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):
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
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
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
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.
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.
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.
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.
9976 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9978 * config/mips/mips.md (casesi_internal, casesi_internal_di):
9979 Protect jump delay slot instructions with .set noreorder and
9982 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9984 * config/mips/mips.md (casesi_internal_di): Calculate
9985 the index into the target offset table correctly.
9987 2002-02-08 Richard Henderson <rth@redhat.com>
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.
9996 2002-02-08 David Edelsohn <edelsohn@gnu.org>
9998 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10000 2002-02-08 Richard Henderson <rth@redhat.com>
10002 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10004 2002-02-08 Andreas Jaeger <aj@suse.de>
10006 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10007 * config/i386/t-linux64: New file.
10009 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10011 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10012 * c-parse.in (compstmt): Clear last_expr_type.
10014 2002-02-07 Richard Henderson <rth@redhat.com>
10016 * loop.c (strength_reduce): Sink final_value when not
10019 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10021 * config/sparc/freebsd.h: Fix mismatched spec {.
10023 2002-02-07 Richard Henderson <rth@redhat.com>
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.
10029 2002-02-07 Kazu Hirata <kazu@hxi.com>
10031 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10032 comment. Accept HImode only if TARGET_H8300.
10034 2002-02-07 Eric Christopher <echristo@redhat.com>
10036 * config/mips/crtn.asm: Cleanup #ifdefs.
10038 2002-02-07 Eric Christopher <echristo@redhat.com>
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
10054 2002-02-07 Tom Rix <trix@redhat.com>
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.
10062 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10064 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10065 offset for stack bias.
10067 2002-02-07 H.J. Lu <hjl@gnu.org>
10069 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10071 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10073 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10075 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
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.
10082 2002-02-07 Richard Henderson <rth@redhat.com>
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.
10088 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10090 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10093 2002-02-06 Richard Henderson <rth@redhat.com>
10096 * stmt.c (resolve_operand_name_1): Take more care with mixed
10097 named and unnamed operands.
10099 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10100 Jan Hubicka <jh@suse.cz>
10102 * loop.c (remove_constant_addition): Avoid clobbering a shared
10105 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
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.
10111 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
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.
10129 2002-02-06 Jason Merrill <jason@redhat.com>
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.
10147 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10150 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10151 unsafe for reevaluation.
10153 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10156 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10157 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10159 2002-02-06 Richard Henderson <rth@redhat.com>
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.
10164 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10166 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10167 as SYMBOL_REFs from the constant pool.
10169 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10171 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10172 passed by invisible reference.
10174 2002-02-05 Richard Henderson <rth@redhat.com>
10176 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10178 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
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.
10210 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10212 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
10214 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
10216 * config/rs6000/altivec.h: Change elem to _S_elem.
10218 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
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.
10236 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
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.
10255 2002-02-05 Jason Merrill <jason@redhat.com>
10257 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
10259 2002-02-05 Andreas Jaeger <aj@suse.de>
10261 * crtstuff.c: Fix comments.
10263 2002-02-05 Richard Henderson <rth@redhat.com>
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.
10270 * config/mips/mips.c (function_arg): Handle TImode.
10271 (function_arg_advance): Likewise.
10273 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10275 * config/rs6000/altivec.h (vec_step_help): Rename to
10278 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10280 * config/rs6000/altivec.h: Fix typos.
10282 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10284 * config/arm/netbsd.h: Correct a comment.
10286 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10288 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
10289 building void typed builtins.
10291 * config/rs6000/altivec.h (vec_ld*): Fix typos.
10292 (vec_step): Implement for C++.
10294 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10296 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
10298 2002-02-04 Richard Henderson <rth@redhat.com>
10300 * combine.c (nonzero_bits): Re-introduce special case for
10301 sp/fp/ap wrt REGNO_POINTER_ALIGN.
10303 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10305 * doc/extend.texi: Warn about unsupported usage of altivec
10308 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
10309 (altivec_predicate_*): New.
10311 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
10312 Add C++ version of vec_*() functions.
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.
10320 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
10329 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10331 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
10333 2002-02-04 Jakub Jelinek <jakub@redhat.com>
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.
10349 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10351 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
10352 (BIGGEST_ALIGNMENT): Change to 128.
10354 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10356 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
10358 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10360 * pa.md (call_internal_reg_64bit): Remove unused variable.
10362 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
10364 * config/arm/arm.h (machine_function): Add uses_anonymous_args
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.
10371 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
10372 any geenral register.
10374 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
10376 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
10379 2002-02-04 Richard Henderson <rth@redhat.com>
10381 * combine.c (force_to_mode): Remove STACK_BIAS code.
10382 (nonzero_bits): Likewise. Replace sp/fp special case with
10383 REGNO_POINTER_ALIGN.
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.
10411 2002-02-04 Richard Henderson <rth@redhat.com>
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.
10423 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
10425 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
10426 function types, not when they're taken away.
10428 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
10430 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
10431 CODE_LABEL and jump table when replacing a table jump with a
10434 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
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.
10440 config/s390/s390.c (s390_secondary_input_reload_class,
10441 s390_plus_operand, s390_expand_plus_operand): New functions.
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.
10449 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
10450 (PREDICATE_CODES): Add s390_plus_operand.
10452 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
10453 (la_ccclobber): Allow GENERAL_REGS as output operand.
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.
10459 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10461 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
10462 register names for regular asm () construct.
10464 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10466 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
10469 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10471 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
10474 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
10476 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
10477 constant pool to be identical by string address and index.
10479 2002-02-04 Anthony Green <green@redhat.com>
10481 * output.h (SECTION_OVERRIDE): Define.
10482 * varasm.c (named_section): Obey SECTION_OVERRIDE.
10484 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
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.
10492 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
10494 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
10495 headers and libobjc headers.
10497 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
10499 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
10500 (_mingw.h): Remove duplicate include.
10502 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
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.
10509 2002-02-02 Kazu Hirata <kazu@hxi.com>
10511 * config/h8300/h8300.c (hand_list): Move inside function_arg.
10513 2002-02-02 Kazu Hirata <kazu@hxi.com>
10515 * config/h8300/h8300.c (h8_push_ops): Move inside
10517 (h8_pop_ops): Likewise.
10518 (h8_move_ops): Likewise.
10520 2002-02-02 Kazu Hirata <kazu@hxi.com>
10522 * config/h8300/h8300.c (os_task): Make it static.
10523 (monitor): Likewise.
10524 (pragma_saveall): Likewise.
10526 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
10528 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
10529 constant is a valid sign-extension for Pmode.
10531 2002-02-02 Kazu Hirata <kazu@hxi.com>
10533 * config/h8300/h8300.c: Fix formatting.
10535 2002-02-02 Kazu Hirata <kazu@hxi.com>
10537 * config/h8300/h8300.md: Fix formatting.
10539 2002-02-02 Kazu Hirata <kazu@hxi.com>
10541 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
10542 predicates of operands[1]. Split the patterns for each
10545 2002-02-02 Kazu Hirata <kazu@hxi.com>
10547 * config/h8300/h8300.md (xor patterns): Tighten the predicates
10548 of operands[1] to register_operand.
10550 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
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.
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.
10577 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
10579 2002-02-01 Eric Christopher <echristo@redhat.com>
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.
10586 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10588 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
10591 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10593 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
10595 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10598 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
10601 2002-02-01 Janis Johnson <janis187@us.ibm.com>
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.
10607 2002-02-01 DJ Delorie <dj@redhat.com>
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.
10615 2002-02-01 David O'Brien <obrien@FreeBSD.org>
10617 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
10620 2002-02-01 Janis Johnson <janis187@us.ibm.com>
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.
10626 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
10628 * doc/install.texi (avr): Update outdated URL.
10630 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
10632 * config/stormy16/stormy16.md (pushqi): New.
10636 (movhi): Remove stack operands.
10638 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
10639 nonimmediate_nonstack_operand.
10640 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
10642 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
10645 2002-01-31 Jason Merrill <jason@redhat.com>
10647 * Makefile.in (c-parse.c): Handle .output file.
10648 * objc/Make-lang.in (objc-parse.c): Likewise.
10650 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
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
10656 2002-01-31 Zack Weinberg <zack@codesourcery.com>
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.
10663 2002-01-31 Kazu Hirata <kazu@hxi.com>
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.
10670 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10672 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
10673 version rather than GNATS version in --version output.
10675 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
10677 * ifcvt.c (noce_process_if_block): Make a copy of the destination
10678 when copying back from a temporary.
10680 2002-01-30 Richard Henderson <rth@redhat.com>
10682 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
10683 and new_dest are the same.
10685 2002-01-30 Richard Henderson <rth@redhat.com>
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.
10698 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
10700 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
10701 arguments to 64-bit boundaries on 64-bit ABIs.
10703 2002-01-30 Steve Ellcey <sje@cup.hp.com>
10705 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
10707 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10709 * c-decl.c (grokdeclarator): Handle type being a typedef for an
10712 2002-01-30 David O'Brien <obrien@FreeBSD.org>
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).
10718 2002-01-30 Richard Henderson <rth@redhat.com>
10720 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
10722 2002-01-30 Zack Weinberg <zack@codesourcery.com>
10724 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
10726 2002-01-30 Jason Merrill <jason@redhat.com>
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.
10732 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
10734 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10736 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
10739 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
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.
10749 2002-01-29 Richard Henderson <rth@redhat.com>
10751 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
10753 2002-01-29 Richard Henderson <rth@redhat.com>
10755 * expr.c (force_operand): Ignore flag_pic for detecting pic
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.
10764 2002-01-29 Richard Henderson <rth@redhat.com>
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.
10771 2002-01-29 Jakub Jelinek <jakub@redhat.com>
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.
10777 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
10779 * tree.c (build_nonstandard_integer_type): Correct prototype.
10781 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
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.
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.
10795 (divmoddi4): Don't partially initialize TImode register.
10797 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
10799 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
10801 2002-01-29 Richard Henderson <rth@redhat.com>
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.
10809 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
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
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.
10826 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
10828 2002-01-29 Jakub Jelinek <jakub@redhat.com>
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
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.
10847 2002-01-29 Kazu Hirata <kazu@hxi.com>
10849 * config/h8300/h8300-protos.h: Update the prototype of
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
10856 2002-01-29 Kazu Hirata <kazu@hxi.com>
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.
10864 2002-01-28 Kazu Hirata <kazu@hxi.com>
10866 * config/h8300/h8300-protos.h: Update the prototype of
10868 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
10870 * config/h8300/h8300.md: Adjust to the new prototype.
10872 2002-01-28 Kazu Hirata <kazu@hxi.com>
10874 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
10877 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
10884 2002-01-28 Jason Merrill <jason@redhat.com>
10886 * dwarf2.h: Sync with src version.
10888 2002-01-28 Paul Koning <pkoning@equallogic.com>
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.
10896 2002-01-28 Kazu Hirata <kazu@hxi.com>
10898 * config/h8300/h8300-protos.h: Remove an unused prototype.
10900 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
10902 * toplev.c (lang_independent_init): Round up identifier size.
10904 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10906 * config.gcc: Revert previous change.
10908 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
10910 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10912 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
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.
10922 2002-01-28 Kazu Hirata <kazu@hxi.com>
10924 * config/h8300/h8300.h: Fix formatting.
10925 * config/h8300/h8300.md: Likewise.
10927 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
10929 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10930 the old, removed AAA_standards fix.
10931 * fixinc/fixincl.x: Rebuilt.
10933 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
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.
10939 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
10941 * config/rs6000/altivec.h: Remove spurious semicolons.
10943 2002-01-27 Kazu Hirata <kazu@hxi.com>
10945 * config/h8300/h8300.md: Replace dead bit extraction patterns
10946 with ones that work.
10948 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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.
10954 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
10956 * doc/invoke.texi (-fdump-translation-unit): Revert this
10957 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
10959 2002-01-27 Kazu Hirata <kazu@hxi.com>
10961 * config/h8300/h8300.md (define_constants): New.
10962 (anonymous patterns) Use defined constants appropriately.
10964 2002-01-27 Kazu Hirata <kazu@hxi.com>
10966 * config/h8300/h8300.c (function_arg): Remove redundant code.
10968 2002-01-26 Richard Henderson <rth@redhat.com>
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.
10996 2002-01-26 Richard Henderson <rth@redhat.com>
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.
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.
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.
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.
11026 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11027 FORCE_{INIT,FINI}_SECTION_ALIGN.
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.
11033 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11034 (FORCE_CODE_SECTION_ALIGN): New.
11036 2002-01-26 Richard Henderson <rth@redhat.com>
11038 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11040 2002-01-26 Richard Henderson <rth@redhat.com>
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.
11045 2002-01-26 Kazu Hirata <kazu@hxi.com>
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
11052 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11054 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11056 2002-01-26 Kazu Hirata <kazu@hxi.com>
11058 * config/h8300/h8300.md: Remove bit test patterns that cannot
11060 Restrict each bit test pattern to a variant on which the
11063 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11065 * builtins.c (expand_builtin_strncat): Remove redundant check for
11068 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11070 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11072 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11075 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11077 * dbxout.c (dbxout_init): Use assemble_name rather than just
11078 stripping off the first character.
11079 (dbxout_source_file): Likewise.
11081 2002-01-25 DJ Delorie <dj@redhat.com>
11083 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11084 using rtx_equal_p, not by comparing pointers.
11086 2002-01-25 Steve Ellcey <sje@cup.hp.com>
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.
11092 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11094 * config.gcc (x86_64-*-freebsd*): New target.
11095 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11097 (i[34567]86-*-freebsd*): Don't include svr4.h.
11098 * config/i386/freebsd64.h: New file.
11100 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11102 * config/alpha/x-vms (version): Make static.
11104 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11105 in previous checkin.
11107 * Makefile.in (install-headers-cp): New target.
11108 * config.gcc (alpha-dec-*vms*): Install headers with
11111 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11113 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11116 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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.
11125 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11127 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11128 adjustments even if they are implemented by more than two insns.
11130 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
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.
11136 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11137 * flow.c (propagate_one_insn): Use it.
11138 (mark_used_regs): Handle NIL.
11140 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11142 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11145 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11147 * rs6000.md (prefetch): Make address V4SI mode so that the address
11148 is restricted to legitimate form for instruction.
11150 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11152 * doc/install.texi (xtensa-*-elf): New target.
11153 (xtensa-*-linux*): New target.
11154 * doc/contrib.texi: Add myself.
11156 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11158 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11159 purpose register to hold an SImode (or smaller) value.
11161 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11163 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11165 * crtstuff.c: Likewise.
11167 2002-01-25 Kazu Hirata <kazu@hxi.com>
11169 * config/h8300/h8300.md (negation patterns): Tighten
11170 predicates to register_operand.
11172 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11174 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11177 * builtins.c (expand_builtin_prefetch): Same.
11179 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11181 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11184 2002-01-24 Kazu Hirata <kazu@hxi.com>
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'.
11191 2002-01-24 Kazu Hirata <kazu@hxi.com>
11193 * config/h8300/h8300.c (print_operand): Remove support for
11194 operand character 'U'.
11196 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11198 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11200 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
11202 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
11203 values to be assigned to the stack pointer.
11205 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11207 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
11208 to const_double needs to be done right for big-endian systems.
11210 2002-01-24 Jason Merrill <jason@redhat.com>
11213 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
11214 to can_throw_internal.
11216 2002-01-23 Richard Henderson <rth@redhat.com>
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.
11221 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
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).
11230 2002-01-23 Kazu Hirata <kazu@hxi.com>
11232 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
11233 accept to accept 0x80 as operands[2].
11235 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11237 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
11239 2002-01-23 Richard Henderson <rth@redhat.com>
11241 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
11243 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
11245 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
11246 (parmlist_or_identifiers_1): Verify that only a parmlist follows
11249 2002-01-23 Richard Henderson <rth@redhat.com>
11251 * expr.c (move_by_pieces_1): Extend size before negation.
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.
11258 2002-01-23 Bob Wilson <bob.wilson@acm.org>
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
11277 * doc/invoke.texi (Option Summary): Add Xtensa options.
11278 (Xtensa Options): New node.
11279 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
11281 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11283 * diagnostic.c (internal_error): Do ICE suppression only
11284 when ENABLE_CHECKING is not defined.
11286 * c-typeck.c (require_complete_type): Return error_mark_node
11287 if type is error_mark_node.
11289 2002-01-23 Janis Johnson <janis187@us.ibm.com>
11291 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
11292 -Os and issue a warning.
11294 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11296 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
11297 current (lack of) need for host configuration by hand.
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.
11303 2002-01-23 Will Cohen <wcohen@redhat.com>
11305 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
11308 2002-01-23 Kazu Hirata <kazu@hxi.com>
11310 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
11313 2002-01-23 Jason Merrill <jason@redhat.com>
11315 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
11317 * function.c (assign_parms): Don't put args of inline functions
11318 into registers when not optimizing.
11320 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
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
11328 (thumb_expand_epilogue): Use gen_prologue_use in preference to
11331 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
11333 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
11335 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
11338 * doc/extend.texi: Correct documentation of __alignof__.
11340 2002-01-22 Zack Weinberg <zack@codesourcery.com>
11342 * params.h: Rename arguments of DEFPARAM so that it will be
11343 recognized as a translation keyword.
11345 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11347 * extend.texi: Document altivec functions.
11348 Fix N-bit adjectives in X86 builtin documentation.
11350 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11352 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
11353 auto_inc_dec values.
11355 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
11357 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
11359 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
11361 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11363 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
11365 2002-01-22 Richard Henderson <rth@redhat.com>
11367 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
11368 copy_insn not copy_rtx.
11370 2002-01-23 Alan Modra <amodra@bigpond.net.au>
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.
11377 2002-01-22 Richard Henderson <rth@redhat.com>
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.
11385 2002-01-22 Richard Henderson <rth@redhat.com>
11387 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
11388 sequence number for the literal.
11389 (divmoddi_internal_er): Likewise.
11391 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11394 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
11395 in LIBICONV variable.
11396 * configure: Regenerated.
11398 2002-01-22 Krister Walfridsson <cato@df.lth.se>
11400 * dependence.c (build_def_use): Remove array_idx.
11402 * dwarfout.c (last_filename): Remove.
11403 (output_compile_unit_die): Remove last_filename.
11405 2002-01-22 Roger Sayle <roger@eyesopen.com>
11406 Richard Henderson <rth@redhat.com>
11409 * fold-const.c (fold): Optimize unsigned comparisons against
11410 UINT_MAX (and similar unsigned constants).
11412 2002-01-22 Janis Johnson <janis187@us.ibm.com>
11414 * Makefile.in (loop.o): Depend on OPTABS_H.
11415 * loop.c (emit_prefetch_instructions): Check the prefetch operand
11416 against the predicate.
11419 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
11420 for the address operand.
11422 2002-01-22 Richard Henderson <rth@redhat.com>
11424 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
11426 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11429 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
11430 preprocessor flags.
11432 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
11434 * config.gcc (x86_64-*-netbsd*): New target.
11435 * config/i386/netbsd64.h: New file.
11437 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11439 * regrename.c (kill_value): Fix typo.
11441 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11443 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
11445 * config/rs6000/rs6000.h: Same.
11447 * function.c (instantiate_virtual_regs): Remove
11448 STARTING_FRAME_PHASE.
11449 (assign_stack_local_1): Same.
11450 Calculate frame phase.
11452 2002-01-22 Nick Clifton <nickc@redhat.com>
11454 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
11455 variable declaration to outer scope in order to simplify
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.
11468 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
11470 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
11472 2002-01-22 Jason Merrill <jason@redhat.com>
11474 * c-semantics.c (genrtl_compound_stmt): Only check nesting
11475 consistency if this COMPOUND_STMT is scoped.
11477 2002-01-22 Kazu Hirata <kazu@hxi.com>
11479 * predict.c: Fix formatting.
11480 * print-tree.c: Likewise.
11481 * protoize.c: Likewise.
11482 * real.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.
11491 * ssa-ccp.c: Likewise.
11492 * ssa-dce.c: Likewise.
11493 * stmt.c: Likewise.
11494 * stor-layout.c: Likewise.
11495 * system.h: Likewise.
11497 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11499 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
11500 if fits in bounds of base type.
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
11506 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
11508 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
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.
11514 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
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
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.
11559 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
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".
11566 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11568 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
11570 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
11579 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11581 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
11583 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
11585 * config.gcc: Add entries to supported PowerPC --with-cpu
11588 2002-01-21 Jakub Jelinek <jakub@redhat.com>
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.
11593 2002-01-21 Kazu Hirata <kazu@hxi.com>
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.
11602 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
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):
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.
11620 2002-01-21 Kazu Hirata <kazu@hxi.com>
11622 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
11624 Remove redundant code.
11626 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
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.
11636 2002-01-20 Kazu Hirata <kazu@hxi.com>
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.
11648 2002-01-20 Kazu Hirata <kazu@hxi.com>
11650 * config/h8300/h8300.c: Revise comments about shift code.
11652 2002-01-20 Kazu Hirata <kazu@hxi.com>
11654 * config/h8300/h8300.c (function_arg): Update a comment.
11656 2002-01-20 Kazu Hirata <kazu@hxi.com>
11658 * config/h8300/h8300.md: Update the comments at the beginning
11661 2002-01-20 Kazu Hirata <kazu@hxi.com>
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.
11668 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11670 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
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.
11676 2002-01-20 Graham Stott <grahams@redhat.com>
11678 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
11680 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
11682 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
11684 2002-01-19 Tom Rix <trix@redhat.com>
11686 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
11688 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
11690 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
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.
11698 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
11700 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
11702 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
11704 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
11706 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
11707 be used for bootstrapping GCC 3.0.
11709 2002-01-18 Kazu Hirata <kazu@hxi.com>
11711 * config/h8300/h8300.md: Fix an insn length.
11713 2002-01-18 Kazu Hirata <kazu@hxi.com>
11715 * bitmap.h: Fix comment formatting.
11716 * combine.c: Likewise.
11717 * cppfiles.c: Likewise.
11718 * c-pragma.h: Likewise.
11719 * c-typeck.c: Likewise.
11721 * dwarf2out.c: Likewise.
11722 * function.c: Likewise.
11724 * genattrtab.c: Likewise.
11725 * gthr-win32.h: Likewise.
11726 * haifa-sched.c: Likewise.
11727 * predict.c: Likewise.
11728 * rtlanal.c: Likewise.
11730 * unwind-dw2-fde.h: Likewise.
11731 * unwind-pe.h: Likewise.
11732 * vmsdbgout.c: Likewise.
11734 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11736 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
11737 if type_required and passed decl.
11739 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
11741 * config.gcc (cpu_type): Include altivec.h in powerpc
11745 * config/rs6000/altivec.h: New.
11747 2002-01-17 David Edelsohn <edelsohn@gnu.org>
11749 * doc/install.texi (*-ibm-aix*): Update assembler and exception
11750 handling information.
11751 * doc/trouble.texi (Interoperation): Add libstdc++ information
11753 (Misunderstandings): Add template instantiation and static template
11754 member information for AIX.
11756 2002-01-17 Jason Merrill <jason@redhat.com>
11758 * dbxout.c (dbxout_type): Support const and volatile.
11760 * except.c (add_partial_entry): Remove backwards compatibility code.
11761 (end_protect_partials): Likewise.
11763 2002-01-17 Jakub Jelinek <jakub@redhat.com>
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.
11772 2002-01-16 Eric Christopher <echristo@redhat.com>
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.
11781 2002-01-16 H.J. Lu <hjl@gnu.org>
11783 * config/mips/linux.h: Include "mips/abi64.h".
11785 2002-01-16 H.J. Lu <hjl@gnu.org>
11787 * config/mips/t-linux: New.
11789 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
11791 * config/mips/linux.h: Don't include "gofast.h".
11792 (INIT_SUBTARGET_OPTABS): Removed.
11794 2002-01-16 Kazu Hirata <kazu@hxi.com>
11796 * config/h8300/h8300-protos.h: Replace emit_a_shift with
11798 * config/h8300/h8300.c: Likewise.
11799 * config/h8300/h8300.md: Likewise.
11801 2002-01-16 Kazu Hirata <kazu@hxi.com>
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.
11808 2002-01-16 Kazu Hirata <kazu@hxi.com>
11810 * doc/extend.texi: Replace "option" with "attribute"
11813 2002-01-16 Jakub Jelinek <jakub@redhat.com>
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)).
11820 2002-01-16 Jakub Jelinek <jakub@redhat.com>
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.
11829 2002-01-16 Kazu Hirata <kazu@hxi.com>
11831 * doc/invoke.texi: Change the dump file name of block
11832 reordering pass from 28.bbro to 29.bbro.
11833 Mention -dk option.
11835 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
11837 * i386.md (minsf splitter): Fix pasto.
11839 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
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.
11848 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11851 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
11852 MASK_V8 being both set.
11854 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
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.
11862 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
11864 * config/arm/arm.c: General formatting tidy up.
11866 2002-01-16 Graham Stott <grahams@redhat.com>
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.
11876 2002-01-16 Graham Stott <grahams@redhat.com>
11878 * sched-rgn.c (passed): Use sbitmap_free.
11879 (header): Likewise.
11881 (in_queue): Likewise.
11882 (in_stack): Likewise.
11884 2002-01-15 Eric Christopher <echristo@redhat.com>
11886 * flow.c (propagate_one_insn): Change to use fatal_insn.
11888 2002-01-15 Kazu Hirata <kazu@hxi.com>
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.
11917 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
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.
11933 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11935 * config.gcc: Change altivec.h to altivec-defs.h.
11937 * config/rs6000/altivec.h: Delete.
11939 * config/rs6000/altivec-defs.h: Add.
11941 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11943 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11946 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11947 less than or equal to eight bytes.
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.
11954 2002-01-15 Jason Merrill <jason@redhat.com>
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
11964 (expand_stmt): Handle seeing one.
11966 2002-01-15 Eric Christopher <echristo@redhat.com>
11968 * flow.c (propagate_one_insn): Add error message and print out
11969 insn for debugging.
11971 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
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
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.
11987 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
11989 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11990 not work on this platform currently.
11992 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11994 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11995 readonly_warning in _().
11997 2002-01-15 Douglas B Rupp <rupp@gnat.com>
11999 * gcc.c (delete_if_ordinary): Backout previous change.
12001 2002-01-15 Kazu Hirata <kazu@hxi.com>
12003 * config/h8300/h8300.c (print_operand): Remove support for
12004 unused operand characters.
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.
12015 2002-01-15 Kazu Hirata <kazu@hxi.com>
12017 * config/i386/i386.c: Fix formatting.
12019 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12021 * c-typeck.c (process_init_element): Don't save_expr
12022 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12024 2002-01-15 David Edelsohn <edelsohn@gnu.org>
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.
12030 2002-01-15 Andreas Jaeger <aj@suse.de>
12032 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12034 2002-01-15 Kazu Hirata <kazu@hxi.com>
12036 * mips-tfile.c: Fix formatting.
12038 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12040 * unroll.c (final_reg_note_copy): Fix previous commit.
12042 2002-01-14 Kazu Hirata <kazu@hxi.com>
12044 * config/h8300/h8300-protos.h: Remove the prototype for
12046 * config/h8300/h8300.c (eq_operator): Remove.
12048 2002-01-14 Richard Henderson <rth@redhat.com>
12050 * config/i386/i386.md (prefetch): Tidy.
12051 (prefetch_3dnow): Fix locality operand.
12053 2002-01-14 Richard Henderson <rth@redhat.com>
12055 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12056 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12058 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12060 * reload1.c (reload_combine): Pass reg_sum replacement through
12061 copy_rtx in loop performing multiple changes.
12063 2002-01-14 Jakub Jelinek <jakub@redhat.com>
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
12070 (remove_exception_handler_label): Don't die if
12071 find_exception_handler_labels hasn't been called for the current
12074 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12076 * toplev.c (rest_of_compilation): Rebuild jump labels after
12079 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12081 * doc/extend.texi: Move documentation of X86 built-in functions
12083 * doc/invoke.texi: From here.
12084 * doc/sourcebuild.texi: Document location of documentation for
12085 machine built-in functions.
12087 2002-01-13 Christopher Faylor <cgf@redhat.com>
12089 * cppfiles.c (TEST_THRESHOLD): New macro.
12090 (SHOULD_MMAP): Ditto.
12091 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12094 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12096 * unroll.c (final_reg_note_copy): Properly handle
12098 (unroll_loops): Fix LOOP_CONDITION heuristics.
12100 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12102 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12103 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12105 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12107 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12110 2002-01-14 Tom Rix <trix@redhat.com>
12112 * config/rs6000/rs6000.md: Fix typo with sradi.
12114 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
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.
12120 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12122 (movti splitter): Never use register 0 as base register.
12124 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12126 * combine.c (simplify_shift_const): Always generate new rtx
12127 for shift expression instead of reusing given expression.
12129 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12131 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12132 alpha_legitimize_address unless mode is Pmode.
12134 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12136 * doc/md.texi (Modifiers): Document the '*' constraint for the
12139 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12140 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12143 2002-01-13 Richard Henderson <rth@redhat.com>
12145 * reload.c (find_reloads): Use a hard reg destination as reload reg
12146 for an input reload of the source.
12148 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12150 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12153 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12155 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12156 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12158 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12160 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12162 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12164 2002-01-12 Tom Rix <trix@redhat.com>
12166 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12169 2002-01-12 Richard Henderson <rth@redhat.com>
12171 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12173 * doc/invoke.texi: Update Alpha options.
12175 * doc/invoke.texi: Update i386 built-in function lists.
12177 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12179 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12180 referencing outside.
12182 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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.
12190 2002-01-12 Graham Stott <grahams@redhat.com>
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.
12199 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
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.
12205 2002-01-12 Richard Henderson <rth@redhat.com>
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.
12227 2002-01-11 Richard Henderson <rth@redhat.com>
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
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
12239 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
12241 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12243 * conflict.c (conflict_graph_compute): Free regsets when finished.
12244 * ssa.c (compute_coalesced_reg_partition): Likewise.
12246 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12248 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
12249 every where we allocate a register.
12251 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12253 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
12254 * lcm.c (compute_earliest, compute_farthest): Likewise.
12256 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12258 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
12260 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12262 * doc/rtl.texi (Insns): Fix 2 typos.
12264 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
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.
12271 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
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.
12278 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
12280 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
12283 2002-01-11 Andreas Jaeger <aj@suse.de>,
12284 Brad Lucier <lucier@math.purdue.edu>
12286 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
12289 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
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.
12295 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
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.
12302 2002-01-11 Andreas Jaeger <aj@suse.de>
12304 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
12307 2002-01-10 Richard Henderson <rth@redhat.com>
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.
12315 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
12317 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
12318 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
12320 (altivec_expand_builtin): Same.
12321 (altivec_expand_stv_builtin): New.
12323 * config/rs6000/rs6000.h (rs6000_builtins): Same.
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.
12336 2002-01-10 Richard Henderson <rth@redhat.com>
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.
12342 2002-01-10 Zack Weinberg <zack@codesourcery.com>
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.
12349 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12351 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
12352 * configure: Regenerate.
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
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.
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.
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.
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.
12377 * config.gcc: Update to match above changes.
12379 2002-01-10 Kazu Hirata <kazu@hxi.com>
12381 * config/h8300/h8300.h: Fix comment typos.
12382 * config/h8300/h8300.md: Likewise.
12383 * config/h8300/lib1funcs.asm: Likewise.
12385 2002-01-10 Dale Johannesen <dalej@apple.com>
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.
12391 2002-01-10 Kazu Hirata <kazu@hxi.com>
12393 * doc/extend.texi (deprecated): Fix a typo.
12395 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
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.
12406 * i386.c (ix86_decompose_address): Return -1 if address contains
12408 (legitimate_address_p): Require ix86_decompose_address to return 1.
12410 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
12411 (cprop_insn): Likewise.
12413 2002-01-10 Kazu Hirata <kazu@hxi.com>
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.
12424 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12426 * doc/invoke.texi: Document PDP-11 options.
12428 2002-01-10 Kazu Hirata <kazu@hxi.com>
12430 * config/h8300/h8300.h: Fix formatting.
12432 2002-01-10 Ira Ruben <ira@apple.com>
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.
12468 2002-01-10 Ira Ruben <ira@apple.com>
12470 Fix to assign attributes to inline member functions.
12471 * cp/decl.c (start_method): Handle attrlist.
12473 2002-01-10 Kazu Hirata <kazu@hxi.com>
12475 * combine.c (expand_field_assignment): Use subreg_lsb().
12477 2002-01-10 David Edelsohn <edelsohn@gnu.org>
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.
12484 2002-01-10 Kazu Hirata <kazu@hxi.com>
12486 * config/h8300/h8300.md: Remove constraints from expanders.
12488 2002-01-10 Kazu Hirata <kazu@hxi.com>
12490 * varasm.c: Fix formatting.
12491 * varray.c: Likewise.
12492 * vmsdbgout.c: Likewise.
12493 * xcoffout.c: Likewise.
12495 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
12497 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
12498 update edge probabilities to match.
12500 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12502 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
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.
12511 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
12513 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
12515 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
12517 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
12519 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
12521 * optabs.c (expand_fix): Look for wider integer modes first.
12523 * i386.md (mov?f): Avoid the fake const double trick for medium
12525 (min?f*/max?f*): Prohibit memory operands for i387 variant.
12526 (fop_df_4): Disable for SSE compilation.
12528 2002-01-10 Graham Stott <grahams@redhat.com>
12530 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
12531 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
12533 2002-01-10 Richard Henderson <rth@redhat.com>
12535 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
12537 2002-01-10 Richard Henderson <rth@redhat.com>
12539 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
12540 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
12542 2002-01-10 Kazu Hirata <kazu@hxi.com>
12544 * combine.c (can_combine_p): Fix a comment typo.
12546 2002-01-09 Zack Weinberg <zack@codesourcery.com>
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.
12552 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
12554 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
12555 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
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.
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.
12578 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
12579 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12581 2002-01-09 Richard Henderson <rth@redhat.com>
12583 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
12585 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
12587 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
12589 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
12591 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
12593 2002-01-09 Kazu Hirata <kazu@hxi.com>
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.
12604 2002-01-09 Kazu Hirata <kazu@hxi.com>
12606 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
12607 to extract items in the expr_list chain.
12609 2002-01-09 Richard Henderson <rth@redhat.com>
12611 * config/vax/vax.c (vax_rtx_cost): Never abort.
12613 * config/vax/vax.h (REAL_ARITHMETIC): Define.
12615 2002-01-09 Jan Hubicka <jh@suse.cz>
12617 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
12619 2002-01-09 Richard Henderson <rth@redhat.com>
12621 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
12622 Unify code from various alternatives.
12624 2002-01-09 Richard Henderson <rth@redhat.com>
12626 * regrename.c (copy_value): Ignore the copy if the source register
12627 is present in the value chain with a narrower mode.
12629 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12631 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
12632 for the c4x target. Also improve layout.
12634 2002-01-09 Richard Henderson <rth@redhat.com>
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.
12640 2002-01-09 Richard Henderson <rth@redhat.com>
12642 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
12643 (copyprop_hardreg_forward_1): Likewise.
12645 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
12647 * pa.md (decrement_and_branch_until_zero): Change predicate for
12648 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
12650 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12652 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
12653 gets undefined. For Darwin.
12655 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12657 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
12659 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12661 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
12663 2002-01-08 Richard Henderson <rth@redhat.com>
12665 * regrename.c (copy_value): Ignore overlapping copies.
12667 2002-01-08 Richard Henderson <rth@redhat.com>
12669 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
12670 as needed to avoid shared structure.
12672 2002-01-08 Kazu Hirata <kazu@hxi.com>
12674 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
12677 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
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.
12702 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
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.
12709 * config/s390/s390.c (s390_function_profiler): Fix thinko.
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.
12715 2002-01-08 Richard Henderson <rth@redhat.com>
12717 * Makefile.in (toplev.o): Depend on options.h.
12718 (gcc.o): Depend on specs.h.
12720 2002-01-08 Jakub Jelinek <jakub@redhat.com>
12722 * expr.c (store_expr): Convert VOIDmode constants back to target's
12725 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
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.
12731 2002-01-08 Dale Johannesen <dalej@apple.com>
12733 * config/rs6000/rs6000.md: Add missing int register
12734 target case to movdf_low.
12736 2002-01-08 Zack Weinberg <zack@codesourcery.com>
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.
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".
12750 * cppinit.c: Include except.h.
12751 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
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__.
12758 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
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.
12769 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
12771 * objc/objc-act.c (handle_class_ref): Mark the declaration of
12772 %sobjc_class_ref_%s as used - to prevent unwanted compiler
12775 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
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.
12783 2002-01-08 Graham Stott <grahams@redhat.com>
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
12795 (C_DECL_ANTICIPATED): Likewise.
12796 (c_build_type_variant): Add parenthesis.
12798 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12800 * gcc.c (option_map): Remove --version.
12801 (process_command): Handle -fversion following the GNU Coding
12802 Standards. Partially addresses PR other/704.
12804 2002-01-08 Graham Stott <grahams@redhat.com>
12806 * combine.c (combine_instructions): Fix typo.
12808 2002-01-08 Graham Stott <grahams@redhat.com>
12810 * debug.h: Use "tree" and "rtx" throughout.
12812 * debug.c: Likewise.
12814 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
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.
12819 2002-01-07 Richard Henderson <rth@redhat.com>
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.
12829 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12831 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
12832 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
12834 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
12837 * config/rs6000/rs6000.md: Add altivec predicate patterns.
12839 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
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.
12847 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
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.
12855 2002-01-07 Richard Henderson <rth@redhat.com>
12857 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
12859 2002-01-07 Jason Merrill <jason@redhat.com>
12861 * unwind-dw2.c (execute_cfa_program): Use < again.
12863 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12865 * predict.c (combine_predictions_for_insn): Avoid division by zero.
12867 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12869 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
12870 Don't allow -1 - x -> ~x simplifications in the first pass.
12872 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12874 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
12876 (altivec_expand_binop_builtin): Same.
12877 (altivec_expand_unop_builtin): Same.
12878 (print_operand): Fix typo.
12879 (bdesc_1arg): Add vupk* variants.
12881 * rs6000.h (rs6000_builtins): Add vupk* enums.
12883 * rs6000.md: Add altivec_vupk* variants.
12885 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
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.
12891 2002-01-07 Janis Johnson <janis187@us.ibm.com>
12893 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12895 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
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.
12904 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
12906 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12909 2002-01-07 Graham Stott <grahams@redhat.com>
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
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
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.
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.
13007 * diagnostic.h: Update copyright date.
13008 (output_buffer_state): Add parenthesis.
13009 (output_buffer_format_args): Likewise.
13011 * combine.c (combine_instructions): Replace XEXP (links, 0)
13014 2002-01-06 H.J. Lu <hjl@gnu.org>
13016 * cfgcleanup.c (thread_jump): Fix 2 typos.
13018 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13020 * config.gcc: Add support for --enable-altivec.
13022 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13024 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13026 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13028 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13029 __objc_class_name_*.
13031 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13033 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13035 2002-01-06 Richard Henderson <rth@redhat.com>
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.
13042 2002-01-05 Richard Henderson <rth@redhat.com>
13044 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13047 2002-01-05 Richard Henderson <rth@redhat.com>
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
13056 (rtl_for_decl_location): Do not look at reload data structures
13057 before reload has run.
13059 2002-01-05 Kazu Hirata <kazu@hxi.com>
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.
13074 2002-01-05 Kazu Hirata <kazu@hxi.com>
13076 * combine.c: Fix formatting.
13078 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13081 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13083 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13085 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13086 as 1 for __powerpc64__ as well.
13088 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13090 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13093 2002-01-05 Daniel Berlin <dan@dberlin.org>
13095 * lcm.c: Revert change, due to performance regression it causes on
13096 SPEC because it's slightly more conservative (sigh, I hate
13099 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13101 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13103 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13105 * doc/cppinternals.texi: Update.
13107 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13109 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13110 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
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.
13126 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13128 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13130 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13132 * cfgcleanup.c: Include tm_p.h
13133 (mark_effect): Fix handling of hard register; fix handling of SET
13135 2002-01-04 Kazu Hirata <kazu@hxi.com>
13137 * config/h8300/h8300.md (anonymous patterns): Check that
13138 operands are registers before using REGNO on them.
13140 2002-01-03 Roland McGrath <roland@frob.com>
13142 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13144 2002-01-04 Jakub Jelinek <jakub@redhat.com>
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.
13160 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
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.
13172 2002-01-04 William Cohen <wcohen@redhat.com>
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.
13179 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
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.
13188 * Makefile.in (lcm.o): add df.h to dependencies.
13190 2002-01-04 Richard Henderson <rth@redhat.com>
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.
13219 2002-01-03 Richard Henderson <rth@redhat.com>
13221 * local-alloc.c (function_invariant_p): Update commentary.
13223 2002-01-04 H.J. Lu <hjl@gnu.org>
13225 * toplev.c (rest_of_compilation): Fix a typo when calling
13228 2002-01-03 Kazu Hirata <kazu@hxi.com>
13230 * c-common.c: Fix formatting.
13231 * diagnostic.c: Likewise.
13232 * doloop.c: Likewise.
13233 * dwarf2out.c: Likewise.
13235 2002-01-03 Kazu Hirata <kazu@hxi.com>
13237 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
13238 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
13240 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
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.
13246 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13248 * collect2.c (main): Use strcmp when testing for "-shared".
13250 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
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.
13257 2002-01-03 William Cohen <wcohen@redhat.com>
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.
13300 2002-01-03 Jakub Jelinek <jakub@redhat.com>
13302 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
13303 gen_lowpart_common fails, use gen_lowpart_SUBREG.
13305 2002-01-03 Turly O'Connor <turly@apple.com>
13307 * darwin.c (machopic_output_possible_stub_label): Don't generate
13308 stub routines for pseudo-stubs which we've just defined.
13310 2002-01-03 Kazu Hirata <kazu@hxi.com>
13312 * builtins.c: Fix formatting.
13313 * c-typeck.c: Likewise.
13314 * combine.c: Likewise.
13315 * expr.c: Likewise.
13316 * loop.c: Likewise.
13318 2002-01-03 Andreas Schwab <schwab@suse.de>
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
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.
13327 2002-01-02 Eric Christopher <echristo@redhat.com>
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.
13334 2002-01-03 Kazu Hirata <kazu@hxi.com>
13336 * gcse.c: Fix formatting.
13338 2002-01-03 Graham Stott <grahams@redhat.com>
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.
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.
13348 2002-01-03 Graham Stott <grahams@redhat.com>
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.
13372 * gcc/jcf-parse.c: Update copyright date.
13373 (yyparse): Constify resource_filename.
13375 2002-01-03 Graham Stott <grahams@redhat.com>
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.
13388 (XBITMAP): Likewise.
13390 (XBBDEF): Likewise.
13392 (X0WINT): Likewise.
13394 (X0UINT): 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.
13407 (XCUINT): 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.
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.
13464 2002-01-03 Kazu Hirata <kazu@hxi.com>
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.
13482 2002-01-03 Graham Stott <grahams@redhat.com>
13484 * loop.h: Update copyright date.
13485 (LOOP_MOVABLES): Fix typo.
13486 (LOOP_REGS): Likewise.
13487 (LOOP_IVS): Likewise.
13489 2002-01-03 Graham Stott <grahams@redhat.com>
13491 * cppinit.c: Update copyright date.
13492 Don't include output.h
13493 * Makefile.in: Update copyright date.
13496 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
13499 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
13500 (-pthread) Add to RS/6000 options.
13502 2002-01-02 Kazu Hirata <kazu@hxi.com>
13504 * except.c: Fix comment typos.
13505 * loop.c: Likewise.
13506 * varasm.c: Likewise.
13507 * doc/tm.texi: Fix a typo.
13509 2002-01-02 Jakub Jelinek <jakub@redhat.com>
13511 * c-typeck.c (output_init_element): Allow initializing static storage
13512 duration objects with compound literals.
13514 2002-01-02 Richard Henderson <rth@redhat.com>
13516 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
13519 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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
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.
13542 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
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.
13549 2002-01-02 David Edelsohn <edelsohn@gnu.org>
13551 * config/rs6000/t-aix43: Revert previous change.
13553 2002-01-02 Jason Merrill <jason@redhat.com>
13555 * c-decl.c (c_expand_body): Call outlining_inline_function when
13556 emitting an inline function out of line.
13558 2002-01-02 Richard Henderson <rth@redhat.com>
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
13567 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
13570 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
13572 2002-01-02 Kazu Hirata <kazu@hxi.com>
13574 * config/h8300/fixunssfsi.c: Update copyright.
13577 * config/h8300/h8300.c: Update copyright.
13578 Eliminate warnings.
13580 2002-01-02 Kazu Hirata <kazu@hxi.com>
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.
13589 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
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.
13610 2002-01-01 Tom Rix <trix@redhat.com>
13612 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
13613 rs6000_emit_allocate_stack.
13615 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
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.
13625 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
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.
13634 2002-01-01 Douglas B Rupp <rupp@gnat.com>
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.
13643 * gcc.c (delete_if_ordinary): Delete all versions.
13645 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
13647 * config/mmix/mmix.md: Update FIXME to not mention
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
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.
13673 See ChangeLog.6 for earlier changes.