1 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3 * config/rs6000/rs6000.c (rs6000_default_long_calls,
4 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
6 (rs6000_override_options): Handle -m(no-)longcall.
7 (init_cumulative_args, output_mi_thunk): Check for both
8 longcall and shortcall attributes on the function.
9 (rs6000_attribute_table): Add "shortcall".
10 (rs6000_handle_longcall_attribute): Update comment.
11 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
12 altivec_expand_ternop_builtin): Add default clauses to switches
15 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
16 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
17 (TARGET_OPTIONS): Add longcall and no-longcall.
19 * config/rs6000/rs6000.md (call_nonlocal_sysv,
20 call_value_nonlocal_sysv): Split by alternatives. One pair
21 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
22 the call cookie. The other pair accepts only LR/CTR and has
25 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
26 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
28 * config/rs6000/rs6000-c.c: New file.
29 * config/rs6000/t-rs6000-c-rule: New file.
30 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
31 Prototype rs6000_pragma_longcall.
33 * doc/extend.texi: Document shortcall attribute.
34 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
36 2002-05-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
38 * config/avr/avr.c (avr_mcu_types): Update supported devices.
39 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
40 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
42 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
44 * dbxout.c: Fix formatting.
45 * dependence.c: Likewise.
47 * diagnostic.c: Likewise.
49 * dominance.c: Likewise.
51 * dwarf2asm.c: Likewise.
52 * dwarf2out.c: Likewise.
53 * dwarfout.c: Likewise.
55 2002-05-10 Richard Henderson <rth@redhat.com>
57 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
58 Convert integers constants as needed. Replace "nwords" field with
60 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
61 * function.h: Fix typo in comment.
62 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
64 2002-05-10 Roger Sayle <roger@eyesopen.com>
66 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
67 into the equivalent (signed char)c > 0.
69 2002-05-10 Janis Johnson <janis187@us.ibm.com>
71 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
72 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
73 (struct prefetch_info): Fix spelling of member bytes_accessed.
74 (emit_prefetch_instructions): Make dump messages more regular;
75 restructure code to add more dump messages; use new macros for
76 heuristics. (There are no code generation changes in any of this).
78 2002-05-10 David S. Miller <davem@redhat.com>
80 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
81 (struct rtx_def): Update unchanging flag comment.
82 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
83 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
84 to be handled to INSN too.
85 (dbr_schedule): Likewise.
86 * resource.c (next_insn_no_annul): Likewise.
88 * cse.c (rtx_cost): Remove multiplication by power of 2 special
91 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
93 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
94 . as N64/N32 libgcc_s.so subdirs.
96 2002-05-10 David S. Miller <davem@redhat.com>
98 * config/sparc/sparc.md: Use define_constants for unspec numbers.
100 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
102 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
104 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
105 * doc/rtl.texi: Document these macros more accurately.
106 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
107 JUMP_INSNs and CALL_INSNs.
108 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
109 or INSN_FROM_TARGET_P if the code is appropriate.
111 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
113 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
114 before using SYMBOL_REF_FLAG (addr).
116 * config/avr/avr-protos.h (avr_io_address_p): Declare.
117 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
118 Make non-static. Update all callers.
119 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
120 New insns to clear/set/test a single bit in I/O address space.
122 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
124 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
126 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
128 * Makefile.in: Update.
129 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
130 builtin_define_std): New.
131 (c_common_init): Register CPP builtins callback.
132 * c-common.h (flag_iso, flag_undef): New.
133 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
134 * c-lex.c: Don't include target.h.
135 (cb_register_builtins): Move to c-common.c.
136 (init_c_lex): Don't register hook here.
137 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
138 (cpp_define, cpp_assert): Remove.
139 * gcc.c (cc1_options): Pass -undef to front end.
140 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
141 (TARGET_INITIALIZER): Update.
142 * target.h (struct cpp_reader): Don't predeclare.
143 (struct gcc_target): Remove cpp builtin hook.
144 * tree.c (default_register_cpp_builtins): Remove.
148 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
150 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
152 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
154 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
155 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
157 2002-05-09 Jakub Jelinek <jakub@redhat.com>
159 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
160 * config/sparc/libgcc-sparc-glibc.ver: New file.
161 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
162 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
164 2002-05-09 Jakub Jelinek <jakub@redhat.com>
167 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
168 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
169 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
171 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
172 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
173 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
174 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
176 2002-05-09 Richard Henderson <rth@redhat.com>
178 * config/ia64/ia64.md: Use define_constants for unspec numbers.
179 * config/ia64/ia64.c: Likewise.
181 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
183 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
184 (save_restore_insns): Likewise.
185 (mips_expand_prologue, mips_expand_epilogue): Update callers.
186 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
188 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
190 * athlon.md, k6.md, pentium.md, ppro.md): New files.
191 * i386.md: Move scheduling information into new files.
193 * i386.md (type attribute): Add "rotate" for rotate insns.
194 (rotate insns): Set type to "rotate".
195 (various attributes and function units): Treat rotate like shift.
196 (pent_pair attribute): Only rotates by one bit position are
198 (sbb insns): Explicitly set pent_pair attribute on a couple
199 that were missing it.
201 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
203 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
204 make sure that buffer starts on odd word address.
205 (sh_va_arg): Skip odd fp registers when reading a double precision
208 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
210 * tree.h (preserve_data, object_permanent_p, type_precision):
213 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
215 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
216 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
218 * cpp.texi: Update for removal of obsolete features.
220 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
221 Jeffrey A Law (law@redhat.com)
223 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
224 the DFA interface for Pentium processors.
225 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
226 (attr_pent_pair, ix86_pent_find_pair): Remove.
227 (ix86_sched_reorder_pentium): Remove.
228 (ix86_sched_reorder): Remove reordering for Pentium.
229 * i386.md (Pentium scheduling): Rewrite using DFA description.
231 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
233 * cfganal.c (can_fallthru): Fix fast path.
234 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
235 with edges to the next block.
237 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
238 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
240 * final.c (end_final): Use C trees to output data structures for profiling.
242 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
243 (profile.o): New dependency profile.h
244 (final.o): New dependency profile.h
245 * profile.h: New file. New global structure profile_info.
246 * final.h (count_edges_instrumented_now): Declare.
247 (current_function_cfg_checksum): Declare.
248 (function_list): New structure.
249 (functions_head, functions_tail): New static variables.
250 (end_final): Emits more data, removed some -ax stuff.
251 (final): Stores function names and chcksums.
252 * gcov-io.h (__write_gcov_string): New function.
253 (__read_gcov_string): New function.
254 * gcov.c (read_profile): New function.
255 (create_program_flow_graph): Uses read_profile instead of reading
257 (read_files): Removed da_file checking, it's done by read_profile now.
258 * libgcc2.c (bb_function_info): New structure.
259 (bb): New field in structure, removed some -ax stuff.
260 (__bb_exit_func): Changed structure of da_file.
261 * profile.c (count_edges_instrumented_now): New global variable.
262 (current_function_cfg_checksum): New global variable.
263 (max_counter_in_program): New global variable.
264 (get_exec_counts): New function.
265 (compute_checksum): New function.
266 (instrument_edges): Sets count_edges_instrumented_now.
267 (compute_branch_probabilities): Uses get_exec_counts instead of
269 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
270 (init_branch_prob): Removed da_file checking, done in get_exec_counts
272 (end_branch_prob): Removed da_file checking, done in get_exec_counts
274 * gcov.texi: Updated information about gcov file format.
276 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
278 * sbitmap.c: Fix formatting.
280 * scan-decls.c: Likewise.
281 * sched-deps.c: Likewise.
282 * sched-ebb.c: Likewise.
283 * sched-rgn.c: Likewise.
284 * sched-vis.c: Likewise.
285 * sdbout.c: Likewise.
286 * sibcall.c: Likewise.
287 * simplify-rtx.c: Likewise.
289 * ssa-ccp.c: Likewise.
290 * ssa-dce.c: Likewise.
292 * stor-layout.c: Likewise.
293 * stringpool.c: Likewise.
295 2002-05-09 David S. Miller <davem@redhat.com>
297 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
299 2002-05-07 David S. Miller <davem@redhat.com>
301 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
302 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
303 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
304 library implementation clobbers the output before the inputs
305 are fully consumed, use stack temporary for the output.
307 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
309 * config/netbsd.h (CPP_SPEC): Remove.
310 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
311 * config/i386/netbsd.h (CPP_SPEC): Define.
312 * config/ns32k/netbsd.h (CPP_SPEC): Define.
313 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
314 * config/sparc/netbsd.h (CPP_SPEC): Define.
315 * config/vax/netbsd.h (CPP_SPEC): Define.
317 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
319 * read-rtl.c: Fix formatting.
322 * regclass.c: Likewise.
323 * regmove.c: Likewise.
324 * reg-stack.c: Likewise.
325 * reload1.c: Likewise.
326 * reload.c: Likewise.
327 * resource.c: Likewise.
328 * rtlanal.c: Likewise.
330 * rtl-error.c: Likewise.
332 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
334 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
335 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
337 2002-05-08 Bernd Schmidt <bernds@redhat.com>
339 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
340 use __SSE2__ macro instead.
341 * config/i386/xmmintrin.h: Likewise.
343 2002-05-08 Janis Johnson <janis187@us.ibm.com>
345 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
346 and use it in all invocations of these macros. Clean up comments.
347 * rtl.c (rtl_check_failed_flag): Add an argument for the name
348 of the flag access macro whose check failed.
349 * doc/rtl.texi (Flags): Document additional flag uses.
351 2002-05-08 Robert Spier <rspier@pobox.com>
352 Neil Booth <neil@daikokuya.demon.co.uk>
355 * cppfiles.c (handle_missing_header): Don't do anything
356 different for <> includes.
358 * cppopts.texi: Update documentation for -MG.
360 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
362 * cpplex.c (cpp_interpret_charconst): Truncate as well as
365 * cpp.texi: Clarify multichar charconst valuation.
367 2002-05-08 Mark Mitchell <mark@codesourcery.com>
369 * doc/invoke.texi: Document -mwindiss option.
371 2002-05-08 Jason Merrill <jason@redhat.com>
373 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
375 * dwarf2out.c (gen_type_die): Abort on broken recursion.
378 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
381 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
383 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
384 little-endian multilibs to override arm/thumb multilibs.
385 Do not build hardware floating point multilibs, nor apcs-26
386 multilibs for the Thumb.
388 2002-05-08 Mark Mitchell <mark@codesourcery.com>
391 * varasm.c (mark_weak): New function.
392 (merge_weak): Use it. Do not call declare_weak.
393 (declare_weak): Use merge_weak.
395 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
397 * cse.c (dead_libcall_p): Update counts.
398 (delete_trivially_dead_insns): Update call of dead_libcall_p.
400 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
402 * cfglayout.c (function_tail_eff_head): Rename to ...
403 (function_footer): ... this one.
404 (unlink_insn_chain): New functions.
405 (label_for_bb): Only call block_label and emit debug message.
406 (record_effective_endpoints): Actually unlink the headers and footers.
407 (fixup_reorder_cahin): Re-insert the unlinked sequences.
408 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
409 * cfglayout.h (struct reorder_block_def): New fields footer/header;
410 remove eff_head/eff_end.
411 * rtl.h (set_first_insn): Declare.
412 * emit-rtl.c (set_first_insn): New function.
414 * cfglayout.c (fixup_reorder_chain): Dump duplicated
415 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
416 cfg_layout_duplicate_bb): New global function.
417 (duplicate_insn_chain): New static function.
418 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
419 cfg_layout_duplicate_bb): Declare.
420 (struct reorder_block_def): Add "original" field.
421 * emit-rtl.c (emit_copy_of_insn_after): New function.
422 * rtl.h (emit_copy_of_insn_after): Declare.
424 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
425 (fixup_reorder_chain): properly handle edges to exit block.
427 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
428 Jan Hubicka <jh@suse.cz>
430 * basic-block.h (note_prediction_to_br_prob): declare.
431 * c-semantics.c: Inlucde predit.h
432 (expand_stmt): predict GOTO_STMT as not taken.
433 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
434 (cleanup_cfg): Do not free tail_recursion_list.
435 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
436 (flow_delete_block): Kill predictions past end of basic block.
437 * output.h (delete_unreachable_blocks): Declare.
438 * predict.c (predicted_by_p, process_note_predictions,
439 process_note_prediction, last_block_p): New function.
440 (estimate_probability): Bypass loop on PRED_CONTINUE;
441 do not handle noreturn heuristics; kill PRED_RETURN; add
443 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
444 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
445 * predict.h (IS_TAKEN): New constant.
446 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
447 * rtl.c (NOTE_INSN_PREDICTION): New.
448 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
450 (insn_note): add NOTE_INSN_PREDICTION.
451 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
452 CFG; free tail_recursion_label_list.
453 * stmt.c: Include predict.h;
454 (return_prediction): New.
455 (expand_value_return): Use it.
456 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
458 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
460 * config/mips/mips.md: Name the unspecs with define_constant.
461 (*HILO_delay): Rename to 'hilo_delay' (no star).
462 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
463 (reload_outdi, reload_outsi): Likewise.
465 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
467 * toplev.c: Fix formatting.
469 2002-05-07 Janis Johnson <janis187@us.ibm.com>
471 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
472 * configure.in (ac_rtlflag_checking): New.
473 * doc/install.texi (--enable-checking): Document RTL flag checking.
475 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
477 * c-common.c (c_common_init): Set options->unsigned_wchar.
478 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
479 group target dependencies.
480 (init_builtins, cpp_handle_option): Update.
481 * cpplex.c (cpp_interpret_charconst): Update.
482 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
483 signed_char to unsigned_char, group target dependencies.
484 * defaults.h (WCHAR_UNSIGNED): Remove.
485 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
487 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
488 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
489 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
490 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
491 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
493 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
495 2002-05-07 Mark Mitchell <mark@codesourcery.com>
497 * fixinc/inclhack.def (windiss_math1): New fix.
498 (windiss_math2): Likewise.
499 (windiss_valist): Likewise.
500 * fixinc/fixincl.x: Regenerated.
502 2002-05-07 Andreas Jaeger <aj@suse.de>
504 * genautomata.c (output_internal_min_issue_delay_func): Add
505 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
506 (output_internal_trans_func): Likewise.
508 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
510 * pa.c (hppa_profile_hook): Use force_reg to get the address
511 of the profile hook into an appropriate pseudo register.
513 2002-05-07 Mark Mitchell <mark@codesourcery.com>
515 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
516 (LINK_START_SPEC): Handle it.
517 (LINK_OS_SPEC): Likewise.
518 (CPP_SPEC): Likewise.
519 (STARTFILE_SPEC): Likewise.
520 (LIB_SPEC): Likewise.
521 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
523 (CRTSAVRES_DEFAULT_SPEC): New macro.
524 (LIB_WINDISS_SPEC): New macro.
525 (CPP_OS_WINDISS_SPEC): Likewise.
526 (STARTFILE_WINDISS_SPEC): Likewise.
527 (ENDFILE_WINDISS_SPEC): Likewise.
528 (LINK_START_WINDISS_SPEC): Likewise.
529 (LINK_OS_WINDISS_SPEC): Likewise.
530 * config/rs6000/windiss.h: New file.
532 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
534 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
536 2002-05-06 David S. Miller <davem@redhat.com>
538 * config/sparc/sparc.md (shift insns): Do not mask off
539 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
542 2002-05-06 Richard Henderson <rth@redhat.com>
545 * expr.c (highest_pow2_factor_for_type): New.
546 (expand_assignment): Use it.
548 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
550 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
552 ("altivec_mfvscr"): Same.
554 2002-05-06 Janis Johnson <janis187@us.ibm.com>
556 * rtl.h (struct rtx_def): Update comments.
557 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
558 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
559 RTL_FLAG_CHECK macros with list of expected RTL codes.
560 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
561 (rtl_check_failed_flag): New.
562 * reload1.c (reload): Use REG macro before changing rtx to MEM.
563 (reload_cse_noop_set_p): Check rtx code before using access macro.
564 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
565 before using access macro.
567 2002-05-06 Janis Johnson <janis187@us.ibm.com>
569 * doc/rtl.texi (Flags): Update to reflect current usage.
571 2002-05-06 Roger Sayle <roger@eyesopen.com>
574 * fold-const.c (sign_bit_p): New function.
575 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
576 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
577 Reapply fold when converting (A & C) == C into (A & C) != 0.
578 (fold_binary_op_with_conditional_arg): Fix typo in comment.
580 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
582 * c-common.c (warn_multichar): New.
583 (c_common_init): Set CPP's warn_multichar.
584 * c-common.h (warn_multichar): New.
585 * c-decl.c (warn_multichar): Remove.
586 * c-lex.c (lex_charconst): Update.
587 * c-tree.h (warn_multichar): Remove.
588 * cppexp.c (eval_token): Sign-extend charconst value.
589 * cppinit.c (cpp_create_reader): Set warn_multichar.
590 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
591 each character. Update prototype. Sign-extend the result.
592 * cpplib.h: Fix conditions.
593 (struct cpp_options): Add new warning flag.
594 (cpp_interpret_charconst): Update prototype.
596 * cpp.texi: Update documentation.
598 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
600 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
601 Fix typo in usage of allof instead of unit.
603 2002-05-06 Richard Henderson <rth@redhat.com>
605 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
606 and any jump or call for IN.
608 2002-05-06 Bernd Schmidt <bernds@redhat.com>
610 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
612 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
614 2002-05-06 Roger Sayle <roger@eyesopen.com>
616 * fold-const.c (lshift-double): Cast the high word to an unsigned
617 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
618 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
619 avoid compiler warning. (fold): Remove redundant code from
620 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
622 2002-05-06 Jeff Law <law@redhat.com>
624 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
625 * pa.c (pa_adjust_cost): Remove all true dependency cost
626 adjustments. Also remove support for non-DFA scheduling.
627 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
628 to adjust true dependency costs. Update various comments.
629 (7100lc, 7200, 7300 scheduling): Simplify by combining the
630 FP ALU & MPY units into a single unit.
632 2002-05-06 Catherine Moore <clm@redhat.com>
634 * config/v850/v850.c (compute_register_save_size): Make sure
635 to count all of the registers that will be saved.
637 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
639 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
641 2002-05-06 David S. Miller <davem@redhat.com>
643 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
644 allow result to overlap input operands in memory.
646 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
649 * cpp.texi: Update multichar charconst docs.
651 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
653 * cpplex.c (cpp_interpret_charconst): Sign-extend each
654 character. Don't ignore excess characters. Treat
655 multicharacter character constants as signed.
656 (cpp_parse_escape): Clarify diagnostic.
658 2002-05-05 Jakub Jelinek <jakub@redhat.com>
660 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
661 use add instead of shift.
662 (ashldi3_sp64): Likewise.
663 (ashlsi3_const1, ashldi3_const1): Remove.
664 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
665 * config/sparc/sparc.c (const1_operand): New.
667 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
669 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
671 2002-05-05 Jakub Jelinek <jakub@redhat.com>
674 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
676 2002-05-05 Richard Henderson <rth@redhat.com>
678 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
679 memory latency adjustments.
680 (alpha_variable_issue): Remove.
681 (alpha_use_dfa_pipeline_interface): New.
682 (alpha_multipass_dfa_lookahead): New.
683 * config/alpha/alpha.md: Remove define_function_unit scheduling;
684 include new dfa scheduling.
685 (attr type): Add none.
687 * config/alpha/ev4.md: New.
688 * config/alpha/ev5.md: New.
689 * config/alpha/ev6.md: New.
691 2002-05-05 David S. Miller <davem@redhat.com>
693 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
695 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
697 * cse.c: Fix formatting.
698 * emit-rtl.c: Likewise.
700 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
702 * genautomata.c (initiate_states): Add additional guard to
703 initialize `units_array'.
705 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
707 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
708 process_unit_to_form_the_same_automaton_unit_lists,
709 form_the_same_automaton_unit_lists
710 check_unit_distributions_to_automata): New prototypes and
712 (check_automata): Rename it into `check_automata_insn_issues'.
713 (unit_decl): New fields `the_same_automaton_unit' and
714 `the_same_automaton_message_reported_p'.
715 (unit_decl_t): New typedef.
716 (the_same_automaton_lists): New gloval variable.
717 (unit_regexp, unit_set_el, units_array, units_cmp,
718 output_get_cpu_unit_code_func): Use the typedef.
719 (evaluate_max_reserv_cycles): Increment
720 `description->max_insn_reserv_cycles'.
721 (initiate_states): Don't increment `max_cycles_num'.
722 (transform_insn_regexps): Move code around transformation of
723 regexps from `generate'.
724 (generate): Remove call of `transform_insn_regexps'.
725 (expand_automata): Call `transform_insn_regexps' and
726 `check_unit_distributions_to_automata'. Check errors before
729 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
730 automaton `ultrasparc3_1'.
732 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
734 * c-common.c (c_common_init): Set up CPP arithmetic.
735 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
736 something reasonable for the host.
737 (sanity_checks): Add checks.
738 (cpp_read_main_file): Call sanity_checks() from here...
739 (cpp_post_options): ... not here.
740 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
741 * cpplib.h (struct cpp_options): New member int_precision.
743 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
745 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
747 2002-05-04 David S. Miller <davem@redhat.com>
749 * config/sparc/linux.h, config/sparc/linux64.h
750 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
752 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
754 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
756 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
759 2002-05-05 Tim Josling <tej@melbpc.org.au>
761 * treelang; New directory for new sample language treelang.
763 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
765 * Makefile.in (c-lex.o): Update.
766 * c-lex.c: Include target.h.
767 (cb_register_builtins): New.
768 (init_c_lex): Set builtins callback.
769 * c-lex.h (cpp_define, cpp_assert): New prototypes.
770 * cppinit.c (init_builtins): Use callback, including for
772 * cpplib.h (struct cpp_callbacks): New member.
773 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
774 (TARGET_INITIALIZER): Update.
775 * target.h (struct gcc_target): New hook.
776 * tree.c (default_register_cpp_builtins): New.
777 * tree.h (default_register_cpp_builtins): New.
779 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
781 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
783 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
784 (cpp_post_options): Move sanity checks to...
785 (sanity_checks): New.
786 * cpplex.c (maybe_read_ucs): Fix prototype.
787 (parse_string, cpp_parse_escape): Cast for %c format specifier.
788 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
791 2002-05-04 Bernd Schmidt <bernds@redhat.com>
793 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
794 builtins. Use V2DI patterns instead of TI for logical operations.
795 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
796 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
797 (ix86_expand_builtins): Change the pattern used for movntdq.
798 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
799 sse2_nandv2di3): New patterns.
800 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
802 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
803 (cvtdq2pd): Correct mode on operand 1.
804 (sse2_umulsidi3): Describe without unspec.
805 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
807 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
808 (ashlv2di3): Likewise, from sse2_ashlv2di3.
809 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
810 ashlv4si3, ashlv2di3): Use SImode for shift count.
811 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
812 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
814 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
816 (__m128i, __m128d): New macros.
817 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
818 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
819 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
820 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
821 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
822 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
823 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
824 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
825 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
826 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
827 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
828 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
829 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
830 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
831 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
832 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
833 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
834 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
835 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
836 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
837 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
838 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
839 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
840 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
841 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
842 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
843 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
844 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
845 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
846 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
847 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
848 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
849 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
850 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
851 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
852 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
853 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
855 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
856 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
858 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
860 * dwarf2out.c: Fix formatting.
861 * varasm.c: Likewise.
863 2002-05-04 David Edelsohn <edelsohn@gnu.org>
866 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
867 clobber and use result as temporary value.
869 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
871 * expr.c (force_operand): Use expand_simple_* to handle more
874 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
876 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
878 (lex_charconst): Update for change in prototype of
879 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
881 * cpphash.h (BITS_PER_CPPCHAR_T): New.
882 * cppinit.c (cpp_create_reader): Initialize them for no
884 (cpp_post_options): Add sanity checks.
885 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
886 and truncation issues. Calculate in type cppchar_t.
887 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
888 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
889 run-time dependent precision correctly. Return whether the
890 result is signed or not.
891 * cpplib.c (dequote_string): Use cppchar_t; update.
892 * cpplib.h (cppchar_signed_t): New.
893 struct cpp_options): New precision members.
894 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
895 * cppexp.c (eval_token): Update.
897 2002-05-03 David S. Miller <davem@redhat.com>
899 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
900 * config/sparc/sparc.c (sparc_rtx_costs): New function
901 implementing RTX_COSTS and CONST_COSTS.
902 * config/sparc/sparc.h (CONST_COSTS): Delete.
903 (RTX_COSTS_CASES): Define.
904 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
907 * config/sparc/sparc.md (DFA schedulers): Split out...
908 * config/sparc/cypress.md, config/sparc/hypersparc.md,
909 config/sparc/sparclet.md, config/sparc/supersparc.md,
910 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
912 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
913 checks on it, always defined for Sparc.
915 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
916 Tweak, and add more detailed comments.
918 2002-05-03 Zack Weinberg <zack@codesourcery.com>
920 * Re-apply patch accidentally reverted with
921 DFA scheduler merge: remove all rules and variables to slurp
922 source files out of libiberty and rebuild them with HOST_CC.
923 ($(HOST_PREFIX_1)varray.o): New rule.
924 (genattrtab rule): Word wrap.
926 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
928 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
929 (CPP_SUBTARGET_SPEC): Define.
930 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
932 (CPP_SPEC): Redefine to include %(cpp_subtarget).
934 2002-05-03 David S. Miller <davem@redhat.com>
936 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
937 * target.h (struct gcc_target): Delete cycle_display member.
939 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
940 (rtx_needs_barrier): Delete reference to cycle_display unspec.
941 (ia64_sched_reorder2): Mention need for cycle display handling
942 once such notes exist.
944 2002-05-03 Richard Henderson <rth@redhat.com>
946 * real.c (etoasc): Strip most trailing zeros for clarity.
947 * sched-vis.c: Include real.h.
948 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
949 * Makefile.in (sched-vis.o): Add real.h.
951 2002-05-03 David S. Miller <davem@redhat.com>
953 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
956 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
958 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
959 when we get an out of range literal.
960 (altivec_expand_ternop_builtin): Same.
961 (altivec_expand_unop_builtin): Same.
962 (altivec_expand_builtin): Same, for dss.
963 (altivec_expand_builtin): Use trees instead of rtl when
964 determining literal argument validity.
966 2002-05-03 David S. Miller <davem@redhat.com>
968 Delete cycle display scheduling hook.
969 * config/ia64/ia64.c (ia64_cycle_display,
970 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
971 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
972 and use emit_insn_before instead of ia64_emit_insn_before.
973 * config/ia64/ia64.md (unspec usage): Delete cycle display.
974 (cycle_display): Delete insn pattern.
975 * config/sparc/sparc.md (unspec usage): Delete cycle display.
976 (cycle_display): Delete insn pattern.
977 * config/sparc/sparc.c (sparc_cycle_display,
978 TARGET_SCHED_CYCLE_DISPLAY): Delete.
979 * doc/md.texi (cycle_display): Don't mention.
980 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
982 2002-05-03 Richard Henderson <rth@redhat.com>
984 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
985 * recog.h: Declare them.
987 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
988 * config/sparc/sparc.md: Use store_data_bypass_p instead.
989 * config/sparc/sparc-protos.h: Update.
991 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
993 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
994 -D__arch64__. Add -D_LP64.
995 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
997 (CPP_ARCH64_SPEC): Likewise.
998 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
999 (NO_BUILTIN_SIZE_TYPE): Undef.
1001 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
1003 * genautomata.c (min_issue_delay_pass_states): Change return type
1005 (min_issue_delay_pass_states): Change the algorithm.
1006 (min_issue_delay): Set up min_insn_issue_delay for the state.
1007 (output_min_issue_delay_table): Interchange the nested loops and
1008 and initiate min_insn_issue_delay for states.
1010 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
1012 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
1015 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1017 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
1020 2002-05-03 Richard Henderson <rth@redhat.com>
1023 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1024 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1025 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1026 code before JUMP, not EARLIEST.
1028 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
1030 * c-format.c (check_format_info_main): Don't check for presence of
1031 parameter for * width until after operand number has been read,
1032 and only check for it if format parameters are available.
1035 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1037 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1038 (LINK_SPEC): Undef before defining.
1040 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1042 PR preprocessor/6489
1043 * tradcpp.c (fixup_newlines): New.
1044 (main, finclude): Use it.
1046 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
1048 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
1049 * config/mips/mips.c (mips_unique_section): Strip encoding from
1052 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1054 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1057 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1059 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1060 (Specific): Removed buildstats references.
1061 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1062 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1063 Accomodate Solaris versions beyond 8.
1064 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1065 (Specific, *-*-solaris2.8): Removed, obsolete.
1067 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1070 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1071 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1072 fill leaf_reg_remap with identity.
1073 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1075 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1077 * config/h8300/crti.asm: Remove trailing spaces.
1078 * config/h8300/h8300.c: Likewise.
1079 * config/h8300/lib1funcs.asm: Likewise.
1081 2002-05-02 Jason Merrill <jason@redhat.com>
1083 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1084 * c-decl.c (c_init_decl_processing): Use it.
1085 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1086 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1087 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1089 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1091 * regrename.c: Fix formatting.
1094 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1096 * i386.md (attribute memory): Handle compares properly.
1098 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1100 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1103 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1105 * function.c: Fix formatting.
1107 2002-05-02 Jan Hubicka <jh@suse.cz>
1109 * haifa-sched.c (schedule_insn): Print table of instructions and
1111 (sched_block): Do not print ready list at verbosity level 1.
1112 * sched-vis.c (print_insn): Make global.
1113 * sched-ebb.c (ebb_print_insn): Rename from...
1114 (print_insn): ... this one.
1115 * sched-int.h (print_insn): Declare
1117 2002-05-02 Richard Henderson <rth@redhat.com>
1119 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1120 emitted by cycle_display.
1122 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1124 * doc/install.texi (*-*-freebsd*): Update to latest status.
1126 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1129 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1130 * config/float-sparc.h: Assume 128-bit long double if
1131 __LONG_DOUBLE_128__ is defined.
1133 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1135 * genattrtab.c (write_function_unit_info): Add a dummy element
1136 when num_units == 0.
1138 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1140 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1141 TYPE_MODE (double_type_node) instead of DFmode.
1143 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1145 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1147 * toplev.c (rest_of_compilation): Revert Richard's patch.
1149 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1151 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1153 2002-05-02 Catherine Moore <clm@redhat.com>
1155 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1157 2002-05-02 Kazu Hirata <kazu@hxi.com>
1159 * combine.c: Fix comment typos.
1161 * genautomata.c: Likewise.
1165 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1167 * doc/install.texi: State GNAT version requirements.
1169 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1171 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1172 of the frame pointer or arg pointer register which strict register
1173 checking is not enabled.
1175 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1177 * gcc.dg/altivec-8.c: New.
1179 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1180 PRE_INC and PRE_DEC for altivec modes.
1182 2002-05-01 Bruce Korb <bkorb@gnu.org>
1184 * fixinc/check.tpl(set-writable): make sure the function exists first
1185 * fixinc/inclhack.def(alpha_assert): fix test_text
1186 * fixinc/tests/base/assert.h: add in missing result
1188 2002-05-01 Jeff Law <law@redhat.com>
1190 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1193 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1195 * dbxout.c (dbxout_type): Emit size information for range types,
1196 as well, but only when using GDB extensions.
1198 2002-05-01 Richard Henderson <rth@redhat.com>
1200 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1201 target-independent gnu binutils date test.
1203 2002-05-01 Richard Henderson <rth@redhat.com>
1205 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1206 info before expunging the block.
1208 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1210 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1211 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
1212 -M -or -MM is in effect.
1214 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1216 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1217 A29k configurations.
1218 * doc/install.texi: Update to match.
1220 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1223 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1224 for duplicates. Always loop over whole list.
1226 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1228 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1230 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1232 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1235 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1237 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1239 2002-05-01 David Edelsohn <edelsohn@gnu.org>
1241 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1242 (nabs_nopower): Same.
1243 (floatdisf2): New pattern.
1244 (absdi2): Convert to define_insn_and_split.
1249 (fix_trunctfdi2): Same.
1250 (fix_trunctfsi2): Same.
1252 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
1254 * doc/install.texi: Update Texinfo version requirement
1257 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1259 PR target/6512, PR target/5628
1260 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
1261 when memory is not aligned.
1262 (movdf_insn_v9only_vis): Likewise.
1263 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
1264 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
1265 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
1267 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
1269 * gcc.dg/altivec-7.c: New.
1271 * config/rs6000/altivec.h: Cleanup.
1273 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
1275 * doc/invoke.texi (Option Summary): Add -mvrsave=.
1276 (RS/6000 and PowerPC Options): Document -mvrsave=.
1278 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
1279 (rs6000_altivec_vrsave_string): Same.
1280 (rs6000_override_options): Call rs6000_parse_vrsave_option.
1281 (rs6000_parse_vrsave_option): New.
1282 (rs6000_stack_info): Only generate vrsave instructions when
1283 TARGET_ALTIVEC_VRSAVE.
1285 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
1286 (rs6000_altivec_vrsave_string): Define extern.
1287 (rs6000_altivec_vrsave): Same.
1288 (TARGET_ALTIVEC_VRSAVE): New.
1290 2002-04-30 Richard Henderson <rth@redhat.com>
1293 * toplev.c (rest_of_compilation): Don't run cross-jump before
1296 2002-04-30 Tom Rix <trix@redhat.com>
1298 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
1299 check which_alternative.
1301 2002-04-30 Kazu Hirata <kazu@hxi.com>
1303 * cpplex.c: Fix comment formatting.
1304 * function.c: Likewise.
1305 * integrate.c: Likewise.
1306 * regrename.c: Likewise.
1307 * sibcall.c: Likewise.
1308 * simplify-rtx.c: Likewise.
1309 * tree-inline.c: Likewise.
1311 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1313 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
1314 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
1315 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
1316 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
1317 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
1318 * pa/x-ada: New file. Define ADA_CFLAGS.
1320 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
1322 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
1323 from MMIX_LAST_REGISTER_FILE_REGNUM.
1324 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
1325 (struct machine_function): New member highest_saved_stack_register
1326 previously static variable in mmix.c.
1327 (MACHINE_DEPENDENT_REORG): Define.
1328 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
1329 (MMIX_OUTPUT_REGNO): New.
1330 (mmix_target_asm_function_prologue): Move calculation of last used
1331 saved-stack-register into...
1332 (mmix_machine_dependent_reorg): New function. Update to also handle
1334 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
1335 register names, simplify somewhat by new variable regno.
1336 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
1338 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
1339 emitting register names.
1340 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
1341 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
1343 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
1346 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
1348 2002-04-30 Richard Henderson <rth@redhat.com>
1350 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
1351 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
1352 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
1353 emit_tfmode_cvt): New.
1354 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
1355 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
1356 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
1357 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
1358 * config/sparc/sparc-protos.h: Update.
1360 2002-04-30 Janis Johnson <janis187@us.ibm.com>
1362 * install.texi (Final install): Add to the list of info to include
1363 in a report of a successful bootstrap, and add link to 3.1 list.
1365 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
1367 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
1368 (mode): Add vector modes
1369 (i387): Kill attribute.
1370 (unit): New attribute.
1371 (length_immediate): Grok new types.
1372 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
1373 (modrm): Use "unit".
1374 (memory): Handle MMX/SSE properly.
1375 (scheduling descriptions): Kill uses of fop1.
1376 (sse, mmx, fp patterns): Set type and mode properly.
1378 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
1380 * pa.c (override_options): Default to PA8000 scheduling.
1381 * doc/invoke.texi (HP-PA options): Mention newly added 7300
1382 scheduling parameter.
1384 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
1385 handling of double precision multiplies.
1387 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
1388 fpdiv and fpsqrt instructions.
1389 (7200 & 7300 scheduling): Fix typo in handling of
1390 store-load and store-store penalties.
1392 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1394 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
1395 mips. Add two missing commas.
1397 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
1399 * doc/contrib.texi (Contributors): Update Paolo Carlini's
1400 and Benjamin Kosnik's entries.
1402 2002-04-29 David S. Miller <davem@redhat.com>
1404 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
1405 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
1406 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
1407 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1409 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1411 * combine.c (find_split_point): Use gen_int_mode.
1413 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
1415 Merging code from dfa-branch:
1417 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
1419 * genautomata.c (output_reserv_sets): Fix typo.
1421 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
1423 * genautomata.c (output_reserv_sets): Remove
1424 next_cycle_output_flag.
1426 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
1428 * sched-rgn.c (init_ready_list): Make the DFA code handle
1429 USE/CLOBBER insns in the same way as the traditional
1431 (new_ready): Similarly..
1433 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
1435 * haifa-sched.c (schedule_block): Change the DFA state only after
1438 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
1440 * pa.c (hppa_use_dfa_pipeline_interface): New function.
1441 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1442 (override_options): Add PA7300 scheduling support.
1443 (pa_adjust_cost): Update various comments. Properly
1444 handle anti and output dependencies when using the
1446 (pa_issue_rate): Add PA7300 scheduling support.
1447 (pa_can_combine_p): Call extract_insn before calling
1448 constrain_operands (taken from mainline tree).
1449 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
1450 * pa.md (cpu attr): Add 7300. Rewrite pipeline
1451 descriptions using DFA descriptions. Add PA7300
1454 2002-03-30 David S. Miller <davem@redhat.com>
1456 Add UltraSPARC-III DFA scheduling support.
1457 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
1458 Update FP conditional move on register insn patterns to use it, as
1460 (define_attr cpu): Add ultrasparc3.
1461 (define_attr us3load_type): New, update integer load patterns to
1462 set it, as appropriate.
1463 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
1464 (rest): Add UltraSPARC3 scheduling description.
1465 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
1466 (PROCESSOR_ULTRASPARC3): New.
1467 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
1468 ({ASM,CPP}_CPU_SPEC): Likewise.
1469 (REGISTER_MOVE_COST): Likewise.
1470 (RTX_COSTS): Likewise.
1471 * config/sparc/sparc.c (sparc_override_options,
1472 sparc_initialize_trampoline, sparc64_initialize_trampoline,
1473 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1474 sparc_issue_rate): Likewise.
1475 * config/sparc/sol2.h: Likewise.
1476 * config/sparc/sol2-sld-64.h: Likewise.
1477 * config/sparc/linux64.h: Likewise.
1479 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
1481 * doc/md.texi: Add comments about usage the latency time for the
1482 different dependencies and about case when two or more conditions
1483 in different define_insn_reservations returns TRUE for an insn.
1485 * doc/md.texi: Add reference for automaton based pipeline
1488 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
1490 * doc/passes.texi: Add missed information about genattrtab.
1492 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
1494 * genautomata.c (output_automata_list_transition_code): Check
1495 automata_list on NULL.
1497 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
1499 * genautomata.c (output_insn_code_cases,
1500 output_automata_list_min_issue_delay_code,
1501 output_automata_list_transition_code,
1502 output_automata_list_state_alts_code): Comment the functions.
1504 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
1506 * genautomata.c (automata_list_el_t): New typedef.
1507 (get_free_automata_list_el,free_automata_list_el,
1508 free_automata_list, automata_list_hash, automata_list_eq_p,
1509 initiate_automata_lists, automata_list_start, automata_list_add,
1510 automata_list_finish, finish_automata_lists,
1511 output_insn_code_cases, output_automata_list_min_issue_delay_code,
1512 output_automata_list_transition_code,
1513 output_automata_list_state_alts_code, add_automaton_state,
1514 form_important_insn_automata_lists): New functions and prototypes.
1515 (insn_reserv_decl): Add members important_automata_list and
1517 (ainsn): Add members important_p.
1518 (automata_list_el): New structure.
1519 (first_free_automata_list_el, current_automata_list,
1520 automata_list_table): New global variables.
1521 (create_ainsns): Initiate member important_p.
1522 (output_internal_min_issue_delay_func): Generate the switch and
1523 call output_insn_code_cases.
1524 (output_internal_trans_func, output_internal_state_alts_func):
1526 (generate): Call initiate_automata_lists.
1527 (automaton_states): New global variable.
1528 (expand_automata): Call form_important_insn_automata_lists.
1529 (write_automata): Call finish_automata_lists.
1531 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
1533 * genautomata.c (add_excls, add_presence_absence): Check that
1534 cpu units in the sets belong the same automaton.
1536 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
1537 about that cpu units in the sets belong the same automaton.
1539 * doc/md.texi: Ditto.
1541 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
1542 Nitin Gupta <niting@noida.hcltech.com>
1544 * config/sh/sh.c (sh_use_dfa_interface): New function.
1546 (sh_issue_rate): New Function.
1547 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
1548 TARGET_SCHED_ISSUE_RATE: define.
1550 * config/sh/sh.md: Add DFA based pipeline description for SH4.
1552 (define_attr insn_class): New attribute used for DFA
1554 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
1555 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
1556 cmpeqdi_t): Likewise.
1558 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
1559 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
1561 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
1563 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1565 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
1568 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1570 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
1571 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
1573 (output_dfa_start_func): Initiate new variable insn_codes_length,
1574 (write_automata): Output definition of the new variable.
1576 2001-10-02 David S. Miller <davem@redhat.com>
1578 * haifa-sched.c (advance_one_cycle): New function.
1579 (schedule_block): Use it.
1580 (queue_to_ready): Use it, and also make sure to advance the DFA
1581 state on all stall cycles, not just those where insn_queue links
1584 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
1586 * haifa-sched.c (max_issue): Remove last_p argument. Only return
1587 non-zero if the highest-priority instruction could be scheduled.
1588 (choose_ready): Remove last argument from max_issue call.
1590 2001-09-28 David S. Miller <davem@redhat.com>
1592 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
1593 ultrasparc and 3 for other multi-issue sparcs.
1595 2001-09-27 David S. Miller <davem@redhat.com>
1597 * config/sparc/sparc.md (cycle_display): New pattern.
1598 * config/sparc/sparc.c (sparc_cycle_display): New.
1599 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
1601 2001-09-25 David S. Miller <davem@redhat.com>
1603 Convert all of Sparc scheduling to DFA
1604 * config/sparc/sparc.md: Kill all define_function_unit
1605 directives and replace with DFA equivalent.
1606 * config/sparc/sparc.c (ultrasparc_adjust_cost,
1607 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
1608 ultra_fpmode_conflict_exists, ultra_find_type,
1609 ultra_build_types_avail, ultra_flush_pipeline,
1610 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
1611 ultrasparc_variable_issue, ultrasparc_sched_init,
1612 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
1613 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
1614 ultra_cur_hist, ultra_cycles_elapsed): Kill.
1615 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1616 ultrasparc_store_bypass_p): New.
1617 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
1620 2001-09-24 David S. Miller <davem@redhat.com>
1622 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
1623 ready->vec[foo] not ready[foo].
1625 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1627 * doc/md.texi: Correct examples for define_insn_reservations
1630 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1632 * genautomata.c (create_automata): Print message about creation of
1634 (generate): Remove printing meease about creation of
1637 2001-09-05 David S. Miller <davem@redhat.com>
1639 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
1640 * config/sparc/linux64.h: Likewise.
1642 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
1644 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
1645 schedule_block, sched_init, sched_finish): Add missed calls of
1646 use_dfa_pipeline_interface.
1648 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
1651 * sched-vis.c (get_visual_tbl_length): Ditto.
1653 2001-08-27 Richard Henderson <rth@redhat.com>
1655 * genattr.c (main): Emit state_t even when not doing scheduling.
1657 2001-08-27 Richard Henderson <rth@redhat.com>
1659 * genautomata.c (expand_automata): Always create a description.
1661 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
1663 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
1664 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
1665 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
1668 * genattr.c (main): New variable num_insn_reservations. Increase
1669 it if there is DEFINE_INSN_RESERVATION. Output automaton based
1670 pipeline hazard recognizer interface.
1672 * genattrtab.h: New file.
1674 * genattrtab.c: Include genattrtab.h.
1675 (attr_printf, check_attr_test, make_internal_attr,
1676 make_numeric_value): Move protypes into genattrtab.h. Define them
1678 (num_dfa_decls): New global variable.
1679 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
1680 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
1681 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
1682 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
1684 * genautomata.c: New file.
1686 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
1688 * sched-int.h: (curr_state): Add the external definition for
1689 automaton pipeline interface.
1690 (haifa_insn_data): Add comments for members blockage and units.
1692 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1693 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1694 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1695 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1696 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1697 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1698 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
1700 (TARGET_SCHED): Use the new macros.
1702 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
1703 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
1704 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
1705 dfa_bubble): New members in gcc_target.sched.
1707 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
1708 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
1709 (insn_queue): Redefine it as pointer to array.
1710 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
1712 (max_insn_queue_index_macro_value): New variable.
1713 (curr_state, dfa_state_size, ready_try): New varaibles for
1714 automaton interface.
1715 (ready_element, ready_remove, max_issue): New function prototypes
1716 for automaton interface.
1717 (choose_ready): New function prototype.
1718 (insn_unit, blockage_range): Add comments.
1719 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
1720 FUNCTION_UNITS_SIZE == 0.
1721 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
1722 actual_hazard, potential_hazard): Add comments.
1723 (insn_cost): Use cost -1 as undefined value. Remove
1724 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
1726 (ready_element, ready_remove): New functions for automaton
1728 (schedule_insn): Add new code for automaton pipeline interface.
1729 (queue_to_ready): Add new code for automaton pipeline interface.
1730 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
1731 (debug_ready_list): Print newline when the queue is empty.
1732 (max_issue): New function for automaton pipeline interface.
1733 (choose_ready): New function.
1734 (schedule_block): Add new code for automaton pipeline interface.
1735 Print ready list before scheduling each insn.
1736 (sched_init): Add new code for automaton pipeline interface.
1737 Initiate insn cost by -1.
1738 (sched_finish): Free the current automaton state and finalize
1739 automaton pipeline interface.
1741 * sched-rgn.c: Include target.h.
1742 (init_ready_list, new_ready, debug_dependencies): Add new code for
1743 automaton pipeline interface.
1745 * sched-vis.c: Include target.h.
1746 (get_visual_tbl_length): Add code for automaton interface.
1747 (target_units, print_block_visualization): Add comments.
1749 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
1750 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
1751 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
1752 (getruntime.o, genautomata.o): New entries.
1753 (genattrtab.o): Add new dependency file genattrtab.h.
1754 (genattrtab): Add new dependencies. Link it with `libm.a'.
1755 (getruntime.o, hashtab.o): New entries for canadian cross.
1757 * doc/md.texi: Description of automaton based model.
1759 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
1761 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1762 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1763 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1764 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1765 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1766 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1767 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
1769 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
1770 MAX_DFA_ISSUE_RATE): New macro descriptions.
1772 * doc/contrib.texi: Add dfa based scheduler contribution.
1774 * doc/gcc.texi: Add more information about genattrtab.
1776 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1778 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
1779 adjust_address_nv call.
1781 2002-04-29 Janis Johnson <janis187@us.ibm.com>
1783 * doc/install.texi (Testing): Provide additional information, and
1784 a stronger encouragement, for running the testsuites.
1786 2002-04-29 DJ Delorie <dj@redhat.com>
1788 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
1789 given in upper case.
1791 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1793 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
1794 Solaris 2 <widec.h> if missing.
1795 * fixinc/fixincl.x: Regenerate.
1796 * fixinc/tests/base/widec.h: New file.
1798 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
1800 * toplev.c (f_options): Add "profile" switch so that
1801 -fno-profile can be used to disable -p.
1803 2002-04-29 Bernd Schmidt <bernds@redhat.com>
1805 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
1807 * tree.c (build_common_tree_nodes_2): Likewise.
1808 * tree.h (enum tree_index): Likewise.
1809 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
1811 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
1813 (init_mmx_sse_builtins): Initialize SSE2 builtins.
1814 (ix86_expand_builtin): Add support for SSE2 builtins.
1815 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
1816 (VALID_SSE_REG_MODE): Use it.
1817 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
1818 (enum ix86_builtins): Add SSE2 builtins.
1819 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
1820 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
1821 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
1822 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
1823 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
1824 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
1825 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
1826 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
1827 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
1828 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
1829 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
1830 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
1831 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
1832 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
1833 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
1834 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
1835 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
1836 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
1837 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
1838 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
1839 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
1840 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
1841 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
1842 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
1843 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
1844 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
1845 lfence_insn): New patterns.
1846 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
1847 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
1849 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
1851 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
1853 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1855 * doc/contrib.texi (Contributors): Add Paolo Carlini and
1857 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
1858 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
1859 and CPU instead of cpu.
1861 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1863 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
1865 (lang_independent_options): Add -fif-conversion, -fif-conversion2
1866 (rest_of_compilation): Do if conversion only when asked for.
1867 (parse_options_and_default_flags): Set new variables to 1 for -O1
1868 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
1870 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1872 * i386.c (dbx64_register_map): Fix typo.
1874 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1876 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
1877 real_one_half, real_bb_freq_max): New static variables.
1878 (debug_profile_bbauxs): Kill.
1879 (process_note_predictions): Kill unused variable.
1880 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
1882 (propagate_freq): Use REAL_ARITHMETICS.
1883 (estimate_bb_frequencies): Likevise; init new static variables.
1884 * Makefile.in (predict.o): Add dependency on real.h
1886 2002-04-28 David S. Miller <davem@redhat.com>
1889 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
1890 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
1891 several {reads,writes} instead.
1892 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
1895 2002-04-27 David S. Miller <davem@redhat.com>
1898 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
1901 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
1902 including signal.h and sys/ucontext.h, not needed.
1904 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
1906 * varasm.c (output_constant_def): Correct test for not calling
1907 ENCODE_SECTION_INFO for INTEGER_CST.
1909 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
1911 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
1912 keep most cases as function eval_token.
1913 (eval_token): New function.
1914 (_cpp_parse_expr): Read token here for improved diagnostics.
1915 Don't use op_as_text. Detect bad ':' here.
1916 (reduce): Don't detect bad ':' here.
1917 (op_as_text): Remove.
1918 * cpphash.h (_cpp_test_assertion): Change prototype.
1919 * cpplib.c (_cpp_test_assertion): Change prototype.
1921 2002-04-28 Richard Henderson <rth@redhat.com>
1924 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
1925 (ggc_mark_rtx_children): New.
1927 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1930 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
1931 after call peepholes for UltraSPARC.
1932 (call + jump 64-bit peepholes): Remove.
1934 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1937 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1938 result as temporary value.
1940 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1943 * toplev.c (rest_of_compilation): Only run regrename and copy
1944 propagation if optimizing.
1946 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1948 PR optimization/6475
1949 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
1950 register of REGNO_DECL (i).
1951 * Makefile.in (reload1.o): Add $(TREE_H).
1953 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
1955 * cppexp.c (lex): Update to use state.skip_eval.
1956 (struct op): Remove prio and flags members.
1957 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
1958 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
1959 (LEFT_ASSOC): New macro.
1960 (optab): New table of operator priorities and flags.
1962 (_cpp_parse_expr): Clean up logic. Return bool. Use a
1963 malloc-ed parser stack.
1964 (reduce): New; reduce the operator stack.
1965 (_cpp_expand_op_stack): Expand the operator stack as necessary.
1966 * cpphash.h (struct op): Predeclare.
1967 (struct cpp_reader): New members op_stack, op_limit.
1968 (struct lexer_state): New member skip_eval.
1969 (_cpp_parse_expr): Update.
1970 (_cpp_expand_op_stack): New.
1971 * cpplib.c (do_if): Update.
1972 * cppinit.c (cpp_create_reader): Create op stack.
1973 (cpp_destroy): And destroy it.
1974 * cpplib.h (CPP_LAST_CPP_OP): Correct.
1975 (TTYPE_TABLE): Correct.
1977 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1980 * c-decl.c (duplicate_decls): Call merge_weak.
1981 * c-pragma.c (apply_pragma_weak): Warn about misuse.
1982 * output.h (merge_weak): Prototype merge_weak.
1983 * varasm.c (merge_weak): New function.
1984 (declare_weak): Make sure we don't give an error on VAR_DECLs.
1985 Mark RTL with SYMBOL_REF_WEAK.
1987 2002-04-27 Kurt Garloff <garloff@suse.de>
1989 * tree-inline.c (inlinable_function_p): Improve heuristics
1990 by using a smoother function to cut down allowable inlinable size.
1991 * param.def: Add parameters max-inline-insns-single,
1992 max-inline-slope, min-inline-insns that determine the exact
1993 shape of the above function.
1994 * param.h: Likewise.
1996 2002-04-26 Richard Henderson <rth@redhat.com>
1998 * c-parse.in (malloced_yyss, malloced_yyvs): New.
1999 (yyoverflow): Re-add. Set them.
2000 (free_parser_stacks): New.
2001 * c-common.h: Declare it.
2002 * c-lex.c (c_common_parse_file): Call it.
2004 2002-04-26 Richard Henderson <rth@redhat.com>
2006 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2007 for fallthru search.
2009 2002-04-26 Eric Christopher <echristo@redhat.com>
2011 PR optimization/3700
2012 * config/mips/mips.c (mips_issue_rate): Define. New function.
2013 (TARGET_SCHED_ISSUE_RATE): Use.
2015 2002-04-25 David S. Miller <davem@redhat.com>
2018 * reorg.c (optimize_skip): Do not allow exception causing
2019 instructions to be considered for delay slots.
2020 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2021 (relax_delay_slots): Do not try to consider exception causing
2022 instructions as redundant.
2024 2002-04-26 Richard Henderson <rth@redhat.com>
2027 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2029 2002-04-26 Mark Mitchell <mark@codesourcery.com>
2032 * config/i386/i386.md (untyped_call): Return the value in a float
2033 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2036 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
2038 * tree.c (tree_int_cst_lt): Compare constants whose types differ
2039 in unsigned-ness correctly.
2041 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2043 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2044 portable runtime model.
2046 2002-04-26 Richard Henderson <rth@redhat.com>
2048 * c-parse.in (yyoverflow): Revert.
2050 2002-04-26 David Edelsohn <edelsohn@gnu.org>
2051 Richard Henderson <rth@redhat.com>
2053 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2054 result as temporary value.
2056 2002-04-26 Richard Henderson <rth@redhat.com>
2059 * c-common.c (fix_string_type): Split out of ...
2060 (combine_strings): ... here. Take a varray, not a tree list.
2061 (c_expand_builtin_printf): Use fix_string_type.
2062 * c-common.h: Update decls.
2063 * c-parse.in (string): Remove. Update all uses to use STRING
2064 instead, and not call combine_strings.
2067 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2068 (build_asm_stmt): Likewise.
2069 * objc/objc-act.c (my_build_string): Use fix_string_type.
2070 (build_objc_string_object): Build varray for combine_strings.
2072 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2074 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2077 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
2079 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2080 (HAVE_NO_R_OPERAND): Remove.
2081 (HAVE_VALUE): Remove.
2082 (op_to_prio): Update.
2083 (UNARY): Don't alter flags.
2084 (_cpp_parse_expr): want_value used to indicate whether
2085 a number or unary operator is expected next. Distinguish
2086 unary and binary +/-.
2087 (op_as_text): Update for unary operators.
2089 2002-04-25 Richard Henderson <rth@redhat.com>
2092 * c-parse.in (yyoverflow): New.
2094 2002-04-25 Richard Henderson <rth@redhat.com>
2097 * c-common.c (shorten_compare): Simplfy conditions leading to
2098 the generation of a warning.
2100 2002-04-25 Richard Henderson <rth@redhat.com>
2103 * expmed.c (extract_bit_field): Fall through to generic code rather
2104 than aborting on subreg special case.
2106 2002-04-25 David S. Miller <davem@redhat.com>
2108 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2109 for DECL being NULL.
2111 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2113 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2115 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2117 * c-decl.c (grokdeclarator): Remove outdated ??? note
2118 on invalid declaration of flexible array members.
2120 2002-04-25 Richard Henderson <rth@redhat.com>
2122 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2124 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2126 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2127 needed by the compiler, even if they are used as global regs.
2129 2002-04-25 Matt Hiller <hiller@redhat.com>
2131 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2133 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2134 of the corresponding functions.
2135 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2138 2002-04-25 Matt Hiller <hiller@redhat.com>
2140 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2142 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2143 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2144 registers, adjust comment accordingly.
2145 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2146 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2147 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2148 for coprocessor registers.
2149 (ADDITIONAL_REGISTER_NAMES): Include
2150 ALL_COP_ADDITIONAL_REGISTER_NAMES.
2152 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2153 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2154 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2155 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2156 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2158 (mips_char_to_class): Adjust comment to include coprocessor
2161 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2163 (mips_reg_names, mips_regno_to_class): Include coprocessor
2165 (mips_sw_reg_names): Ditto, make non-static.
2166 (mips_move_1word): Handle moves to and from coprocessor registers.
2167 (mips_move_2words): Handle moves to and from coprocessor
2169 (mips_class_max_nregs, mips_register_move_cost): Handle
2170 coprocessor register classes.
2171 (override_options): Initialize mips_char_to_class and
2172 mips_hard_regno_mode_ok properly for coprocessor registers.
2174 * config/mips/mips.md (movdi_internal, movdi_internal2,
2175 movsi_internal1, movsi_internal2): Add constraint-sets for
2176 coprocessor registers.
2177 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2178 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2180 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2181 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2183 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2184 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2186 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2187 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2190 * doc/tm.texi: Document feature.
2192 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2194 * integrate.c (function_attribute_inlinable_p): Simplify.
2195 Check the table pointer is not NULL.
2197 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2199 * doc/c-tree.texi: Fix typo in introduction.
2201 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2203 * c-common.h (c_common_parse_file): Update.
2204 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2205 * c-lex.c (YYDEBUG): Get from c-lex.h.
2206 (c_common_parse_file): Update.
2207 * c-lex.h (YYDEBUG, yydebug): New.
2208 * c-parse.in (YYDEBUG): Get from c-lex.h.
2209 (c_set_yydebug): Remove.
2210 * c-tree.h (c_set_yydebug): Remove.
2211 * langhooks-def.h (lhd_do_nothing_i): New.
2212 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2213 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2214 * langhooks.c (lhd_do_nothing_i): New.
2215 (lhd_set_yydebug): Remove.
2216 * langhooks.h (struct lang_hooks): Update.
2217 * toplev.c (set_yydebug): New.
2218 (compile_file): Update call to parse_file hook.
2219 (decode_d_option): Update.
2221 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2223 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2225 * loop.c (load_mems): Don't change the interface of called functions.
2227 * calls.c (expand_call): Take current_function_pretend_args_size
2228 into account when setting argblock for sibcalls.
2230 2002-04-24 Matt Hiller <hiller@redhat.com>
2232 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2235 * cpplex.c (skip_line_comment): Process comment one multibyte
2236 character at a time rather than one char at a time, if
2238 (parse_string): Process string one multibyte character at a time
2239 rather than one char at a time, if appropriate.
2240 * c-lex.c (lex_string): Lex and copy multibyte strings
2242 * cpplib.h (cppchar_t): Change to unsigned.
2244 2002-04-24 Richard Henderson <rth@redhat.com>
2247 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2250 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2252 * sh.c (sh_va_arg): If argument was passed by reference,
2253 dereference the pointer.
2255 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2257 * sh.md (divsi3_i4_media): Use match_operand for input values
2258 rather than hard registers.
2259 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2260 unnecessarily through hard registers. Keep copies of pseudo
2261 registers outside of the libcall sequence.
2263 * sh.md (casesi_shift_media): Add modes.
2265 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
2268 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
2270 * attribs.c (c_common_attribute_table): Move table and handlers
2272 (format_attribute_table, lang_attribute_table,
2273 lang_attribute_common): Remove.
2274 (init_attributes): Replace NULL pointers with pointers to the
2276 (handle_packed_attribute, handle_nocommon_attribute,
2277 handle_common_attribute, handle_noreturn_attribute,
2278 handle_noinline_attribute, handle_always_inline_attribute,
2279 handle_used_attribute, handle_unused_attribute,
2280 handle_const_attribute, handle_transparent_union_attribute,
2281 handle_constructor_attribute, handle_destructor_attribute,
2282 handle_mode_attribute, handle_section_attribute,
2283 handle_aligned_attribute, handle_weak_attribute,
2284 handle_alias_attribute, handle_visibility_attribute,
2285 handle_no_instrument_function_attribute, handle_malloc_attribute,
2286 handle_no_limit_stack_attribute, handle_pure_attribute,
2287 handle_deprecated_attribute, handle_vector_size_attribute,
2288 vector_size_helper): Move to c-common.c.
2289 * c-common.c (c_common_attribute_table,
2290 handle_packed_attribute, handle_nocommon_attribute,
2291 handle_common_attribute, handle_noreturn_attribute,
2292 handle_noinline_attribute, handle_always_inline_attribute,
2293 handle_used_attribute, handle_unused_attribute,
2294 handle_const_attribute, handle_transparent_union_attribute,
2295 handle_constructor_attribute, handle_destructor_attribute,
2296 handle_mode_attribute, handle_section_attribute,
2297 handle_aligned_attribute, handle_weak_attribute,
2298 handle_alias_attribute, handle_visibility_attribute,
2299 handle_no_instrument_function_attribute, handle_malloc_attribute,
2300 handle_no_limit_stack_attribute, handle_pure_attribute,
2301 handle_deprecated_attribute, handle_vector_size_attribute,
2302 vector_size_helper): Move from attribs.c.
2303 * c-common.h (c_common_attribute_table,
2304 c_common_format_attribute_table): New.
2305 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2306 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2307 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2308 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
2309 (LANG_HOOKS_INITIALIZER): Update.
2310 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
2311 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
2312 * target.h: Update comment.
2313 * tree.c (default_target_attribute_table): Remove.
2314 * tree.h (default_target_attribute_table, format_attribute_table,
2315 lang_attribute_table, lang_attribute_common): Remove.
2317 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2318 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2320 2002-04-24 Jason Merrill <jason@redhat.com>
2322 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
2323 * dwarf2out.c (dwarf_attr_name): Support it.
2324 (gen_array_type_die): Emit it.
2325 (lookup_type_die): No special handling for VECTOR_TYPE.
2326 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
2328 2002-04-24 Richard Henderson <rth@redhat.com>
2330 * config/mips/mips.md (movdi_usd): Renumber.
2332 2002-04-24 David S. Miller <davem@redhat.com>
2335 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2336 32-bit Sparc and current_function_returns_struct is true.
2338 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2340 * loop.c (canonicalize_condition): Use gen_int_mode.
2342 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
2344 * config/rs6000/altivec.h: Cleanup file. Add non individual
2366 (vec_vcmpequb): New.
2367 (vec_vcmpequh): New.
2368 (vec_vcmpequw): New.
2369 (vec_vcmpeqfp): New.
2370 (vec_vcmpgefp): New.
2371 (vec_vcmpgtub): New.
2372 (vec_vcmpgtsb): New.
2373 (vec_vcmpgtuh): New.
2374 (vec_vcmpgtsh): New.
2375 (vec_vcmpgtuw): New.
2376 (vec_vcmpgtsw): New.
2377 (vec_vcmpgtfp): New.
2378 (vec_vcmpgefp): New.
2383 (vec_vexptefp): New.
2388 (vec_lde): Add vector float variant.
2393 (vec_vmhaddshs): New.
2415 (vec_vmladduhm): New.
2416 (vec_vmhraddshs): New.
2418 (vec_vmsummbm): New.
2419 (vec_vmsumuhm): New.
2420 (vec_vmsumshm): New.
2421 (vec_vmsumuhs): New.
2422 (vec_vmsumshs): New.
2431 (vec_vnmsubfp): New.
2449 (vec_vrsqrtefp): New.
2460 (vec_vspltisb): New.
2461 (vec_vspltish): New.
2462 (vec_vspltisw): New.
2487 (vec_vsum4ubs): New.
2488 (vec_vsum4sbs): New.
2489 (vec_vsum4shs): New.
2490 (vec_vsum2sws): New.
2501 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
2504 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
2505 added literals from substracted literals.
2506 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
2507 (fold) [associate]: Preserve MINUS_EXPR if needed.
2509 2002-04-23 Zack Weinberg <zack@codesourcery.com>
2511 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
2514 2002-04-23 Tom Tromey <tromey@redhat.com>
2516 * gcc.c: Added --resource. For PR java/6314.
2518 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2520 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2521 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
2524 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2526 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
2528 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2530 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
2532 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
2533 (ix86_expand_clrstr): Fix typo.
2534 * loop.c (gen_load_of_final_value): New.
2535 (loop_givs_rescan, strength_reduce, check_dbra_loop):
2538 2002-04-23 Roger Sayle <roger@eyesopen.com>
2540 * builtins.c (builtin_memset_gen_str): New function.
2541 (expand_builtin_memset): Optimize the case of constant length, but
2544 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
2546 * config/rs6000/altivec.h (vec_step): Remove extraneous
2548 (vec_ctu): Cast return.
2550 2002-04-23 Alan Modra <amodra@bigpond.net.au>
2553 * function.h: (struct function): Add profile_label_no field.
2554 (current_function_profile_label_no): Define.
2555 * function.c: (profile_label_no): New static var.
2556 (expand_function_start): Increment it, and copy to
2557 current_function_profile_label_no.
2558 * output.h (profile_label_no): Delete.
2559 * final.c (profile_label_no): Delete.
2560 (profile_function): Use current_function_profile_label_no.
2561 (final_end_function): Don't increment profile_label_no here.
2562 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
2563 profile_label_no with current_function_profile_label_no.
2564 * config/pa/pa.c (current_function_number): Delete.
2565 (pa_output_function_prologue): Don't output profile label here.
2566 (hppa_profile_hook): Use label_no param rather than
2567 current_function_number.
2568 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
2569 * config/pa/pa.h: .. here.
2570 (FUNCTION_PROFILER): Output profile label here.
2572 2002-04-22 Eric Christopher <echristo@redhat.com>
2574 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
2575 patch of 2002-04-09 due to binutils issues.
2576 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
2578 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2580 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
2581 constraint to 'o' for m=r and r=m alternatives.
2582 ("*movv8hi_internal1"): Same.
2583 ("*movv16qi_internal1"): Same.
2584 ("*movv4sf_internal1"): Same.
2586 2002-04-22 Janis Johnson <janis187@us.ibm.com>
2588 * rtl.h (RTX_FLAG): New macro.
2589 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
2590 * final.c (alter_subreg): Use macro to access rtx flag.
2591 * integrate.c (copy_rtx_and_substitute): Use new access macro.
2592 * print-rtl.c (print_rtx): Use new access macro.
2594 * cse.c (insert): Check rtx code before accessing flag.
2596 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
2597 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
2598 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
2599 convert_const_symbol_ref, make_canonical, make_alternative_compare,
2600 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
2601 simplify_test_exp, optimize_attrs, simplify_by_exploding,
2602 find_and_mark_used_attributes, unmark_used_attributes,
2603 add_values_to_cover, simplify_with_current_value,
2604 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
2605 copy_rtx_unchanging, main): Use new access macros.
2607 2002-04-22 Tom Rix <trix@redhat.com>
2609 * expmed.c (init_expmed): Generate shifted constant once.
2611 2002-04-22 Zack Weinberg <zack@codesourcery.com>
2613 * c-lex.c (lex_charconst): Call convert to get constant in
2614 proper type; don't just smash the type field.
2617 * config.gcc: Add list of obsolete configurations. Disallow
2618 building these without --enable-obsolete.
2619 * doc/install.texi: Document --enable-obsolete and obsoletion
2620 policy. Mention obsoletion of individual targets in
2623 2002-04-22 Richard Henderson <rth@redhat.com>
2625 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
2627 2002-04-22 Mark Mitchell <mark@codesourcery.com>
2630 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
2631 (walk_fixup_memory_subreg): Likewise.
2632 (fixup_var_refs_insn): Adjust accordingly.
2633 (fixup_var_refs_1): Likewise.
2635 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
2637 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
2638 LIBPATH_ARCH64_SPEC): Define.
2639 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
2640 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
2641 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
2642 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
2644 2002-04-22 Joel Sherrill <joel@OARcorp.com>
2646 * gthr-rtems.h: Correct prototypes to remove warnings.
2648 2002-04-22 Richard Henderson <rth@redhat.com>
2651 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
2653 * gcse.c (free_insn_expr_list_list): New.
2654 (clear_modify_mem_tables): Use it. Fix bit set usage.
2655 (canon_list_insert): Use EXPR_LISTs for expressions.
2656 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
2658 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
2660 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
2661 file change and include code to _cpp_pop_buffer.
2662 * cpphash.h (struct pending_option): Predeclare.
2663 (struct cpp_reader): New member next_include_file.
2664 (_cpp_pop_file_buffer): Update.
2665 (_cpp_push_next_buffer): Update, rename.
2666 * cppinit.c (cpp_destroy): Free include chain and pending here.
2667 (cpp_finish_options): Simplify.
2668 (_cpp_push_next_buffer): Rename and clean up.
2669 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
2671 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
2673 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2675 * config/rs6000/altivec.h (vec_xor): Add variant for both args
2676 being vector signed int.
2678 (vec_xor): Add variant for both args being vector signed char.
2679 Remove redundant variant.
2682 2002-04-21 David S. Miller <davem@redhat.com>
2684 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
2685 compare mode in output RTL.
2687 2002-04-22 David Edelsohn <edelsohn@gnu.org>
2689 * config/rs6000/rs6000.c (rs6000_override_options): Correct
2690 style and formatting of previous patch.
2692 2002-04-22 Alan Modra <amodra@bigpond.net.au>
2694 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2695 flag_pic for ABI_AIX.
2697 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2699 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
2700 * cppfiles.c (read_include_file): Similarly.
2701 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
2702 uxstrdup ustrchr, ufputs): Similarly.
2703 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
2704 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
2705 cpp_ideq, parse_identifier, parse_number): Similarly.
2706 * cpplib.c (struct directive, dequote_string, D, run_directive,
2707 cpp_push_buffer): Similarly.
2708 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
2709 _cpp_create_definition, check_trad_stringification,
2710 cpp_macro_definition): Similarly.
2712 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2714 * cppmacro.c (funlike_invocation_p): Don't step back
2717 2002-04-21 David Edelsohn <edelsohn@gnu.org>
2719 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
2722 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
2724 * doc/invoke.texi: Remove Chill references.
2725 * doc/gcc.texi: Update last modified date.
2727 2002-04-20 Kazu Hirata <kazu@hxi.com>
2729 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
2730 push and pop. Replace add.l with add.w.
2732 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2734 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
2735 multiply instructions for H8/300H case.
2737 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2739 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
2740 Bum three instructions from each routine.
2742 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
2744 * Makefile.in: Update.
2745 * decl.c (push_c_function_context, pop_c_function_context,
2746 mark_c_function_context): Rename for consistency.
2747 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
2748 * c-tree.h (push_c_function_context, pop_c_function_context,
2749 mark_c_function_context): Rename for consistency.
2750 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2751 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2752 * function.c (init_lang_status, save_lang_status,
2753 restore_lang_status, mark_lang_status, free_lang_status):
2754 Move to langhooks.h.
2755 (push_function_context_to, pop_function_context_from,
2756 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
2758 * function.h (init_lang_status, save_lang_status,
2759 restore_lang_status, mark_lang_status, free_lang_status):
2760 Move to langhooks.h.
2761 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
2762 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2763 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
2764 LANG_HOOKS_FUNCTION_INITIALIZER): New.
2765 (LANG_HOOKS_INITIALIZER): Update.
2766 (lhd_do_nothing_f): New.
2767 * langhooks.h (struct lang_hooks_for_functions): New.
2768 (struct lang_hooks): New hooks.
2769 * langhooks.c (lhd_do_nothing_f): New.
2771 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2772 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2774 2002-04-19 David S. Miller <davem@redhat.com>
2776 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
2777 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
2779 2002-04-19 Jakub Jelinek <jakub@redhat.com>
2781 PR optimization/3756
2782 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
2783 x = ((int) y < 0) ? cst1 : cst2.
2785 2002-04-19 Jakub Jelinek <jakub@redhat.com>
2788 * function.c: Reapply patch for c/6358.
2789 (expand_function_end): Copy decl_rtl's mode, not
2790 current_function_return_rtx mode.
2792 2002-04-19 Joel Sherrill <joel@OARcorp.com>
2794 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
2797 2002-04-19 Tom Tromey <tromey@redhat.com>
2799 * doc/install.texi (Specific): Update status of Solaris 2.8.
2802 2002-04-19 Andreas Schwab <schwab@suse.de>
2804 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
2805 (PUT_REAL): Restore old definition.
2807 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
2808 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2810 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
2811 binutils 2.11.2 and higher generate smaller binaries than Sun's
2814 2002-04-19 Mark Mitchell <mark@codesourcery.com>
2817 * toplev.c (rest_of_compilation): Do not defer functions for which
2818 TREE_SYMBOL_REFERENCED has already been set.
2820 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
2822 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
2825 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
2827 * builtins.c: Include langhooks.h.
2828 (lang_type_promotes_to): Remove.
2829 (expand_builtin_va_arg): Use new hook.
2830 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
2831 (simple_type_promotes_to): Move to c-typeck.c.
2832 * c-common.h (simple_type_promotes_to): Remove.
2833 * c-decl.c (duplicate_decls, grokdeclarator): Update.
2834 * c-format.c: Include langhooks.h.
2835 (check_format_types): Update.
2836 * c-tree.h (c_type_promotes_to): New.
2837 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
2838 (type_lists_compatible_p): Update.
2839 * langhooks-def.h (lhd_type_promotes_to): New.
2840 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
2841 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2842 * langhooks.c (lhd_type_promotes_to): New.
2843 * langhooks.h (struct lang_hooks_for_types): New hook.
2844 * tree.h (lang_type_promotes_to): Remove.
2846 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
2848 2002-04-18 Richard Henderson <rth@redhat.com>
2850 * function.c: Revert patch for c/6358.
2852 2002-04-18 Richard Henderson <rth@redhat.com>
2854 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
2855 blocks. Handle multiple references to the TRAP block. Handle
2856 non-adjacent THEN and OTHER blocks.
2858 2002-04-18 Richard Henderson <rth@redhat.com>
2860 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
2861 crash with no type for by-mode libcalls.
2863 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
2865 2002-04-18 Bob Wilson <bob.wilson@acm.org>
2867 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
2868 __xtensa_nonlocal_goto): Use a syscall instructions to flush
2869 the register windows.
2871 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2873 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
2874 appropriate. Document need for extended precision even when
2875 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
2876 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
2877 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
2878 instead of relying on later syntax error when REAL_WIDTH > 5.
2879 * real.c: Define NE based only on whether or not we have a
2880 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
2881 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
2882 define GET_REAL and PUT_REAL as simple memcpy operations; no
2883 need to byteswap or round.
2884 Use #error instead of #ifdef-ing out the entire file, for
2885 prompt error detection.
2887 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
2889 2002-04-18 David S. Miller <davem@redhat.com>
2891 * config/sparc/sparc.h (BRANCH_COST): Define.
2893 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
2896 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
2898 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
2899 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
2900 propagate_block calls after relaxation loop using new variable
2901 stabilized_prop_flags.
2903 2002-04-18 Richard Henderson <rth@redhat.com>
2905 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
2906 (ia64_va_arg): Expect variable sized types by reference.
2907 * config/ia64/ia64-protos.h: Update.
2908 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
2909 ia64_function_arg_pass_by_reference.
2911 2002-04-18 Richard Henderson <rth@redhat.com>
2913 * ifcvt.c: Include except.h.
2914 (block_has_only_trap): Break out from find_cond_trap.
2915 (find_cond_trap): Use it. Always delete the trap block.
2916 (merge_if_block): Allow then block null. Be less simplistic about
2917 what insns can end a block.
2918 * Makefile.in (ifcvt.o): Depend on except.h.
2920 * config/ia64/ia64.md (trap, conditional_trap): New.
2922 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2925 * function.c (assign_parms): Assign hard current_function_return_rtx
2927 (expand_function_end): ...not here.
2929 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
2931 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2932 * c-tree.h (c_incomplete_type_error): New.
2933 * c-typeck.c (require_complete_type, build_component_ref): Update.
2934 (incomplete_type_error): Rename.
2935 * langhooks-def.h (lhd_incomplete_type_error): New.
2936 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
2937 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2938 * langhooks.c (lhd_incomplete_type_error): New.
2939 * langhooks.h (struct lang_hooks_for_types): New hook.
2940 * tree.c (size_in_bytes): Use new hook.
2941 * tree.h (incomplete_type_error): Remove.
2943 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2945 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2947 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2948 TARGET_FLOAT_FORMAT blocks.
2950 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2952 * doc/install.texi (Downloading the source): Do not mention Chill
2953 any longer, but mention Ada.
2954 (Configuration): Do not mention Chill any longer.
2956 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
2958 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2960 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
2962 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2965 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2967 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2968 instead of unsigned_type.
2970 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2972 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2973 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2976 2002-04-18 Bernd Schmidt <bernds@redhat.com>
2978 * attribs.c (vector_type_node_list): New static variable.
2979 (handle_vector_size_attribute): Use it to avoid generating a
2980 new type node each time we are called.
2982 * combine.c (subst): Avoid trying to make a vector mode subreg of
2983 an integer constant.
2984 (gen_lowpart_for_combine): Likewise.
2986 2002-04-18 Roger Sayle <roger@eyesopen.com>
2987 Jakub Jelinek <jakub@redhat.com>
2989 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2990 for integer constant c (if x has unsigned type or sign bit is not
2991 set in c). This folds the zero/sign extension into the bit-wise and
2994 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2997 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3000 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
3002 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3004 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
3006 * gcc.c (read_specs): Detect and fail if an attempt is made to
3007 rename a spec string to an already existing string.
3009 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3011 * config/s390/s390.c (legitimize_pic_address): Do not generate
3012 illegal address constant without CONST.
3014 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3016 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3017 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3019 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3021 PR optimization/6305
3022 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3023 to make sure previous reloads are taken into account. Generate
3024 better code if one operand is an in-range immediate constant.
3026 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
3028 * doc/install.texi (Building): libgcj requires GNU make.
3030 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3033 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3034 even if hard quad and register is not floating.
3035 (movtf reg<-mem split): Disallow splitting if hard quad and
3036 register is floating.
3037 (movtf mem<-reg split): Likewise.
3038 * config/sparc/sparc.c (fp_register_operand): New predicate.
3039 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3041 2002-04-17 Zack Weinberg <zack@codesourcery.com>
3043 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3044 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3045 (unprotoize.o): Ditto. Build from protoize.c. Define
3046 UNPROTOIZE on command line.
3047 * protoize.c: Include cppdefault.h. Delete include_defaults.
3048 (in_system_include_dir): Use cpp_include_defaults (defined in
3050 * unprotoize.c: Delete file.
3052 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
3054 * config/rs6000/altivec.h (vec_ld): Add array variants.
3058 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3059 Aldy Hernandez <aldyh@redhat.com>
3061 * config/rs6000/altivec.h: Define __ALTIVEC__.
3068 Add parentheses to all macro arguments.
3070 2002-04-16 Richard Henderson <rth@redhat.com>
3073 * except.c (remove_eh_handler): Insert inner regions at beginning
3074 of sibling chain. Refactor expressions.
3076 2002-04-16 Richard Henderson <rth@redhat.com>
3078 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3079 * config/sparc/sol2-gas-bi.h: New file.
3080 * config.gcc (sparc*-solaris): Add it as needed.
3081 * configure.in (AS_SPARC64_FLAG): Remove check.
3082 * config.in, configure: Regenerate.
3084 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3086 2002-04-16 Richard Henderson <rth@redhat.com>
3088 * config/mips/mips.c (override_options): Don't override N32 for
3092 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3093 (HILO_delay): Set can_delay false.
3095 2002-04-16 Dale Johannesen <dalej@apple.com>
3097 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3098 instruction addresses.
3099 (rs6000_output_function_epilogue): Likewise.
3101 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3103 * c-parse.in (poplevel, compstmt_start,
3104 compstmt_primary_start): Add ending ';', in accordance
3107 2002-04-16 Richard Henderson <rth@redhat.com>
3109 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3110 Adjust tm_file order to get TARGET_DEFAULT set properly.
3111 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3112 * doc/install.texi (sparc-solaris): Update.
3114 2002-04-16 Dale Johannesen <dalej@apple.com>
3116 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3117 comparison operands do not match each other or if modes of
3118 conditions do not match result.
3120 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3123 * config/s390/s390.md (mulsidi3): Set both subregs of the
3126 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3128 * config/rs6000/altivec.h (vec_addc): Type check.
3130 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3133 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3135 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3137 2002-04-15 Richard Henderson <rth@redhat.com>
3139 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3140 call_really_used_regs too.
3142 2002-04-15 Richard Henderson <rth@redhat.com>
3144 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3146 2002-04-15 David S. Miller <davem@redhat.com>
3148 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3151 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3154 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3155 CONST_VECTOR is { 0, ... 0 }.
3157 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3159 * doc/install.texi (Installing GCC: Configuration): Clarify
3160 the only supported ways to configure gcc.
3162 2002-04-15 Roland McGrath <roland@frob.com>
3164 * config.gcc (alpha*-*-gnu*): New target configuration.
3165 * config/alpha/gnu.h: New file for it.
3166 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3168 2002-04-16 Mark Mitchell <mark@codesourcery.com>
3170 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3171 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3172 * tree.h (expand_start_stmt_expr): Update prototype.
3173 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3174 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3175 on the STMT_EXPR created for the inline function.
3177 2002-04-15 Richard Henderson <rth@redhat.com>
3179 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3180 config/i386/linux-aout.h, config/i386/linux-oldld.h,
3181 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3182 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3183 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3184 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3185 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3186 Define __gnu_linux__, not gnu_linux.
3187 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3189 2002-04-15 Mark Mitchell <mark@codesourcery.com>
3191 Remove Chill front end.
3192 * gcc.c (default_compilers): Remove Chill entries.
3193 * ch: Remove directory.
3194 * doc/frontends.texi: Remove information about Chill.
3195 * doc/sourcebuild.texi: Likewise.
3196 * doc/standards.texi: Likewise.
3198 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3200 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3201 (LONGLONG_STANDALONE): Define.
3203 2002-04-15 David S. Miller <davem@redhat.com>
3205 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3206 Call emit_library_call with LCT_NORMAL.
3207 (sparc_initialize_trampoline): Use LCT_foo instead of
3208 magic constant in emit_library_call invocations.
3209 (sparc64_initialize_trampoline): Likewise.
3210 (sparc_profile_hook): Likewise.
3211 * config/sparc/sparc.md: Likewise.
3213 * config/sparc/sparc.c (sparc_extra_constraint_check):
3214 Fix type of argument 'c'.
3215 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3218 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3220 * diagnostic.h (output_buffer_state): Redefine.
3221 (output_format_decoder): New macro.
3222 (output_prefixing_rule): Likewise.
3223 (output_line_cutoff): Likewise.
3224 (diagnostic_format_decoder): Adjust.
3225 (diagnostic_prefixing_rule): Likewise.
3226 (diagnostic_line_cutoff): Likewise.
3227 (diagnostic_state): Likewise.
3228 (diagnostic_kind_count): Likewise.
3229 (diagnostic_buffer): Now a macro.
3231 * diagnostic.c (diagnostic_buffer): Remove definition.
3232 (output_is_line_wrapping): Adjust.
3233 (set_real_maximum_length): Likewise.
3234 (output_set_maximum_length): Likewise.
3235 (init_output_buffer): Likewise.
3236 (lhd_print_error_function): Likewise.
3237 (output_do_verbatim): Likewise.
3239 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3241 * cpperror.c (print_location): Don't print include chain
3243 (cpp_begin_message): Update to use DL_ macros.
3244 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3245 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3246 cpp_notice, cpp_notice_from_errno): Remove.
3247 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3250 * cppexp.c (CPP_ICE): Remove.
3251 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3252 lex, integer_overflow, _cpp_parse_expr): Update.
3253 * cppfiles.c (read_include_file, find_include_file,
3254 handle_missing_header, _cpp_read_file, remap_filename): Update.
3255 * cpphash.h (enum error_type): Remove.
3256 (_cpp_begin_message): Update.
3257 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
3258 cpp_handle_option, cpp_post_options): Update.
3259 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
3260 skip_whitespace, parse_identifier, parse_slow, parse_string,
3261 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
3262 cpp_interpret_charconst): Update.
3263 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
3264 lex_macro_node, do_undef, glue_header_name, parse_include,
3265 do_include_common, read_flag, do_line, do_linemarker, do_ident,
3266 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
3267 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
3268 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
3269 _cpp_pop_buffer, do_diagnostic): Update.
3270 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
3271 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
3272 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3273 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3274 cpp_notice, cpp_notice_from_errno): Remove.
3275 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3278 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
3279 collect_args, enter_macro_context, save_parameter, parse_params,
3280 _cpp_create_definition, check_trad_stringification,
3281 cpp_macro_definition): Update.
3282 * cppmain.c (cpp_preprocess_file): Update.
3283 * fix-header.c (read_scan_file): Update.
3285 2002-04-14 Andreas Schwab <schwab@suse.de>
3287 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
3289 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3291 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
3293 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3295 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
3298 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
3300 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
3302 2002-04-13 Joel Sherrill <joel@OARcorp.com>
3304 * config/sparc/t-elf: Enable v8 multilibs. Impacts
3305 sparc-elf and sparc-rtems targets.
3307 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3309 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
3310 defined, and __gnu_hurd__ wherever __GNU__ is defined.
3311 * arm/linux-elf.h: Likewise.
3312 * cris/aout.h: Likewise.
3313 * cris/linux.h: Likewise.
3314 * i370/linux.h: Likewise.
3315 * i386/gnu.h: Likewise.
3316 * i386/linux-aout.h: Likewise.
3317 * i386/linux-oldld.h: Likewise.
3318 * i386/linux.h: Likewise.
3319 * i386/linux64.h: Likewise.
3320 * ia64/linux.h: Likewise.
3321 * m68k/linux-aout.h: Likewise.
3322 * m68k/linux.h: Likewise.
3323 * mips/linux.h: Likewise.
3324 * pa/pa-linux.h: Likewise.
3325 * pj/linux.h: Likewise.
3326 * rs6000/sysv4.h: Likewise.
3327 * s390/linux.h: Likewise.
3328 * sh/linux.h: Likewise.
3329 * sparc/linux-aout.h: Likewise.
3330 * sparc/linux.h: Likewise.
3331 * sparc/linux64.h: Likewise.
3332 * xtensa/linux.h: Likewise.
3334 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
3336 * stmt.c (check_unique_operand_names): Expect operand names to
3337 be strings rather than identifiers. Use simple_cst_equal to
3339 (resolve_operand_name_1): Make same identifier to string change here.
3340 * c-parse.in (asm_operand): Convert a named operand into a string.
3341 * cp/parse.y (asm_operand): Likewise.
3343 2002-04-13 Andreas Schwab <schwab@suse.de>
3345 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
3347 2002-04-12 Mark Mitchell <mark@codesourcery.com>
3349 Revert these changes:
3351 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3354 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3356 2002-04-12 Richard Henderson <rth@redhat.com>
3358 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
3359 (sparc*-*-solaris): Clean up header files.
3360 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
3361 and plan on generating 64-bit code.
3362 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
3363 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
3364 * config/sparc/sol2-sld-64.h: Rename ...
3365 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
3366 for AS_SPARC64_FLAG not defined.
3367 * config/sparc/sol2-gld-bi.h: New.
3368 * config/sparc/sol2-sld.h: Remove.
3369 * config/sparc/sol26-sld.h: New.
3370 * config/sparc/sol2.h: Tidy comments.
3371 * doc/install.texi: Document sparc-solaris configury changes.
3373 2002-04-12 Richard Henderson <rth@redhat.com>
3375 * recog.c (offsettable_address_p): Match the logic in adjust_address.
3377 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
3378 in 64-bit mode only. Use only for 32-bit or MEDLOW.
3380 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3382 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
3384 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
3386 * pa.c (pa_can_combine_p): Call extract_insn before calling
3389 2002-04-12 Douglas B Rupp <rupp@gnat.com>
3391 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
3392 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
3393 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3394 (CPP_PREDEFINES): Handle __declspec.
3395 * config/i386/t-interix (USER_H): Remove.
3397 2002-04-12 DJ Delorie <dj@redhat.com>
3399 * integrate.c (compare_blocks): Make comparisons safe for when
3400 sizeof(int) < sizeof(char *).
3401 (find_block): Likewise.
3403 2002-04-12 Jan Hubicka <jh@suse.cz>
3404 David Edelsohn <edelsohn@gnu.org>
3406 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
3408 (symbol_ref_operand): New.
3409 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
3410 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
3412 2002-04-12 Andreas Schwab <schwab@suse.de>
3414 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
3415 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
3416 overrides the definition in config/svr4.h.
3418 2002-04-12 Eric Norum <eric.norum@usask.ca>
3420 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
3421 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
3422 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
3423 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
3424 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
3425 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
3426 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
3427 definitions to config/rtems.h and make the targets more similar.
3429 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3431 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
3432 POINTERS_EXTEND_UNSIGNED.
3433 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
3434 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
3436 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
3439 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
3441 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
3442 depends on TARGET_SHMEDIA, not TARGET_SH5.
3444 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
3446 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
3447 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
3449 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3451 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
3454 2002-04-12 Andreas Schwab <schwab@suse.de>
3456 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
3458 2002-04-12 Richard Henderson <rth@redhat.com>
3461 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
3463 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
3464 modes spanning multiple hard regs.
3466 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
3468 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3470 * pa.c (pa_output_function_prologue): Don't accumulate the total
3471 number of code bytes when using TARGET_64BIT, or gas, SOM and not
3472 the portable runtime.
3473 (output_deferred_plabels): Handle 64bit plabels.
3474 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
3475 generating pic code using the GAS assembler for object formats that
3476 are not SOM (ie., ELF32 and ELF64).
3477 (output_millicode_call): Check attribute type if attribute length is 28.
3478 Likewise use $PIC_pcrel$0. Only call get_attr_length and
3479 dbr_sequence_length once.
3480 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
3481 dbr_sequence_length once.
3482 * pa.h (TARGET_SOM): Define if not defined.
3483 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
3484 with GAS and not SOM.
3485 (jump, call_internal_reg, call_value_internal_reg): Likewise.
3486 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
3488 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3490 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
3491 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
3492 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
3493 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
3494 elfos.h and dbxelf.h values are fine now.
3495 * config/i386/freebsd.h, config/alpha/freebsd.h
3496 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
3498 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3500 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
3501 or set Acpu or Amachine. Reformat.
3502 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3504 (LINK_SPEC): Do not need to undef.
3505 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
3506 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
3507 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3509 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
3510 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
3511 (LINK_SPEC): Do not need to undef.
3512 (DONT_USE_BUILTIN_SETJMP): Do not define.
3513 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
3514 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
3515 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
3516 Remove trailing spaces.
3517 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
3518 __ELF__, or set Acpu or Amachine. Reformat.
3519 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3522 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3524 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
3525 all other *-*-freebsd* targets.
3527 2002-04-11 Richard Henderson <rth@redhat.com>
3529 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
3531 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3533 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
3534 Include {cpu}/{cpu}.h thru tm_file.
3535 (alpha*-*-linux*ecoff): Remove target.
3536 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
3537 (LINK_SPEC): Remove, is not OS independent.
3538 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
3539 (LINK_SPEC): Do not need to #undef any longer.
3540 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
3542 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
3544 (LINK_SPEC): Moved here from alpha/elf.h.
3545 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
3547 * config/alpha/linux-ecoff.h: Remove.
3548 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
3549 (CPP_SPEC): Define _POSIX_SOURCE as needed.
3550 (CPP_SUBTARGET_SPEC): Do not define.
3551 (LINK_SPEC): Do not need to #undef any longer.
3552 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
3553 * config/alpha/vms.h: Likewise.
3555 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3557 * doc/extend.texi: Remove old claim that typedefs cannot have
3558 an alignment attribute.
3560 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3562 PR optimization/6177
3563 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
3564 bitpos is 0 and bitsize CONCAT size.
3566 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3569 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
3571 2002-04-10 David O'Brien <obrien@FreeBSD.org>
3573 * config/alpha/freebsd.h: Minor reformatting.
3574 (CPP_SPEC): Define ELF and add cpp_subtarget.
3575 (ASM_SPEC): No longer needed.
3577 2002-04-11 Richard Henderson <rth@redhat.com>
3579 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
3580 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
3581 (dimode mem/zero splitter): New.
3583 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
3585 * config/cris/cris.c (cris_override_options): Tweak error message
3586 for PIC not implemented.
3588 * config/cris/cris.h: Tweak comments related to parameter-passing.
3590 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
3592 2002-04-10 Richard Henderson <rth@redhat.com>
3594 * except.c (add_ehl_entry): Allow duplicates after landing pad
3597 2002-04-10 David Edelsohn <edelsohn@gnu.org>
3599 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
3601 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
3603 * c-decl.c (c_init_decl_processing): Move generation of
3604 decls for g77_integer_type_node and friends from here ...
3605 * c-common.c (c_common_nodes_and_builtins): ... to here.
3607 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
3609 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
3610 is only used as frame pointer when frame_pointer_needed is true.
3612 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
3615 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
3616 for the fact that the pool entry uses two words.
3617 (movdf_hard_insn): Similarly. Also, ADR instruction can span
3619 (movdf_soft_insn): Similarly.
3620 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
3621 for the fact that the pool entry uses three words.
3623 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
3625 * config/mips/mips.c (mips_va_arg): When using the struct version
3626 of the EABI va_list, allow arguments in the register save area to
3627 take up less room than a stack argument.
3629 2002-04-10 Richard Henderson <rth@redhat.com>
3631 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
3632 if EXPAND_INITIALIZER.
3634 2002-04-09 Richard Henderson <rth@redhat.com>
3636 * config/alpha/alpha.md (movdi_er_maybe_g): New.
3637 * config/alpha/alpha.c (alpha_expand_mov): Use it.
3639 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3641 PR optimization/6233
3642 * rtlanal.c (pure_call_p): New function.
3643 * rtl.h (pure_call_p): Declare.
3644 * loop.c (prescan_loop): Use it to set has_nonconst_call.
3645 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
3647 2002-04-09 Eric Christopher <echristo@redhat.com>
3649 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
3650 information to .comm directive.
3652 2002-04-09 Richard Henderson <rth@redhat.com>
3655 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
3657 2002-04-09 Richard Henderson <rth@redhat.com>
3659 * basic-block.h (flow_delete_block_noexpunge): Declare.
3660 (expunge_block_nocompact): Declare.
3661 * cfg.c (expunge_block_nocompact): Split out from ...
3662 (expunge_block): ... here.
3663 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
3664 (flow_delete_block_noexpunge): Split out from ...
3665 (flow_delete_block): ... here.
3666 * cfgcleanup.c (delete_unreachable_blocks): Compact while
3667 removing dead blocks.
3668 * except.c (exception_handler_labels): Remove.
3669 (exception_handler_label_map): New.
3670 (struct eh_region): Add aka member.
3671 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
3672 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
3673 (for_each_eh_label, for_each_eh_label_1): New.
3674 (init_eh): Register exception_handler_label_map.
3675 (free_eh_status): Use free_region.
3676 (find_exception_handler_labels): Use the map, not the list.
3677 (remove_exception_handler_label): Likewise.
3678 (maybe_remove_eh_handler): Likewise.
3679 (remove_eh_handler): Use the region aka bitmap.
3680 * except.h (exception_handler_labels): Remove.
3681 (for_each_eh_label): Declare.
3682 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
3683 * loop.c (invalidate_loops_containing_label): New.
3684 (find_and_verify_loops): Use it. Use for_each_eh_label.
3685 * sched-rgn.c (is_cfg_nonregular): Use
3686 current_function_has_exception_handlers.
3688 2002-04-09 Richard Henderson <rth@redhat.com>
3690 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
3691 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
3692 Do not return changed status.
3693 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
3694 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
3695 New functions that do return changed status.
3696 * sbitmap.h: Update decls.
3697 * gcse.c, lcm.c: Use _cg functions as needed.
3699 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3701 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
3702 (sh64-*-elf*, sh-*-rtemself*): Likewise.
3703 * config/sh/embed_bb.c: New file.
3704 * config/sh/embed-elf.h: New file.
3705 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
3706 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
3707 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3709 (SUBTARGET_CPP_PTR_SPEC): Don't define.
3710 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
3711 Add subtarget_asm_endian_spec.
3712 (ASM_SPEC): Use subtarget_asm_endian_spec.
3713 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
3714 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
3715 (WCHAR_UNSIGNED): Define.
3716 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
3717 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3718 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
3720 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
3721 (sh_adjust_cost): Likewise.
3722 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3724 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
3725 (WCHAR_TYPE_SIZE): Likewise.
3726 (ASM_SPEC): Use subtarget_asm_endian_spec.
3727 (SH_ELF_WCHAR_TYPE): #undef/ #define.
3728 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
3729 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
3730 (MAX_WCHAR_TYPE_SIZE): Don't #define .
3731 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
3732 (USER_LABEL_PREFIX): Don't #undef /#define .
3733 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3734 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
3735 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
3736 (ASM_SPEC): Likewise.
3737 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
3738 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
3739 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
3740 (LIB2FUNCS_EXTRA): Define.
3741 * t-sh64 (LIB2FUNCS_EXTRA): Define.
3742 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
3743 (LIB1ASMFUNCS_CACHE): Define.
3744 (LIB2FUNCS_EXTRA): Redefine empty.
3746 2002-04-08 Richard Henderson <rth@redhat.com>
3748 * reorg.c (get_branch_condition): Use reversed_comparison_code.
3750 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3752 * config/m68hc11/larith.asm (__map_data_section): Fix condition
3753 and optimize for size.
3754 (__do_global_ctors): Fix pointer comparison.
3755 (__do_global_dtors): Likewise.
3757 2002-04-09 David S. Miller <davem@redhat.com>
3759 * config/sparc/sparc.c (sparc_extra_constraint_check): New
3760 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
3761 allow reloading pseudos.
3762 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
3763 * config/sparc/sparc-protos.h: Declare it.
3765 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
3766 unsigned comparison warning.
3767 (output_restore_regs): Mark leaf_function as unused.
3769 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3771 * expr.c (is_aligning_offset): New function.
3772 (expand_expr, case COMPONENT_EXPR): Call it.
3774 2002-04-08 David S. Miller <davem@redhat.com>
3777 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
3779 Make init_priority work on Sparc when using GNU ld.
3780 * config/sparc/linux.h, config/sparc/linux64.h,
3781 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
3782 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
3783 * config/sparc/sol2-gld.h: New file to do the same.
3784 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
3785 sparc/sol2-gld.h to tm_file.
3787 PR optimization/4328
3788 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
3789 * doc/md.texi: Document it.
3790 * config/sparc/sparc.md (movdi_insn_sp64_novis,
3791 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
3792 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
3793 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
3794 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
3796 2002-04-08 Andreas Jaeger <aj@suse.de>
3798 * stmt.c (expand_asm_operands): Revert last patch from Richard
3801 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3803 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
3804 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
3806 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3808 * doc/contrib.texi (Contributors): Add David O'Brien.
3810 2002-04-08 Alan Modra <amodra@bigpond.net.au>
3812 * configure.in (auto-build.h): Use target_alias and build_alias
3813 when running configure.
3814 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
3815 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
3816 * configure: Regenerate.
3818 2002-04-07 David S. Miller <davem@redhat.com>
3820 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
3822 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
3825 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
3826 generating 32-bit pic code.
3828 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3830 * cppinit.c (cpp_create_reader): Initialize
3831 discard_comments_in_macro_exp.
3832 (COMMAND_LINE_OPTIONS): Add "-CC" option.
3833 (cpp_handle_option): Handle "-CC" option.
3834 * cpplex.c (save_comment): If saving a C++ comment in
3835 a directive, convert it to a C comment.
3836 (_cpp_lex_direct): Pass second comment start character to
3837 save_comment to indicate comment type.
3838 * cpplib.c (_cpp_handle_directive): If processing
3839 a "#define" directive and discard_comments_in_macro_exp
3840 is false, re-enable saving of comments.
3841 (lex_macro_node): If discard_comments_in_macro_exp is false,
3842 discard any comments before the macro identifier.
3843 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
3845 * cppmacro.c (cpp_get_token): If expanding a macro while
3846 processing a directive, discard any comments we might encounter.
3847 (parse_params): If discard_comments_in_macro_exp is false,
3848 ignore comments in the macro parameter list.
3849 * gcc.c (cpp_unique_options): Add "-CC" option.
3850 (option_map): Map "--comments-in-macros" to "-CC".
3851 * doc/cppopts.texi: Document "-CC" option.
3852 * f/lang-specs.h: Add "-CC" option.
3853 * testsuite/gcc.dg/cpp/maccom1.c: New test.
3854 * testsuite/gcc.dg/cpp/maccom2.c: New test.
3855 * testsuite/gcc.dg/cpp/maccom3.c: New test.
3856 * testsuite/gcc.dg/cpp/maccom4.c: New test.
3857 * testsuite/gcc.dg/cpp/maccom5.c: New test.
3858 * testsuite/gcc.dg/cpp/maccom6.c: New test.
3860 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3863 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
3865 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3868 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3871 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
3872 RTX_UNCHANGING_P for the functions arguments when a tail call
3875 2002-04-06 Jason Merrill <jason@redhat.com>
3877 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
3878 (parse_options_and_default_flags): Set them appropriately.
3879 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
3881 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
3883 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
3886 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
3889 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
3890 types come in by-reference. Fix typo in comment.
3892 2002-04-05 David S. Miller <davem@redhat.com>
3894 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
3895 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
3896 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
3897 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
3899 2002-04-05 David S. Miller <davem@redhat.com>
3901 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
3902 are not going to emit return instructions, emit at least a nop
3903 for the sake of sane backtraces.
3905 2002-04-05 Richard Henderson <rth@redhat.com>
3907 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
3909 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
3911 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
3913 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
3915 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
3916 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3917 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
3919 2002-04-05 Andreas Schwab <schwab@suse.de>
3921 * c-convert.c: Include c-common.h.
3922 * Makefile.in (c-convert.o): Updated.
3924 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3926 * mklibgcc.in: Use separate libgcc.map for each multilib.
3927 * Makefile.in (distclean): Don't remove libgcc.map here.
3929 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3931 * Makefile.in (s-mlib): Handle --disable-multilib by separate
3932 genmultilib invocation.
3934 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
3936 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
3937 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
3938 to num_gprs for symmetry.
3939 * config/mips/mips.c: Adjust accordingly.
3941 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
3943 * c-common.c (truthvalue_conversion): Rename, update.
3944 * c-common.h (c_common_truthvalue_conversion): New.
3945 * c-convert.c (convert): Update.
3946 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3947 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
3948 * c-typeck.c (build_binary_op, build_unary_op,
3949 build_conditional_expr): Update.
3950 * fold-const.c (constant_boolean_node, fold): Use langhook.
3951 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
3952 * langhooks.h (struct lang_hooks): New hook.
3953 * stmt.c (expand_decl_cleanup): Use langhook.
3954 * tree.h (truthvalue_conversion): Remove.
3956 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3958 2002-04-05 Alan Modra <amodra@bigpond.net.au>
3960 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3961 Add rules to make null object file.
3963 2002-04-04 Jim Blandy <jimb@redhat.com>
3965 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3966 macro formal parameter names.
3968 2002-04-04 David S. Miller <davem@redhat.com>
3970 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3972 2002-04-04 Richard Henderson <rth@redhat.com>
3975 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
3976 Support copies into and out of memory. Don't accept allows_reg
3977 and allows_mem as gospel.
3979 2002-04-04 Richard Henderson <rth@redhat.com>
3982 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3983 (write_dependence_p): Likewise.
3985 2002-04-04 Richard Henderson <rth@redhat.com>
3987 * predict.c (estimate_bb_frequencies): Do frequency calculation
3988 with a volatile temporary.
3990 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
3992 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3994 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3997 * final.c (final_start_function): Don't bump profile_label_no here...
3998 (final_end_function): ...but here.
4000 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4002 * config/sparc/sparc.md (pic): New attribute.
4003 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4005 (split after do_builtin_setjmp_setup): New.
4007 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4010 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4013 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4015 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4016 UNITS_PER_WORD for zero sized aggregates.
4018 2002-04-03 David S. Miller <davem@redhat.com>
4020 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4021 one-character spec for this, just use %(link_gcc_c_sequence).
4023 2002-04-03 David S. Miller <davem@redhat.com>
4025 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4028 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
4030 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4031 (DWARF_FRAME_RETURN_COLUMN): Move.
4032 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4033 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4034 * pa.c (except.h, predict.h): Include.
4036 (store_reg_modify, set_reg_plus_d): Revise prototypes.
4037 (output_ascii): Add cast.
4038 (store_reg_modify): Revise to add frame notes.
4039 (set_reg_plus_d): Likewise.
4040 (compute_frame_size): Include space for eh data registers in frame if
4041 the current function calls eh_return.
4042 (hppa_expand_prologue): Ensure register %r2 is saved if the current
4043 function calls eh_return. Save eh data registers if the current
4044 function calls eh_return. Fix code to add frame notes. Emit
4045 blockage to prevent insns with frame notes being scheduled in the
4046 delay slot of calls.
4047 (hppa_expand_epilogue): Restore eh data registers and do final stack
4048 adjustment if the current function calls eh_return. Don't add frame
4050 (output_call): Revise for change in length of call insn. Don't do
4051 return pointer adjustment for an unconditional jump in the delay slot
4052 of a call when using frame notes.
4053 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4054 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4055 (ARG_POINTER_CFA_OFFSET): Define.
4056 * pa.md (return_external_pic): New pattern.
4057 (prologue): Correct formatting. Use return_external_pic if current
4058 function calls eh_return.
4059 (call_internal_symref, call_value_internal_symref,
4060 sibcall_internal_symref, sibcall_value_internal_symref): Change default
4061 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4063 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4065 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4066 list of targets to check using "nop" insn.
4067 * configure: Rebuilt.
4069 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4071 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4073 2002-04-03 David S. Miller <davem@redhat.com>
4075 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4076 library sequence passed to the linker.
4077 (LINK_COMMAND_SPEC): Use it.
4078 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4079 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4080 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4082 2002-04-03 Jason Merrill <jason@redhat.com>
4084 * except.c (struct eh_status): Remove protect_list.
4085 (begin_protect_partials, end_protect_partials): Remove.
4086 (add_partial_entry): Remove.
4087 * except.h: Remove prototypes.
4089 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4090 expand_decl_cleanup_eh.
4093 * tree.h (CLEANUP_EH_ONLY): New macro.
4094 * stmt.c (expand_decl_cleanup_eh): New fn.
4095 (expand_cleanups): Check CLEANUP_EH_ONLY.
4096 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4097 Use expand_decl_cleanup_eh.
4098 (expand_stmt): Adjust.
4099 * c-common.h: Adjust prototype.
4101 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
4103 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4104 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4105 (cris_target_asm_function_epilogue): Ditto.
4106 (cris_initial_frame_pointer_offset): Ditto.
4107 (cris_simple_epilogue): Ditto.
4108 (cris_expand_builtin_va_arg): Variable-size types come in
4111 2002-04-03 David S. Miller <davem@redhat.com>
4113 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4115 (set_fast_math): Correct 'fsr' type.
4117 2002-04-03 Richard Henderson <rth@redhat.com>
4120 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4121 * toplev.c (check_global_declarations): Use it.
4122 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4123 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4124 (LANG_HOOKS_DECLS): Add it.
4125 * langhooks.c (lhd_warn_unused_global_decl): New.
4126 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4127 * c-objc-common.c (c_warn_unused_global_decl): New.
4128 * c-tree.h (c_warn_unused_global_decl): Declare.
4129 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4131 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4133 * langhooks-def.h (lhd_set_decl_assembler_name,
4134 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4135 (LANG_HOOKS_INITIALIZER): Update.
4136 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4137 * langhooks.h (struct lang_hooks): New hook.
4138 * tree.c (set_decl_assembler_name): Move to langhooks.c.
4139 (lang_set_decl_assembler_name): Remove.
4140 (init_obstacks): Don't set hook.
4141 (decl_assembler_name): New function.
4142 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4143 (decl_assembler_name): New.
4144 (lang_set_decl_assembler_name): Remove.
4146 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4148 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4149 works properly with .hidden symbols.
4150 * configure: Rebuilt.
4151 * config.in: Rebuilt.
4152 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4153 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4154 properly with .hidden symbols.
4156 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4159 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4162 2002-04-03 Richard Henderson <rth@redhat.com>
4165 * sched-rgn.c (sets_likely_spilled): New.
4166 (sets_likely_spilled_1): New.
4167 (add_branch_dependences): Use it.
4169 2002-04-02 Richard Henderson <rth@redhat.com>
4172 * loop.h (LOOP_FIRST_PASS): New.
4173 * loop.c (strength_reduce): Mind it when deciding to unroll.
4174 * toplev.c (rest_of_compilation): Set it.
4176 2002-04-02 David S. Miller <davem@redhat.com>
4178 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4179 mems_ok_for_ldd_peep when the order of the loads being examined
4181 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4182 existing comment to increase comprehension of this situation.
4184 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4186 * config/sh/sh.md: Don't use union real_extract.
4188 2002-04-02 Richard Henderson <rth@redhat.com>
4190 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4192 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4194 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4195 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4196 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4197 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4198 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4199 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4200 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4201 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4202 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4203 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4204 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4205 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4206 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4207 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4208 Include as many configury headers via tm_file as possible. This
4209 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4210 * config/openbsd-oldgas.h: New file.
4211 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4212 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4213 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4214 config/i386/i386-coff.h, config/i386/i386-interix.h,
4215 config/i386/iscdbx.h, config/i386/linux-aout.h,
4216 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4217 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4218 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4219 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4220 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4221 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4222 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4223 config/i386/vxi386.h: Do not directly include configury headers.
4224 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4225 Directly include configury headers that are no longer automatically
4226 included by the above headers.
4227 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4228 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4229 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4230 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4231 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4232 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4233 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4234 (TARGET_VERSION): Define.
4235 * config/i386/beos-elf.h, config/i386/freebsd.h,
4236 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4237 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4238 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4239 config/i386/sco5.h, config/i386/sysv4.h
4240 (TARGET_VERSION): Do not need to protect.
4241 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4242 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4243 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4244 config/i386/i386-interix.h, config/i386/linux-aout.h,
4245 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4246 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4247 (YES_UNDERSCORES): Do not define - not needed.
4248 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4249 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4250 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4251 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4252 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4253 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
4254 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
4255 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
4257 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
4258 Richard Henderson <rth@redhat.com>
4261 * function.c (assign_temp): Accept either type or decl argument.
4262 Detect variables whose size is too large to fit into an integer.
4263 * stmt.c (expand_decl): Pass the decl, not the type.
4265 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4267 * protoize.c: Match include directory usage with cppdefault.c.
4269 2002-04-03 Jeffrey A Law (law@redhat.com)
4270 Hans-Peter Nilsson <hp@bitrange.com>
4272 * combine.c (simplify_comparison): Avoid narrowing a comparison
4273 with a paradoxical subreg when doing so would drop signficant bits.
4275 2002-04-02 Steve Ellcey <sje@cup.hp.com>
4277 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
4278 if POINTERS_EXTEND_UNSIGNED is defined.
4280 2002-04-02 Richard Henderson <rth@redhat.com>
4283 * local-alloc.c (contains_replace_regs): LO_SUM may contain
4286 2002-04-02 Richard Henderson <rth@redhat.com>
4288 * doc/standards.texi: Document required freestanding libc entry points.
4290 2002-04-02 Alan Modra <amodra@bigpond.net.au>
4292 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
4293 associated splitter. Remove MQ constraint.
4294 (ctrdi_internal4): Correct CCmode clobber.
4296 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4298 * milli64.S ($$dyncall): New function.
4299 * t-linux (LIB1ASMFUNCS): Revise module list.
4300 (LIB1ASMSRC): Use pa/milli64.S.
4302 2002-04-02 Richard Henderson <rth@redhat.com>
4304 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
4305 rename solaris_sys_varargs_h.
4307 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4309 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
4310 the same mode as its component.
4312 2002-04-02 Richard Henderson <rth@redhat.com>
4315 * final.c (this_is_asm_operands): Export.
4316 * output.h (this_is_asm_operands): Declare.
4317 * config/i386/i386.c (print_operand): Error odd asm operands.
4319 2002-04-02 Richard Henderson <rth@redhat.com>
4322 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
4324 2002-04-01 Richard Henderson <rth@redhat.com>
4327 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
4328 * fixinc/fixincl.x: Rebuild.
4330 2002-04-01 Richard Henderson <rth@redhat.com>
4332 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
4333 (atomic_alloc, atomic_free): New.
4334 (SIZE, MASK_FOR, PTR_IN): New.
4335 (emergency_reg_state, emergency_reg_state_free): New.
4336 (emergency_labeled_state, emergency_labeled_state_free): New.
4337 (reg_state_alloced, labeled_state_alloced): New.
4338 (alloc_reg_state, free_reg_state): New.
4339 (alloc_label_state, free_label_state, free_label_states): New.
4340 (push, pop, dup_state_stack, free_state_stack): Use them.
4341 (desc_label_state): Likewise.
4342 (uw_frame_state_for): Free label states and state stack.
4343 (uw_update_reg_address): Eliminate warnings.
4345 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
4347 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
4348 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
4350 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4352 * c-decl.c (grokdeclarator): Update.
4353 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4354 * c-tree.h (c_mark_addressable): New.
4355 * c-typeck.c (default_function_array_conversion, build_unary_op,
4356 build_array_ref, convert_for_assignment): Update.
4357 (mark_addressable): Rename.
4358 * calls.c (try_to_integrate, expand_call): Use langhook.
4359 * expr.c (expand_expr): Use langhook.
4360 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
4361 * langhooks.h (struct lang_hooks): New hook.
4362 * stmt.c (expand_asm_operands): Use langhook.
4363 * tree.h (mark_addressable): Remove.
4365 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4367 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4369 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
4372 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4374 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
4375 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
4377 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4379 * c-common.c (unsigned_conversion_warning, convert_and_check,
4380 unsigned_type, signed_type, shorten_compare,
4381 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
4382 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
4383 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
4385 * c-decl.c (grokdeclarator): Update.
4386 * c-format.c (check_format_types): Update.
4387 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4388 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4389 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
4390 * convert.c (convert_to_integer): Use new hooks.
4391 * expmed.c (make_tree): Use new hooks.
4392 * expr.c (store_expr): Use new hooks.
4393 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
4394 all_ones_mask_p, unextend, fold): Use new hooks.
4395 * langhooks.h (struct lang_hooks_for_types): New hooks.
4396 * tree.h (signed_or_unsigned_type, signed_type,
4397 unsigned_type): Remove.
4399 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4400 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4402 2002-03-31 Richard Henderson <rth@redhat.com>
4404 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
4405 (desc_frgr_mem): Fix reference to f16-f31.
4407 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4409 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
4410 RTVEC_ELT): Const-ify.
4411 * varray.h (VARRAY_CHECK): Const-ify.
4412 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
4413 ggc_mark_rtvec, ggc_mark): Const-ify.
4415 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4417 * diagnostic.c: Include langhooks-def.h.
4418 * Makefile.in (diagnostic.o): Update.
4420 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4422 * c-common.c (c_unsafe_for_reeval): Rename.
4423 * c-common.h (c_unsafe_for_reeval): Rename.
4424 * c-decl.c (finish_incomplete_decl): Rename.
4425 (c_init_decl_processing): Don't set langhook.
4426 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4427 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4428 * c-objc-common.c (c_objc_common_init): Don't set langhook.
4429 * c-tree.h (finish_incomplete_decl): Rename.
4430 * langhooks-def.h (lhd_unsafe_for_reeval): New.
4431 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
4432 (LANG_HOOKS_INITIALIZER): Update.
4433 * langhooks.c (lhd_unsafe_For_reeval): New.
4434 * langhooks.h (struct langhooks): New hooks.
4435 * toplev.c (incomplete_decl_finalize_hook): Remove.
4436 (wrapup_global_declarations): Update.
4437 * tree.c (lang_unsafe_for_reeval): Remove.
4438 (unsafe_for_reeval): Update.
4439 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
4442 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4443 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4445 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4447 * diagnostic.c (print_error_function): Remove.
4448 (default_print_error_function): Rename.
4449 (report_error_function): Update.
4450 * diagnostic.h (print_error_function): Remove.
4451 (default_print_error_function): Remove.
4452 * langhooks-def.h (struct diagnostic_context): Predeclare.
4453 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
4454 (LANG_HOOKS_INITIALIZER): Update.
4455 * langhooks.h (struct diagnostic context): Predeclare.
4456 (struct lang_hooks): New hook.
4458 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4460 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
4461 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
4463 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
4464 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
4465 of PIC_OFFSET_TABLE_REGNUM thruout.
4466 * config/rs6000/rs6000.md: Likewise.
4467 * config/rs6000/darwin.h: Likewise.
4469 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4471 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
4472 unsigned HOST_WIDE_INT, not unsigned int.
4474 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4476 PR middle-end/6096, middle-end/6098, middle-end/6099
4477 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
4479 (fill_slots_from_thread): Likewise.
4481 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4483 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
4484 floating fields in float regs.
4485 (function_arg_record_value_2): Likewise.
4487 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4489 * config/mmix/mmix.md (define_constants): Remove misleading
4490 FIXME. Add MMIX_fp_rO_OFFSET.
4491 ("nonlocal_goto_receiver"): Don't have stack-frame address of
4492 saved rO as part of the pattern. Remove FIXME.
4493 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
4494 here, at output-time.
4496 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4499 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
4501 (output_v9branch): Likewise.
4503 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4505 * gcc.c: Revert previous patch for now.
4506 * config/i386/djgpp.h: Likewise.
4508 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4510 * config/mmix/crti.asm (_init): Register _fini with atexit.
4511 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
4513 2002-03-31 Richard Henderson <rth@redhat.com>
4516 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
4517 (ASM_OUTPUT_DEF_FROM_DECLS): New.
4519 2002-03-31 Richard Henderson <rth@redhat.com>
4521 * libgcc2.c (__bb_exit_func): Make static.
4523 * config/alpha/alpha.md (trap): New.
4525 2002-03-31 Richard Henderson <rth@redhat.com>
4527 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
4528 promoted argument types; build trap.
4529 (expand_builtin_trap): New.
4530 (expand_builtin): Use it.
4531 * stmt.c (expand_nl_goto_receivers): Likewise.
4532 * expr.h (expand_builtin_trap): Declare.
4533 * libfuncs.h (LTI_abort, abort_libfunc): New.
4534 * optabs.c (init_optabs): Init abort_libfunc.
4536 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4538 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
4539 (LINK_COMMAND_SPEC): ... from here.
4540 (init_gcc_specs): Duplicate it here too, omitting
4541 shared_name in the second copy.
4542 (init_spec): Test for duplicate
4543 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
4545 2002-03-30 David S. Miller <davem@redhat.com>
4547 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4548 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
4550 2002-03-30 Roger Sayle <roger@eyesopen.com>
4551 Richard Henderson <rth@redhat.com>
4553 * regmove.c (combine_stack_adjustments_for_block): Avoid
4554 emitting a stack adjustment of zero bytes. Let delete_insn
4557 2002-03-30 Richard Henderson <rth@redhat.com>
4559 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
4560 (sparc_emitting_epilogue): New.
4561 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
4562 * config/sparc/sparc-protos.h: Update.
4563 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
4564 (TARGET_SWITCHES): Update.
4565 * config/sparc/sparc.md (return): Remove.
4566 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
4567 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
4568 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
4569 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4570 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
4571 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
4572 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
4573 Remove MASK_EPILOGUE.
4574 * doc/invoke.texi: Update.
4576 2002-03-30 Daniel Berlin <dan@dberlin.org>
4578 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
4579 CPP will start the file for us.
4581 2002-03-30 Richard Henderson <rth@redhat.com>
4584 * config/ia64/ia64.c (group_barrier_needed_p): Special case
4585 prologue_allocate_stack.
4586 (ia64_single_set): Use insn codes for recognition of special
4587 cases, not rtl matching.
4588 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
4590 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
4592 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
4594 2002-03-30 Richard Henderson <rth@redhat.com>
4597 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
4598 or -fomit-frame-pointer with profiling.
4599 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4600 (FUNCTION_PROFILER): Do nothing.
4601 (PROFILE_HOOK): New.
4602 * config/sparc/sparc.c (sparc_override_options): Don't check
4603 code models for profiling.
4604 (sparc_function_profiler): Remove.
4605 (sparc_profile_hook): New.
4606 * config/sparc/sparc-protos.h: Update.
4608 2002-03-30 Jakub Jelinek <jakub@redhat.com>
4610 PR optimization/6086
4611 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
4612 of SUBREG of volatile MEM or because the MEM was mode dependent,
4613 return CLOBBER instead of unmodified SUBREG.
4615 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
4617 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
4618 when not optimizing.
4620 * toplev.c (rest_of_compilation): Cann mark_constant_function
4621 only when optimizing.
4623 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
4626 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
4627 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
4628 (try_optimize_cfg): clear all AUX fields.
4630 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
4631 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
4632 (ix86_address_cost): Be prepared for SUBREGed registers.
4633 (legitimate_address_p): Accept SUBREGed registers.
4635 2002-03-29 Richard Henderson <rth@redhat.com>
4638 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
4640 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4642 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
4643 for aggregate and TFmode types.
4645 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4647 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
4649 2002-03-29 Richard Henderson <rth@redhat.com>
4652 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
4653 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
4655 2002-03-29 Richard Henderson <rth@redhat.com>
4658 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
4659 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
4660 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
4661 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
4663 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
4665 2002-03-29 Dale Johannesen <dalej@apple.com>
4667 * loop.c (combine_movables): Do allow combination of pseudos.
4669 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
4671 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
4672 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
4673 No functional change except ...
4674 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
4675 * doc/install.texi (*-*-freebsd*): Document port configuration.
4677 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4679 * Makefile.in (convert.o, calls.o, expmed.o): Update.
4680 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
4682 * builtin-types.def (BT_PTRMODE): Update.
4683 * c-common.c (type_for_size): Rename c_common_type_for_size.
4684 (type_for_mode): Similarly.
4685 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
4687 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
4688 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
4689 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4691 * c-typeck.c (common_type, comptypes, default_conversion):
4693 * calls.c: Include langhooks.h.
4694 (emit_library_call_value_1): Use new hooks. Avoid redundant
4696 * convert.c: Include langhooks.h
4697 (convert_to_pointer, convert_to_integer): Use new hooks.
4698 * except.c (init_eh): Similarly.
4699 * expmed.c: Include langhooks.h.
4700 (expand_mult_add): Use new hooks.
4701 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
4702 try_casesi): Similarly.
4703 * fold-const.c (optimize_bit_field_compare, make_range,
4704 decode_field_reference, fold_truthop, fold): Similarly.
4705 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
4706 put_var_into_stack): Similarly.
4707 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
4708 LANG_HOOKS_TYPE_FOR_SIZE): New.
4709 (LANG_HOOKS_TYPES_INITIALIZER): Update.
4710 * langhooks.h (lang_hooks_for_types): New hooks.
4711 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
4712 * tree.c (get_unwidened, get_narrower): Similarly.
4713 * tree.h (type_for_mode, type_for_size): Remove.
4714 * varasm.c (force_const_mem): Use new hooks.
4715 * utils2.c (nonbinary_modular_operation): Update.
4717 * objc-act.c (handle_impent): Update.
4718 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
4721 2002-03-29 Steve Ellcey <sje@cup.hp.com>
4723 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
4724 * config/ia64/ia64.c (basereg_operand): New.
4725 * config/ia64/ia64-protos.h (basereg_operand): Declare.
4726 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
4728 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4730 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
4731 unwind information when frame_pointer_needed.
4732 (mmix_assemble_integer): Tweak wording in comment.
4734 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4736 * Makefile.in (except.o): Update.
4737 * except.c: Include langhooks.h.
4738 (init_eh): Use langhook.
4739 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
4740 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
4741 (LANG_HOOKS_INITIALIZER): Update.
4742 * langhooks.h (lang_hooks_for_types): New.
4743 (struct lang_hooks): Add it.
4744 * tree.c (make_lang_type_fn, make_lang_type): Remove.
4745 * tree.h (make_lang_type_fn, make_lang_type): Remove.
4747 * alpha/alpha.c: Include langhooks.h.
4748 (alpha_build_va_list): Use langhook.
4749 * d30v/d30v.c: Include langhooks.h.
4750 (d30v_build_va_list): Use langhook.
4751 * i386/i386.c: Include langhooks.h.
4752 (ix86_build_va_list): Use langhook.
4753 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
4754 * s390/s390.c: Include langhooks.h.
4755 (s390_build_va_list): Use langhook.
4756 * stormy16/stormy16.c: Include langhooks.h.
4757 (stormy16_build_va_list): Use langhook.
4759 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4762 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
4764 (length): Compute variable length for branches/calls/jumps here.
4765 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
4766 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
4767 define branch_type attribute.
4768 (divsi3_sp32): Maximum length is 6 not 7.
4769 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
4770 call_address_untyped_struct_value_sp32,
4771 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
4772 * config/sparc/sparc.c (empty_delay_slot): New function.
4773 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
4774 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
4776 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4778 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
4779 nonzero_bits if not needed.
4780 (nonzero_bits) [XOR]: Likewise.
4781 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
4782 reg_last_set_mode and mode are both MODE_INT, but not equal.
4783 (record_value_for_reg): Compute reg_last_set_nonzero_bits
4784 in nonzero_bits_mode for MODE_INT modes.
4786 2002-03-28 Richard Henderson <rth@redhat.com>
4789 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
4790 to GAS. Correct drift between alternatives.
4792 2002-03-28 Richard Henderson <rth@redhat.com>
4795 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
4797 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
4799 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
4800 emulation to the linker.
4802 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
4804 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
4805 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
4807 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
4809 * combine.c (simplify_and_const_int): Make sure to apply mask
4810 when force_to_mode returns a constant integer. PR3311.
4812 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4814 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
4816 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4818 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
4819 and Objective-C Dialect Options.
4821 2002-03-28 Richard Henderson <rth@redhat.com>
4823 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
4824 comparison should be done vs !=0 not >0 return code. Tidy cases.
4826 2002-03-28 Richard Henderson <rth@redhat.com>
4828 * c-decl.c (finish_function): New arg can_defer_p. Pass it
4829 on to c_expand_body.
4830 * c-tree.h (finish_function): Update decl.
4831 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
4833 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
4835 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
4837 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
4839 * rtlanal.c: Include flags.h
4840 (may_trap_p): Do not mark FP operations if trapping
4841 if !flag_trapping_math
4842 * Makefile.in (rtlanal.o): Add dependency on flag.h
4843 * ifcvt.c (noce_operand_ok): Avoid the lameness.
4845 2002-03-27 Zack Weinberg <zack@codesourcery.com>
4847 * mips.md: Use dconst1, not 1.0, as first argument of
4848 REAL_VALUE_LDEXP. Don't use union real_extract.
4850 2002-03-28 Alan Modra <amodra@bigpond.net.au>
4852 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
4853 rather than $target. Heed program_prefix and
4854 program_transform_name. Search for gas in cross-compiler case too.
4855 "test -x" rather than "test -f".
4856 (gcc_cv_ld): Likewise.
4857 (gcc_cv_nm): Heed program_prefix and program_transform_name.
4858 (gcc_cv_objdump): Likewise.
4859 * configure: Regenerate.
4861 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4863 * Makefile.in (attribs.o): Update.
4864 * attribs.c: Include langhooks.h.
4865 (decl_attributes): Use langhook.
4866 * c-decl.c (insert_default_attributes): Rename.
4867 * c-tree.h (c_insert_default_attributes): New.
4868 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
4869 (LANG_HOOKS_INITIALIZER): Update.
4870 * langhooks.h (struct lang_hooks): New hook.
4871 * tree.h (insert_default_attributes): Remove.
4873 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
4875 2002-03-27 Andreas Schwab <schwab@suse.de>
4877 * config/i386/i386.c (classify_argument): Also check for
4880 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4882 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
4885 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
4887 * i960.md (ret): Set PC.
4888 (nonlocal_goto): Fix expander.
4889 * builtins.c (epxand_builin_longjmp): Check that we've emitted
4892 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
4894 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
4897 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4899 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
4900 assigning to BLOCK_FOR_INSN directly.
4902 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
4904 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
4906 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4908 * c-common.c (c_expand_expr): Fix prototype.
4909 * c-common.h (c_expand_expr): Always declare, update.
4910 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4911 * c-objc-common.c (c_objc_common_init): No global hook.
4912 * expr.c (expand_expr): Use langhook.
4913 * expr.h (enum expand_modifier): Conditionally declare.
4914 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
4915 (LANG_HOOKS_INITIALIZER): Update.
4916 * langhooks.c (lhd_expand_expr): New.
4917 * langhooks.h (struct lang_hooks): New hook.
4918 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
4919 (lang_independent_init): Don't default hook.
4921 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4923 2002-03-27 Richard Henderson <rth@redhat.com>
4926 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4927 TARGET_CONST_GP. Simplify conditions.
4929 2002-03-27 Richard Henderson <rth@redhat.com>
4931 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4932 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4933 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4935 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
4937 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
4938 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
4939 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
4940 Remove unnecessary masks.
4941 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
4942 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
4943 -mwindows, -mdll switches and their negations.
4945 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4947 * gcc-common.c (lang_mark_false_label_stack): Remove.
4948 * ggc.h (lang_mark_false_label_stack): Similarly.
4950 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
4952 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4954 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4955 or __rtems_ is defined.
4957 2002-03-26 Richard Henderson <rth@redhat.com>
4959 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4960 if a non-trivial load was emitted.
4961 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
4962 in high+extra+low case.
4964 2002-03-26 Richard Henderson <rth@redhat.com>
4966 * config.gcc (sparc*-solaris): Use float_format=sparc.
4968 2002-03-26 Richard Henderson <rth@redhat.com>
4970 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4971 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4972 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4973 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4974 (WINT_TYPE_SIZE): Fix at 32.
4976 2002-03-26 Richard Henderson <rth@redhat.com>
4978 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4979 until after eh landing pad generation.
4980 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4981 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4983 2002-03-26 Richard Henderson <rth@redhat.com>
4985 * expr.h (ADD_PARM_SIZE): One more convert for INC.
4987 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
4989 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
4990 and warning switches.
4991 (cc1_options): Likewise.
4993 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
4995 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4996 Restore more of the signal context. Set no_reg_stack_frame.
4997 * config/ia64/unwind-ia64.c (unw_state_record):
4998 Add no_reg_stack_frame, comments.
4999 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5000 (uw_update_context): Adjust bsp when unwinding from leaf,
5001 but not signal frame.
5003 2002-03-26 David Edelsohn <edelsohn@gnu.org>
5005 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5007 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5009 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5011 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5014 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5015 "Add a pool_range attribute", which was lost during the ARM/Thumb
5018 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5020 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5021 a register into the MAC16 accumulator.
5023 2002-03-26 Andrew Cagney <ac131313@redhat.com>
5025 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5026 (Warning Options): Document -Wswitch-enum.
5027 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
5029 (warn_switch_enum): Define variables.
5030 * flags.h (warn_switch_enum): Declare variables.
5031 * stmt.c (expand_end_case_type): When warn_switch_enum /
5032 -Wswitch-enum, perform switch checks.
5035 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5037 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5038 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5039 (reload_muladdsi_compare0_scratch): Delete.
5041 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
5043 * doc/install.texi (*-*-freebsd*): Update.
5045 2002-03-26 Richard Henderson <rth@redhat.com>
5047 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
5048 (SUB_PARM_SIZE): Cast DEC to ssizetype.
5050 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
5051 types from the normal argument frame.
5053 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5054 variable sized objects by reference.
5055 (sparc_va_arg): Receive them by reference too.
5057 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5059 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5060 code to not restoring global registers.
5062 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
5064 * Makefile.in (ggc-common.o): Update.
5065 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5066 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5067 * c-tree.h (c_mark_tree): New.
5068 * ggc-common.c: Include langhooks.h.
5069 (gcc_mark_trees): Use new langhook.
5070 * ggc-callbacks.c: Delete file.
5071 * ggc.h (lang_mark_tree): Remove.
5072 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5073 (LANG_HOOKS_INITIALIZER): Update.
5074 * langhooks.h (struct lang_hooks): New hook.
5076 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5078 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5080 * doc/cpp.texi: Exclude entire Top node from printed manual.
5081 Move option index after directive index. Insert page breaks
5082 before GFDL and concept index. Index environment variables
5083 with command line options.
5084 * doc/cppenv.texi: Use @vtable for environment variable list.
5085 Add paragraph explaining semantics of empty elements in path
5086 variables. Exclude a cross-reference to Fishkill from the
5087 manpage. Remove an unnecessary cross-reference of the entry
5088 right above the referer. Don't use @anchor in text that goes
5090 * doc/cppopts.texi: Cross-reference the environment variables
5091 section, not the specific environment variable, for consistency.
5093 2002-03-25 Richard Henderson <rth@redhat.com>
5095 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5096 anywhere in the block. Don't refer to insns that have been
5097 removed from the chain. Iterate backward through the new insns.
5098 Don't refer to edges that have been removed.
5100 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5102 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5103 test for overflow of constant.
5105 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
5108 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5109 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5110 these patterns on arm_archv4.
5112 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5114 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5117 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5119 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
5120 float_handled, float_handler, float_signal, set_float_handler,
5121 and do_float_handler. Set handler for SIGFPE to crash_signal.
5122 * toplev.h: Don't prototype do_float_handler.
5124 * c-lex.c: Fold parse_float into lex_number. Make warning
5125 about portability of hex float constants more informative, and
5126 don't issue it on top of a syntax error.
5127 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5129 * real.h: Define REAL_VALUE_ABS here...
5130 * simplify-rtx.c: ... not here. Fold check_fold_consts,
5131 simplify_unary_real, simplify_binary_real, and
5132 simplify_binary_is2orm1 into their callers.
5133 * tree.c: Fold build_real_from_int_cst_1 into caller.
5135 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5137 * tsystem.h: Include float.h here...
5138 * libgcc2.c: ... not here.
5140 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
5142 Fixes for: PR bootstrap/3591, target/5676
5143 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5144 defined. Do not disable exceptions or rtti.
5145 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5146 mcore.h. Disable exceptions and rtti, since they are not
5149 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
5151 * c-decl.c (maybe_build_cleanup): Remove.
5152 * expr.c (expand_expr): Use langhook.
5153 * langhooks-def.h (lhd_return_null_tree,
5154 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5155 (LANGHOOKS_INITIALIZER): Update.
5156 * langhooks.c (lhd_return_null_tree): New.
5157 * langhooks.h (struct lang_hooks): New hook.
5158 * tree-inline.c (initialize_inlined_parameters): Use langhook.
5159 * tree.h (maybe_build_cleanup): Remove.
5161 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5163 * regrename.c (build_def_use): Move recog_memoized
5164 before extract_insn.
5166 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5169 * expr.c (emit_group_store): Handle storing into CONCAT.
5171 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5173 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5174 corresponding MATCH_DUP.
5176 2002-03-24 Richard Henderson <rth@redhat.com>
5178 * unroll.c (unroll_loop): Zero label_map.
5180 * gcse.c: Include except.h.
5181 * Makefile.in (gcse.o): Update.
5183 2002-03-24 Richard Henderson <rth@redhat.com>
5185 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5186 Do resolve_unique_section before shared data clause.
5188 2002-03-24 Richard Henderson <rth@redhat.com>
5190 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5192 2002-03-24 Richard Henderson <rth@redhat.com>
5194 * recog.c (peephole2_optimize): Split blocks when EH insns are
5195 generated in the middle of a block. Do global life update if
5198 2002-03-24 Richard Henderson <rth@redhat.com>
5200 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5202 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5205 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5206 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5207 (init_dependency_output): Don't make no_output decision here.
5209 2002-03-24 Andrew Cagney <ac131313@redhat.com>
5211 * stmt.c (check_for_full_enumeration_handling): Remove tests of
5212 warn_switch. Update description.
5213 (expand_end_case_type): Call check_for_full_enumeration_handling
5216 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5218 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5219 (m68hc11_split_move): Call it to see if the source and destination
5220 operands use the same direction auto inc/dec mode, otherwise make the
5221 source an offsetable memory operand and generate an add.
5223 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5225 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5226 register for operand 2.
5227 ("*subsi3_zero_extendqi"): Likewise.
5228 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5229 bits so that it is compatible with a pop.
5230 ("*andhi3_gen"): Likewise.
5231 ("xorhi3"): Likewise.
5233 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5235 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5237 (cpp_post_options): ... not here.
5239 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5240 Aldy Hernandez <aldyh@redhat.com>
5242 Removal of separate preprocessor cpp0.
5244 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5245 cpp0, install-common): Update.
5246 * c-common.c (flag_preprocess_only): New.
5247 (c_common_init): Preprocess for -E.
5248 * c-common.h (flag_preprocess_only): New.
5249 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5250 * c-objc-common.c (c_init_decl_processing): Exit quickly
5251 for NULL return from c_common_init.
5252 * cpplib.h (cpp_preprocess_file): New.
5253 * cppmain.c (main, general_init, pfile, progname): Remove.
5254 (do_preprocessing): Rename cpp_preprocess_file, don't call
5255 cpp_finish. Don't close stdout here.
5256 (setup_callbacks): Update prototype.
5257 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
5259 * tradcpp.c (main): Ignore -quiet.
5261 * lang-specs.h (default_compilers): Preprocess with cc1obj.
5263 2002-03-24 Richard Henderson <rth@redhat.com>
5265 PR optimization/5742
5266 * machmode.def: Add inner mode field to complex modes.
5267 * config/mips/mips.c (mips_function_value): Always define. Add
5268 new argument to handle libcalls.
5269 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
5270 (FUNCTION_VALUE): Likewise.
5271 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
5272 * config/mips/mips-protos.h: Update.
5274 2002-03-23 Richard Henderson <rth@redhat.com>
5276 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
5277 * config/sparc/sparc-protos.h: Update.
5278 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
5280 2002-03-23 Richard Henderson <rth@redhat.com>
5282 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
5283 _start or _init begins the text segment.
5285 2002-03-23 David Edelsohn <edelsohn@gnu.org>
5287 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
5288 not HOST_WIDEST_INT.
5289 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
5291 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
5294 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
5295 operand argument to output_return_instruction.
5296 * arm.c (arm_print_operand, case 'd'): If the operand is
5297 const_true_rtx then just return.
5298 (arm_print_operand, case 'D'): If the operand is const_true_rtx
5301 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5303 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
5304 (Warning Options): Document -Wswitch-default.
5305 * toplev.c (W_options): Add -Wswitch-default. Update comment on
5307 (warn_switch_default): Define variable.
5308 (warn_switch): Update comment.
5309 * flags.h (warn_switch_default): Declare variable.
5310 (warn_switch): Update comment.
5311 * stmt.c (expand_end_case): Check for and, when
5312 warn_switch_no_default, warn of a missing default case.
5314 2002-03-23 Alan Modra <amodra@bigpond.net.au>
5316 * real.h (N): Special case 128 bit doubles.
5318 * combine.c (simplify_comparison): When widening modes, ignore
5319 sign extension on CONST_INTs.
5321 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5323 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
5324 passed to adjust_address. Fix comment formatting.
5327 2002-03-22 Zack Weinberg <zack@codesourcery.com>
5329 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
5330 Always make REAL_VALUE_TYPE a struct containing an array of
5331 HOST_WIDE_INT, not a double. Tidy up the code deciding how
5332 big it is. Don't declare or use union real_extract.
5334 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
5335 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
5336 (print_operand), config/arm/arm.c (output_move_double),
5337 config/arm/arm.md (consttable_4, consttable_8),
5338 config/romp/romp.c (output_fpops), config/s390/s390.h
5339 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
5340 (xtensa_output_literal): Don't use union real_extract.
5342 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
5343 (sfmode_constant_to_ulong), config/ns32k/merlin.h
5344 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
5345 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
5346 (PRINT_OPERAND): Don't use local version of union
5349 * config/convex/convex.c (check_float_value), config/vax/vax.c
5350 (vax_float_literal), config/m88k/m88k.md (divdf3),
5351 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
5352 config/pdp11/pdp11.c (output_move_quad): Don't do host
5353 arithmetic on target floating point quantities.
5355 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
5356 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
5358 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
5359 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
5361 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
5362 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
5364 * print-rtl.c (print_rtx): Disable code which needs
5365 floating-point emulator.
5366 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
5367 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
5368 depending on HOST_FLOAT_FORMAT to be defined properly.
5370 * config/1750a/1750a.c (get_double, float_label): Delete.
5371 (print_operand): Delete huge commented-out chunk. Use
5372 REAL_VALUE_TO_DECIMAL.
5373 * config/1750a/1750a-protos.h: Delete prototypes of deleted
5375 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
5377 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
5378 Use REAL_VALUE_TO_DECIMAL as ELF version does.
5379 * config/m88k/m88k.c (real_power_of_2_operand,
5380 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
5381 real_extract out of the union; run the input through
5382 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
5383 from that into the union.
5384 * config/pdp11/pdp11.c (output_move_double): Rearrange
5385 parentheses to make automatic indenter happy.
5387 * doc/tm.texi (Cross-compilation): Rename node to "Floating
5388 Point" and rewrite to describe current situation. Also adjust
5389 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
5391 * doc/rtl.texi: Adjust cross reference.
5393 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5395 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
5396 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
5397 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
5398 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
5399 prevent use of sp as a reload register.
5400 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
5401 non_acc_reg_operand.
5402 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
5403 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
5404 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
5405 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
5407 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
5409 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
5410 * cpplex.c (unterminated): Delete.
5411 (parse_string): No string literal may extend over multiple
5412 lines. Suppress the error when preprocessing assembly.
5413 * cppmain.c (scan_translation_unit): Strings are single-line.
5415 * doc/cpp.texi: Update to match.
5417 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5419 PR optimization/5854
5420 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
5422 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
5423 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
5424 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
5425 const0 if scratch register was not allocated.
5426 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
5427 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
5429 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
5430 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
5431 with GEN_INT (...) everywhere. Remove constraints in define_split
5433 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
5434 require scratch register for setting 0 into regs/non-pushable memory.
5436 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5438 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
5439 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
5441 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
5443 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
5444 * cppinit.c (cpp_create_reader): On by default.
5445 (cpp_handle_option): Handle -W[no-]endif-labels.
5446 (cpp_post_options): Also enable if -pedantic.
5447 * cpplib.c (do_else): Use it.
5448 (do_endif): Likewise.
5449 * doc/cppopts.texi: Document new option.
5450 * doc/invoke.texi: Document new option.
5452 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
5454 * config/i386/i386.c, config/i386/i386.md: Change all occurences
5455 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
5457 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5459 * flow.c (calculate_global_regs_live): Clear aux fields of
5462 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5464 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
5465 REG or MEM subregs, pass rtx * instead of rtx to it.
5466 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
5467 rtx * instead of rtx to alter_subreg.
5468 * config/m32r/m32r.c (gen_split_move_double): Likewise.
5469 * config/pj/pj.c (pj_output_rval): Likewise.
5471 2002-03-22 Richard Henderson <rth@redhat.com>
5474 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
5475 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
5476 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
5477 (ia64_expand_prologue): Look at int_regs, not words, for number
5478 of incomming int regs.
5480 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
5482 * expr.c (expand_expr): A RESULT_DECL is part of a call.
5484 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
5486 * toplev.c (flag_loop_optimize, flag_crossjumping):
5487 New static variables.
5488 (rest_of_compilation): Conditionalize crossjumping and
5490 (parse_options_and_default_flags): Default loop_optimize and
5492 (lang_independent_options): Add -fcrossjumping and -floop-optimize
5493 * invoke.texi (crossjumping, loop-optimize): Document.
5495 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5497 * real.c (eiisneg): Move outside #ifdef NANS.
5499 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
5501 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
5502 frequencies match; avoid match on different loop depths.
5503 (try_crossjump_to_bb): Kill tests that no longer brings time
5505 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
5507 (split_edge): Likewise.
5509 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
5512 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
5513 * cfgrtl.c: Include insn-config.h
5514 (split_block) Dirtify block in presence of conditional execution
5516 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5518 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
5519 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
5520 (function_arg): Constify CUMULATIVE_ARGS.
5521 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
5522 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
5523 (UNITS_PER_DOUBLE): New macro.
5524 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
5525 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
5526 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
5527 fp_regs and stack_words.
5528 (EABI_FLOAT_VARARGS_P): New macro.
5529 * config/mips/mips.c (struct mips_arg_info): New.
5530 (mips_arg_info): New function.
5531 (function_arg_advance): Use it. Add adjustment instructions here
5532 rather than in function_arg.
5533 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
5534 for VOIDmode at the beginning of the function.
5535 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
5536 (function_arg_pass_by_reference): Likewise.
5537 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
5538 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
5539 (mips_va_start): Likewise. Use the new stack_words field of
5540 CUMULATIVE_ARGS to set up overflow area. Reformat.
5541 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
5542 doubles and other types, aligning the overflow pointer for non-doubles
5543 too. Remove some code duplication. Replace hard-coded constants.
5545 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5547 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
5548 (CLASS_UNITS): Undefine.
5549 (CLASS_MAX_NREGS): Use FP_INC.
5550 * config/mips/mips.c (compute_frame_size): Likewise.
5551 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
5553 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
5555 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
5556 prototype, and handle lexing numbers and identifiers.
5557 (parse_identifier): Update to new form of parse_slow.
5558 (parse_number): Fast path only, use parse_slow otherwise.
5559 (_cpp_lex_direct): Update calls to parse_number.
5561 2002-03-21 DJ Delorie <dj@redhat.com>
5563 * bb-reorder.c (make_reorder_chain_1): Protect against
5564 when redundant edges are omitted.
5565 * predict.c (dump_prediction): Likewise.
5567 2002-03-21 Richard Henderson <rth@redhat.com>
5570 * fixinc/inclhack.def (solaris_stdio_tag): New.
5571 * fixinc/fixincl.x: Regenerate.
5573 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5576 * c-typeck.c (process_init_element): Flag non-static
5577 initialization of a flexible array member as illegal.
5579 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5581 * config/rs6000/t-linux64: New.
5582 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
5583 t-ppccomm. Use t-rs6000 and t-linux64.
5584 (powerpc64-*-gnu* <tmake_file>): Likewise.
5585 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
5586 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
5587 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
5589 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
5591 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
5592 flag_really_no_inline instead of optimize == 0.
5594 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
5596 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
5598 * flags.h (flag_really_no_inline): New.
5600 * c-common.c (c_common_post_options): Initialize
5601 flag_really_no_inline.
5603 * toplev.c (flag_really_no_inline): New.
5605 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5607 * config/avr/avr.md (length): Fix length computation for
5608 conditional branches.
5610 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
5612 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
5613 sdbout.o, profile.o): Update.
5614 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
5616 * c-common.h (gettags): Move here from tree.h.
5617 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
5618 insert_block, getdecls, kept_level_p, global_bindings_p): New.
5619 * dbxout.c (dbxout_init): Use getdecls langhook.
5620 * expr.c (expand_expr): Use insert_block langhook.
5621 * fold-const.c: Include langhooks.h.
5622 (fold_range_test, fold_binary_op_with_conditional_arg,
5623 fold): Use global_bindings_p langhook.
5624 * integrate.c (expand_inline_function): Use insert_block langhook.
5625 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
5626 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
5627 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
5628 LANG_HOOKS_GETDECLS): New.
5629 (LANG_HOOKS_INITIALIZER): Update.
5630 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
5632 * langhooks.h (struct lang_hooks_for_decls): New.
5633 (struct lang_hooks): Update.
5634 * profile.c: Include langhooks.h.
5635 (output_func_start_profiler): Use new langhooks.
5636 * sdbout.c: Include langhooks.h.
5637 (sdbout_init, sdbout_finish): Use getdecls langhook.
5638 * stmt.c: Include langhooks.h.
5639 (expand_fixup, fixup_gotos): Use new langhooks.
5640 * stor-layout.c: Include langhooks.h.
5641 (variable_size): Use global_bindings_p langhook.
5642 * toplev.c (compile_file): Use getdecls langhook.
5643 * tree-inline.c (remap_block): Use insert_block langhook.
5644 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
5645 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
5647 2002-03-21 Richard Henderson <rth@redhat.com>
5649 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
5650 constants in .data when -fpic.
5652 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5654 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
5657 2002-03-21 Tom Tromey <tromey@redhat.com>
5659 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
5661 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5663 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
5665 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
5667 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5668 Richard Henderson <rth@redhat.com>
5671 * c-common.c (c_expand_expr): Preserve result of a statement
5672 expression if needed.
5674 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5677 * genrecog.c (maybe_both_true_mode): Remove.
5678 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
5679 * machmode.def (Pmode): Likewise.
5681 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
5683 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
5684 (nonlocal_mentioned_p_1): New function.
5685 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
5686 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
5687 (mark_constant_function): Recognize pure functions.
5688 * rtl.h (global_reg_mentioned_p): New prototype.
5689 * rtlanal.c (global_reg_mentioned_p,
5690 global_reg_mentioned_p_1): New function.
5692 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5694 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
5696 * fixinc/fixincl.x: Regenerate.
5698 2002-03-20 Jason Merrill <jason@redhat.com>
5700 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
5702 2002-03-20 Michael Meissner <meissner@redhat.com>
5704 * doc/invoke.texi (Optimize Options): Document that -O2 sets
5707 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5709 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
5710 ".literal_position" directive before the constant pool.
5712 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5714 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
5715 Add Craig Rodrigues.
5716 Add Brad Lucier to testers.
5718 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5721 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
5723 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
5724 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
5725 instead of insn_extract.
5727 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5730 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
5732 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
5733 stmt if some case has been output.
5735 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5738 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
5739 movsfcc_1, movdfcc_1): Add %O2.
5740 * config/i386/i386.c (print_operand): Handle %ON.
5741 Print . before float condition codes in Sun as cmov syntax.
5742 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
5743 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
5746 2002-03-20 Philip Blundell <pb@nexus.co.uk>
5748 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
5749 return instruction if PC was popped.
5751 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5753 * config/xtensa/xtensa.md: Remove unused type attributes.
5754 (adddi_carry, subddi_carry): Change type attribute to "multi".
5756 2002-03-19 Dale Johannesen <dalej@apple.com>
5758 PR optimization/5999, middle-end/5731
5759 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
5760 multiplications by reciprocals.
5762 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
5764 * Makefile.in: Update.
5765 * c-common.c: Include langhooks.h.
5766 (inline_forbidden_p): Use new hook.
5767 * diagnostic.c: Include langhooks.h.
5768 (format_with_decl, announce_function,
5769 default_print_error_function): Use new hook.
5770 * dwarf2out.c (dwarf2_name): Use new hook.
5771 * function.c: Include langhooks.h.
5772 (init_function_start): Use new hook.
5773 * langhooks-def.h (lhd_decl_printable_name): New.
5774 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
5775 (LANGHOOKS_INITIALIZER): Update.
5776 * langhooks.c (lhd_decl_printable_name): New.
5777 * langhooks.h (struct lang_hooks): New hook.
5778 * toplev.c (decl_name, decl_printable_name): Remove.
5779 (open_dump_file): Use new hook.
5780 (process_options): Remove old hook.
5781 * tree.h (decl_printable_name): Remove.
5783 * objc-act.c (objc_init): Remove old hook.
5784 (objc_printable_name): Export.
5785 * objc-act.h (objc_printable_name): New.
5786 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
5788 2002-03-19 Jim Blandy <jimb@redhat.com>
5790 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
5791 the start_source_file debug hook, not the current line number.
5793 2002-03-19 Richard Henderson <rth@redhat.com>
5795 * flow.c (EH_USES): Provide default.
5796 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
5797 * doc/tm.texi (EH_USES): New.
5799 * config/ia64/ia64.c (ia64_eh_uses): New.
5800 * config/ia64/ia64-protos.h: Update.
5801 * config/ia64/ia64.h (EH_USES): New.
5803 2002-03-19 Richard Henderson <rth@redhat.com>
5805 * varasm.c (output_constant_def): Fix stupid typo.
5807 2002-03-19 Richard Henderson <rth@redhat.com>
5810 * except.c (current_function_has_exception_handlers): New.
5811 * except.h: Declare it.
5812 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
5813 Combine tests that disable all sibcalls for the function.
5815 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
5817 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
5820 2002-03-19 Richard Henderson <rth@redhat.com>
5823 * config/ia64/ia64.c: Revert 2002-03-01 patch.
5824 * config/ia64/ia64.h (INIT_EXPANDERS): New.
5826 2002-03-19 Jim Blandy <jimb@redhat.com>
5828 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
5829 name, even if the replacement list contains no tokens, as required
5832 2002-03-19 Jason Merrill <jason@redhat.com>
5834 * varasm.c (globalize_decl): Get the name from the RTL, not
5835 DECL_ASSEMBLER_NAME.
5837 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
5839 2002-03-19 Bob Wilson <bob.wilson@acm.org>
5841 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
5842 subdi_carry): Define.
5844 2002-03-19 David Edelsohn <edelsohn@gnu.org>
5846 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
5847 about -fpic/-fPIC if extra_warnings set.
5849 2002-03-19 David Edelsohn <edelsohn@gnu.org>
5851 * expr.c (expand_expr): Sign-extend CONST_INT generated from
5852 TREE_STRING_POINTER.
5853 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
5855 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5857 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
5858 in favor of SP if FRAME_POINTER_REQUIRED is false.
5860 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
5862 * emit-rtl.c (gen_int_mode): New function.
5863 * rtl.h: Prototype for it.
5864 * combine.c (make_extraction, simplify_comparison), expmed.c
5865 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
5866 (convert_modes, store_field), optabs.c (expand_fix),
5867 simplify-rtx.c (neg_const_int, simplify_unary_real),
5869 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
5870 Use it instead of GEN_INT (trunc_int_for_mode (...)).
5872 2002-03-19 Jakub Jelinek <jakub@redhat.com>
5875 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
5876 convert_parm_for_inlining.
5877 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
5879 * langhooks-def.h: Likewise.
5880 * objc/objc-lang.c: Likewise.
5881 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
5883 * tree-inline.c (initialize_inlined_parameters):
5884 Call convert_parm_for_inlining lang hook if needed.
5885 * c-typeck.c (c_convert_parm_for_inlining): New function.
5886 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
5888 2002-03-18 Mark Mitchell <mark@codesourcery.com>
5890 * calls.c (precompute_arguments): Do not assume that temporaries
5891 can be destroyed after expanding the argument.
5892 (expand_call): Likewise.
5894 2002-03-15 Eric Christopher <echristo@redhat.com>
5896 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
5897 Fix register preference on last change.
5898 * config/mips/mips.c (mips_return_in_memory): New function.
5899 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
5900 * config/mips/mips-protos.h: Declare.
5901 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
5902 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
5904 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5906 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
5908 (anddi3, iorsi3): Likewise.
5910 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
5911 use %gprel for symbols that are going to be placed in linkonce
5914 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
5915 RETURN_ADDRESS_POINTER_REGNUM to $ra.
5916 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
5917 not needed. Disregard leaf_function_p().
5918 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
5919 mips16 frame pointer.
5920 * config/mips/mips.md (store ra): Only to small SP offsets.
5921 2001-08-22 Graham Stott <grahams@redhat.com>
5922 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
5923 return a REG rtx for the return address register.
5925 2002-03-18 Bob Wilson <bob.wilson@acm.org>
5927 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
5928 constant-pool addresses as "mode-dependent".
5929 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
5931 2002-03-18 Jakub Jelinek <jakub@redhat.com>
5934 * expr.c (emit_group_load): Use extract_bit_field if
5935 needed for CONCAT arguments.
5937 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
5940 * arm.md (tablejump): Make this a define_expand. For PIC add the
5941 offset to the base of the table.
5942 (thumb_tablejump): Matcher for Thumb tablejump insn.
5943 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
5944 as the difference of two labels.
5945 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5946 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
5948 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5949 * arm.c (get_jump_table_size): If the table is not in the text
5950 section, return zero.
5952 2002-03-18 Bernd Schmidt <bernds@redhat.com>
5954 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
5956 (arm_reload_out_hi): Use gen_lowpart instead of
5957 gen_rtx_SUBREG to access QImode components.
5958 * config/arm/arm.md: Disable zero_extend split for QImode
5959 subregs in BIG_ENDIAN mode.
5960 (storehi_bigend): Match use of least significant byte.
5961 (storeinthi): Remove extraneous SUBREG.
5962 Add missing construction of operands[2].
5963 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
5964 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
5965 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
5967 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
5969 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5972 2002-03-17 Richard Henderson <rth@redhat.com>
5974 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5977 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5979 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5980 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5982 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5984 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5986 * predict.c (estimate_bb_frequencies): Delete unused variables.
5988 2002-03-17 Richard Henderson <rth@redhat.com>
5990 * config/ia64/ia64.c (ia64_attribute_table): Move before
5991 targetm definition. Make static.
5993 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
5995 * c-common.h (yyparse, c_common_parse_file): New.
5996 * c-lang.c: Include c-common.h.
5997 (LANG_HOOKS_PARSE_FILE): Redefine.
5998 * c-lex.c: Include c-common.h.
5999 (yyparse): Rename c_common_parse_file. Call yyparse.
6000 * c-parse.in (yyparse): Remove macro.
6001 * c-tree.h (yyparse_1): Remove.
6002 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6003 (LANG_HOOKS_INITIALIZER): Update.
6004 * langhooks.h (struct lang_hoooks): New hook parse_file.
6005 * toplev.c (compile_file): Use parse_file hook.
6006 * tree.h (yyparse): Remove.
6007 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6009 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6011 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6012 float_truncate, not fix.
6013 ("*truncdfsf2_real"): Ditto.
6014 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6016 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6018 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
6020 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6021 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
6022 where appropriate. Make the second reference to
6023 leaf_function_p a function call, as intended. Reindented.
6025 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6026 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6028 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6029 add register to non-constant into sp.
6031 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6032 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6033 (mips16_gp_pseudo_rtx): Lose.
6034 (INIT_EXPANDERS): Deleted.
6035 * config/mips/mips.c (mips_init_machine_status): New.
6036 (mips_free_machine_status): New.
6037 (mips_mark_machine_status): New.
6038 (override_options): Set them.
6039 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6040 (struct machine_function): ... new. Replaced all references.
6041 (mips_add_gc_roots): Don't mark them.
6042 (embedded_pic_fnaddr_reg): New, extracted from...
6043 (embedded_pic_offset): ... here.
6044 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6047 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6049 * cppinit.c: Revert -MD removal.
6051 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6053 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6054 soft registers by default for 68HC12.
6055 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6056 when compiling with -fomit-frame-pointer.
6057 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6058 (expand_epilogue): Likewise.
6059 (m68hc11_gen_rotate): Use exg when rotating by 8.
6061 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6063 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6064 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6065 (splits): Remove unused add splits.
6066 ("*addhi3_68hc12"): Tune constraints.
6067 ("addhi_sp"): Try to use X instead of Y in all cases and if the
6068 constant fits in 8-bits and D is dead use abx/aby instructions.
6069 ("*addhi3"): Remove extern declaration of ix_reg.
6070 ("*subsi3"): Optimize and provide new split.
6071 ("subhi3"): Cleanup.
6072 ("*subhi3_sp"): Avoid saving X if we know it is dead.
6073 (arith splits): For 68hc12 save the address register on the stack
6074 and do the arithmetic operation with a pop.
6076 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6078 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6079 allocating QImode in address registers.
6080 ("*movqi_m68hc11"): Likewise.
6082 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6084 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6086 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6088 * cppinit.c (print_help): Display -MD and -MMD.
6089 Don't display usage string. Update assertion syntax and
6091 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6092 (cpp_handle_option): Update.
6094 2002-03-15 Chris Demetriou <cgd@broadcom.com>
6096 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6097 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6098 and define it so that regardless of target CPU size,
6099 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6100 of "int" rather than "long."
6102 2002-03-15 Richard Henderson <rth@redhat.com>
6104 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6107 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6109 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6110 ("tstqi" split): Avoid using memory for tstqi on address register.
6111 (splits): Remove constraints.
6112 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6113 ("cmpdf", "cmpsf"): Remove since not used.
6114 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6115 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6117 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6119 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6120 ("neghi2"): Tighten constraints.
6121 ("one_cmplsi2"): Optimize and simplify split.
6122 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6124 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6126 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6127 and split of AND operation to clear the upper bits.
6128 ("*logicalsi3_zextqi"): Likewise.
6129 ("*logicallhi3_zexthi_ashift8"): Likewise.
6130 ("*logicalsi3_silshr16"): Likewise.
6131 ("logicalsi3_silshl16"): Likewise.
6132 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6134 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6136 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6137 (m68hc11_indirect_p): New function.
6138 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6139 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6141 (asm_print_register): Likewise.
6142 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6143 (m68hc11_indirect_p): Declare.
6144 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6145 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6146 (TARGET_SWITCHES): New option -mrelax.
6147 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6149 ("iorsi3", "xorsi3"): Likewise.
6150 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6151 ("*andhi3_mem"): New to handle destination in memory with bclr
6152 and a scratch register.
6153 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6154 ("*andhi3_const"): New when operand2 is constant.
6155 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6156 ("*andhi3_gen"): Cleanup of the old "andhi3".
6157 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6158 ("xorqi3"): Update constraints.
6160 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6162 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6163 for reg_equiv_memory_loc when the operand is a register that does
6164 not get a hard register (stack location).
6165 (tst_operand): After reload, accept all memory operand.
6166 (symbolic_memory_operand): Fix detection of symbolic references.
6167 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6168 accept symbols and any constant.
6170 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6172 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6173 note on the insn that sets the soft frame register.
6174 (must_parenthesize): ix and iy are also reserved names.
6175 (print_operand_address): One more place where parenthesis are required
6176 to avoid confusion with register names.
6177 (m68hc11_gen_movhi): Allow push of stack pointer.
6178 (m68hc11_check_z_replacement): Fix handling of parallel with a
6180 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6181 the replacement register is.
6182 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6183 and D8_REGS classes.
6184 (MODES_TIEABLE_P): All modes are tieable except QImode.
6186 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6188 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6189 (___subdi3): Likewise.
6190 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6191 (__map_data_section): Optimize 68hc11 case.
6193 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6195 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6196 than a shift to avoid adding a register with itself.
6197 (m68hc11_memory_move_cost): Take into account NO_REGS.
6198 (m68hc11_register_move_cost): Update and use memory move cost
6200 (m68hc11_address_cost): Make cost of valid offset not 0 so that
6201 it gives more opportunities to cse to optimize.
6202 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6203 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6205 2002-03-15 Mark Mitchell <mark@codesourcery.com>
6207 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6208 * c-common.def (CLEANUP_STMT): New tree node.
6209 * c-common.h (CLEANUP_DECL): New macro.
6210 (CLEANUP_EXPR): Likewise.
6211 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6212 * expr.c (expand_expr): Tidy.
6213 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6214 * tree-inline.c (initialize_inlined_parameters): Clean up
6215 new local variables.
6217 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6220 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6221 before movrXX only, use reg_overlap_mentioned_p.
6222 Only special case NE if just one insn can be generated.
6224 2002-03-15 Jason Merrill <jason@redhat.com>
6226 * varasm.c (assemble_variable): Call resolve_unique_section before
6227 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6230 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6233 * arm.md (split pattern for thumb shiftable immediates): Add comment
6234 explaining non-obvious test.
6236 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6239 * arm.md (movaddr, movaddr_insn): Delete.
6241 2002-03-15 Jason Merrill <jason@redhat.com>
6243 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6244 -fkeep-static-consts doesn't apply to comdats.
6246 2002-03-14 Richard Henderson <rth@redhat.com>
6248 * c-decl.c: Include c-pragma.h.
6249 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6250 (finish_function): Tidy.
6251 * c-pragma.c: Include c-common.h.
6252 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
6253 (handle_pragma_weak): Use them.
6254 (init_pragma): Register pending_weaks.
6255 * c-pragma.h (maybe_apply_pragma_weak): Declare.
6256 * print-tree.c (print_node): Print DECL_WEAK.
6257 * varasm.c (mark_weak_decls): Remove.
6258 (remove_from_pending_weak_list): Remove.
6260 (asm_emit_uninitialised): Call globalize_decl for weak commons.
6261 (weak_decls): Make a tree_list.
6262 (declare_weak): Cons weak_decls directly.
6263 (globalize_decl): Remove weak_decls elements directly.
6264 (weak_finish): Simplify weak_decls walk. Don't weaken unused
6265 symbols. Don't pretend to handle aliases.
6266 (init_varasm_once): Update weak_decls registry.
6267 * Makefile.in: Update dependencies.
6269 2002-03-14 Richard Henderson <rth@redhat.com>
6272 * config/ia64/ia64.c: Include tm_p.h last.
6273 (gen_nop_type): Remove duplicate definition.
6274 (cycle_end_fill_slots): Set sched_data for second L slot.
6275 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
6276 (nop_cycles_until): Fix typos.
6278 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6280 PR optimization/5891
6281 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
6283 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
6285 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
6286 descriptors correctly.
6288 2002-03-14 Michael Meissner <meissner@redhat.com>
6290 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
6291 100, allowing MAX_UNROLLED_INSNS to be overridden.
6293 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
6296 * unroll.c (params.h): Include.
6297 (MAX_UNROLLED_INSNS): Delete, now in params.h.
6299 * doc/invoke.texi (--param max-unroll-insns): Document.
6301 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
6303 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6305 * arm.md: Fix warnings about constraints in peepholes and splits.
6307 2002-03-14 Zack Weinberg <zack@codesourcery.com>
6309 * cpphash.h (struct lexer_state): Remove line_extension member.
6310 * cpplib.c (dequote_string, do_linemarker): New functions.
6311 (linemarker_dir): New data object.
6312 (DIRECTIVE_TABLE): No longer need to interpret #line in
6313 preprocessed source. Delete obsolete comment about return
6315 (end_directive, directive_diagnostics, _cpp_handle_directive):
6316 Don't muck with line_extension.
6317 (directive_diagnostics): No need to issue warnings for
6319 (_cpp_handle_directive): Issue warnings for linemarkers here,
6320 when appropriate. Dispatch linemarkers to do_linemarker, not
6322 (do_line): Code to handle linemarkers split out to do_linemarker.
6323 Convert escape sequences in filename argument, both places.
6325 * cppmacro.c (quote_string): Rename cpp_quote_string and
6326 export. All callers changed.
6327 * cpplib.h (cpp_quote_string): Prototype.
6328 * cppmain.c (print_line): Call cpp_quote_string on to_file
6331 * doc/cpp.texi: Document that escapes are now interpreted in
6332 #line and in linemarkers, and that non-printing characters are
6333 converted to octal escapes when linemarkers are generated.
6335 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
6337 * emit-rtl.c (try_split): Use delete_insns.
6338 * recog.c (split_all_insns): Fix terminating condition.
6340 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6341 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6344 * arm.c (arm_output_epilogue): Fix floating-point register save
6345 adjustment when using a frame pointer.
6347 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
6349 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
6350 * config/mips/mips.c (compute_frame_size): Retrofit them here.
6351 (save_restore_insns, mips_expand_epilogue): And here.
6352 (build_mips16_call_stub): And here.
6353 (mips_function_value): Use the new macros to decide whether a single
6354 or complex float can be returned in floating-point registers. Return
6355 a parallel rtx in the complex case.
6357 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
6359 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
6360 call after liveness analysis.
6362 * recog.c (split_insn): Use delete_insn_and_edges.
6364 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
6365 instructions to have branch prediction notes.
6366 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
6368 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
6370 * configure.in: Don't pass -Wno-long-long to a ADA compiler
6371 that doesn't support it.
6372 * configure: Regenerate.
6374 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6377 * config/sparc/sparc.md (normal_branch, inverted_branch,
6378 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
6379 inverted_fp_branch): Adjust calls to output_cbranch.
6380 Set length attribute.
6381 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
6382 output_v9branch. Set length attribute.
6383 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
6385 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
6386 (output_cbranch): Likewise. Handle far branches.
6387 (output_v9branch): Handle far branches.
6388 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
6390 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
6391 noov_compare64_op predicates.
6393 2002-03-13 Jason Merrill <jason@redhat.com>
6395 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
6396 into the function and constify it.
6397 * gthr-dce.h, gthr-solaris.h: Likewise.
6399 2002-03-13 David Edelsohn <edelsohn@gnu.org>
6401 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
6402 * config/rs6000/rs6000.c (rs6000_va_arg): Use
6403 std_expand_builtin_va_arg if not ABI_V4.
6405 2002-03-13 Jason Merrill <jason@redhat.com>
6407 * varasm.c (globalize_decl): New fn.
6408 (assemble_start_function): Use it.
6409 (asm_emit_uninitialized): Use it.
6410 (assemble_alias): Use it.
6411 (assemble_variable): Use it.
6413 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
6415 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
6416 2002-03-12 internal visibility change.
6417 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
6418 visibility into SYMBOL_REF_FLAG.
6420 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
6422 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
6423 VOIDmode operand. Add compile-time optimization for constant results.
6425 2002-03-12 Jason Merrill <jason@redhat.com>
6427 * c-typeck.c (convert_for_assignment): Don't allow conversions
6428 between pointers and references. Only allow lvalues to convert to
6431 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
6433 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
6434 before prologue, to avoid scheduling problems.
6436 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6438 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6439 (ELIMINABLE_REGS): Add sfp->sp.
6440 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
6442 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6444 PR optimization/5892
6445 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
6447 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6449 * loop.c (basic_induction_var): Don't call convert_modes if mode
6450 classes are different.
6452 2002-03-12 Richard Henderson <rth@redhat.com>
6454 PR optimization/5901
6455 * function.c (reposition_prologue_and_epilogue_notes): Position
6456 the markers after/before the last/first insn not deleted.
6458 2002-03-12 Richard Henderson <rth@redhat.com>
6460 PR optimization/5878
6461 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
6462 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
6463 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6465 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
6466 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
6467 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
6469 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
6470 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
6471 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
6472 also. Don't set it if not flag_pic.
6473 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
6474 to be INVALID_REGNUM when not used.
6476 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
6478 * expmed.c (store_bit_field): Reset alias set for memory.
6479 (extract_bit_field): Same.
6481 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6483 * c-common.c (c_tree_code_type, c_tree_code_length,
6484 c_tree_code_name, add_c_tree_codes): Delete.
6485 * c-common.h (add_c_tree_codes): Delete.
6486 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
6488 * c-objc-common.c (c_objc_common_init): Don't call
6489 add_c_tree_codes, instead set lang_unsafe_for_reeval.
6490 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
6491 objc_tree_code_name, add_objc_tree_codes): Delete.
6492 (objc_init): Don't call add_objc_tree_codes.
6493 * objc/objc-lang.c (tree_code_type, tree_code_length,
6494 tree_code_name): Define.
6495 * toplev.c (lang_independent_init): Don't set
6496 tree_code_length[IDENTIFIER_NODE].
6497 * tree.c (tree_code_type, tree_code_length, tree_code_name):
6498 Delete definitions, moved to language front-ends.
6499 * tree.def (IDENTIFIER_NODE): Hardwire the length.
6500 * tree.h (tree_code_type, tree_code_length, tree_code_name):
6502 (tree_code_length): Change type to unsigned char.
6504 2002-03-12 Richard Henderson <rth@redhat.com>
6506 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
6507 internal visibility change.
6509 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6511 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
6512 validize_mem() instead of change_address to avoid clobbering
6515 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
6517 * c-lex.h (position_after_whitespace): Remove.
6519 2002-03-12 Jakub Jelinek <jakub@redhat.com>
6521 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
6522 (lex_string): Use unsigned char pointers.
6524 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6526 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
6527 is not a valid memory_operand.
6529 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6531 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
6532 * config/xtensa/lib1funcs.asm: Fix copyright to include
6533 special case for libgcc files.
6534 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
6535 (__divsi3): Likewise.
6536 (__umodsi3): Likewise.
6537 (__modsi3): Likewise.
6538 * config/xtensa/lib2funcs.S: Fix copyright to include
6539 special case for libgcc files.
6541 2002-03-12 Tom Rix <trix@redhat.com>
6543 * collect2.c (resolve_lib_name): Move outside of
6544 OBJECT_FORMAT_COFF ifdef.
6545 (ignore_library): Same.
6547 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6549 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
6551 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6553 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
6554 to function_section before writing out the constant pool.
6556 2002-03-12 David Edelsohn <edelsohn@gnu.org>
6558 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
6560 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
6562 2002-03-12 Alan Modra <amodra@bigpond.net.au>
6564 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
6568 (cmpsi splitter): Likewise.
6569 (modsi3): Fail if <= 0.
6570 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
6571 redundant test when HOST_BITS_PER_WIDE_INT != 32.
6572 (reg_or_sub_cint64_operand): Likewise.
6573 (num_insns_constant_wide): Optimize sign extension.
6574 (rs6000_legitimize_address): Likewise.
6576 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6578 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6579 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6581 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6583 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
6584 address calculation.
6586 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6588 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
6589 scratch register to DImode / TImode.
6590 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
6591 register used does not overlap the target.
6593 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6595 * Makefile.in (debug.o): Depend on debug.h.
6596 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
6597 * debug.c (do_nothing_debug_hooks): Likewise.
6598 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
6599 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
6600 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
6601 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6602 * dwarfout.c (dwarf_debug_hooks): Likewise.
6603 * integrate.c (output_inline_function): Likewise.
6604 * objc/objc-act.c (synth_module_prologue): Likewise.
6605 * sdbout.c (sdb_debug_hooks): Likewise.
6606 * toplev.c (debug_hooks): Likewise.
6607 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6609 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6611 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
6612 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
6613 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
6614 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
6615 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
6616 * defaults.h (POINTER_SIZE): Define.
6617 * doc/tm.texi (POINTER_SIZE): Document default.
6619 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6621 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
6623 2002-03-11 Richard Henderson <rth@redhat.com>
6625 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
6626 if rebuild_label_notes_after_reload.
6628 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
6630 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
6631 emit pic register load if "internal" visibility.
6632 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
6633 (cris_expand_builtin_va_arg): Do all computations on trees.
6635 2002-03-11 Richard Henderson <rth@redhat.com>
6637 * rtlanal.c: Include recog.h.
6638 (keep_with_call_p): Fix thinko.
6639 * Makefile.in (rtlanal.o): Update dependencies.
6641 2002-03-11 Chris Meyer <cmeyer@gatan.com>
6643 * genflags.c (gen_insn): Use IS_VSPACE.
6644 * genoutput.c (output_insn_data): Likewise.
6645 (process_template): Likewise.
6647 2002-03-11 Richard Henderson <rth@redhat.com>
6649 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
6651 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
6653 * Makefile.in: Update.
6654 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
6655 Update documentation.
6656 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
6657 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
6659 2002-03-11 Zack Weinberg <zack@codesourcery.com>
6661 * Makefile.in: Give texi2pod its input file as a command line
6662 argument, not on stdin.
6664 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
6665 Daniel Berlin <dan@dberlin.org>
6667 C++ alias analysis improvement.
6668 * alias.c (record_component_aliases): Record aliases for base
6671 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
6673 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
6675 2002-03-11 Douglas B Rupp <rupp@gnat.com>
6677 * toplev.c (vms_fopen): Remove, not needed.
6679 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
6681 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
6683 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
6684 for FP, already done later.
6686 * toplev.c (debug_args): Add entry for VMS_DEBUG.
6687 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
6689 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
6691 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
6692 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
6693 LARGEST_EXPONENT_IS_NORMAL for the given mode.
6694 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
6695 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
6696 (ediv, emul, eldexp, esqrt): Likewise.
6697 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
6698 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
6699 (saturate): New function.
6700 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
6701 (make_nan): Use a saturation value instead of a NaN if
6702 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
6703 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
6704 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
6705 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
6706 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
6707 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
6708 !ROUND_TOWARDS_ZERO.
6709 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
6710 (ROUND_TOWARDS_ZERO): Document.
6712 2002-03-11 Andreas Jaeger <aj@suse.de>
6714 * cfg.c (dump_flow_info): Remove unused variable.
6716 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
6718 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
6719 computations on trees.
6721 2002-03-10 Richard Henderson <rth@redhat.com>
6724 * reload.c (copy_replacements_1): New.
6725 (copy_replacements): Use it to recurse through the rtx.
6727 2002-03-10 Richard Henderson <rth@redhat.com>
6729 * loop.c (strength_reduce): Compute number of iterations as
6730 unsigned HOST_WIDE_INT.
6732 2002-03-10 Richard Henderson <rth@redhat.com>
6734 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
6735 to move away from the end of the block.
6737 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
6739 PR preprocessor/5899
6740 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
6742 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6744 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
6746 * attribs.c (decl_attributes): Fix signed/unsigned warning.
6748 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
6750 * config/mmix/mmix.c: Improve comments.
6751 (mmix_target_asm_function_prologue): Drop variable
6752 empty_stack_frame. Don't allocate unused slot above fp.
6753 (mmix_target_asm_function_epilogue): Mirror prologue changes.
6754 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
6755 brace in first column.
6756 (enum reg_class): Ditto.
6757 (FIRST_PARM_OFFSET): Now 0.
6758 (USER_LABEL_PREFIX): Remove #if 0:d definition.
6760 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6762 * combine.c (make_extraction): Fix error in last change.
6764 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6766 * c4x.c (c4x_fp_reglist): Const-ify.
6767 * cris.c (cris_print_operand): Likewise.
6768 * i386.c (ix86_va_arg): Likewise.
6769 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
6770 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
6771 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
6772 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
6773 * mcore.h (regno_reg_class): Likewise.
6774 * mips.c (gen_int_relational): Likewise.
6775 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
6776 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
6777 * pdp11.c (move_costs): Likewise.
6778 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
6779 * s390.c (s390_branch_condition_mnemonic, regclass_map):
6781 * s390.h (regclass_map): Likewise.
6782 * sh.c (shift_amounts): Likewise.
6783 * sh.md (rotlsi3): Likewise.
6785 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
6787 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
6788 (ne0+5): Use new clobber to generate proper shift pattern.
6789 Patch by Michael Matz <matz@kde.org>.
6791 2002-03-09 Andreas Schwab <schwab@suse.de>
6793 * gcc.c (validate_all_switches): Also handle `%W{...}'.
6795 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
6797 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
6799 2002-03-09 Jakub Jelinek <jakub@redhat.com>
6802 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
6803 even for non-representable constants.
6805 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6807 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
6808 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
6809 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
6810 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
6811 (pop_function_context): Compute MAY_SHARE parameter for
6813 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
6814 (gen_mem_addressof): Call fixup_var_refs with new parm.
6816 * combine.c (make_extraction): Don't make extension of CONST_INT.
6818 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
6820 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
6821 in o32 and o64 ABIs.
6822 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
6823 but getting fixed-size structs passed in registers regardless of
6824 padding in o32 and o64 ABIs.
6826 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
6827 offset before loading address of argument passed by transparent
6830 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6832 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
6834 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
6836 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
6837 marker such that registers after it are saved.
6839 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6841 * sparc.c (arith_4096_operand): Fix error in last change.
6843 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
6845 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
6848 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
6850 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
6853 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
6855 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
6857 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
6859 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
6860 removed; fix return value.
6861 * combine.c (combine_instructions): Dirtify blocks where we failed to
6862 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
6863 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
6865 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6867 * gcse.c (insert_insn_end_bb): Fix typo in last change.
6869 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
6871 * recog.c (peephole2_optimize): Re-distribute EH edges.
6873 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
6875 * expr.c (expand_expr): Use unsave lang hook.
6876 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
6877 (LANG_HOOKS_INITIALIZER): Update.
6878 * langhooks.h (struct lang_hooks): New hook unsave.
6879 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
6880 (unsave_expr_1): Remove unused lang_unsave_expr_now.
6881 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
6882 (unsave_expr_now): Remove.
6883 * tree.h (unsave_expr_now, lang_unsave,
6884 lang_unsave_expr_now): Remove.
6887 2002-03-08 Andreas Jaeger <aj@suse.de>
6889 * flow.c (propagate_block_delete_insn): Remove unused variable.
6891 2002-03-08 Kazu Hirata <kazu@hxi.com>
6893 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
6894 insn length for memory load/store.
6896 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
6898 * doc/install.texi (--with-libiconv-prefix): Document.
6900 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
6902 * doc/sourcebuild.texi: Fix typo.
6904 2002-03-08 Jakub Jelinek <jakub@redhat.com>
6907 * builtins.c (std_expand_builtin_va_arg): Do all computations on
6910 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6912 * rtl.c (copy_most_rtx): Move from here ...
6913 * emit-rtl.c (copy_most_rtx): ... to here.
6915 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
6917 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
6918 SUBTARGET_CPP_SIZE_SPEC.
6919 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
6921 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
6923 2002-03-07 Matt Hiller <hiller@redhat.com>
6925 * gensupport.c (first_dir_md_include): Renamed from include;
6926 change all references.
6927 (last_dir_md_include): Renamed from last_include; change all
6929 (init_md_reader): Unconditionally initialize base_dir whether or
6930 not filename is a relative path.
6932 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
6934 * config/fp-bit.c (_unord_f2): Compile it in even if
6935 US_SOFTWARE_GOFAST is enabled.
6937 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
6938 NULL_RTX. Set all HFmode operations as NULL_RTX.
6939 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
6940 NULL_RTX, try reversing the comparison and the operands.
6942 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6944 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6945 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6948 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
6950 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6952 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6954 * basic-block.h (fixup_abnormal_edges): Declare.
6955 * reload1.c (fixup_abnormal_edges): New function.
6956 * reg-stack.c (convert_regs): Use it.
6958 * gcse.c (insert_insn_end_bb): Handle trapping insns.
6960 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6962 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
6964 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
6965 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
6966 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
6967 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
6968 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
6969 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
6970 unless x and y could be infinite.
6971 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
6972 Check that the common type of both arguments is a real, even for
6973 targets without unordered comparisons. Allow an integer argument
6974 to be compared against a real.
6975 (expand_tree_builtin): Use expand_unordered_cmp.
6976 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
6977 * cse.c (fold_rtx): Likewise. Fix indentation.
6978 * fold-const.c (fold_real_zero_addition_p): New.
6979 (fold): Use it, and the new HONOR_... macros.
6980 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
6981 * jump.c (reversed_comparison_code_parts): After searching for
6982 the true comparison mode, use HONOR_NANS to decide whether it
6983 can be safely reversed.
6984 (reverse_condition_maybe_unordered): Remove IEEE check.
6985 * simplify-rtx.c (simplify_binary_operation): Use the new macros
6986 to decide which simplifications are valid. Allow the following
6987 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
6988 and (a - -b) to (a + b).
6989 (simplify_relational_operation): Use HONOR_NANS.
6990 * doc/tm.texi: Document the MODE_HAS_... macros.
6992 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6994 * combine.c (simplify_comparison): If simplifying a logical shift
6995 right and compare with constant, force the comparison to unsigned.
6997 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
6999 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7001 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7003 (alt_reg_names): Remove % for vrsave.
7005 2002-03-06 Richard Henderson <rth@redhat.com>
7007 PR optimization/5844
7008 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
7009 if used indicates we've already emitted one copy of an operand.
7010 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7011 (gen_split): Supply a non-null used.
7013 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7015 * reload1.c (reload): Unshare all rtl after reload is done.
7017 * simplify-rtx.c (simplify_plus_minus): Do not abort,
7018 but simply fail if the expression is too complex to simplify.
7019 (simplify_gen_binary): Handle simplify_plus_minus failures.
7021 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
7023 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7024 consistently call delete_trivially_dead_insns after CSE and GCSE;
7025 fix DFI_life dumping; do jump threading after liveness; do crossjumping
7026 after liveness2; update comment in last crossjumping.
7027 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7029 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
7031 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7032 after completing fast dead code elimination.
7034 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7037 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
7039 * version.c: Fix misplaced leading blanks on first line.
7041 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
7043 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7045 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
7047 * cfgcleanup.c (mentions_nonequal_regs): New function.
7048 (thread_jump): Use it.
7049 * toplev.c (rest_of_compilation): Run jump threading after
7052 2002-03-06 Jakub Jelinek <jakub@redhat.com>
7054 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7057 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7059 * predict.c (estimate_bb_frequencies): Do not reload the
7060 frequencies from notes.
7062 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
7064 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7065 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7067 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7068 delete_noop_moves): Return indeger.
7069 * flow.c (ndead): New variable.
7070 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7071 BB argument; update callers.
7072 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7073 (life_analysis): Do not call purge_all_dead_edges.
7074 (update_life_info): Return number of deleted insns; print statistics.
7075 (update_life_info_in_dirty_blocks): likewise.
7076 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7077 return number of insns deleted.
7079 * cse.c: Include timevar.h
7080 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7081 iterate until stabilizes; print statistics; return number of killed
7083 * Makefile.in: (cse.o): Add timevar.h dependency
7084 * rtl.h (delete_trivially_dead_insns): New.
7085 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7086 * toplev.c (rest_of_compilation): Update callers.
7088 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7089 (try_optimize_cfg): Do not update liveness.
7090 (cleanup-cfg): Loop until try_optimize_cfg and dead code
7091 removal stabilizes; use delete_trivially_dead_insns.
7093 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7095 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7097 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7098 callbacks when processing assembly language.
7100 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7102 * pa.h (ASM_FILE_END): Define.
7103 * som.h (ASM_FILE_END): Delete.
7105 * pa.c (function_arg): Don't pass floats in general registers in
7106 indirect calls if TARGET_ELF32.
7108 2002-03-05 Richard Henderson <rth@redhat.com>
7110 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7112 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7114 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7116 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7118 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7119 -r command line. Don't hide any symbols if not building
7122 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
7124 * cfg.c (dump_flow_info): Warn about profile mismatches.
7125 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7126 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7128 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7130 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7131 wide volatile memory by parts.
7133 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7135 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7138 2002-03-05 Richard Henderson <rth@redhat.com>
7140 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7142 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7144 * toplev.c (documented_lang_options): Document more
7145 language-specific options.
7146 * doc/invoke.texi (Warning Options): Correct documentation for
7147 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7148 * c-decl.c (c_decode_option): Use a table to handle warning options.
7150 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
7152 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7153 parameter to mmix_encode_section_info.
7154 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7155 relocatably. Always produce ELF, not mmo if linking relocatably.
7156 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7157 first is non-zero, don't add symbol prefix.
7158 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7159 prototype accordingly.
7161 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7163 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7165 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7167 * configure.in: Increase required makeinfo version to 4.1.
7168 * configure: Regenerate.
7170 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7172 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7175 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7177 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7178 * doc/invoke.texi: Fix @math uses.
7180 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7182 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7185 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7187 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7188 (powerpc-*-eabisimaltivec*): Same.
7190 * config/rs6000/t-ppcendian: New.
7192 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7194 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7195 nonimmediate_src_operand and nonimmediate_lsrc_operand to
7196 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7198 2002-03-03 Richard Henderson <rth@redhat.com>
7200 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7202 2002-03-03 Zack Weinberg <zack@codesourcery.com>
7204 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7205 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7206 tree.c, config/m68k/m68k.c:
7207 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7208 REAL_ARITHMETIC blocks unconditional. Delete some further
7209 #ifdef blocks predicated on REAL_ARITHMETIC.
7210 * flags.h, toplev.c: Delete remaining references to
7213 * doc/invoke.texi: Remove documentation of -fpretend-float.
7214 * doc/tm.texi: Describe the various REAL_* macros as provided by
7215 real.h, not by the target configuration files.
7217 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7218 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7219 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7220 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7221 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7222 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7223 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7224 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7225 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7226 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7227 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7228 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7229 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7230 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7231 config/xtensa/xtensa.h:
7232 Do not define, undefine, or mention in comments any of
7233 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7234 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7235 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7236 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7237 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7238 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7239 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7240 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7241 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7243 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7245 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7246 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7247 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7248 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7249 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7250 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7252 * defaults.h (BITS_PER_WORD): Define.
7253 * doc/tm.texi (BITS_PER_WORD): Document default value.
7255 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
7256 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
7257 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
7259 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7261 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
7262 lieu of explicit sizeof/sizeof.
7263 * i386.c (override_options, ix86_init_mmx_sse_builtins,
7264 ix86_expand_builtin): Likewise.
7265 * mips.c (mips_add_gc_roots): Likewise.
7266 * mmix.c (mmix_output_condition): Likewise.
7267 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
7268 altivec_init_builtins): Likewise.
7269 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
7270 * cppexp.c (Nsuff, parse_number): Likewise.
7271 * cppinit.c (builtin_array_end): Likewise.
7272 * gcc.c (n_default_compilers, process_command): Likewise.
7273 * genpreds.c (output_predicate_decls): Likewise.
7274 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
7275 * lcm.c (N_ENTITIES): Likewise.
7276 * stor-layout.c (set_sizetype): Likewise.
7278 2002-03-03 Richard Henderson <rth@redhat.com>
7280 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
7281 for types or labels.
7283 2002-03-03 Richard Henderson <rth@redhat.com>
7285 * c-decl.c (start_decl): Initialized variables are not common.
7287 2002-03-02 Per Bothner <per@bothner.com>
7289 * gcc.c (option_map): Suport new --bootclasspath option.
7290 --CLASSPATH is now just an alias for --classpath.
7292 2002-03-02 Richard Henderson <rth@redhat.com>
7294 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
7295 load if "internal" visibility.
7296 * doc/extend.texi: Document visibility meanings.
7298 2002-03-02 Richard Henderson <rth@redhat.com>
7300 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
7301 to functions as well.
7303 2002-03-02 Richard Henderson <rth@redhat.com>
7305 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
7306 (handle_visibility_attribute): Don't call assemble_visibility.
7307 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
7308 without asmspec. Invoke assemble_alias when needed.
7309 * varasm.c (maybe_assemble_visibility): New.
7310 (assemble_start_function, assemble_variable, assemble_alias): Use it.
7312 2002-03-02 Richard Henderson <rth@redhat.com>
7314 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
7315 invoke ENCODE_SECTION_INFO with first call flag.
7317 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7318 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7319 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
7320 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
7321 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7322 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7323 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
7324 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
7325 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
7326 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
7327 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7328 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
7329 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7330 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
7331 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7332 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
7333 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
7334 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7335 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
7336 config/sh/sh.h, config/sparc/sparc.h,
7337 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7338 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
7339 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
7340 FIRST argument. As needed, examine it and do nothing.
7342 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
7343 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7344 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
7346 * config/arm/t-pe (pe.o): Add dependencies.
7348 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7350 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
7351 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
7352 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
7353 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
7354 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
7355 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
7356 * defaults.h (BITS_PER_UNIT): Define.
7357 * doc/tm.texi (BITS_PER_UNIT): Document default value.
7359 2002-03-02 Kazu Hirata <kazu@hxi.com>
7361 * config/h8300/h8300-protos.h: Add a prototype for
7362 compute_a_shift_length.
7363 * config/h8300/h8300.c (h8300_asm_insn_count): New.
7364 (compute_a_shift_length): Likewise.
7365 (h8300_adjust_insn_length): Do not adjust insn length of shift
7367 * config/h8300/h8300.md (anonymous shift patterns): Use
7368 compute_a_shift_length.
7370 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7372 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
7375 * emit-rtl.c (offset_address): Call update_temp_slot_address.
7377 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7379 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
7380 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
7381 * flags.h (flag_zero_initialized_in_bss): Declare.
7382 * toplev.c (flag_zero_initialized_in_bss): New flag.
7383 (lang_independent_options): Add flag_zero_initialized_in_bss.
7384 * tree.c (initializer_zerop): New function.
7385 * tree.h (initializer_zerop): Declare.
7386 * varasm.c (assemble_variable): If we can emit bss, put zero
7387 initializers in the bss section.
7389 2002-03-02 Alan Modra <amodra@bigpond.net.au>
7391 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
7392 like more than one symbol per .weak directive.
7394 2002-03-01 Richard Henderson <rth@redhat.com>
7396 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
7397 adjust argument_pointer by pretend_args_size.
7398 (ia64_va_start): Adjust va_start address by -pretend_args_size.
7400 2002-03-01 Kazu Hirata <kazu@hxi.com>
7402 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
7404 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
7406 * toplev.c (rest_of_compilation): Delete dead jumptables before
7408 * flow.c (delete_dead_jumptables): Make global.
7409 * rtl.h (delete_dead_jumptables): Declare.
7411 2002-03-01 David Edelsohn <edelsohn@gnu.org>
7413 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
7414 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
7415 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
7417 2002-03-01 Kazu Hirata <kazu@hxi.com>
7419 * config/h8300/h8300-protos.h: Fix formatting.
7420 * config/h8300/h8300.c: Likewise.
7421 * config/h8300/h8300.h: Likewise.
7423 2002-03-01 Kazu Hirata <kazu@hxi.com>
7425 * config/h8300/h8300.c (print_operand): Support 16-bit
7427 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
7429 2002-02-28 Richard Henderson <rth@redhat.com>
7431 * expmed.c (store_bit_field): Prevent generation of CONCATs;
7432 pun complex values as integers; use gen_lowpart instead of
7434 (extract_bit_field): Likewise.
7436 2002-03-01 Alan Modra <amodra@bigpond.net.au>
7437 David Edelsohn <edelsohn@gnu.org>
7439 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
7440 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
7441 (SUPPORTS_WEAK): Likewise.
7442 * output.h (add_weak): Add tree param.
7443 * varasm.c (add_weak): Likewise. Save decl.
7444 (struct weak_syms): Add decl field.
7445 (mark_weak_decls): New function.
7446 (init_varasm_once): ggc_add_root mark_weak_decls.
7447 (assemble_start_function): Use ASM_WEAKEN_DECL.
7448 (assemble_variable): Likewise.
7449 (assemble_alias): Likewise.
7450 (declare_weak): Pass decl to add_weak.
7451 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
7452 (remove_from_pending_weak_list): Declare and define for
7454 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
7455 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
7456 * defaults.h (SUPPORTS_WEAK): Likewise.
7457 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7458 .weak for code sym. Do emit .size for descriptor sym.
7459 (ASM_DECLARE_FUNCTION_SIZE): Define.
7460 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
7461 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
7462 .lglobl unless TARGET_XCOFF. Formatting fixes.
7463 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7465 (HANDLE_PRAGMA_WEAK): Remove.
7466 (ASM_WEAKEN_LABEL): Remove.
7467 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
7469 2002-03-01 Jason Merrill <jason@redhat.com>
7471 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
7472 (TARGET_EXPR_CLEANUP): New macro.
7474 2002-02-28 Steve Ellcey <sje@cup.hp.com>
7476 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
7477 to take ptr_extend into account as third type of extension.
7478 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
7479 fields used by SUBREG_PROMOTED_UNSIGNED_P.
7480 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
7481 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
7482 * calls.c (precompute_arguments): Use new macro.
7483 (expand_call): Ditto.
7484 * combine.c (nonzero_bits): Ditto.
7485 (record_promoted_value): Ditto.
7486 * expr.c (store_expr): Ditto.
7487 (expand_expr): Ditto.
7488 * function.c (assign_parms): Ditto.
7490 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
7492 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
7493 override -shared and -shared-libgcc.
7495 2002-02-28 David O'Brien <obrien@FreeBSD.org>
7497 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
7499 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
7502 2002-02-28 Richard Henderson <rth@redhat.com>
7504 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
7505 4 cycle latency from MM producers.
7506 (ia64_internal_sched_reorder): Likewise with pipeline flush.
7508 2002-02-28 Jakub Jelinek <jakub@redhat.com>
7510 * mklibgcc.in: Don't use GNU make extension.
7512 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
7514 * c-parse.in (STATIC): New terminal.
7515 (scspec): New non-terminal. Update productions accordingly.
7516 (program): Remove bogus ifc / end ifc.
7517 (array_declarator): Simplify production using STATIC.
7519 2002-02-28 Jim Meyering <meyering@lucent.com>
7521 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
7522 \a still means TARGET_BELL.
7524 2002-02-28 Richard Henderson <rth@redhat.com>
7526 * haifa-sched.c (sched_emit_insn): New.
7527 (schedule_block): Use last_scheduled_insn to track last insn.
7528 * sched-int.h (sched_emit_insn): Prototype.
7529 * config/ia64/ia64.c (last_issued): Remove.
7530 (ia64_variable_issue): Don't set it.
7531 (nop_cycles_until): Use sched_emit_insn.
7533 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
7535 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
7538 2002-02-28 Kazu Hirata <kazu@hxi.com>
7540 * config/h8300/h8300.c: Fix formatting.
7541 * config/h8300/h8300.h: Likewise.
7543 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
7545 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
7546 which may overwrite the high byte of the frame pointer.
7548 2002-02-28 Bo Thorsen <bo@suse.de>
7550 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
7551 (STARTFILE_SPEC): Add 64 bit files.
7552 (ENDFILE_SPEC): Likewise.
7554 2002-02-28 Jason Merrill <jason@redhat.com>
7556 * c-decl.c (finish_function): Only warn about missing return
7557 statement with -Wreturn-type.
7559 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
7561 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
7563 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
7564 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
7566 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
7568 * basic-block.h (BB_REACHABLE): Renumber.
7569 (BB_DIRTY, BB_NEW): New flags.
7570 (clear_bb_flags): Declare.
7571 (update_life_info_in_dirty_blocks): Declare.
7572 * cfg.c (clear_bb_flags): New function.
7573 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
7574 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
7575 reorder_insns, emit_insn_after): Mark block as dirty.
7576 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
7577 (update_life_info_in_dirty_blocks): New function.
7578 * recog.c (apply_change_group): Dirtify block.
7580 * cse.c (cse_insn): Reorder emitting of jump insn to keep
7582 * gcse.c (delete_null_pointer_checks): Likewise.
7584 * toplev.c (dump_file_index): Move cse2 after bp,
7586 (dump_file_info): Similary.
7587 (rest_of_compilation): Avoid most of CFG rebuilds;
7588 do first if converision after null pointer checks, do cse2
7589 after branch prediction; avoid full liveness rebuild after
7590 initializing subregs.
7591 * invoke.texi (-d options): Document -du, renumber.
7593 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
7594 (notice_new_block): Do not set BB_UPDATE_LIFE.
7595 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
7596 merge_blocks_move_successor_nojumps, merge_blocks,
7597 try_crossjump_to_edge): Likewise.
7598 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
7599 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
7600 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
7601 (merge_of_block): Do not use life_data_ok.
7602 (find_if_case_1): Do not use SET_UPDATE_LIFE.
7603 (if_convert): Use BB_DIRTY mechanizm to update life.
7604 * lcm.c (optimize_mode_switching): Update
7605 update_life_info_in_dirty_blocks
7607 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
7609 * Makefile.in (integrate.o): Update.
7610 * c-decl.c (copy_lang_decl): Rename.
7611 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7612 * integrate.c: Include langhooks.h.
7613 (copy_decl_for_inlining): Update to use langhook.
7614 * langhooks-def.h (lhd_do_nothing_t,
7615 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
7616 (LANG_HOOKS_INITIALIZER): Update.
7617 * langhooks.c (lhd_do_nothing_t): New.
7618 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
7619 * tree.h (copy_lang_decl): Remove.
7621 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7623 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
7625 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
7626 POST_DEC, and POST_MODIFY.
7628 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7630 * c-typeck.c (digest_init): Remove unused parameter; all
7633 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
7635 * expmed.c (expand_shift): Correctly test for low part of a
7638 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7640 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
7641 insn UIDs with insn addresses.
7643 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7645 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
7646 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
7647 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
7648 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
7649 gcc.c, toplev.c: Delete code implementing -traditional mode.
7651 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
7652 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
7653 Document removal of -traditional mode for compilation, and
7654 remove documentation only relevant to that mode.
7656 * config/nextstep.h, config/ptx4.h, config/svr4.h,
7657 config/convex/convex.h, config/d30v/d30v.h,
7658 config/i386/dgux.h, config/i386/osf1elf.h,
7659 config/i386/osfelf.h, config/i386/osfrose.h,
7660 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
7661 config/m68k/hp310.h, config/m88k/dgux.h,
7662 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
7663 config/m88k/m88k.h, config/m88k/openbsd.h,
7664 config/mips/abi64.h, config/mips/osfrose.h,
7665 config/mips/svr4-5.h, config/mips/svr4-t.h,
7666 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7667 config/stormy16/stormy16.h: Remove all references to
7668 -traditional from target specs. Delete all mention of the
7669 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
7670 delete a couple of commented-out definitions of
7671 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
7674 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
7675 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
7677 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7679 * mklibgcc.in: Don't use \n in a line subject to
7680 interpretation by echo.
7682 2002-02-27 Graham Stott <grahams@redhat.com>
7684 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
7687 * loop.c (prescan_loop): Handle PARALLEL.
7689 * unroll.c (loop_iterations): Return 0 if the add_val for
7692 * final.c (output_operand_lossage): Constify PFX_STR.
7694 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
7696 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
7698 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
7699 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
7701 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
7703 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7705 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
7707 * cpplex.c (_cpp_lex_token): Handle directives in macro
7709 * cpplib.c (_cpp_handle_directive): Save and restore state
7710 if parsing macro args when entering a directive.
7711 * cppmacro.c (collect_args): No need to handle directives
7713 (enter_macro_context, replace_args): Use the original macro
7714 definition in case it was redefined whilst collecting arguments.
7718 2002-02-26 David Edelsohn <edelsohn@gnu.org>
7720 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
7721 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
7722 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
7724 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
7725 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
7726 (load_toc_v4_PIC_2): Same.
7728 2002-02-26 Alan Modra <amodra@bigpond.net.au>
7730 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
7732 2002-02-26 Richard Henderson <rth@redhat.com>
7734 * config/alpha/alpha.md (ashldi_se): Re-enable.
7736 2002-02-26 Richard Henderson <rth@redhat.com>
7738 * config/alpha/alpha.c (alpha_encode_section_info): Examine
7739 MODULE_LOCAL_P; improve commentary.
7741 2002-02-26 Zack Weinberg <zack@codesourcery.com>
7743 * doc/cpp.texi: Clarify documentation of relationship between
7746 2002-02-26 Kazu Hirata <kazu@hxi.com>
7748 * config/h8300/h8300-protos.h: Update the prototype for
7749 compute_logical_op_length. Add the prototype for
7750 compute_logical_op_cc.
7751 * config/h8300/h8300.c (compute_logical_op_length): Figure out
7753 (compute_logical_op_cc): New.
7754 * config/h8300/h8300.md: Combine all the logical op patterns
7755 in HImode and SImode. Use compute_logical_op_cc.
7757 2002-02-26 Kelley Cook <kelleycook@comcast.net>
7759 * config/i386/i386.c (print_operand): Don't append ATT-style
7760 length suffixs to x87 opcodes when in Intel mode.
7762 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
7764 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
7765 (init_emit_once): Update calls.
7766 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
7767 (init_syntax_once): Prototype.
7769 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7771 * pa-linux.h (LIB_SPEC): Update definition.
7772 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7774 2002-02-26 Richard Henderson <rth@redhat.com>
7776 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
7777 if we emitted a stop bit.
7779 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7781 * configure.in (libgcc_visibility): Substitute.
7782 * configure: Rebuilt.
7783 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
7784 defined symbols .hidden.
7786 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7788 * attribs.c (c_common_attribute_table): Add visibility.
7789 (handle_visibility_attribute): New function.
7790 * varasm.c (assemble_visibility): New function.
7791 * output.h (assemble_visibility): Add prototype.
7792 * tree.h (MODULE_LOCAL_P): Define.
7793 * crtstuff.c (__dso_handle): Use visibility attribute.
7794 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
7795 for MODULE_LOCAL_P symbols too.
7796 * config/ia64/ia64.c (ia64_encode_section_info): Handle
7797 MODULE_LOCAL_P symbols the same way as local symbols.
7798 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
7799 into .sdata/.sbss by the user.
7800 * doc/extend.texi (Function Attributes): Document visibility
7803 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7806 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
7807 STRING_CST initializer spanning the whole variable without
7809 If expand_expr returned MEM, don't use it.
7811 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
7813 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
7814 generate a die for the lexical block.
7816 2002-02-26 Kazu Hirata <kazu@hxi.com>
7818 * config/h8300/h8300-protos.h: Add a prototype for
7819 compute_logical_op_length.
7820 * config/h8300/h8300.c (compute_logical_op_length): New.
7821 * config/h8300/h8300.md (anonymous logical patterns): Use
7822 compute_logical_op_length for length.
7824 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7826 * dwarf2out.c (modified_type_die): Do not call type_main_variant
7828 (gen_type_die): Same.
7830 * attribs.c (handle_vector_size_attribute): Set debug information.
7832 2002-02-26 Daniel Egger <degger@fhm.edu>
7834 * config/rs6000/rs6000.md: Swap define_insn attributes to
7835 fix incorrect generation of merge high instructions instead
7838 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7840 * c-typeck.c (really_start_incremental_init): Use
7841 bitsize_zero_node for vectors.
7843 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7845 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
7846 ("*set_vrsave_internal"): Same.
7848 2002-02-25 Richard Henderson <rth@redhat.com>
7850 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
7851 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
7853 2002-02-25 Jakub Jelinek <jakub@redhat.com>
7856 * config/i386/i386.c (ix86_return_pops_args): Only pop
7857 fake structure return argument if it was passed on the stack.
7859 2002-02-25 Jason Merrill <jason@redhat.com>
7861 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
7864 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
7866 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
7867 link with shared_name only.
7868 * doc/invoke.texi (Link Options): Document new behavior.
7870 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
7872 * c-typeck.c (push_init_level): Handle vectors.
7874 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
7876 * config/sparc/sparc.c (const64_high_operand): Zero-extend
7877 operands of SPARC_SETHI_P.
7878 (input_operand): Likewise.
7879 (sparc_emit_set_const32): Likewise.
7880 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
7881 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
7882 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
7883 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
7884 (movdi_insn_sp64_vis): Likewise.
7885 (movdi split, movdf split): Use SETHI32.
7886 * doc/md.texi: Document SPARC constraints L, M and N.
7888 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
7890 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
7891 ("*set_vrsave_internal"): use mfspr for Darwin.
7893 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
7894 gen_get_vrsave_internal.
7896 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7898 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
7900 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
7902 * cpplex.c (cpp_interpret_charconst): Get signedness or
7903 otherwise of wide character constants correct.
7904 * cppexp.c (lex): Get signedness of wide charconsts correct.
7906 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7908 * optabs.c (widen_operand): Only call convert_modes for
7909 promoted SUBREG if signedness matches.
7910 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
7912 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7914 * cpplib.c (glue_header_name): Use local buffer to build up
7917 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7919 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
7921 2002-02-23 Kazu Hirata <kazu@hxi.com>
7923 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
7924 H8/300[HS] separately.
7925 * config/h8300/h8300.md: Remove the early clobber constraint
7926 from bit field patterns.
7928 2002-02-23 Kazu Hirata <kazu@hxi.com>
7930 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
7932 (mulhisi3): Likewise.
7933 (umulqisi3): Likewise.
7934 (umulhisi3): Likewise.
7936 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7938 * cppinit.c (output_deps): Correct test for stdout output.
7939 (init_dependency_output): Cure warning.
7941 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7943 * expr.c (store_expr): When converting expression to promoted
7944 equivalent type, allow using SUBREG_REG of TARGET as the target
7945 of the expansion of EXP.
7946 * loop.c (basic_induction_var, case SUBREG): Always look inside.
7947 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
7948 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
7949 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
7950 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
7952 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
7954 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
7955 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
7956 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
7958 2002-02-23 Jakub Jelinek <jakub@redhat.com>
7960 PR optimization/5747
7961 * loop.c (scan_loop): Update reg info if move_movables created new
7964 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7966 * gcc.c (init_gcc_spec): Revert last change.
7968 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7970 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7971 gpc_reg_operand constraint.
7973 2002-02-23 Alan Modra <amodra@bigpond.net.au>
7975 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
7976 Simplify comparison of `low'.
7977 (add_operand): Fix formatting.
7978 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
7979 (mask_operand): Disallow mask to wrap in 64-bit mode.
7980 (rs6000_stack_info): Remove redundant test setting push_p.
7981 (output_toc): Fix formatting.
7982 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
7983 cc_reg_not_cr0_operand constraint.
7984 (booldi3, boolcdi3 splitters): Same.
7986 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
7988 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7990 2002-02-22 David Edelsohn <edelsohn@gnu.org>
7992 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7993 gcc invoked with -shared-libgcc.
7995 2002-02-22 Jakub Jelinek <jakub@redhat.com>
7998 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7999 decl if any of elements was TREE_USED.
8001 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
8003 * config/sparc/sol2.h: Don't include sys/mman.h.
8004 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8005 (arith_4096_operand): Don't throw high bits away.
8006 (const64_operand): Take sign extension of CONST_INTs into account.
8007 (const64_high_operand, sparc_emit_set_const32): Likewise.
8008 (GEN_HIGHINT64): Likewise.
8009 (sparc_emit_set_const64_quick1): Likewise.
8010 (const64_is_2insns): Likewise.
8011 (print_operand): Use trunc_int_for_mode for sign extension.
8012 * config/sparc/sparc.h (SMALL_INT32): Likewise.
8013 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8014 chars. Assume CONST_INT is already properly sign-extended.
8015 (movdi split): Sign-extend each SImode part.
8016 (andsi3 split): Don't mask high bits off, so that result
8017 remains properly sign-extend.
8018 (iorsi3 split): Likewise.
8019 (xorsi3 split): Likewise.
8021 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
8023 * fold-const.c (fold): Fix typo in comments.
8025 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8027 * Makefile.in (langhooks.o): Update dependencies.
8029 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8031 * langhooks.c: Include flags.h.
8033 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
8035 * testsuite/gcc.dg/attr-alwaysinline.c: New.
8037 * c-common.c (c_common_post_options): Set inline trees by
8040 * doc/extend.texi (Function Attributes): Document always_inline
8042 Update documentation about inlining when not optimizing.
8044 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8046 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
8047 unless DECL_ALWAYS_INLINE.
8049 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
8050 unless DECL_ALWAYS_INLINE.
8051 (c_disregard_inline_limits): Disregard if always_inline set.
8053 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8054 Disregard if always_inline set.
8055 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8056 unless DECL_ALWAYS_INLINE.
8058 * attribs.c (handle_always_inline_attribute): New.
8059 (c_common_attribute_table): Add always_inline.
8061 * config/rs6000/altivec.h: Add prototypes for builtins
8062 requiring the always_inline attribute.
8064 2002-02-21 Eric Christopher <echristo@redhat.com>
8066 * expmed.c (store_bit_field): Try to simplify the subreg
8067 before generating a new one when when the mode size of
8068 value is less than maxmode.
8070 2002-02-21 Richard Henderson <rth@redhat.com>
8072 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8073 than gen_rtx_PLUS to form the sum.
8074 * explow.c (force_reg): Rearrange to not allocate new pseudo
8075 when force_operand returns a register.
8076 * expr.c (expand_assignment): Allow offset_rtx expansion to
8077 return a sum. Do not force addresses into registers.
8078 (expand_expr): Likewise.
8079 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8080 to canonicalize arithmetic that didn't simpify.
8081 (simplify_plus_minus): New argument force; update
8082 all callers. Don't split CONST unless we can do something with it,
8083 and wouldn't lose the constness of the operands.
8085 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8086 that we generated earlier.
8088 2002-02-21 Tom Tromey <tromey@redhat.com>
8090 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8091 (output_line_info): Use constant `1', with a long explanatory
8093 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8095 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8097 * jump.c (redirect_jump): If old label has no UID, don't try to
8100 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8102 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8103 If input is constant, do shifts at compile time.
8105 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8107 * doc/extend.texi: Fix some more overfull hboxes.
8109 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8111 PR optimization/4994
8112 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8115 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8118 * expr.h (expand_and): Add mode argument.
8119 * expmed.c (expand_and): Add mode argument.
8120 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8121 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8122 * except.c (expand_builtin_extract_return_addr): Likewise.
8123 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8124 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8125 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8126 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8127 * config/c4x/c4x.md: Use GEN_INT (x) instead of
8128 gen_rtx (CONST_INT, VOIDmode, x).
8130 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8133 * stmt.c (warn_if_unused_value): Move side effects test once more.
8135 2002-02-20 Torbjorn Granlund <tege@swox.com>
8137 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8138 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8140 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8142 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8143 SUBREG or ZERO_EXTEND.
8145 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
8147 * sh.h (current_function_anonymous_args): Remove.
8148 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8149 of current_function_varargs and current_function_stdarg is set.
8150 * sh.c (sh_expand_prologue): Check current_function_varargs /
8151 current_function_stdarg / TARGET_SH5 instead of
8152 current_function_anonymous_args.
8154 * sh64.h (TARGET_VERSION): Define.
8156 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8158 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8159 VRSAVE_REGNO on TARGET_ALTIVEC.
8161 2002-02-20 Alan Modra <amodra@bigpond.net.au>
8163 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8164 bits of SImode const_int.
8165 (includes_rshift_p): Likewise.
8166 (print_operand): Call mask_operand and mask64_operand with correct
8168 (rs6000_output_function_epilogue): Pad traceback table to word.
8169 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8170 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8171 mask64_operand with correct mode.
8172 (FUNCTION_ARG_REGNO_P): Correct parentheses.
8174 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8177 * varasm.c (get_pool_constant_mark): New.
8178 * rtl.h (get_pool_constant_mark): Add prototype.
8179 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8180 be represented if it has not been output.
8182 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8184 * combine.c (do_SUBST): Sanity check substitutions of
8185 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8186 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8187 CONST_INT into its operand.
8188 (known_cond): Likewise, for ZERO_EXTEND.
8189 * simplify-rtx.c (simplify_unary_operation): Fix condition to
8190 allow for simplification of wide modes. Reject CONST_INTs in
8191 ZERO_EXTEND when their actual mode is not given.
8193 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8195 * c-decl.c (pushdecl): If no global declaration is found for an
8196 extern declaration in block scope, try a limbo one.
8198 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8201 * c-common.c (pointer_int_sum): Moved from...
8202 * c-typeck.c (pointer_int_sum): ...here.
8203 * c-common.h (pointer_int_sum): Add prototype.
8205 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8208 * c-decl.c (duplicate_decls): Return 0 if issued error about
8211 2002-02-20 Roger Sayle <roger@eyesopen.com>
8212 Jakub Jelinek <jakub@redhat.com>
8215 * tree.c (host_integerp): Ensure that the constant integer is
8216 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8217 when pos is zero or non-zero respectively. Clarify comment.
8218 * c-format.c (check_format_info_recurse): Fix host_integerp
8219 usage; the pos argument should be zero when assigning to a
8220 signed HOST_WIDE_INT.
8222 2002-02-20 Richard Henderson <rth@redhat.com>
8224 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8225 of the operand, rather than assuming TImode.
8226 (ix86_expand_binop_builtin): Cope with commutative patterns
8227 using nonimmediate_operand for both operands.
8228 (ix86_expand_timode_binop_builtin): Likewise.
8229 (ix86_expand_store_builtin): Validate operand 1.
8230 (ix86_expand_unop1_builtin): Likewise.
8232 2002-02-20 Philip Blundell <philb@gnu.org>
8235 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8237 2002-02-20 Richard Henderson <rth@redhat.com>
8240 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8242 2002-02-20 Tom Tromey <tromey@redhat.com>
8244 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8245 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8246 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8247 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8248 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8251 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8253 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8254 for (const_int 0) in X not just INTVAL.
8256 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
8258 * doc/extend.texi: Avoid or reduce overfull hboxes.
8260 2002-02-20 Diego Novillo <dnovillo@redhat.com>
8262 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
8263 operations if the field does not start at a mode boundary.
8265 2001-02-20 Joel Sherrill <joel@OARcorp.com>
8267 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
8268 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
8269 Also done for -Acpu and -Amachine.
8271 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
8273 * cppinit.c (init_dependency_output): Take deps output file
8274 from -o if none given with -MF. Suppress normal output.
8275 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
8276 * doc/cpp.texi, doc/invoke.texi: Update.
8278 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8280 * toplev.c (output_quoted_string): Write unprintable
8281 characters with octal escapes.
8283 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8285 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
8286 really_call_used[VRSAVE_REGNO] if not Altivec.
8288 2002-02-19 Alan Modra <amodra@bigpond.net.au>
8290 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
8292 (constant_pool_expr_1): Fix formatting.
8293 (rs6000_legitimize_reload_address): Likewise.
8295 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8297 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
8298 now that we have one.
8300 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8302 * tree.h (struct tree_common): Remove aux. Add unused_0 at
8303 end of first block of bitfields (which was only seven bits);
8304 rename dummy to unused_1; remove comment which is no longer true.
8306 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8308 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
8310 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8313 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
8317 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
8318 arm_is_longcall_p rather than inspecting call-type cookie
8320 (call_value_insn) [TARGET_THUMB]: Likewise.
8322 2002-02-19 Graham Stott <grahams@redhat.com>
8324 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
8326 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8328 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
8329 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
8330 (FP_SAVE_INLINE): Delete.
8332 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
8333 * config/rs6000/eabi.asm: Remove ABI save restore routines.
8334 * config/rs6000/t-ppccomm: Build crtsavres.o.
8335 * config/rs6000/crtsavres.asm: New file.
8337 2002-02-19 Philip Blundell <philb@gnu.org>
8339 * config/arm/arm.c (use_return_insn): Don't reject interrupt
8341 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
8342 (output_return_instruction): Allow interrupt functions to return with
8343 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
8344 (arm_expand_prologue): Subtract 4 before stacking LR in an
8347 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8349 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
8350 decl, not just FUNCTION_DECL.
8351 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
8352 (arm_assemble_integer): Likewise.
8353 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
8356 2002-02-19 matthew green <mrg@eterna.com.au>
8358 * config.gcc (sparc-*-netbsdelf*): Enable target.
8359 (sparc64-*-netbsd*): New target.
8360 * config/sparc/netbsd-elf.h: New file.
8361 * config/sparc/t-netbsd64: New file.
8363 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8365 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
8367 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
8369 * doc/invoke.texi: explicitly list the style guidelines that
8370 -Weffc++ checks for.
8372 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
8374 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
8376 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
8379 * gcc.c (cpp_unique_options): Treat -o as indicating object file
8380 only if not -E. If -E, pass -o through to the preprocessor.
8382 2002-02-19 Kazu Hirata <kazu@hxi.com>
8384 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
8385 register number with an appropriate macro.
8387 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8389 * doc/rtl.texi (Constants): Close @code tag.
8391 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
8393 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
8394 ("mmx_uavgv4hi3"): Same.
8395 ("pmulhrwv4hi3"): Same.
8397 * tree-inline.c (walk_tree): Handle vectors.
8399 * c-common.c (constant_expression_warning): Handle vectors.
8400 (overflow_warning): Same.
8402 * sched-deps.c (sched_analyze_2): Handle vectors.
8404 * rtlanal.c (rtx_unstable_p): Handle vectors.
8405 (rtx_varies_p): Same.
8406 (count_occurrences): Same.
8407 (regs_set_between_p): Same.
8408 (modified_between_p): Same.
8409 (modified_in_p): Same.
8410 (volatile_insn_p): Same.
8411 (volatile_refs_p): Same.
8412 (side_effects_p): Same.
8414 (inequality_comparisons_p): Same.
8415 (replace_regs): Same.
8416 (computed_jump_p_1): Same.
8418 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
8420 (inner_mode_array): New.
8421 (copy_rtx): Handle vectors.
8422 (copy_most_rtx): Same.
8423 (rtx_equal_p): Same.
8424 (get_mode_alignment): Adjust for vectors.
8426 * resource.c (mark_referenced_resources): Handle vectors.
8427 (mark_set_resources): Same.
8429 * reload1.c (eliminate_regs): Handle vectors.
8430 (elimination_effects): Same.
8431 (scan_paradoxical_subregs): Same.
8433 * reload.c (subst_reg_equivs): Handle vectors.
8435 * regrename.c (scan_rtx): Handle vectors.
8437 * regclass.c (reg_scan_mark_refs): Handle vectors.
8439 * recog.c (find_single_use_1): Handle vectors.
8441 * local-alloc.c (equiv_init_varies_p): Handle vectors.
8442 (contains_replace_regs): Same.
8443 (memref_referenced_p): Same.
8445 * integrate.c (copy_rtx_and_substitute): Handle vectors.
8446 (subst_constants): Same.
8448 * genattrtab.c (attr_copy_rtx): Handle vectors.
8449 (encode_units_mask): Same.
8450 (clear_struct_flag): Same.
8451 (count_sub_rtxs): Same.
8453 * gcse.c (want_to_gcse_p): Handle vectors.
8454 (oprs_unchanged_p): Same.
8455 (hash_expr_1): Same.
8456 (oprs_not_set_p): Same.
8457 (expr_killed_p): Same.
8458 (compute_transp): Same.
8459 (store_ops_ok): Same.
8461 * function.c (purge_addressof_1): Do not allow paradoxical subregs
8463 (fixup_var_refs_1): Same.
8464 (instantiate_virtual_regs_1): Same.
8466 * fold-const.c (operand_equal_p): Handle vectors.
8468 (rtl_expr_nonnegative_p): Same.
8470 * flow.c (mark_used_regs): Handle vectors.
8472 * df.c (df_uses_record): Handle vectors.
8474 * cselib.c (cselib_subst_to_values): Handle vectors.
8475 (cselib_mem_conflict_p): Same.
8478 * cse.c (canon_reg): Handle vectors.
8480 (cse_process_notes): Same.
8481 (count_reg_usage): Same.
8484 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
8486 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
8488 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
8489 (gen_rtx): Handle CONST_VECTOR.
8490 (gen_const_vector_0): New.
8491 (copy_rtx_if_shared): CONST_VECTORs can be shared.
8492 (reset_used_flags): Same.
8493 (copy_insn_1): Same.
8494 (initializer_constant_valid_p): Handle VECTOR_CST.
8496 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
8498 * doc/rtl.texi (Constants): Document const_vector.
8499 (CONST0_RTX): Update for vectors.
8500 (RTL sharing): Same.
8502 * print-tree.c (print_node): Add case for VECTOR_CST.
8504 * tree.h (TREE_VECTOR_CST_ELTS): New.
8505 (struct tree_vector): New.
8506 (union tree_node): Add vector node.
8507 (build_vector): Add prototype.
8509 * tree.def (VECTOR_CST): New.
8511 * tree.c (build_vector): New.
8513 * expmed.c (make_tree): Handle CONST_VECTOR.
8515 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
8516 (CONST_VECTOR_ELT): New.
8517 (CONST_VECTOR_NUNITS): New.
8519 * machmode.h (GET_MODE_INNER): New.
8520 (DEF_MACHMODE): Accept 8th arg.
8522 * machmode.def: Add 8th argument for vector inner mode.
8523 Add inner vector modes for vectors.
8525 * rtl.def (VEC_CONST): Remove.
8526 (CONST_VECTOR): New.
8528 * expr.c (clear_storage): Allow vectors.
8529 (is_zeros_p): Handle VECTOR_CST.
8531 * varasm.c (output_constant_pool): Handle vectors.
8532 (rtx_const): Add veclo and vechi fields.
8533 (kind): Add RTX_VECTOR.
8534 (decode_rtx_const): Add case for vector.
8536 * config/rs6000/rs6000-protos.h: Add zero_constant.
8538 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
8539 constants. Force easy vector constants into memory.
8540 (easy_vector_constant): New.
8541 (emit_easy_vector_constant): New.
8542 (rs6000_legitimize_reload_address): Do not generate bad reloads on
8545 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
8547 ("altivec_lvxl"): Same.
8548 (altivec_lvebx): Same.
8549 (altivec_lvehx): Same.
8550 (altivec_lvewx): Same.
8551 ("*movv4si_const0"): New.
8552 ("*movv4sf_const0"): New.
8553 ("*movv8hi_const0"): New.
8554 ("*movv16qi_const0"): New.
8556 2002-02-18 Kazu Hirata <kazu@hxi.com>
8558 * config/h8300/h8300.c (notice_update_cc): Use
8561 2002-02-18 Kazu Hirata <kazu@hxi.com>
8563 * config/h8300/h8300.md (divmod patterns): Change the
8564 constraints for operands[1] to register_operand.
8566 2002-02-18 Kazu Hirata <kazu@hxi.com>
8568 * config/h8300/h8300-protos.h: Remove the prototype for
8570 * config/h8300/h8300.c (p_operand): Remove.
8571 * config/h8300/h8300.md: Replace p_operand with
8574 2002-02-18 Philip Blundell <pb@nexus.co.uk>
8576 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
8578 (output_return_instruction): Allow use of LDR to unstack
8579 return addresss even for interrupt handlers or when
8580 interworking. If compiling for ARMv5, use interworking-safe
8581 return instructions by default. Remove duplicated code and
8582 lengthy "strcat" sequences.
8584 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8586 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
8587 (LINK_EH_SPEC): Define.
8588 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
8590 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
8592 * config/s390/s390.c (s390_emit_prologue): Do not set the
8593 frame_related flag for call-clobbered registers.
8595 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
8597 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
8598 (construct_container): Fix handling of SSE operands.
8599 (ix86_expand_builtin): Fix handling of 64bit pointers.
8600 (mmx_maskmovq_rex): New pattern.
8602 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
8604 * regrename.c (kill_set_value): Handle subregs properly.
8606 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
8608 * objc/objc-act.c (handle_impent): Remove leading '*'
8609 from objc_class_name.
8611 2002-02-17 Richard Henderson <rth@redhat.com>
8613 * config/alpha/alpha.c (some_small_symbolic_operand,
8614 some_small_symbolic_operand_1, split_small_symbolic_operand,
8615 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
8616 Handle small SYMBOL_REFs anywhere, not just inside memories.
8617 * config/alpha/alpha-protos.h: Update.
8618 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8619 * config/alpha/alpha.md (small symbolic operand splitter): Update.
8621 2002-02-17 Roland McGrath <roland@frob.com>
8623 * config.gcc (powerpc-*-gnu-gnualtivec*,
8624 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
8625 * config/rs6000/gnu.h: New file.
8626 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
8627 Grok "gnu" in rs6000_abi_name.
8628 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
8629 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
8630 Grok -mcall-gnu analogous to -mcall-linux et al.
8631 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8632 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
8633 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
8635 2002-02-17 Jakub Jelinek <jakub@redhat.com>
8638 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
8641 2002-02-17 Philipp Thomas <pthomas@suse.de>
8643 * config/cris/cris.h: Undefine STARTFILE_SPEC and
8644 ENDFILE_SPEC before (re)defining them.
8646 2002-02-17 Kazu Hirata <kazu@hxi.com>
8648 * config/h8300/h8300.c: Fix formatting.
8649 * config/h8300/h8300.h: Likewise.
8651 2002-02-17 Philipp Thomas <pthomas@suse.de>
8653 * doc/tm.texi: Explain why empty strings should not be
8654 marked for translation.
8656 2002-02-17 Philipp Thomas <pthomas@suse.de>
8658 * final.c (output_operand_lossage): Changed to accept
8659 printf style arguments. Change calls where necessary.
8660 * output.h (output_operand_lossage): Change declaration
8661 accordingly. Update copyright.
8662 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
8663 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
8664 Update copyright date where necessary.
8666 * config/i386/i386.c (print_operand): Likewise. Remove use of
8669 * config/cris/cris.c (cris_operand_lossage): Likewise.
8670 Rename parameter so that exgettext recognizes it as
8671 translatable message.
8672 (LOSE_AND_RETURN): Rename parameter to msgid.
8674 2002-02-17 Kazu Hirata <kazu@hxi.com>
8676 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
8677 hard coded register number with an appropriate macro.
8678 (HARD_REGNO_MODE_OK): Likewise.
8679 (ARG_POINTER_REGNUM): Likewise.
8680 (STATIC_CHAIN_REGNUM): Likewise.
8681 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8682 * config/h8300/h8300.md (define_constants): Define more
8685 2002-02-17 Philipp Thomas <pthomas@suse.de>
8687 * config/i386/i386.h: Don't mark empty strings for translation.
8689 2002-02-16 H.J. Lu <hjl@gnu.org>
8691 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
8693 2002-02-16 Zack Weinberg <zack@codesourcery.com>
8695 * cppinit.c (merge_include_chains): Check for brack being
8696 NULL before attempting to merge it with qtail.
8698 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8700 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
8703 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8705 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
8707 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8709 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
8710 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
8711 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
8713 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8715 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
8716 now only if !TARGET_FIX.
8717 (*movsi_nt_vms_fix): New pattern.
8719 2002-02-16 Douglas B Rupp <rupp@gnat.com>
8721 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
8722 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
8723 (alpha_sa_mask, alpha_sa_size): Reflect above change.
8724 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
8725 (alpha_start_function, alpha_expand_epilogue): Likewise.
8726 (unicosmk_gen_dsib): Likewise.
8728 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8730 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
8732 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
8734 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
8735 check_and_change_labels, s390_final_chunkify): Delete.
8736 (s390_split_branches, s390_chunkify_pool): New functions.
8737 (s390_function_prologue): Call them.
8739 * config/s390/s390.h (S390_REL_MAX): Delete.
8740 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
8742 * config/s390/s390.md (cjump, icjump, jump): Fix length
8743 attribute calculation.
8746 2002-02-15 David Edelsohn <edelsohn@gnu.org>
8748 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
8749 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
8751 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8753 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
8754 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8755 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
8757 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8759 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
8761 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8763 * reload.c (find_dummy_reload): Check that an output register
8764 is valid for its mode.
8766 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
8768 * combine.c (known_cond): After replacing the REG of a SUBREG, try
8771 * function.c (assign_parms): Demote promoted argument passed by
8772 transparent reference.
8774 2001-02-14 Joel Sherrill <joel@OARcorp.com>
8776 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
8777 -Acpu() and -Amachine() to eliminate warnings.
8779 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
8781 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
8783 2002-02-14 Kazu Hirata <kazu@hxi.com>
8785 * config/h8300/h8300-protos.h: Update the prototype for
8787 * config/h8300/h8300.c (const_costs): Treat SET as a little
8788 more expensive operation.
8789 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
8790 reference to const_costs.
8792 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
8794 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
8796 2002-02-14 Jakub Jelinek <jakub@redhat.com>
8799 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
8800 use arguments from newtype.
8802 2002-02-13 Eric Christopher <echristo@redhat.com>
8804 * config/mips/mips.c (override_options): Add check for march/mipsX
8805 on the same command line. Fix error message in cpu processing.
8806 Remove architecture and ISA checks.
8808 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
8810 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
8812 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
8814 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
8816 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
8818 ("*movv8hi_internal1"): Same.
8819 ("*movv16qi_internal1"): Same.
8820 ("*movv4sf_internal1"): Same.
8822 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
8823 not push_reload for altivec modes.
8825 2002-02-13 Joel Sherrill <joel@OARcorp.com>
8827 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
8828 all RTEMS targets including removal of #includes from config/*/rtems*.h
8829 file and adding them to tm_file setting. Added xm_defines=POSIX to
8831 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
8832 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
8833 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
8834 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
8835 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
8836 config/m68k/rtemself.h: Ditto.
8837 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
8838 config/mips/rtems64.h: Ditto.
8839 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
8840 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
8842 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
8843 config/sparc/rtemself.h: Ditto.
8844 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
8845 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
8846 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
8848 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
8849 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
8850 target made more similar to i386-elf.
8851 * config/i386/t-rtems-i386: Added soft float support and multilibs.
8852 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
8853 be similar to config/m68k/t-m68kelf.
8854 * gthr-rtems.h: Encapsulate with extern "C" for C++.
8856 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
8858 * regmove.c (kill_value): Handle subregs.
8860 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
8862 * i386.md (mul patterns): Allow memory operand to be first;
8863 add expanders where needed; fix constraints.
8864 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
8865 Allow memory operand to be the first.
8867 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
8870 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8873 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
8876 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8878 PR optimization/5547:
8879 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
8880 all valid IA-32 address modes involving non-scaled %ebx and
8881 GOT/GOTOFF as displacement.
8883 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
8885 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
8886 after emitting ltorg insns.
8888 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
8889 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
8890 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
8891 *abssf2): Fix "op_type" attribute.
8893 2002-02-13 Douglas B Rupp <rupp@gnat.com>
8895 * mkconfig.sh: Avoid using a subshell redirect.
8896 ($output.T): Change to $(output)T.
8897 (ENABLE_NLS): Remove unneeded undef.
8899 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
8900 * config/alpha/x-vms (libsubdir): Define.
8902 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
8903 register frame procedures. Optimize retrieving context.
8905 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
8906 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
8907 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
8909 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8911 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
8912 Make same change as for find_base_value.
8914 2002-02-13 Kazu Hirata <kazu@hxi.com>
8916 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
8917 of QImode and SImode.
8919 2002-02-13 Kazu Hirata <kazu@hxi.com>
8921 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
8922 length computation of movsi.
8923 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
8925 2002-02-13 Kazu Hirata <kazu@hxi.com>
8927 * config/h8300/h8300.md (subqi3): Tighten the predicate for
8928 operands[2] to register_operand.
8930 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
8932 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8934 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
8936 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
8937 for altivec_lvx* and altivec_stvx*.
8938 ("*movv4si_internal"): Add constraint for loading from GPRs.
8939 ("*movv8hi_internal1"): Same.
8940 ("*movv16qi_internal1"): Same.
8941 ("*movv4sf_internal1"): Same.
8943 * config/rs6000/rs6000.c (altivec_register_operand): New.
8945 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8946 altivec_register_operand.
8948 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
8950 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8953 2002-02-13 Stan Shebs <shebs@apple.com>
8955 * c-typeck.c (digest_init): Handle vectors.
8956 (really_start_incremental_init): Same.
8957 (pop_init_level): Same.
8958 (process_init_element): Same.
8960 * varasm.c (output_constant): Same.
8962 * expr.c (clear_storage): Same.
8963 (store_constructor): Same.
8965 2002-02-12 Eric Christopher <echristo@redhat.com>
8967 * explow.c (hard_function_value): Add comment explaining
8968 signed/unsigned comparison.
8970 2002-02-12 Jakub Jelinek <jakub@redhat.com>
8972 * jump.c (never_reached_warning): Add finish argument.
8973 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
8974 real insn after end.
8975 * rtl.h (never_reached_warning): Adjust prototype.
8976 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
8977 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
8978 never_reached_warning.
8980 2002-02-12 Graham Stott <grahams@redhat.com>
8982 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8984 2002-02-12 Kazu Hirata <kazu@hxi.com>
8986 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
8987 logical shifts on H8/300.
8988 (shift_alg_si): Improve several shifts on H8/300.
8989 (get_shift_alg): Likewise.
8991 2002-02-12 Graham Stott <grahams@redhat.com>
8993 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8995 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8997 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8998 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9000 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
9002 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9003 non-CONST_INT through default_assemble_integer.
9004 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9005 <case 8>: Abort for CONST_DOUBLE.
9007 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9009 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9011 * config/pa/pa-linux.h (LIB_SPEC): Delete.
9012 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9014 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
9016 * config/stormy16/stormy16.md (zero_extendqihi2): New.
9018 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
9020 * regrename.c (regrename_optimize): Don't accept a
9021 part-clobbered register if the replaced register is not part
9024 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9025 take padding into account when computing the argument value.
9027 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9029 * combine.c (try_combine): Apply substitutions in
9030 CALL_INSN_FUNCTION_USAGE too.
9032 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
9034 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9035 __builtin_altivec_abs*.
9038 * config/rs6000/rs6000.h (rs6000_builtins): Add
9039 ALTIVEC_BUILTIN_ABS*.
9041 * config/rs6000/altivec.h: Use const char for builtins expecting
9043 (vec_abs): New versions for C and C++.
9046 2002-02-10 Kazu Hirata <kazu@hxi.com>
9048 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
9051 2002-02-10 Kazu Hirata <kazu@hxi.com>
9053 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9054 constant definition from h8300.md.
9055 (FRAME_POINTER_REGNUM): Likewise.
9056 * config/h8300/h8300.md (define_constants): Add FP_REG.
9058 2002-02-10 Kazu Hirata <kazu@hxi.com>
9060 * config/h8300/h8300.c (print_operand): Remove redundant code.
9062 2002-02-10 Kazu Hirata <kazu@hxi.com>
9064 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9065 * config/h8300/h8300.c (byte_reg): Make it static.
9067 2002-02-10 Richard Henderson <rth@redhat.com>
9070 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9072 2002-02-10 Richard Henderson <rth@redhat.com>
9075 * tree.c (append_random_chars): Don't abort if main_input_filename
9078 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9080 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9082 2002-02-10 Kazu Hirata <kazu@hxi.com>
9084 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9085 (pushhi1): Likewise.
9087 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
9089 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9090 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9092 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9094 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9096 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9098 2002-02-09 Kazu Hirata <kazu@hxi.com>
9100 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9101 a half of an SImode register on H8/300.
9103 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9105 * i386.md (movdi_2): Add missing '!'.
9107 2002-02-09 Kazu Hirata <kazu@hxi.com>
9109 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9112 2002-02-09 Kazu Hirata <kazu@hxi.com>
9114 * config/h8300/h8300.md (length): Correct the distance valid
9115 for the short branch.
9117 2002-02-09 Kazu Hirata <kazu@hxi.com>
9119 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9121 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9123 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9124 registers in SImode.
9125 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9128 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9131 Contribute sh64-elf.
9132 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9133 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9134 (sh_cannot_modify_jumps_p): New function.
9135 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9136 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9137 (sh_ms_bitfield_layout_p): New function.
9138 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
9139 Zack Weinberg <zack@codesourcery.com>
9140 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9141 expand_simple_binop instead of expand_binop.
9142 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
9143 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9144 use of .quad and .uaquad.
9145 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9146 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9147 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9148 * config/sh/sh.md (movdi_const, movdi_const_32bit,
9149 movdi_const_16bit): Make sure all CONSTs have modes.
9150 (sym2PIC): Ditto, but by adjusting all callers.
9151 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9152 if the prologue calls the SHmedia argument decoder or register
9154 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9155 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9156 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9157 (sh_expand_epilogue): Don't emit USE of return target register.
9158 (prepare_move_operands): Legitimize DImode PIC addresses.
9159 (sh_media_register_for_return): Skip tr0, used to initialize the
9161 (sh_expand_prologue): Remove explicit USE of return register.
9162 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
9163 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
9164 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9165 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9166 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9168 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9169 (MOVI_SHORI_BASE_OPERAND_P): New.
9170 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9171 (EXTRA_CONSTRAINT_T): Define in terms of them.
9172 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9173 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9174 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9175 alternatives supporting TARGET_REGS.
9176 (UNSPEC_GOTPLT): New constant.
9177 (movdi split): Move incrementing of LABEL_NUSES...
9178 (movdi_const, movdi_const_32bit): Here. Use
9179 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9180 (movdi_const_16bit): New.
9181 (call, call_value) [flag_pic]: Use GOTPLT.
9182 (call_pop, call_value_pop): New expands.
9183 (call_pop_compact, call_pop_rettramp): New insns.
9184 (call_value_pop_compact, call_value_pop_rettramp): New insns.
9185 (sibcall) [flag_pic]: Use GOT.
9186 (builtint_setjmp_receiver): Remove bogus, unused expand.
9187 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9188 (*pt, *ptb, ptrel): New insns.
9189 (sym2GOT): Handle DImode GOT.
9190 (sym2GOTPLT, symGOTPLT2reg): New expands.
9191 (sym2PIC): New expand.
9192 (shcompact_return_tramp): Use GOTPLT to return trampoline.
9193 (shcompact_return_tramp_i): Use return register explicitly.
9194 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9195 disable flag_reorder_blocks.
9196 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9197 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9198 clobbers, for clarity.
9199 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9200 restoring of r0 in macl as MAYBE_DEAD.
9201 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
9202 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9203 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9204 alter_subreg all over.
9205 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9206 reload, instead of emitting instructions that would require
9208 (casesi_load_media): Add missing modes.
9209 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
9210 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9211 as used if the argument decoder is called.
9212 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9213 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9214 Pmode, then extend it to DImode if necessary.
9215 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9216 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9217 constants in FPU-enabled SHmedia, let them be loaded from memory.
9218 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9219 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9220 Adjust whitespace in assembly output templates.
9221 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9222 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9223 mode of if_then_else.
9224 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
9225 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9227 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
9228 Joern Rennecke <amylaar@redhat.com>
9229 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9230 (SUBTARGET_CPP_PTR_SPEC): New.
9231 (SUBTARGET_CPP_SPEC): Remove.
9232 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9233 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9234 Fix typo in previous checkin.
9235 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
9236 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9237 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
9238 Alexandre Oliva <aoliva@redhat.com>
9239 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9240 what single FP register can hold for SHmedia target.
9241 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9242 Alexandre Oliva <aoliva@redhat.com>
9243 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9244 Do not split into SUBREG.
9245 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
9246 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9247 and added new functions as specified in SH5 ABI r9.
9248 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
9249 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9251 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
9252 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
9253 gen_consttable_4 and gen_consttable_8. Emit multiple labels
9254 and consttable_window_ends.
9255 2001-06-03 Graham Stott <grahams@redhat,com>
9256 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
9257 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
9258 * config/sh/sh.c (print_operand): Handle floating-point pair,
9259 vector and matrix registers.
9260 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
9261 vector modes into account.
9262 * config/sh/sh.md (movv2sf): Split move between registers into
9264 (movv4sf, movv16sf): Introduce insns that get split only after
9266 * config/sh/shmedia.h: Fix Copyright dates.
9267 * config/sh/ushmedia.h: Likewise. Move loop counter
9268 declarations into conditionals that uses them.
9269 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
9271 * config/sh/sshmedia.h: Fix Copyright dates.
9272 (sh_media_PUTCFG): Fix constraints.
9273 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
9274 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
9275 ptrmemfunc_vbit_in_delta for SH5.
9276 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
9277 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
9278 * invoke.texi: Likewise.
9279 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9280 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
9281 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
9282 GCC_pop_shmedia_regs_nofpu): New global symbols.
9283 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
9284 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
9285 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
9286 compact function with nonlocal labels.
9287 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
9288 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
9289 (initial_elimination_offset): Account for their stack space.
9290 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
9291 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
9292 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
9293 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
9294 least one of the operands to be a register.
9295 (movv2sf): Likewise. Renamed to movv2sf_i.
9296 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
9297 prepare_move_operands() before emitting SHmedia insns.
9298 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
9299 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
9300 Don't save nor initialize r12. Don't mis-align the stack.
9301 Pad the code with a nop.
9302 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
9304 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
9305 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
9306 [__SHMEDIA__]: Implement.
9307 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
9308 * config/sh/sh.md: Set latency of `pt' closer to reality.
9309 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
9310 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
9311 Set move, load and store type attributes.
9312 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
9313 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
9315 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
9316 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
9317 * config/sh/sh.c (sh_media_register_for_return): New function.
9318 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
9319 branch-target register.
9320 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
9321 * config/sh/sh.md (return_media_i): Use any call-clobbered
9322 branch-target register.
9323 (return_media): If r18 wasn't copied in the prologue, copy it
9325 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
9326 Clear class FP0_REGS.
9327 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
9329 2001-03-08 DJ Delorie <dj@redhat.com>
9330 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
9331 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
9332 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
9333 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
9334 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
9335 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
9336 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
9337 return value correctly for call_cookie.
9338 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
9339 * config/sh/crt1.asm (start): Modified so as to call
9340 ___setup_argv_and_call_main.
9341 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
9342 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
9344 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
9345 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
9346 (STRIP_NAME_ENCODING): Use it.
9347 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
9348 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
9349 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
9350 prepare_scc_operands().
9351 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
9352 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
9353 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
9354 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
9355 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
9356 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
9357 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
9358 used in shcompact_incoming_args.
9359 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
9361 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
9363 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
9365 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
9366 Simplify. Adjust. Add sanity check.
9367 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
9369 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
9371 (udivsi3, divsi3): Use them.
9372 (force_mode_for_call): New insn.
9373 (call, call_value, sibcall_value): Emit it before SHcompact
9375 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
9376 * config/sh/sh.md (call, call_value, sibcall): Make sure the
9377 call cookie is non-NULL before taking its value.
9378 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
9379 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
9380 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
9381 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
9383 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
9384 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
9385 temporary for stack adjusts. Use MACL and MACH to pass
9386 arguments to shcompact_incoming_args.
9387 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
9389 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
9390 (nested_trampoline): Load static chain address into r1.
9391 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
9392 2001-01-07 Alexandre Oliva <aoliva@redhat.com
9393 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
9394 fp_arith_reg_operand().
9395 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
9396 * config/sh/sh.md (casesi): Sign-extend the first two operands,
9397 and use signed compares for them.
9398 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
9399 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
9400 ones properly aligned.
9401 (find_barrier): Account for extra alignment needed for 8-byte wide
9403 (machine_dependent_reorg): Require a label for the second 4-byte
9404 constant after an 8-byte one.
9405 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
9407 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
9408 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
9409 last_float when switching float modes.
9410 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
9411 auto-increment for general-purpose registers.
9412 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
9414 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
9416 * config/sh/sh.c (sh_builtin_saveregs): Support using all
9417 registers for varargs.
9418 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
9419 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
9420 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
9421 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
9422 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
9423 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
9424 call_cookie accordingly.
9425 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
9426 (SHCOMPACT_BYREF): Likewise.
9427 (SHCOMPACT_FORCE_ON_STACK): New macro.
9428 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
9429 (sh_builtin_saveregs): Likewise.
9430 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9431 shcompact_incoming_args): Use new shift values. Support
9432 sequences of consecutive and non-consecutive pushes/pops.
9433 * config/sh/sh.md (return): Don't explicitly use PR_REG.
9434 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
9435 * config/sh/sh.h (TEXT_SECTION): Define.
9436 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
9437 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
9438 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
9439 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
9440 return values on FPU-enabled SHmedia.
9441 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
9442 FPU-enabled SHmedia.
9443 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
9444 value is returned in a non-FP reg and is not returned by
9446 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
9448 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
9449 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
9450 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
9451 quad-aligned to be passed by callee-copy reference.
9452 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
9453 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
9454 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
9455 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
9456 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
9457 copying low-numbered FP regs to r7 and r8.
9458 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
9459 FP regs to general-purpose regs only if the copy was passed on the
9461 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
9462 copying FP reg to r9.
9463 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
9464 copy FP regs to general-purpose regs only in outgoing calls.
9465 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
9466 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
9468 * config/sh/sh.h (struct sh_args): Document all fields.
9469 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
9470 passed partially on the stack should not consider making
9472 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
9473 stack_regs only for incoming calls. When passing FP args,
9474 make sure there are FP regs available before modifying
9476 (SHCOMPACT_BYREF): Pass double args in general-purpose
9477 registers by reference.
9478 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
9479 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
9480 attempt to generate sibcalls if the caller got any arguments
9482 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
9483 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
9484 to 8-byte boundaries.
9485 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
9486 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
9487 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
9488 stored in the stack.
9489 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
9490 for the offsets to have the ISA bit set.
9491 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
9492 invocation. Use beq instead of bgt to mark end of sequence of
9494 (shcompact_incoming_args): Fix store of r2. Use beq instead of
9495 bgt to mark end of sequence of stores.
9496 * config/sh/sh.c (arith_operand): Don't check whether
9497 CONST_OK_FOR_J for now.
9498 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
9499 instead of long for conversion.
9500 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
9501 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
9502 before passing it to fprintf.
9503 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
9504 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
9505 Call set_fpscr before reading/writing SR.
9506 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
9508 * config/sh/lib1funcs.asm: Add `.align 2' directives before
9510 (FMOVD_WORKS): Define on SH5 with FPU.
9511 (set_fpscr): Define on SH5. Remove separate _fpscr_values
9513 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
9515 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
9516 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
9518 (ia_main_table): Ditto.
9519 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
9520 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
9521 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
9522 the definitions from sh.h.
9523 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
9525 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
9526 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
9527 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9528 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
9529 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
9530 Increment LABEL_NUSES.
9532 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
9534 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
9536 * config/sh/elf.h (SIZE_TYPE): Likewise.
9537 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9538 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9539 shcompact_incoming_args): Load switch table addresses using
9541 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9542 (NO_BUILTIN_SIZE_TYPE): Define.
9543 (SIZE_TYPE): Don't define.
9544 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9545 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
9546 definition of __SH5__=32 for -m5-compact-nofpu.
9547 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
9549 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
9550 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
9551 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
9552 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
9553 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
9554 (INSN_LENGTH_ALIGNMENT): Likewise.
9555 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9556 * config/sh/sh.md (call, call_value, sibcall): Simplify
9557 copying of non-branch-target register.
9558 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9559 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
9560 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
9561 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9562 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
9563 floating-point values as structs.
9564 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
9565 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
9566 general-purpose register.
9567 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
9568 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9569 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
9570 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
9571 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
9572 (ENCODE_SECTION_INFO): Enclose variables and constants in
9574 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
9575 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
9576 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
9577 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
9578 only for LABEL_REFs. For SYMBOL_REFs, prepend
9579 SH_DATALABEL_ENCODING to the symbol name.
9580 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
9582 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9583 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
9585 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
9586 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
9587 (DATALABEL_REF_P): Don't require CONST.
9588 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
9590 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
9591 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
9593 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
9594 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
9595 Use shallow_copy_rtx and PUT_MODE to change the mode of
9596 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
9597 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
9598 on SHmedia using GENERAL_REGs.
9599 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9600 bltu_media_i): Fix reversion of conditions.
9601 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
9602 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
9603 * config/sh/sh.c (output_far_jump): Save r13 in macl.
9604 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
9605 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
9606 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
9607 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
9608 (GCC_nested_trampoline): Likewise.
9609 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
9610 * config/sh/sh.c (gen_datalabel_ref): Define.
9611 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
9612 (INITIALIZE_TRAMPOLINE): Likewise.
9613 (TRAMPOLINE_ADJUST_ADDRESS): Define.
9614 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
9615 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
9616 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
9617 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
9618 (ic_invalidate): Adjust for SH5.
9619 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
9620 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
9622 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
9623 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
9624 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
9625 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
9626 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
9627 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
9628 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
9629 * config/sh/sh.c (target_reg_operand): Match only target-branch
9630 registers and pseudos that aren't virtual registers.
9631 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9632 Copy operands that don't match target_reg_operand to pseudos.
9633 (call_media, call_value_media, sibcall_media): Use
9634 target_reg_operand instead of target_operand.
9635 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
9636 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
9637 * config/sh/sh.c (target_reg_operand): Match hardware registers
9638 other than branch-target registers.
9639 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
9640 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
9641 (fpscr_values) [SH5 == 32]: Define.
9642 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
9643 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9644 Handle function addresses coming in SUBREGs.
9645 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
9646 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9647 shcompact_return_trampoline): Use datalabel where appropriate.
9648 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
9649 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
9650 general-purpose register to copy one branch-target register to
9652 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
9653 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
9654 SYMBOL_REFs with VOIDmode.
9655 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9656 bltu_media_i): New insns.
9657 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
9658 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
9659 (INIT_CUMULATIVE_ARGS): Likewise.
9660 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
9661 * machmode.def (V16SFmode): New mode.
9662 * c-common.c (type_for_mode): Support V2SF and V16SF.
9663 * tree.c (build_common_tree_nodes_2): Likewise.
9664 * tree.h (tree_index): Likewise.
9665 * calls.c (emit_call_1): Take args_so_far. Adjust all
9666 callers. Introduce CALL_POPS_ARGS.
9667 * tm.texi (CALL_POPS_ARGS): Document.
9668 * config/sh/crt1.asm: Implement in SHmedia mode.
9669 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
9670 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
9671 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
9672 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
9673 Implement divsi and udivsi in SHmedia mode. Introduce
9674 SHcompact trampolines.
9675 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
9677 (regno_reg_class): Rewrite.
9678 (fp_reg_names): Remove.
9679 (sh_register_names, sh_additional_register_names): New.
9680 (print_operand): Added `u'. Support SUBREGs in addresses.
9681 Add parentheses around shifted CONSTs.
9682 (output_file_start): Output .mode and .abi directives.
9683 (shiftcosts, addsubcosts, multcosts): Adjust.
9684 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
9685 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
9686 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
9687 bytes, not registers. Take into account the need for the
9688 SHcompact incoming args trampoline. Adjust all callers.
9689 (sh_expand_prologue): Take stack_regs into account. Call
9690 incoming args trampoline. Keep stack aligned as per SH5 ABI.
9691 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
9692 stack aligned as per SH5 ABI.
9693 (sh_builtin_saveregs): Support SH5 ABI.
9694 (sh_build_va_list, sh_va_start): Likewise.
9695 (initial_elimination_offset): Take alignment into account.
9696 Compute location of PR according to the SH5 stack frame.
9697 (arith_reg_operand): Reject branch-target registers.
9698 (shmedia_6bit_operand): New.
9699 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
9700 (target_reg_operand): Match DImode only. Accept SUBREGs.
9701 (target_operand): New.
9702 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
9703 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
9704 SIBCALL_REGS for SHmedia.
9705 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
9706 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
9707 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
9708 (TARGET_SWITCHES): New SH5 flags.
9709 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
9710 VALID_REGISTER_P to disable unsupported registers.
9711 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
9712 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
9713 (FUNCTION_ARG_PADDING): Define.
9714 (FASTEST_ALIGNMENT): Adjust.
9715 (SH_REGISTER_NAMES_INITIALIZER): New.
9716 (sh_register_names): Declare.
9717 (DEBUG_REGISTER_NAMES): Define.
9718 (REGISTER_NAMES): Define based on sh_register_names.
9719 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
9720 (sh_additional_register_names): Declare.
9721 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
9722 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
9723 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
9724 (REGISTER_NATURAL_MODE): Define.
9725 (FIRST_PSEUDO_REGISTER): Adjust.
9726 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
9727 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
9728 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
9729 (VECTOR_MODE_SUPPORTED_P): Define.
9730 (REG_CLASS_CONTENTS): Adjust.
9731 (SMALL_REGISTER_CLASSES): Adjust.
9732 (REG_ALLOC_ORDER): Adjust.
9733 (INDEX_REG_CLASS): Adjust.
9734 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
9735 (CONST_OK_FOR_LETTER_P): Adjust.
9736 (PREFERRED_RELOAD_CLASS): Adjust.
9737 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
9738 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
9739 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
9740 (FIRST_FP_PARM_REG): Adjust.
9741 (CALL_POPS_ARGS): Define.
9742 (FUNCTION_ARG_REGNO_P): Adjust.
9743 (struct sh_args): New fields.
9744 (GET_SH_ARG_CLASS): Adjust.
9745 (INIT_CUMULATIVE_ARGS): Adjust.
9746 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
9747 (FUNCTION_ARG_ADVANCE): Adjust.
9748 (FUNCTION_ARG): Adjust.
9749 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
9750 (FUNCTION_ARG_CALLEE_COPIES): Define.
9751 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
9752 (STRICT_ARGUMENT_NAMING): Define.
9753 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
9754 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
9755 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
9756 (SETUP_INCOMING_VARARGS): Adjust.
9757 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
9758 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
9759 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
9760 (SUBREG_OK_FOR_INDEX_P): Adjust.
9761 (EXTRA_CONSTRAINT_S): Update.
9762 (EXTRA_CONSTRAINT_T): New.
9763 (EXTRA_CONSTRAINT): Adjust.
9764 (GO_IF_LEGITIMATE_INDEX): Adjust.
9765 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
9766 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
9768 (MAX_MOVE_MAX): Define.
9770 (CONST_COSTS): Adjust.
9771 (REGISTER_MOVE_COST): Adjust.
9772 (BRANCH_COST): Adjust.
9773 (TEXT_SECTION_ASM_OP): Adjust.
9774 (DBX_REGISTER_NUMBER): Adjust.
9775 (ASM_OUTPUT_DOUBLE_INT): New.
9776 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
9777 (PREDICATE_CODES): Adjust.
9778 (PROMOTE_MODE): Adjust.
9779 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
9780 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
9781 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
9782 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
9783 (DR0_REG, DR2_REG, DR4_REG): Renumber.
9784 (TR0_REG, TR1_REG, TR2_REG): New.
9785 (XD0_REG): Renumber.
9786 (UNSPEC_COMPACT_ARGS): New.
9787 (type): Added pt and ptabs.
9788 (length): Default to 4 on SHmedia. Default pt length to 12
9789 and 20 on SHmedia32 and SHmedia64, respectively.
9790 (pt): New function unit.
9791 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
9792 Add whitespace between operands of SHmedia instructions.
9794 (adddi3_media, addsi3_media): Adjust constraints.
9795 (subsi3) [SHmedia]: Force operand 1 into a register.
9796 (udivsi3_i1_media, udivsi3_i4_media): New.
9797 (udivsi3): Support SHmedia.
9798 (divsi3_i1_media, divsi3_i4_media): New.
9799 (divsi3): Support SHmedia.
9800 (anddi3, iordi3, xordi3): Adjust constraints.
9801 (zero_extendhidi2, zero_extendqidi2): New.
9802 (extendsidi2, extendhidi2, extendqidi2): New.
9803 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
9804 (pop_e, pop_fpul, pop_4): Likewise.
9805 (movsi_media): Support FP and BT registers.
9806 (movsi_media_nofpu): New. Adjust splits to DImode.
9807 (lduw, ldub): Renamed to zero_extend* above.
9808 (movqi_media): Fix typo.
9809 (movdi_media): Support FP and BT registers.
9810 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
9811 (movdi_const_32bit): New.
9812 (shori_media): Require immediate operand. Use `u' for output.
9813 (movdf_media, movsf_media): Simplified.
9814 (movdf_media_nofpu, movsf_media_nofpu): New.
9815 (movdf, movsf): Adjust
9816 (movv2sf, movv2sf, movv16sf): New.
9817 (beq_media, beq_media_i): Adjust constraints. Don't use
9818 scratch BT register.
9819 (bne_media, bne_media_i): Likewise.
9820 (bgt_media, bgt_media_i): Likewise.
9821 (bge_media, bge_media_i): Likewise.
9822 (bgtu_media, bgtu_media_i): Likewise.
9823 (bgeu_media, bgeu_media_i): Likewise.
9824 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
9825 bunordered): Emit jump insn. Force operands to registers when
9827 (jump_media, jump): Simplify.
9828 (call_compact, call_compact_rettramp): New.
9829 (call_value_compact, call_value_compact_rettramp): New.
9830 (call_media, call_value_media): Simplify.
9831 (sibcall_compact, sibcall_media): New.
9832 (call, call_value): Adjust for SHmedia and SHcompact.
9833 (sibcall, sibcall_value, untyped_call): Likewise.
9834 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
9835 (indirect_jump): Adjust for SHmedia.
9836 (casesi_jump_media): New.
9837 (nop): Re-enable for SHmedia.
9838 (call_site): Restrict to SH1.
9839 (casesi): Adjust for SHmedia.
9840 (casesi_shift_media, casesi_load_media): New.
9841 (return): Explicitly use PR register. Call return trampoline
9843 (return_i): Explicitly use PR register.
9844 (shcompact_return_tramp, shcompact_return_tramp_i): New.
9845 (return_media): Adjust.
9846 (shcompact_incoming_args): New.
9848 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9849 (movstrsi): Disable on SH5.
9850 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
9851 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
9852 (subsf3, subsf3_media): Likewise.
9853 (mulsf3, mulsf3_media, mac_media): Likewise.
9854 (divsf3, divsf3_media): Likewise.
9855 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
9856 (floatsisf2, fux_truncsfsi2): Likewise.
9857 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
9859 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
9860 (cmpunsf_media, cmpsf): Likewise.
9861 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
9862 (abssf2, abssf2_media): Likewise.
9863 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
9864 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
9865 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
9866 (floatsidf2, fix_truncdfsi2): Likewise.
9867 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
9869 (cmpeqdf_media, cmpgtdf_media): Likewise.
9870 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
9871 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
9872 (absdf2, absdf2_media): Likewise.
9873 (extendsfdf2, extendsfdf2_media): Likewise.
9874 (truncsfdf2, truncsfdf2_media): Likewise.
9875 * config/sh/sh64.h: New file.
9876 * config/sh/t-sh64: New file.
9877 * config/sh/shmedia.h: New file.
9878 * config/sh/ushmedia.h: New file.
9879 * config/sh/sshmedia.h: New file.
9880 * configure.in: Added sh64-*-elf.
9881 * configure: Rebuilt.
9882 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
9883 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
9884 (reg_class_from_letter): Use `b' for TARGET_REGS.
9885 (print_operand): Support `%M', `%m', `AND' and
9886 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
9887 (andcosts): Adjust for SHmedia.
9888 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
9890 (target_reg_operand): New function.
9891 * config/sh/sh-protos.h (target_reg_operand): Declare.
9892 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
9893 FP registers on SH5.
9894 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
9896 (TARGET_REGISTER_P): New macro.
9897 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
9898 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
9899 (EXTRA_CONSTRAINT_S): New macro.
9900 (EXTRA_CONSTRAINT): Adjust.
9901 (FLOAT_TYPE_SIZE): Define to 32.
9902 (Pmode): DImode on SHmedia.
9903 (CONST_COSTS): Adjust for SHmedia literals.
9904 (PREDICATE_CODES): Added target_reg_operand.
9905 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
9906 * config/sh/sh.md: Remove all attrs from SHmedia insns.
9907 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
9908 (cmpdi): Accept SHmedia.
9909 (movdicc_false, movdicc_true): New insns.
9910 (movdicc): New expand.
9911 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
9913 (addsi3_media): Match `S' constraint.
9914 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
9915 (negdi2): Expand for SHmedia.
9916 (one_cmpldi2): New expand.
9917 (zero_extendsidi2): Change from expand to insn.
9918 (extendsidi2): Add constraints.
9919 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
9920 LD/ST address. Fix SI immediate loading split.
9921 (movhi_media, movqi_media, lduw, ldub): New insns.
9922 (movhi, movqi): Accept SHmedia.
9923 (shori_media, movdi_media): Relax input constraints. Split
9925 (movdf_media, movsf_media): New insn. New split to movdi.
9926 (movdf, movsf): Match on SHmedia.
9927 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
9928 bgeu_media): New insns and splits. New insns with `_i' suffix.
9929 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
9930 (bunordered): New expand.
9931 (jump_compact): Renamed from `jump'.
9932 (jump_media): New insn.
9934 (call_media, call_value_media): New insns.
9935 (call, call_value): Adjust.
9936 (indirect_jump_compact): Renamed from `indirect_jump'.
9937 (indirect_jump_media): New insn.
9938 (indirect_jump): New expand.
9939 (untyped_call, return): Accept SHmedia.
9940 (return_media): New insn.
9941 (prologue, epilogue, blockage): Accept SHmedia.
9942 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9943 (sunordered): New expand.
9944 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
9945 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
9946 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
9947 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
9948 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
9949 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
9950 abssf2_media): New insns.
9951 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
9952 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
9953 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
9954 floatdidf2, floatsidf2_media, fix_truncdfdi2,
9955 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
9956 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
9957 absdf2_media): New insns.
9958 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
9959 (extendsfdf2_media, truncdfsf2_media): New insns.
9960 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
9961 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
9962 * config/sh/sh.h (CONST_OK_FOR_J): Document.
9963 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
9964 * config/sh/sh.md (adddi3): New expand.
9965 (adddi3_media, adddi3z_media): New insns.
9966 (adddi3_compact): Renamed from adddi3.
9967 (addsi3_media): Use add.l r63 to add constant zero.
9968 (subdi3): New expand.
9969 (subdi3_media): New insn.
9970 (subdi3_compact): Renamed from subdi3.
9971 (mulsidi3): New expand.
9972 (mulsidi3_media): New insn.
9973 (mulsidi3_compact): Renamed from mulsidi3.
9974 (umulsidi3): New expand.
9975 (umulsidi3_media): New insn.
9976 (umulsidi3_compact): Renamed from umulsidi3.
9977 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
9978 (ashlsi3, ashrsi3, lshrsi3): Use them.
9979 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
9980 (ashldi3, ashrdi3, lshrdi3): Use them.
9981 (zero_extendsidi2): New expand.
9982 (extendsidi2): New insn.
9983 (movsi_media): New insn. Split to movdi to load constants.
9984 (movsi): Enable for shmedia.
9985 (movdi_media): New insn. Use shori_media to load wide constants.
9986 (short_media): New insn.
9987 (movdi): Enable for shmedia.
9988 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
9989 * config/sh/sh.h (CPP_SPEC): Added `m5'.
9990 (SUBTARGET_CPP_SPEC): Added `!m5'.
9991 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9992 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
9993 to all other SH variants.
9994 (TARGET_DEFAULT): Set to SH1_BIT.
9995 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9996 (BITS_PER_WORD): Raise to 64 on shmedia.
9997 (MAX_BITS_PER_WORD): Change to 64.
9998 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9999 (INT_TYPE_SIZE): Keep as 32.
10000 (UNITS_PER_WORD): Raise to 8 on shmedia.
10001 (MIN_UNITS_PER_WORD): Keep as 4.
10002 (POINTER_SIZE): Raise to 64 on shmedia.
10003 (CONST_OK_FOR_J): New macro.
10004 (CONST_OK_FOR_LETTER_P): Use it.
10005 (processor_type): Add PROCESSOR_SH5.
10006 * config/sh/sh.md: Conditionalize all expands, insns and
10007 splits to TARGET_SH1.
10009 (addsi3_compact): Renamed from...
10010 (addsi3): Now an expand.
10011 (addsi3_media, subsi3_media): New insns.
10012 (subsi3): Don't negate constants with SHmedia.
10014 * hooks.c: New file.
10015 * hooks.h: New file.
10016 * Makefile.in (HOOKS_H): New.
10017 (TARGET_DEF_H): Added $(HOOKS_H).
10018 (OBJS): Added hooks.o.
10019 (cfgcleanup.o, bb-reorder.o): Added target.h.
10020 (hooks.o): Added dependencies.
10021 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10022 (TARGET_INITIALIZER): this.
10023 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10024 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10025 * bb-reorder.c: Include target.h.
10026 (reorder_basic_blocks): Skip if cannot modify jumps.
10027 * cfgcleanup.c: Include target.h.
10028 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10030 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10032 * config/mips/mips.md (casesi_internal, casesi_internal_di):
10033 Protect jump delay slot instructions with .set noreorder and
10036 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10038 * config/mips/mips.md (casesi_internal_di): Calculate
10039 the index into the target offset table correctly.
10041 2002-02-08 Richard Henderson <rth@redhat.com>
10043 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10044 * final.c (output_addr_const): Accept and discard SUBREG.
10045 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10046 mark them unknown instead.
10047 (simplify_subtraction): Handle RTX_UNKNOWN.
10048 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
10050 2002-02-08 David Edelsohn <edelsohn@gnu.org>
10052 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10054 2002-02-08 Richard Henderson <rth@redhat.com>
10056 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10058 2002-02-08 Andreas Jaeger <aj@suse.de>
10060 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10061 * config/i386/t-linux64: New file.
10063 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10065 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10066 * c-parse.in (compstmt): Clear last_expr_type.
10068 2002-02-07 Richard Henderson <rth@redhat.com>
10070 * loop.c (strength_reduce): Sink final_value when not
10073 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10075 * config/sparc/freebsd.h: Fix mismatched spec {.
10077 2002-02-07 Richard Henderson <rth@redhat.com>
10079 * cfgrtl.c: Include recog.h and insn-config.h.
10080 (keep_with_call_p): Fix general_operand invocation.
10081 * Makefile.in (cfgrtl.o): Update dependencies.
10083 2002-02-07 Kazu Hirata <kazu@hxi.com>
10085 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10086 comment. Accept HImode only if TARGET_H8300.
10088 2002-02-07 Eric Christopher <echristo@redhat.com>
10090 * config/mips/crtn.asm: Cleanup #ifdefs.
10092 2002-02-07 Eric Christopher <echristo@redhat.com>
10094 * config/mips/crti.asm: Add changes for mips16. mips16 uses
10095 register 7 as RA instead of $31.
10096 * config/mips/crtn.asm: Ditto.
10097 * config/mips/mips.c (mips_move_2words): Add case for
10098 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10099 (compute_frame_size): Fix typo.
10100 (save_restore_insns): Ditto. Make documentation about using
10101 register $7 as return register more precise.
10102 (mips_expand_epilogue): Fix comment. Add code to work around not
10103 being able to add to the stack pointer directly.
10104 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10105 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10108 2002-02-07 Tom Rix <trix@redhat.com>
10110 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10111 immediates in ldu and stdu DS opcode field.
10112 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10113 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10114 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10116 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10118 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10119 offset for stack bias.
10121 2002-02-07 H.J. Lu <hjl@gnu.org>
10123 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10125 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10127 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10129 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
10131 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10132 * i386.c (x86_order_regs_for_local_alloc): New global function.
10133 * i386.h (REG_ALLOC_ORDER): CLeanup.
10134 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10136 2002-02-07 Richard Henderson <rth@redhat.com>
10138 PR optimization/2463
10139 * alias.c (find_base_value): Recall base values for fixed hard regs.
10140 * loop.c (loop_regs_update): Don't use single_set on non-insns.
10142 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10144 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10147 2002-02-06 Richard Henderson <rth@redhat.com>
10150 * stmt.c (resolve_operand_name_1): Take more care with mixed
10151 named and unnamed operands.
10153 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10154 Jan Hubicka <jh@suse.cz>
10156 * loop.c (remove_constant_addition): Avoid clobbering a shared
10159 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10161 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10162 * config/s390/t-linux64: New file.
10163 * config/s390/libgcc-glibc.ver: New file.
10165 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10167 * config/s390/linux64.h: Delete file.
10168 * config/s390/s390x.h: New file.
10169 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10170 as target header file.
10171 * config/s390/linux.h (TARGET_VERSION): Define depending on
10172 DEFAULT_TARGET_64BIT.
10173 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10174 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10175 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10176 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10177 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10178 (EXTRA_SPEC): New define.
10179 * config/s390/s390.h (TARGET_VERSION): Define depending on
10180 DEFAULT_TARGET_64BIT.
10181 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10183 2002-02-06 Jason Merrill <jason@redhat.com>
10185 * c-decl.c (finish_function): Warn about a non-void function with
10186 no return statement and no abnormal exit.
10187 (current_function_returns_abnormally): New variable.
10188 (start_function): Clear it.
10189 (struct c_language_function): Add returns_abnormally.
10190 (push_c_function_context): Save it.
10191 (pop_c_function_context): Restore it.
10192 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10193 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10194 an explicit return type.
10195 * c-tree.h: Declare current_function_returns_abnormally.
10196 (C_FUNCTION_IMPLICIT_INT): New macro.
10197 * c-typeck.c (build_function_call): Set it.
10198 (c_expand_return): Set current_function_returns_value even if the
10199 value is erroneous.
10201 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10204 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10205 unsafe for reevaluation.
10207 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10210 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10211 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10213 2002-02-06 Richard Henderson <rth@redhat.com>
10215 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10216 be a general_operand. Dest for function value must be a pseudo.
10218 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10220 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10221 as SYMBOL_REFs from the constant pool.
10223 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10225 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10226 passed by invisible reference.
10228 2002-02-05 Richard Henderson <rth@redhat.com>
10230 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10232 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
10234 Implement using "base addresses" in insn operands as default.
10235 * config/mmix/mmix.c (mmix_conditional_register_usage): if
10236 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10237 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10238 used to read the rtx value.
10239 (mmix_target_asm_function_epilogue): Fix spacing.
10240 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10241 (mmix_legitimate_address): Ditto.
10242 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10243 should be loaded with a GETA insn. Don't allocate needless extra
10244 char for nul termination and fix misleading comment.
10245 (mmix_print_operand_address): Handle constants if
10246 TARGET_BASE_ADDRESSES.
10247 (mmix_output_register_setting): Use base addressing if
10248 TARGET_BASE_ADDRESSES and the number of insns is 3.
10249 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10250 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10251 to use R as constraint, add LDA to match s.
10252 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
10253 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
10254 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
10255 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
10256 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
10257 order with other fixed registers.
10258 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
10259 other parameter/call-clobbered registers.
10260 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
10261 -mbase-addresses, -mno-base-addresses.
10262 (MMIX Options): Ditto.
10264 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10266 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
10268 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
10270 * config/rs6000/altivec.h: Change elem to _S_elem.
10272 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10274 * config/netbsd.h (WCHAR_TYPE): Define.
10275 (WCHAR_TYPE_SIZE): Ditto.
10276 (WINT_TYPE): Ditto.
10277 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
10278 (WCHAR_UNSIGNED): Ditto.
10279 (WCHAR_TYPE_SIZE): Ditto.
10280 (WINT_TYPE): Ditto.
10281 * config/arm/netbsd.h: Likewise.
10282 * config/i386/netbsd-elf.h: Likewise.
10283 * config/i386/netbsd.h: Likewise.
10284 * config/m68k/netbsd-elf.h: Likewise.
10285 * config/m68k/netbsd.h: Likewise.
10286 * config/ns32k/netbsd.h: Likewise.
10287 * config/sparc/netbsd.h: Likewise.
10288 * config/vax/netbsd.: Likewise.
10290 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10292 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
10293 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
10294 (TARGET_INITIALIZER): this.
10295 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
10296 (BITFIELD_NBYTES_LIMITED): Markup fix.
10297 * tree.h (default_ms_bitfield_layout_p): Declare.
10298 (record_layout_info): Added prev_field.
10299 * tree.c (default_ms_bitfield_layout_p): New fn.
10300 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
10301 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
10302 * stor-layout.c: Include target.h.
10303 (start_record_layout): Initialize prev_field.
10304 (place_field): Handle MS bit-field layout, and disregard
10305 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
10306 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
10307 * Makefile.in (stor-layout.o): Adjust dependencies.
10309 2002-02-05 Jason Merrill <jason@redhat.com>
10311 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
10313 2002-02-05 Andreas Jaeger <aj@suse.de>
10315 * crtstuff.c: Fix comments.
10317 2002-02-05 Richard Henderson <rth@redhat.com>
10320 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
10321 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10324 * config/mips/mips.c (function_arg): Handle TImode.
10325 (function_arg_advance): Likewise.
10327 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10329 * config/rs6000/altivec.h (vec_step_help): Rename to
10332 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10334 * config/rs6000/altivec.h: Fix typos.
10336 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10338 * config/arm/netbsd.h: Correct a comment.
10340 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10342 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
10343 building void typed builtins.
10345 * config/rs6000/altivec.h (vec_ld*): Fix typos.
10346 (vec_step): Implement for C++.
10348 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10350 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
10352 2002-02-04 Richard Henderson <rth@redhat.com>
10354 * combine.c (nonzero_bits): Re-introduce special case for
10355 sp/fp/ap wrt REGNO_POINTER_ALIGN.
10357 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10359 * doc/extend.texi: Warn about unsupported usage of altivec
10362 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
10363 (altivec_predicate_*): New.
10365 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
10366 Add C++ version of vec_*() functions.
10368 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
10369 (bdesc_2arg): Remove altivec predicates.
10370 (altivec_expand_builtin): Handle predicates.
10371 (altivec_init_builtins): Handle predicates.
10372 (altivec_expand_predicate_builtin): New.
10374 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10376 * pa.c (DO_FRAME_NOTES): Move forward.
10377 (store_reg): Revise handling of frame notes.
10378 (load_reg): Likewise.
10379 (set_reg_plus_d): Likewise.
10380 (hppa_expand_prologue): Likewise.
10381 (hppa_expand_epilogue): Likewise.
10383 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10385 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
10387 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10389 PR c/4475, c++/3780:
10390 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
10391 * c-common.h (SWITCH_TYPE): Define.
10392 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
10393 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
10394 Rename spareness variable to sparseness.
10395 (expand_end_case_type): Renamed from expand_end_case, use orig_type
10396 if non-NULL instead of TREE_TYPE (orig_index).
10397 * tree.h (expand_end_case_type): Renamed from expand_end_case.
10398 (expand_end_case): Define using expand_end_case_type.
10399 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
10400 to expand_end_case_type.
10401 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
10403 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10405 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
10406 (BIGGEST_ALIGNMENT): Change to 128.
10408 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10410 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
10412 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10414 * pa.md (call_internal_reg_64bit): Remove unused variable.
10416 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
10418 * config/arm/arm.h (machine_function): Add uses_anonymous_args
10420 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
10421 * config/arm/arm.c (current_function_anonymous_args): Delete,
10422 replace uses with cfun->machine->uses_anonymous_args.
10423 (arm_reorg): Do not reset uses_anonymous_args.
10425 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
10426 any geenral register.
10428 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
10430 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
10433 2002-02-04 Richard Henderson <rth@redhat.com>
10435 * combine.c (force_to_mode): Remove STACK_BIAS code.
10436 (nonzero_bits): Likewise. Replace sp/fp special case with
10437 REGNO_POINTER_ALIGN.
10439 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
10440 (HARD_FRAME_POINTER_REGNUM): New.
10441 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
10442 (FIXED_REGS, CALL_USED_REGS): Update.
10443 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
10444 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
10445 (HARD_REGNO_NREGS): Update for SFP.
10446 (STACK_POINTER_OFFSET): Include bias here ...
10447 (FIRST_PARM_OFFSET): ... not here.
10448 (STACK_BIAS): Remove.
10449 (INIT_EXPANDERS): New.
10450 (STARTING_FRAME_OFFSET): Do not include bias.
10451 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
10452 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
10453 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
10454 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
10455 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
10456 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
10457 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
10458 (MUST_SAVE_REGISTER): Likewise.
10459 (sparc_flat_function_prologue): Likewise.
10460 (sparc_flat_function_epilogue): Likewise.
10461 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
10462 (sparc_init_modes): SFP is GENERAL_REGS.
10463 (sparc_builtin_saveregs): SFP does not have bias applied.
10465 2002-02-04 Richard Henderson <rth@redhat.com>
10467 * config/alpha/alpha.c (current_function_is_thunk): Don't check
10468 current_function_is_thunk.
10469 (alpha_sa_mask): Distinguish between current_function_is_thunk
10470 called from ASM_OUTPUT_MI_THUNK and not.
10471 (alpha_does_function_need_gp): Thunks always need gp.
10472 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10473 (alpha_output_mi_thunk_osf): New.
10474 * config/alpha/alpha-protos.h: Update.
10475 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
10477 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
10479 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
10480 function types, not when they're taken away.
10482 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
10484 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
10485 CODE_LABEL and jump table when replacing a table jump with a
10488 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10490 * config/s390/s390-protos.h (legitimize_la_operand,
10491 s390_secondary_input_reload_class, s390_plus_operand,
10492 s390_expand_plus_operand): Add prototypes.
10494 config/s390/s390.c (s390_secondary_input_reload_class,
10495 s390_plus_operand, s390_expand_plus_operand): New functions.
10497 (struct s390_address): New member 'pointer'.
10498 (s390_decompose_address): Compute it.
10499 (legitimate_la_operand_p): Use it.
10500 (legitimize_la_operand): New function.
10501 (movti, movdi, movdf splitters): Call it.
10503 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
10504 (PREDICATE_CODES): Add s390_plus_operand.
10506 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
10507 (la_ccclobber): Allow GENERAL_REGS as output operand.
10509 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
10510 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
10511 (*la_64, *la_31, reload_indi, reload_insi): ... these.
10513 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10515 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
10516 register names for regular asm () construct.
10518 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10520 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
10523 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10525 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
10528 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
10530 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
10531 constant pool to be identical by string address and index.
10533 2002-02-04 Anthony Green <green@redhat.com>
10535 * output.h (SECTION_OVERRIDE): Define.
10536 * varasm.c (named_section): Obey SECTION_OVERRIDE.
10538 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
10540 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
10541 by existing arm*-*-netbsd* (a.out) target.
10542 (ns32k-*-netbsdelf*): Likewise.
10543 (sparc-*-netbsdelf*): Likewise.
10544 (vax-*-netbsdelf*): Likewise.
10546 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
10548 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
10549 headers and libobjc headers.
10551 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
10553 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
10554 (_mingw.h): Remove duplicate include.
10556 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
10558 * config.gcc: Set cpu_type to m68k for 68010, as well.
10559 (m68010-*-netbsdelf*): New...
10560 (m68k*-*-netbsdelf*): ...targets.
10561 * config/m68k/netbsd-elf.h: New file.
10563 2002-02-02 Kazu Hirata <kazu@hxi.com>
10565 * config/h8300/h8300.c (hand_list): Move inside function_arg.
10567 2002-02-02 Kazu Hirata <kazu@hxi.com>
10569 * config/h8300/h8300.c (h8_push_ops): Move inside
10571 (h8_pop_ops): Likewise.
10572 (h8_move_ops): Likewise.
10574 2002-02-02 Kazu Hirata <kazu@hxi.com>
10576 * config/h8300/h8300.c (os_task): Make it static.
10577 (monitor): Likewise.
10578 (pragma_saveall): Likewise.
10580 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
10582 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
10583 constant is a valid sign-extension for Pmode.
10585 2002-02-02 Kazu Hirata <kazu@hxi.com>
10587 * config/h8300/h8300.c: Fix formatting.
10589 2002-02-02 Kazu Hirata <kazu@hxi.com>
10591 * config/h8300/h8300.md: Fix formatting.
10593 2002-02-02 Kazu Hirata <kazu@hxi.com>
10595 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
10596 predicates of operands[1]. Split the patterns for each
10599 2002-02-02 Kazu Hirata <kazu@hxi.com>
10601 * config/h8300/h8300.md (xor patterns): Tighten the predicates
10602 of operands[1] to register_operand.
10604 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10606 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
10607 * cpphash.c (_cpp_init_hashtable): Similarly.
10608 * cppinit.c (cpp_create_reader): Default the signed_char flag.
10609 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
10610 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
10611 (cpp_handle_option): Handle the new options.
10612 * cpplex.c (cpp_interpret_charconst): Use new flag.
10613 * cpplib.h (struct cpp_options): New member signed_char.
10614 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
10615 (cpp_options): Handle -fsigned-char and -funsigned-char.
10616 (static_specs): Remove signed_char_spec.
10617 (do_spec1): Don't handle %c.
10618 * system.h: Poison SIGNED_CHAR_SPEC.
10619 * tradcif.y (yylex): Use flag_signed_char.
10620 * tradcpp.h (flag_signed_char): New.
10621 * tradcpp.c (flag_signed_char): New.
10622 (main): Handle new command-line options.
10623 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
10625 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
10626 * avr/avr.h: Remove old comments.
10627 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
10628 (CC1_SPEC): Pass -fsigned-char if -mic*.
10629 (SIGNED_CHAR_SPEC): Remove.
10631 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
10633 2002-02-01 Eric Christopher <echristo@redhat.com>
10635 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
10636 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
10637 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
10638 (ASM_OUTPUT_REG_POP): Ditto.
10640 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10642 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
10645 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10647 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
10649 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10652 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
10655 2002-02-01 Janis Johnson <janis187@us.ibm.com>
10657 * cfganal.c: Include tm_p.h.
10658 (keep_with_call_p): Fix the test that determines if a register holds
10659 the return value of a call.
10661 2002-02-01 DJ Delorie <dj@redhat.com>
10663 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
10664 we are given conflicting registers, switch to the other one we
10665 had allocated for us.
10666 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
10667 as TImode so we know when the "other" register is available.
10669 2002-02-01 David O'Brien <obrien@FreeBSD.org>
10671 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
10674 2002-02-01 Janis Johnson <janis187@us.ibm.com>
10676 * cfganal.c (keep_with_call_p): New function.
10677 (flow_call_edges_add): Prevent splitting a block between a call and
10678 a single-set instruction that should be kept in the same block.
10680 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
10682 * doc/install.texi (avr): Update outdated URL.
10684 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
10686 * config/stormy16/stormy16.md (pushqi): New.
10690 (movhi): Remove stack operands.
10692 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
10693 nonimmediate_nonstack_operand.
10694 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
10696 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
10699 2002-01-31 Jason Merrill <jason@redhat.com>
10701 * Makefile.in (c-parse.c): Handle .output file.
10702 * objc/Make-lang.in (objc-parse.c): Likewise.
10704 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
10706 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
10707 the -me[lb] option is given. Don't output the default flag
10710 2002-01-31 Zack Weinberg <zack@codesourcery.com>
10712 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
10713 the primary source file; this has not been done yet.
10714 * c-decl.c (c_expand_body): Reset input_filename from
10715 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
10717 2002-01-31 Kazu Hirata <kazu@hxi.com>
10719 * rtlanal.c (subreg_regno_offset): Do not use
10720 SUBREG_REGNO_OFFSET.
10721 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
10722 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
10724 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10726 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
10727 version rather than GNATS version in --version output.
10729 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
10731 * ifcvt.c (noce_process_if_block): Make a copy of the destination
10732 when copying back from a temporary.
10734 2002-01-30 Richard Henderson <rth@redhat.com>
10736 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
10737 and new_dest are the same.
10739 2002-01-30 Richard Henderson <rth@redhat.com>
10742 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
10743 * rtl.c (note_insn_name): Update.
10744 * emit-rtl.c (remove_unnecessary_notes): Kill it.
10745 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
10746 to perform loop rotation.
10747 (expand_exit_loop_top_cond): New.
10748 * tree.h (expand_exit_loop_top_cond): Declare it.
10749 * c-semantics.c (genrtl_while_stmt): Use it.
10750 (genrtl_for_stmt): Likewise.
10752 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
10754 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
10755 arguments to 64-bit boundaries on 64-bit ABIs.
10757 2002-01-30 Steve Ellcey <sje@cup.hp.com>
10759 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
10761 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10763 * c-decl.c (grokdeclarator): Handle type being a typedef for an
10766 2002-01-30 David O'Brien <obrien@FreeBSD.org>
10768 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
10769 * config/sparc/sparc_bi.h: Remove file.
10770 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
10772 2002-01-30 Richard Henderson <rth@redhat.com>
10774 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
10776 2002-01-30 Zack Weinberg <zack@codesourcery.com>
10778 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
10780 2002-01-30 Jason Merrill <jason@redhat.com>
10782 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
10783 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
10784 (reg_save): Use DW_CFA_offset_extended_sf instead.
10786 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
10788 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10790 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
10793 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
10795 * rs6000.md ("*call_value_local32"): Remove constraints.
10796 ("*call_value_local64"): Same.
10797 ("*call_value_indirect_nonlocal_aix32"): Same.
10798 ("*call_value_nonlocal_aix32"): Same.
10799 ("*call_value_indirect_nonlocal_aix64"): Same.
10800 ("*call_value_nonlocal_aix64"): Same.
10801 ("*call_value_nonlocal_sysv"): Same.
10803 2002-01-29 Richard Henderson <rth@redhat.com>
10805 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
10807 2002-01-29 Richard Henderson <rth@redhat.com>
10809 * expr.c (force_operand): Ignore flag_pic for detecting pic
10811 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
10812 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
10813 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
10814 instead of open-coded loop.
10815 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
10816 be fixed when in use.
10818 2002-01-29 Richard Henderson <rth@redhat.com>
10820 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
10821 * sched-rgn.c (propagate_deps): Update them.
10822 * sched-deps.c (sched_analyze_insn): Update them. Flush the
10823 clobbers list when either gets too long.
10825 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10827 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
10828 and INDEX_REGS the same as GENERAL_REGS.
10829 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
10831 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
10833 * tree.c (build_nonstandard_integer_type): Correct prototype.
10835 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
10837 * config/s390/s390.md (movstrsico, movstrdix_64,
10838 movstrsix_31): Remove, replace by ...
10839 (movstrdi_short, movstrsi_short, movstrdi_long,
10840 movstrsi_long): ... these. New.
10841 (movstrdi, movstrsi): Adapt.
10843 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
10844 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
10845 Remove unnecessary CC clobber.
10846 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
10847 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
10849 (divmoddi4): Don't partially initialize TImode register.
10851 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
10853 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
10855 2002-01-29 Richard Henderson <rth@redhat.com>
10857 * flow.c (print_rtl_and_abort): Remove.
10858 (print_rtl_and_abort_fcn): Remove.
10859 (verify_local_live_at_start): Use dump_bb instead.
10860 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
10861 (verify_wide_reg_1): Return 2 on mode test failure.
10863 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
10865 PR c/3325, c/3326, c/2511, c/3347
10866 * c-decl.c (enum_decl_context): Remove BITFIELD.
10867 (grokdeclarator): Take bitfield width as an input.
10868 Ensure bitfields are given the correct type. Perform
10869 bitfield width validation with build_bitfield_integer_type
10870 rather than waiting for finish_struct.
10871 (grok_typename, grok_typename_in_parm_context, start_decl,
10872 push_parmdecl, grokfield, start_function): Update calls to
10874 (build_bitfield_integer_type): New function.
10875 (finish_struct): Move bitfield validation to grokdeclarator
10876 and build_bitfield_integer_type.
10877 * tree.c (build_nonstandard_integer_type): New function.
10878 * tree.h (build_nonstandard_integer_type): New prototype.
10880 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
10882 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10885 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
10886 don't ignore unrecognized -W* options.
10887 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
10888 * cpplib.h (cpp_handle_option): Adjust prototype.
10889 * c-decl.c (c_decode_options): Pass 0 as last argument to
10893 * gcc.c (cpp_unique_options): Split from cpp_options.
10894 (cpp_options): Source cpp_unique_options.
10895 (default_compilers): Use cpp_unique_options instead of cpp_options
10896 when used together with cc1_options.
10897 (static_specs): Add cpp_unique_options.
10898 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
10899 when used together with cc1_options.
10901 2002-01-29 Kazu Hirata <kazu@hxi.com>
10903 * config/h8300/h8300-protos.h: Update the prototype of
10905 * config/h8300/h8300.c (output_a_shift): Remove an unused
10906 argument 'insn'. Remove redundant code.
10907 * config/h8300/h8300.md: Adust to the new prototype of
10910 2002-01-29 Kazu Hirata <kazu@hxi.com>
10912 * config/h8300/h8300-protos.h: Update the prototypes of
10913 emit_a_rotate and expand_a_rotate.
10914 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
10915 first argument to 'enum rtx_code'.
10916 (expand_a_rotate): Likewise.
10918 2002-01-28 Kazu Hirata <kazu@hxi.com>
10920 * config/h8300/h8300-protos.h: Update the prototype of
10922 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
10924 * config/h8300/h8300.md: Adjust to the new prototype.
10926 2002-01-28 Kazu Hirata <kazu@hxi.com>
10928 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
10931 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10933 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
10934 is a fixed register before returning pic_offset_table_rtx.
10935 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
10936 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
10938 2002-01-28 Jason Merrill <jason@redhat.com>
10940 * dwarf2.h: Sync with src version.
10942 2002-01-28 Paul Koning <pkoning@equallogic.com>
10944 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
10945 BT_FN_VOID_PTR_VAR.
10946 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
10947 * doc/extend.texi (__builtin_prefetch): Update documentation:
10948 first argument is now const void ptr.
10950 2002-01-28 Kazu Hirata <kazu@hxi.com>
10952 * config/h8300/h8300-protos.h: Remove an unused prototype.
10954 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
10956 * toplev.c (lang_independent_init): Round up identifier size.
10958 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10960 * config.gcc: Revert previous change.
10962 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
10964 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10966 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10968 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
10969 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
10970 other non-elf netbsd config frags.
10971 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
10972 collect2 will does that.
10973 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
10974 shared-lib frobbing will work.
10976 2002-01-28 Kazu Hirata <kazu@hxi.com>
10978 * config/h8300/h8300.h: Fix formatting.
10979 * config/h8300/h8300.md: Likewise.
10981 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
10983 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10984 the old, removed AAA_standards fix.
10985 * fixinc/fixincl.x: Rebuilt.
10987 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
10989 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10990 atexit call in crtbegin, hooked in after call to frame_dummy;
10991 register EH before registering __fini__start.
10993 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
10995 * config/rs6000/altivec.h: Remove spurious semicolons.
10997 2002-01-27 Kazu Hirata <kazu@hxi.com>
10999 * config/h8300/h8300.md: Replace dead bit extraction patterns
11000 with ones that work.
11002 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11004 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11005 if not STRICT_ALIGNMENT.
11006 * rtl.h (MEM_ALIGN): Likewise.
11008 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
11010 * doc/invoke.texi (-fdump-translation-unit): Revert this
11011 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
11013 2002-01-27 Kazu Hirata <kazu@hxi.com>
11015 * config/h8300/h8300.md (define_constants): New.
11016 (anonymous patterns) Use defined constants appropriately.
11018 2002-01-27 Kazu Hirata <kazu@hxi.com>
11020 * config/h8300/h8300.c (function_arg): Remove redundant code.
11022 2002-01-26 Richard Henderson <rth@redhat.com>
11024 * sched-deps.c (reg_pending_uses_head): New.
11025 (reg_pending_barrier): Rename from reg_pending_sets_all.
11026 (find_insn_list): Don't mark inline.
11027 (find_insn_mem_list): Remove.
11028 (add_dependence_list, add_dependence_list_and_free): New.
11029 (flush_pending_lists): Replace only_write param with separate
11030 for_read and for_write parameters. Update all callers. Use
11031 add_dependence_list_and_free.
11032 (sched_analyze_1): Do not add reg dependencies here; just set
11033 the pending bits. Use add_dependence_list.
11034 (sched_analyze_2): Likewise.
11035 (sched_analyze_insn): Replace schedule_barrier_found with
11036 reg_pending_barrier. Add all dependencies for pending reg
11037 uses, sets, and clobbers.
11038 (sched_analyze): Don't add reg dependencies for calls, just
11039 set pending bits. Use regs_invalidated_by_call. Treat
11040 sched_before_next_call as a normal list, not a fake insn.
11041 (init_deps): No funny init for sched_before_next_call.
11042 (free_deps): Free pending mems lists. Don't zero reg_last.
11043 (init_deps_global): Init reg_pending_uses.
11044 (finish_deps_global): Free it.
11045 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
11046 (find_insn_mem_list): Remove.
11047 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
11048 (propagate_deps): Use them. Zero temp mem lists.
11050 2002-01-26 Richard Henderson <rth@redhat.com>
11052 * Makefile.in (CRTSTUFF_CFLAGS): New.
11053 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11054 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11055 crtstuff.c instead of alpha assembly version.
11056 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11057 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
11058 not FORCE_{INIT,FINI}_SECTION_ALIGN.
11059 (__do_global_dtors_aux): Mark used.
11060 (frame_dummy, __do_global_ctors_aux): Mark used.
11061 (fini_dummy, init_dummy): Remove.
11063 * config/alpha/crtbegin.asm: Remove file.
11064 * config/alpha/crtend.asm: Remove file.
11065 * config/alpha/t-crtbe: Remove file.
11066 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11067 (LINK_EH_SPEC): New.
11069 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11070 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
11071 calling constructors.
11072 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11074 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11075 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11076 CRT_END_INIT_DUMMY hack.
11077 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11078 FORCE_{INIT,FINI}_SECTION_ALIGN.
11080 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11081 FORCE_{INIT,FINI}_SECTION_ALIGN.
11083 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11084 invocation sequence.
11085 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11087 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11088 (FORCE_CODE_SECTION_ALIGN): New.
11090 2002-01-26 Richard Henderson <rth@redhat.com>
11092 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11094 2002-01-26 Richard Henderson <rth@redhat.com>
11096 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11097 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11099 2002-01-26 Kazu Hirata <kazu@hxi.com>
11101 * config/h8300/h8300.md: Remove bit extraction patterns that
11102 cannot be triggered.
11103 Restrict each bit extraction pattern to a variant on which the
11106 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11108 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11110 2002-01-26 Kazu Hirata <kazu@hxi.com>
11112 * config/h8300/h8300.md: Remove bit test patterns that cannot
11114 Restrict each bit test pattern to a variant on which the
11117 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11119 * builtins.c (expand_builtin_strncat): Remove redundant check for
11122 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11124 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11126 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11129 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11131 * dbxout.c (dbxout_init): Use assemble_name rather than just
11132 stripping off the first character.
11133 (dbxout_source_file): Likewise.
11135 2002-01-25 DJ Delorie <dj@redhat.com>
11137 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11138 using rtx_equal_p, not by comparing pointers.
11140 2002-01-25 Steve Ellcey <sje@cup.hp.com>
11142 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11143 for PIC_OFFSET_TABLE_REGNUM.
11144 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11146 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11148 * config.gcc (x86_64-*-freebsd*): New target.
11149 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11151 (i[34567]86-*-freebsd*): Don't include svr4.h.
11152 * config/i386/freebsd64.h: New file.
11154 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11156 * config/alpha/x-vms (version): Make static.
11158 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11159 in previous checkin.
11161 * Makefile.in (install-headers-cp): New target.
11162 * config.gcc (alpha-dec-*vms*): Install headers with
11165 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11167 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11170 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11172 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11173 of compare_tree_int.
11174 (expand_builtin_strncat): Likewise.
11175 * c-decl.c (finish_struct): Use tree_low_cst.
11176 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11177 * tree.c (compare_tree_int): Likewise.
11179 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11181 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11182 adjustments even if they are implemented by more than two insns.
11184 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
11186 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11187 * df.h (struct ref): Kill B.
11188 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11190 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11191 * flow.c (propagate_one_insn): Use it.
11192 (mark_used_regs): Handle NIL.
11194 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11196 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11199 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11201 * rs6000.md (prefetch): Make address V4SI mode so that the address
11202 is restricted to legitimate form for instruction.
11204 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11206 * doc/install.texi (xtensa-*-elf): New target.
11207 (xtensa-*-linux*): New target.
11208 * doc/contrib.texi: Add myself.
11210 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11212 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11213 purpose register to hold an SImode (or smaller) value.
11215 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11217 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11219 * crtstuff.c: Likewise.
11221 2002-01-25 Kazu Hirata <kazu@hxi.com>
11223 * config/h8300/h8300.md (negation patterns): Tighten
11224 predicates to register_operand.
11226 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11228 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11231 * builtins.c (expand_builtin_prefetch): Same.
11233 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11235 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11238 2002-01-24 Kazu Hirata <kazu@hxi.com>
11240 * config/h8300/h8300.c (print_operand): Remove support for
11241 operand character 'A'.
11242 * config/h8300/h8300.md (three anonymous patterns): Replace
11243 operand character 'A' with either 'T' or 'S'.
11245 2002-01-24 Kazu Hirata <kazu@hxi.com>
11247 * config/h8300/h8300.c (print_operand): Remove support for
11248 operand character 'U'.
11250 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11252 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11254 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
11256 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
11257 values to be assigned to the stack pointer.
11259 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11261 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
11262 to const_double needs to be done right for big-endian systems.
11264 2002-01-24 Jason Merrill <jason@redhat.com>
11267 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
11268 to can_throw_internal.
11270 2002-01-23 Richard Henderson <rth@redhat.com>
11272 * fold-const.c (fold): Change UINT_MAX test to check vs precision
11273 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
11275 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11277 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
11278 (symGOT2reg): Use them, then set as GOT value as unchanging.
11279 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
11280 as a temporary, if possible.
11281 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
11282 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
11284 2002-01-23 Kazu Hirata <kazu@hxi.com>
11286 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
11287 accept to accept 0x80 as operands[2].
11289 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11291 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
11293 2002-01-23 Richard Henderson <rth@redhat.com>
11295 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
11297 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
11299 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
11300 (parmlist_or_identifiers_1): Verify that only a parmlist follows
11303 2002-01-23 Richard Henderson <rth@redhat.com>
11305 * expr.c (move_by_pieces_1): Extend size before negation.
11307 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
11308 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
11309 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
11310 * config/m68k/t-m68kelf: Likewise.
11312 2002-01-23 Bob Wilson <bob.wilson@acm.org>
11314 * config/xtensa/elf.h: New file.
11315 * config/xtensa/lib1funcs.asm: New file.
11316 * config/xtensa/lib2funcs.S: New file.
11317 * config/xtensa/linux.h: New file.
11318 * config/xtensa/t-xtensa: New file.
11319 * config/xtensa/xtensa-config.h: New file.
11320 * config/xtensa/xtensa-protos.h: New file.
11321 * config/xtensa/xtensa.c: New file.
11322 * config/xtensa/xtensa.h: New file.
11323 * config/xtensa/xtensa.md: New file.
11324 * config.gcc (xtensa-*-elf*): New target.
11325 (xtensa-*-linux*): New target.
11326 * cse.c (canon_hash): Compare rtx pointers instead of register
11327 numbers. This is required for the Xtensa port.
11328 * integrate.c (copy_insn_list): Handle case where the static
11329 chain is in memory and the memory address has to be copied to
11331 * doc/invoke.texi (Option Summary): Add Xtensa options.
11332 (Xtensa Options): New node.
11333 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
11335 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11337 * diagnostic.c (internal_error): Do ICE suppression only
11338 when ENABLE_CHECKING is not defined.
11340 * c-typeck.c (require_complete_type): Return error_mark_node
11341 if type is error_mark_node.
11343 2002-01-23 Janis Johnson <janis187@us.ibm.com>
11345 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
11346 -Os and issue a warning.
11348 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11350 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
11351 current (lack of) need for host configuration by hand.
11353 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
11354 references. Documentation of some target macros moved from
11355 hostconfig.texi to tm.texi.
11357 2002-01-23 Will Cohen <wcohen@redhat.com>
11359 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
11362 2002-01-23 Kazu Hirata <kazu@hxi.com>
11364 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
11367 2002-01-23 Jason Merrill <jason@redhat.com>
11369 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
11371 * function.c (assign_parms): Don't put args of inline functions
11372 into registers when not optimizing.
11374 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
11376 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
11377 (prologue_use): New pattern.
11378 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
11379 preference to gen_rtx_USE.
11380 (thumb_expand_prologue): Use gen_prologue_use in preference to
11382 (thumb_expand_epilogue): Use gen_prologue_use in preference to
11385 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
11387 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
11389 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
11392 * doc/extend.texi: Correct documentation of __alignof__.
11394 2002-01-22 Zack Weinberg <zack@codesourcery.com>
11396 * params.h: Rename arguments of DEFPARAM so that it will be
11397 recognized as a translation keyword.
11399 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11401 * extend.texi: Document altivec functions.
11402 Fix N-bit adjectives in X86 builtin documentation.
11404 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11406 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
11407 auto_inc_dec values.
11409 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
11411 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
11413 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
11415 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11417 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
11419 2002-01-22 Richard Henderson <rth@redhat.com>
11421 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
11422 copy_insn not copy_rtx.
11424 2002-01-23 Alan Modra <amodra@bigpond.net.au>
11426 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
11427 "nonzero" as that might add "1" bits. Ensure "constop" is
11428 properly sign extened.
11429 (force_to_mode): Tweak for sign extended constop.
11431 2002-01-22 Richard Henderson <rth@redhat.com>
11433 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
11434 for_each_rtx instead of assuming we're already looking at the MEM.
11435 (split_small_symbolic_mem_operand): Likewise.
11436 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11437 * config/alpha/alpha.md (small symbolic memory splitters): Update.
11439 2002-01-22 Richard Henderson <rth@redhat.com>
11441 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
11442 sequence number for the literal.
11443 (divmoddi_internal_er): Likewise.
11445 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11448 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
11449 in LIBICONV variable.
11450 * configure: Regenerated.
11452 2002-01-22 Krister Walfridsson <cato@df.lth.se>
11454 * dependence.c (build_def_use): Remove array_idx.
11456 * dwarfout.c (last_filename): Remove.
11457 (output_compile_unit_die): Remove last_filename.
11459 2002-01-22 Roger Sayle <roger@eyesopen.com>
11460 Richard Henderson <rth@redhat.com>
11463 * fold-const.c (fold): Optimize unsigned comparisons against
11464 UINT_MAX (and similar unsigned constants).
11466 2002-01-22 Janis Johnson <janis187@us.ibm.com>
11468 * Makefile.in (loop.o): Depend on OPTABS_H.
11469 * loop.c (emit_prefetch_instructions): Check the prefetch operand
11470 against the predicate.
11473 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
11474 for the address operand.
11476 2002-01-22 Richard Henderson <rth@redhat.com>
11478 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
11480 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11483 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
11484 preprocessor flags.
11486 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
11488 * config.gcc (x86_64-*-netbsd*): New target.
11489 * config/i386/netbsd64.h: New file.
11491 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11493 * regrename.c (kill_value): Fix typo.
11495 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11497 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
11499 * config/rs6000/rs6000.h: Same.
11501 * function.c (instantiate_virtual_regs): Remove
11502 STARTING_FRAME_PHASE.
11503 (assign_stack_local_1): Same.
11504 Calculate frame phase.
11506 2002-01-22 Nick Clifton <nickc@redhat.com>
11508 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
11509 variable declaration to outer scope in order to simplify
11511 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
11512 arm_hard_regno_mode_ok.
11513 * config/arm/arm-protos.h: Add a prototype for
11514 arm_hard_regno_mode_ok.
11515 * config/arm/arm.c (soft_df_operand): Remove now redundant
11516 check for DImode values using IP_REGNUM.
11517 (nonimmediate_soft_df_operand): Remove now redundant check for
11518 DImode values using IP_REGNUM.
11519 (arm_hard_regno_mode_ok): New function. New check: make sure
11520 that DImode values are not stored in IP_REGNUM.
11522 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
11524 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
11526 2002-01-22 Jason Merrill <jason@redhat.com>
11528 * c-semantics.c (genrtl_compound_stmt): Only check nesting
11529 consistency if this COMPOUND_STMT is scoped.
11531 2002-01-22 Kazu Hirata <kazu@hxi.com>
11533 * predict.c: Fix formatting.
11534 * print-tree.c: Likewise.
11535 * protoize.c: Likewise.
11536 * real.h: Likewise.
11538 * sbitmap.h: Likewise.
11539 * scan.c: Likewise.
11540 * sched-deps.c: Likewise.
11541 * sched-vis.c: Likewise.
11542 * sdbout.c: Likewise.
11543 * sibcall.c: Likewise.
11545 * ssa-ccp.c: Likewise.
11546 * ssa-dce.c: Likewise.
11547 * stmt.c: Likewise.
11548 * stor-layout.c: Likewise.
11549 * system.h: Likewise.
11551 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11553 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
11554 if fits in bounds of base type.
11556 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
11557 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
11558 (add_bound_info, default): If can't find a context, make a
11560 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
11562 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
11564 * c-typeck.c (parser_build_binary_op): If result from
11565 build_binary_op is ERROR_MARK just return error_mark_node without
11566 further processing.
11568 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
11570 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
11571 Split a.out-specific bits into...
11572 * config/netbsd-aout.h: ...this.
11573 * config/netbsd-elf.h: New file.
11574 * config/alpha/netbsd-elf.h: Remove.
11575 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
11576 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
11577 (STARTFILE_SPEC): Remove redundant definition.
11578 (ENDFILE_SPEC): Likewise.
11579 (LINK_SPEC): Likewise.
11580 (CPP_SPEC): Likewise.
11581 (ASM_SPEC): Likewise.
11582 (LIB_SPEC): Likewise.
11583 (SWITCH_TAKES_ARG): Likewise.
11584 (TARGET_MEM_FUNCTIONS): Likewise.
11585 (CPP_PREDEFINES): Redefine.
11586 (ASM_FINAL_SPEC): Remove redefinition.
11587 (ASM_COMMENT_START): Redefine.
11588 (FUNCTION_PROFILER): Define.
11589 (TARGET_VERSION): Redefine.
11590 Comment and formatting cleanup.
11591 * config/i386/netbsd.h: Include <netbsd-aout.h>.
11592 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
11593 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
11594 big- or little-endian.
11595 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
11596 * config.gcc (*-*-netbsd*): Add definitions common to all
11598 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
11599 gnu_ld definitions. Add netbsd-elf.h to and remove
11600 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
11601 tmake_file, and don't lose previous tmake_file contents.
11602 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
11603 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
11604 gnu_ld definitions. Add netbsd-elf.h to tm_file.
11605 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
11606 (mipsel-*-netbsd*): Rename this to...
11607 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
11608 mips/little.h to tm_file for mips*el-*.
11609 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
11610 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
11611 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
11613 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
11615 * pa-protos.h (reg_before_reload_operand): New function prototype.
11616 * pa.c (reg_before_reload_operand): New function implementation.
11617 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
11618 contraints to "*m".
11620 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11622 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
11624 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
11626 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
11627 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
11628 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
11629 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
11630 (ENDFILE_SPEC): Undefine.
11631 (STARTFILE_SPEC): Redefine for PA.
11633 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11635 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
11637 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
11639 * config.gcc: Add entries to supported PowerPC --with-cpu
11642 2002-01-21 Jakub Jelinek <jakub@redhat.com>
11644 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
11645 true for 64-bit mode only SSE registers in 32-bit mode.
11647 2002-01-21 Kazu Hirata <kazu@hxi.com>
11649 * unwind-dw2.c: Fix formatting.
11650 * unwind-dw2-fde.c: Likewise.
11651 * unwind-dw2-fde.h: Likewise.
11652 * unwind-pe.h: Likewise.
11653 * varasm.c: Likewise.
11654 * varray.h: Likewise.
11656 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
11658 Remove workaround for register stack overwrite bug in mmix.
11659 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
11660 support for TARGET_REG_STACK_FILL_BUG.
11661 * config/mmix/mmix.h: Remove member has_call_without_parameters.
11662 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
11664 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
11665 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
11666 -mno-reg-stack-fill-bug-workaround.
11667 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
11668 machine member has_call_without_parameters.
11669 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
11670 -mreg-stack-fill-bug-workaround and
11671 -mno-reg-stack-fill-bug-workaround.
11672 (MMIX Options): Ditto.
11674 2002-01-21 Kazu Hirata <kazu@hxi.com>
11676 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
11678 Remove redundant code.
11680 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
11682 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
11683 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11684 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11685 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
11686 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
11687 out target macro definitions and non-target-specific comments
11688 mostly taken from old versions of the manual.
11690 2002-01-20 Kazu Hirata <kazu@hxi.com>
11692 * config/h8300/h8300.h: Fix comment formatting.
11693 * config/ia64/aix.h: Likewise.
11694 * config/ia64/ia64-protos.h: Likewise.
11695 * config/ia64/ia64.c: Likewise.
11696 * config/ia64/ia64.h: Likewise.
11697 * config/ia64/ia64intrin.h: Likewise.
11698 * config/ia64/linux.h: Likewise.
11699 * config/ia64/unwind-aix.c: Likewise.
11700 * config/ia64/unwind-ia64.c: Likewise.
11702 2002-01-20 Kazu Hirata <kazu@hxi.com>
11704 * config/h8300/h8300.c: Revise comments about shift code.
11706 2002-01-20 Kazu Hirata <kazu@hxi.com>
11708 * config/h8300/h8300.c (function_arg): Update a comment.
11710 2002-01-20 Kazu Hirata <kazu@hxi.com>
11712 * config/h8300/h8300.md: Update the comments at the beginning
11715 2002-01-20 Kazu Hirata <kazu@hxi.com>
11717 * config/i370/i370.c: Fix comment formatting.
11718 * config/i370/i370.h: Likewise.
11719 * config/i370/i370.md: Likewise.
11720 * config/i370/linux.h: Likewise.
11722 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11724 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
11726 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
11727 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
11728 in incomplete case.
11730 2002-01-20 Graham Stott <grahams@redhat.com>
11732 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
11734 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
11736 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
11738 2002-01-19 Tom Rix <trix@redhat.com>
11740 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
11742 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
11744 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
11746 * function.c (assign_stack_local_1): Adjust x_frame_offset with
11747 STARTING_FRAME_PHASE.
11748 (STARTING_FRAME_PHASE): New.
11749 (instantiate_virtual_regs): Check saneness of
11750 STARTING_FRAME_PHASE.
11752 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
11754 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
11756 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
11758 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
11760 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
11761 be used for bootstrapping GCC 3.0.
11763 2002-01-18 Kazu Hirata <kazu@hxi.com>
11765 * config/h8300/h8300.md: Fix an insn length.
11767 2002-01-18 Kazu Hirata <kazu@hxi.com>
11769 * bitmap.h: Fix comment formatting.
11770 * combine.c: Likewise.
11771 * cppfiles.c: Likewise.
11772 * c-pragma.h: Likewise.
11773 * c-typeck.c: Likewise.
11775 * dwarf2out.c: Likewise.
11776 * function.c: Likewise.
11778 * genattrtab.c: Likewise.
11779 * gthr-win32.h: Likewise.
11780 * haifa-sched.c: Likewise.
11781 * predict.c: Likewise.
11782 * rtlanal.c: Likewise.
11784 * unwind-dw2-fde.h: Likewise.
11785 * unwind-pe.h: Likewise.
11786 * vmsdbgout.c: Likewise.
11788 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11790 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
11791 if type_required and passed decl.
11793 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
11795 * config.gcc (cpu_type): Include altivec.h in powerpc
11799 * config/rs6000/altivec.h: New.
11801 2002-01-17 David Edelsohn <edelsohn@gnu.org>
11803 * doc/install.texi (*-ibm-aix*): Update assembler and exception
11804 handling information.
11805 * doc/trouble.texi (Interoperation): Add libstdc++ information
11807 (Misunderstandings): Add template instantiation and static template
11808 member information for AIX.
11810 2002-01-17 Jason Merrill <jason@redhat.com>
11812 * dbxout.c (dbxout_type): Support const and volatile.
11814 * except.c (add_partial_entry): Remove backwards compatibility code.
11815 (end_protect_partials): Likewise.
11817 2002-01-17 Jakub Jelinek <jakub@redhat.com>
11819 * config/ia64/ia64.md (prologue_use): New.
11820 * config/ia64/ia64.c (ia64_expand_prologue): Use
11821 gen_prologue_use instead of gen_rtx_USE.
11822 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
11823 as CODE_FOR_pred_rel_mutex.
11824 (ia64_sched_reorder2): Likewise.
11826 2002-01-16 Eric Christopher <echristo@redhat.com>
11828 * config/mips/r3900.h: Reformat.
11829 (SUBTARGET_CPP_SIZE_SPEC): Remove.
11830 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
11831 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
11832 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
11833 * config/mips/t-elf: Remove mips3 multilib.
11835 2002-01-16 H.J. Lu <hjl@gnu.org>
11837 * config/mips/linux.h: Include "mips/abi64.h".
11839 2002-01-16 H.J. Lu <hjl@gnu.org>
11841 * config/mips/t-linux: New.
11843 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
11845 * config/mips/linux.h: Don't include "gofast.h".
11846 (INIT_SUBTARGET_OPTABS): Removed.
11848 2002-01-16 Kazu Hirata <kazu@hxi.com>
11850 * config/h8300/h8300-protos.h: Replace emit_a_shift with
11852 * config/h8300/h8300.c: Likewise.
11853 * config/h8300/h8300.md: Likewise.
11855 2002-01-16 Kazu Hirata <kazu@hxi.com>
11857 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
11858 spaces after an opcode name.
11859 (pushqi1_h8300hs): Likewise.
11860 (pushhi1_h8300hs): Likewise.
11862 2002-01-16 Kazu Hirata <kazu@hxi.com>
11864 * doc/extend.texi: Replace "option" with "attribute"
11867 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11869 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
11870 (and:DI () (const_int -8)).
11871 (split_small_symbolic_mem_operand): Split
11872 (mem (and:DI () (const_int -8)).
11874 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11877 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
11878 same way as TYPE_IMUL.
11879 (ultrasparc_sched_reorder): Likewise.
11880 * config/sparc/sparc.md (type): Add comment to update
11881 ultrasparc_sched_reorder when making changes.
11883 2002-01-16 Kazu Hirata <kazu@hxi.com>
11885 * doc/invoke.texi: Change the dump file name of block
11886 reordering pass from 28.bbro to 29.bbro.
11887 Mention -dk option.
11889 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
11891 * i386.md (minsf splitter): Fix pasto.
11893 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
11895 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
11896 to frame pointer initialisation instruction.
11897 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
11898 initialisation instruction.
11899 (soft_df_operand): Do not accept the IP register.
11900 (nonimmediate_soft_df_operand): Do not accept the IP register.
11902 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11905 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
11906 MASK_V8 being both set.
11908 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
11910 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
11911 insn for GOT register; add REG_MAYBE_DEAD notes instead.
11912 config/s390/s390.md (call, call_value): Add GOT register to
11913 CALL_INSN_FUNCTION_USAGE where needed.
11914 (call_exp, call_value_exp): New.
11916 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
11918 * config/arm/arm.c: General formatting tidy up.
11920 2002-01-16 Graham Stott <grahams@redhat.com>
11922 * calls.c (try_to_integrate): Use "(size_t)" intermediate
11923 cast and when casting an integer literal to "rtx" pointer.
11924 (expand_call): Likewise.
11925 * flow.c (try_pre_increment): Likewise.
11926 (find_use_as_address): Likewise.
11927 * integrate.c (expand_iline_function): Likewise.
11928 * regmove.c (try_auto_increment): Likewise.
11930 2002-01-16 Graham Stott <grahams@redhat.com>
11932 * sched-rgn.c (passed): Use sbitmap_free.
11933 (header): Likewise.
11935 (in_queue): Likewise.
11936 (in_stack): Likewise.
11938 2002-01-15 Eric Christopher <echristo@redhat.com>
11940 * flow.c (propagate_one_insn): Change to use fatal_insn.
11942 2002-01-15 Kazu Hirata <kazu@hxi.com>
11944 * expmed.c (extract_fixed_bit_field): Remove unused code.
11945 * system.h: Poison SLOW_ZERO_EXTEND.
11946 * doc/tm.texi: Remove.
11947 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
11948 * config/arm/arm.h: Likewise.
11949 * config/avr/avr.h: Likewise.
11950 * config/clipper/clipper.h: Likewise.
11951 * config/convex/convex.h: Likewise.
11952 * config/d30v/d30v.h: Likewise.
11953 * config/dsp16xx/dsp16xx.h: Likewise.
11954 * config/elxsi/elxsi.h: Likewise.
11955 * config/fr30/fr30.h: Likewise.
11956 * config/h8300/h8300.h: Likewise.
11957 * config/i370/i370.h: Likewise.
11958 * config/i386/i386.h: Likewise.
11959 * config/m68k/m68k.h: Likewise.
11960 * config/mips/mips.h: Likewise.
11961 * config/ns32k/ns32k.h: Likewise.
11962 * config/pdp11/pdp11.h: Likewise.
11963 * config/pj/pj.h: Likewise.
11964 * config/s390/s390.h: Likewise.
11965 * config/sh/sh.h: Likewise.
11966 * config/stormy16/stormy16.h: Likewise.
11967 * config/v850/v850.h: Likewise.
11968 * config/vax/vax.h: Likewise.
11969 * config/we32k/we32k.h: Likewise.
11971 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11973 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
11974 (altivec_lvsl): Change constraint to b.
11975 (altivec_lvsr): Same.
11976 (altivec_lvebx): Same.
11977 (altivec_lvehx): Same.
11978 (altivec_lvewx): Same.
11979 (altivec_lvxl): Same.
11980 (altivec_lvx): Same.
11981 (altivec_stvx): Add parallel.
11982 (altivec_stvxl): Same.
11983 (altivec_stvehx): Same.
11984 (altivec_stvebx): Same.
11985 (altivec_stvebx): Same.
11987 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11989 * config.gcc: Change altivec.h to altivec-defs.h.
11991 * config/rs6000/altivec.h: Delete.
11993 * config/rs6000/altivec-defs.h: Add.
11995 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11997 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12000 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12001 less than or equal to eight bytes.
12003 * vax.md (andsi3): Remove constraints and change SET destination
12004 operand type to nonimmediate_operand.
12005 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
12006 when it is a CONST_INT.
12008 2002-01-15 Jason Merrill <jason@redhat.com>
12010 * c-common.def (FILE_STMT): New code.
12011 * c-common.c (statement_code_p): It's a statement.
12012 * c-common.h (stmt_tree_s): Add x_last_filename.
12013 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12014 (last_expr_filename): New macro.
12015 * c-semantics.c (begin_stmt_tree): Initialize it.
12016 (add_stmt): If the filename changed, also insert a
12018 (expand_stmt): Handle seeing one.
12020 2002-01-15 Eric Christopher <echristo@redhat.com>
12022 * flow.c (propagate_one_insn): Add error message and print out
12023 insn for debugging.
12025 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12027 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12028 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12029 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12030 TRAMPOLINE_ALIGNMENT.
12031 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
12033 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12034 PCC_BITFIELD_TYPE_MATTERS.
12035 * config/interix.h (STDC_VALUE): Remove. Use
12036 STDC_0_IN_SYSTEM_HEADERS.
12037 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12038 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12039 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12041 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
12043 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12044 not work on this platform currently.
12046 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12048 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
12049 readonly_warning in _().
12051 2002-01-15 Douglas B Rupp <rupp@gnat.com>
12053 * gcc.c (delete_if_ordinary): Backout previous change.
12055 2002-01-15 Kazu Hirata <kazu@hxi.com>
12057 * config/h8300/h8300.c (print_operand): Remove support for
12058 unused operand characters.
12060 * read-rtl.c: Fix formatting.
12061 * real.c: Likewise.
12062 * recog.c: Likewise.
12063 * regclass.c: Likewise.
12064 * regmove.c: Likewise.
12065 * reg-stack.c: Likewise.
12066 * reload1.c: Likewise.
12067 * rtlanal.c: Likewise.
12069 2002-01-15 Kazu Hirata <kazu@hxi.com>
12071 * config/i386/i386.c: Fix formatting.
12073 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12075 * c-typeck.c (process_init_element): Don't save_expr
12076 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12078 2002-01-15 David Edelsohn <edelsohn@gnu.org>
12080 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12081 emit optional traceback table if optimize_size or TARGET_ELF.
12082 * config/rs6000/rs6000.md (prefetch): New.
12084 2002-01-15 Andreas Jaeger <aj@suse.de>
12086 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12088 2002-01-15 Kazu Hirata <kazu@hxi.com>
12090 * mips-tfile.c: Fix formatting.
12092 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12094 * unroll.c (final_reg_note_copy): Fix previous commit.
12096 2002-01-14 Kazu Hirata <kazu@hxi.com>
12098 * config/h8300/h8300-protos.h: Remove the prototype for
12100 * config/h8300/h8300.c (eq_operator): Remove.
12102 2002-01-14 Richard Henderson <rth@redhat.com>
12104 * config/i386/i386.md (prefetch): Tidy.
12105 (prefetch_3dnow): Fix locality operand.
12107 2002-01-14 Richard Henderson <rth@redhat.com>
12109 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12110 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12112 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12114 * reload1.c (reload_combine): Pass reg_sum replacement through
12115 copy_rtx in loop performing multiple changes.
12117 2002-01-14 Jakub Jelinek <jakub@redhat.com>
12119 * except.c (remove_unreachable_regions): New.
12120 (free_eh_status): Clear exception_handler_labels.
12121 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12122 (find_exception_handler_labels): Don't add the same label more than
12124 (remove_exception_handler_label): Don't die if
12125 find_exception_handler_labels hasn't been called for the current
12128 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12130 * toplev.c (rest_of_compilation): Rebuild jump labels after
12133 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12135 * doc/extend.texi: Move documentation of X86 built-in functions
12137 * doc/invoke.texi: From here.
12138 * doc/sourcebuild.texi: Document location of documentation for
12139 machine built-in functions.
12141 2002-01-13 Christopher Faylor <cgf@redhat.com>
12143 * cppfiles.c (TEST_THRESHOLD): New macro.
12144 (SHOULD_MMAP): Ditto.
12145 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12148 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12150 * unroll.c (final_reg_note_copy): Properly handle
12152 (unroll_loops): Fix LOOP_CONDITION heuristics.
12154 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12156 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12157 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12159 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12161 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12164 2002-01-14 Tom Rix <trix@redhat.com>
12166 * config/rs6000/rs6000.md: Fix typo with sradi.
12168 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
12170 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12171 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12172 (clrstrdi, clrstrsi): Adapt callers.
12174 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12176 (movti splitter): Never use register 0 as base register.
12178 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12180 * combine.c (simplify_shift_const): Always generate new rtx
12181 for shift expression instead of reusing given expression.
12183 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12185 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12186 alpha_legitimize_address unless mode is Pmode.
12188 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12190 * doc/md.texi (Modifiers): Document the '*' constraint for the
12193 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12194 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12197 2002-01-13 Richard Henderson <rth@redhat.com>
12199 * reload.c (find_reloads): Use a hard reg destination as reload reg
12200 for an input reload of the source.
12202 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12204 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12207 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12209 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12210 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12212 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12214 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12216 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12218 2002-01-12 Tom Rix <trix@redhat.com>
12220 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12223 2002-01-12 Richard Henderson <rth@redhat.com>
12225 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12227 * doc/invoke.texi: Update Alpha options.
12229 * doc/invoke.texi: Update i386 built-in function lists.
12231 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12233 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12234 referencing outside.
12236 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12238 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12239 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12240 offsets, and change line folding.
12241 * optabs.c (expand_binop): Remove warnings.
12242 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12244 2002-01-12 Graham Stott <grahams@redhat.com>
12246 * attribs.c (handle_deprecated_attribute): constify WHAT.
12247 * diagnostic.c (warn_deprecated_use): Add braces, fixes
12248 dangling else warning and constify WHAT.
12249 * except.h (struct function, struct inline_remap): Move
12250 struct tag forward defs before all prototypes.
12251 (duplicate_eh_regions): Whitespace.
12253 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
12255 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12256 MODE_BASE_REG_CLASS.
12257 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
12259 2002-01-12 Richard Henderson <rth@redhat.com>
12261 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
12262 (ix86_expand_vector_move): New.
12263 (bdesc_2arg): Remove andps, andnps, orps, xorps.
12264 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
12265 Remove old prefetch builtins. Special case the logicals removed above.
12266 (ix86_expand_builtin): Likewise.
12267 (safe_vector_operand): Use V4SFmode, not TImode.
12268 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
12269 (ix86_expand_timode_binop_builtin): New.
12270 * config/i386/i386-protos.h: Update.
12271 * config/i386/i386.h (enum ix86_builtins): Update.
12272 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
12273 Use ix86_expand_vector_move in vector move expanders.
12274 (movti_internal, movti_rex64): Add xorps alternative.
12275 (sse_clrv4sf): Rename and adjust from sse_clrti.
12276 (prefetch): Don't work so hard.
12277 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
12278 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
12279 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
12281 2002-01-11 Richard Henderson <rth@redhat.com>
12283 * config/i386/mmintrin.h: New file.
12284 * config/i386/xmmintrin.h: New file.
12285 * config.gcc (i?86-*-*): Add extra_headers.
12286 * simplify-rtx.c (simplify_unary_operation): Handle saturating
12288 (simplify_binary_operation): Handle saturating arithmetic codes.
12289 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
12290 not the lowpart subreg.
12291 (ix86_expand_builtin): Return a TImode dummy register instead of 0
12293 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
12295 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12297 * conflict.c (conflict_graph_compute): Free regsets when finished.
12298 * ssa.c (compute_coalesced_reg_partition): Likewise.
12300 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12302 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
12303 every where we allocate a register.
12305 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12307 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
12308 * lcm.c (compute_earliest, compute_farthest): Likewise.
12310 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12312 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
12314 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12316 * doc/rtl.texi (Insns): Fix 2 typos.
12318 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
12320 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
12321 options. Use @table @gcctabopt for MMIX options. Add index
12322 entries for MMIX options. Start new paragraph with first
12323 heading of the machine-dependent options.
12325 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
12328 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
12329 * combine.c (force_to_mode): Same.
12330 * reload1.c (clear_reload_reg_in_use): Same.
12332 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
12334 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
12337 2002-01-11 Andreas Jaeger <aj@suse.de>,
12338 Brad Lucier <lucier@math.purdue.edu>
12340 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
12343 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
12345 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
12346 Protect with IN_LIBGCC.
12347 (LINK_EH_SPEC): Add required trailing space.
12349 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
12351 * c-tree.h: Move function declarations so that they are listed
12352 under the filename which contains them.
12353 (check_identifier, finish_decl_top_level,
12354 lookup_name_current_level_global, shadow_record_fields): Remove.
12356 2002-01-11 Andreas Jaeger <aj@suse.de>
12358 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
12361 2002-01-10 Richard Henderson <rth@redhat.com>
12363 * config/alpha/alpha.c (print_operand): Add 'J'.
12364 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
12365 new operand with the sequence number for the lituse. When splitting
12366 the insns, use gen_movdi_er_high_g and generate a sequence number.
12367 (gen_movdi_er_high_g): Print the sequence number if non-zero.
12369 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
12371 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
12372 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
12374 (altivec_expand_builtin): Same.
12375 (altivec_expand_stv_builtin): New.
12377 * config/rs6000/rs6000.h (rs6000_builtins): Same.
12379 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
12380 ("altivec_lvehx"): New.
12381 ("altivec_lvewx"): New.
12382 ("altivec_lvxl"): New.
12383 ("altivec_lvx"): New.
12384 ("altivec_stvx"): New.
12385 ("altivec_stvebx"): New.
12386 ("altivec_stvehx"): New.
12387 ("altivec_stvewx"): New.
12388 ("altivec_stvxl"): New.
12390 2002-01-10 Richard Henderson <rth@redhat.com>
12392 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
12393 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
12394 care not to delete instructions twice.
12396 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12398 * toplev.c: Don't declare environ (it's not used anywhere).
12399 * configure.in: Don't check for declaration of environ.
12400 * config/i386/xm-mingw32.h: Don't #define environ.
12401 * config.in, configure: Regenerate.
12403 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12405 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
12406 * configure: Regenerate.
12408 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
12409 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
12410 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
12412 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
12413 LIMITS_H_TEST here, not in m68k/x-next.
12414 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
12415 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
12417 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
12418 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
12419 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
12421 * config/i386/x-djgpp: Renamed i386/t-djgpp.
12422 * config/m88k/x-dolph: Renamed m88k/t-dolph.
12423 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
12424 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
12425 replacement of quadlib.asm with quadlib.c.
12427 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
12428 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
12429 config/rs6000/xm-beos.h: Delete file.
12431 * config.gcc: Update to match above changes.
12433 2002-01-10 Kazu Hirata <kazu@hxi.com>
12435 * config/h8300/h8300.h: Fix comment typos.
12436 * config/h8300/h8300.md: Likewise.
12437 * config/h8300/lib1funcs.asm: Likewise.
12439 2002-01-10 Dale Johannesen <dalej@apple.com>
12441 PR optimization/5269
12442 * unroll.c (precondition_loop_p): Make *increment be the correct
12443 sign when n_iterations known, to avoid confusing caller.
12445 2002-01-10 Kazu Hirata <kazu@hxi.com>
12447 * doc/extend.texi (deprecated): Fix a typo.
12449 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
12451 * basic-block.h (update_br_prob_note): Declare.
12452 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
12453 (try_forward_edges): Care negative frequencies and update note.
12454 (outgoing_edges_match): Tweek conditional merging heuristics.
12455 (try_crossjump_to_edge): use update_br_prob_note.
12456 * cfglayout.c (fixup_reorder_chain): Likewise.
12457 * cfrtl.c (update_br_prob_note): New.
12458 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
12460 * i386.c (ix86_decompose_address): Return -1 if address contains
12462 (legitimate_address_p): Require ix86_decompose_address to return 1.
12464 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
12465 (cprop_insn): Likewise.
12467 2002-01-10 Kazu Hirata <kazu@hxi.com>
12469 * toplev.c: Fix formatting.
12470 * tree.c: Likewise.
12471 * tree-dump.c: Likewise.
12472 * unroll.c: Likewise.
12473 * unwind-dw2.c: Likewise.
12474 * unwind-dw2-fde.c: Likewise.
12475 * unwind-dw2-fde-glibc.c: Likewise.
12476 * unwind-sjlj.c: Likewise.
12478 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12480 * doc/invoke.texi: Document PDP-11 options.
12482 2002-01-10 Kazu Hirata <kazu@hxi.com>
12484 * config/h8300/h8300.h: Fix formatting.
12486 2002-01-10 Ira Ruben <ira@apple.com>
12488 Add __attribute__ ((deprecated)).
12489 * extend.texi: Document __attribute__ ((deprecated)).
12490 * invoke.texi: Document -Wno-deprecated-declarations.
12491 * testsuite/g++.dg/other/deprecated.C: New C++ test.
12492 * testsuite/gcc.dg/deprecated.c: New C test.
12493 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
12494 (c_common_attribute_table): Add "deprecated" entry.
12495 (handle_deprecated_attribute): New function.
12496 * c-decl.c (deprecated_states): New enum.
12497 deprecated_state: State of "deprecated" handling.
12498 (start_decl): Set deprecated_state based on attributes.
12499 (grokdeclarator): Test for deprecated uses, propagate attribute.
12500 * c-typeck.c (build_component_ref): Test for deprecated fields.
12501 (build_external_ref): Test for deprecated primaries.
12502 * diagnostic.c (warn_deprecated_use) New function to issue
12503 warnings about __attribute__ ((depricated)) references.
12504 * flags.h (warn_deprecated_decl): Extern declared for
12505 -W[no-]deprecated-declarations option.
12506 * print-tree.c (print_node): Show deprecated flag status.
12507 * toplev.c (warn_deprecated_decl): Defined.
12508 (W_options): Added "deprecated-declaration".
12509 * toplev.h (warn_deprecated_use): Extern declared.
12510 * tree.h (struct tree_common): Define deprecated_flag.
12511 (TREE_DEPRECATED): New macro to access flag.
12512 * cp/call.c (build_call): Test for deprecated calls.
12513 * cp/class.c (add_implicitly_declared_members): Set global
12514 flag to tell grokdeclarator to not issue deprecated warnings.
12515 * cp/cp-tree.h: Add extern for adding_implicit_members.
12516 * cp/decl.c (deprecated_states): New enum.
12517 (start_decl): Set deprecated_state based on attributes.
12518 (grokdeclarator): Test for deprecated uses, propagate attribute.
12519 * cp/lex.c (do_identifier): Test for deprecated primaries.
12520 * cp/typeck.c (build_component_ref): Test for deprecated fields.
12522 2002-01-10 Ira Ruben <ira@apple.com>
12524 Fix to assign attributes to inline member functions.
12525 * cp/decl.c (start_method): Handle attrlist.
12527 2002-01-10 Kazu Hirata <kazu@hxi.com>
12529 * combine.c (expand_field_assignment): Use subreg_lsb().
12531 2002-01-10 David Edelsohn <edelsohn@gnu.org>
12533 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
12534 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
12535 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
12536 Recurse for any operand of AND as long as constant is non-zero.
12538 2002-01-10 Kazu Hirata <kazu@hxi.com>
12540 * config/h8300/h8300.md: Remove constraints from expanders.
12542 2002-01-10 Kazu Hirata <kazu@hxi.com>
12544 * varasm.c: Fix formatting.
12545 * varray.c: Likewise.
12546 * vmsdbgout.c: Likewise.
12547 * xcoffout.c: Likewise.
12549 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
12551 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
12552 update edge probabilities to match.
12554 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12556 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
12558 * doc/languages.texi, doc/sourcebuild.texi: New files.
12559 * doc/configfiles.texi: Make a subsubsection. Update.
12560 * doc/configterms.texi: Add @node. Remove warning that this isn't
12561 instructions for building GCC.
12562 * doc/makefile.texi: Make a subsection.
12563 * doc/gccint.texi: Update.
12565 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
12567 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
12569 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
12571 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
12573 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
12575 * optabs.c (expand_fix): Look for wider integer modes first.
12577 * i386.md (mov?f): Avoid the fake const double trick for medium
12579 (min?f*/max?f*): Prohibit memory operands for i387 variant.
12580 (fop_df_4): Disable for SSE compilation.
12582 2002-01-10 Graham Stott <grahams@redhat.com>
12584 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
12585 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
12587 2002-01-10 Richard Henderson <rth@redhat.com>
12589 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
12591 2002-01-10 Richard Henderson <rth@redhat.com>
12593 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
12594 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
12596 2002-01-10 Kazu Hirata <kazu@hxi.com>
12598 * combine.c (can_combine_p): Fix a comment typo.
12600 2002-01-09 Zack Weinberg <zack@codesourcery.com>
12602 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
12603 empty list correctly. Change loop index $t to $f for
12604 consistency with rest of Makefile.
12606 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
12608 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
12609 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12611 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
12612 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
12613 (altivec_init_builtins): Same.
12614 (altivec_expand_unop_builtin): Return NULL_RTX on error.
12615 (altivec_expand_binop_builtin): Same.
12616 (altivec_expand_ternop_builtin): Same.
12619 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
12620 ("altivec_vctuxs"): Fix typo.
12621 ("altivec_vnmsubfp"): Same.
12622 ("altivec_dssall"): New.
12623 ("altivec_mfvscr"): New.
12624 ("altivec_dss"): New.
12625 ("altivec_lvsl"): New.
12626 ("altivec_lvsr"): New.
12627 ("altivec_dstt"): New.
12628 ("altivec_dstst"): New.
12629 ("altivec_dststt"): New.
12630 ("altivec_dst"): New.
12632 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
12633 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12635 2002-01-09 Richard Henderson <rth@redhat.com>
12637 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
12639 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
12641 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
12643 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
12645 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
12647 2002-01-09 Kazu Hirata <kazu@hxi.com>
12649 * read-rtl.c: Fix formatting.
12650 * real.c: Likewise.
12651 * regclass.c: Likewise.
12652 * regrename.c: Likewise.
12653 * reg-stack.c: Likewise.
12654 * reload1.c: Likewise.
12655 * reload.c: Likewise.
12658 2002-01-09 Kazu Hirata <kazu@hxi.com>
12660 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
12661 to extract items in the expr_list chain.
12663 2002-01-09 Richard Henderson <rth@redhat.com>
12665 * config/vax/vax.c (vax_rtx_cost): Never abort.
12667 * config/vax/vax.h (REAL_ARITHMETIC): Define.
12669 2002-01-09 Jan Hubicka <jh@suse.cz>
12671 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
12673 2002-01-09 Richard Henderson <rth@redhat.com>
12675 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
12676 Unify code from various alternatives.
12678 2002-01-09 Richard Henderson <rth@redhat.com>
12680 * regrename.c (copy_value): Ignore the copy if the source register
12681 is present in the value chain with a narrower mode.
12683 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12685 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
12686 for the c4x target. Also improve layout.
12688 2002-01-09 Richard Henderson <rth@redhat.com>
12690 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
12691 * config/m32r/m32r.md (and ior xor splitters): Swap operands
12692 to match insn patterns.
12694 2002-01-09 Richard Henderson <rth@redhat.com>
12696 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
12697 (copyprop_hardreg_forward_1): Likewise.
12699 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
12701 * pa.md (decrement_and_branch_until_zero): Change predicate for
12702 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
12704 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12706 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
12707 gets undefined. For Darwin.
12709 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12711 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
12713 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12715 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
12717 2002-01-08 Richard Henderson <rth@redhat.com>
12719 * regrename.c (copy_value): Ignore overlapping copies.
12721 2002-01-08 Richard Henderson <rth@redhat.com>
12723 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
12724 as needed to avoid shared structure.
12726 2002-01-08 Kazu Hirata <kazu@hxi.com>
12728 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
12731 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12733 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
12734 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
12735 documentation of obsolete macros.
12736 * system.h: Poison these macros.
12737 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
12738 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
12739 config/c4x/c4x.h, config/clipper/clipper.h,
12740 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
12741 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
12742 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
12743 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
12744 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12745 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
12746 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12747 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
12748 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
12749 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12750 config/sparc/sparc.h, config/stormy16/stormy16.h,
12751 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
12752 definitions and commented out definitions of obsolete macros.
12753 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
12754 of MAX_INT_TYPE_SIZE.
12756 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
12758 * config/s390/s390.c (s390_preferred_reload_class): Never
12759 return ADDR_REGS if it isn't a subset of the given class.
12760 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
12761 FP_REGS, but all superclasses as well.
12763 * config/s390/s390.c (s390_function_profiler): Fix thinko.
12765 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
12766 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
12767 must not be a const_int.
12769 2002-01-08 Richard Henderson <rth@redhat.com>
12771 * Makefile.in (toplev.o): Depend on options.h.
12772 (gcc.o): Depend on specs.h.
12774 2002-01-08 Jakub Jelinek <jakub@redhat.com>
12776 * expr.c (store_expr): Convert VOIDmode constants back to target's
12779 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12781 * doc/invoke.texi: Markup gcc as @command. Refer to
12782 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
12783 of http://gcc.gnu.org/thanks.html.
12785 2002-01-08 Dale Johannesen <dalej@apple.com>
12787 * config/rs6000/rs6000.md: Add missing int register
12788 target case to movdf_low.
12790 2002-01-08 Zack Weinberg <zack@codesourcery.com>
12792 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
12793 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
12794 (cppinit.o): Depend on except.h.
12795 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
12796 s-specs): New rules.
12798 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
12799 Don't create specs.h/options.h/gencheck.h here. Remove
12800 unnecessary variable settings from last argument of AC_OUTPUT.
12801 * config.in, configure: Regenerate.
12802 * intl.c: Hardcode package name as "gcc".
12804 * cppinit.c: Include except.h.
12805 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
12807 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
12808 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
12809 (!)USING_SJLJ_EXCEPTIONS.
12810 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
12812 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12814 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
12815 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
12816 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
12817 documentation of obsolete macros.
12818 * system.h: Poison these macros.
12819 * config/d30v/d30v.h, config/ns32k/encore.h,
12820 config/stormy16/stormy16.h: Remove definitions and commented out
12821 definitions of obsolete macros.
12823 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
12825 * objc/objc-act.c (handle_class_ref): Mark the declaration of
12826 %sobjc_class_ref_%s as used - to prevent unwanted compiler
12829 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
12831 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
12832 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
12833 to insn adjusting stack/frame pointer.
12834 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
12835 accept operands that cause the insn to be non-splittable.
12837 2002-01-08 Graham Stott <grahams@redhat.com>
12839 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
12840 (C_TYPE_FIELDS_VOLATILE): Likewise.
12841 (C_TYPE_BEING_DEFINED): Likewise.
12842 (C_IS_RESERVED_WORD): Likewise.
12843 (C_TYPE_VARIABLE_SIZE): Likewise.
12844 (C_DECL_VARIABLE_SIZE): Likewise.
12845 (C_MISSING_PROTOTYPE_WARNED): Likewise.
12846 (C_SET_EXP_ORIGINAL_CODE): Likewise.
12847 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
12849 (C_DECL_ANTICIPATED): Likewise.
12850 (c_build_type_variant): Add parenthesis.
12852 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12854 * gcc.c (option_map): Remove --version.
12855 (process_command): Handle -fversion following the GNU Coding
12856 Standards. Partially addresses PR other/704.
12858 2002-01-08 Graham Stott <grahams@redhat.com>
12860 * combine.c (combine_instructions): Fix typo.
12862 2002-01-08 Graham Stott <grahams@redhat.com>
12864 * debug.h: Use "tree" and "rtx" throughout.
12866 * debug.c: Likewise.
12868 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
12870 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
12871 constant pool, use the pool's version of the symbol instead.
12873 2002-01-07 Richard Henderson <rth@redhat.com>
12875 * regrename.c (find_oldest_value_reg): Ignore the value chain if
12876 the original register was copied in a mode with a fewer number of
12877 hard registers than the desired mode.
12878 (copyprop_hardreg_forward_1): Likewise.
12879 (debug_value_data): Fix loop test.
12880 * toplev.c (parse_options_and_default_flags): Reenable
12881 -fcprop-registers at -O1.
12883 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12885 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
12886 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
12888 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
12891 * config/rs6000/rs6000.md: Add altivec predicate patterns.
12893 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
12895 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
12896 (pa_output_function_prologue): Output local label at the beginning of
12897 the prologue when profiling.
12898 (hppa_profile_hook): Use the local label rather than the function label.
12899 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
12901 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12903 * config/rs6000/rs6000.c (print_operand): Remove extra space.
12904 (altivec_expand_unop_builtin): Fix thinko.
12905 (altivec_expand_binop_builtin): Same.
12906 (altivec_expand_ternop_builtin): Same.
12907 (altivec_expand_builtin): Same.
12909 2002-01-07 Richard Henderson <rth@redhat.com>
12911 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
12913 2002-01-07 Jason Merrill <jason@redhat.com>
12915 * unwind-dw2.c (execute_cfa_program): Use < again.
12917 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12919 * predict.c (combine_predictions_for_insn): Avoid division by zero.
12921 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12923 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
12924 Don't allow -1 - x -> ~x simplifications in the first pass.
12926 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12928 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
12930 (altivec_expand_binop_builtin): Same.
12931 (altivec_expand_unop_builtin): Same.
12932 (print_operand): Fix typo.
12933 (bdesc_1arg): Add vupk* variants.
12935 * rs6000.h (rs6000_builtins): Add vupk* enums.
12937 * rs6000.md: Add altivec_vupk* variants.
12939 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
12941 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
12942 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
12943 and last update dates.
12945 2002-01-07 Janis Johnson <janis187@us.ibm.com>
12947 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12949 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
12951 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
12952 * config/avr/avr.h (CPP_SPEC): Likewise.
12953 (LINK_SPEC): Likewise.
12954 (CRT_BINUTILS_SPECS): Likewise.
12955 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12956 * doc/invoke.texi (AVR Options): Document them.
12958 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
12960 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12963 2002-01-07 Graham Stott <grahams@redhat.com>
12965 * config/i386/i386.h: Update copyright date.
12966 (HALF_PIC_PTR): Add parenthesis.
12967 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
12968 (CONSTANT_ALIGNMENT): Add parenthesis.
12969 (DATA_ALIGNMENT): Likewise.
12970 (LOCAL_ALIGNMENT): Likewise.
12971 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
12972 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
12973 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
12974 (HARD_REGNO_NREGS): Add paranethesis.
12975 (VALID_SSE_REG_MODE): Whitespace.
12976 (VALID_MMX_REG_MODE): Whitespace.
12977 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
12978 (ix86_hard_regno_mode_ok): Add parenthesis.
12979 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
12980 (RETURN_IN_MEMORY): Whitespace.
12981 (N_REG_CLASSES): Add parenthesis.
12982 (INTEGER_CLASS_P): Add parenthesis and wrap.
12983 (FLOAT_CLASS_P): Likewise.
12984 (SSE_CLASS_P): Likewise.
12985 (MMX_CLASS_P): Likewise.
12986 (MAYBE_INTEGER_CLASS_P): Likewise.
12987 (MAYBE_FLOAT_CLASS_P): Likewise.
12988 (MAYBE_SSE_CLASS_P): Likewise.
12989 (MAYBE_MMX_CLASS_P): Likewise.
12990 (Q_CLASS_P): Likewise.
12991 (GENERAL_REGNO_P): Uppercase macro parameter.
12992 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12993 (FP_REGNO_P): Likewise.
12994 (ANY_FP_REGNO_P): Uppercase macro parameter.
12995 (SSE_REGNO_P): Likewise.
12996 (SSE_REGNO): Likewise.
12997 (SSE_REG_P): Likewise.
12998 (SSE_FLOAT_MODE_P): Likewise.
12999 (MMX_REGNO_P): Likewise.
13000 (MMX_REG_P):Likewise.
13001 (STACK_REG_P): Likewise.
13002 (NON_STACK_REG_P): Likewise.
13003 (STACK_TOP_P): Likewise.
13004 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13005 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13006 (SECONDARY_MEMORY_NEEDED): Likewise.
13007 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13008 (MD_ASM_CLOBBERS): Whitespace and wrap.
13009 (MUST_PASS_IN_STACK): Whitespace and wrap.
13010 (RETURN_POPS_ARGS): Add parenthesis.
13011 (INIT_CUMULATIVE_ARGS): Likewise.
13012 (FUNCTION_ARG): Likewise.
13013 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13014 (SETUP_INCOMING_VARARGS): Likewise.
13015 (BUILD_VA_LIST_TYPE): Add parenthesis.
13016 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13018 (EXPAND_BUILTIN_VA_ARG): Likewise.
13019 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13020 (INITIALIZE_TRAMPOLINE): Add parenthesis.
13021 (INITIAL_ELIMINATION_OFFSET): Likewise.
13022 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13023 (REGNO_OK_FOR_BASE_P): Likewise.
13024 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13025 (REGNO_OK_FOR_DIREG_P): Likewise.
13026 (REG_OK_FOR_INDEX_P): Whitespace.
13027 (REG_OK_FOR_BASE_P): Whitespace.
13028 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13030 (FIND_BASE_TERM): Fix typo.
13031 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
13032 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13033 (SYMBOLIC_CONST; Whitespace.
13034 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
13035 (ENCODE_SECTION_INFO): Whitespace.
13036 (FINALIZE_PIC): Remove do { ... } while (0).
13037 (PROMOTE_MODE): Wrap in do { ... } while (0).
13038 (CONST_COSTS): Whitespace.
13039 (RTX_COSTS): Add paramethesis, whitespace and wrap.
13040 (REGISTER_MOVE_COST): Add parenthesis.
13041 (MEMORY_MOVE_COST): Likewise.
13042 (EXTRA_CC_MODES): Whitespace.
13043 (SELECT_CC_MODE): Add parenthesis and whitespace.
13044 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13045 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13046 (ASM_OUTPUT_LABEL): Add paramethesis.
13047 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
13048 (ASM_OUTPUT_REG_POP): Likewise.
13049 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
13050 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13052 * config/i386/i386.c: Update copyright.
13053 (CHECK_STACK_LIMIT): Add parenthesis.
13054 (AT_BP): Uppercase macro parameter.
13055 (x86_64_int_parameter_registers): Constify.
13056 (x86_64_int_return_registers): Likewise.
13057 (ix86_compare_op0): Use rtx.
13058 (construct_container): Constify INTREG parameter.
13059 (function_arg): Use rtx.
13061 * diagnostic.h: Update copyright date.
13062 (output_buffer_state): Add parenthesis.
13063 (output_buffer_format_args): Likewise.
13065 * combine.c (combine_instructions): Replace XEXP (links, 0)
13068 2002-01-06 H.J. Lu <hjl@gnu.org>
13070 * cfgcleanup.c (thread_jump): Fix 2 typos.
13072 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13074 * config.gcc: Add support for --enable-altivec.
13076 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13078 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13080 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13082 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13083 __objc_class_name_*.
13085 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13087 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13089 2002-01-06 Richard Henderson <rth@redhat.com>
13091 * reorg.c (emit_delay_sequence): Remove death notes, not merely
13092 nop them out. Increment label reference count for REG_LABEL.
13093 (fill_slots_from_thread): Frob label reference count around
13094 delete_related_insns.
13096 2002-01-05 Richard Henderson <rth@redhat.com>
13098 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13101 2002-01-05 Richard Henderson <rth@redhat.com>
13103 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13104 * integrate.c (output_inline_function): Likewise.
13105 * toplev.c (rest_of_compilation): Do it here instead. Move call
13106 to remove_unnecessary_notes after emitting abstract instance.
13107 Force an emitted nested function to have its parent emited as well.
13108 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13110 (rtl_for_decl_location): Do not look at reload data structures
13111 before reload has run.
13113 2002-01-05 Kazu Hirata <kazu@hxi.com>
13115 * cse.c: Fix formatting.
13116 * dwarf2asm.c: Likewise.
13117 * dwarf2out.c: Likewise.
13118 * explow.c: Likewise.
13119 * expmed.c: Likewise.
13120 * function.c: Likewise.
13121 * gcov.c: Likewise.
13122 * gencheck.c: Likewise.
13123 * genrecog.c: Likewise.
13124 * ggc-common.c: Likewise.
13125 * ggc-page.c: Likewise.
13126 * global.c: Likewise.
13128 2002-01-05 Kazu Hirata <kazu@hxi.com>
13130 * combine.c: Fix formatting.
13132 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13135 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13137 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13139 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13140 as 1 for __powerpc64__ as well.
13142 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13144 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13147 2002-01-05 Daniel Berlin <dan@dberlin.org>
13149 * lcm.c: Revert change, due to performance regression it causes on
13150 SPEC because it's slightly more conservative (sigh, I hate
13153 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13155 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13157 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13159 * doc/cppinternals.texi: Update.
13161 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13163 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13164 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13166 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
13167 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13168 kludge for pre-october-14th mmix versions to handle new-found bug
13169 with PUSHJ/PUSHGO and the register stack.
13170 * config/mmix/mmix.h (struct machine_function): Rename member
13171 has_call_value_without_parameters to has_call_without_parameters.
13172 All referers changed.
13173 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13174 TARGET_MASK_BRANCH_PREDICT): New macros.
13175 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13176 -mno-reg-stack-fill-bug-workaround.
13177 * config/mmix/mmix.md ("call"): Set struct machine member
13178 has_call_without_parameters.
13180 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13182 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13184 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13186 * cfgcleanup.c: Include tm_p.h
13187 (mark_effect): Fix handling of hard register; fix handling of SET
13189 2002-01-04 Kazu Hirata <kazu@hxi.com>
13191 * config/h8300/h8300.md (anonymous patterns): Check that
13192 operands are registers before using REGNO on them.
13194 2002-01-03 Roland McGrath <roland@frob.com>
13196 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13198 2002-01-04 Jakub Jelinek <jakub@redhat.com>
13200 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13201 * c-common.h (genrtl_expr_stmt_value): Likewise.
13202 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13203 (expand_expr_stmt_value): Add maybe_last argument.
13204 Don't warn about statement with no effect if it is the last statement
13205 in expression statement.
13206 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13207 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13208 expand_expr_stmt_value.
13209 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13210 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13211 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13212 as maybe_last to expand_expr_stmt_value.
13214 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
13216 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13217 be passed in, do not build it.
13218 (c_begin_if_stmt): New function.
13219 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13220 * c-common.h (c_expand_start_cond): Update prototype.
13221 (c_begin_if_stmt): Prototype new function.
13222 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13223 * c-parse.in (if_prefix): Use c_begin_if_stmt,
13224 c_begin_while_stmt and c_finish_while_stmt_cond.
13226 2002-01-04 William Cohen <wcohen@redhat.com>
13228 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13229 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13230 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13231 * config/pa/som.h (ASM_FILE_START): Likewise.
13233 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
13235 * lcm.c: Include df.h.
13236 Add available_transfer_function prototype.
13237 (compute_available): Rework to use iterative dataflow framework.
13238 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13239 with bb_info in df.h
13240 (available_transfer_function): New function.
13242 * Makefile.in (lcm.o): add df.h to dependencies.
13244 2002-01-04 Richard Henderson <rth@redhat.com>
13246 * config/alpha/alpha.c (some_operand): Accept HIGH.
13247 (input_operand): Likewise; accept simple references to globals.
13248 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13249 (alpha_const_double_ok_for_letter_p): Likewise.
13250 (alpha_extra_constraint): Likewise.
13251 (alpha_preferred_reload_class): Likewise. Do not force
13252 symbolic constants to memory.
13253 (alpha_legitimate_address_p): Accept simple references
13254 to small_symbolic_operand.
13255 (alpha_legitimize_address): New arg scratch. Be prepared to be
13256 called when no_new_pseudos. Emit simple symbolic references.
13257 Split integers into low, high, and rest.
13258 (alpha_expand_mov): Use alpha_legitimize_address.
13259 (some_small_symbolic_mem_operand): New.
13260 (split_small_symbolic_mem_operand): New.
13261 * config/alpha/alpha-protos.h: Update.
13262 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
13263 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13264 (EXTRA_CONSTRAINT): Likewise.
13265 (PREFERRED_RELOAD_CLASS): Likewise.
13266 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
13267 (PREDICATE_CODES): Update.
13268 * config/alpha/alpha.md: New post-reload splitters to convert
13269 simplfied symbolic operands to the form that references $29.
13270 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
13271 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
13273 2002-01-03 Richard Henderson <rth@redhat.com>
13275 * local-alloc.c (function_invariant_p): Update commentary.
13277 2002-01-04 H.J. Lu <hjl@gnu.org>
13279 * toplev.c (rest_of_compilation): Fix a typo when calling
13282 2002-01-03 Kazu Hirata <kazu@hxi.com>
13284 * c-common.c: Fix formatting.
13285 * diagnostic.c: Likewise.
13286 * doloop.c: Likewise.
13287 * dwarf2out.c: Likewise.
13289 2002-01-03 Kazu Hirata <kazu@hxi.com>
13291 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
13292 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
13294 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13296 * cpperror.c: Update comments and copyright.
13297 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
13298 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
13300 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13302 * collect2.c (main): Use strcmp when testing for "-shared".
13304 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13306 * cppmacro.c: Don't include intl.h. Update comments.
13307 (new_number_token): Allocate enough buffer for 64-bit unsigned
13308 integers; update prototype.
13309 * cppmain.c: Update comments.
13311 2002-01-03 William Cohen <wcohen@redhat.com>
13313 * function.h (struct function): Add profile.
13314 (current_function_profile): New.
13315 doc/extend.texi: Update documentation.
13316 * final.c (final_start_function): Use current_function_profile
13317 instead of profile_flag.
13318 (profile_after_prologue): Likewise.
13319 * function.c (expand_function_start): Likewise.
13320 (expand_function_start): Likewise.
13321 * config/alpha/alpha.c (direct_call_operand):
13322 (alpha_does_function_need_gp): Likewise.
13323 (alpha_expand_prologue): Likewise.
13324 * config/arm/arm.c (arm_expand_prologue): Likewise.
13325 thumb_expand_prologue: Likewise.
13326 * config/d30v/d30v.c (d30v_stack_info): Likewise.
13327 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
13328 (fr30_expand_prologue): Likewise.
13329 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
13330 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
13331 * config/i386/i386.h (FINALIZE_PIC): Likewise.
13332 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
13333 * config/i960/i960.c (i960_output_function_prologue): Likewise.
13334 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13335 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
13336 (m32r_expand_prologue): Likewise.
13337 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
13338 (m88k_expand_prologue): Likewise.
13339 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
13340 * config/mips/mips.c (compute_frame_size): Likewise.
13341 (mips_expand_prologue): Likewise.
13342 (mips_can_use_return_insn): Likewise.
13343 * config/pa/elf.h (ASM_FILE_START): Likewise.
13344 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13345 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13346 * config/pa/som.h (ASM_FILE_START): Likewise.
13347 * config/romp/romp.c (romp_using_r14): Likewise.
13348 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
13349 (rs6000_stack_info): Likewise.
13350 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13351 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
13352 * config/v850/v850.c (compute_register_save_size): Likewise.
13354 2002-01-03 Jakub Jelinek <jakub@redhat.com>
13356 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
13357 gen_lowpart_common fails, use gen_lowpart_SUBREG.
13359 2002-01-03 Turly O'Connor <turly@apple.com>
13361 * darwin.c (machopic_output_possible_stub_label): Don't generate
13362 stub routines for pseudo-stubs which we've just defined.
13364 2002-01-03 Kazu Hirata <kazu@hxi.com>
13366 * builtins.c: Fix formatting.
13367 * c-typeck.c: Likewise.
13368 * combine.c: Likewise.
13369 * expr.c: Likewise.
13370 * loop.c: Likewise.
13372 2002-01-03 Andreas Schwab <schwab@suse.de>
13374 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
13375 and return true if _cpp_push_next_buffer pushed a new include
13377 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
13378 _cpp_pop_file_buffer did not push a new file.
13379 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
13381 2002-01-02 Eric Christopher <echristo@redhat.com>
13383 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
13384 FIND_REG_INC_NOTE call. Update copyright.
13385 * loop.c (canonicalize_condition): Ditto.
13386 * reorg.c (delete_scheduled_jump): Ditto.
13388 2002-01-03 Kazu Hirata <kazu@hxi.com>
13390 * gcse.c: Fix formatting.
13392 2002-01-03 Graham Stott <grahams@redhat.com>
13394 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
13395 forward defs for struct tags rtx_def, union_tree, rtvec_def
13396 also output corresponding typedefs for rtx, tree, and rtvec.
13398 * system.h: Move forward defs for struct tags rtx_def, union_tree,
13399 rtvec_def along with corresponding typedefs for rtx, tree, and
13400 rtvec to config.h, hconfig.h, tconfig.h.
13402 2002-01-03 Graham Stott <grahams@redhat.com>
13404 * tree.h: Update copyright date.
13405 (IS_EXPR_CODE_CLASS): Add parenthesis.
13406 (TREE_SET_CODE): Add whitespace.
13407 (TREE_CHECK): Add parenthesis.
13408 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
13409 (CST_OR_CONSTRUCTOR_CHECK):
13410 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
13411 (TREE_SYMBOL_REFERENCED): Whitespace.
13412 (INT_CST_LT): Likewise.
13413 (INT_CST_LT_UNSIGNED): Likewise.
13414 (tree_real_cst): Unwrap comment.
13415 (tree_string): Likewise.
13416 (tree_complex): Likewise.
13417 (IDENTIFIER_POINTER): correct cast.
13418 (SAVE_EXPR_CONTEXT): Whitespace.
13419 (EXPR_WFL_FILENAME_NODE): Likewise.
13420 (EXPR_WFL_FILENAME): Remove parenthesis.
13421 (DECL_ORIGIN): Add parenthesis.
13422 (DECL_FROM_INLINE): Use NULL_TREE.
13423 (build_int_2): Whitespace.
13424 (build_type_variant): Add parenthesis.
13426 * gcc/jcf-parse.c: Update copyright date.
13427 (yyparse): Constify resource_filename.
13429 2002-01-03 Graham Stott <grahams@redhat.com>
13431 * rtl.h: Update copyright date.
13432 (RTL_CHECK1): Wrap long line.
13433 (RTL_CHECK2): Likewise.
13434 (RTL_CHECKC1): Wrap long line and whitespace.
13435 (RTL_CHECKC2): Likewise.
13436 (XWINT): Whitespace.
13442 (XBITMAP): Likewise.
13444 (XBBDEF): Likewise.
13446 (X0WINT): Likewise.
13448 (X0UINT): Likewise.
13452 (X0MODE): Likewise.
13453 (X0BITMAP): Likewise.
13454 (X0TREE): Likewise.
13455 (X0BBDEF): Likewise.
13456 (X0ADVFLAGS): Likewise.
13457 (X0CSELIB): Likewise.
13458 (X0MEMATTR): Likewise.
13459 (XCWINT): Likewise.
13461 (XCUINT): Likewise.
13465 (XCMODE): Likewise.
13466 (XCBITMAP): Likewise.
13467 (XCTREE): Likewise.
13468 (XCBBDEF): Likewise.
13469 (XCADVFLAGS): Likewise.
13470 (XCCSELIB): Likewise.
13471 (XC2EXP): Likewise.
13472 (INSN_UID): Likewise.
13473 (PREV_INSN): Likewise.
13474 (PATTERN): Likewise.
13475 (INSN_CODE): Likewise.
13476 (PUT_REG_NOTE_KIND): Likewise.
13477 (CODE_LABEL_NUMBER): Likewise.
13478 (NOTE_SOURCE_FILE): Likewise.
13479 (NOTE_BLOCK): Likewise.
13480 (NOTE_EH_HANDLER): Likewise.
13481 (NOTE_RANGE_INFO): Likewise.
13482 (NOTE_LIVE_INFO): Likewise.
13483 (NOTE_BASIC_BLOCK): Likewise.
13484 (NOTE_EXPECTED_VALUE): Likewise.
13485 (NOTE_LINE_NUMBER): Likewise.
13486 (LABEL_NAME): Likewise.
13487 (LABEL_NUSES): Likewise.
13488 (LABEL_ALTERNATE_NAME): Likewise.
13489 (ADDRESSOF_DECL): Likewise.
13490 (JUMP_LABEL): Likewise.
13491 (LABEL_NEXTREF): Likewise.
13493 (ORIGINAL_REGNO: Likewise.
13494 (HARD_REGISTER_NUM_P): Add parenthesis.
13495 (SUBREG_REG): Whitespace.
13496 (SUBREG_BYTE): Likewise.
13497 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
13498 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
13499 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
13500 (ASM_OPERANDS_INPUT_VEC): Likewise.
13501 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
13502 (ASM_OPERANDS_INPUT): Likewise.
13503 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
13504 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
13505 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
13506 (ASM_OPERANDS_INPUT_MODE): Likewise.
13507 (ASM_OPERANDS_SOURCE_FILE): Likewise.
13508 (ASM_OPERANDS_SOURCE_LINE): Likewise.
13509 (MEM_SET_IN_STRUCT_P): Minor reformat.
13510 (TRAP_CONDITION): Whitespace.
13511 (TRAP_CODE): Likewise.
13512 (COND_EXEC_TEST): Likewise.
13513 (COND_EXEC_CODE): Likewise.
13514 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
13515 (PHI_NODE_P): Add parenthesis.
13516 (plus_constant): Whitespace and add parenthesis.
13518 2002-01-03 Kazu Hirata <kazu@hxi.com>
13520 * config/avr/avr.c: Fix comment typos.
13521 * config/c4x/c4x.md: Likewise.
13522 * config/dsp16xx/dsp16xx.h: Likewise.
13523 * config/dsp16xx/dsp16xx.md: Likewise.
13524 * config/i386/i386.md: Likewise.
13525 * config/ia64/ia64.c: Likewise.
13526 * config/m32r/m32r.h: Likewise.
13527 * config/m68hc11/m68hc11.md: Likewise.
13528 * config/mmix/mmix.c: Likewise.
13529 * config/mn10200/mn10200.c: Likewise.
13530 * config/romp/romp.c: Likewise.
13531 * config/sh/sh.c: Likewise.
13532 * config/stormy16/stormy16.c: Likewise.
13533 * config/stormy16/stormy16.h: Likewise.
13534 * config/stormy16/stormy16.md: Likewise.
13536 2002-01-03 Graham Stott <grahams@redhat.com>
13538 * loop.h: Update copyright date.
13539 (LOOP_MOVABLES): Fix typo.
13540 (LOOP_REGS): Likewise.
13541 (LOOP_IVS): Likewise.
13543 2002-01-03 Graham Stott <grahams@redhat.com>
13545 * cppinit.c: Update copyright date.
13546 Don't include output.h
13547 * Makefile.in: Update copyright date.
13550 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
13553 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
13554 (-pthread) Add to RS/6000 options.
13556 2002-01-02 Kazu Hirata <kazu@hxi.com>
13558 * except.c: Fix comment typos.
13559 * loop.c: Likewise.
13560 * varasm.c: Likewise.
13561 * doc/tm.texi: Fix a typo.
13563 2002-01-02 Jakub Jelinek <jakub@redhat.com>
13565 * c-typeck.c (output_init_element): Allow initializing static storage
13566 duration objects with compound literals.
13568 2002-01-02 Richard Henderson <rth@redhat.com>
13570 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
13573 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13575 * gcc.c (default_compilers): Const-ify.
13576 * mips-tdump.c (stab_names): Likewise.
13577 * mips-tfile.c (map_coff_types, map_coff_storage,
13578 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
13579 pseudo_ops_t, pseudo_ops): Likewise.
13580 * protoize.c (default_include): Likewise
13582 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
13583 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
13584 Add array size in declaration.
13585 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
13586 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
13587 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
13588 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
13589 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
13590 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
13591 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
13592 emtens, make_nan): Const-ify.
13593 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
13594 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
13596 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
13598 * config.gcc (ia64-*-*): Set extra_headers.
13599 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
13600 * config/alpha/t-osf: Remove.
13601 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
13603 2002-01-02 David Edelsohn <edelsohn@gnu.org>
13605 * config/rs6000/t-aix43: Revert previous change.
13607 2002-01-02 Jason Merrill <jason@redhat.com>
13609 * c-decl.c (c_expand_body): Call outlining_inline_function when
13610 emitting an inline function out of line.
13612 2002-01-02 Richard Henderson <rth@redhat.com>
13614 * dwarf2out.c (limbo_die_node): Add created_for member.
13615 (new_die): New argument created_for. Update all callers.
13616 (mark_limbo_die_list): New.
13617 (dwarf2out_init): Register limbo_die_list as a root.
13618 (dwarf2out_finish): Force insert limbo dies into their function
13621 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
13624 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
13626 2002-01-02 Kazu Hirata <kazu@hxi.com>
13628 * config/h8300/fixunssfsi.c: Update copyright.
13631 * config/h8300/h8300.c: Update copyright.
13632 Eliminate warnings.
13634 2002-01-02 Kazu Hirata <kazu@hxi.com>
13636 * config/romp/romp.c: Fix comment formatting.
13637 * config/romp/romp.h: Likewise.
13638 * config/romp/romp.md: Likewise.
13639 * config/s390/s390.c: Likewise.
13640 * config/stormy16/stormy16.c: Likewise.
13641 * config/stormy16/stormy16.h: Likewise.
13643 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
13645 * c-common.h (genrtl_expr_stmt_value): Declare.
13646 * c-semantics.c (genrtl_goto_stmt): Redirect to...
13647 (genrtl_goto_stmt_value): ... this new function. Pass new
13648 argument down to expand_expr_stmt_value, taking
13649 TREE_ADDRESSABLE into account.
13650 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
13651 STMT_EXPR as addressable, i.e., one whose result we want.
13652 * expr.c (expand_expr): Don't save expression statement value
13653 of labeled_blocks or loop_exprs.
13654 * stmt.c (expand_expr_stmt): Redirect to...
13655 (expand_expr_stmt_value): ... this new function. Use new
13656 argument to tell whether to save expression value.
13657 (expand_end_stmt_expr): Reset last_expr_type and
13658 last_expr_value if we don't have either.
13659 * tree-inline.c (declare_return_variable): Mark its use
13660 statement as addressable.
13661 * tree.h: Document new use of TREE_ADDRESSABLE.
13662 (expand_expr_stmt_value): Declare.
13664 2002-01-01 Tom Rix <trix@redhat.com>
13666 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
13667 rs6000_emit_allocate_stack.
13669 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
13671 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
13672 ${srcdir}/ginclude/ to every entry in extra_headers.
13673 * configure: Regenerate.
13674 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
13675 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
13676 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
13677 * ginclude/proto.h: Rename to config/convex/proto.h.
13679 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13681 * attribs.c (handle_vector_size_attribute): Use host_integerp
13682 and tree_int_cst; remove warnings.
13683 * caller-save.c (insert_restore): Add cast to get rid of warning.
13684 (insert_save): Likewise.
13685 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
13686 * regmove.c (find_matches): Add temporary var to kill a warning.
13688 2002-01-01 Douglas B Rupp <rupp@gnat.com>
13690 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
13691 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
13692 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
13693 (vms-dwarf2eh.o): Add Makefile rule.
13694 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
13695 * config/alpha/vms-dwarf2eh.asm: New file.
13697 * gcc.c (delete_if_ordinary): Delete all versions.
13699 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
13701 * config/mmix/mmix.md: Update FIXME to not mention
13703 (MMIX_rJ_REGNUM): New define_constants constant.
13704 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
13705 "*movdicc_real"): Adjust contraints formatting.
13706 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
13707 for branch prediction.
13708 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
13710 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
13711 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
13712 number. Delete related FIXMEs.
13713 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
13714 from number to MMIX_rJ_REGNUM.
13715 (TARGET_MASK_BRANCH_PREDICT): New.
13716 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
13717 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
13718 value. Add -mbranch-predict and -mno-branch-predict.
13719 (TARGET_VERSION): Drop date.
13720 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
13721 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
13722 for finding out global symbols.
13723 (mmix_asm_output_labelref): Revert condition for global symbol.
13724 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
13725 (mmix_print_operand_punct_valid_p): A '+' is valid.
13727 See ChangeLog.6 for earlier changes.