1 Wed May 22 17:08:48 2002 J"orn Rennecke <joern.rennecke@superh.com>
3 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
4 (embed-bb.c): New rule.
5 * config/sh/embed_bb.c: Delete.
7 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
9 * config/h8300/h8300.md (*andorqi3): New.
11 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
14 * Makefile.in: Update.
15 * c-common.c (c_common_post_options): Add preprocessor
16 errors to the error count.
17 * c-lang.c (c_post_options): Kill.
18 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
19 * hooks.h: Add header guards.
20 * langhooks-def.h: Include hooks.h.
21 (LANG_HOOKS_POST_OPTIONS): Update.
22 * langhooks.h (struct lang_hooks): Update post_options.
23 * toplev.c (parse_options_and_default_flags): Update.
25 * objc-lang.c (objc_post_options): Kill.
26 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
28 2002-05-21 Bruce Korb <bkorb@gnu.org>
30 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
31 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
32 * fixinc/fixincl.x: regen.
34 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
36 * cfgbuild.c: Fix formatting.
38 * cfgcleanup.c: Likewise.
39 * cfglayout.c: Likewise.
40 * cfgloop.c: Likewise.
43 2002-05-21 Richard Henderson <rth@redhat.com>
45 * c-common.h (enum rid): Add RID_THREAD.
46 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
47 (grokdeclarator): Grok __thread.
48 * c-parse.in (reswords): Add __thread.
49 (rid_to_yy): Add RID_THREAD.
51 * tree.h (DECL_THREAD_LOCAL): New.
52 (struct tree_decl): Add thread_local_flag.
53 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
54 * tree.c (staticp): TLS variables are not static.
56 * target-def.h (TARGET_HAVE_TLS): New.
57 * target.h (have_tls): New.
58 * output.h (SECTION_TLS): New.
59 * varasm.c (assemble_variable): TLS variables can't be common for now.
60 (default_section_type_flags): Handle .tdata and .tbss.
61 (default_elf_asm_named_section): Handle SECTION_TLS.
62 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
64 * flags.h (flag_tls_default): Declare.
65 * toplev.c (flag_tls_default): Define.
66 (display_help): Display help for it.
67 (decode_f_option): Set it.
69 * doc/extend.texi (Thread-Local): New node describing language-level
71 * doc/invoke.texi (-ftls-model): Document.
73 * fixinc/inclhack.def (thread_keyword): New.
74 * fixinc/fixincl.x: Rebuild.
76 2002-05-21 Jeffrey A Law <law@redhat.com>
78 * optabs.c (expand_binop): For double-word integer multiplies,
79 do not compute intermediate results into something that is
80 not a register (such as a SUBREG or MEM).
82 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
83 (ix86_sched_reorder): Make sure to initialize scheduling
84 data even when there's only one insn in the ready queue.
86 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
88 * genautomata.c (reserv_sets_hash_value): Fix a typo.
90 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
92 * genautomata.c (reserv_sets_hash_value): Define hash_value as
93 set_el_t. Transform the hash value into unsigned.
94 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
95 (transform_3): Add code to process `(A,B)+(D,E)'.
97 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
99 * reload1.c (do_output_reload): Run delete_output_reload
102 2002-05-21 Roger Sayle <roger@eyesopen.com>
105 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
106 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
107 (can_store_by_pieces): ... and here to limit the largest mode used.
108 Add a comment to document this function.
110 2002-05-21 Richard Henderson <rth@redhat.com>
112 * flow.c (life_analysis): Fix test for deleted label.
114 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
116 * doc/tm.texi: Fix typo.
118 2002-05-21 Zack Weinberg <zack@codesourcery.com>
120 * c-common.c (c_common_init): Set options->unsigned_char from
122 (cb_register_builtins): Define __STRICT_ANSI__ and
123 __CHAR_UNSIGNED__ here...
124 * cppinit.c (init_builtins): Not here.
125 (cpp_create_reader): unsigned_char option defaults to 0, not
126 !DEFAULT_SIGNED_CHAR.
127 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
130 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
131 * cpphash.c (_cpp_init_hashtable): Don't set it.
132 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
133 directly. Clarify comment.
135 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
137 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
138 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
139 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
140 BASIC_BLOCK (n_basic_blocks - 1).
141 * cfganal.c (can_fallthru, flow_call_edges_add,
142 flow_preorder_transversal_compute): Too.
143 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
144 find_sub_basic_blocks): Too.
145 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
146 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
147 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
148 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
149 * combine.c (this_basic_block): Type changed to basic_block.
150 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
151 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
152 get_last_value, distribute_notes, distribute_links): Too.
153 * final.c (compute_alignments): Too.
154 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
155 * function.c (thread_prologue_and_epilogue_insns): Too.
156 * gcse.c (compute_code_hoist_vbeinout): Too.
157 * global.c (build_insn_chain): Too.
158 * ifcvt.c (find_if_block, find_cond_trap): Too.
159 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
160 * regmove.c (regmove_optimize): Too.
161 * resource.c (find_basic_block): Too.
162 * sched-ebb.c (schedule_ebbs): Too.
163 * ssa-dce.c (find_control_dependence, find_pdom): Too.
165 2002-05-21 Andreas Jaeger <aj@suse.de>
167 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
169 2002-05-21 Richard Henderson <rth@redhat.com>
171 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
172 unspec names, not numbers.
174 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
176 * doc/sourcebuild.texi: Mention snapshot-README and
177 snapshot-index.html as needing updating for new front ends.
179 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
181 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
182 disabling checking, and avoid multiple evaluation of RTX.
184 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
186 * bitmap.c (bitmap_find_bit): Return early if we have the correct
189 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
191 * profile.c (gen_edge_profiler): Set alias set before the memory is
194 2002-05-20 David S. Miller <davem@redhat.com>
196 * cselib.c (max_value_regs): New.
197 (cselib_lookup, cselib_invalidate_regno): Initialize it when
198 adding new entries to the REG_VALUES table and we are dealing with
200 (clear_table): Initialize it.
201 (cselib_invalidate_regno): Use it to determine which hard
202 registers to scan when mode is not VOIDmode.
204 2002-05-20 Duraid Madina <duraid@fl.net.au>
206 * tradcpp.c (fixup_newlines): Use old-style function header.
208 2002-05-20 Krister Walfridsson <cato@df.lth.se>
210 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
212 2002-05-20 H.J. Lu (hjl@gnu.org)
214 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
216 * config/mips/mips.h (DFMODE_NAN): Defined.
217 (SFMODE_NAN): Likewise.
219 2002-05-20 Dale Johannesen <dalej@apple.com>
221 * combine.c (cant_combine_insn_p): Back out my
224 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
226 * params.c: Fix formatting.
227 * params.h: Likewise.
228 * predict.c: Likewise.
229 * prefix.c: Likewise.
230 * print-rtl.c: Likewise.
231 * print-tree.c: Likewise.
232 * profile.c: Likewise.
234 2002-05-20 H.J. Lu (hjl@gnu.org)
236 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
238 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
240 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
241 switches straight on to the assembler, do not abbreviate them.
242 * config/arm/elf.h (ASM_SPEC): As above.
243 * config/arm/semi.h (ASM_SPEC): As above.
244 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
245 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
246 -mcpu=xscale on to the assembler by default.
247 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
249 2002-05-20 Richard Henderson <rth@redhat.com>
251 * cse.c (canon_hash): Reorder do_not_record test. Always
252 allow pic_offset_table_rtx.
254 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
256 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
257 (expand_binop): Ditto (3 times).
259 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
261 * Makefile.in (distclean): Remove QMTest stuff.
262 (QMTEST_PATH): New variable.
263 (QMTESTFLAGS): Likewise.
264 (QMTESTRUNFLAGS): Likewise.
266 (QMTEST_GPP_TESTS): Likewise.
267 (QMTEST_DIR): Likewise.
268 (QMTEST_DIR/context): New target.
269 (qmtest-g++): Likeise.
270 (qmtest-gui): Likewise.
271 (QMTEST_DIR/gpp-expected.qmr): Likewise.
273 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
275 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
276 an altivec register if TARGET_ALTIVEC.
278 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
279 to ALTIVEC_VECTOR_MODE.
280 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
281 (rs6000_va_arg): Vectors may go in registers if they are not
284 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
286 * protoize.c: Fix formatting.
288 2002-05-19 Richard Henderson <rth@redhat.com>
290 * gensupport.c (init_include_reader): Merge into ...
291 (process_include): ... here. Simplify composite path creation.
292 Plug memory leaks. Fix file/line number tracking. Do not
293 process_define_cond_exec. Return void.
294 (process_rtx): Don't check process_include return value.
296 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
298 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
300 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
301 traversing basic block chain.
302 (create_basic_block_structure, create_basic_block): Declaration changed.
303 (link_block, unlink_block): Declare.
304 * cfg.c (entry_exit_blocks): Initialize new fields.
305 (link_block, unlink_block): New.
306 (expunge_block_nocompact): Unlink basic block.
307 (dump_flow_info): Print prev_bb/next_bb fields.
308 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
309 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
310 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
311 * cfgrtl.c (create_basic_block_structure, create_basic_block,
312 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
313 (verify_flow_info): Check that list agrees with numbering.
315 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
317 * c-common.c (preprocessing_asm): New macro.
318 * c-lex.h (builtin_define, builtin_assert): Use pfile.
322 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
323 (CPP_SPEC): Simplify.
324 (TARGET_CPU_CPP_BUILTINS): Update.
325 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
326 (CPP_SPEC): Simplify.
327 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
328 (TARGET_OS_CPP_BUILTINS): Update.
329 * osf.h (CPP_XFLOAT_SPEC): Kill.
330 (TARGET_OS_CPP_BUILTINS): Update.
331 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
332 * osf5.h (CPP_XFLOAT_SPEC): Kill.
333 * vms.h (CPP_SUBTARGET_SPEC): Kill.
334 (TARGET_OS_CPP_BUILTINS): Update.
336 2002-05-19 Richard Henderson <rth@redhat.com>
338 * varasm.c (default_binds_local_p): Fix typo.
340 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
342 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
343 CONST_INT operand to the correct mode after adding 1 to it.
345 2002-05-19 Mark Mitchell <mark@codesourcery.com>
347 * config.gcc (powerpc-wrs-windiss*): New target.
349 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
351 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
354 2002-05-18 Mark Mitchell <mark@codesourcery.com>
356 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
358 * config.in: Regenerated.
359 * configure: Regenerated.
361 2002-05-19 Richard Henderson <rth@redhat.com>
363 * target-def.h (TARGET_BINDS_LOCAL_P): New.
364 * target.h (struct gcc_target): Move boolean fields to the end.
366 * varasm.c (default_binds_local_p): New.
367 * output.h: Declare it.
369 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
370 * config/cris/cris.c (cris_encode_section_info): Likewise.
371 * config/i386/i386.c (i386_encode_section_info): Likewise.
372 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
373 * config/sh/sh.c (sh_encode_section_info): Likewise.
375 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
376 (TARGET_BINDS_LOCAL_P): New.
378 2002-05-19 Richard Henderson <rth@redhat.com>
380 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
381 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
382 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
384 * toplev.c (display_help): Kill -a -ax help.
386 * config/1750a/1750a.h, config/alpha/alpha.h,
387 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
388 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
389 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
390 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
392 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
393 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
395 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
396 (ix86_output_function_block_profiler): Kill.
397 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
398 (m68hc11_function_block_profiler): Kill.
399 * config/m68hc11/m68hc11-protos.h: Update.
400 * config/m88k/m88k.c (output_block_profiler): Kill.
401 (output_function_block_profiler): Kill.
402 * config/m88k/m88k-protos.h: Update.
404 2002-05-19 Richard Henderson <rth@redhat.com>
406 * system.h (STRIP_NAME_ENCODING): Poison it.
407 * output.h (STRIP_NAME_ENCODING): Remove.
408 (default_strip_name_encoding): Declare.
409 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
410 * target.h (strip_name_encoding): New.
411 * varasm.c (default_strip_name_encoding): New.
413 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
414 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
415 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
416 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
417 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
418 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
419 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
420 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
421 config/v850/v850.h: Use the hook, not the macro.
423 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
424 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
425 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
426 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
427 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
428 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
429 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
430 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
431 config/v850/v850.c, config/v850/v850.h:
432 Move STRIP_NAME_ENCODING to out-of-line function and add
433 TARGET_STRIP_NAME_ENCODING.
435 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
436 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
437 with TARGET_STRIP_NAME_ENCODING referencing existing function;
438 make function static.
440 * xcoffout.c: Include target.h
441 * Makefile.in (xcoffout.o): Update.
443 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
444 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
445 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
446 reloc argument unused.
447 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
449 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
450 STRIP_NAME_ENCODING docs.
452 2002-05-19 Andreas Jaeger <aj@suse.de>
454 * gengenrtl.c: Add prototype for excluded_rtx.
456 * real.h: Add prototype for exact_real_truncate.
458 2002-05-18 Richard Henderson <rth@redhat.com>
460 * system.h (ENCODE_SECTION_INFO): Poison it.
461 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
462 * target.h (encode_section_info): New.
463 * varasm.c (make_decl_rtl, output_constant_def): Use it.
464 * hooks.c (hook_tree_int_void): New.
465 * hooks.h: Declare it.
467 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
468 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
469 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
470 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
471 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
472 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
473 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
474 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
475 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
476 config/mcore/mcore-protos.h, config/mcore/mcore.c,
477 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
478 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
479 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
480 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
481 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
482 referencing existing function. Make function static.
484 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
485 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
486 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
487 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
488 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
489 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
490 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
491 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
492 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
493 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
494 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
495 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
496 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
497 Move ENCODE_SECTION_INFO to out-of-line function and add
498 TARGET_ENCODE_SECTION_INFO.
500 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
501 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
503 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
505 (switch_to_section): Replace in_rdata case with in_readonly_data.
507 * config/h8300/h8300.c (h8300_encode_label): Make static.
508 * config/h8300/h8300-protos.h: Update.
510 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
511 from rs6000_encode_section_info; make static.
512 (rs6000_xcoff_encode_section_info): New.
514 * config/v850/v850.c (v850_encode_data_area): Make static.
515 * config/v850/v850-protos.h: Update.
517 * config/vax/vax.c: Include flags.h.
518 (vms_select_section): Fix typo.
520 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
521 ENCODE_SECTION_INFO docs.
523 2002-05-18 Richard Henderson <rth@redhat.com>
525 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
526 REGISTER_TARGET_PRAGMAS.
527 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
529 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
531 2002-05-18 Richard Henderson <rth@redhat.com>
533 * system.h (SELECT_RTX_SECTION): Poison.
534 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
535 * target.h (select_rtx_section): New.
536 * varasm.c (output_constant_pool): Use it.
537 (default_select_rtx_section, default_elf_select_rtx_section): New.
538 * output.h: Declare them.
540 * config/darwin.h (SELECT_RTX_SECTION): Move ...
541 * config/darwin.c (machopic_select_rtx_section): ... here.
542 * config/darwin-protos.h: Update.
544 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
545 * config/nextstep.c (machopic_select_rtx_section): ... here.
546 (nextstep_select_section): Rename variable to avoid macro clash.
547 * config/nextstep-protos.h: Update.
549 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
550 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
551 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
552 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
553 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
554 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
555 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
556 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
557 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
558 (SELECT_RTX_SECTION): Remove.
560 * config/darwin.h, config/elfos.h, config/nextstep.h,
561 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
562 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
563 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
564 config/sparc/lynx.h, config/xtensa/xtensa.c
565 (TARGET_ASM_SELECT_RTX_SECTION): New.
567 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
568 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
569 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
570 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
571 (ia64_aix_select_rtx_section): New.
572 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
574 * config/mips/mips.c (mips_select_rtx_section): Make static.
575 Support ELF SHF_MERGE features.
576 * config/mips/mips-protos.h: Update.
577 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
578 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
579 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
580 make static, fall back to default_elf_select_rtx_section.
581 * config/rs6000/rs6000-protos.h: Update.
582 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
583 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
584 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
585 * config/romp/romp.c (romp_select_rtx_section): New.
586 * config/s390/s390.c (s390_select_rtx_section): New.
587 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
588 declarations before target macro definition.
589 (xtensa_emit_call): Use static buffer.
590 (xtensa_select_rtx_section): New.
591 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
592 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
593 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
595 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
596 SELECT_RTX_SECTION docs.
598 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
600 * i386.md (movsi/movdi): Fix template.
601 (sse2 patterns): Set attributes consistently.
603 * i386.md (pushqi2, ashrqi_*): Fix constraint.
605 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
607 * optabs.c (complex_part_zero_p): New.
608 * (expand_cmplxdiv_straight): Use it.
609 * (expand_cmplxdiv_wide): Ditto.
610 * (expand_binop): Ditto.
612 2002-05-18 Richard Henderson <rth@redhat.com>
614 * final.c (HAVE_READONLY_DATA_SECTION): New.
615 (shorten_branches): Use it instead of ifdefs.
616 * varasm.c (enum in_section): Add in_readonly_data.
617 (text_section, data_section): Tidy.
618 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
620 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
621 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
622 (READONLY_DATA_SECTION): Don't undef.
624 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
625 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
626 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
628 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
629 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
630 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
631 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
633 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
634 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
635 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
636 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
637 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
638 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
639 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
640 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
641 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
643 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
644 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
645 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
646 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
647 config/pa/pa64-hpux.h, config/sparc/litecoff.h
648 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
650 * config/elfos.h, config/netware.h, config/svr3.h,
651 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
652 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
653 config/h8300/h8300.h, config/i386/i386-interix.h,
654 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
655 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
657 * config/elfos.h, config/netware.h, config/svr3.h,
658 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
659 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
660 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
661 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
663 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
664 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
665 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
666 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
667 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
668 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
669 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
670 config/rs6000/sysv4.h, config/v850/v850.h
671 (EXTRA_SECTIONS): Remove in_const/in_rdata.
672 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
674 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
675 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
676 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
677 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
678 * config/alpha/alpha.c (alpha_start_function): Likewise.
679 (alpha_write_linkage): Likewise.
680 * config/m32r/m32r.c (m32r_select_section): Likewise.
681 * config/m88k/m88k.c (m88k_select_section): Likewise.
682 * config/mips/mips.c (mips_select_rtx_section): Likewise.
683 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
684 (rs6000_elf_select_section): Likewise.
685 * config/v850/v850.c (v850_select_section): Likewise.
687 * config/1750a/1750a.h, config/i860/sysv3.h
688 (READONLY_DATA_SECTION_ASM_OP): New.
689 READONLY_DATA_SECTION_ASM_OP.
690 * config/i386/interix.c, config/i386/winnt.c
691 (i386_pe_unique_section): Always use .rdata prefix.
692 * config/pa/som.h (readonly_data): Always switch to read-only section.
693 (READONLY_DATA_SECTION): Predicate on flag_pic.
694 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
695 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
696 (READONLY_DATA_SECTION): Update.
698 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
700 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
701 is used without -Wformat.
702 * c-common.h (warn_format_zero_length): Declare extern.
703 * c-decl.c (warn_options): Add "format-zero-length".
704 * c-format.c (warn_format_zero_length): Declare.
705 (set_Wformat): Set warn_format_zero_length for -Wformat.
706 (check_format_info): Only warn about zero-length formats if
707 warn_format_zero_length is true. Include the format type
708 name in the warning message.
709 * doc/invoke.texi: Document -Wformat-zero-length.
710 * testsuite/gcc.dg/format/zero-length-1.c: New test.
712 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
714 * timevar.c: Fix formatting.
716 * toplev.c: Likewise.
717 * tree-dump.c: Likewise.
718 * tree-inline.c: Likewise.
720 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
722 * cppinit.c (cpp_post_options): If preprocessed, turn off
723 traditional. If traditional, turn off column numbers.
724 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
725 * cpptrad.c (handle_newline): Update line_base.
726 (skip_comment): Handle -Wcomment.
728 2002-05-17 Zack Weinberg <zack@codesourcery.com>
730 * cppinit.c (struct builtin): Remove unused fields.
731 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
732 (operator_array): New - was second half of builtin_array.
733 (init_builtins): Simplify loop over builtin_array/operator_array.
735 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
737 * defaults.h (UNIQUE_SECTION): Remove.
738 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
740 2002-05-17 Richard Henderson <rth@redhat.com>
742 * expr.c (init_expr_once): Don't use start/end_sequence.
743 Use rtx_alloc instead of emit_insn.
744 * toplev.c (lang_dependent_init): Run init_expr_once here ...
745 (lang_independent_init): ... not here.
747 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
749 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
751 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
753 * config/avr/avr.c (avr_regs_to_save): New function. Also check
754 for fixed registers, possibly used for global register variables.
755 (initial_elimination_offset, avr_output_function_prologue,
756 avr_output_function_epilogue): Move common code to avr_regs_to_save.
758 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
760 * Makefile.in: Update for cpptrad.c.
761 * cpphash.h (struct cpp_buffer): New members for buffer
763 (struct cpp_reader): New members for traditional output.
764 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
765 * cppinit.c (cpp_create_reader): Set trad_line.
766 (cpp_destroy): Free trad_out_base if used.
767 (cpp_read_main_file): Overlay an empty buffer if traditional.
768 (cpp_finish_options): Don't do builtins.
769 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
770 (cpp_handle_option): Handle it.
771 * cpplex.c (continue_after_nul): New.
772 (_cpp_lex_direct): Use handle_nul.
773 * cpplib.h (struct cpp_options): New traditional option.
774 * cpptrad.c: New file.
776 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
778 * c-common.c (c_common_init_options): Use C89 for Objective-C,
779 and set the options flag.
780 * cppinit.c (lang_flags): Remove objc.
781 (lang_defaults): Remove OBJC and OBJCXX.
783 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
784 (cpp_handle_option): Remove -+ and -lang-objc++.
785 For ObjC, just set a flag.
786 (print_help): Update.
787 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
789 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
791 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
792 bootstrap with -mips3.
794 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
796 * final.c: Fix formatting.
797 * fix-header.c: Likewise.
799 * fold-const.c: Likewise.
800 * function.c: Likewise.
802 2002-05-17 David S. Miller <davem@redhat.com>
804 PR c/6689, PR optimization/6615
805 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
806 and make it a pointer to rtx. Update comments.
807 (update_equiv_regs): When scanning for equivalences, record
808 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
809 it while making the equiv replacements.
811 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
813 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
815 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
817 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
818 when encoding visibility into SYMBOL_REF_FLAG.
820 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
822 * expr.c (force_operand): Fix reversed move.
824 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
826 * doc/install.texi (Testing): Mention two common DejaGnu warnings
829 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
831 * doc/install.texi (Final install): Recommend to install into a
832 "clean" target directory.
834 2002-05-17 Richard Henderson <rth@redhat.com>
836 * config/ia64/ia64.md: Use braced strings instead of quoted strings
837 for code blocks. Tidy whitespace.
839 2002-05-17 Richard Henderson <rth@redhat.com>
841 * hooks.c (hook_tree_bool_false): New.
842 * hooks.h: Declare it.
843 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
844 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
845 * target.h (select_section, unique_section): New.
846 (in_small_data_p): New.
847 * varasm.c (resolve_unique_section): Use hooks instead of macros.
848 (variable_section, output_constant_def_contents): Likewise.
849 (default_select_section, default_unique_section): New.
850 (categorize_decl_for_section, default_elf_select_section): New.
851 * output.h: Declare them.
853 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
854 (TARGET_ASM_SELECT_SECTION): New.
855 (SELECT_SECTION): Move ...
856 * config/darwin.c (machopic_select_section): ... here.
857 * config/darwin-protos.h: Update.
859 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
860 (SELECT_SECTION): Move ...
861 * config/nextstep.c (nextstep_select_section): ... here.
862 * config/nextstep-protos.h: Update.
864 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
865 (TARGET_ASM_SELECT_SECTION): New.
866 * config/svr3.h (SELECT_SECTION): Remove.
868 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
869 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
870 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
871 (alpha_encode_section_info): Use it.
872 * config/alpha/alpha-protos.h: Update.
873 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
874 (SELECT_SECTION, UNIQUE_SECTION): Remove.
875 (TARGET_ASM_SELECT_SECTION): New.
876 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
878 * config/arm/pe.h (UNIQUE_SECTION): Remove.
879 (TARGET_ASM_UNIQUE_SECTION): New.
881 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
882 (avr_unique_section): Rename from unique_section; make static.
883 * config/avr/avr-protos.h: Update.
884 * config/avr/avr.h (UNIQUE_SECTION): Remove.
886 * config/c4x/c4x.h (SELECT_SECTION): Remove.
888 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
889 (TARGET_ASM_UNIQUE_SECTION): New.
890 * config/i386/i386-interix.h: Likewise.
891 * config/i386/win32.h: Likewise.
892 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
893 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
894 * config/i386/sco5.h (SELECT_SECTION): Remove.
895 (TARGET_ASM_SELECT_SECTION): New.
896 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
898 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
899 instead of SELECT_SECTION.
900 * config/m68k/dpx2.h: Likewise.
901 * config/rs6000/lynx.h: Likewise.
903 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
904 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
905 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
906 (ia64_in_small_data_p): New.
907 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
908 (ia64_aix_select_section, ia64_aix_unique_section): New.
909 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
910 (SELECT_SECTION, UNIQUE_SECTION): Remove.
912 * config/m32r/m32r.h (SELECT_SECTION): Remove.
913 (TARGET_ASM_SELECT_SECTION): New.
914 * config/m32r/m32r.c (m32r_select_section): Take align argument.
915 * config/m32r/m32r-protos.h: Update.
917 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
918 (SELECT_SECTION): Move ...
919 * config/m88k/m88k.c (m88k_select_section): ... here.
921 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
922 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
923 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
924 (mcore_unique_section): Make static.
925 * config/mcore/mcore-protos.h: Update.
927 * config/mips/elf.h (UNIQUE_SECTION): Remove.
928 (TARGET_ASM_UNIQUE_SECTION): New.
929 * config/mips/elf64.h: Likewise.
930 * config/mips/iris6gld.h: Likewise.
931 * config/mips/linux.h: Likewise.
932 * config/mips/mips-protos.h: Update.
933 * config/mips/mips.c (mips_select_section): Add align argument.
934 * config/mips/mips.h (SELECT_SECTION): Remove.
935 (TARGET_ASM_SELECT_SECTION): New.
937 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
938 * config/mmix/mmix.c (mmix_select_section): Remove.
939 (mmix_unique_section): Remove.
940 * config/mmix/mmix-protos.h: Update.
942 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
943 (SELECT_SECTION): Move ...
944 * config/pa/pa.c (pa_select_section): ... here.
945 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
947 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
948 from rs6000_select_section and make static.
949 (rs6000_elf_unique_section): Similarly.
950 (rs6000_xcoff_select_section): From xcoff.h.
951 (rs6000_xcoff_unique_section): Likewise.
952 * config/rs6000/rs6000-protos.h: Update.
953 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
954 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
955 * config/rs6000/xcoff.h: Likewise.
957 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
958 (SELECT_SECTION): Move ...
959 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
961 * config/v850/v850.h (SELECT_SECTION): Move ...
962 * config/v850/v850.c (v850_select_section): ... here.
963 (TARGET_ASM_SELECT_SECTION): New.
965 * config/vax/vms.h (SELECT_SECTION): Move ...
966 * config/vax/vax.c (vms_select_section): ... here.
967 (TARGET_ASM_SELECT_SECTION): New.
969 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
970 for the target hooks.
972 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
974 * config/arm/arm.c (emit_multi_reg_push): Do not set
975 RTX_FRAME_RELATED_P on the SEQUENCE.
977 2002-05-16 Richard Henderson <rth@redhat.com>
979 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
980 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
982 2002-05-16 Richard Henderson <rth@redhat.com>
984 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
986 * config/ia64/ia64.c (saveable_obstack): Do not declare.
988 2002-05-16 Richard Henderson <rth@redhat.com>
990 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
991 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
992 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
993 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
994 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
995 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
996 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
997 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
998 Revert "Basic block renumbering removal", and two followup patches.
1000 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
1002 * lcm.c (optimize_mode_switching): Revert previous change.
1004 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1006 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
1007 with only extant block numbers.
1009 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
1011 * lcm.c (optimize_mode_switching): Fix typo.
1013 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1015 * flow.c (calculate_global_regs_live): Queue blocks in program order.
1017 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1019 * doc/install.texi (Configuration): Document PWDCMD.
1021 2002-05-16 Dale Johannesen <dalej@apple.com>
1023 * combine.c (cant_combine_insn_p): Reenable combinations
1024 involving hard regs unless CLASS_LIKELY_SPILLED_P.
1026 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1028 * c-common.c (cb_register_builtins): Handle more built-ins
1029 here rather than in gcc.c specs.
1030 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
1031 (cpp_options): Pass -O flags even when only preprocessing.
1032 * toplev.c (set_fast_math_flags): New prototype.
1033 (fast_math_flags_set_p): New.
1034 (set_no_fast_math_flags): Remove.
1035 (decode_f_option): Update.
1036 * toplev.h (set_fast_math_flags): Update.
1037 (fast_math_flags_set_p): New.
1038 (set_no_fast_math_flags): Remove.
1040 * c4x/c4x.c (c4x_override_options): Update.
1042 2002-05-16 Zack Weinberg <zack@codesourcery.com>
1044 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
1045 Default-define here.
1046 (builtin_define_with_value): Can now wrap the expansion in
1047 quotation marks if such is wanted.
1048 (cb_register_builtins): Update calls to builtin_define_with_value.
1049 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
1051 (c_common_init): Set options->stdc_0_in_system_headers.
1052 * c-lex.h: Update prototype of builtin_define_with_value.
1053 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
1054 and REGISTER_PREFIX.
1056 * cppinit.c (VERS, ULP, C, X): Kill.
1057 (builtin_array): Remove entries for __VERSION__,
1058 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
1059 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
1061 (init_builtins): Kill off a bunch of now-dead code.
1062 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
1063 -fno-leading-underscore.
1064 (cpp_handle_option): Remove code to set user_label_prefix.
1065 (cpp_post_options): Likewise.
1067 * cpplib.h (struct cpp_options): Remove user_label_prefix.
1068 (stdc_0_in_system_headers): New.
1069 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
1070 stdc_0_in_system_headers) too to decide the value of __STDC__.
1072 * tradcpp.c (user_label_prefix): Kill.
1073 (main): Remove code handling -f(no-)leading-underscore.
1074 (initialize_builtins): Don't define __REGISTER_PREFIX__
1075 or __USER_LABEL_PREFIX__.
1076 (install_value): Wrap compound statement in dummy loop so the
1077 macro works properly in an if statement.
1080 2002-05-16 Janis Johnson <janis187@us.ibm.com>
1082 * loop.h (struct loop_info): Add member has_prefetch.
1083 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
1084 (prescan_loop): Initialize has_prefetch.
1085 (struct prefetch_info): Change prefetch_in_loop and
1086 prefetch_before_loop from bit fields to ints.
1087 (emit_prefetch_instructions): Several small fixes.
1088 (check_dbra_loop): Don't reverse loop that uses prefetch.
1090 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1092 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
1093 * configure.in: Likewise.
1094 * fixinc/check.tpl: Likewise.
1095 * fixinc/fixinc.dgux: Likewise.
1096 * fixinc/fixinc.svr4: Likewise.
1097 * fixinc/fixinc.winnt: Likewise.
1098 * fixinc/fixincl.sh: Likewise.
1099 * fixproto: Likewise.
1100 * configure: Regenerate.
1102 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1104 Basic block renumbering removal:
1105 * basic_block.h (struct basic_block_def): Renamed index to sindex,
1106 added prev_bb and next_bb fields.
1107 (n_basic_blocks): Renamed to num_basic_blocks.
1108 (last_basic_block): New, index of last basic block.
1109 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1110 traversing basic block chain.
1111 (BLOCK_NUM): index -> sindex.
1112 (create_basic_block_structure, create_basic_block): Declaration changed.
1113 (debug_num2bb): Declare.
1114 (expunge_block_nocompact): Declaration removed.
1115 (link_block, unlink_block, compact_blocks): Declare.
1116 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
1117 * cfg.c (entry_exit_blocks): Initialize new fields.
1118 (clear_edges, alloc_block, expunge_block, cached_make_edge,
1119 redirect_edge_pred, dump_flow_info, dump_edge_info,
1120 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
1121 free_aux_for_edges): Modified.
1122 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
1123 (expunge_block_nocompact): Removed.
1124 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
1125 find_unreachable_blocks, create_edge_list, print_edge_list,
1126 verify_edge_list, flow_edge_list_print, remove_fake_successors,
1127 remove_fake_edges, flow_reverse_top_sort_order_compute,
1128 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1129 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
1130 flow_dfs_compute_reverse_execute): Modified.
1131 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
1132 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
1134 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1135 merge_blocks_move_predecessor_nojumps,
1136 merge_blocks_move_successor_nojumps, merge_blocks,
1137 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
1138 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
1139 * cfglayout.c (skip_insns_after_block, label_for_bb,
1140 record_effective_endpoints, scope_to_insns_finalize,
1141 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
1142 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
1143 cfg_layout_duplicate_bb): Modified.
1144 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
1145 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1146 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
1147 flow_loops_find, flow_loop_outside_edge_p): Modified.
1148 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1149 flow_delete_block, compute_bb_for_insn, split_block,
1150 try_redirect_by_replacing_jump, redirect_edge_and_branch,
1151 force_nonfallthru_and_redirect, tidy_fallthru_edge,
1152 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
1153 commit_edge_insertions, commit_edge_insertions_watch_calls,
1154 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
1155 purge_all_dead_edges): Modified.
1156 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
1157 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1158 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
1160 * conflict.c (conflict_graph_compute): Modified.
1161 * df.c (FOR_ALL_BBS): Removed.
1162 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1163 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
1164 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
1165 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
1166 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1167 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
1168 * final.c (compute_alignments, final_scan_insn): Modified.
1169 * flow.c (verify_local_live_at_start, update_life_info,
1170 update_life_info_in_dirty_blocks, free_basic_block_vars,
1171 delete_noop_moves, calculate_global_regs_live,
1172 initialize_uninitialized_subregs, allocate_bb_life_data,
1173 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
1174 mark_used_reg, count_or_remove_death_notes): Modified.
1175 * function.c (thread_prologue_and_epilogue_insns): Modified.
1176 * gcse.c (struct null_pointer_info): Change typo of current_block
1178 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
1179 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
1180 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
1181 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
1182 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
1183 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
1184 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
1185 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
1186 pre_delete, one_pre_gcse_pass, compute_transpout,
1187 invalidate_nonnull_info, delete_null_pointer_checks_1,
1188 free_code_hoist_mem, compute_code_hoist_vbeinout,
1189 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1190 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
1191 compute_store_table, build_store_vectors, insert_insn_start_bb,
1192 insert_store, replace_store_insn, free_store_memory, store_motion):
1194 * global.c (global_alloc, global_conflicts, mark_elimination,
1195 build_insn_chain): Modified.
1196 * graph.c (print_rtl_graph_with_bb): Modified.
1197 * haifa-sched.c (sched_init): Modified.
1198 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1199 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
1200 if_convert): Modified.
1201 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
1202 compute_insert_delete, pre_edge_lcm, compute_available,
1203 compute_farthest, compute_nearerout, compute_rev_insert_delete,
1204 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
1206 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
1207 * loop.c (loop_dump_aux): Modified.
1208 * predict.c (combine_predictions_for_insn, estimate_probability,
1209 last_basic_block_p, process_note_prediction, process_note_predictions,
1210 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
1211 expensive_function_p, estimate_bb_frequencies,
1212 compute_function_frequency): Modified.
1213 * print-rtl.c (print_rtx): Modified.
1214 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
1215 get_exec_counts, compute_branch_probabilities, compute_checksum,
1216 branch_prob, find_spanning_tree): Modified.
1217 * recog.c (split_all_insns, peephole2_optimize): Modified.
1218 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
1219 convert_regs_1, convert_regs_2, convert_regs): Modified.
1220 * regclass.c (scan_one_insn, regclass): Modified.
1221 * regmove.c (mark_flags_life_zones, regmove_optimize,
1222 combine_stack_adjustments): Modified.
1223 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
1224 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
1225 * reorg.c (dbr_schedule): Modified.
1226 * resource.c (find_basic_block, init_resource_info): Modified.
1227 * sbitmap.c (sbitmap_intersection_of_succs,
1228 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
1229 sbitmap_union_of_preds): Modified.
1230 * sched-deps.c (init_dependency_caches): Modified.
1231 * sched-ebb.c (schedule_ebbs): Modified.
1232 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
1233 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
1234 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
1235 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
1236 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
1237 ssa_const_prop): Modified.
1238 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
1239 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
1240 * ssa.c (remove_phi_alternative, find_evaluations,
1241 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
1242 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
1243 make_regs_equivalent_over_bad_edges,
1244 make_equivalent_phi_alternatives_equival,
1245 compute_conservative_reg_partition,
1246 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
1247 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
1250 2002-05-16 Mark Mitchell <mark@codesourcery.com>
1252 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
1254 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1256 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
1257 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1258 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
1259 calling CONSTANT_POOL_ADDRESS_P.
1260 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
1261 to decide whether to define __arm__ or __thumb.
1262 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
1263 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1265 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1267 * config/arc/arc.h (CPP_PREDEFINES): Remove.
1269 (TARGET_CPU_CPP_BUILTINS): New.
1271 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1273 * cpphash.h (cpp_macro): Move here, and make expansion a union.
1274 * cppmacro.c (cpp_macro): Remove.
1275 (enter_macro_context, replace_args, warn_of_redefinition,
1276 _cpp_create_definition, cpp_macro_definition): Update.
1278 2002-05-16 Jason Merrill <jason@redhat.com>
1280 * config/mips/mips.c (mips_output_external): Don't do sdata
1281 optimization for a variable with DECL_COMDAT set.
1283 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1285 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
1286 Cleanups for accepting modifiers on pointers.
1287 Fix predicate typos.
1288 Allow long pointers as well as int pointers.
1290 2002-05-15 Richard Henderson <rth@redhat.com>
1292 * varasm.c (merge_weak): Remove special case for extern and common.
1294 2002-05-15 Matt Hiller <hiller@redhat.com>
1296 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
1298 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
1299 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
1300 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
1301 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
1302 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
1303 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
1305 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1307 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
1309 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1311 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
1312 ("altivec_mfvscr"): Read from VSCR.
1314 Add vscr sets for the following insns: altivec_vctuxs,
1315 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
1316 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
1317 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
1318 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
1319 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
1320 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
1321 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
1322 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
1323 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
1324 altivec_vsum2sws, altivec_vsumsws.
1326 * config/rs6000/rs6000.h: Add VSCR fixed register.
1327 (CALL_REALLY_USED_REGISTERS): Add vscr.
1328 (CALL_USED_REGISTERS): Same.
1329 (FIXED_REGISTERS): Same.
1330 (REG_ALLOC_ORDER): Same.
1331 (reg_class): Add VSCR_REGS.
1332 (REG_CLASS_NAMES): Same.
1333 (REG_CLASS_CONTENTS): Same.
1335 (REGISTER_NAMES): Add vscr.
1336 (DEBUG_REGISTER_NAMES): Same.
1337 (ADDITIONAL_REGISTER_NAMES): Same.
1338 (FIRST_PSEUDO_REGISTER): Increment.
1339 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
1341 2002-05-15 Jakub Jelinek <jakub@redhat.com>
1343 * fold-const.c (fold): Fix a typo.
1345 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
1347 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
1348 comparison against the highest or lowest integer value before
1349 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
1350 transformation and that of an unsigned comparison against 0
1353 2002-05-15 Richard Henderson <rth@redhat.com>
1355 * varasm.c (merge_weak): Error for any weakening after definition.
1356 Adjust weakening after use warning to catch more cases.
1357 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
1358 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
1360 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1362 * invoke.texi (-malign-double): Re-add lost warning.
1364 * i386-protos.h (x86_output_mi_thunk): Declare.
1365 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
1366 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
1368 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
1369 when flag_asynchronous_unwind_tables is set.
1371 * flags.h (flag_reorder_functions): Declare.
1372 * function.c (prepare_function_start): Initialize frequnecy.
1373 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
1374 * Makefile.in (predict.o): Add dependency on target.h and params.h
1375 * defaults.h (HOT_TEXT_SECTION_NAME,
1376 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
1377 * predict.c (choose_function_section): New function.
1378 (estimate_bb_frequencies): Use it.
1379 * toplev.c (flag_reorder_functions): New global variable.
1380 (lang_independent_options): New.
1381 (parse_options_and_default_flags): Set.
1382 * varasm.c (assemble_start_function): Bypass functdion alignment
1383 for never executed functions.
1384 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
1385 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
1386 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1389 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
1391 * predict.c: Inlude profile.h
1392 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
1393 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
1394 Use the information about maximal counter in the program.
1396 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
1398 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
1399 probably_never_executed_bb_p): New functions.
1400 * cfgcleanup.c (outgoing_edges_match): Use them.
1401 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
1402 (maybe_hot_bb_p, probably_cold_bb_p,
1403 probably_never_executed_bb_p): New functions.
1405 * function.h (function): Add new field function_frequency.
1406 * predict.c (compute_function_frequency): New function.
1407 (estimate_probability): Call it.
1409 2002-03-09 Jakub Jelinek <jakub@redhat.com>
1411 PR optimization/5172, optimization/5200
1412 * gcse.c (gcse_main): Disable store_motion.
1414 2002-05-14 Zack Weinberg <zack@codesourcery.com>
1416 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
1417 (c_common_nodes_and_builtins): Use it.
1418 (builtin_define_with_value): New function.
1419 (cb_register_builtins): Define __SIZE_TYPE__,
1420 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
1421 using builtin_define_with_value. Use consistent notation when
1422 defining __GXX_WEAK__.
1423 (WCHAR_TYPE_SIZE): Don't redefine.
1424 (combine_strings): Don't use WCHAR_TYPE_SIZE.
1426 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
1427 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
1428 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
1429 * tradcpp.c (initialize_builtins): Likewise.
1430 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
1432 * c-lex.h (builtin_define_with_value): Prototype.
1433 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
1434 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
1435 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
1437 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
1438 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
1439 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
1440 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
1441 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
1442 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
1443 config/sparc/sol2-bi.h, config/sparc/sparc.h:
1444 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
1445 to __SIZE_TYPE__ etc from all spec strings. When this makes
1446 extra specs empty, delete them.
1448 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
1450 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
1451 for PA8000 or generating dwarf2 call frame information.
1452 (output_call): Remove DO_FRAME_NOTES check from return pointer
1454 (following_call): Return 0 when scheduling for PA8000 or generating
1455 dwarf2 call frame information. Revise comment.
1457 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1460 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
1461 and __IEEE_FP_INEXACT as appropriate.
1462 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
1463 (CPP_SPEC): Remove ieee defines.
1464 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
1466 2002-05-14 Richard Henderson <rth@redhat.com>
1468 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
1469 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
1471 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1473 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
1475 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
1476 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
1477 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
1478 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
1479 (EXTRA_SPECS): Update.
1480 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
1481 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
1482 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
1483 define TARGET_OS_CPP_BUILTINS if necessary.
1485 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1487 * gcc.c (cpp_options): Must pass -m* and -f* options
1488 to the front end even when only preprocessing.
1489 (cc1_options): Remove redundant -lang-c.
1490 * tradcpp.c (main): Ignore -m options.
1492 * lang-specs.h: Similarly.
1494 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
1496 * genautomata.c (transform_3): Add code for transformation
1497 `(A,B,...)+C -> A+C,B,...'.
1499 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
1501 * final.c (end_final): Do not output profile_arcs constructor, when
1502 no functions are instrumented.
1504 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
1506 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
1508 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1510 * doc/install.texi: Remove special markup originally required for
1511 HTML generation with texi2html.
1513 2002-05-14 Andreas Schwab <schwab@suse.de>
1515 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
1517 (UNIQUE_SECTION): Define to get small data correctly.
1519 * varasm.c (resolve_unique_section): Add third parameter
1520 flag_function_or_data_sections and use it instead of
1521 flag_function_sections.
1522 (assemble_start_function): Pass flag_function_sections.
1523 (asm_emit_uninitialised): Pass flag_data_sections.
1524 (assemble_variable): Likewise.
1526 2002-05-14 Richard Henderson <rth@redhat.com>
1528 * config/i386/i386.md: Use define_constants for unspec numbers.
1529 * config/i386/i386.c: Likewise.
1531 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1533 * doc/contrib.texi: Update my entry.
1535 2002-05-13 Mark Mitchell <mark@codesourcery.com>
1537 * fixinc/inclhack.def (winidss_valist): Limit applicability.
1538 * fixinc/fixincl.x: Regenerated.
1539 * fixinc/tests/base/math.h: Update.
1540 * fixinc/tests/base/testing.h: Likewise.
1542 2002-05-13 Zack Weinberg <zack@codesourcery.com>
1544 * genattr.c (gen_attr): Don't emit a comma after the last
1547 2002-05-13 Richard Henderson <rth@redhat.com>
1549 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
1551 * recog.c (peephole2_optimize): Likewise.
1553 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
1555 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
1558 2002-05-13 Jeffrey A Law (law@redhat.com)
1560 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
1561 Update prototype and callers.
1562 (propagate_one_insn): Stack pointer adjustments kill MEMs on
1563 the mem_set_list which reference the stack pointer, as do
1564 calls to constant functions as they may clobber outgoing
1567 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
1569 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1570 (ia32_multipass_dfa_lookahead): New function.
1572 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1574 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
1575 (translate_options): Remove 'V'.
1576 (process_command): Similarly.
1578 * invoke.texi: Remove documentation of 'V'.
1580 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1582 * config/s390/linux.h: Revert 2002-04-22 changes.
1584 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
1586 * config/fr30/fr30.md: Only allow splits of immediate loads
1587 if the destination is a register.
1589 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1591 * Makefile.in (c-common.o, cppinit.o): Update.
1592 * c-common.c: Include except.h.
1593 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
1594 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
1595 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
1596 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
1597 CPP_PREDEFINES): Handle here.
1599 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
1600 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
1601 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
1602 TARGET_OS_CPP_BUILTINS.
1603 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
1604 (CPP_SPEC, EXTRA_SPECS): Update.
1605 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
1606 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
1607 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
1608 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
1609 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
1611 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
1612 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
1614 2002-05-12 Zack Weinberg <zack@codesourcery.com>
1616 * emit-rtl.c (global_rtl): Update comment.
1617 (const_double_htab, const_double_htab_hash,
1618 const_double_htab_hash, lookup_const_double): New.
1619 (const_int_htab_hash, const_int_htab_eq): Remove const
1620 qualifiers, which cause tons of warnings with RTL checking on.
1621 (gen_rtx_CONST_DOUBLE): Deleted.
1622 (const_double_from_real_value): New function - bears some
1623 resemblance to the former immed_real_const_1.
1624 (immed_double_const): Moved here from varasm.c and
1626 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
1627 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
1628 (gen_rtx): Use immed_double_const.
1629 (init_emit_once): Initialize the const_double_htab. Use
1630 REAL_VALUE_FROM_INT where possible. Can now use
1631 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
1632 * varasm.c (struct varasm_status): Remove x_const_double_chain.
1633 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
1634 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
1635 (init_varasm_status, mark_varasm_status): Don't touch
1636 x_const_double_chain.
1638 * output.h: Delete prototype for clear_const_double_mem.
1639 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
1640 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
1641 const_double_from_real_value, not immed_real_const_1, and use
1642 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
1644 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
1645 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
1646 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
1647 (gen_rtx_REG): Second arg is unsigned.
1649 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
1650 (excluded_rtx): New, return true for CONST_DOUBLE.
1651 (genmacro): Write nothing for excluded codes.
1652 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
1653 * expr.c (expand_expr): Likewise.
1654 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
1656 * toplev.c (rest_of_compilation): Don't call
1657 clear_const_double_mem.
1659 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
1660 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
1661 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
1662 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
1663 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
1664 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
1665 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
1666 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
1668 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1670 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1672 2002-05-12 Tom Tromey <tromey@redhat.com>
1674 * tree.h (copy_node): Don't mention TREE_PERMANENT.
1676 2002-05-12 Zack Weinberg <zack@codesourcery.com>
1678 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
1679 (scan_comma_elt): New function. Accepts whitespace in comma lists.
1680 * gensupport.h: Prototype new routines.
1681 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
1683 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
1684 (next_comma_elt): Use scan_comma_elt.
1686 * config/i386/i386.md: Use new attribute notation to break up
1687 long lines in define_attr forms.
1689 2002-05-12 Richard Henderson <rth@redhat.com>
1691 * expr.c (compress_float_constant): New.
1692 (emit_move_insn): Use it.
1693 (float_extend_from_mem): New.
1694 (init_expr_once): Initialize it.
1695 * real.c (exact_real_truncate): New.
1697 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1698 dropped into memory; penalize for size.
1699 (RTX_COSTS): FLOAT_EXTEND is free.
1700 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1701 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1703 2002-05-12 Richard Henderson <rth@redhat.com>
1705 * profile.h (profile_info): Add missing extern to declaration.
1706 * profile.c (profile_info): Define it.
1708 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1710 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1711 used for DImode and TImode.
1713 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
1715 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1718 2002-05-11 Zack Weinberg <zack@codesourcery.com>
1720 * config/rs6000/rs6000.c (rs6000_default_long_calls,
1721 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1722 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1723 (rs6000_override_options): Handle -m(no-)longcall.
1724 (init_cumulative_args, output_mi_thunk): Check for both
1725 longcall and shortcall attributes on the function.
1726 (rs6000_attribute_table): Add "shortcall".
1727 (rs6000_handle_longcall_attribute): Update comment.
1728 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1729 altivec_expand_ternop_builtin): Add default clauses to switches
1730 to silence warnings.
1732 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1733 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
1734 (TARGET_OPTIONS): Add longcall and no-longcall.
1736 * config/rs6000/rs6000.md (call_nonlocal_sysv,
1737 call_value_nonlocal_sysv): Split by alternatives. One pair
1738 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1739 the call cookie. The other pair accepts only LR/CTR and has
1742 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1743 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1745 * config/rs6000/rs6000-c.c: New file.
1746 * config/rs6000/t-rs6000-c-rule: New file.
1747 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1748 Prototype rs6000_pragma_longcall.
1750 * doc/extend.texi: Document shortcall attribute.
1751 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1753 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1755 * reorg.c (dbr_schedule): Remove unnecessary test.
1757 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1759 * i386.md (testsi to testqi spliters): New.
1761 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
1763 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1765 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
1767 * basic-block.h: New flag EDGE_CAN_FALLTHRU
1768 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1769 that can be made fallthru.
1771 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
1773 * cfglayout.c (cleanup_unconditional_jumps): New static function.
1774 (cfg_layout_initialize): Use it.
1776 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
1778 * config/avr/avr.c (avr_mcu_types): Update supported devices.
1779 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1780 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1782 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
1784 * dbxout.c: Fix formatting.
1785 * dependence.c: Likewise.
1787 * diagnostic.c: Likewise.
1788 * doloop.c: Likewise.
1789 * dominance.c: Likewise.
1790 * doschk.c: Likewise.
1791 * dwarf2asm.c: Likewise.
1792 * dwarf2out.c: Likewise.
1793 * dwarfout.c: Likewise.
1795 2002-05-10 Richard Henderson <rth@redhat.com>
1797 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
1798 Convert integers constants as needed. Replace "nwords" field with
1800 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1801 * function.h: Fix typo in comment.
1802 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1804 2002-05-10 Roger Sayle <roger@eyesopen.com>
1806 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1807 into the equivalent (signed char)c > 0.
1809 2002-05-10 Janis Johnson <janis187@us.ibm.com>
1811 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1812 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1813 (struct prefetch_info): Fix spelling of member bytes_accessed.
1814 (emit_prefetch_instructions): Make dump messages more regular;
1815 restructure code to add more dump messages; use new macros for
1816 heuristics. (There are no code generation changes in any of this).
1818 2002-05-10 David S. Miller <davem@redhat.com>
1820 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1821 (struct rtx_def): Update unchanging flag comment.
1822 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1823 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1824 to be handled to INSN too.
1825 (dbr_schedule): Likewise.
1826 * resource.c (next_insn_no_annul): Likewise.
1828 * cse.c (rtx_cost): Remove multiplication by power of 2 special
1831 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1833 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1834 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1835 (possibly) work around broken /bin/sh.
1837 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1839 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1840 . as N64/N32 libgcc_s.so subdirs.
1842 2002-05-10 David S. Miller <davem@redhat.com>
1844 * config/sparc/sparc.md: Use define_constants for unspec numbers.
1846 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1848 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1850 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1851 * doc/rtl.texi: Document these macros more accurately.
1852 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1853 JUMP_INSNs and CALL_INSNs.
1854 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1855 or INSN_FROM_TARGET_P if the code is appropriate.
1857 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1859 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1860 before using SYMBOL_REF_FLAG (addr).
1862 * config/avr/avr-protos.h (avr_io_address_p): Declare.
1863 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1864 Make non-static. Update all callers.
1865 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1866 New insns to clear/set/test a single bit in I/O address space.
1868 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1870 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1872 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1874 * Makefile.in: Update.
1875 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1876 builtin_define_std): New.
1877 (c_common_init): Register CPP builtins callback.
1878 * c-common.h (flag_iso, flag_undef): New.
1879 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1880 * c-lex.c: Don't include target.h.
1881 (cb_register_builtins): Move to c-common.c.
1882 (init_c_lex): Don't register hook here.
1883 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1884 (cpp_define, cpp_assert): Remove.
1885 * gcc.c (cc1_options): Pass -undef to front end.
1886 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1887 (TARGET_INITIALIZER): Update.
1888 * target.h (struct cpp_reader): Don't predeclare.
1889 (struct gcc_target): Remove cpp builtin hook.
1890 * tree.c (default_register_cpp_builtins): Remove.
1894 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1896 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1898 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1900 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1901 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1903 2002-05-09 Jakub Jelinek <jakub@redhat.com>
1905 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1906 * config/sparc/libgcc-sparc-glibc.ver: New file.
1907 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1908 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1910 2002-05-09 Jakub Jelinek <jakub@redhat.com>
1913 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1914 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1915 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1917 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1918 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1919 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1920 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1922 2002-05-09 Richard Henderson <rth@redhat.com>
1924 * config/ia64/ia64.md: Use define_constants for unspec numbers.
1925 * config/ia64/ia64.c: Likewise.
1927 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
1929 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1930 (save_restore_insns): Likewise.
1931 (mips_expand_prologue, mips_expand_epilogue): Update callers.
1932 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1934 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
1936 * athlon.md, k6.md, pentium.md, ppro.md): New files.
1937 * i386.md: Move scheduling information into new files.
1939 * i386.md (type attribute): Add "rotate" for rotate insns.
1940 (rotate insns): Set type to "rotate".
1941 (various attributes and function units): Treat rotate like shift.
1942 (pent_pair attribute): Only rotates by one bit position are
1944 (sbb insns): Explicitly set pent_pair attribute on a couple
1945 that were missing it.
1947 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1949 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1950 make sure that buffer starts on odd word address.
1951 (sh_va_arg): Skip odd fp registers when reading a double precision
1954 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1956 * tree.h (preserve_data, object_permanent_p, type_precision):
1959 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1961 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1962 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1964 * cpp.texi: Update for removal of obsolete features.
1966 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
1967 Jeffrey A Law (law@redhat.com)
1969 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
1970 the DFA interface for Pentium processors.
1971 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1972 (attr_pent_pair, ix86_pent_find_pair): Remove.
1973 (ix86_sched_reorder_pentium): Remove.
1974 (ix86_sched_reorder): Remove reordering for Pentium.
1975 * i386.md (Pentium scheduling): Rewrite using DFA description.
1977 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1979 * cfganal.c (can_fallthru): Fix fast path.
1980 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1981 with edges to the next block.
1983 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
1984 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1986 * final.c (end_final): Use C trees to output data structures for profiling.
1988 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1989 (profile.o): New dependency profile.h
1990 (final.o): New dependency profile.h
1991 * profile.h: New file. New global structure profile_info.
1992 * final.h (count_edges_instrumented_now): Declare.
1993 (current_function_cfg_checksum): Declare.
1994 (function_list): New structure.
1995 (functions_head, functions_tail): New static variables.
1996 (end_final): Emits more data, removed some -ax stuff.
1997 (final): Stores function names and chcksums.
1998 * gcov-io.h (__write_gcov_string): New function.
1999 (__read_gcov_string): New function.
2000 * gcov.c (read_profile): New function.
2001 (create_program_flow_graph): Uses read_profile instead of reading
2003 (read_files): Removed da_file checking, it's done by read_profile now.
2004 * libgcc2.c (bb_function_info): New structure.
2005 (bb): New field in structure, removed some -ax stuff.
2006 (__bb_exit_func): Changed structure of da_file.
2007 * profile.c (count_edges_instrumented_now): New global variable.
2008 (current_function_cfg_checksum): New global variable.
2009 (max_counter_in_program): New global variable.
2010 (get_exec_counts): New function.
2011 (compute_checksum): New function.
2012 (instrument_edges): Sets count_edges_instrumented_now.
2013 (compute_branch_probabilities): Uses get_exec_counts instead of
2015 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
2016 (init_branch_prob): Removed da_file checking, done in get_exec_counts
2018 (end_branch_prob): Removed da_file checking, done in get_exec_counts
2020 * gcov.texi: Updated information about gcov file format.
2022 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
2024 * sbitmap.c: Fix formatting.
2026 * scan-decls.c: Likewise.
2027 * sched-deps.c: Likewise.
2028 * sched-ebb.c: Likewise.
2029 * sched-rgn.c: Likewise.
2030 * sched-vis.c: Likewise.
2031 * sdbout.c: Likewise.
2032 * sibcall.c: Likewise.
2033 * simplify-rtx.c: Likewise.
2035 * ssa-ccp.c: Likewise.
2036 * ssa-dce.c: Likewise.
2038 * stor-layout.c: Likewise.
2039 * stringpool.c: Likewise.
2041 2002-05-09 David S. Miller <davem@redhat.com>
2043 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
2045 2002-05-07 David S. Miller <davem@redhat.com>
2047 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
2048 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
2049 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
2050 library implementation clobbers the output before the inputs
2051 are fully consumed, use stack temporary for the output.
2053 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
2055 * config/netbsd.h (CPP_SPEC): Remove.
2056 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
2057 * config/i386/netbsd.h (CPP_SPEC): Define.
2058 * config/ns32k/netbsd.h (CPP_SPEC): Define.
2059 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
2060 * config/sparc/netbsd.h (CPP_SPEC): Define.
2061 * config/vax/netbsd.h (CPP_SPEC): Define.
2063 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
2065 * read-rtl.c: Fix formatting.
2067 * recog.c: Likewise.
2068 * regclass.c: Likewise.
2069 * regmove.c: Likewise.
2070 * reg-stack.c: Likewise.
2071 * reload1.c: Likewise.
2072 * reload.c: Likewise.
2073 * resource.c: Likewise.
2074 * rtlanal.c: Likewise.
2076 * rtl-error.c: Likewise.
2078 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
2080 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
2081 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
2083 2002-05-08 Bernd Schmidt <bernds@redhat.com>
2085 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
2086 use __SSE2__ macro instead.
2087 * config/i386/xmmintrin.h: Likewise.
2089 2002-05-08 Janis Johnson <janis187@us.ibm.com>
2091 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
2092 and use it in all invocations of these macros. Clean up comments.
2093 * rtl.c (rtl_check_failed_flag): Add an argument for the name
2094 of the flag access macro whose check failed.
2095 * doc/rtl.texi (Flags): Document additional flag uses.
2097 2002-05-08 Robert Spier <rspier@pobox.com>
2098 Neil Booth <neil@daikokuya.demon.co.uk>
2100 PR preprocessor/6521
2101 * cppfiles.c (handle_missing_header): Don't do anything
2102 different for <> includes.
2104 * cppopts.texi: Update documentation for -MG.
2106 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
2108 * cpplex.c (cpp_interpret_charconst): Truncate as well as
2111 * cpp.texi: Clarify multichar charconst valuation.
2113 2002-05-08 Mark Mitchell <mark@codesourcery.com>
2115 * doc/invoke.texi: Document -mwindiss option.
2117 2002-05-08 Jason Merrill <jason@redhat.com>
2119 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
2121 * dwarf2out.c (gen_type_die): Abort on broken recursion.
2124 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
2127 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
2129 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
2130 little-endian multilibs to override arm/thumb multilibs.
2131 Do not build hardware floating point multilibs, nor apcs-26
2132 multilibs for the Thumb.
2134 2002-05-08 Mark Mitchell <mark@codesourcery.com>
2137 * varasm.c (mark_weak): New function.
2138 (merge_weak): Use it. Do not call declare_weak.
2139 (declare_weak): Use merge_weak.
2141 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2143 * cse.c (dead_libcall_p): Update counts.
2144 (delete_trivially_dead_insns): Update call of dead_libcall_p.
2146 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2148 * cfglayout.c (function_tail_eff_head): Rename to ...
2149 (function_footer): ... this one.
2150 (unlink_insn_chain): New functions.
2151 (label_for_bb): Only call block_label and emit debug message.
2152 (record_effective_endpoints): Actually unlink the headers and footers.
2153 (fixup_reorder_cahin): Re-insert the unlinked sequences.
2154 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
2155 * cfglayout.h (struct reorder_block_def): New fields footer/header;
2156 remove eff_head/eff_end.
2157 * rtl.h (set_first_insn): Declare.
2158 * emit-rtl.c (set_first_insn): New function.
2160 * cfglayout.c (fixup_reorder_chain): Dump duplicated
2161 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2162 cfg_layout_duplicate_bb): New global function.
2163 (duplicate_insn_chain): New static function.
2164 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2165 cfg_layout_duplicate_bb): Declare.
2166 (struct reorder_block_def): Add "original" field.
2167 * emit-rtl.c (emit_copy_of_insn_after): New function.
2168 * rtl.h (emit_copy_of_insn_after): Declare.
2170 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
2171 (fixup_reorder_chain): properly handle edges to exit block.
2173 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2174 Jan Hubicka <jh@suse.cz>
2176 * basic-block.h (note_prediction_to_br_prob): declare.
2177 * c-semantics.c: Inlucde predit.h
2178 (expand_stmt): predict GOTO_STMT as not taken.
2179 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
2180 (cleanup_cfg): Do not free tail_recursion_list.
2181 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
2182 (flow_delete_block): Kill predictions past end of basic block.
2183 * output.h (delete_unreachable_blocks): Declare.
2184 * predict.c (predicted_by_p, process_note_predictions,
2185 process_note_prediction, last_block_p): New function.
2186 (estimate_probability): Bypass loop on PRED_CONTINUE;
2187 do not handle noreturn heuristics; kill PRED_RETURN; add
2189 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
2190 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
2191 * predict.h (IS_TAKEN): New constant.
2192 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
2193 * rtl.c (NOTE_INSN_PREDICTION): New.
2194 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
2196 (insn_note): add NOTE_INSN_PREDICTION.
2197 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
2198 CFG; free tail_recursion_label_list.
2199 * stmt.c: Include predict.h;
2200 (return_prediction): New.
2201 (expand_value_return): Use it.
2202 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
2204 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
2206 * config/mips/mips.md: Name the unspecs with define_constant.
2207 (*HILO_delay): Rename to 'hilo_delay' (no star).
2208 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
2209 (reload_outdi, reload_outsi): Likewise.
2211 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2213 * toplev.c: Fix formatting.
2215 2002-05-07 Janis Johnson <janis187@us.ibm.com>
2217 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
2218 * configure.in (ac_rtlflag_checking): New.
2219 * doc/install.texi (--enable-checking): Document RTL flag checking.
2221 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2223 * c-common.c (c_common_init): Set options->unsigned_wchar.
2224 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
2225 group target dependencies.
2226 (init_builtins, cpp_handle_option): Update.
2227 * cpplex.c (cpp_interpret_charconst): Update.
2228 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
2229 signed_char to unsigned_char, group target dependencies.
2230 * defaults.h (WCHAR_UNSIGNED): Remove.
2231 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
2233 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
2234 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
2235 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
2236 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
2237 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
2239 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
2241 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2243 * fixinc/inclhack.def (windiss_math1): New fix.
2244 (windiss_math2): Likewise.
2245 (windiss_valist): Likewise.
2246 * fixinc/fixincl.x: Regenerated.
2248 2002-05-07 Andreas Jaeger <aj@suse.de>
2250 * genautomata.c (output_internal_min_issue_delay_func): Add
2251 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
2252 (output_internal_trans_func): Likewise.
2254 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
2256 * pa.c (hppa_profile_hook): Use force_reg to get the address
2257 of the profile hook into an appropriate pseudo register.
2259 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2261 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
2262 (LINK_START_SPEC): Handle it.
2263 (LINK_OS_SPEC): Likewise.
2264 (CPP_SPEC): Likewise.
2265 (STARTFILE_SPEC): Likewise.
2266 (LIB_SPEC): Likewise.
2267 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
2269 (CRTSAVRES_DEFAULT_SPEC): New macro.
2270 (LIB_WINDISS_SPEC): New macro.
2271 (CPP_OS_WINDISS_SPEC): Likewise.
2272 (STARTFILE_WINDISS_SPEC): Likewise.
2273 (ENDFILE_WINDISS_SPEC): Likewise.
2274 (LINK_START_WINDISS_SPEC): Likewise.
2275 (LINK_OS_WINDISS_SPEC): Likewise.
2276 * config/rs6000/windiss.h: New file.
2278 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
2280 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
2282 2002-05-06 David S. Miller <davem@redhat.com>
2284 * config/sparc/sparc.md (shift insns): Do not mask off
2285 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
2288 2002-05-06 Richard Henderson <rth@redhat.com>
2291 * expr.c (highest_pow2_factor_for_type): New.
2292 (expand_assignment): Use it.
2294 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
2296 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
2298 ("altivec_mfvscr"): Same.
2300 2002-05-06 Janis Johnson <janis187@us.ibm.com>
2302 * rtl.h (struct rtx_def): Update comments.
2303 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
2304 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
2305 RTL_FLAG_CHECK macros with list of expected RTL codes.
2306 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
2307 (rtl_check_failed_flag): New.
2308 * reload1.c (reload): Use REG macro before changing rtx to MEM.
2309 (reload_cse_noop_set_p): Check rtx code before using access macro.
2310 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
2311 before using access macro.
2313 2002-05-06 Janis Johnson <janis187@us.ibm.com>
2315 * doc/rtl.texi (Flags): Update to reflect current usage.
2317 2002-05-06 Roger Sayle <roger@eyesopen.com>
2320 * fold-const.c (sign_bit_p): New function.
2321 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
2322 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
2323 Reapply fold when converting (A & C) == C into (A & C) != 0.
2324 (fold_binary_op_with_conditional_arg): Fix typo in comment.
2326 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2328 * c-common.c (warn_multichar): New.
2329 (c_common_init): Set CPP's warn_multichar.
2330 * c-common.h (warn_multichar): New.
2331 * c-decl.c (warn_multichar): Remove.
2332 * c-lex.c (lex_charconst): Update.
2333 * c-tree.h (warn_multichar): Remove.
2334 * cppexp.c (eval_token): Sign-extend charconst value.
2335 * cppinit.c (cpp_create_reader): Set warn_multichar.
2336 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
2337 each character. Update prototype. Sign-extend the result.
2338 * cpplib.h: Fix conditions.
2339 (struct cpp_options): Add new warning flag.
2340 (cpp_interpret_charconst): Update prototype.
2342 * cpp.texi: Update documentation.
2344 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
2346 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2347 Fix typo in usage of allof instead of unit.
2349 2002-05-06 Richard Henderson <rth@redhat.com>
2351 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
2352 and any jump or call for IN.
2354 2002-05-06 Bernd Schmidt <bernds@redhat.com>
2356 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
2358 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
2360 2002-05-06 Roger Sayle <roger@eyesopen.com>
2362 * fold-const.c (lshift-double): Cast the high word to an unsigned
2363 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
2364 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
2365 avoid compiler warning. (fold): Remove redundant code from
2366 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
2368 2002-05-06 Jeff Law <law@redhat.com>
2370 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
2371 * pa.c (pa_adjust_cost): Remove all true dependency cost
2372 adjustments. Also remove support for non-DFA scheduling.
2373 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
2374 to adjust true dependency costs. Update various comments.
2375 (7100lc, 7200, 7300 scheduling): Simplify by combining the
2376 FP ALU & MPY units into a single unit.
2378 2002-05-06 Catherine Moore <clm@redhat.com>
2380 * config/v850/v850.c (compute_register_save_size): Make sure
2381 to count all of the registers that will be saved.
2383 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2385 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
2387 2002-05-06 David S. Miller <davem@redhat.com>
2389 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
2390 allow result to overlap input operands in memory.
2392 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
2395 * cpp.texi: Update multichar charconst docs.
2397 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
2399 * cpplex.c (cpp_interpret_charconst): Sign-extend each
2400 character. Don't ignore excess characters. Treat
2401 multicharacter character constants as signed.
2402 (cpp_parse_escape): Clarify diagnostic.
2404 2002-05-05 Jakub Jelinek <jakub@redhat.com>
2406 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
2407 use add instead of shift.
2408 (ashldi3_sp64): Likewise.
2409 (ashlsi3_const1, ashldi3_const1): Remove.
2410 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
2411 * config/sparc/sparc.c (const1_operand): New.
2413 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
2415 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
2417 2002-05-05 Jakub Jelinek <jakub@redhat.com>
2420 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
2422 2002-05-05 Richard Henderson <rth@redhat.com>
2424 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
2425 memory latency adjustments.
2426 (alpha_variable_issue): Remove.
2427 (alpha_use_dfa_pipeline_interface): New.
2428 (alpha_multipass_dfa_lookahead): New.
2429 * config/alpha/alpha.md: Remove define_function_unit scheduling;
2430 include new dfa scheduling.
2431 (attr type): Add none.
2433 * config/alpha/ev4.md: New.
2434 * config/alpha/ev5.md: New.
2435 * config/alpha/ev6.md: New.
2437 2002-05-05 David S. Miller <davem@redhat.com>
2439 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
2441 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
2443 * cse.c: Fix formatting.
2444 * emit-rtl.c: Likewise.
2446 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2448 * genautomata.c (initiate_states): Add additional guard to
2449 initialize `units_array'.
2451 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2453 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
2454 process_unit_to_form_the_same_automaton_unit_lists,
2455 form_the_same_automaton_unit_lists
2456 check_unit_distributions_to_automata): New prototypes and
2458 (check_automata): Rename it into `check_automata_insn_issues'.
2459 (unit_decl): New fields `the_same_automaton_unit' and
2460 `the_same_automaton_message_reported_p'.
2461 (unit_decl_t): New typedef.
2462 (the_same_automaton_lists): New gloval variable.
2463 (unit_regexp, unit_set_el, units_array, units_cmp,
2464 output_get_cpu_unit_code_func): Use the typedef.
2465 (evaluate_max_reserv_cycles): Increment
2466 `description->max_insn_reserv_cycles'.
2467 (initiate_states): Don't increment `max_cycles_num'.
2468 (transform_insn_regexps): Move code around transformation of
2469 regexps from `generate'.
2470 (generate): Remove call of `transform_insn_regexps'.
2471 (expand_automata): Call `transform_insn_regexps' and
2472 `check_unit_distributions_to_automata'. Check errors before
2475 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
2476 automaton `ultrasparc3_1'.
2478 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
2480 * c-common.c (c_common_init): Set up CPP arithmetic.
2481 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
2482 something reasonable for the host.
2483 (sanity_checks): Add checks.
2484 (cpp_read_main_file): Call sanity_checks() from here...
2485 (cpp_post_options): ... not here.
2486 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
2487 * cpplib.h (struct cpp_options): New member int_precision.
2489 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2491 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
2493 2002-05-04 David S. Miller <davem@redhat.com>
2495 * config/sparc/linux.h, config/sparc/linux64.h
2496 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
2498 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
2500 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
2502 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
2505 2002-05-05 Tim Josling <tej@melbpc.org.au>
2507 * treelang; New directory for new sample language treelang.
2509 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2511 * Makefile.in (c-lex.o): Update.
2512 * c-lex.c: Include target.h.
2513 (cb_register_builtins): New.
2514 (init_c_lex): Set builtins callback.
2515 * c-lex.h (cpp_define, cpp_assert): New prototypes.
2516 * cppinit.c (init_builtins): Use callback, including for
2518 * cpplib.h (struct cpp_callbacks): New member.
2519 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
2520 (TARGET_INITIALIZER): Update.
2521 * target.h (struct gcc_target): New hook.
2522 * tree.c (default_register_cpp_builtins): New.
2523 * tree.h (default_register_cpp_builtins): New.
2525 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
2527 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2529 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
2530 (cpp_post_options): Move sanity checks to...
2531 (sanity_checks): New.
2532 * cpplex.c (maybe_read_ucs): Fix prototype.
2533 (parse_string, cpp_parse_escape): Cast for %c format specifier.
2534 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
2537 2002-05-04 Bernd Schmidt <bernds@redhat.com>
2539 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
2540 builtins. Use V2DI patterns instead of TI for logical operations.
2541 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
2542 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
2543 (ix86_expand_builtins): Change the pattern used for movntdq.
2544 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
2545 sse2_nandv2di3): New patterns.
2546 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
2548 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
2549 (cvtdq2pd): Correct mode on operand 1.
2550 (sse2_umulsidi3): Describe without unspec.
2551 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
2553 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
2554 (ashlv2di3): Likewise, from sse2_ashlv2di3.
2555 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
2556 ashlv4si3, ashlv2di3): Use SImode for shift count.
2557 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
2558 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
2560 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
2562 (__m128i, __m128d): New macros.
2563 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
2564 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
2565 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
2566 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
2567 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
2568 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
2569 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
2570 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
2571 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
2572 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
2573 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
2574 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
2575 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
2576 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
2577 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
2578 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
2579 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
2580 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
2581 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
2582 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
2583 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
2584 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
2585 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
2586 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
2587 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
2588 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
2589 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
2590 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
2591 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
2592 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
2593 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
2594 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
2595 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
2596 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
2597 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
2598 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
2599 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
2601 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
2602 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
2604 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2606 * dwarf2out.c: Fix formatting.
2607 * varasm.c: Likewise.
2609 2002-05-04 David Edelsohn <edelsohn@gnu.org>
2612 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
2613 clobber and use result as temporary value.
2615 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2617 * expr.c (force_operand): Use expand_simple_* to handle more
2620 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2622 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
2624 (lex_charconst): Update for change in prototype of
2625 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
2627 * cpphash.h (BITS_PER_CPPCHAR_T): New.
2628 * cppinit.c (cpp_create_reader): Initialize them for no
2629 change in semantics.
2630 (cpp_post_options): Add sanity checks.
2631 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
2632 and truncation issues. Calculate in type cppchar_t.
2633 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
2634 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
2635 run-time dependent precision correctly. Return whether the
2636 result is signed or not.
2637 * cpplib.c (dequote_string): Use cppchar_t; update.
2638 * cpplib.h (cppchar_signed_t): New.
2639 struct cpp_options): New precision members.
2640 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
2641 * cppexp.c (eval_token): Update.
2643 2002-05-03 David S. Miller <davem@redhat.com>
2645 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
2646 * config/sparc/sparc.c (sparc_rtx_costs): New function
2647 implementing RTX_COSTS and CONST_COSTS.
2648 * config/sparc/sparc.h (CONST_COSTS): Delete.
2649 (RTX_COSTS_CASES): Define.
2650 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
2653 * config/sparc/sparc.md (DFA schedulers): Split out...
2654 * config/sparc/cypress.md, config/sparc/hypersparc.md,
2655 config/sparc/sparclet.md, config/sparc/supersparc.md,
2656 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
2658 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
2659 checks on it, always defined for Sparc.
2661 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
2662 Tweak, and add more detailed comments.
2664 2002-05-03 Zack Weinberg <zack@codesourcery.com>
2666 * Re-apply patch accidentally reverted with
2667 DFA scheduler merge: remove all rules and variables to slurp
2668 source files out of libiberty and rebuild them with HOST_CC.
2669 ($(HOST_PREFIX_1)varray.o): New rule.
2670 (genattrtab rule): Word wrap.
2672 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2674 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
2675 (CPP_SUBTARGET_SPEC): Define.
2676 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
2677 cpp_subtarget specs.
2678 (CPP_SPEC): Redefine to include %(cpp_subtarget).
2680 2002-05-03 David S. Miller <davem@redhat.com>
2682 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2683 * target.h (struct gcc_target): Delete cycle_display member.
2685 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
2686 (rtx_needs_barrier): Delete reference to cycle_display unspec.
2687 (ia64_sched_reorder2): Mention need for cycle display handling
2688 once such notes exist.
2690 2002-05-03 Richard Henderson <rth@redhat.com>
2692 * real.c (etoasc): Strip most trailing zeros for clarity.
2693 * sched-vis.c: Include real.h.
2694 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
2695 * Makefile.in (sched-vis.o): Add real.h.
2697 2002-05-03 David S. Miller <davem@redhat.com>
2699 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2702 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
2704 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2705 when we get an out of range literal.
2706 (altivec_expand_ternop_builtin): Same.
2707 (altivec_expand_unop_builtin): Same.
2708 (altivec_expand_builtin): Same, for dss.
2709 (altivec_expand_builtin): Use trees instead of rtl when
2710 determining literal argument validity.
2712 2002-05-03 David S. Miller <davem@redhat.com>
2714 Delete cycle display scheduling hook.
2715 * config/ia64/ia64.c (ia64_cycle_display,
2716 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2717 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2718 and use emit_insn_before instead of ia64_emit_insn_before.
2719 * config/ia64/ia64.md (unspec usage): Delete cycle display.
2720 (cycle_display): Delete insn pattern.
2721 * config/sparc/sparc.md (unspec usage): Delete cycle display.
2722 (cycle_display): Delete insn pattern.
2723 * config/sparc/sparc.c (sparc_cycle_display,
2724 TARGET_SCHED_CYCLE_DISPLAY): Delete.
2725 * doc/md.texi (cycle_display): Don't mention.
2726 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
2728 2002-05-03 Richard Henderson <rth@redhat.com>
2730 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2731 * recog.h: Declare them.
2733 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2734 * config/sparc/sparc.md: Use store_data_bypass_p instead.
2735 * config/sparc/sparc-protos.h: Update.
2737 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2739 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2740 -D__arch64__. Add -D_LP64.
2741 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2743 (CPP_ARCH64_SPEC): Likewise.
2744 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2745 (NO_BUILTIN_SIZE_TYPE): Undef.
2747 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
2749 * genautomata.c (min_issue_delay_pass_states): Change return type
2751 (min_issue_delay_pass_states): Change the algorithm.
2752 (min_issue_delay): Set up min_insn_issue_delay for the state.
2753 (output_min_issue_delay_table): Interchange the nested loops and
2754 and initiate min_insn_issue_delay for states.
2756 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
2758 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
2761 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
2763 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
2766 2002-05-03 Richard Henderson <rth@redhat.com>
2769 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2770 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2771 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2772 code before JUMP, not EARLIEST.
2774 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
2776 * c-format.c (check_format_info_main): Don't check for presence of
2777 parameter for * width until after operand number has been read,
2778 and only check for it if format parameters are available.
2781 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2783 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2784 (LINK_SPEC): Undef before defining.
2786 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2788 PR preprocessor/6489
2789 * tradcpp.c (fixup_newlines): New.
2790 (main, finclude): Use it.
2792 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
2794 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2795 * config/mips/mips.c (mips_unique_section): Strip encoding from
2798 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2800 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2803 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2805 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2806 (Specific): Removed buildstats references.
2807 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2808 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2809 Accomodate Solaris versions beyond 8.
2810 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2811 (Specific, *-*-solaris2.8): Removed, obsolete.
2813 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2816 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2817 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2818 fill leaf_reg_remap with identity.
2819 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2821 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2823 * config/h8300/crti.asm: Remove trailing spaces.
2824 * config/h8300/h8300.c: Likewise.
2825 * config/h8300/lib1funcs.asm: Likewise.
2827 2002-05-02 Jason Merrill <jason@redhat.com>
2829 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2830 * c-decl.c (c_init_decl_processing): Use it.
2831 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2832 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2833 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2835 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2837 * regrename.c: Fix formatting.
2840 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2842 * i386.md (attribute memory): Handle compares properly.
2844 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
2846 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2849 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2851 * function.c: Fix formatting.
2853 2002-05-02 Jan Hubicka <jh@suse.cz>
2855 * haifa-sched.c (schedule_insn): Print table of instructions and
2857 (sched_block): Do not print ready list at verbosity level 1.
2858 * sched-vis.c (print_insn): Make global.
2859 * sched-ebb.c (ebb_print_insn): Rename from...
2860 (print_insn): ... this one.
2861 * sched-int.h (print_insn): Declare
2863 2002-05-02 Richard Henderson <rth@redhat.com>
2865 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2866 emitted by cycle_display.
2868 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
2870 * doc/install.texi (*-*-freebsd*): Update to latest status.
2872 2002-05-02 Jakub Jelinek <jakub@redhat.com>
2875 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2876 * config/float-sparc.h: Assume 128-bit long double if
2877 __LONG_DOUBLE_128__ is defined.
2879 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
2881 * genattrtab.c (write_function_unit_info): Add a dummy element
2882 when num_units == 0.
2884 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2886 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2887 TYPE_MODE (double_type_node) instead of DFmode.
2889 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
2891 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2893 * toplev.c (rest_of_compilation): Revert Richard's patch.
2895 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2897 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2899 2002-05-02 Catherine Moore <clm@redhat.com>
2901 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2903 2002-05-02 Kazu Hirata <kazu@hxi.com>
2905 * combine.c: Fix comment typos.
2907 * genautomata.c: Likewise.
2911 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
2913 * doc/install.texi: State GNAT version requirements.
2915 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2917 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2918 of the frame pointer or arg pointer register which strict register
2919 checking is not enabled.
2921 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
2923 * gcc.dg/altivec-8.c: New.
2925 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2926 PRE_INC and PRE_DEC for altivec modes.
2928 2002-05-01 Bruce Korb <bkorb@gnu.org>
2930 * fixinc/check.tpl(set-writable): make sure the function exists first
2931 * fixinc/inclhack.def(alpha_assert): fix test_text
2932 * fixinc/tests/base/assert.h: add in missing result
2934 2002-05-01 Jeff Law <law@redhat.com>
2936 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2939 2002-05-01 Joel Brobecker <brobecker@gnat.com>
2941 * dbxout.c (dbxout_type): Emit size information for range types,
2942 as well, but only when using GDB extensions.
2944 2002-05-01 Richard Henderson <rth@redhat.com>
2946 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2947 target-independent gnu binutils date test.
2949 2002-05-01 Richard Henderson <rth@redhat.com>
2951 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2952 info before expunging the block.
2954 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2956 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2957 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
2958 -M -or -MM is in effect.
2960 2002-05-01 Zack Weinberg <zack@codesourcery.com>
2962 * config.gcc: Correct test of --enable-obsolete. Obsolete all
2963 A29k configurations.
2964 * doc/install.texi: Update to match.
2966 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2969 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2970 for duplicates. Always loop over whole list.
2972 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2974 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2976 2002-05-01 Joel Sherrill <joel@OARcorp.com>
2978 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2981 2002-05-01 Joel Sherrill <joel@OARcorp.com>
2983 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2985 2002-05-01 David Edelsohn <edelsohn@gnu.org>
2987 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2988 (nabs_nopower): Same.
2989 (floatdisf2): New pattern.
2990 (absdi2): Convert to define_insn_and_split.
2995 (fix_trunctfdi2): Same.
2996 (fix_trunctfsi2): Same.
2998 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
3000 * doc/install.texi: Update Texinfo version requirement
3003 2002-05-01 Jakub Jelinek <jakub@redhat.com>
3005 PR target/6512, PR target/5628
3006 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
3007 when memory is not aligned.
3008 (movdf_insn_v9only_vis): Likewise.
3009 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
3010 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
3011 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
3013 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
3015 * gcc.dg/altivec-7.c: New.
3017 * config/rs6000/altivec.h: Cleanup.
3019 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
3021 * doc/invoke.texi (Option Summary): Add -mvrsave=.
3022 (RS/6000 and PowerPC Options): Document -mvrsave=.
3024 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
3025 (rs6000_altivec_vrsave_string): Same.
3026 (rs6000_override_options): Call rs6000_parse_vrsave_option.
3027 (rs6000_parse_vrsave_option): New.
3028 (rs6000_stack_info): Only generate vrsave instructions when
3029 TARGET_ALTIVEC_VRSAVE.
3031 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
3032 (rs6000_altivec_vrsave_string): Define extern.
3033 (rs6000_altivec_vrsave): Same.
3034 (TARGET_ALTIVEC_VRSAVE): New.
3036 2002-04-30 Richard Henderson <rth@redhat.com>
3039 * toplev.c (rest_of_compilation): Don't run cross-jump before
3042 2002-04-30 Tom Rix <trix@redhat.com>
3044 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
3045 check which_alternative.
3047 2002-04-30 Kazu Hirata <kazu@hxi.com>
3049 * cpplex.c: Fix comment formatting.
3050 * function.c: Likewise.
3051 * integrate.c: Likewise.
3052 * regrename.c: Likewise.
3053 * sibcall.c: Likewise.
3054 * simplify-rtx.c: Likewise.
3055 * tree-inline.c: Likewise.
3057 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3059 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
3060 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
3061 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
3062 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
3063 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
3064 * pa/x-ada: New file. Define ADA_CFLAGS.
3066 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
3068 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
3069 from MMIX_LAST_REGISTER_FILE_REGNUM.
3070 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
3071 (struct machine_function): New member highest_saved_stack_register
3072 previously static variable in mmix.c.
3073 (MACHINE_DEPENDENT_REORG): Define.
3074 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
3075 (MMIX_OUTPUT_REGNO): New.
3076 (mmix_target_asm_function_prologue): Move calculation of last used
3077 saved-stack-register into...
3078 (mmix_machine_dependent_reorg): New function. Update to also handle
3080 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
3081 register names, simplify somewhat by new variable regno.
3082 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
3084 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
3085 emitting register names.
3086 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
3087 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
3089 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
3092 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
3094 2002-04-30 Richard Henderson <rth@redhat.com>
3096 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
3097 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
3098 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
3099 emit_tfmode_cvt): New.
3100 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
3101 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
3102 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
3103 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
3104 * config/sparc/sparc-protos.h: Update.
3106 2002-04-30 Janis Johnson <janis187@us.ibm.com>
3108 * install.texi (Final install): Add to the list of info to include
3109 in a report of a successful bootstrap, and add link to 3.1 list.
3111 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
3113 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
3114 (mode): Add vector modes
3115 (i387): Kill attribute.
3116 (unit): New attribute.
3117 (length_immediate): Grok new types.
3118 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
3119 (modrm): Use "unit".
3120 (memory): Handle MMX/SSE properly.
3121 (scheduling descriptions): Kill uses of fop1.
3122 (sse, mmx, fp patterns): Set type and mode properly.
3124 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
3126 * pa.c (override_options): Default to PA8000 scheduling.
3127 * doc/invoke.texi (HP-PA options): Mention newly added 7300
3128 scheduling parameter.
3130 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
3131 handling of double precision multiplies.
3133 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
3134 fpdiv and fpsqrt instructions.
3135 (7200 & 7300 scheduling): Fix typo in handling of
3136 store-load and store-store penalties.
3138 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3140 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
3141 mips. Add two missing commas.
3143 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
3145 * doc/contrib.texi (Contributors): Update Paolo Carlini's
3146 and Benjamin Kosnik's entries.
3148 2002-04-29 David S. Miller <davem@redhat.com>
3150 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
3151 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
3152 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
3153 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
3155 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3157 * combine.c (find_split_point): Use gen_int_mode.
3159 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
3161 Merging code from dfa-branch:
3163 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
3165 * genautomata.c (output_reserv_sets): Fix typo.
3167 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
3169 * genautomata.c (output_reserv_sets): Remove
3170 next_cycle_output_flag.
3172 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
3174 * sched-rgn.c (init_ready_list): Make the DFA code handle
3175 USE/CLOBBER insns in the same way as the traditional
3177 (new_ready): Similarly..
3179 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
3181 * haifa-sched.c (schedule_block): Change the DFA state only after
3184 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
3186 * pa.c (hppa_use_dfa_pipeline_interface): New function.
3187 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3188 (override_options): Add PA7300 scheduling support.
3189 (pa_adjust_cost): Update various comments. Properly
3190 handle anti and output dependencies when using the
3192 (pa_issue_rate): Add PA7300 scheduling support.
3193 (pa_can_combine_p): Call extract_insn before calling
3194 constrain_operands (taken from mainline tree).
3195 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
3196 * pa.md (cpu attr): Add 7300. Rewrite pipeline
3197 descriptions using DFA descriptions. Add PA7300
3200 2002-03-30 David S. Miller <davem@redhat.com>
3202 Add UltraSPARC-III DFA scheduling support.
3203 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
3204 Update FP conditional move on register insn patterns to use it, as
3206 (define_attr cpu): Add ultrasparc3.
3207 (define_attr us3load_type): New, update integer load patterns to
3208 set it, as appropriate.
3209 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
3210 (rest): Add UltraSPARC3 scheduling description.
3211 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
3212 (PROCESSOR_ULTRASPARC3): New.
3213 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
3214 ({ASM,CPP}_CPU_SPEC): Likewise.
3215 (REGISTER_MOVE_COST): Likewise.
3216 (RTX_COSTS): Likewise.
3217 * config/sparc/sparc.c (sparc_override_options,
3218 sparc_initialize_trampoline, sparc64_initialize_trampoline,
3219 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3220 sparc_issue_rate): Likewise.
3221 * config/sparc/sol2.h: Likewise.
3222 * config/sparc/sol2-sld-64.h: Likewise.
3223 * config/sparc/linux64.h: Likewise.
3225 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
3227 * doc/md.texi: Add comments about usage the latency time for the
3228 different dependencies and about case when two or more conditions
3229 in different define_insn_reservations returns TRUE for an insn.
3231 * doc/md.texi: Add reference for automaton based pipeline
3234 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
3236 * doc/passes.texi: Add missed information about genattrtab.
3238 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
3240 * genautomata.c (output_automata_list_transition_code): Check
3241 automata_list on NULL.
3243 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
3245 * genautomata.c (output_insn_code_cases,
3246 output_automata_list_min_issue_delay_code,
3247 output_automata_list_transition_code,
3248 output_automata_list_state_alts_code): Comment the functions.
3250 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
3252 * genautomata.c (automata_list_el_t): New typedef.
3253 (get_free_automata_list_el,free_automata_list_el,
3254 free_automata_list, automata_list_hash, automata_list_eq_p,
3255 initiate_automata_lists, automata_list_start, automata_list_add,
3256 automata_list_finish, finish_automata_lists,
3257 output_insn_code_cases, output_automata_list_min_issue_delay_code,
3258 output_automata_list_transition_code,
3259 output_automata_list_state_alts_code, add_automaton_state,
3260 form_important_insn_automata_lists): New functions and prototypes.
3261 (insn_reserv_decl): Add members important_automata_list and
3263 (ainsn): Add members important_p.
3264 (automata_list_el): New structure.
3265 (first_free_automata_list_el, current_automata_list,
3266 automata_list_table): New global variables.
3267 (create_ainsns): Initiate member important_p.
3268 (output_internal_min_issue_delay_func): Generate the switch and
3269 call output_insn_code_cases.
3270 (output_internal_trans_func, output_internal_state_alts_func):
3272 (generate): Call initiate_automata_lists.
3273 (automaton_states): New global variable.
3274 (expand_automata): Call form_important_insn_automata_lists.
3275 (write_automata): Call finish_automata_lists.
3277 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
3279 * genautomata.c (add_excls, add_presence_absence): Check that
3280 cpu units in the sets belong the same automaton.
3282 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
3283 about that cpu units in the sets belong the same automaton.
3285 * doc/md.texi: Ditto.
3287 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
3288 Nitin Gupta <niting@noida.hcltech.com>
3290 * config/sh/sh.c (sh_use_dfa_interface): New function.
3292 (sh_issue_rate): New Function.
3293 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
3294 TARGET_SCHED_ISSUE_RATE: define.
3296 * config/sh/sh.md: Add DFA based pipeline description for SH4.
3298 (define_attr insn_class): New attribute used for DFA
3300 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
3301 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
3302 cmpeqdi_t): Likewise.
3304 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
3305 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
3307 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
3309 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
3311 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
3314 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
3316 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
3317 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
3319 (output_dfa_start_func): Initiate new variable insn_codes_length,
3320 (write_automata): Output definition of the new variable.
3322 2001-10-02 David S. Miller <davem@redhat.com>
3324 * haifa-sched.c (advance_one_cycle): New function.
3325 (schedule_block): Use it.
3326 (queue_to_ready): Use it, and also make sure to advance the DFA
3327 state on all stall cycles, not just those where insn_queue links
3330 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
3332 * haifa-sched.c (max_issue): Remove last_p argument. Only return
3333 non-zero if the highest-priority instruction could be scheduled.
3334 (choose_ready): Remove last argument from max_issue call.
3336 2001-09-28 David S. Miller <davem@redhat.com>
3338 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
3339 ultrasparc and 3 for other multi-issue sparcs.
3341 2001-09-27 David S. Miller <davem@redhat.com>
3343 * config/sparc/sparc.md (cycle_display): New pattern.
3344 * config/sparc/sparc.c (sparc_cycle_display): New.
3345 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
3347 2001-09-25 David S. Miller <davem@redhat.com>
3349 Convert all of Sparc scheduling to DFA
3350 * config/sparc/sparc.md: Kill all define_function_unit
3351 directives and replace with DFA equivalent.
3352 * config/sparc/sparc.c (ultrasparc_adjust_cost,
3353 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
3354 ultra_fpmode_conflict_exists, ultra_find_type,
3355 ultra_build_types_avail, ultra_flush_pipeline,
3356 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
3357 ultrasparc_variable_issue, ultrasparc_sched_init,
3358 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
3359 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
3360 ultra_cur_hist, ultra_cycles_elapsed): Kill.
3361 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3362 ultrasparc_store_bypass_p): New.
3363 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
3366 2001-09-24 David S. Miller <davem@redhat.com>
3368 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
3369 ready->vec[foo] not ready[foo].
3371 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
3373 * doc/md.texi: Correct examples for define_insn_reservations
3376 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
3378 * genautomata.c (create_automata): Print message about creation of
3380 (generate): Remove printing meease about creation of
3383 2001-09-05 David S. Miller <davem@redhat.com>
3385 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
3386 * config/sparc/linux64.h: Likewise.
3388 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
3390 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
3391 schedule_block, sched_init, sched_finish): Add missed calls of
3392 use_dfa_pipeline_interface.
3394 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
3397 * sched-vis.c (get_visual_tbl_length): Ditto.
3399 2001-08-27 Richard Henderson <rth@redhat.com>
3401 * genattr.c (main): Emit state_t even when not doing scheduling.
3403 2001-08-27 Richard Henderson <rth@redhat.com>
3405 * genautomata.c (expand_automata): Always create a description.
3407 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
3409 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
3410 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
3411 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
3414 * genattr.c (main): New variable num_insn_reservations. Increase
3415 it if there is DEFINE_INSN_RESERVATION. Output automaton based
3416 pipeline hazard recognizer interface.
3418 * genattrtab.h: New file.
3420 * genattrtab.c: Include genattrtab.h.
3421 (attr_printf, check_attr_test, make_internal_attr,
3422 make_numeric_value): Move protypes into genattrtab.h. Define them
3424 (num_dfa_decls): New global variable.
3425 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
3426 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
3427 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
3428 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
3430 * genautomata.c: New file.
3432 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
3434 * sched-int.h: (curr_state): Add the external definition for
3435 automaton pipeline interface.
3436 (haifa_insn_data): Add comments for members blockage and units.
3438 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3439 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3440 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3441 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3442 TARGET_SCHED_DFA_POST_CYCLE_INSN,
3443 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3444 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
3446 (TARGET_SCHED): Use the new macros.
3448 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
3449 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
3450 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
3451 dfa_bubble): New members in gcc_target.sched.
3453 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
3454 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
3455 (insn_queue): Redefine it as pointer to array.
3456 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
3458 (max_insn_queue_index_macro_value): New variable.
3459 (curr_state, dfa_state_size, ready_try): New varaibles for
3460 automaton interface.
3461 (ready_element, ready_remove, max_issue): New function prototypes
3462 for automaton interface.
3463 (choose_ready): New function prototype.
3464 (insn_unit, blockage_range): Add comments.
3465 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
3466 FUNCTION_UNITS_SIZE == 0.
3467 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
3468 actual_hazard, potential_hazard): Add comments.
3469 (insn_cost): Use cost -1 as undefined value. Remove
3470 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
3472 (ready_element, ready_remove): New functions for automaton
3474 (schedule_insn): Add new code for automaton pipeline interface.
3475 (queue_to_ready): Add new code for automaton pipeline interface.
3476 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
3477 (debug_ready_list): Print newline when the queue is empty.
3478 (max_issue): New function for automaton pipeline interface.
3479 (choose_ready): New function.
3480 (schedule_block): Add new code for automaton pipeline interface.
3481 Print ready list before scheduling each insn.
3482 (sched_init): Add new code for automaton pipeline interface.
3483 Initiate insn cost by -1.
3484 (sched_finish): Free the current automaton state and finalize
3485 automaton pipeline interface.
3487 * sched-rgn.c: Include target.h.
3488 (init_ready_list, new_ready, debug_dependencies): Add new code for
3489 automaton pipeline interface.
3491 * sched-vis.c: Include target.h.
3492 (get_visual_tbl_length): Add code for automaton interface.
3493 (target_units, print_block_visualization): Add comments.
3495 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
3496 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
3497 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
3498 (getruntime.o, genautomata.o): New entries.
3499 (genattrtab.o): Add new dependency file genattrtab.h.
3500 (genattrtab): Add new dependencies. Link it with `libm.a'.
3501 (getruntime.o, hashtab.o): New entries for canadian cross.
3503 * doc/md.texi: Description of automaton based model.
3505 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
3507 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3508 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3509 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3510 TARGET_SCHED_DFA_POST_CYCLE_INSN,
3511 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3512 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3513 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
3515 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
3516 MAX_DFA_ISSUE_RATE): New macro descriptions.
3518 * doc/contrib.texi: Add dfa based scheduler contribution.
3520 * doc/gcc.texi: Add more information about genattrtab.
3522 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3524 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
3525 adjust_address_nv call.
3527 2002-04-29 Janis Johnson <janis187@us.ibm.com>
3529 * doc/install.texi (Testing): Provide additional information, and
3530 a stronger encouragement, for running the testsuites.
3532 2002-04-29 DJ Delorie <dj@redhat.com>
3534 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
3535 given in upper case.
3537 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3539 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
3540 Solaris 2 <widec.h> if missing.
3541 * fixinc/fixincl.x: Regenerate.
3542 * fixinc/tests/base/widec.h: New file.
3544 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
3546 * toplev.c (f_options): Add "profile" switch so that
3547 -fno-profile can be used to disable -p.
3549 2002-04-29 Bernd Schmidt <bernds@redhat.com>
3551 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
3553 * tree.c (build_common_tree_nodes_2): Likewise.
3554 * tree.h (enum tree_index): Likewise.
3555 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
3557 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
3559 (init_mmx_sse_builtins): Initialize SSE2 builtins.
3560 (ix86_expand_builtin): Add support for SSE2 builtins.
3561 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
3562 (VALID_SSE_REG_MODE): Use it.
3563 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
3564 (enum ix86_builtins): Add SSE2 builtins.
3565 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
3566 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
3567 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
3568 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
3569 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
3570 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
3571 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
3572 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
3573 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
3574 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
3575 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
3576 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
3577 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
3578 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
3579 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
3580 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
3581 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
3582 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
3583 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
3584 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
3585 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
3586 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
3587 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
3588 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
3589 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
3590 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
3591 lfence_insn): New patterns.
3592 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
3593 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
3595 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
3597 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
3599 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3601 * doc/contrib.texi (Contributors): Add Paolo Carlini and
3603 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
3604 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
3605 and CPU instead of cpu.
3607 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3609 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
3611 (lang_independent_options): Add -fif-conversion, -fif-conversion2
3612 (rest_of_compilation): Do if conversion only when asked for.
3613 (parse_options_and_default_flags): Set new variables to 1 for -O1
3614 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
3616 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3618 * i386.c (dbx64_register_map): Fix typo.
3620 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3622 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
3623 real_one_half, real_bb_freq_max): New static variables.
3624 (debug_profile_bbauxs): Kill.
3625 (process_note_predictions): Kill unused variable.
3626 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
3628 (propagate_freq): Use REAL_ARITHMETICS.
3629 (estimate_bb_frequencies): Likevise; init new static variables.
3630 * Makefile.in (predict.o): Add dependency on real.h
3632 2002-04-28 David S. Miller <davem@redhat.com>
3635 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
3636 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
3637 several {reads,writes} instead.
3638 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
3641 2002-04-27 David S. Miller <davem@redhat.com>
3644 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
3647 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
3648 including signal.h and sys/ucontext.h, not needed.
3650 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
3652 * varasm.c (output_constant_def): Correct test for not calling
3653 ENCODE_SECTION_INFO for INTEGER_CST.
3655 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
3657 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
3658 keep most cases as function eval_token.
3659 (eval_token): New function.
3660 (_cpp_parse_expr): Read token here for improved diagnostics.
3661 Don't use op_as_text. Detect bad ':' here.
3662 (reduce): Don't detect bad ':' here.
3663 (op_as_text): Remove.
3664 * cpphash.h (_cpp_test_assertion): Change prototype.
3665 * cpplib.c (_cpp_test_assertion): Change prototype.
3667 2002-04-28 Richard Henderson <rth@redhat.com>
3670 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
3671 (ggc_mark_rtx_children): New.
3673 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3676 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
3677 after call peepholes for UltraSPARC.
3678 (call + jump 64-bit peepholes): Remove.
3680 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3683 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
3684 result as temporary value.
3686 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3689 * toplev.c (rest_of_compilation): Only run regrename and copy
3690 propagation if optimizing.
3692 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3694 PR optimization/6475
3695 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
3696 register of REGNO_DECL (i).
3697 * Makefile.in (reload1.o): Add $(TREE_H).
3699 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
3701 * cppexp.c (lex): Update to use state.skip_eval.
3702 (struct op): Remove prio and flags members.
3703 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3704 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3705 (LEFT_ASSOC): New macro.
3706 (optab): New table of operator priorities and flags.
3708 (_cpp_parse_expr): Clean up logic. Return bool. Use a
3709 malloc-ed parser stack.
3710 (reduce): New; reduce the operator stack.
3711 (_cpp_expand_op_stack): Expand the operator stack as necessary.
3712 * cpphash.h (struct op): Predeclare.
3713 (struct cpp_reader): New members op_stack, op_limit.
3714 (struct lexer_state): New member skip_eval.
3715 (_cpp_parse_expr): Update.
3716 (_cpp_expand_op_stack): New.
3717 * cpplib.c (do_if): Update.
3718 * cppinit.c (cpp_create_reader): Create op stack.
3719 (cpp_destroy): And destroy it.
3720 * cpplib.h (CPP_LAST_CPP_OP): Correct.
3721 (TTYPE_TABLE): Correct.
3723 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3726 * c-decl.c (duplicate_decls): Call merge_weak.
3727 * c-pragma.c (apply_pragma_weak): Warn about misuse.
3728 * output.h (merge_weak): Prototype merge_weak.
3729 * varasm.c (merge_weak): New function.
3730 (declare_weak): Make sure we don't give an error on VAR_DECLs.
3731 Mark RTL with SYMBOL_REF_WEAK.
3733 2002-04-27 Kurt Garloff <garloff@suse.de>
3735 * tree-inline.c (inlinable_function_p): Improve heuristics
3736 by using a smoother function to cut down allowable inlinable size.
3737 * param.def: Add parameters max-inline-insns-single,
3738 max-inline-slope, min-inline-insns that determine the exact
3739 shape of the above function.
3740 * param.h: Likewise.
3742 2002-04-26 Richard Henderson <rth@redhat.com>
3744 * c-parse.in (malloced_yyss, malloced_yyvs): New.
3745 (yyoverflow): Re-add. Set them.
3746 (free_parser_stacks): New.
3747 * c-common.h: Declare it.
3748 * c-lex.c (c_common_parse_file): Call it.
3750 2002-04-26 Richard Henderson <rth@redhat.com>
3752 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3753 for fallthru search.
3755 2002-04-26 Eric Christopher <echristo@redhat.com>
3757 PR optimization/3700
3758 * config/mips/mips.c (mips_issue_rate): Define. New function.
3759 (TARGET_SCHED_ISSUE_RATE): Use.
3761 2002-04-25 David S. Miller <davem@redhat.com>
3764 * reorg.c (optimize_skip): Do not allow exception causing
3765 instructions to be considered for delay slots.
3766 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3767 (relax_delay_slots): Do not try to consider exception causing
3768 instructions as redundant.
3770 2002-04-26 Richard Henderson <rth@redhat.com>
3773 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3775 2002-04-26 Mark Mitchell <mark@codesourcery.com>
3778 * config/i386/i386.md (untyped_call): Return the value in a float
3779 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3782 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
3784 * tree.c (tree_int_cst_lt): Compare constants whose types differ
3785 in unsigned-ness correctly.
3787 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3789 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3790 portable runtime model.
3792 2002-04-26 Richard Henderson <rth@redhat.com>
3794 * c-parse.in (yyoverflow): Revert.
3796 2002-04-26 David Edelsohn <edelsohn@gnu.org>
3797 Richard Henderson <rth@redhat.com>
3799 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3800 result as temporary value.
3802 2002-04-26 Richard Henderson <rth@redhat.com>
3805 * c-common.c (fix_string_type): Split out of ...
3806 (combine_strings): ... here. Take a varray, not a tree list.
3807 (c_expand_builtin_printf): Use fix_string_type.
3808 * c-common.h: Update decls.
3809 * c-parse.in (string): Remove. Update all uses to use STRING
3810 instead, and not call combine_strings.
3813 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3814 (build_asm_stmt): Likewise.
3815 * objc/objc-act.c (my_build_string): Use fix_string_type.
3816 (build_objc_string_object): Build varray for combine_strings.
3818 2002-04-26 Bo Thorsen <bo@suse.co.uk>
3820 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3823 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
3825 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3826 (HAVE_NO_R_OPERAND): Remove.
3827 (HAVE_VALUE): Remove.
3828 (op_to_prio): Update.
3829 (UNARY): Don't alter flags.
3830 (_cpp_parse_expr): want_value used to indicate whether
3831 a number or unary operator is expected next. Distinguish
3832 unary and binary +/-.
3833 (op_as_text): Update for unary operators.
3835 2002-04-25 Richard Henderson <rth@redhat.com>
3838 * c-parse.in (yyoverflow): New.
3840 2002-04-25 Richard Henderson <rth@redhat.com>
3843 * c-common.c (shorten_compare): Simplfy conditions leading to
3844 the generation of a warning.
3846 2002-04-25 Richard Henderson <rth@redhat.com>
3849 * expmed.c (extract_bit_field): Fall through to generic code rather
3850 than aborting on subreg special case.
3852 2002-04-25 David S. Miller <davem@redhat.com>
3854 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3855 for DECL being NULL.
3857 2002-04-25 Steve Christiansen <smc@us.ibm.com>
3859 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3861 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
3863 * c-decl.c (grokdeclarator): Remove outdated ??? note
3864 on invalid declaration of flexible array members.
3866 2002-04-25 Richard Henderson <rth@redhat.com>
3868 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3870 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3872 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3873 needed by the compiler, even if they are used as global regs.
3875 2002-04-25 Matt Hiller <hiller@redhat.com>
3877 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3879 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3880 of the corresponding functions.
3881 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3884 2002-04-25 Matt Hiller <hiller@redhat.com>
3886 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3888 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3889 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3890 registers, adjust comment accordingly.
3891 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3892 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3893 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3894 for coprocessor registers.
3895 (ADDITIONAL_REGISTER_NAMES): Include
3896 ALL_COP_ADDITIONAL_REGISTER_NAMES.
3898 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3899 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3900 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3901 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3902 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3904 (mips_char_to_class): Adjust comment to include coprocessor
3907 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3909 (mips_reg_names, mips_regno_to_class): Include coprocessor
3911 (mips_sw_reg_names): Ditto, make non-static.
3912 (mips_move_1word): Handle moves to and from coprocessor registers.
3913 (mips_move_2words): Handle moves to and from coprocessor
3915 (mips_class_max_nregs, mips_register_move_cost): Handle
3916 coprocessor register classes.
3917 (override_options): Initialize mips_char_to_class and
3918 mips_hard_regno_mode_ok properly for coprocessor registers.
3920 * config/mips/mips.md (movdi_internal, movdi_internal2,
3921 movsi_internal1, movsi_internal2): Add constraint-sets for
3922 coprocessor registers.
3923 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3924 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3926 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3927 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3929 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3930 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3932 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3933 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3936 * doc/tm.texi: Document feature.
3938 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3940 * integrate.c (function_attribute_inlinable_p): Simplify.
3941 Check the table pointer is not NULL.
3943 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
3945 * doc/c-tree.texi: Fix typo in introduction.
3947 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3949 * c-common.h (c_common_parse_file): Update.
3950 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3951 * c-lex.c (YYDEBUG): Get from c-lex.h.
3952 (c_common_parse_file): Update.
3953 * c-lex.h (YYDEBUG, yydebug): New.
3954 * c-parse.in (YYDEBUG): Get from c-lex.h.
3955 (c_set_yydebug): Remove.
3956 * c-tree.h (c_set_yydebug): Remove.
3957 * langhooks-def.h (lhd_do_nothing_i): New.
3958 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3959 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3960 * langhooks.c (lhd_do_nothing_i): New.
3961 (lhd_set_yydebug): Remove.
3962 * langhooks.h (struct lang_hooks): Update.
3963 * toplev.c (set_yydebug): New.
3964 (compile_file): Update call to parse_file hook.
3965 (decode_d_option): Update.
3967 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3969 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
3971 * loop.c (load_mems): Don't change the interface of called functions.
3973 * calls.c (expand_call): Take current_function_pretend_args_size
3974 into account when setting argblock for sibcalls.
3976 2002-04-24 Matt Hiller <hiller@redhat.com>
3978 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3981 * cpplex.c (skip_line_comment): Process comment one multibyte
3982 character at a time rather than one char at a time, if
3984 (parse_string): Process string one multibyte character at a time
3985 rather than one char at a time, if appropriate.
3986 * c-lex.c (lex_string): Lex and copy multibyte strings
3988 * cpplib.h (cppchar_t): Change to unsigned.
3990 2002-04-24 Richard Henderson <rth@redhat.com>
3993 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3996 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
3998 * sh.c (sh_va_arg): If argument was passed by reference,
3999 dereference the pointer.
4001 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4003 * sh.md (divsi3_i4_media): Use match_operand for input values
4004 rather than hard registers.
4005 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
4006 unnecessarily through hard registers. Keep copies of pseudo
4007 registers outside of the libcall sequence.
4009 * sh.md (casesi_shift_media): Add modes.
4011 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
4014 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
4016 * attribs.c (c_common_attribute_table): Move table and handlers
4018 (format_attribute_table, lang_attribute_table,
4019 lang_attribute_common): Remove.
4020 (init_attributes): Replace NULL pointers with pointers to the
4022 (handle_packed_attribute, handle_nocommon_attribute,
4023 handle_common_attribute, handle_noreturn_attribute,
4024 handle_noinline_attribute, handle_always_inline_attribute,
4025 handle_used_attribute, handle_unused_attribute,
4026 handle_const_attribute, handle_transparent_union_attribute,
4027 handle_constructor_attribute, handle_destructor_attribute,
4028 handle_mode_attribute, handle_section_attribute,
4029 handle_aligned_attribute, handle_weak_attribute,
4030 handle_alias_attribute, handle_visibility_attribute,
4031 handle_no_instrument_function_attribute, handle_malloc_attribute,
4032 handle_no_limit_stack_attribute, handle_pure_attribute,
4033 handle_deprecated_attribute, handle_vector_size_attribute,
4034 vector_size_helper): Move to c-common.c.
4035 * c-common.c (c_common_attribute_table,
4036 handle_packed_attribute, handle_nocommon_attribute,
4037 handle_common_attribute, handle_noreturn_attribute,
4038 handle_noinline_attribute, handle_always_inline_attribute,
4039 handle_used_attribute, handle_unused_attribute,
4040 handle_const_attribute, handle_transparent_union_attribute,
4041 handle_constructor_attribute, handle_destructor_attribute,
4042 handle_mode_attribute, handle_section_attribute,
4043 handle_aligned_attribute, handle_weak_attribute,
4044 handle_alias_attribute, handle_visibility_attribute,
4045 handle_no_instrument_function_attribute, handle_malloc_attribute,
4046 handle_no_limit_stack_attribute, handle_pure_attribute,
4047 handle_deprecated_attribute, handle_vector_size_attribute,
4048 vector_size_helper): Move from attribs.c.
4049 * c-common.h (c_common_attribute_table,
4050 c_common_format_attribute_table): New.
4051 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4052 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
4053 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
4054 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
4055 (LANG_HOOKS_INITIALIZER): Update.
4056 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
4057 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
4058 * target.h: Update comment.
4059 * tree.c (default_target_attribute_table): Remove.
4060 * tree.h (default_target_attribute_table, format_attribute_table,
4061 lang_attribute_table, lang_attribute_common): Remove.
4063 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
4064 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
4066 2002-04-24 Jason Merrill <jason@redhat.com>
4068 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
4069 * dwarf2out.c (dwarf_attr_name): Support it.
4070 (gen_array_type_die): Emit it.
4071 (lookup_type_die): No special handling for VECTOR_TYPE.
4072 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
4074 2002-04-24 Richard Henderson <rth@redhat.com>
4076 * config/mips/mips.md (movdi_usd): Renumber.
4078 2002-04-24 David S. Miller <davem@redhat.com>
4081 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
4082 32-bit Sparc and current_function_returns_struct is true.
4084 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
4086 * loop.c (canonicalize_condition): Use gen_int_mode.
4088 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
4090 * config/rs6000/altivec.h: Cleanup file. Add non individual
4112 (vec_vcmpequb): New.
4113 (vec_vcmpequh): New.
4114 (vec_vcmpequw): New.
4115 (vec_vcmpeqfp): New.
4116 (vec_vcmpgefp): New.
4117 (vec_vcmpgtub): New.
4118 (vec_vcmpgtsb): New.
4119 (vec_vcmpgtuh): New.
4120 (vec_vcmpgtsh): New.
4121 (vec_vcmpgtuw): New.
4122 (vec_vcmpgtsw): New.
4123 (vec_vcmpgtfp): New.
4124 (vec_vcmpgefp): New.
4129 (vec_vexptefp): New.
4134 (vec_lde): Add vector float variant.
4139 (vec_vmhaddshs): New.
4161 (vec_vmladduhm): New.
4162 (vec_vmhraddshs): New.
4164 (vec_vmsummbm): New.
4165 (vec_vmsumuhm): New.
4166 (vec_vmsumshm): New.
4167 (vec_vmsumuhs): New.
4168 (vec_vmsumshs): New.
4177 (vec_vnmsubfp): New.
4195 (vec_vrsqrtefp): New.
4206 (vec_vspltisb): New.
4207 (vec_vspltish): New.
4208 (vec_vspltisw): New.
4233 (vec_vsum4ubs): New.
4234 (vec_vsum4sbs): New.
4235 (vec_vsum4shs): New.
4236 (vec_vsum2sws): New.
4247 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
4250 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
4251 added literals from substracted literals.
4252 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
4253 (fold) [associate]: Preserve MINUS_EXPR if needed.
4255 2002-04-23 Zack Weinberg <zack@codesourcery.com>
4257 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
4260 2002-04-23 Tom Tromey <tromey@redhat.com>
4262 * gcc.c: Added --resource. For PR java/6314.
4264 2002-04-23 David O'Brien <obrien@FreeBSD.org>
4266 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
4267 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
4270 2002-04-23 David O'Brien <obrien@FreeBSD.org>
4272 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
4274 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
4276 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
4278 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
4279 (ix86_expand_clrstr): Fix typo.
4280 * loop.c (gen_load_of_final_value): New.
4281 (loop_givs_rescan, strength_reduce, check_dbra_loop):
4284 2002-04-23 Roger Sayle <roger@eyesopen.com>
4286 * builtins.c (builtin_memset_gen_str): New function.
4287 (expand_builtin_memset): Optimize the case of constant length, but
4290 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
4292 * config/rs6000/altivec.h (vec_step): Remove extraneous
4294 (vec_ctu): Cast return.
4296 2002-04-23 Alan Modra <amodra@bigpond.net.au>
4299 * function.h: (struct function): Add profile_label_no field.
4300 (current_function_profile_label_no): Define.
4301 * function.c: (profile_label_no): New static var.
4302 (expand_function_start): Increment it, and copy to
4303 current_function_profile_label_no.
4304 * output.h (profile_label_no): Delete.
4305 * final.c (profile_label_no): Delete.
4306 (profile_function): Use current_function_profile_label_no.
4307 (final_end_function): Don't increment profile_label_no here.
4308 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
4309 profile_label_no with current_function_profile_label_no.
4310 * config/pa/pa.c (current_function_number): Delete.
4311 (pa_output_function_prologue): Don't output profile label here.
4312 (hppa_profile_hook): Use label_no param rather than
4313 current_function_number.
4314 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
4315 * config/pa/pa.h: .. here.
4316 (FUNCTION_PROFILER): Output profile label here.
4318 2002-04-22 Eric Christopher <echristo@redhat.com>
4320 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
4321 patch of 2002-04-09 due to binutils issues.
4322 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
4324 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
4326 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
4327 constraint to 'o' for m=r and r=m alternatives.
4328 ("*movv8hi_internal1"): Same.
4329 ("*movv16qi_internal1"): Same.
4330 ("*movv4sf_internal1"): Same.
4332 2002-04-22 Janis Johnson <janis187@us.ibm.com>
4334 * rtl.h (RTX_FLAG): New macro.
4335 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
4336 * final.c (alter_subreg): Use macro to access rtx flag.
4337 * integrate.c (copy_rtx_and_substitute): Use new access macro.
4338 * print-rtl.c (print_rtx): Use new access macro.
4340 * cse.c (insert): Check rtx code before accessing flag.
4342 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
4343 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
4344 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
4345 convert_const_symbol_ref, make_canonical, make_alternative_compare,
4346 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
4347 simplify_test_exp, optimize_attrs, simplify_by_exploding,
4348 find_and_mark_used_attributes, unmark_used_attributes,
4349 add_values_to_cover, simplify_with_current_value,
4350 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
4351 copy_rtx_unchanging, main): Use new access macros.
4353 2002-04-22 Tom Rix <trix@redhat.com>
4355 * expmed.c (init_expmed): Generate shifted constant once.
4357 2002-04-22 Zack Weinberg <zack@codesourcery.com>
4359 * c-lex.c (lex_charconst): Call convert to get constant in
4360 proper type; don't just smash the type field.
4363 * config.gcc: Add list of obsolete configurations. Disallow
4364 building these without --enable-obsolete.
4365 * doc/install.texi: Document --enable-obsolete and obsoletion
4366 policy. Mention obsoletion of individual targets in
4369 2002-04-22 Richard Henderson <rth@redhat.com>
4371 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
4373 2002-04-22 Mark Mitchell <mark@codesourcery.com>
4376 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
4377 (walk_fixup_memory_subreg): Likewise.
4378 (fixup_var_refs_insn): Adjust accordingly.
4379 (fixup_var_refs_1): Likewise.
4381 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
4383 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
4384 LIBPATH_ARCH64_SPEC): Define.
4385 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
4386 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
4387 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
4388 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
4390 2002-04-22 Joel Sherrill <joel@OARcorp.com>
4392 * gthr-rtems.h: Correct prototypes to remove warnings.
4394 2002-04-22 Richard Henderson <rth@redhat.com>
4397 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
4399 * gcse.c (free_insn_expr_list_list): New.
4400 (clear_modify_mem_tables): Use it. Fix bit set usage.
4401 (canon_list_insert): Use EXPR_LISTs for expressions.
4402 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
4404 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
4406 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
4407 file change and include code to _cpp_pop_buffer.
4408 * cpphash.h (struct pending_option): Predeclare.
4409 (struct cpp_reader): New member next_include_file.
4410 (_cpp_pop_file_buffer): Update.
4411 (_cpp_push_next_buffer): Update, rename.
4412 * cppinit.c (cpp_destroy): Free include chain and pending here.
4413 (cpp_finish_options): Simplify.
4414 (_cpp_push_next_buffer): Rename and clean up.
4415 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
4417 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
4419 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
4421 * config/rs6000/altivec.h (vec_xor): Add variant for both args
4422 being vector signed int.
4424 (vec_xor): Add variant for both args being vector signed char.
4425 Remove redundant variant.
4428 2002-04-21 David S. Miller <davem@redhat.com>
4430 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
4431 compare mode in output RTL.
4433 2002-04-22 David Edelsohn <edelsohn@gnu.org>
4435 * config/rs6000/rs6000.c (rs6000_override_options): Correct
4436 style and formatting of previous patch.
4438 2002-04-22 Alan Modra <amodra@bigpond.net.au>
4440 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
4441 flag_pic for ABI_AIX.
4443 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
4445 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
4446 * cppfiles.c (read_include_file): Similarly.
4447 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
4448 uxstrdup ustrchr, ufputs): Similarly.
4449 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
4450 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
4451 cpp_ideq, parse_identifier, parse_number): Similarly.
4452 * cpplib.c (struct directive, dequote_string, D, run_directive,
4453 cpp_push_buffer): Similarly.
4454 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
4455 _cpp_create_definition, check_trad_stringification,
4456 cpp_macro_definition): Similarly.
4458 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
4460 * cppmacro.c (funlike_invocation_p): Don't step back
4463 2002-04-21 David Edelsohn <edelsohn@gnu.org>
4465 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
4468 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
4470 * doc/invoke.texi: Remove Chill references.
4471 * doc/gcc.texi: Update last modified date.
4473 2002-04-20 Kazu Hirata <kazu@hxi.com>
4475 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
4476 push and pop. Replace add.l with add.w.
4478 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4480 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
4481 multiply instructions for H8/300H case.
4483 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4485 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
4486 Bum three instructions from each routine.
4488 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
4490 * Makefile.in: Update.
4491 * decl.c (push_c_function_context, pop_c_function_context,
4492 mark_c_function_context): Rename for consistency.
4493 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
4494 * c-tree.h (push_c_function_context, pop_c_function_context,
4495 mark_c_function_context): Rename for consistency.
4496 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4497 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4498 * function.c (init_lang_status, save_lang_status,
4499 restore_lang_status, mark_lang_status, free_lang_status):
4500 Move to langhooks.h.
4501 (push_function_context_to, pop_function_context_from,
4502 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
4504 * function.h (init_lang_status, save_lang_status,
4505 restore_lang_status, mark_lang_status, free_lang_status):
4506 Move to langhooks.h.
4507 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
4508 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
4509 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
4510 LANG_HOOKS_FUNCTION_INITIALIZER): New.
4511 (LANG_HOOKS_INITIALIZER): Update.
4512 (lhd_do_nothing_f): New.
4513 * langhooks.h (struct lang_hooks_for_functions): New.
4514 (struct lang_hooks): New hooks.
4515 * langhooks.c (lhd_do_nothing_f): New.
4517 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4518 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4520 2002-04-19 David S. Miller <davem@redhat.com>
4522 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
4523 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
4525 2002-04-19 Jakub Jelinek <jakub@redhat.com>
4527 PR optimization/3756
4528 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
4529 x = ((int) y < 0) ? cst1 : cst2.
4531 2002-04-19 Jakub Jelinek <jakub@redhat.com>
4534 * function.c: Reapply patch for c/6358.
4535 (expand_function_end): Copy decl_rtl's mode, not
4536 current_function_return_rtx mode.
4538 2002-04-19 Joel Sherrill <joel@OARcorp.com>
4540 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
4543 2002-04-19 Tom Tromey <tromey@redhat.com>
4545 * doc/install.texi (Specific): Update status of Solaris 2.8.
4548 2002-04-19 Andreas Schwab <schwab@suse.de>
4550 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
4551 (PUT_REAL): Restore old definition.
4553 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
4554 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4556 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
4557 binutils 2.11.2 and higher generate smaller binaries than Sun's
4560 2002-04-19 Mark Mitchell <mark@codesourcery.com>
4563 * toplev.c (rest_of_compilation): Do not defer functions for which
4564 TREE_SYMBOL_REFERENCED has already been set.
4566 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
4568 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
4571 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
4573 * builtins.c: Include langhooks.h.
4574 (lang_type_promotes_to): Remove.
4575 (expand_builtin_va_arg): Use new hook.
4576 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
4577 (simple_type_promotes_to): Move to c-typeck.c.
4578 * c-common.h (simple_type_promotes_to): Remove.
4579 * c-decl.c (duplicate_decls, grokdeclarator): Update.
4580 * c-format.c: Include langhooks.h.
4581 (check_format_types): Update.
4582 * c-tree.h (c_type_promotes_to): New.
4583 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
4584 (type_lists_compatible_p): Update.
4585 * langhooks-def.h (lhd_type_promotes_to): New.
4586 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
4587 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4588 * langhooks.c (lhd_type_promotes_to): New.
4589 * langhooks.h (struct lang_hooks_for_types): New hook.
4590 * tree.h (lang_type_promotes_to): Remove.
4592 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4594 2002-04-18 Richard Henderson <rth@redhat.com>
4596 * function.c: Revert patch for c/6358.
4598 2002-04-18 Richard Henderson <rth@redhat.com>
4600 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
4601 blocks. Handle multiple references to the TRAP block. Handle
4602 non-adjacent THEN and OTHER blocks.
4604 2002-04-18 Richard Henderson <rth@redhat.com>
4606 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
4607 crash with no type for by-mode libcalls.
4609 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
4611 2002-04-18 Bob Wilson <bob.wilson@acm.org>
4613 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
4614 __xtensa_nonlocal_goto): Use a syscall instructions to flush
4615 the register windows.
4617 2002-04-18 Zack Weinberg <zack@codesourcery.com>
4619 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
4620 appropriate. Document need for extended precision even when
4621 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
4622 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
4623 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
4624 instead of relying on later syntax error when REAL_WIDTH > 5.
4625 * real.c: Define NE based only on whether or not we have a
4626 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
4627 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
4628 define GET_REAL and PUT_REAL as simple memcpy operations; no
4629 need to byteswap or round.
4630 Use #error instead of #ifdef-ing out the entire file, for
4631 prompt error detection.
4633 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
4635 2002-04-18 David S. Miller <davem@redhat.com>
4637 * config/sparc/sparc.h (BRANCH_COST): Define.
4639 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
4642 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
4644 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
4645 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
4646 propagate_block calls after relaxation loop using new variable
4647 stabilized_prop_flags.
4649 2002-04-18 Richard Henderson <rth@redhat.com>
4651 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
4652 (ia64_va_arg): Expect variable sized types by reference.
4653 * config/ia64/ia64-protos.h: Update.
4654 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
4655 ia64_function_arg_pass_by_reference.
4657 2002-04-18 Richard Henderson <rth@redhat.com>
4659 * ifcvt.c: Include except.h.
4660 (block_has_only_trap): Break out from find_cond_trap.
4661 (find_cond_trap): Use it. Always delete the trap block.
4662 (merge_if_block): Allow then block null. Be less simplistic about
4663 what insns can end a block.
4664 * Makefile.in (ifcvt.o): Depend on except.h.
4666 * config/ia64/ia64.md (trap, conditional_trap): New.
4668 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4671 * function.c (assign_parms): Assign hard current_function_return_rtx
4673 (expand_function_end): ...not here.
4675 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
4677 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4678 * c-tree.h (c_incomplete_type_error): New.
4679 * c-typeck.c (require_complete_type, build_component_ref): Update.
4680 (incomplete_type_error): Rename.
4681 * langhooks-def.h (lhd_incomplete_type_error): New.
4682 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
4683 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4684 * langhooks.c (lhd_incomplete_type_error): New.
4685 * langhooks.h (struct lang_hooks_for_types): New hook.
4686 * tree.c (size_in_bytes): Use new hook.
4687 * tree.h (incomplete_type_error): Remove.
4689 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4691 2002-04-18 Zack Weinberg <zack@codesourcery.com>
4693 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
4694 TARGET_FLOAT_FORMAT blocks.
4696 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4698 * doc/install.texi (Downloading the source): Do not mention Chill
4699 any longer, but mention Ada.
4700 (Configuration): Do not mention Chill any longer.
4702 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
4704 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4706 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
4708 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4711 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4713 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4714 instead of unsigned_type.
4716 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4718 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4719 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4722 2002-04-18 Bernd Schmidt <bernds@redhat.com>
4724 * attribs.c (vector_type_node_list): New static variable.
4725 (handle_vector_size_attribute): Use it to avoid generating a
4726 new type node each time we are called.
4728 * combine.c (subst): Avoid trying to make a vector mode subreg of
4729 an integer constant.
4730 (gen_lowpart_for_combine): Likewise.
4732 2002-04-18 Roger Sayle <roger@eyesopen.com>
4733 Jakub Jelinek <jakub@redhat.com>
4735 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4736 for integer constant c (if x has unsigned type or sign bit is not
4737 set in c). This folds the zero/sign extension into the bit-wise and
4740 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4743 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4746 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
4748 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4750 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
4752 * gcc.c (read_specs): Detect and fail if an attempt is made to
4753 rename a spec string to an already existing string.
4755 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4757 * config/s390/s390.c (legitimize_pic_address): Do not generate
4758 illegal address constant without CONST.
4760 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4762 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4763 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4765 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4767 PR optimization/6305
4768 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4769 to make sure previous reloads are taken into account. Generate
4770 better code if one operand is an in-range immediate constant.
4772 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
4774 * doc/install.texi (Building): libgcj requires GNU make.
4776 2002-04-17 Jakub Jelinek <jakub@redhat.com>
4779 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4780 even if hard quad and register is not floating.
4781 (movtf reg<-mem split): Disallow splitting if hard quad and
4782 register is floating.
4783 (movtf mem<-reg split): Likewise.
4784 * config/sparc/sparc.c (fp_register_operand): New predicate.
4785 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4787 2002-04-17 Zack Weinberg <zack@codesourcery.com>
4789 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4790 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4791 (unprotoize.o): Ditto. Build from protoize.c. Define
4792 UNPROTOIZE on command line.
4793 * protoize.c: Include cppdefault.h. Delete include_defaults.
4794 (in_system_include_dir): Use cpp_include_defaults (defined in
4796 * unprotoize.c: Delete file.
4798 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
4800 * config/rs6000/altivec.h (vec_ld): Add array variants.
4804 2002-04-17 Alan Matsuoka <alanm@redhat.com>
4805 Aldy Hernandez <aldyh@redhat.com>
4807 * config/rs6000/altivec.h: Define __ALTIVEC__.
4814 Add parentheses to all macro arguments.
4816 2002-04-16 Richard Henderson <rth@redhat.com>
4819 * except.c (remove_eh_handler): Insert inner regions at beginning
4820 of sibling chain. Refactor expressions.
4822 2002-04-16 Richard Henderson <rth@redhat.com>
4824 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4825 * config/sparc/sol2-gas-bi.h: New file.
4826 * config.gcc (sparc*-solaris): Add it as needed.
4827 * configure.in (AS_SPARC64_FLAG): Remove check.
4828 * config.in, configure: Regenerate.
4830 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4832 2002-04-16 Richard Henderson <rth@redhat.com>
4834 * config/mips/mips.c (override_options): Don't override N32 for
4838 * config/mips/mips.md (can_delay): Split out of existing define_delays.
4839 (HILO_delay): Set can_delay false.
4841 2002-04-16 Dale Johannesen <dalej@apple.com>
4843 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4844 instruction addresses.
4845 (rs6000_output_function_epilogue): Likewise.
4847 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
4849 * c-parse.in (poplevel, compstmt_start,
4850 compstmt_primary_start): Add ending ';', in accordance
4853 2002-04-16 Richard Henderson <rth@redhat.com>
4855 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4856 Adjust tm_file order to get TARGET_DEFAULT set properly.
4857 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4858 * doc/install.texi (sparc-solaris): Update.
4860 2002-04-16 Dale Johannesen <dalej@apple.com>
4862 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4863 comparison operands do not match each other or if modes of
4864 conditions do not match result.
4866 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
4869 * config/s390/s390.md (mulsidi3): Set both subregs of the
4872 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
4874 * config/rs6000/altivec.h (vec_addc): Type check.
4876 2002-04-16 Jakub Jelinek <jakub@redhat.com>
4879 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4881 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4883 2002-04-15 Richard Henderson <rth@redhat.com>
4885 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4886 call_really_used_regs too.
4888 2002-04-15 Richard Henderson <rth@redhat.com>
4890 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4892 2002-04-15 David S. Miller <davem@redhat.com>
4894 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4897 2002-04-16 Jakub Jelinek <jakub@redhat.com>
4900 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4901 CONST_VECTOR is { 0, ... 0 }.
4903 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
4905 * doc/install.texi (Installing GCC: Configuration): Clarify
4906 the only supported ways to configure gcc.
4908 2002-04-15 Roland McGrath <roland@frob.com>
4910 * config.gcc (alpha*-*-gnu*): New target configuration.
4911 * config/alpha/gnu.h: New file for it.
4912 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4914 2002-04-16 Mark Mitchell <mark@codesourcery.com>
4916 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4917 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4918 * tree.h (expand_start_stmt_expr): Update prototype.
4919 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4920 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4921 on the STMT_EXPR created for the inline function.
4923 2002-04-15 Richard Henderson <rth@redhat.com>
4925 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4926 config/i386/linux-aout.h, config/i386/linux-oldld.h,
4927 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4928 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4929 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4930 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4931 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4932 Define __gnu_linux__, not gnu_linux.
4933 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4935 2002-04-15 Mark Mitchell <mark@codesourcery.com>
4937 Remove Chill front end.
4938 * gcc.c (default_compilers): Remove Chill entries.
4939 * ch: Remove directory.
4940 * doc/frontends.texi: Remove information about Chill.
4941 * doc/sourcebuild.texi: Likewise.
4942 * doc/standards.texi: Likewise.
4944 2002-04-15 Douglas B Rupp <rupp@gnat.com>
4946 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4947 (LONGLONG_STANDALONE): Define.
4949 2002-04-15 David S. Miller <davem@redhat.com>
4951 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4952 Call emit_library_call with LCT_NORMAL.
4953 (sparc_initialize_trampoline): Use LCT_foo instead of
4954 magic constant in emit_library_call invocations.
4955 (sparc64_initialize_trampoline): Likewise.
4956 (sparc_profile_hook): Likewise.
4957 * config/sparc/sparc.md: Likewise.
4959 * config/sparc/sparc.c (sparc_extra_constraint_check):
4960 Fix type of argument 'c'.
4961 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4964 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4966 * diagnostic.h (output_buffer_state): Redefine.
4967 (output_format_decoder): New macro.
4968 (output_prefixing_rule): Likewise.
4969 (output_line_cutoff): Likewise.
4970 (diagnostic_format_decoder): Adjust.
4971 (diagnostic_prefixing_rule): Likewise.
4972 (diagnostic_line_cutoff): Likewise.
4973 (diagnostic_state): Likewise.
4974 (diagnostic_kind_count): Likewise.
4975 (diagnostic_buffer): Now a macro.
4977 * diagnostic.c (diagnostic_buffer): Remove definition.
4978 (output_is_line_wrapping): Adjust.
4979 (set_real_maximum_length): Likewise.
4980 (output_set_maximum_length): Likewise.
4981 (init_output_buffer): Likewise.
4982 (lhd_print_error_function): Likewise.
4983 (output_do_verbatim): Likewise.
4985 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
4987 * cpperror.c (print_location): Don't print include chain
4989 (cpp_begin_message): Update to use DL_ macros.
4990 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4991 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4992 cpp_notice, cpp_notice_from_errno): Remove.
4993 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4996 * cppexp.c (CPP_ICE): Remove.
4997 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4998 lex, integer_overflow, _cpp_parse_expr): Update.
4999 * cppfiles.c (read_include_file, find_include_file,
5000 handle_missing_header, _cpp_read_file, remap_filename): Update.
5001 * cpphash.h (enum error_type): Remove.
5002 (_cpp_begin_message): Update.
5003 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
5004 cpp_handle_option, cpp_post_options): Update.
5005 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
5006 skip_whitespace, parse_identifier, parse_slow, parse_string,
5007 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
5008 cpp_interpret_charconst): Update.
5009 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
5010 lex_macro_node, do_undef, glue_header_name, parse_include,
5011 do_include_common, read_flag, do_line, do_linemarker, do_ident,
5012 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
5013 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
5014 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
5015 _cpp_pop_buffer, do_diagnostic): Update.
5016 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
5017 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
5018 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
5019 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
5020 cpp_notice, cpp_notice_from_errno): Remove.
5021 (cpp_error, cpp_error_with_line): Update to take a diagnostic
5024 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
5025 collect_args, enter_macro_context, save_parameter, parse_params,
5026 _cpp_create_definition, check_trad_stringification,
5027 cpp_macro_definition): Update.
5028 * cppmain.c (cpp_preprocess_file): Update.
5029 * fix-header.c (read_scan_file): Update.
5031 2002-04-14 Andreas Schwab <schwab@suse.de>
5033 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
5035 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5037 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
5039 2002-04-13 Mark Mitchell <mark@codesourcery.com>
5041 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
5044 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
5046 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
5048 2002-04-13 Joel Sherrill <joel@OARcorp.com>
5050 * config/sparc/t-elf: Enable v8 multilibs. Impacts
5051 sparc-elf and sparc-rtems targets.
5053 2002-04-13 Mark Mitchell <mark@codesourcery.com>
5055 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
5056 defined, and __gnu_hurd__ wherever __GNU__ is defined.
5057 * arm/linux-elf.h: Likewise.
5058 * cris/aout.h: Likewise.
5059 * cris/linux.h: Likewise.
5060 * i370/linux.h: Likewise.
5061 * i386/gnu.h: Likewise.
5062 * i386/linux-aout.h: Likewise.
5063 * i386/linux-oldld.h: Likewise.
5064 * i386/linux.h: Likewise.
5065 * i386/linux64.h: Likewise.
5066 * ia64/linux.h: Likewise.
5067 * m68k/linux-aout.h: Likewise.
5068 * m68k/linux.h: Likewise.
5069 * mips/linux.h: Likewise.
5070 * pa/pa-linux.h: Likewise.
5071 * pj/linux.h: Likewise.
5072 * rs6000/sysv4.h: Likewise.
5073 * s390/linux.h: Likewise.
5074 * sh/linux.h: Likewise.
5075 * sparc/linux-aout.h: Likewise.
5076 * sparc/linux.h: Likewise.
5077 * sparc/linux64.h: Likewise.
5078 * xtensa/linux.h: Likewise.
5080 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
5082 * stmt.c (check_unique_operand_names): Expect operand names to
5083 be strings rather than identifiers. Use simple_cst_equal to
5085 (resolve_operand_name_1): Make same identifier to string change here.
5086 * c-parse.in (asm_operand): Convert a named operand into a string.
5087 * cp/parse.y (asm_operand): Likewise.
5089 2002-04-13 Andreas Schwab <schwab@suse.de>
5091 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
5093 2002-04-12 Mark Mitchell <mark@codesourcery.com>
5095 Revert these changes:
5097 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5100 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5102 2002-04-12 Richard Henderson <rth@redhat.com>
5104 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
5105 (sparc*-*-solaris): Clean up header files.
5106 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
5107 and plan on generating 64-bit code.
5108 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
5109 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
5110 * config/sparc/sol2-sld-64.h: Rename ...
5111 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
5112 for AS_SPARC64_FLAG not defined.
5113 * config/sparc/sol2-gld-bi.h: New.
5114 * config/sparc/sol2-sld.h: Remove.
5115 * config/sparc/sol26-sld.h: New.
5116 * config/sparc/sol2.h: Tidy comments.
5117 * doc/install.texi: Document sparc-solaris configury changes.
5119 2002-04-12 Richard Henderson <rth@redhat.com>
5121 * recog.c (offsettable_address_p): Match the logic in adjust_address.
5123 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
5124 in 64-bit mode only. Use only for 32-bit or MEDLOW.
5126 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5128 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
5130 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
5132 * pa.c (pa_can_combine_p): Call extract_insn before calling
5135 2002-04-12 Douglas B Rupp <rupp@gnat.com>
5137 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
5138 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
5139 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
5140 (CPP_PREDEFINES): Handle __declspec.
5141 * config/i386/t-interix (USER_H): Remove.
5143 2002-04-12 DJ Delorie <dj@redhat.com>
5145 * integrate.c (compare_blocks): Make comparisons safe for when
5146 sizeof(int) < sizeof(char *).
5147 (find_block): Likewise.
5149 2002-04-12 Jan Hubicka <jh@suse.cz>
5150 David Edelsohn <edelsohn@gnu.org>
5152 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
5154 (symbol_ref_operand): New.
5155 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
5156 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
5158 2002-04-12 Andreas Schwab <schwab@suse.de>
5160 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
5161 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
5162 overrides the definition in config/svr4.h.
5164 2002-04-12 Eric Norum <eric.norum@usask.ca>
5166 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
5167 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
5168 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
5169 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
5170 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
5171 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
5172 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
5173 definitions to config/rtems.h and make the targets more similar.
5175 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5177 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
5178 POINTERS_EXTEND_UNSIGNED.
5179 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
5180 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
5182 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
5185 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
5187 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
5188 depends on TARGET_SHMEDIA, not TARGET_SH5.
5190 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
5192 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
5193 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
5195 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
5197 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
5200 2002-04-12 Andreas Schwab <schwab@suse.de>
5202 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
5204 2002-04-12 Richard Henderson <rth@redhat.com>
5207 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
5209 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
5210 modes spanning multiple hard regs.
5212 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
5214 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5216 * pa.c (pa_output_function_prologue): Don't accumulate the total
5217 number of code bytes when using TARGET_64BIT, or gas, SOM and not
5218 the portable runtime.
5219 (output_deferred_plabels): Handle 64bit plabels.
5220 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
5221 generating pic code using the GAS assembler for object formats that
5222 are not SOM (ie., ELF32 and ELF64).
5223 (output_millicode_call): Check attribute type if attribute length is 28.
5224 Likewise use $PIC_pcrel$0. Only call get_attr_length and
5225 dbr_sequence_length once.
5226 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
5227 dbr_sequence_length once.
5228 * pa.h (TARGET_SOM): Define if not defined.
5229 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
5230 with GAS and not SOM.
5231 (jump, call_internal_reg, call_value_internal_reg): Likewise.
5232 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
5234 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5236 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
5237 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
5238 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
5239 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
5240 elfos.h and dbxelf.h values are fine now.
5241 * config/i386/freebsd.h, config/alpha/freebsd.h
5242 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
5244 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5246 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
5247 or set Acpu or Amachine. Reformat.
5248 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5250 (LINK_SPEC): Do not need to undef.
5251 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
5252 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
5253 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5255 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
5256 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
5257 (LINK_SPEC): Do not need to undef.
5258 (DONT_USE_BUILTIN_SETJMP): Do not define.
5259 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
5260 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
5261 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
5262 Remove trailing spaces.
5263 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
5264 __ELF__, or set Acpu or Amachine. Reformat.
5265 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5268 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5270 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
5271 all other *-*-freebsd* targets.
5273 2002-04-11 Richard Henderson <rth@redhat.com>
5275 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
5277 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5279 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
5280 Include {cpu}/{cpu}.h thru tm_file.
5281 (alpha*-*-linux*ecoff): Remove target.
5282 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
5283 (LINK_SPEC): Remove, is not OS independent.
5284 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
5285 (LINK_SPEC): Do not need to #undef any longer.
5286 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
5288 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
5290 (LINK_SPEC): Moved here from alpha/elf.h.
5291 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
5293 * config/alpha/linux-ecoff.h: Remove.
5294 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
5295 (CPP_SPEC): Define _POSIX_SOURCE as needed.
5296 (CPP_SUBTARGET_SPEC): Do not define.
5297 (LINK_SPEC): Do not need to #undef any longer.
5298 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
5299 * config/alpha/vms.h: Likewise.
5301 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5303 * doc/extend.texi: Remove old claim that typedefs cannot have
5304 an alignment attribute.
5306 2002-04-11 Jakub Jelinek <jakub@redhat.com>
5308 PR optimization/6177
5309 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
5310 bitpos is 0 and bitsize CONCAT size.
5312 2002-04-11 Jakub Jelinek <jakub@redhat.com>
5315 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
5317 2002-04-10 David O'Brien <obrien@FreeBSD.org>
5319 * config/alpha/freebsd.h: Minor reformatting.
5320 (CPP_SPEC): Define ELF and add cpp_subtarget.
5321 (ASM_SPEC): No longer needed.
5323 2002-04-11 Richard Henderson <rth@redhat.com>
5325 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
5326 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
5327 (dimode mem/zero splitter): New.
5329 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
5331 * config/cris/cris.c (cris_override_options): Tweak error message
5332 for PIC not implemented.
5334 * config/cris/cris.h: Tweak comments related to parameter-passing.
5336 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
5338 2002-04-10 Richard Henderson <rth@redhat.com>
5340 * except.c (add_ehl_entry): Allow duplicates after landing pad
5343 2002-04-10 David Edelsohn <edelsohn@gnu.org>
5345 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
5347 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
5349 * c-decl.c (c_init_decl_processing): Move generation of
5350 decls for g77_integer_type_node and friends from here ...
5351 * c-common.c (c_common_nodes_and_builtins): ... to here.
5353 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
5355 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
5356 is only used as frame pointer when frame_pointer_needed is true.
5358 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
5361 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
5362 for the fact that the pool entry uses two words.
5363 (movdf_hard_insn): Similarly. Also, ADR instruction can span
5365 (movdf_soft_insn): Similarly.
5366 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
5367 for the fact that the pool entry uses three words.
5369 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
5371 * config/mips/mips.c (mips_va_arg): When using the struct version
5372 of the EABI va_list, allow arguments in the register save area to
5373 take up less room than a stack argument.
5375 2002-04-10 Richard Henderson <rth@redhat.com>
5377 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
5378 if EXPAND_INITIALIZER.
5380 2002-04-09 Richard Henderson <rth@redhat.com>
5382 * config/alpha/alpha.md (movdi_er_maybe_g): New.
5383 * config/alpha/alpha.c (alpha_expand_mov): Use it.
5385 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5387 PR optimization/6233
5388 * rtlanal.c (pure_call_p): New function.
5389 * rtl.h (pure_call_p): Declare.
5390 * loop.c (prescan_loop): Use it to set has_nonconst_call.
5391 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
5393 2002-04-09 Eric Christopher <echristo@redhat.com>
5395 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
5396 information to .comm directive.
5398 2002-04-09 Richard Henderson <rth@redhat.com>
5401 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
5403 2002-04-09 Richard Henderson <rth@redhat.com>
5405 * basic-block.h (flow_delete_block_noexpunge): Declare.
5406 (expunge_block_nocompact): Declare.
5407 * cfg.c (expunge_block_nocompact): Split out from ...
5408 (expunge_block): ... here.
5409 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
5410 (flow_delete_block_noexpunge): Split out from ...
5411 (flow_delete_block): ... here.
5412 * cfgcleanup.c (delete_unreachable_blocks): Compact while
5413 removing dead blocks.
5414 * except.c (exception_handler_labels): Remove.
5415 (exception_handler_label_map): New.
5416 (struct eh_region): Add aka member.
5417 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
5418 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
5419 (for_each_eh_label, for_each_eh_label_1): New.
5420 (init_eh): Register exception_handler_label_map.
5421 (free_eh_status): Use free_region.
5422 (find_exception_handler_labels): Use the map, not the list.
5423 (remove_exception_handler_label): Likewise.
5424 (maybe_remove_eh_handler): Likewise.
5425 (remove_eh_handler): Use the region aka bitmap.
5426 * except.h (exception_handler_labels): Remove.
5427 (for_each_eh_label): Declare.
5428 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
5429 * loop.c (invalidate_loops_containing_label): New.
5430 (find_and_verify_loops): Use it. Use for_each_eh_label.
5431 * sched-rgn.c (is_cfg_nonregular): Use
5432 current_function_has_exception_handlers.
5434 2002-04-09 Richard Henderson <rth@redhat.com>
5436 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
5437 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
5438 Do not return changed status.
5439 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
5440 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
5441 New functions that do return changed status.
5442 * sbitmap.h: Update decls.
5443 * gcse.c, lcm.c: Use _cg functions as needed.
5445 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5447 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
5448 (sh64-*-elf*, sh-*-rtemself*): Likewise.
5449 * config/sh/embed_bb.c: New file.
5450 * config/sh/embed-elf.h: New file.
5451 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
5452 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
5453 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5455 (SUBTARGET_CPP_PTR_SPEC): Don't define.
5456 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
5457 Add subtarget_asm_endian_spec.
5458 (ASM_SPEC): Use subtarget_asm_endian_spec.
5459 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
5460 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
5461 (WCHAR_UNSIGNED): Define.
5462 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
5463 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5464 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
5466 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
5467 (sh_adjust_cost): Likewise.
5468 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5470 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
5471 (WCHAR_TYPE_SIZE): Likewise.
5472 (ASM_SPEC): Use subtarget_asm_endian_spec.
5473 (SH_ELF_WCHAR_TYPE): #undef/ #define.
5474 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
5475 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
5476 (MAX_WCHAR_TYPE_SIZE): Don't #define .
5477 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
5478 (USER_LABEL_PREFIX): Don't #undef /#define .
5479 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5480 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
5481 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
5482 (ASM_SPEC): Likewise.
5483 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
5484 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
5485 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
5486 (LIB2FUNCS_EXTRA): Define.
5487 * t-sh64 (LIB2FUNCS_EXTRA): Define.
5488 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
5489 (LIB1ASMFUNCS_CACHE): Define.
5490 (LIB2FUNCS_EXTRA): Redefine empty.
5492 2002-04-08 Richard Henderson <rth@redhat.com>
5494 * reorg.c (get_branch_condition): Use reversed_comparison_code.
5496 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5498 * config/m68hc11/larith.asm (__map_data_section): Fix condition
5499 and optimize for size.
5500 (__do_global_ctors): Fix pointer comparison.
5501 (__do_global_dtors): Likewise.
5503 2002-04-09 David S. Miller <davem@redhat.com>
5505 * config/sparc/sparc.c (sparc_extra_constraint_check): New
5506 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
5507 allow reloading pseudos.
5508 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
5509 * config/sparc/sparc-protos.h: Declare it.
5511 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
5512 unsigned comparison warning.
5513 (output_restore_regs): Mark leaf_function as unused.
5515 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5517 * expr.c (is_aligning_offset): New function.
5518 (expand_expr, case COMPONENT_EXPR): Call it.
5520 2002-04-08 David S. Miller <davem@redhat.com>
5523 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
5525 Make init_priority work on Sparc when using GNU ld.
5526 * config/sparc/linux.h, config/sparc/linux64.h,
5527 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
5528 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
5529 * config/sparc/sol2-gld.h: New file to do the same.
5530 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
5531 sparc/sol2-gld.h to tm_file.
5533 PR optimization/4328
5534 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
5535 * doc/md.texi: Document it.
5536 * config/sparc/sparc.md (movdi_insn_sp64_novis,
5537 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
5538 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
5539 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
5540 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
5542 2002-04-08 Andreas Jaeger <aj@suse.de>
5544 * stmt.c (expand_asm_operands): Revert last patch from Richard
5547 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5549 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
5550 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
5552 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5554 * doc/contrib.texi (Contributors): Add David O'Brien.
5556 2002-04-08 Alan Modra <amodra@bigpond.net.au>
5558 * configure.in (auto-build.h): Use target_alias and build_alias
5559 when running configure.
5560 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
5561 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
5562 * configure: Regenerate.
5564 2002-04-07 David S. Miller <davem@redhat.com>
5566 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
5568 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5571 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
5572 generating 32-bit pic code.
5574 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5576 * cppinit.c (cpp_create_reader): Initialize
5577 discard_comments_in_macro_exp.
5578 (COMMAND_LINE_OPTIONS): Add "-CC" option.
5579 (cpp_handle_option): Handle "-CC" option.
5580 * cpplex.c (save_comment): If saving a C++ comment in
5581 a directive, convert it to a C comment.
5582 (_cpp_lex_direct): Pass second comment start character to
5583 save_comment to indicate comment type.
5584 * cpplib.c (_cpp_handle_directive): If processing
5585 a "#define" directive and discard_comments_in_macro_exp
5586 is false, re-enable saving of comments.
5587 (lex_macro_node): If discard_comments_in_macro_exp is false,
5588 discard any comments before the macro identifier.
5589 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
5591 * cppmacro.c (cpp_get_token): If expanding a macro while
5592 processing a directive, discard any comments we might encounter.
5593 (parse_params): If discard_comments_in_macro_exp is false,
5594 ignore comments in the macro parameter list.
5595 * gcc.c (cpp_unique_options): Add "-CC" option.
5596 (option_map): Map "--comments-in-macros" to "-CC".
5597 * doc/cppopts.texi: Document "-CC" option.
5598 * f/lang-specs.h: Add "-CC" option.
5599 * testsuite/gcc.dg/cpp/maccom1.c: New test.
5600 * testsuite/gcc.dg/cpp/maccom2.c: New test.
5601 * testsuite/gcc.dg/cpp/maccom3.c: New test.
5602 * testsuite/gcc.dg/cpp/maccom4.c: New test.
5603 * testsuite/gcc.dg/cpp/maccom5.c: New test.
5604 * testsuite/gcc.dg/cpp/maccom6.c: New test.
5606 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5609 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
5611 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5614 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5617 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
5618 RTX_UNCHANGING_P for the functions arguments when a tail call
5621 2002-04-06 Jason Merrill <jason@redhat.com>
5623 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
5624 (parse_options_and_default_flags): Set them appropriately.
5625 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
5627 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
5629 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
5632 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
5635 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
5636 types come in by-reference. Fix typo in comment.
5638 2002-04-05 David S. Miller <davem@redhat.com>
5640 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
5641 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5642 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
5643 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
5645 2002-04-05 David S. Miller <davem@redhat.com>
5647 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
5648 are not going to emit return instructions, emit at least a nop
5649 for the sake of sane backtraces.
5651 2002-04-05 Richard Henderson <rth@redhat.com>
5653 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
5655 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
5657 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
5659 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
5661 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
5662 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5663 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
5665 2002-04-05 Andreas Schwab <schwab@suse.de>
5667 * c-convert.c: Include c-common.h.
5668 * Makefile.in (c-convert.o): Updated.
5670 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5672 * mklibgcc.in: Use separate libgcc.map for each multilib.
5673 * Makefile.in (distclean): Don't remove libgcc.map here.
5675 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5677 * Makefile.in (s-mlib): Handle --disable-multilib by separate
5678 genmultilib invocation.
5680 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
5682 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
5683 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
5684 to num_gprs for symmetry.
5685 * config/mips/mips.c: Adjust accordingly.
5687 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
5689 * c-common.c (truthvalue_conversion): Rename, update.
5690 * c-common.h (c_common_truthvalue_conversion): New.
5691 * c-convert.c (convert): Update.
5692 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5693 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
5694 * c-typeck.c (build_binary_op, build_unary_op,
5695 build_conditional_expr): Update.
5696 * fold-const.c (constant_boolean_node, fold): Use langhook.
5697 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5698 * langhooks.h (struct lang_hooks): New hook.
5699 * stmt.c (expand_decl_cleanup): Use langhook.
5700 * tree.h (truthvalue_conversion): Remove.
5702 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5704 2002-04-05 Alan Modra <amodra@bigpond.net.au>
5706 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5707 Add rules to make null object file.
5709 2002-04-04 Jim Blandy <jimb@redhat.com>
5711 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5712 macro formal parameter names.
5714 2002-04-04 David S. Miller <davem@redhat.com>
5716 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5718 2002-04-04 Richard Henderson <rth@redhat.com>
5721 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5722 Support copies into and out of memory. Don't accept allows_reg
5723 and allows_mem as gospel.
5725 2002-04-04 Richard Henderson <rth@redhat.com>
5728 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5729 (write_dependence_p): Likewise.
5731 2002-04-04 Richard Henderson <rth@redhat.com>
5733 * predict.c (estimate_bb_frequencies): Do frequency calculation
5734 with a volatile temporary.
5736 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
5738 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5740 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5743 * final.c (final_start_function): Don't bump profile_label_no here...
5744 (final_end_function): ...but here.
5746 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5748 * config/sparc/sparc.md (pic): New attribute.
5749 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5751 (split after do_builtin_setjmp_setup): New.
5753 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5756 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5759 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5761 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5762 UNITS_PER_WORD for zero sized aggregates.
5764 2002-04-03 David S. Miller <davem@redhat.com>
5766 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5767 one-character spec for this, just use %(link_gcc_c_sequence).
5769 2002-04-03 David S. Miller <davem@redhat.com>
5771 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5774 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5776 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5777 (DWARF_FRAME_RETURN_COLUMN): Move.
5778 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5779 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5780 * pa.c (except.h, predict.h): Include.
5782 (store_reg_modify, set_reg_plus_d): Revise prototypes.
5783 (output_ascii): Add cast.
5784 (store_reg_modify): Revise to add frame notes.
5785 (set_reg_plus_d): Likewise.
5786 (compute_frame_size): Include space for eh data registers in frame if
5787 the current function calls eh_return.
5788 (hppa_expand_prologue): Ensure register %r2 is saved if the current
5789 function calls eh_return. Save eh data registers if the current
5790 function calls eh_return. Fix code to add frame notes. Emit
5791 blockage to prevent insns with frame notes being scheduled in the
5792 delay slot of calls.
5793 (hppa_expand_epilogue): Restore eh data registers and do final stack
5794 adjustment if the current function calls eh_return. Don't add frame
5796 (output_call): Revise for change in length of call insn. Don't do
5797 return pointer adjustment for an unconditional jump in the delay slot
5798 of a call when using frame notes.
5799 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5800 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5801 (ARG_POINTER_CFA_OFFSET): Define.
5802 * pa.md (return_external_pic): New pattern.
5803 (prologue): Correct formatting. Use return_external_pic if current
5804 function calls eh_return.
5805 (call_internal_symref, call_value_internal_symref,
5806 sibcall_internal_symref, sibcall_value_internal_symref): Change default
5807 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5809 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5811 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5812 list of targets to check using "nop" insn.
5813 * configure: Rebuilt.
5815 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5817 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5819 2002-04-03 David S. Miller <davem@redhat.com>
5821 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5822 library sequence passed to the linker.
5823 (LINK_COMMAND_SPEC): Use it.
5824 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5825 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5826 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5828 2002-04-03 Jason Merrill <jason@redhat.com>
5830 * except.c (struct eh_status): Remove protect_list.
5831 (begin_protect_partials, end_protect_partials): Remove.
5832 (add_partial_entry): Remove.
5833 * except.h: Remove prototypes.
5835 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5836 expand_decl_cleanup_eh.
5839 * tree.h (CLEANUP_EH_ONLY): New macro.
5840 * stmt.c (expand_decl_cleanup_eh): New fn.
5841 (expand_cleanups): Check CLEANUP_EH_ONLY.
5842 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5843 Use expand_decl_cleanup_eh.
5844 (expand_stmt): Adjust.
5845 * c-common.h: Adjust prototype.
5847 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
5849 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5850 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5851 (cris_target_asm_function_epilogue): Ditto.
5852 (cris_initial_frame_pointer_offset): Ditto.
5853 (cris_simple_epilogue): Ditto.
5854 (cris_expand_builtin_va_arg): Variable-size types come in
5857 2002-04-03 David S. Miller <davem@redhat.com>
5859 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5861 (set_fast_math): Correct 'fsr' type.
5863 2002-04-03 Richard Henderson <rth@redhat.com>
5866 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5867 * toplev.c (check_global_declarations): Use it.
5868 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5869 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5870 (LANG_HOOKS_DECLS): Add it.
5871 * langhooks.c (lhd_warn_unused_global_decl): New.
5872 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5873 * c-objc-common.c (c_warn_unused_global_decl): New.
5874 * c-tree.h (c_warn_unused_global_decl): Declare.
5875 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5877 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
5879 * langhooks-def.h (lhd_set_decl_assembler_name,
5880 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5881 (LANG_HOOKS_INITIALIZER): Update.
5882 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5883 * langhooks.h (struct lang_hooks): New hook.
5884 * tree.c (set_decl_assembler_name): Move to langhooks.c.
5885 (lang_set_decl_assembler_name): Remove.
5886 (init_obstacks): Don't set hook.
5887 (decl_assembler_name): New function.
5888 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5889 (decl_assembler_name): New.
5890 (lang_set_decl_assembler_name): Remove.
5892 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5894 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5895 works properly with .hidden symbols.
5896 * configure: Rebuilt.
5897 * config.in: Rebuilt.
5898 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5899 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5900 properly with .hidden symbols.
5902 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5905 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5908 2002-04-03 Richard Henderson <rth@redhat.com>
5911 * sched-rgn.c (sets_likely_spilled): New.
5912 (sets_likely_spilled_1): New.
5913 (add_branch_dependences): Use it.
5915 2002-04-02 Richard Henderson <rth@redhat.com>
5918 * loop.h (LOOP_FIRST_PASS): New.
5919 * loop.c (strength_reduce): Mind it when deciding to unroll.
5920 * toplev.c (rest_of_compilation): Set it.
5922 2002-04-02 David S. Miller <davem@redhat.com>
5924 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5925 mems_ok_for_ldd_peep when the order of the loads being examined
5927 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5928 existing comment to increase comprehension of this situation.
5930 2002-04-02 Zack Weinberg <zack@codesourcery.com>
5932 * config/sh/sh.md: Don't use union real_extract.
5934 2002-04-02 Richard Henderson <rth@redhat.com>
5936 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5938 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5940 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5941 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5942 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5943 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5944 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5945 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5946 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5947 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5948 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5949 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5950 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5951 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5952 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5953 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5954 Include as many configury headers via tm_file as possible. This
5955 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5956 * config/openbsd-oldgas.h: New file.
5957 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5958 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5959 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5960 config/i386/i386-coff.h, config/i386/i386-interix.h,
5961 config/i386/iscdbx.h, config/i386/linux-aout.h,
5962 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5963 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5964 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5965 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5966 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5967 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5968 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5969 config/i386/vxi386.h: Do not directly include configury headers.
5970 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5971 Directly include configury headers that are no longer automatically
5972 included by the above headers.
5973 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5974 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5975 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5976 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5977 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5978 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5979 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5980 (TARGET_VERSION): Define.
5981 * config/i386/beos-elf.h, config/i386/freebsd.h,
5982 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5983 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5984 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5985 config/i386/sco5.h, config/i386/sysv4.h
5986 (TARGET_VERSION): Do not need to protect.
5987 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5988 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5989 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5990 config/i386/i386-interix.h, config/i386/linux-aout.h,
5991 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5992 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5993 (YES_UNDERSCORES): Do not define - not needed.
5994 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5995 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5996 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5997 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5998 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5999 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
6000 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
6001 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
6003 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
6004 Richard Henderson <rth@redhat.com>
6007 * function.c (assign_temp): Accept either type or decl argument.
6008 Detect variables whose size is too large to fit into an integer.
6009 * stmt.c (expand_decl): Pass the decl, not the type.
6011 2002-04-02 David O'Brien <obrien@FreeBSD.org>
6013 * protoize.c: Match include directory usage with cppdefault.c.
6015 2002-04-03 Jeffrey A Law (law@redhat.com)
6016 Hans-Peter Nilsson <hp@bitrange.com>
6018 * combine.c (simplify_comparison): Avoid narrowing a comparison
6019 with a paradoxical subreg when doing so would drop signficant bits.
6021 2002-04-02 Steve Ellcey <sje@cup.hp.com>
6023 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
6024 if POINTERS_EXTEND_UNSIGNED is defined.
6026 2002-04-02 Richard Henderson <rth@redhat.com>
6029 * local-alloc.c (contains_replace_regs): LO_SUM may contain
6032 2002-04-02 Richard Henderson <rth@redhat.com>
6034 * doc/standards.texi: Document required freestanding libc entry points.
6036 2002-04-02 Alan Modra <amodra@bigpond.net.au>
6038 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
6039 associated splitter. Remove MQ constraint.
6040 (ctrdi_internal4): Correct CCmode clobber.
6042 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6044 * milli64.S ($$dyncall): New function.
6045 * t-linux (LIB1ASMFUNCS): Revise module list.
6046 (LIB1ASMSRC): Use pa/milli64.S.
6048 2002-04-02 Richard Henderson <rth@redhat.com>
6050 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
6051 rename solaris_sys_varargs_h.
6053 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6055 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
6056 the same mode as its component.
6058 2002-04-02 Richard Henderson <rth@redhat.com>
6061 * final.c (this_is_asm_operands): Export.
6062 * output.h (this_is_asm_operands): Declare.
6063 * config/i386/i386.c (print_operand): Error odd asm operands.
6065 2002-04-02 Richard Henderson <rth@redhat.com>
6068 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
6070 2002-04-01 Richard Henderson <rth@redhat.com>
6073 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
6074 * fixinc/fixincl.x: Rebuild.
6076 2002-04-01 Richard Henderson <rth@redhat.com>
6078 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
6079 (atomic_alloc, atomic_free): New.
6080 (SIZE, MASK_FOR, PTR_IN): New.
6081 (emergency_reg_state, emergency_reg_state_free): New.
6082 (emergency_labeled_state, emergency_labeled_state_free): New.
6083 (reg_state_alloced, labeled_state_alloced): New.
6084 (alloc_reg_state, free_reg_state): New.
6085 (alloc_label_state, free_label_state, free_label_states): New.
6086 (push, pop, dup_state_stack, free_state_stack): Use them.
6087 (desc_label_state): Likewise.
6088 (uw_frame_state_for): Free label states and state stack.
6089 (uw_update_reg_address): Eliminate warnings.
6091 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
6093 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
6094 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
6096 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6098 * c-decl.c (grokdeclarator): Update.
6099 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6100 * c-tree.h (c_mark_addressable): New.
6101 * c-typeck.c (default_function_array_conversion, build_unary_op,
6102 build_array_ref, convert_for_assignment): Update.
6103 (mark_addressable): Rename.
6104 * calls.c (try_to_integrate, expand_call): Use langhook.
6105 * expr.c (expand_expr): Use langhook.
6106 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
6107 * langhooks.h (struct lang_hooks): New hook.
6108 * stmt.c (expand_asm_operands): Use langhook.
6109 * tree.h (mark_addressable): Remove.
6111 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6113 2002-04-01 Bob Wilson <bob.wilson@acm.org>
6115 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
6118 2002-04-01 Bob Wilson <bob.wilson@acm.org>
6120 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
6121 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
6123 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6125 * c-common.c (unsigned_conversion_warning, convert_and_check,
6126 unsigned_type, signed_type, shorten_compare,
6127 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
6128 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
6129 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
6131 * c-decl.c (grokdeclarator): Update.
6132 * c-format.c (check_format_types): Update.
6133 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6134 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6135 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
6136 * convert.c (convert_to_integer): Use new hooks.
6137 * expmed.c (make_tree): Use new hooks.
6138 * expr.c (store_expr): Use new hooks.
6139 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
6140 all_ones_mask_p, unextend, fold): Use new hooks.
6141 * langhooks.h (struct lang_hooks_for_types): New hooks.
6142 * tree.h (signed_or_unsigned_type, signed_type,
6143 unsigned_type): Remove.
6145 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6146 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6148 2002-03-31 Richard Henderson <rth@redhat.com>
6150 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
6151 (desc_frgr_mem): Fix reference to f16-f31.
6153 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6155 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
6156 RTVEC_ELT): Const-ify.
6157 * varray.h (VARRAY_CHECK): Const-ify.
6158 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
6159 ggc_mark_rtvec, ggc_mark): Const-ify.
6161 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6163 * diagnostic.c: Include langhooks-def.h.
6164 * Makefile.in (diagnostic.o): Update.
6166 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6168 * c-common.c (c_unsafe_for_reeval): Rename.
6169 * c-common.h (c_unsafe_for_reeval): Rename.
6170 * c-decl.c (finish_incomplete_decl): Rename.
6171 (c_init_decl_processing): Don't set langhook.
6172 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6173 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6174 * c-objc-common.c (c_objc_common_init): Don't set langhook.
6175 * c-tree.h (finish_incomplete_decl): Rename.
6176 * langhooks-def.h (lhd_unsafe_for_reeval): New.
6177 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
6178 (LANG_HOOKS_INITIALIZER): Update.
6179 * langhooks.c (lhd_unsafe_For_reeval): New.
6180 * langhooks.h (struct langhooks): New hooks.
6181 * toplev.c (incomplete_decl_finalize_hook): Remove.
6182 (wrapup_global_declarations): Update.
6183 * tree.c (lang_unsafe_for_reeval): Remove.
6184 (unsafe_for_reeval): Update.
6185 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
6188 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6189 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6191 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6193 * diagnostic.c (print_error_function): Remove.
6194 (default_print_error_function): Rename.
6195 (report_error_function): Update.
6196 * diagnostic.h (print_error_function): Remove.
6197 (default_print_error_function): Remove.
6198 * langhooks-def.h (struct diagnostic_context): Predeclare.
6199 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
6200 (LANG_HOOKS_INITIALIZER): Update.
6201 * langhooks.h (struct diagnostic context): Predeclare.
6202 (struct lang_hooks): New hook.
6204 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6206 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
6207 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
6209 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
6210 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
6211 of PIC_OFFSET_TABLE_REGNUM thruout.
6212 * config/rs6000/rs6000.md: Likewise.
6213 * config/rs6000/darwin.h: Likewise.
6215 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6217 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
6218 unsigned HOST_WIDE_INT, not unsigned int.
6220 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6222 PR middle-end/6096, middle-end/6098, middle-end/6099
6223 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
6225 (fill_slots_from_thread): Likewise.
6227 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6229 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
6230 floating fields in float regs.
6231 (function_arg_record_value_2): Likewise.
6233 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6235 * config/mmix/mmix.md (define_constants): Remove misleading
6236 FIXME. Add MMIX_fp_rO_OFFSET.
6237 ("nonlocal_goto_receiver"): Don't have stack-frame address of
6238 saved rO as part of the pattern. Remove FIXME.
6239 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
6240 here, at output-time.
6242 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6245 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
6247 (output_v9branch): Likewise.
6249 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
6251 * gcc.c: Revert previous patch for now.
6252 * config/i386/djgpp.h: Likewise.
6254 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6256 * config/mmix/crti.asm (_init): Register _fini with atexit.
6257 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
6259 2002-03-31 Richard Henderson <rth@redhat.com>
6262 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
6263 (ASM_OUTPUT_DEF_FROM_DECLS): New.
6265 2002-03-31 Richard Henderson <rth@redhat.com>
6267 * libgcc2.c (__bb_exit_func): Make static.
6269 * config/alpha/alpha.md (trap): New.
6271 2002-03-31 Richard Henderson <rth@redhat.com>
6273 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
6274 promoted argument types; build trap.
6275 (expand_builtin_trap): New.
6276 (expand_builtin): Use it.
6277 * stmt.c (expand_nl_goto_receivers): Likewise.
6278 * expr.h (expand_builtin_trap): Declare.
6279 * libfuncs.h (LTI_abort, abort_libfunc): New.
6280 * optabs.c (init_optabs): Init abort_libfunc.
6282 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
6284 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
6285 (LINK_COMMAND_SPEC): ... from here.
6286 (init_gcc_specs): Duplicate it here too, omitting
6287 shared_name in the second copy.
6288 (init_spec): Test for duplicate
6289 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
6291 2002-03-30 David S. Miller <davem@redhat.com>
6293 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6294 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
6296 2002-03-30 Roger Sayle <roger@eyesopen.com>
6297 Richard Henderson <rth@redhat.com>
6299 * regmove.c (combine_stack_adjustments_for_block): Avoid
6300 emitting a stack adjustment of zero bytes. Let delete_insn
6303 2002-03-30 Richard Henderson <rth@redhat.com>
6305 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
6306 (sparc_emitting_epilogue): New.
6307 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
6308 * config/sparc/sparc-protos.h: Update.
6309 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
6310 (TARGET_SWITCHES): Update.
6311 * config/sparc/sparc.md (return): Remove.
6312 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
6313 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
6314 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
6315 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6316 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
6317 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
6318 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
6319 Remove MASK_EPILOGUE.
6320 * doc/invoke.texi: Update.
6322 2002-03-30 Daniel Berlin <dan@dberlin.org>
6324 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
6325 CPP will start the file for us.
6327 2002-03-30 Richard Henderson <rth@redhat.com>
6330 * config/ia64/ia64.c (group_barrier_needed_p): Special case
6331 prologue_allocate_stack.
6332 (ia64_single_set): Use insn codes for recognition of special
6333 cases, not rtl matching.
6334 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
6336 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
6338 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
6340 2002-03-30 Richard Henderson <rth@redhat.com>
6343 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
6344 or -fomit-frame-pointer with profiling.
6345 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6346 (FUNCTION_PROFILER): Do nothing.
6347 (PROFILE_HOOK): New.
6348 * config/sparc/sparc.c (sparc_override_options): Don't check
6349 code models for profiling.
6350 (sparc_function_profiler): Remove.
6351 (sparc_profile_hook): New.
6352 * config/sparc/sparc-protos.h: Update.
6354 2002-03-30 Jakub Jelinek <jakub@redhat.com>
6356 PR optimization/6086
6357 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
6358 of SUBREG of volatile MEM or because the MEM was mode dependent,
6359 return CLOBBER instead of unmodified SUBREG.
6361 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
6363 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
6364 when not optimizing.
6366 * toplev.c (rest_of_compilation): Cann mark_constant_function
6367 only when optimizing.
6369 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
6372 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
6373 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
6374 (try_optimize_cfg): clear all AUX fields.
6376 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
6377 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
6378 (ix86_address_cost): Be prepared for SUBREGed registers.
6379 (legitimate_address_p): Accept SUBREGed registers.
6381 2002-03-29 Richard Henderson <rth@redhat.com>
6384 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
6386 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6388 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
6389 for aggregate and TFmode types.
6391 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
6393 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
6395 2002-03-29 Richard Henderson <rth@redhat.com>
6398 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
6399 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
6401 2002-03-29 Richard Henderson <rth@redhat.com>
6404 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
6405 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
6406 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
6407 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
6409 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
6411 2002-03-29 Dale Johannesen <dalej@apple.com>
6413 * loop.c (combine_movables): Do allow combination of pseudos.
6415 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
6417 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
6418 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
6419 No functional change except ...
6420 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
6421 * doc/install.texi (*-*-freebsd*): Document port configuration.
6423 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
6425 * Makefile.in (convert.o, calls.o, expmed.o): Update.
6426 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
6428 * builtin-types.def (BT_PTRMODE): Update.
6429 * c-common.c (type_for_size): Rename c_common_type_for_size.
6430 (type_for_mode): Similarly.
6431 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
6433 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
6434 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
6435 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
6437 * c-typeck.c (common_type, comptypes, default_conversion):
6439 * calls.c: Include langhooks.h.
6440 (emit_library_call_value_1): Use new hooks. Avoid redundant
6442 * convert.c: Include langhooks.h
6443 (convert_to_pointer, convert_to_integer): Use new hooks.
6444 * except.c (init_eh): Similarly.
6445 * expmed.c: Include langhooks.h.
6446 (expand_mult_add): Use new hooks.
6447 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
6448 try_casesi): Similarly.
6449 * fold-const.c (optimize_bit_field_compare, make_range,
6450 decode_field_reference, fold_truthop, fold): Similarly.
6451 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
6452 put_var_into_stack): Similarly.
6453 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
6454 LANG_HOOKS_TYPE_FOR_SIZE): New.
6455 (LANG_HOOKS_TYPES_INITIALIZER): Update.
6456 * langhooks.h (lang_hooks_for_types): New hooks.
6457 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
6458 * tree.c (get_unwidened, get_narrower): Similarly.
6459 * tree.h (type_for_mode, type_for_size): Remove.
6460 * varasm.c (force_const_mem): Use new hooks.
6461 * utils2.c (nonbinary_modular_operation): Update.
6463 * objc-act.c (handle_impent): Update.
6464 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
6467 2002-03-29 Steve Ellcey <sje@cup.hp.com>
6469 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
6470 * config/ia64/ia64.c (basereg_operand): New.
6471 * config/ia64/ia64-protos.h (basereg_operand): Declare.
6472 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
6474 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
6476 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
6477 unwind information when frame_pointer_needed.
6478 (mmix_assemble_integer): Tweak wording in comment.
6480 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
6482 * Makefile.in (except.o): Update.
6483 * except.c: Include langhooks.h.
6484 (init_eh): Use langhook.
6485 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
6486 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
6487 (LANG_HOOKS_INITIALIZER): Update.
6488 * langhooks.h (lang_hooks_for_types): New.
6489 (struct lang_hooks): Add it.
6490 * tree.c (make_lang_type_fn, make_lang_type): Remove.
6491 * tree.h (make_lang_type_fn, make_lang_type): Remove.
6493 * alpha/alpha.c: Include langhooks.h.
6494 (alpha_build_va_list): Use langhook.
6495 * d30v/d30v.c: Include langhooks.h.
6496 (d30v_build_va_list): Use langhook.
6497 * i386/i386.c: Include langhooks.h.
6498 (ix86_build_va_list): Use langhook.
6499 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
6500 * s390/s390.c: Include langhooks.h.
6501 (s390_build_va_list): Use langhook.
6502 * stormy16/stormy16.c: Include langhooks.h.
6503 (stormy16_build_va_list): Use langhook.
6505 2002-03-29 Jakub Jelinek <jakub@redhat.com>
6508 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
6510 (length): Compute variable length for branches/calls/jumps here.
6511 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
6512 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
6513 define branch_type attribute.
6514 (divsi3_sp32): Maximum length is 6 not 7.
6515 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
6516 call_address_untyped_struct_value_sp32,
6517 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
6518 * config/sparc/sparc.c (empty_delay_slot): New function.
6519 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
6520 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
6522 2002-03-29 Jakub Jelinek <jakub@redhat.com>
6524 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
6525 nonzero_bits if not needed.
6526 (nonzero_bits) [XOR]: Likewise.
6527 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
6528 reg_last_set_mode and mode are both MODE_INT, but not equal.
6529 (record_value_for_reg): Compute reg_last_set_nonzero_bits
6530 in nonzero_bits_mode for MODE_INT modes.
6532 2002-03-28 Richard Henderson <rth@redhat.com>
6535 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
6536 to GAS. Correct drift between alternatives.
6538 2002-03-28 Richard Henderson <rth@redhat.com>
6541 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
6543 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
6545 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
6546 emulation to the linker.
6548 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
6550 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
6551 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
6553 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
6555 * combine.c (simplify_and_const_int): Make sure to apply mask
6556 when force_to_mode returns a constant integer. PR3311.
6558 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
6560 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
6562 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6564 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
6565 and Objective-C Dialect Options.
6567 2002-03-28 Richard Henderson <rth@redhat.com>
6569 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
6570 comparison should be done vs !=0 not >0 return code. Tidy cases.
6572 2002-03-28 Richard Henderson <rth@redhat.com>
6574 * c-decl.c (finish_function): New arg can_defer_p. Pass it
6575 on to c_expand_body.
6576 * c-tree.h (finish_function): Update decl.
6577 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
6579 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
6581 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
6583 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
6585 * rtlanal.c: Include flags.h
6586 (may_trap_p): Do not mark FP operations if trapping
6587 if !flag_trapping_math
6588 * Makefile.in (rtlanal.o): Add dependency on flag.h
6589 * ifcvt.c (noce_operand_ok): Avoid the lameness.
6591 2002-03-27 Zack Weinberg <zack@codesourcery.com>
6593 * mips.md: Use dconst1, not 1.0, as first argument of
6594 REAL_VALUE_LDEXP. Don't use union real_extract.
6596 2002-03-28 Alan Modra <amodra@bigpond.net.au>
6598 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
6599 rather than $target. Heed program_prefix and
6600 program_transform_name. Search for gas in cross-compiler case too.
6601 "test -x" rather than "test -f".
6602 (gcc_cv_ld): Likewise.
6603 (gcc_cv_nm): Heed program_prefix and program_transform_name.
6604 (gcc_cv_objdump): Likewise.
6605 * configure: Regenerate.
6607 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6609 * Makefile.in (attribs.o): Update.
6610 * attribs.c: Include langhooks.h.
6611 (decl_attributes): Use langhook.
6612 * c-decl.c (insert_default_attributes): Rename.
6613 * c-tree.h (c_insert_default_attributes): New.
6614 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
6615 (LANG_HOOKS_INITIALIZER): Update.
6616 * langhooks.h (struct lang_hooks): New hook.
6617 * tree.h (insert_default_attributes): Remove.
6619 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
6621 2002-03-27 Andreas Schwab <schwab@suse.de>
6623 * config/i386/i386.c (classify_argument): Also check for
6626 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6628 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
6631 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
6633 * i960.md (ret): Set PC.
6634 (nonlocal_goto): Fix expander.
6635 * builtins.c (epxand_builin_longjmp): Check that we've emitted
6638 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
6640 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
6643 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6645 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
6646 assigning to BLOCK_FOR_INSN directly.
6648 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
6650 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
6652 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6654 * c-common.c (c_expand_expr): Fix prototype.
6655 * c-common.h (c_expand_expr): Always declare, update.
6656 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6657 * c-objc-common.c (c_objc_common_init): No global hook.
6658 * expr.c (expand_expr): Use langhook.
6659 * expr.h (enum expand_modifier): Conditionally declare.
6660 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
6661 (LANG_HOOKS_INITIALIZER): Update.
6662 * langhooks.c (lhd_expand_expr): New.
6663 * langhooks.h (struct lang_hooks): New hook.
6664 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
6665 (lang_independent_init): Don't default hook.
6667 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6669 2002-03-27 Richard Henderson <rth@redhat.com>
6672 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
6673 TARGET_CONST_GP. Simplify conditions.
6675 2002-03-27 Richard Henderson <rth@redhat.com>
6677 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6678 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
6679 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6681 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
6683 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
6684 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
6685 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
6686 Remove unnecessary masks.
6687 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
6688 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
6689 -mwindows, -mdll switches and their negations.
6691 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6693 * gcc-common.c (lang_mark_false_label_stack): Remove.
6694 * ggc.h (lang_mark_false_label_stack): Similarly.
6696 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
6698 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6700 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6701 or __rtems_ is defined.
6703 2002-03-26 Richard Henderson <rth@redhat.com>
6705 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6706 if a non-trivial load was emitted.
6707 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
6708 in high+extra+low case.
6710 2002-03-26 Richard Henderson <rth@redhat.com>
6712 * config.gcc (sparc*-solaris): Use float_format=sparc.
6714 2002-03-26 Richard Henderson <rth@redhat.com>
6716 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6717 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6718 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6719 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6720 (WINT_TYPE_SIZE): Fix at 32.
6722 2002-03-26 Richard Henderson <rth@redhat.com>
6724 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6725 until after eh landing pad generation.
6726 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6727 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6729 2002-03-26 Richard Henderson <rth@redhat.com>
6731 * expr.h (ADD_PARM_SIZE): One more convert for INC.
6733 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
6735 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
6736 and warning switches.
6737 (cc1_options): Likewise.
6739 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
6741 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6742 Restore more of the signal context. Set no_reg_stack_frame.
6743 * config/ia64/unwind-ia64.c (unw_state_record):
6744 Add no_reg_stack_frame, comments.
6745 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6746 (uw_update_context): Adjust bsp when unwinding from leaf,
6747 but not signal frame.
6749 2002-03-26 David Edelsohn <edelsohn@gnu.org>
6751 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6753 2002-03-26 Bob Wilson <bob.wilson@acm.org>
6755 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6757 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
6760 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6761 "Add a pool_range attribute", which was lost during the ARM/Thumb
6764 2002-03-26 Bob Wilson <bob.wilson@acm.org>
6766 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6767 a register into the MAC16 accumulator.
6769 2002-03-26 Andrew Cagney <ac131313@redhat.com>
6771 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6772 (Warning Options): Document -Wswitch-enum.
6773 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
6775 (warn_switch_enum): Define variables.
6776 * flags.h (warn_switch_enum): Declare variables.
6777 * stmt.c (expand_end_case_type): When warn_switch_enum /
6778 -Wswitch-enum, perform switch checks.
6781 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
6783 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6784 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6785 (reload_muladdsi_compare0_scratch): Delete.
6787 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
6789 * doc/install.texi (*-*-freebsd*): Update.
6791 2002-03-26 Richard Henderson <rth@redhat.com>
6793 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6794 (SUB_PARM_SIZE): Cast DEC to ssizetype.
6796 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6797 types from the normal argument frame.
6799 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6800 variable sized objects by reference.
6801 (sparc_va_arg): Receive them by reference too.
6803 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
6805 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6806 code to not restoring global registers.
6808 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
6810 * Makefile.in (ggc-common.o): Update.
6811 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6812 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6813 * c-tree.h (c_mark_tree): New.
6814 * ggc-common.c: Include langhooks.h.
6815 (gcc_mark_trees): Use new langhook.
6816 * ggc-callbacks.c: Delete file.
6817 * ggc.h (lang_mark_tree): Remove.
6818 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6819 (LANG_HOOKS_INITIALIZER): Update.
6820 * langhooks.h (struct lang_hooks): New hook.
6822 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6824 2002-03-25 Zack Weinberg <zack@codesourcery.com>
6826 * doc/cpp.texi: Exclude entire Top node from printed manual.
6827 Move option index after directive index. Insert page breaks
6828 before GFDL and concept index. Index environment variables
6829 with command line options.
6830 * doc/cppenv.texi: Use @vtable for environment variable list.
6831 Add paragraph explaining semantics of empty elements in path
6832 variables. Exclude a cross-reference to Fishkill from the
6833 manpage. Remove an unnecessary cross-reference of the entry
6834 right above the referer. Don't use @anchor in text that goes
6836 * doc/cppopts.texi: Cross-reference the environment variables
6837 section, not the specific environment variable, for consistency.
6839 2002-03-25 Richard Henderson <rth@redhat.com>
6841 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6842 anywhere in the block. Don't refer to insns that have been
6843 removed from the chain. Iterate backward through the new insns.
6844 Don't refer to edges that have been removed.
6846 2002-03-26 Alan Modra <amodra@bigpond.net.au>
6848 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6849 test for overflow of constant.
6851 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
6854 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6855 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6856 these patterns on arm_archv4.
6858 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
6860 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6863 2002-03-25 Zack Weinberg <zack@codesourcery.com>
6865 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
6866 float_handled, float_handler, float_signal, set_float_handler,
6867 and do_float_handler. Set handler for SIGFPE to crash_signal.
6868 * toplev.h: Don't prototype do_float_handler.
6870 * c-lex.c: Fold parse_float into lex_number. Make warning
6871 about portability of hex float constants more informative, and
6872 don't issue it on top of a syntax error.
6873 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6875 * real.h: Define REAL_VALUE_ABS here...
6876 * simplify-rtx.c: ... not here. Fold check_fold_consts,
6877 simplify_unary_real, simplify_binary_real, and
6878 simplify_binary_is2orm1 into their callers.
6879 * tree.c: Fold build_real_from_int_cst_1 into caller.
6881 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6883 * tsystem.h: Include float.h here...
6884 * libgcc2.c: ... not here.
6886 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
6888 Fixes for: PR bootstrap/3591, target/5676
6889 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6890 defined. Do not disable exceptions or rtti.
6891 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6892 mcore.h. Disable exceptions and rtti, since they are not
6895 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
6897 * c-decl.c (maybe_build_cleanup): Remove.
6898 * expr.c (expand_expr): Use langhook.
6899 * langhooks-def.h (lhd_return_null_tree,
6900 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6901 (LANGHOOKS_INITIALIZER): Update.
6902 * langhooks.c (lhd_return_null_tree): New.
6903 * langhooks.h (struct lang_hooks): New hook.
6904 * tree-inline.c (initialize_inlined_parameters): Use langhook.
6905 * tree.h (maybe_build_cleanup): Remove.
6907 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6909 * regrename.c (build_def_use): Move recog_memoized
6910 before extract_insn.
6912 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6915 * expr.c (emit_group_store): Handle storing into CONCAT.
6917 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6919 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6920 corresponding MATCH_DUP.
6922 2002-03-24 Richard Henderson <rth@redhat.com>
6924 * unroll.c (unroll_loop): Zero label_map.
6926 * gcse.c: Include except.h.
6927 * Makefile.in (gcse.o): Update.
6929 2002-03-24 Richard Henderson <rth@redhat.com>
6931 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6932 Do resolve_unique_section before shared data clause.
6934 2002-03-24 Richard Henderson <rth@redhat.com>
6936 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6938 2002-03-24 Richard Henderson <rth@redhat.com>
6940 * recog.c (peephole2_optimize): Split blocks when EH insns are
6941 generated in the middle of a block. Do global life update if
6944 2002-03-24 Richard Henderson <rth@redhat.com>
6946 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6948 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6951 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6952 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6953 (init_dependency_output): Don't make no_output decision here.
6955 2002-03-24 Andrew Cagney <ac131313@redhat.com>
6957 * stmt.c (check_for_full_enumeration_handling): Remove tests of
6958 warn_switch. Update description.
6959 (expand_end_case_type): Call check_for_full_enumeration_handling
6962 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6964 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6965 (m68hc11_split_move): Call it to see if the source and destination
6966 operands use the same direction auto inc/dec mode, otherwise make the
6967 source an offsetable memory operand and generate an add.
6969 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6971 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6972 register for operand 2.
6973 ("*subsi3_zero_extendqi"): Likewise.
6974 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6975 bits so that it is compatible with a pop.
6976 ("*andhi3_gen"): Likewise.
6977 ("xorhi3"): Likewise.
6979 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6981 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6983 (cpp_post_options): ... not here.
6985 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6986 Aldy Hernandez <aldyh@redhat.com>
6988 Removal of separate preprocessor cpp0.
6990 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6991 cpp0, install-common): Update.
6992 * c-common.c (flag_preprocess_only): New.
6993 (c_common_init): Preprocess for -E.
6994 * c-common.h (flag_preprocess_only): New.
6995 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6996 * c-objc-common.c (c_init_decl_processing): Exit quickly
6997 for NULL return from c_common_init.
6998 * cpplib.h (cpp_preprocess_file): New.
6999 * cppmain.c (main, general_init, pfile, progname): Remove.
7000 (do_preprocessing): Rename cpp_preprocess_file, don't call
7001 cpp_finish. Don't close stdout here.
7002 (setup_callbacks): Update prototype.
7003 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
7005 * tradcpp.c (main): Ignore -quiet.
7007 * lang-specs.h (default_compilers): Preprocess with cc1obj.
7009 2002-03-24 Richard Henderson <rth@redhat.com>
7011 PR optimization/5742
7012 * machmode.def: Add inner mode field to complex modes.
7013 * config/mips/mips.c (mips_function_value): Always define. Add
7014 new argument to handle libcalls.
7015 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
7016 (FUNCTION_VALUE): Likewise.
7017 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
7018 * config/mips/mips-protos.h: Update.
7020 2002-03-23 Richard Henderson <rth@redhat.com>
7022 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
7023 * config/sparc/sparc-protos.h: Update.
7024 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
7026 2002-03-23 Richard Henderson <rth@redhat.com>
7028 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
7029 _start or _init begins the text segment.
7031 2002-03-23 David Edelsohn <edelsohn@gnu.org>
7033 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
7034 not HOST_WIDEST_INT.
7035 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
7037 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
7040 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
7041 operand argument to output_return_instruction.
7042 * arm.c (arm_print_operand, case 'd'): If the operand is
7043 const_true_rtx then just return.
7044 (arm_print_operand, case 'D'): If the operand is const_true_rtx
7047 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7049 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
7050 (Warning Options): Document -Wswitch-default.
7051 * toplev.c (W_options): Add -Wswitch-default. Update comment on
7053 (warn_switch_default): Define variable.
7054 (warn_switch): Update comment.
7055 * flags.h (warn_switch_default): Declare variable.
7056 (warn_switch): Update comment.
7057 * stmt.c (expand_end_case): Check for and, when
7058 warn_switch_no_default, warn of a missing default case.
7060 2002-03-23 Alan Modra <amodra@bigpond.net.au>
7062 * real.h (N): Special case 128 bit doubles.
7064 * combine.c (simplify_comparison): When widening modes, ignore
7065 sign extension on CONST_INTs.
7067 2002-03-22 Bob Wilson <bob.wilson@acm.org>
7069 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
7070 passed to adjust_address. Fix comment formatting.
7073 2002-03-22 Zack Weinberg <zack@codesourcery.com>
7075 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
7076 Always make REAL_VALUE_TYPE a struct containing an array of
7077 HOST_WIDE_INT, not a double. Tidy up the code deciding how
7078 big it is. Don't declare or use union real_extract.
7080 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
7081 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
7082 (print_operand), config/arm/arm.c (output_move_double),
7083 config/arm/arm.md (consttable_4, consttable_8),
7084 config/romp/romp.c (output_fpops), config/s390/s390.h
7085 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
7086 (xtensa_output_literal): Don't use union real_extract.
7088 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
7089 (sfmode_constant_to_ulong), config/ns32k/merlin.h
7090 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
7091 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
7092 (PRINT_OPERAND): Don't use local version of union
7095 * config/convex/convex.c (check_float_value), config/vax/vax.c
7096 (vax_float_literal), config/m88k/m88k.md (divdf3),
7097 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
7098 config/pdp11/pdp11.c (output_move_quad): Don't do host
7099 arithmetic on target floating point quantities.
7101 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
7102 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
7104 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
7105 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
7107 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
7108 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
7110 * print-rtl.c (print_rtx): Disable code which needs
7111 floating-point emulator.
7112 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
7113 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
7114 depending on HOST_FLOAT_FORMAT to be defined properly.
7116 * config/1750a/1750a.c (get_double, float_label): Delete.
7117 (print_operand): Delete huge commented-out chunk. Use
7118 REAL_VALUE_TO_DECIMAL.
7119 * config/1750a/1750a-protos.h: Delete prototypes of deleted
7121 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
7123 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
7124 Use REAL_VALUE_TO_DECIMAL as ELF version does.
7125 * config/m88k/m88k.c (real_power_of_2_operand,
7126 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
7127 real_extract out of the union; run the input through
7128 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
7129 from that into the union.
7130 * config/pdp11/pdp11.c (output_move_double): Rearrange
7131 parentheses to make automatic indenter happy.
7133 * doc/tm.texi (Cross-compilation): Rename node to "Floating
7134 Point" and rewrite to describe current situation. Also adjust
7135 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
7137 * doc/rtl.texi: Adjust cross reference.
7139 2002-03-22 Bob Wilson <bob.wilson@acm.org>
7141 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
7142 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
7143 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
7144 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
7145 prevent use of sp as a reload register.
7146 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
7147 non_acc_reg_operand.
7148 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
7149 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
7150 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
7151 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
7153 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7155 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
7156 * cpplex.c (unterminated): Delete.
7157 (parse_string): No string literal may extend over multiple
7158 lines. Suppress the error when preprocessing assembly.
7159 * cppmain.c (scan_translation_unit): Strings are single-line.
7161 * doc/cpp.texi: Update to match.
7163 2002-03-22 Jakub Jelinek <jakub@redhat.com>
7165 PR optimization/5854
7166 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
7168 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
7169 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
7170 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
7171 const0 if scratch register was not allocated.
7172 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
7173 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
7175 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
7176 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
7177 with GEN_INT (...) everywhere. Remove constraints in define_split
7179 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
7180 require scratch register for setting 0 into regs/non-pushable memory.
7182 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
7184 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
7185 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
7187 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
7189 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
7190 * cppinit.c (cpp_create_reader): On by default.
7191 (cpp_handle_option): Handle -W[no-]endif-labels.
7192 (cpp_post_options): Also enable if -pedantic.
7193 * cpplib.c (do_else): Use it.
7194 (do_endif): Likewise.
7195 * doc/cppopts.texi: Document new option.
7196 * doc/invoke.texi: Document new option.
7198 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
7200 * config/i386/i386.c, config/i386/i386.md: Change all occurences
7201 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
7203 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
7205 * flow.c (calculate_global_regs_live): Clear aux fields of
7208 2002-03-22 Jakub Jelinek <jakub@redhat.com>
7210 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
7211 REG or MEM subregs, pass rtx * instead of rtx to it.
7212 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
7213 rtx * instead of rtx to alter_subreg.
7214 * config/m32r/m32r.c (gen_split_move_double): Likewise.
7215 * config/pj/pj.c (pj_output_rval): Likewise.
7217 2002-03-22 Richard Henderson <rth@redhat.com>
7220 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
7221 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
7222 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
7223 (ia64_expand_prologue): Look at int_regs, not words, for number
7224 of incomming int regs.
7226 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
7228 * expr.c (expand_expr): A RESULT_DECL is part of a call.
7230 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
7232 * toplev.c (flag_loop_optimize, flag_crossjumping):
7233 New static variables.
7234 (rest_of_compilation): Conditionalize crossjumping and
7236 (parse_options_and_default_flags): Default loop_optimize and
7238 (lang_independent_options): Add -fcrossjumping and -floop-optimize
7239 * invoke.texi (crossjumping, loop-optimize): Document.
7241 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7243 * real.c (eiisneg): Move outside #ifdef NANS.
7245 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
7247 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
7248 frequencies match; avoid match on different loop depths.
7249 (try_crossjump_to_bb): Kill tests that no longer brings time
7251 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
7253 (split_edge): Likewise.
7255 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
7258 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
7259 * cfgrtl.c: Include insn-config.h
7260 (split_block) Dirtify block in presence of conditional execution
7262 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7264 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
7265 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
7266 (function_arg): Constify CUMULATIVE_ARGS.
7267 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
7268 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
7269 (UNITS_PER_DOUBLE): New macro.
7270 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
7271 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
7272 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
7273 fp_regs and stack_words.
7274 (EABI_FLOAT_VARARGS_P): New macro.
7275 * config/mips/mips.c (struct mips_arg_info): New.
7276 (mips_arg_info): New function.
7277 (function_arg_advance): Use it. Add adjustment instructions here
7278 rather than in function_arg.
7279 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
7280 for VOIDmode at the beginning of the function.
7281 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
7282 (function_arg_pass_by_reference): Likewise.
7283 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
7284 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
7285 (mips_va_start): Likewise. Use the new stack_words field of
7286 CUMULATIVE_ARGS to set up overflow area. Reformat.
7287 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
7288 doubles and other types, aligning the overflow pointer for non-doubles
7289 too. Remove some code duplication. Replace hard-coded constants.
7291 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7293 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
7294 (CLASS_UNITS): Undefine.
7295 (CLASS_MAX_NREGS): Use FP_INC.
7296 * config/mips/mips.c (compute_frame_size): Likewise.
7297 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
7299 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7301 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
7302 prototype, and handle lexing numbers and identifiers.
7303 (parse_identifier): Update to new form of parse_slow.
7304 (parse_number): Fast path only, use parse_slow otherwise.
7305 (_cpp_lex_direct): Update calls to parse_number.
7307 2002-03-21 DJ Delorie <dj@redhat.com>
7309 * bb-reorder.c (make_reorder_chain_1): Protect against
7310 when redundant edges are omitted.
7311 * predict.c (dump_prediction): Likewise.
7313 2002-03-21 Richard Henderson <rth@redhat.com>
7316 * fixinc/inclhack.def (solaris_stdio_tag): New.
7317 * fixinc/fixincl.x: Regenerate.
7319 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
7322 * c-typeck.c (process_init_element): Flag non-static
7323 initialization of a flexible array member as illegal.
7325 2002-03-22 Alan Modra <amodra@bigpond.net.au>
7327 * config/rs6000/t-linux64: New.
7328 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
7329 t-ppccomm. Use t-rs6000 and t-linux64.
7330 (powerpc64-*-gnu* <tmake_file>): Likewise.
7331 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
7332 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
7333 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
7335 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
7337 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
7338 flag_really_no_inline instead of optimize == 0.
7340 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
7342 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
7344 * flags.h (flag_really_no_inline): New.
7346 * c-common.c (c_common_post_options): Initialize
7347 flag_really_no_inline.
7349 * toplev.c (flag_really_no_inline): New.
7351 2002-03-21 Jakub Jelinek <jakub@redhat.com>
7353 * config/avr/avr.md (length): Fix length computation for
7354 conditional branches.
7356 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
7358 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
7359 sdbout.o, profile.o): Update.
7360 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
7362 * c-common.h (gettags): Move here from tree.h.
7363 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
7364 insert_block, getdecls, kept_level_p, global_bindings_p): New.
7365 * dbxout.c (dbxout_init): Use getdecls langhook.
7366 * expr.c (expand_expr): Use insert_block langhook.
7367 * fold-const.c: Include langhooks.h.
7368 (fold_range_test, fold_binary_op_with_conditional_arg,
7369 fold): Use global_bindings_p langhook.
7370 * integrate.c (expand_inline_function): Use insert_block langhook.
7371 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
7372 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
7373 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
7374 LANG_HOOKS_GETDECLS): New.
7375 (LANG_HOOKS_INITIALIZER): Update.
7376 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
7378 * langhooks.h (struct lang_hooks_for_decls): New.
7379 (struct lang_hooks): Update.
7380 * profile.c: Include langhooks.h.
7381 (output_func_start_profiler): Use new langhooks.
7382 * sdbout.c: Include langhooks.h.
7383 (sdbout_init, sdbout_finish): Use getdecls langhook.
7384 * stmt.c: Include langhooks.h.
7385 (expand_fixup, fixup_gotos): Use new langhooks.
7386 * stor-layout.c: Include langhooks.h.
7387 (variable_size): Use global_bindings_p langhook.
7388 * toplev.c (compile_file): Use getdecls langhook.
7389 * tree-inline.c (remap_block): Use insert_block langhook.
7390 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
7391 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
7393 2002-03-21 Richard Henderson <rth@redhat.com>
7395 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
7396 constants in .data when -fpic.
7398 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7400 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
7403 2002-03-21 Tom Tromey <tromey@redhat.com>
7405 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
7407 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7409 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
7411 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
7413 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
7414 Richard Henderson <rth@redhat.com>
7417 * c-common.c (c_expand_expr): Preserve result of a statement
7418 expression if needed.
7420 2002-03-21 Jakub Jelinek <jakub@redhat.com>
7423 * genrecog.c (maybe_both_true_mode): Remove.
7424 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
7425 * machmode.def (Pmode): Likewise.
7427 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
7429 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
7430 (nonlocal_mentioned_p_1): New function.
7431 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
7432 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
7433 (mark_constant_function): Recognize pure functions.
7434 * rtl.h (global_reg_mentioned_p): New prototype.
7435 * rtlanal.c (global_reg_mentioned_p,
7436 global_reg_mentioned_p_1): New function.
7438 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7440 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
7442 * fixinc/fixincl.x: Regenerate.
7444 2002-03-20 Jason Merrill <jason@redhat.com>
7446 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
7448 2002-03-20 Michael Meissner <meissner@redhat.com>
7450 * doc/invoke.texi (Optimize Options): Document that -O2 sets
7453 2002-03-20 Bob Wilson <bob.wilson@acm.org>
7455 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
7456 ".literal_position" directive before the constant pool.
7458 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7460 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
7461 Add Craig Rodrigues.
7462 Add Brad Lucier to testers.
7464 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7467 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
7469 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
7470 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
7471 instead of insn_extract.
7473 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7476 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
7478 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
7479 stmt if some case has been output.
7481 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7484 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
7485 movsfcc_1, movdfcc_1): Add %O2.
7486 * config/i386/i386.c (print_operand): Handle %ON.
7487 Print . before float condition codes in Sun as cmov syntax.
7488 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
7489 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
7492 2002-03-20 Philip Blundell <pb@nexus.co.uk>
7494 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
7495 return instruction if PC was popped.
7497 2002-03-20 Bob Wilson <bob.wilson@acm.org>
7499 * config/xtensa/xtensa.md: Remove unused type attributes.
7500 (adddi_carry, subddi_carry): Change type attribute to "multi".
7502 2002-03-19 Dale Johannesen <dalej@apple.com>
7504 PR optimization/5999, middle-end/5731
7505 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
7506 multiplications by reciprocals.
7508 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
7510 * Makefile.in: Update.
7511 * c-common.c: Include langhooks.h.
7512 (inline_forbidden_p): Use new hook.
7513 * diagnostic.c: Include langhooks.h.
7514 (format_with_decl, announce_function,
7515 default_print_error_function): Use new hook.
7516 * dwarf2out.c (dwarf2_name): Use new hook.
7517 * function.c: Include langhooks.h.
7518 (init_function_start): Use new hook.
7519 * langhooks-def.h (lhd_decl_printable_name): New.
7520 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
7521 (LANGHOOKS_INITIALIZER): Update.
7522 * langhooks.c (lhd_decl_printable_name): New.
7523 * langhooks.h (struct lang_hooks): New hook.
7524 * toplev.c (decl_name, decl_printable_name): Remove.
7525 (open_dump_file): Use new hook.
7526 (process_options): Remove old hook.
7527 * tree.h (decl_printable_name): Remove.
7529 * objc-act.c (objc_init): Remove old hook.
7530 (objc_printable_name): Export.
7531 * objc-act.h (objc_printable_name): New.
7532 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
7534 2002-03-19 Jim Blandy <jimb@redhat.com>
7536 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
7537 the start_source_file debug hook, not the current line number.
7539 2002-03-19 Richard Henderson <rth@redhat.com>
7541 * flow.c (EH_USES): Provide default.
7542 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
7543 * doc/tm.texi (EH_USES): New.
7545 * config/ia64/ia64.c (ia64_eh_uses): New.
7546 * config/ia64/ia64-protos.h: Update.
7547 * config/ia64/ia64.h (EH_USES): New.
7549 2002-03-19 Richard Henderson <rth@redhat.com>
7551 * varasm.c (output_constant_def): Fix stupid typo.
7553 2002-03-19 Richard Henderson <rth@redhat.com>
7556 * except.c (current_function_has_exception_handlers): New.
7557 * except.h: Declare it.
7558 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
7559 Combine tests that disable all sibcalls for the function.
7561 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
7563 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
7566 2002-03-19 Richard Henderson <rth@redhat.com>
7569 * config/ia64/ia64.c: Revert 2002-03-01 patch.
7570 * config/ia64/ia64.h (INIT_EXPANDERS): New.
7572 2002-03-19 Jim Blandy <jimb@redhat.com>
7574 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
7575 name, even if the replacement list contains no tokens, as required
7578 2002-03-19 Jason Merrill <jason@redhat.com>
7580 * varasm.c (globalize_decl): Get the name from the RTL, not
7581 DECL_ASSEMBLER_NAME.
7583 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
7585 2002-03-19 Bob Wilson <bob.wilson@acm.org>
7587 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
7588 subdi_carry): Define.
7590 2002-03-19 David Edelsohn <edelsohn@gnu.org>
7592 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
7593 about -fpic/-fPIC if extra_warnings set.
7595 2002-03-19 David Edelsohn <edelsohn@gnu.org>
7597 * expr.c (expand_expr): Sign-extend CONST_INT generated from
7598 TREE_STRING_POINTER.
7599 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
7601 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7603 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
7604 in favor of SP if FRAME_POINTER_REQUIRED is false.
7606 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
7608 * emit-rtl.c (gen_int_mode): New function.
7609 * rtl.h: Prototype for it.
7610 * combine.c (make_extraction, simplify_comparison), expmed.c
7611 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
7612 (convert_modes, store_field), optabs.c (expand_fix),
7613 simplify-rtx.c (neg_const_int, simplify_unary_real),
7615 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
7616 Use it instead of GEN_INT (trunc_int_for_mode (...)).
7618 2002-03-19 Jakub Jelinek <jakub@redhat.com>
7621 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
7622 convert_parm_for_inlining.
7623 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7625 * langhooks-def.h: Likewise.
7626 * objc/objc-lang.c: Likewise.
7627 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
7629 * tree-inline.c (initialize_inlined_parameters):
7630 Call convert_parm_for_inlining lang hook if needed.
7631 * c-typeck.c (c_convert_parm_for_inlining): New function.
7632 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
7634 2002-03-18 Mark Mitchell <mark@codesourcery.com>
7636 * calls.c (precompute_arguments): Do not assume that temporaries
7637 can be destroyed after expanding the argument.
7638 (expand_call): Likewise.
7640 2002-03-15 Eric Christopher <echristo@redhat.com>
7642 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
7643 Fix register preference on last change.
7644 * config/mips/mips.c (mips_return_in_memory): New function.
7645 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
7646 * config/mips/mips-protos.h: Declare.
7647 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
7648 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
7650 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
7652 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
7654 (anddi3, iorsi3): Likewise.
7656 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
7657 use %gprel for symbols that are going to be placed in linkonce
7660 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
7661 RETURN_ADDRESS_POINTER_REGNUM to $ra.
7662 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
7663 not needed. Disregard leaf_function_p().
7664 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
7665 mips16 frame pointer.
7666 * config/mips/mips.md (store ra): Only to small SP offsets.
7667 2001-08-22 Graham Stott <grahams@redhat.com>
7668 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
7669 return a REG rtx for the return address register.
7671 2002-03-18 Bob Wilson <bob.wilson@acm.org>
7673 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
7674 constant-pool addresses as "mode-dependent".
7675 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
7677 2002-03-18 Jakub Jelinek <jakub@redhat.com>
7680 * expr.c (emit_group_load): Use extract_bit_field if
7681 needed for CONCAT arguments.
7683 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
7686 * arm.md (tablejump): Make this a define_expand. For PIC add the
7687 offset to the base of the table.
7688 (thumb_tablejump): Matcher for Thumb tablejump insn.
7689 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
7690 as the difference of two labels.
7691 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7692 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
7694 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7695 * arm.c (get_jump_table_size): If the table is not in the text
7696 section, return zero.
7698 2002-03-18 Bernd Schmidt <bernds@redhat.com>
7700 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7702 (arm_reload_out_hi): Use gen_lowpart instead of
7703 gen_rtx_SUBREG to access QImode components.
7704 * config/arm/arm.md: Disable zero_extend split for QImode
7705 subregs in BIG_ENDIAN mode.
7706 (storehi_bigend): Match use of least significant byte.
7707 (storeinthi): Remove extraneous SUBREG.
7708 Add missing construction of operands[2].
7709 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7710 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7711 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7713 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
7715 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7718 2002-03-17 Richard Henderson <rth@redhat.com>
7720 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7723 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7725 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7726 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7728 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7730 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7732 * predict.c (estimate_bb_frequencies): Delete unused variables.
7734 2002-03-17 Richard Henderson <rth@redhat.com>
7736 * config/ia64/ia64.c (ia64_attribute_table): Move before
7737 targetm definition. Make static.
7739 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
7741 * c-common.h (yyparse, c_common_parse_file): New.
7742 * c-lang.c: Include c-common.h.
7743 (LANG_HOOKS_PARSE_FILE): Redefine.
7744 * c-lex.c: Include c-common.h.
7745 (yyparse): Rename c_common_parse_file. Call yyparse.
7746 * c-parse.in (yyparse): Remove macro.
7747 * c-tree.h (yyparse_1): Remove.
7748 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7749 (LANG_HOOKS_INITIALIZER): Update.
7750 * langhooks.h (struct lang_hoooks): New hook parse_file.
7751 * toplev.c (compile_file): Use parse_file hook.
7752 * tree.h (yyparse): Remove.
7753 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
7755 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7757 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7758 float_truncate, not fix.
7759 ("*truncdfsf2_real"): Ditto.
7760 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7762 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7764 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
7766 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7767 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
7768 where appropriate. Make the second reference to
7769 leaf_function_p a function call, as intended. Reindented.
7771 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7772 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7774 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7775 add register to non-constant into sp.
7777 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7778 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7779 (mips16_gp_pseudo_rtx): Lose.
7780 (INIT_EXPANDERS): Deleted.
7781 * config/mips/mips.c (mips_init_machine_status): New.
7782 (mips_free_machine_status): New.
7783 (mips_mark_machine_status): New.
7784 (override_options): Set them.
7785 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7786 (struct machine_function): ... new. Replaced all references.
7787 (mips_add_gc_roots): Don't mark them.
7788 (embedded_pic_fnaddr_reg): New, extracted from...
7789 (embedded_pic_offset): ... here.
7790 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7793 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7795 * cppinit.c: Revert -MD removal.
7797 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7799 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7800 soft registers by default for 68HC12.
7801 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7802 when compiling with -fomit-frame-pointer.
7803 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7804 (expand_epilogue): Likewise.
7805 (m68hc11_gen_rotate): Use exg when rotating by 8.
7807 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7809 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7810 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7811 (splits): Remove unused add splits.
7812 ("*addhi3_68hc12"): Tune constraints.
7813 ("addhi_sp"): Try to use X instead of Y in all cases and if the
7814 constant fits in 8-bits and D is dead use abx/aby instructions.
7815 ("*addhi3"): Remove extern declaration of ix_reg.
7816 ("*subsi3"): Optimize and provide new split.
7817 ("subhi3"): Cleanup.
7818 ("*subhi3_sp"): Avoid saving X if we know it is dead.
7819 (arith splits): For 68hc12 save the address register on the stack
7820 and do the arithmetic operation with a pop.
7822 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7824 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7825 allocating QImode in address registers.
7826 ("*movqi_m68hc11"): Likewise.
7828 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
7830 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7832 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7834 * cppinit.c (print_help): Display -MD and -MMD.
7835 Don't display usage string. Update assertion syntax and
7837 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7838 (cpp_handle_option): Update.
7840 2002-03-15 Chris Demetriou <cgd@broadcom.com>
7842 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7843 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7844 and define it so that regardless of target CPU size,
7845 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7846 of "int" rather than "long."
7848 2002-03-15 Richard Henderson <rth@redhat.com>
7850 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7853 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7855 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7856 ("tstqi" split): Avoid using memory for tstqi on address register.
7857 (splits): Remove constraints.
7858 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7859 ("cmpdf", "cmpsf"): Remove since not used.
7860 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7861 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7863 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7865 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7866 ("neghi2"): Tighten constraints.
7867 ("one_cmplsi2"): Optimize and simplify split.
7868 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7870 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7872 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7873 and split of AND operation to clear the upper bits.
7874 ("*logicalsi3_zextqi"): Likewise.
7875 ("*logicallhi3_zexthi_ashift8"): Likewise.
7876 ("*logicalsi3_silshr16"): Likewise.
7877 ("logicalsi3_silshl16"): Likewise.
7878 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7880 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7882 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7883 (m68hc11_indirect_p): New function.
7884 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7885 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7887 (asm_print_register): Likewise.
7888 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7889 (m68hc11_indirect_p): Declare.
7890 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7891 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7892 (TARGET_SWITCHES): New option -mrelax.
7893 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7895 ("iorsi3", "xorsi3"): Likewise.
7896 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7897 ("*andhi3_mem"): New to handle destination in memory with bclr
7898 and a scratch register.
7899 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7900 ("*andhi3_const"): New when operand2 is constant.
7901 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7902 ("*andhi3_gen"): Cleanup of the old "andhi3".
7903 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7904 ("xorqi3"): Update constraints.
7906 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7908 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7909 for reg_equiv_memory_loc when the operand is a register that does
7910 not get a hard register (stack location).
7911 (tst_operand): After reload, accept all memory operand.
7912 (symbolic_memory_operand): Fix detection of symbolic references.
7913 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7914 accept symbols and any constant.
7916 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7918 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7919 note on the insn that sets the soft frame register.
7920 (must_parenthesize): ix and iy are also reserved names.
7921 (print_operand_address): One more place where parenthesis are required
7922 to avoid confusion with register names.
7923 (m68hc11_gen_movhi): Allow push of stack pointer.
7924 (m68hc11_check_z_replacement): Fix handling of parallel with a
7926 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7927 the replacement register is.
7928 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7929 and D8_REGS classes.
7930 (MODES_TIEABLE_P): All modes are tieable except QImode.
7932 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7934 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7935 (___subdi3): Likewise.
7936 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7937 (__map_data_section): Optimize 68hc11 case.
7939 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7941 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7942 than a shift to avoid adding a register with itself.
7943 (m68hc11_memory_move_cost): Take into account NO_REGS.
7944 (m68hc11_register_move_cost): Update and use memory move cost
7946 (m68hc11_address_cost): Make cost of valid offset not 0 so that
7947 it gives more opportunities to cse to optimize.
7948 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7949 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7951 2002-03-15 Mark Mitchell <mark@codesourcery.com>
7953 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7954 * c-common.def (CLEANUP_STMT): New tree node.
7955 * c-common.h (CLEANUP_DECL): New macro.
7956 (CLEANUP_EXPR): Likewise.
7957 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7958 * expr.c (expand_expr): Tidy.
7959 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7960 * tree-inline.c (initialize_inlined_parameters): Clean up
7961 new local variables.
7963 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7966 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7967 before movrXX only, use reg_overlap_mentioned_p.
7968 Only special case NE if just one insn can be generated.
7970 2002-03-15 Jason Merrill <jason@redhat.com>
7972 * varasm.c (assemble_variable): Call resolve_unique_section before
7973 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
7976 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
7979 * arm.md (split pattern for thumb shiftable immediates): Add comment
7980 explaining non-obvious test.
7982 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
7985 * arm.md (movaddr, movaddr_insn): Delete.
7987 2002-03-15 Jason Merrill <jason@redhat.com>
7989 * toplev.c (wrapup_global_declarations): Clarify variable handling.
7990 -fkeep-static-consts doesn't apply to comdats.
7992 2002-03-14 Richard Henderson <rth@redhat.com>
7994 * c-decl.c: Include c-pragma.h.
7995 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7996 (finish_function): Tidy.
7997 * c-pragma.c: Include c-common.h.
7998 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7999 (handle_pragma_weak): Use them.
8000 (init_pragma): Register pending_weaks.
8001 * c-pragma.h (maybe_apply_pragma_weak): Declare.
8002 * print-tree.c (print_node): Print DECL_WEAK.
8003 * varasm.c (mark_weak_decls): Remove.
8004 (remove_from_pending_weak_list): Remove.
8006 (asm_emit_uninitialised): Call globalize_decl for weak commons.
8007 (weak_decls): Make a tree_list.
8008 (declare_weak): Cons weak_decls directly.
8009 (globalize_decl): Remove weak_decls elements directly.
8010 (weak_finish): Simplify weak_decls walk. Don't weaken unused
8011 symbols. Don't pretend to handle aliases.
8012 (init_varasm_once): Update weak_decls registry.
8013 * Makefile.in: Update dependencies.
8015 2002-03-14 Richard Henderson <rth@redhat.com>
8018 * config/ia64/ia64.c: Include tm_p.h last.
8019 (gen_nop_type): Remove duplicate definition.
8020 (cycle_end_fill_slots): Set sched_data for second L slot.
8021 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
8022 (nop_cycles_until): Fix typos.
8024 2002-03-15 Jakub Jelinek <jakub@redhat.com>
8026 PR optimization/5891
8027 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
8029 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
8031 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
8032 descriptors correctly.
8034 2002-03-14 Michael Meissner <meissner@redhat.com>
8036 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
8037 100, allowing MAX_UNROLLED_INSNS to be overridden.
8039 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
8042 * unroll.c (params.h): Include.
8043 (MAX_UNROLLED_INSNS): Delete, now in params.h.
8045 * doc/invoke.texi (--param max-unroll-insns): Document.
8047 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
8049 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
8051 * arm.md: Fix warnings about constraints in peepholes and splits.
8053 2002-03-14 Zack Weinberg <zack@codesourcery.com>
8055 * cpphash.h (struct lexer_state): Remove line_extension member.
8056 * cpplib.c (dequote_string, do_linemarker): New functions.
8057 (linemarker_dir): New data object.
8058 (DIRECTIVE_TABLE): No longer need to interpret #line in
8059 preprocessed source. Delete obsolete comment about return
8061 (end_directive, directive_diagnostics, _cpp_handle_directive):
8062 Don't muck with line_extension.
8063 (directive_diagnostics): No need to issue warnings for
8065 (_cpp_handle_directive): Issue warnings for linemarkers here,
8066 when appropriate. Dispatch linemarkers to do_linemarker, not
8068 (do_line): Code to handle linemarkers split out to do_linemarker.
8069 Convert escape sequences in filename argument, both places.
8071 * cppmacro.c (quote_string): Rename cpp_quote_string and
8072 export. All callers changed.
8073 * cpplib.h (cpp_quote_string): Prototype.
8074 * cppmain.c (print_line): Call cpp_quote_string on to_file
8077 * doc/cpp.texi: Document that escapes are now interpreted in
8078 #line and in linemarkers, and that non-printing characters are
8079 converted to octal escapes when linemarkers are generated.
8081 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
8083 * emit-rtl.c (try_split): Use delete_insns.
8084 * recog.c (split_all_insns): Fix terminating condition.
8086 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
8087 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8090 * arm.c (arm_output_epilogue): Fix floating-point register save
8091 adjustment when using a frame pointer.
8093 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
8095 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
8096 * config/mips/mips.c (compute_frame_size): Retrofit them here.
8097 (save_restore_insns, mips_expand_epilogue): And here.
8098 (build_mips16_call_stub): And here.
8099 (mips_function_value): Use the new macros to decide whether a single
8100 or complex float can be returned in floating-point registers. Return
8101 a parallel rtx in the complex case.
8103 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
8105 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
8106 call after liveness analysis.
8108 * recog.c (split_insn): Use delete_insn_and_edges.
8110 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
8111 instructions to have branch prediction notes.
8112 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
8114 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
8116 * configure.in: Don't pass -Wno-long-long to a ADA compiler
8117 that doesn't support it.
8118 * configure: Regenerate.
8120 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8123 * config/sparc/sparc.md (normal_branch, inverted_branch,
8124 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
8125 inverted_fp_branch): Adjust calls to output_cbranch.
8126 Set length attribute.
8127 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
8128 output_v9branch. Set length attribute.
8129 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
8131 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
8132 (output_cbranch): Likewise. Handle far branches.
8133 (output_v9branch): Handle far branches.
8134 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
8136 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
8137 noov_compare64_op predicates.
8139 2002-03-13 Jason Merrill <jason@redhat.com>
8141 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
8142 into the function and constify it.
8143 * gthr-dce.h, gthr-solaris.h: Likewise.
8145 2002-03-13 David Edelsohn <edelsohn@gnu.org>
8147 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
8148 * config/rs6000/rs6000.c (rs6000_va_arg): Use
8149 std_expand_builtin_va_arg if not ABI_V4.
8151 2002-03-13 Jason Merrill <jason@redhat.com>
8153 * varasm.c (globalize_decl): New fn.
8154 (assemble_start_function): Use it.
8155 (asm_emit_uninitialized): Use it.
8156 (assemble_alias): Use it.
8157 (assemble_variable): Use it.
8159 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
8161 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
8162 2002-03-12 internal visibility change.
8163 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
8164 visibility into SYMBOL_REF_FLAG.
8166 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
8168 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
8169 VOIDmode operand. Add compile-time optimization for constant results.
8171 2002-03-12 Jason Merrill <jason@redhat.com>
8173 * c-typeck.c (convert_for_assignment): Don't allow conversions
8174 between pointers and references. Only allow lvalues to convert to
8177 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
8179 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
8180 before prologue, to avoid scheduling problems.
8182 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8184 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
8185 (ELIMINABLE_REGS): Add sfp->sp.
8186 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
8188 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8190 PR optimization/5892
8191 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
8193 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8195 * loop.c (basic_induction_var): Don't call convert_modes if mode
8196 classes are different.
8198 2002-03-12 Richard Henderson <rth@redhat.com>
8200 PR optimization/5901
8201 * function.c (reposition_prologue_and_epilogue_notes): Position
8202 the markers after/before the last/first insn not deleted.
8204 2002-03-12 Richard Henderson <rth@redhat.com>
8206 PR optimization/5878
8207 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
8208 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
8209 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8211 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
8212 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
8213 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
8215 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
8216 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
8217 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
8218 also. Don't set it if not flag_pic.
8219 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
8220 to be INVALID_REGNUM when not used.
8222 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
8224 * expmed.c (store_bit_field): Reset alias set for memory.
8225 (extract_bit_field): Same.
8227 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8229 * c-common.c (c_tree_code_type, c_tree_code_length,
8230 c_tree_code_name, add_c_tree_codes): Delete.
8231 * c-common.h (add_c_tree_codes): Delete.
8232 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
8234 * c-objc-common.c (c_objc_common_init): Don't call
8235 add_c_tree_codes, instead set lang_unsafe_for_reeval.
8236 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
8237 objc_tree_code_name, add_objc_tree_codes): Delete.
8238 (objc_init): Don't call add_objc_tree_codes.
8239 * objc/objc-lang.c (tree_code_type, tree_code_length,
8240 tree_code_name): Define.
8241 * toplev.c (lang_independent_init): Don't set
8242 tree_code_length[IDENTIFIER_NODE].
8243 * tree.c (tree_code_type, tree_code_length, tree_code_name):
8244 Delete definitions, moved to language front-ends.
8245 * tree.def (IDENTIFIER_NODE): Hardwire the length.
8246 * tree.h (tree_code_type, tree_code_length, tree_code_name):
8248 (tree_code_length): Change type to unsigned char.
8250 2002-03-12 Richard Henderson <rth@redhat.com>
8252 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
8253 internal visibility change.
8255 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8257 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
8258 validize_mem() instead of change_address to avoid clobbering
8261 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
8263 * c-lex.h (position_after_whitespace): Remove.
8265 2002-03-12 Jakub Jelinek <jakub@redhat.com>
8267 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
8268 (lex_string): Use unsigned char pointers.
8270 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
8272 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
8273 is not a valid memory_operand.
8275 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8277 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
8278 * config/xtensa/lib1funcs.asm: Fix copyright to include
8279 special case for libgcc files.
8280 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
8281 (__divsi3): Likewise.
8282 (__umodsi3): Likewise.
8283 (__modsi3): Likewise.
8284 * config/xtensa/lib2funcs.S: Fix copyright to include
8285 special case for libgcc files.
8287 2002-03-12 Tom Rix <trix@redhat.com>
8289 * collect2.c (resolve_lib_name): Move outside of
8290 OBJECT_FORMAT_COFF ifdef.
8291 (ignore_library): Same.
8293 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8295 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
8297 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8299 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
8300 to function_section before writing out the constant pool.
8302 2002-03-12 David Edelsohn <edelsohn@gnu.org>
8304 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
8306 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
8308 2002-03-12 Alan Modra <amodra@bigpond.net.au>
8310 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
8314 (cmpsi splitter): Likewise.
8315 (modsi3): Fail if <= 0.
8316 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
8317 redundant test when HOST_BITS_PER_WIDE_INT != 32.
8318 (reg_or_sub_cint64_operand): Likewise.
8319 (num_insns_constant_wide): Optimize sign extension.
8320 (rs6000_legitimize_address): Likewise.
8322 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
8324 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8325 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8327 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
8329 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
8330 address calculation.
8332 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
8334 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
8335 scratch register to DImode / TImode.
8336 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
8337 register used does not overlap the target.
8339 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8341 * Makefile.in (debug.o): Depend on debug.h.
8342 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
8343 * debug.c (do_nothing_debug_hooks): Likewise.
8344 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
8345 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
8346 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
8347 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
8348 * dwarfout.c (dwarf_debug_hooks): Likewise.
8349 * integrate.c (output_inline_function): Likewise.
8350 * objc/objc-act.c (synth_module_prologue): Likewise.
8351 * sdbout.c (sdb_debug_hooks): Likewise.
8352 * toplev.c (debug_hooks): Likewise.
8353 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8355 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8357 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
8358 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
8359 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
8360 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
8361 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
8362 * defaults.h (POINTER_SIZE): Define.
8363 * doc/tm.texi (POINTER_SIZE): Document default.
8365 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8367 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
8369 2002-03-11 Richard Henderson <rth@redhat.com>
8371 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
8372 if rebuild_label_notes_after_reload.
8374 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
8376 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
8377 emit pic register load if "internal" visibility.
8378 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
8379 (cris_expand_builtin_va_arg): Do all computations on trees.
8381 2002-03-11 Richard Henderson <rth@redhat.com>
8383 * rtlanal.c: Include recog.h.
8384 (keep_with_call_p): Fix thinko.
8385 * Makefile.in (rtlanal.o): Update dependencies.
8387 2002-03-11 Chris Meyer <cmeyer@gatan.com>
8389 * genflags.c (gen_insn): Use IS_VSPACE.
8390 * genoutput.c (output_insn_data): Likewise.
8391 (process_template): Likewise.
8393 2002-03-11 Richard Henderson <rth@redhat.com>
8395 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
8397 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
8399 * Makefile.in: Update.
8400 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
8401 Update documentation.
8402 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
8403 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
8405 2002-03-11 Zack Weinberg <zack@codesourcery.com>
8407 * Makefile.in: Give texi2pod its input file as a command line
8408 argument, not on stdin.
8410 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
8411 Daniel Berlin <dan@dberlin.org>
8413 C++ alias analysis improvement.
8414 * alias.c (record_component_aliases): Record aliases for base
8417 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
8419 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
8421 2002-03-11 Douglas B Rupp <rupp@gnat.com>
8423 * toplev.c (vms_fopen): Remove, not needed.
8425 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
8427 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
8429 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
8430 for FP, already done later.
8432 * toplev.c (debug_args): Add entry for VMS_DEBUG.
8433 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
8435 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
8437 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
8438 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
8439 LARGEST_EXPONENT_IS_NORMAL for the given mode.
8440 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
8441 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
8442 (ediv, emul, eldexp, esqrt): Likewise.
8443 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
8444 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
8445 (saturate): New function.
8446 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
8447 (make_nan): Use a saturation value instead of a NaN if
8448 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
8449 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
8450 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
8451 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
8452 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
8453 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
8454 !ROUND_TOWARDS_ZERO.
8455 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
8456 (ROUND_TOWARDS_ZERO): Document.
8458 2002-03-11 Andreas Jaeger <aj@suse.de>
8460 * cfg.c (dump_flow_info): Remove unused variable.
8462 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
8464 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
8465 computations on trees.
8467 2002-03-10 Richard Henderson <rth@redhat.com>
8470 * reload.c (copy_replacements_1): New.
8471 (copy_replacements): Use it to recurse through the rtx.
8473 2002-03-10 Richard Henderson <rth@redhat.com>
8475 * loop.c (strength_reduce): Compute number of iterations as
8476 unsigned HOST_WIDE_INT.
8478 2002-03-10 Richard Henderson <rth@redhat.com>
8480 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
8481 to move away from the end of the block.
8483 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
8485 PR preprocessor/5899
8486 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
8488 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8490 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
8492 * attribs.c (decl_attributes): Fix signed/unsigned warning.
8494 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
8496 * config/mmix/mmix.c: Improve comments.
8497 (mmix_target_asm_function_prologue): Drop variable
8498 empty_stack_frame. Don't allocate unused slot above fp.
8499 (mmix_target_asm_function_epilogue): Mirror prologue changes.
8500 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
8501 brace in first column.
8502 (enum reg_class): Ditto.
8503 (FIRST_PARM_OFFSET): Now 0.
8504 (USER_LABEL_PREFIX): Remove #if 0:d definition.
8506 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8508 * combine.c (make_extraction): Fix error in last change.
8510 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8512 * c4x.c (c4x_fp_reglist): Const-ify.
8513 * cris.c (cris_print_operand): Likewise.
8514 * i386.c (ix86_va_arg): Likewise.
8515 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
8516 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
8517 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
8518 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
8519 * mcore.h (regno_reg_class): Likewise.
8520 * mips.c (gen_int_relational): Likewise.
8521 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
8522 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
8523 * pdp11.c (move_costs): Likewise.
8524 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
8525 * s390.c (s390_branch_condition_mnemonic, regclass_map):
8527 * s390.h (regclass_map): Likewise.
8528 * sh.c (shift_amounts): Likewise.
8529 * sh.md (rotlsi3): Likewise.
8531 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
8533 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
8534 (ne0+5): Use new clobber to generate proper shift pattern.
8535 Patch by Michael Matz <matz@kde.org>.
8537 2002-03-09 Andreas Schwab <schwab@suse.de>
8539 * gcc.c (validate_all_switches): Also handle `%W{...}'.
8541 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
8543 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
8545 2002-03-09 Jakub Jelinek <jakub@redhat.com>
8548 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
8549 even for non-representable constants.
8551 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8553 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
8554 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
8555 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
8556 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
8557 (pop_function_context): Compute MAY_SHARE parameter for
8559 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
8560 (gen_mem_addressof): Call fixup_var_refs with new parm.
8562 * combine.c (make_extraction): Don't make extension of CONST_INT.
8564 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
8566 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
8567 in o32 and o64 ABIs.
8568 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
8569 but getting fixed-size structs passed in registers regardless of
8570 padding in o32 and o64 ABIs.
8572 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
8573 offset before loading address of argument passed by transparent
8576 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
8578 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
8580 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
8582 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
8583 marker such that registers after it are saved.
8585 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8587 * sparc.c (arith_4096_operand): Fix error in last change.
8589 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
8591 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
8594 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
8596 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
8599 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
8601 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
8603 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
8605 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
8606 removed; fix return value.
8607 * combine.c (combine_instructions): Dirtify blocks where we failed to
8608 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
8609 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
8611 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8613 * gcse.c (insert_insn_end_bb): Fix typo in last change.
8615 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
8617 * recog.c (peephole2_optimize): Re-distribute EH edges.
8619 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
8621 * expr.c (expand_expr): Use unsave lang hook.
8622 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
8623 (LANG_HOOKS_INITIALIZER): Update.
8624 * langhooks.h (struct lang_hooks): New hook unsave.
8625 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
8626 (unsave_expr_1): Remove unused lang_unsave_expr_now.
8627 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
8628 (unsave_expr_now): Remove.
8629 * tree.h (unsave_expr_now, lang_unsave,
8630 lang_unsave_expr_now): Remove.
8633 2002-03-08 Andreas Jaeger <aj@suse.de>
8635 * flow.c (propagate_block_delete_insn): Remove unused variable.
8637 2002-03-08 Kazu Hirata <kazu@hxi.com>
8639 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
8640 insn length for memory load/store.
8642 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
8644 * doc/install.texi (--with-libiconv-prefix): Document.
8646 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
8648 * doc/sourcebuild.texi: Fix typo.
8650 2002-03-08 Jakub Jelinek <jakub@redhat.com>
8653 * builtins.c (std_expand_builtin_va_arg): Do all computations on
8656 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8658 * rtl.c (copy_most_rtx): Move from here ...
8659 * emit-rtl.c (copy_most_rtx): ... to here.
8661 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
8663 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
8664 SUBTARGET_CPP_SIZE_SPEC.
8665 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
8667 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
8669 2002-03-07 Matt Hiller <hiller@redhat.com>
8671 * gensupport.c (first_dir_md_include): Renamed from include;
8672 change all references.
8673 (last_dir_md_include): Renamed from last_include; change all
8675 (init_md_reader): Unconditionally initialize base_dir whether or
8676 not filename is a relative path.
8678 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
8680 * config/fp-bit.c (_unord_f2): Compile it in even if
8681 US_SOFTWARE_GOFAST is enabled.
8683 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
8684 NULL_RTX. Set all HFmode operations as NULL_RTX.
8685 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
8686 NULL_RTX, try reversing the comparison and the operands.
8688 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8690 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
8691 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
8694 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
8696 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8698 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8700 * basic-block.h (fixup_abnormal_edges): Declare.
8701 * reload1.c (fixup_abnormal_edges): New function.
8702 * reg-stack.c (convert_regs): Use it.
8704 * gcse.c (insert_insn_end_bb): Handle trapping insns.
8706 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8708 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
8710 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8711 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8712 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8713 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8714 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8715 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8716 unless x and y could be infinite.
8717 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8718 Check that the common type of both arguments is a real, even for
8719 targets without unordered comparisons. Allow an integer argument
8720 to be compared against a real.
8721 (expand_tree_builtin): Use expand_unordered_cmp.
8722 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8723 * cse.c (fold_rtx): Likewise. Fix indentation.
8724 * fold-const.c (fold_real_zero_addition_p): New.
8725 (fold): Use it, and the new HONOR_... macros.
8726 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8727 * jump.c (reversed_comparison_code_parts): After searching for
8728 the true comparison mode, use HONOR_NANS to decide whether it
8729 can be safely reversed.
8730 (reverse_condition_maybe_unordered): Remove IEEE check.
8731 * simplify-rtx.c (simplify_binary_operation): Use the new macros
8732 to decide which simplifications are valid. Allow the following
8733 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8734 and (a - -b) to (a + b).
8735 (simplify_relational_operation): Use HONOR_NANS.
8736 * doc/tm.texi: Document the MODE_HAS_... macros.
8738 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8740 * combine.c (simplify_comparison): If simplifying a logical shift
8741 right and compare with constant, force the comparison to unsigned.
8743 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
8745 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
8747 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8749 (alt_reg_names): Remove % for vrsave.
8751 2002-03-06 Richard Henderson <rth@redhat.com>
8753 PR optimization/5844
8754 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
8755 if used indicates we've already emitted one copy of an operand.
8756 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8757 (gen_split): Supply a non-null used.
8759 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8761 * reload1.c (reload): Unshare all rtl after reload is done.
8763 * simplify-rtx.c (simplify_plus_minus): Do not abort,
8764 but simply fail if the expression is too complex to simplify.
8765 (simplify_gen_binary): Handle simplify_plus_minus failures.
8767 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
8769 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8770 consistently call delete_trivially_dead_insns after CSE and GCSE;
8771 fix DFI_life dumping; do jump threading after liveness; do crossjumping
8772 after liveness2; update comment in last crossjumping.
8773 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8775 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
8777 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8778 after completing fast dead code elimination.
8780 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8783 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
8785 * version.c: Fix misplaced leading blanks on first line.
8787 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
8789 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8791 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
8793 * cfgcleanup.c (mentions_nonequal_regs): New function.
8794 (thread_jump): Use it.
8795 * toplev.c (rest_of_compilation): Run jump threading after
8798 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8800 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8803 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
8805 * predict.c (estimate_bb_frequencies): Do not reload the
8806 frequencies from notes.
8808 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
8810 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8811 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8813 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8814 delete_noop_moves): Return indeger.
8815 * flow.c (ndead): New variable.
8816 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8817 BB argument; update callers.
8818 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8819 (life_analysis): Do not call purge_all_dead_edges.
8820 (update_life_info): Return number of deleted insns; print statistics.
8821 (update_life_info_in_dirty_blocks): likewise.
8822 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8823 return number of insns deleted.
8825 * cse.c: Include timevar.h
8826 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8827 iterate until stabilizes; print statistics; return number of killed
8829 * Makefile.in: (cse.o): Add timevar.h dependency
8830 * rtl.h (delete_trivially_dead_insns): New.
8831 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8832 * toplev.c (rest_of_compilation): Update callers.
8834 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8835 (try_optimize_cfg): Do not update liveness.
8836 (cleanup-cfg): Loop until try_optimize_cfg and dead code
8837 removal stabilizes; use delete_trivially_dead_insns.
8839 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8841 2002-03-05 Zack Weinberg <zack@codesourcery.com>
8843 * cppmain.c (setup_callbacks): Disable #pragma and #ident
8844 callbacks when processing assembly language.
8846 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8848 * pa.h (ASM_FILE_END): Define.
8849 * som.h (ASM_FILE_END): Delete.
8851 * pa.c (function_arg): Don't pass floats in general registers in
8852 indirect calls if TARGET_ELF32.
8854 2002-03-05 Richard Henderson <rth@redhat.com>
8856 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8858 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
8860 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8862 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8864 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8865 -r command line. Don't hide any symbols if not building
8868 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
8870 * cfg.c (dump_flow_info): Warn about profile mismatches.
8871 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8872 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8874 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8876 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8877 wide volatile memory by parts.
8879 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8881 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8884 2002-03-05 Richard Henderson <rth@redhat.com>
8886 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8888 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
8890 * toplev.c (documented_lang_options): Document more
8891 language-specific options.
8892 * doc/invoke.texi (Warning Options): Correct documentation for
8893 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8894 * c-decl.c (c_decode_option): Use a table to handle warning options.
8896 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
8898 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8899 parameter to mmix_encode_section_info.
8900 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8901 relocatably. Always produce ELF, not mmo if linking relocatably.
8902 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8903 first is non-zero, don't add symbol prefix.
8904 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8905 prototype accordingly.
8907 2002-03-04 Krister Walfridsson <cato@df.lth.se>
8909 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8911 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
8913 * configure.in: Increase required makeinfo version to 4.1.
8914 * configure: Regenerate.
8916 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
8918 * .cvsignore: Remove *.info* and genrtl*; these files are generated
8921 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
8923 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8924 * doc/invoke.texi: Fix @math uses.
8926 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8928 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8931 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
8933 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8934 (powerpc-*-eabisimaltivec*): Same.
8936 * config/rs6000/t-ppcendian: New.
8938 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8940 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8941 nonimmediate_src_operand and nonimmediate_lsrc_operand to
8942 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8944 2002-03-03 Richard Henderson <rth@redhat.com>
8946 * toplev.c (rest_of_decl_compilation): Revert last two changes.
8948 2002-03-03 Zack Weinberg <zack@codesourcery.com>
8950 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8951 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8952 tree.c, config/m68k/m68k.c:
8953 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8954 REAL_ARITHMETIC blocks unconditional. Delete some further
8955 #ifdef blocks predicated on REAL_ARITHMETIC.
8956 * flags.h, toplev.c: Delete remaining references to
8959 * doc/invoke.texi: Remove documentation of -fpretend-float.
8960 * doc/tm.texi: Describe the various REAL_* macros as provided by
8961 real.h, not by the target configuration files.
8963 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8964 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8965 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8966 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8967 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8968 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8969 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8970 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8971 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8972 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8973 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8974 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8975 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8976 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8977 config/xtensa/xtensa.h:
8978 Do not define, undefine, or mention in comments any of
8979 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8980 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8981 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8982 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8983 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8984 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8985 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8986 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8987 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8989 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8991 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8992 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8993 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8994 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8995 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8996 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8998 * defaults.h (BITS_PER_WORD): Define.
8999 * doc/tm.texi (BITS_PER_WORD): Document default value.
9001 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
9002 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
9003 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
9005 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9007 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
9008 lieu of explicit sizeof/sizeof.
9009 * i386.c (override_options, ix86_init_mmx_sse_builtins,
9010 ix86_expand_builtin): Likewise.
9011 * mips.c (mips_add_gc_roots): Likewise.
9012 * mmix.c (mmix_output_condition): Likewise.
9013 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
9014 altivec_init_builtins): Likewise.
9015 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
9016 * cppexp.c (Nsuff, parse_number): Likewise.
9017 * cppinit.c (builtin_array_end): Likewise.
9018 * gcc.c (n_default_compilers, process_command): Likewise.
9019 * genpreds.c (output_predicate_decls): Likewise.
9020 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
9021 * lcm.c (N_ENTITIES): Likewise.
9022 * stor-layout.c (set_sizetype): Likewise.
9024 2002-03-03 Richard Henderson <rth@redhat.com>
9026 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
9027 for types or labels.
9029 2002-03-03 Richard Henderson <rth@redhat.com>
9031 * c-decl.c (start_decl): Initialized variables are not common.
9033 2002-03-02 Per Bothner <per@bothner.com>
9035 * gcc.c (option_map): Suport new --bootclasspath option.
9036 --CLASSPATH is now just an alias for --classpath.
9038 2002-03-02 Richard Henderson <rth@redhat.com>
9040 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
9041 load if "internal" visibility.
9042 * doc/extend.texi: Document visibility meanings.
9044 2002-03-02 Richard Henderson <rth@redhat.com>
9046 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
9047 to functions as well.
9049 2002-03-02 Richard Henderson <rth@redhat.com>
9051 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
9052 (handle_visibility_attribute): Don't call assemble_visibility.
9053 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
9054 without asmspec. Invoke assemble_alias when needed.
9055 * varasm.c (maybe_assemble_visibility): New.
9056 (assemble_start_function, assemble_variable, assemble_alias): Use it.
9058 2002-03-02 Richard Henderson <rth@redhat.com>
9060 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
9061 invoke ENCODE_SECTION_INFO with first call flag.
9063 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
9064 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
9065 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
9066 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
9067 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
9068 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
9069 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
9070 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
9071 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
9072 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
9073 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
9074 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
9075 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
9076 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
9077 config/mcore/mcore-protos.h, config/mcore/mcore.c,
9078 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
9079 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
9080 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
9081 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
9082 config/sh/sh.h, config/sparc/sparc.h,
9083 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
9084 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
9085 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
9086 FIRST argument. As needed, examine it and do nothing.
9088 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
9089 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9090 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
9092 * config/arm/t-pe (pe.o): Add dependencies.
9094 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9096 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
9097 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
9098 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
9099 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
9100 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
9101 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
9102 * defaults.h (BITS_PER_UNIT): Define.
9103 * doc/tm.texi (BITS_PER_UNIT): Document default value.
9105 2002-03-02 Kazu Hirata <kazu@hxi.com>
9107 * config/h8300/h8300-protos.h: Add a prototype for
9108 compute_a_shift_length.
9109 * config/h8300/h8300.c (h8300_asm_insn_count): New.
9110 (compute_a_shift_length): Likewise.
9111 (h8300_adjust_insn_length): Do not adjust insn length of shift
9113 * config/h8300/h8300.md (anonymous shift patterns): Use
9114 compute_a_shift_length.
9116 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9118 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
9121 * emit-rtl.c (offset_address): Call update_temp_slot_address.
9123 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9125 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
9126 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
9127 * flags.h (flag_zero_initialized_in_bss): Declare.
9128 * toplev.c (flag_zero_initialized_in_bss): New flag.
9129 (lang_independent_options): Add flag_zero_initialized_in_bss.
9130 * tree.c (initializer_zerop): New function.
9131 * tree.h (initializer_zerop): Declare.
9132 * varasm.c (assemble_variable): If we can emit bss, put zero
9133 initializers in the bss section.
9135 2002-03-02 Alan Modra <amodra@bigpond.net.au>
9137 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
9138 like more than one symbol per .weak directive.
9140 2002-03-01 Richard Henderson <rth@redhat.com>
9142 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
9143 adjust argument_pointer by pretend_args_size.
9144 (ia64_va_start): Adjust va_start address by -pretend_args_size.
9146 2002-03-01 Kazu Hirata <kazu@hxi.com>
9148 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
9150 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
9152 * toplev.c (rest_of_compilation): Delete dead jumptables before
9154 * flow.c (delete_dead_jumptables): Make global.
9155 * rtl.h (delete_dead_jumptables): Declare.
9157 2002-03-01 David Edelsohn <edelsohn@gnu.org>
9159 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
9160 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
9161 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9163 2002-03-01 Kazu Hirata <kazu@hxi.com>
9165 * config/h8300/h8300-protos.h: Fix formatting.
9166 * config/h8300/h8300.c: Likewise.
9167 * config/h8300/h8300.h: Likewise.
9169 2002-03-01 Kazu Hirata <kazu@hxi.com>
9171 * config/h8300/h8300.c (print_operand): Support 16-bit
9173 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
9175 2002-02-28 Richard Henderson <rth@redhat.com>
9177 * expmed.c (store_bit_field): Prevent generation of CONCATs;
9178 pun complex values as integers; use gen_lowpart instead of
9180 (extract_bit_field): Likewise.
9182 2002-03-01 Alan Modra <amodra@bigpond.net.au>
9183 David Edelsohn <edelsohn@gnu.org>
9185 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
9186 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
9187 (SUPPORTS_WEAK): Likewise.
9188 * output.h (add_weak): Add tree param.
9189 * varasm.c (add_weak): Likewise. Save decl.
9190 (struct weak_syms): Add decl field.
9191 (mark_weak_decls): New function.
9192 (init_varasm_once): ggc_add_root mark_weak_decls.
9193 (assemble_start_function): Use ASM_WEAKEN_DECL.
9194 (assemble_variable): Likewise.
9195 (assemble_alias): Likewise.
9196 (declare_weak): Pass decl to add_weak.
9197 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
9198 (remove_from_pending_weak_list): Declare and define for
9200 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
9201 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
9202 * defaults.h (SUPPORTS_WEAK): Likewise.
9203 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9204 .weak for code sym. Do emit .size for descriptor sym.
9205 (ASM_DECLARE_FUNCTION_SIZE): Define.
9206 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
9207 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
9208 .lglobl unless TARGET_XCOFF. Formatting fixes.
9209 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9211 (HANDLE_PRAGMA_WEAK): Remove.
9212 (ASM_WEAKEN_LABEL): Remove.
9213 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
9215 2002-03-01 Jason Merrill <jason@redhat.com>
9217 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
9218 (TARGET_EXPR_CLEANUP): New macro.
9220 2002-02-28 Steve Ellcey <sje@cup.hp.com>
9222 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
9223 to take ptr_extend into account as third type of extension.
9224 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
9225 fields used by SUBREG_PROMOTED_UNSIGNED_P.
9226 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
9227 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
9228 * calls.c (precompute_arguments): Use new macro.
9229 (expand_call): Ditto.
9230 * combine.c (nonzero_bits): Ditto.
9231 (record_promoted_value): Ditto.
9232 * expr.c (store_expr): Ditto.
9233 (expand_expr): Ditto.
9234 * function.c (assign_parms): Ditto.
9236 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
9238 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
9239 override -shared and -shared-libgcc.
9241 2002-02-28 David O'Brien <obrien@FreeBSD.org>
9243 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
9245 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
9248 2002-02-28 Richard Henderson <rth@redhat.com>
9250 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
9251 4 cycle latency from MM producers.
9252 (ia64_internal_sched_reorder): Likewise with pipeline flush.
9254 2002-02-28 Jakub Jelinek <jakub@redhat.com>
9256 * mklibgcc.in: Don't use GNU make extension.
9258 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9260 * c-parse.in (STATIC): New terminal.
9261 (scspec): New non-terminal. Update productions accordingly.
9262 (program): Remove bogus ifc / end ifc.
9263 (array_declarator): Simplify production using STATIC.
9265 2002-02-28 Jim Meyering <meyering@lucent.com>
9267 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
9268 \a still means TARGET_BELL.
9270 2002-02-28 Richard Henderson <rth@redhat.com>
9272 * haifa-sched.c (sched_emit_insn): New.
9273 (schedule_block): Use last_scheduled_insn to track last insn.
9274 * sched-int.h (sched_emit_insn): Prototype.
9275 * config/ia64/ia64.c (last_issued): Remove.
9276 (ia64_variable_issue): Don't set it.
9277 (nop_cycles_until): Use sched_emit_insn.
9279 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
9281 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
9284 2002-02-28 Kazu Hirata <kazu@hxi.com>
9286 * config/h8300/h8300.c: Fix formatting.
9287 * config/h8300/h8300.h: Likewise.
9289 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
9291 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
9292 which may overwrite the high byte of the frame pointer.
9294 2002-02-28 Bo Thorsen <bo@suse.de>
9296 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
9297 (STARTFILE_SPEC): Add 64 bit files.
9298 (ENDFILE_SPEC): Likewise.
9300 2002-02-28 Jason Merrill <jason@redhat.com>
9302 * c-decl.c (finish_function): Only warn about missing return
9303 statement with -Wreturn-type.
9305 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
9307 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
9309 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
9310 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
9312 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
9314 * basic-block.h (BB_REACHABLE): Renumber.
9315 (BB_DIRTY, BB_NEW): New flags.
9316 (clear_bb_flags): Declare.
9317 (update_life_info_in_dirty_blocks): Declare.
9318 * cfg.c (clear_bb_flags): New function.
9319 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
9320 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
9321 reorder_insns, emit_insn_after): Mark block as dirty.
9322 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
9323 (update_life_info_in_dirty_blocks): New function.
9324 * recog.c (apply_change_group): Dirtify block.
9326 * cse.c (cse_insn): Reorder emitting of jump insn to keep
9328 * gcse.c (delete_null_pointer_checks): Likewise.
9330 * toplev.c (dump_file_index): Move cse2 after bp,
9332 (dump_file_info): Similary.
9333 (rest_of_compilation): Avoid most of CFG rebuilds;
9334 do first if converision after null pointer checks, do cse2
9335 after branch prediction; avoid full liveness rebuild after
9336 initializing subregs.
9337 * invoke.texi (-d options): Document -du, renumber.
9339 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
9340 (notice_new_block): Do not set BB_UPDATE_LIFE.
9341 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
9342 merge_blocks_move_successor_nojumps, merge_blocks,
9343 try_crossjump_to_edge): Likewise.
9344 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
9345 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
9346 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
9347 (merge_of_block): Do not use life_data_ok.
9348 (find_if_case_1): Do not use SET_UPDATE_LIFE.
9349 (if_convert): Use BB_DIRTY mechanizm to update life.
9350 * lcm.c (optimize_mode_switching): Update
9351 update_life_info_in_dirty_blocks
9353 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9355 * Makefile.in (integrate.o): Update.
9356 * c-decl.c (copy_lang_decl): Rename.
9357 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9358 * integrate.c: Include langhooks.h.
9359 (copy_decl_for_inlining): Update to use langhook.
9360 * langhooks-def.h (lhd_do_nothing_t,
9361 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
9362 (LANG_HOOKS_INITIALIZER): Update.
9363 * langhooks.c (lhd_do_nothing_t): New.
9364 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
9365 * tree.h (copy_lang_decl): Remove.
9367 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9369 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
9371 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
9372 POST_DEC, and POST_MODIFY.
9374 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9376 * c-typeck.c (digest_init): Remove unused parameter; all
9379 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
9381 * expmed.c (expand_shift): Correctly test for low part of a
9384 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9386 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
9387 insn UIDs with insn addresses.
9389 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9391 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
9392 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
9393 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
9394 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
9395 gcc.c, toplev.c: Delete code implementing -traditional mode.
9397 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
9398 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
9399 Document removal of -traditional mode for compilation, and
9400 remove documentation only relevant to that mode.
9402 * config/nextstep.h, config/ptx4.h, config/svr4.h,
9403 config/convex/convex.h, config/d30v/d30v.h,
9404 config/i386/dgux.h, config/i386/osf1elf.h,
9405 config/i386/osfelf.h, config/i386/osfrose.h,
9406 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
9407 config/m68k/hp310.h, config/m88k/dgux.h,
9408 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
9409 config/m88k/m88k.h, config/m88k/openbsd.h,
9410 config/mips/abi64.h, config/mips/osfrose.h,
9411 config/mips/svr4-5.h, config/mips/svr4-t.h,
9412 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9413 config/stormy16/stormy16.h: Remove all references to
9414 -traditional from target specs. Delete all mention of the
9415 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
9416 delete a couple of commented-out definitions of
9417 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
9420 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
9421 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
9423 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9425 * mklibgcc.in: Don't use \n in a line subject to
9426 interpretation by echo.
9428 2002-02-27 Graham Stott <grahams@redhat.com>
9430 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
9433 * loop.c (prescan_loop): Handle PARALLEL.
9435 * unroll.c (loop_iterations): Return 0 if the add_val for
9438 * final.c (output_operand_lossage): Constify PFX_STR.
9440 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
9442 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
9444 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
9445 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
9447 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
9449 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9451 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
9453 * cpplex.c (_cpp_lex_token): Handle directives in macro
9455 * cpplib.c (_cpp_handle_directive): Save and restore state
9456 if parsing macro args when entering a directive.
9457 * cppmacro.c (collect_args): No need to handle directives
9459 (enter_macro_context, replace_args): Use the original macro
9460 definition in case it was redefined whilst collecting arguments.
9464 2002-02-26 David Edelsohn <edelsohn@gnu.org>
9466 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
9467 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
9468 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
9470 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
9471 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
9472 (load_toc_v4_PIC_2): Same.
9474 2002-02-26 Alan Modra <amodra@bigpond.net.au>
9476 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
9478 2002-02-26 Richard Henderson <rth@redhat.com>
9480 * config/alpha/alpha.md (ashldi_se): Re-enable.
9482 2002-02-26 Richard Henderson <rth@redhat.com>
9484 * config/alpha/alpha.c (alpha_encode_section_info): Examine
9485 MODULE_LOCAL_P; improve commentary.
9487 2002-02-26 Zack Weinberg <zack@codesourcery.com>
9489 * doc/cpp.texi: Clarify documentation of relationship between
9492 2002-02-26 Kazu Hirata <kazu@hxi.com>
9494 * config/h8300/h8300-protos.h: Update the prototype for
9495 compute_logical_op_length. Add the prototype for
9496 compute_logical_op_cc.
9497 * config/h8300/h8300.c (compute_logical_op_length): Figure out
9499 (compute_logical_op_cc): New.
9500 * config/h8300/h8300.md: Combine all the logical op patterns
9501 in HImode and SImode. Use compute_logical_op_cc.
9503 2002-02-26 Kelley Cook <kelleycook@comcast.net>
9505 * config/i386/i386.c (print_operand): Don't append ATT-style
9506 length suffixs to x87 opcodes when in Intel mode.
9508 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
9510 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
9511 (init_emit_once): Update calls.
9512 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
9513 (init_syntax_once): Prototype.
9515 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9517 * pa-linux.h (LIB_SPEC): Update definition.
9518 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9520 2002-02-26 Richard Henderson <rth@redhat.com>
9522 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
9523 if we emitted a stop bit.
9525 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9527 * configure.in (libgcc_visibility): Substitute.
9528 * configure: Rebuilt.
9529 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
9530 defined symbols .hidden.
9532 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9534 * attribs.c (c_common_attribute_table): Add visibility.
9535 (handle_visibility_attribute): New function.
9536 * varasm.c (assemble_visibility): New function.
9537 * output.h (assemble_visibility): Add prototype.
9538 * tree.h (MODULE_LOCAL_P): Define.
9539 * crtstuff.c (__dso_handle): Use visibility attribute.
9540 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
9541 for MODULE_LOCAL_P symbols too.
9542 * config/ia64/ia64.c (ia64_encode_section_info): Handle
9543 MODULE_LOCAL_P symbols the same way as local symbols.
9544 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
9545 into .sdata/.sbss by the user.
9546 * doc/extend.texi (Function Attributes): Document visibility
9549 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9552 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
9553 STRING_CST initializer spanning the whole variable without
9555 If expand_expr returned MEM, don't use it.
9557 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
9559 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
9560 generate a die for the lexical block.
9562 2002-02-26 Kazu Hirata <kazu@hxi.com>
9564 * config/h8300/h8300-protos.h: Add a prototype for
9565 compute_logical_op_length.
9566 * config/h8300/h8300.c (compute_logical_op_length): New.
9567 * config/h8300/h8300.md (anonymous logical patterns): Use
9568 compute_logical_op_length for length.
9570 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9572 * dwarf2out.c (modified_type_die): Do not call type_main_variant
9574 (gen_type_die): Same.
9576 * attribs.c (handle_vector_size_attribute): Set debug information.
9578 2002-02-26 Daniel Egger <degger@fhm.edu>
9580 * config/rs6000/rs6000.md: Swap define_insn attributes to
9581 fix incorrect generation of merge high instructions instead
9584 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9586 * c-typeck.c (really_start_incremental_init): Use
9587 bitsize_zero_node for vectors.
9589 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9591 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
9592 ("*set_vrsave_internal"): Same.
9594 2002-02-25 Richard Henderson <rth@redhat.com>
9596 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
9597 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
9599 2002-02-25 Jakub Jelinek <jakub@redhat.com>
9602 * config/i386/i386.c (ix86_return_pops_args): Only pop
9603 fake structure return argument if it was passed on the stack.
9605 2002-02-25 Jason Merrill <jason@redhat.com>
9607 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
9610 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
9612 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
9613 link with shared_name only.
9614 * doc/invoke.texi (Link Options): Document new behavior.
9616 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
9618 * c-typeck.c (push_init_level): Handle vectors.
9620 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
9622 * config/sparc/sparc.c (const64_high_operand): Zero-extend
9623 operands of SPARC_SETHI_P.
9624 (input_operand): Likewise.
9625 (sparc_emit_set_const32): Likewise.
9626 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
9627 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9628 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
9629 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
9630 (movdi_insn_sp64_vis): Likewise.
9631 (movdi split, movdf split): Use SETHI32.
9632 * doc/md.texi: Document SPARC constraints L, M and N.
9634 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
9636 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
9637 ("*set_vrsave_internal"): use mfspr for Darwin.
9639 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
9640 gen_get_vrsave_internal.
9642 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9644 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
9646 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
9648 * cpplex.c (cpp_interpret_charconst): Get signedness or
9649 otherwise of wide character constants correct.
9650 * cppexp.c (lex): Get signedness of wide charconsts correct.
9652 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9654 * optabs.c (widen_operand): Only call convert_modes for
9655 promoted SUBREG if signedness matches.
9656 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
9658 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9660 * cpplib.c (glue_header_name): Use local buffer to build up
9663 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9665 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
9667 2002-02-23 Kazu Hirata <kazu@hxi.com>
9669 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
9670 H8/300[HS] separately.
9671 * config/h8300/h8300.md: Remove the early clobber constraint
9672 from bit field patterns.
9674 2002-02-23 Kazu Hirata <kazu@hxi.com>
9676 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
9678 (mulhisi3): Likewise.
9679 (umulqisi3): Likewise.
9680 (umulhisi3): Likewise.
9682 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9684 * cppinit.c (output_deps): Correct test for stdout output.
9685 (init_dependency_output): Cure warning.
9687 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9689 * expr.c (store_expr): When converting expression to promoted
9690 equivalent type, allow using SUBREG_REG of TARGET as the target
9691 of the expansion of EXP.
9692 * loop.c (basic_induction_var, case SUBREG): Always look inside.
9693 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
9694 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
9695 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
9696 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9698 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
9700 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9701 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9702 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9704 2002-02-23 Jakub Jelinek <jakub@redhat.com>
9706 PR optimization/5747
9707 * loop.c (scan_loop): Update reg info if move_movables created new
9710 2002-02-23 David Edelsohn <edelsohn@gnu.org>
9712 * gcc.c (init_gcc_spec): Revert last change.
9714 2002-02-23 David Edelsohn <edelsohn@gnu.org>
9716 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9717 gpc_reg_operand constraint.
9719 2002-02-23 Alan Modra <amodra@bigpond.net.au>
9721 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9722 Simplify comparison of `low'.
9723 (add_operand): Fix formatting.
9724 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
9725 (mask_operand): Disallow mask to wrap in 64-bit mode.
9726 (rs6000_stack_info): Remove redundant test setting push_p.
9727 (output_toc): Fix formatting.
9728 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9729 cc_reg_not_cr0_operand constraint.
9730 (booldi3, boolcdi3 splitters): Same.
9732 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
9734 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
9736 2002-02-22 David Edelsohn <edelsohn@gnu.org>
9738 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9739 gcc invoked with -shared-libgcc.
9741 2002-02-22 Jakub Jelinek <jakub@redhat.com>
9744 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9745 decl if any of elements was TREE_USED.
9747 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
9749 * config/sparc/sol2.h: Don't include sys/mman.h.
9750 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9751 (arith_4096_operand): Don't throw high bits away.
9752 (const64_operand): Take sign extension of CONST_INTs into account.
9753 (const64_high_operand, sparc_emit_set_const32): Likewise.
9754 (GEN_HIGHINT64): Likewise.
9755 (sparc_emit_set_const64_quick1): Likewise.
9756 (const64_is_2insns): Likewise.
9757 (print_operand): Use trunc_int_for_mode for sign extension.
9758 * config/sparc/sparc.h (SMALL_INT32): Likewise.
9759 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9760 chars. Assume CONST_INT is already properly sign-extended.
9761 (movdi split): Sign-extend each SImode part.
9762 (andsi3 split): Don't mask high bits off, so that result
9763 remains properly sign-extend.
9764 (iorsi3 split): Likewise.
9765 (xorsi3 split): Likewise.
9767 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
9769 * fold-const.c (fold): Fix typo in comments.
9771 2002-02-21 Diego Novillo <dnovillo@redhat.com>
9773 * Makefile.in (langhooks.o): Update dependencies.
9775 2002-02-21 Diego Novillo <dnovillo@redhat.com>
9777 * langhooks.c: Include flags.h.
9779 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
9781 * testsuite/gcc.dg/attr-alwaysinline.c: New.
9783 * c-common.c (c_common_post_options): Set inline trees by
9786 * doc/extend.texi (Function Attributes): Document always_inline
9788 Update documentation about inlining when not optimizing.
9790 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9792 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9793 unless DECL_ALWAYS_INLINE.
9795 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9796 unless DECL_ALWAYS_INLINE.
9797 (c_disregard_inline_limits): Disregard if always_inline set.
9799 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9800 Disregard if always_inline set.
9801 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9802 unless DECL_ALWAYS_INLINE.
9804 * attribs.c (handle_always_inline_attribute): New.
9805 (c_common_attribute_table): Add always_inline.
9807 * config/rs6000/altivec.h: Add prototypes for builtins
9808 requiring the always_inline attribute.
9810 2002-02-21 Eric Christopher <echristo@redhat.com>
9812 * expmed.c (store_bit_field): Try to simplify the subreg
9813 before generating a new one when when the mode size of
9814 value is less than maxmode.
9816 2002-02-21 Richard Henderson <rth@redhat.com>
9818 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9819 than gen_rtx_PLUS to form the sum.
9820 * explow.c (force_reg): Rearrange to not allocate new pseudo
9821 when force_operand returns a register.
9822 * expr.c (expand_assignment): Allow offset_rtx expansion to
9823 return a sum. Do not force addresses into registers.
9824 (expand_expr): Likewise.
9825 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9826 to canonicalize arithmetic that didn't simpify.
9827 (simplify_plus_minus): New argument force; update
9828 all callers. Don't split CONST unless we can do something with it,
9829 and wouldn't lose the constness of the operands.
9831 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9832 that we generated earlier.
9834 2002-02-21 Tom Tromey <tromey@redhat.com>
9836 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9837 (output_line_info): Use constant `1', with a long explanatory
9839 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9841 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
9843 * jump.c (redirect_jump): If old label has no UID, don't try to
9846 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
9848 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9849 If input is constant, do shifts at compile time.
9851 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
9853 * doc/extend.texi: Fix some more overfull hboxes.
9855 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9857 PR optimization/4994
9858 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9861 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9864 * expr.h (expand_and): Add mode argument.
9865 * expmed.c (expand_and): Add mode argument.
9866 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9867 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9868 * except.c (expand_builtin_extract_return_addr): Likewise.
9869 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9870 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9871 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9872 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9873 * config/c4x/c4x.md: Use GEN_INT (x) instead of
9874 gen_rtx (CONST_INT, VOIDmode, x).
9876 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9879 * stmt.c (warn_if_unused_value): Move side effects test once more.
9881 2002-02-20 Torbjorn Granlund <tege@swox.com>
9883 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9884 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9886 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
9888 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9889 SUBREG or ZERO_EXTEND.
9891 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
9893 * sh.h (current_function_anonymous_args): Remove.
9894 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9895 of current_function_varargs and current_function_stdarg is set.
9896 * sh.c (sh_expand_prologue): Check current_function_varargs /
9897 current_function_stdarg / TARGET_SH5 instead of
9898 current_function_anonymous_args.
9900 * sh64.h (TARGET_VERSION): Define.
9902 2002-02-20 David Edelsohn <edelsohn@gnu.org>
9904 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9905 VRSAVE_REGNO on TARGET_ALTIVEC.
9907 2002-02-20 Alan Modra <amodra@bigpond.net.au>
9909 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9910 bits of SImode const_int.
9911 (includes_rshift_p): Likewise.
9912 (print_operand): Call mask_operand and mask64_operand with correct
9914 (rs6000_output_function_epilogue): Pad traceback table to word.
9915 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9916 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9917 mask64_operand with correct mode.
9918 (FUNCTION_ARG_REGNO_P): Correct parentheses.
9920 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9923 * varasm.c (get_pool_constant_mark): New.
9924 * rtl.h (get_pool_constant_mark): Add prototype.
9925 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9926 be represented if it has not been output.
9928 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
9930 * combine.c (do_SUBST): Sanity check substitutions of
9931 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9932 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9933 CONST_INT into its operand.
9934 (known_cond): Likewise, for ZERO_EXTEND.
9935 * simplify-rtx.c (simplify_unary_operation): Fix condition to
9936 allow for simplification of wide modes. Reject CONST_INTs in
9937 ZERO_EXTEND when their actual mode is not given.
9939 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
9941 * c-decl.c (pushdecl): If no global declaration is found for an
9942 extern declaration in block scope, try a limbo one.
9944 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9947 * c-common.c (pointer_int_sum): Moved from...
9948 * c-typeck.c (pointer_int_sum): ...here.
9949 * c-common.h (pointer_int_sum): Add prototype.
9951 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9954 * c-decl.c (duplicate_decls): Return 0 if issued error about
9957 2002-02-20 Roger Sayle <roger@eyesopen.com>
9958 Jakub Jelinek <jakub@redhat.com>
9961 * tree.c (host_integerp): Ensure that the constant integer is
9962 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9963 when pos is zero or non-zero respectively. Clarify comment.
9964 * c-format.c (check_format_info_recurse): Fix host_integerp
9965 usage; the pos argument should be zero when assigning to a
9966 signed HOST_WIDE_INT.
9968 2002-02-20 Richard Henderson <rth@redhat.com>
9970 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9971 of the operand, rather than assuming TImode.
9972 (ix86_expand_binop_builtin): Cope with commutative patterns
9973 using nonimmediate_operand for both operands.
9974 (ix86_expand_timode_binop_builtin): Likewise.
9975 (ix86_expand_store_builtin): Validate operand 1.
9976 (ix86_expand_unop1_builtin): Likewise.
9978 2002-02-20 Philip Blundell <philb@gnu.org>
9981 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9983 2002-02-20 Richard Henderson <rth@redhat.com>
9986 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9988 2002-02-20 Tom Tromey <tromey@redhat.com>
9990 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9991 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9992 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9993 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9994 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9997 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9999 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
10000 for (const_int 0) in X not just INTVAL.
10002 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
10004 * doc/extend.texi: Avoid or reduce overfull hboxes.
10006 2002-02-20 Diego Novillo <dnovillo@redhat.com>
10008 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
10009 operations if the field does not start at a mode boundary.
10011 2001-02-20 Joel Sherrill <joel@OARcorp.com>
10013 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
10014 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
10015 Also done for -Acpu and -Amachine.
10017 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
10019 * cppinit.c (init_dependency_output): Take deps output file
10020 from -o if none given with -MF. Suppress normal output.
10021 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
10022 * doc/cpp.texi, doc/invoke.texi: Update.
10024 2002-02-19 Zack Weinberg <zack@codesourcery.com>
10026 * toplev.c (output_quoted_string): Write unprintable
10027 characters with octal escapes.
10029 2002-02-19 David Edelsohn <edelsohn@gnu.org>
10031 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
10032 really_call_used[VRSAVE_REGNO] if not Altivec.
10034 2002-02-19 Alan Modra <amodra@bigpond.net.au>
10036 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
10038 (constant_pool_expr_1): Fix formatting.
10039 (rs6000_legitimize_reload_address): Likewise.
10041 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10043 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
10044 now that we have one.
10046 2002-02-19 Zack Weinberg <zack@codesourcery.com>
10048 * tree.h (struct tree_common): Remove aux. Add unused_0 at
10049 end of first block of bitfields (which was only seven bits);
10050 rename dummy to unused_1; remove comment which is no longer true.
10052 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10054 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
10056 2002-02-19 Philip Blundell <pb@nexus.co.uk>
10059 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
10063 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
10064 arm_is_longcall_p rather than inspecting call-type cookie
10066 (call_value_insn) [TARGET_THUMB]: Likewise.
10068 2002-02-19 Graham Stott <grahams@redhat.com>
10070 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
10072 2002-02-19 David Edelsohn <edelsohn@gnu.org>
10074 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
10075 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
10076 (FP_SAVE_INLINE): Delete.
10078 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
10079 * config/rs6000/eabi.asm: Remove ABI save restore routines.
10080 * config/rs6000/t-ppccomm: Build crtsavres.o.
10081 * config/rs6000/crtsavres.asm: New file.
10083 2002-02-19 Philip Blundell <philb@gnu.org>
10085 * config/arm/arm.c (use_return_insn): Don't reject interrupt
10087 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
10088 (output_return_instruction): Allow interrupt functions to return with
10089 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
10090 (arm_expand_prologue): Subtract 4 before stacking LR in an
10091 interrupt function.
10093 2002-02-19 Philip Blundell <pb@nexus.co.uk>
10095 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
10096 decl, not just FUNCTION_DECL.
10097 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
10098 (arm_assemble_integer): Likewise.
10099 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
10102 2002-02-19 matthew green <mrg@eterna.com.au>
10104 * config.gcc (sparc-*-netbsdelf*): Enable target.
10105 (sparc64-*-netbsd*): New target.
10106 * config/sparc/netbsd-elf.h: New file.
10107 * config/sparc/t-netbsd64: New file.
10109 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10111 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
10113 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
10115 * doc/invoke.texi: explicitly list the style guidelines that
10116 -Weffc++ checks for.
10118 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
10120 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
10122 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
10125 * gcc.c (cpp_unique_options): Treat -o as indicating object file
10126 only if not -E. If -E, pass -o through to the preprocessor.
10128 2002-02-19 Kazu Hirata <kazu@hxi.com>
10130 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
10131 register number with an appropriate macro.
10133 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10135 * doc/rtl.texi (Constants): Close @code tag.
10137 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
10139 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
10140 ("mmx_uavgv4hi3"): Same.
10141 ("pmulhrwv4hi3"): Same.
10143 * tree-inline.c (walk_tree): Handle vectors.
10145 * c-common.c (constant_expression_warning): Handle vectors.
10146 (overflow_warning): Same.
10148 * sched-deps.c (sched_analyze_2): Handle vectors.
10150 * rtlanal.c (rtx_unstable_p): Handle vectors.
10151 (rtx_varies_p): Same.
10152 (count_occurrences): Same.
10153 (regs_set_between_p): Same.
10154 (modified_between_p): Same.
10155 (modified_in_p): Same.
10156 (volatile_insn_p): Same.
10157 (volatile_refs_p): Same.
10158 (side_effects_p): Same.
10159 (may_trap_p): Same.
10160 (inequality_comparisons_p): Same.
10161 (replace_regs): Same.
10162 (computed_jump_p_1): Same.
10164 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
10166 (inner_mode_array): New.
10167 (copy_rtx): Handle vectors.
10168 (copy_most_rtx): Same.
10169 (rtx_equal_p): Same.
10170 (get_mode_alignment): Adjust for vectors.
10172 * resource.c (mark_referenced_resources): Handle vectors.
10173 (mark_set_resources): Same.
10175 * reload1.c (eliminate_regs): Handle vectors.
10176 (elimination_effects): Same.
10177 (scan_paradoxical_subregs): Same.
10179 * reload.c (subst_reg_equivs): Handle vectors.
10181 * regrename.c (scan_rtx): Handle vectors.
10183 * regclass.c (reg_scan_mark_refs): Handle vectors.
10185 * recog.c (find_single_use_1): Handle vectors.
10187 * local-alloc.c (equiv_init_varies_p): Handle vectors.
10188 (contains_replace_regs): Same.
10189 (memref_referenced_p): Same.
10191 * integrate.c (copy_rtx_and_substitute): Handle vectors.
10192 (subst_constants): Same.
10194 * genattrtab.c (attr_copy_rtx): Handle vectors.
10195 (encode_units_mask): Same.
10196 (clear_struct_flag): Same.
10197 (count_sub_rtxs): Same.
10199 * gcse.c (want_to_gcse_p): Handle vectors.
10200 (oprs_unchanged_p): Same.
10201 (hash_expr_1): Same.
10202 (oprs_not_set_p): Same.
10203 (expr_killed_p): Same.
10204 (compute_transp): Same.
10205 (store_ops_ok): Same.
10207 * function.c (purge_addressof_1): Do not allow paradoxical subregs
10209 (fixup_var_refs_1): Same.
10210 (instantiate_virtual_regs_1): Same.
10212 * fold-const.c (operand_equal_p): Handle vectors.
10214 (rtl_expr_nonnegative_p): Same.
10216 * flow.c (mark_used_regs): Handle vectors.
10218 * df.c (df_uses_record): Handle vectors.
10220 * cselib.c (cselib_subst_to_values): Handle vectors.
10221 (cselib_mem_conflict_p): Same.
10224 * cse.c (canon_reg): Handle vectors.
10226 (cse_process_notes): Same.
10227 (count_reg_usage): Same.
10228 (canon_hash): Same.
10230 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
10232 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
10234 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
10235 (gen_rtx): Handle CONST_VECTOR.
10236 (gen_const_vector_0): New.
10237 (copy_rtx_if_shared): CONST_VECTORs can be shared.
10238 (reset_used_flags): Same.
10239 (copy_insn_1): Same.
10240 (initializer_constant_valid_p): Handle VECTOR_CST.
10242 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
10244 * doc/rtl.texi (Constants): Document const_vector.
10245 (CONST0_RTX): Update for vectors.
10246 (RTL sharing): Same.
10248 * print-tree.c (print_node): Add case for VECTOR_CST.
10250 * tree.h (TREE_VECTOR_CST_ELTS): New.
10251 (struct tree_vector): New.
10252 (union tree_node): Add vector node.
10253 (build_vector): Add prototype.
10255 * tree.def (VECTOR_CST): New.
10257 * tree.c (build_vector): New.
10259 * expmed.c (make_tree): Handle CONST_VECTOR.
10261 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
10262 (CONST_VECTOR_ELT): New.
10263 (CONST_VECTOR_NUNITS): New.
10265 * machmode.h (GET_MODE_INNER): New.
10266 (DEF_MACHMODE): Accept 8th arg.
10268 * machmode.def: Add 8th argument for vector inner mode.
10269 Add inner vector modes for vectors.
10271 * rtl.def (VEC_CONST): Remove.
10272 (CONST_VECTOR): New.
10274 * expr.c (clear_storage): Allow vectors.
10275 (is_zeros_p): Handle VECTOR_CST.
10277 * varasm.c (output_constant_pool): Handle vectors.
10278 (rtx_const): Add veclo and vechi fields.
10279 (kind): Add RTX_VECTOR.
10280 (decode_rtx_const): Add case for vector.
10282 * config/rs6000/rs6000-protos.h: Add zero_constant.
10284 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
10285 constants. Force easy vector constants into memory.
10286 (easy_vector_constant): New.
10287 (emit_easy_vector_constant): New.
10288 (rs6000_legitimize_reload_address): Do not generate bad reloads on
10291 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
10293 ("altivec_lvxl"): Same.
10294 (altivec_lvebx): Same.
10295 (altivec_lvehx): Same.
10296 (altivec_lvewx): Same.
10297 ("*movv4si_const0"): New.
10298 ("*movv4sf_const0"): New.
10299 ("*movv8hi_const0"): New.
10300 ("*movv16qi_const0"): New.
10302 2002-02-18 Kazu Hirata <kazu@hxi.com>
10304 * config/h8300/h8300.c (notice_update_cc): Use
10307 2002-02-18 Kazu Hirata <kazu@hxi.com>
10309 * config/h8300/h8300.md (divmod patterns): Change the
10310 constraints for operands[1] to register_operand.
10312 2002-02-18 Kazu Hirata <kazu@hxi.com>
10314 * config/h8300/h8300-protos.h: Remove the prototype for
10316 * config/h8300/h8300.c (p_operand): Remove.
10317 * config/h8300/h8300.md: Replace p_operand with
10320 2002-02-18 Philip Blundell <pb@nexus.co.uk>
10322 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
10324 (output_return_instruction): Allow use of LDR to unstack
10325 return addresss even for interrupt handlers or when
10326 interworking. If compiling for ARMv5, use interworking-safe
10327 return instructions by default. Remove duplicated code and
10328 lengthy "strcat" sequences.
10330 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10332 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
10333 (LINK_EH_SPEC): Define.
10334 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
10336 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
10338 * config/s390/s390.c (s390_emit_prologue): Do not set the
10339 frame_related flag for call-clobbered registers.
10341 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
10343 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
10344 (construct_container): Fix handling of SSE operands.
10345 (ix86_expand_builtin): Fix handling of 64bit pointers.
10346 (mmx_maskmovq_rex): New pattern.
10348 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
10350 * regrename.c (kill_set_value): Handle subregs properly.
10352 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
10354 * objc/objc-act.c (handle_impent): Remove leading '*'
10355 from objc_class_name.
10357 2002-02-17 Richard Henderson <rth@redhat.com>
10359 * config/alpha/alpha.c (some_small_symbolic_operand,
10360 some_small_symbolic_operand_1, split_small_symbolic_operand,
10361 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
10362 Handle small SYMBOL_REFs anywhere, not just inside memories.
10363 * config/alpha/alpha-protos.h: Update.
10364 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10365 * config/alpha/alpha.md (small symbolic operand splitter): Update.
10367 2002-02-17 Roland McGrath <roland@frob.com>
10369 * config.gcc (powerpc-*-gnu-gnualtivec*,
10370 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
10371 * config/rs6000/gnu.h: New file.
10372 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
10373 Grok "gnu" in rs6000_abi_name.
10374 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
10375 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
10376 Grok -mcall-gnu analogous to -mcall-linux et al.
10377 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10378 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
10379 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
10381 2002-02-17 Jakub Jelinek <jakub@redhat.com>
10384 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
10387 2002-02-17 Philipp Thomas <pthomas@suse.de>
10389 * config/cris/cris.h: Undefine STARTFILE_SPEC and
10390 ENDFILE_SPEC before (re)defining them.
10392 2002-02-17 Kazu Hirata <kazu@hxi.com>
10394 * config/h8300/h8300.c: Fix formatting.
10395 * config/h8300/h8300.h: Likewise.
10397 2002-02-17 Philipp Thomas <pthomas@suse.de>
10399 * doc/tm.texi: Explain why empty strings should not be
10400 marked for translation.
10402 2002-02-17 Philipp Thomas <pthomas@suse.de>
10404 * final.c (output_operand_lossage): Changed to accept
10405 printf style arguments. Change calls where necessary.
10406 * output.h (output_operand_lossage): Change declaration
10407 accordingly. Update copyright.
10408 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
10409 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
10410 Update copyright date where necessary.
10412 * config/i386/i386.c (print_operand): Likewise. Remove use of
10415 * config/cris/cris.c (cris_operand_lossage): Likewise.
10416 Rename parameter so that exgettext recognizes it as
10417 translatable message.
10418 (LOSE_AND_RETURN): Rename parameter to msgid.
10420 2002-02-17 Kazu Hirata <kazu@hxi.com>
10422 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
10423 hard coded register number with an appropriate macro.
10424 (HARD_REGNO_MODE_OK): Likewise.
10425 (ARG_POINTER_REGNUM): Likewise.
10426 (STATIC_CHAIN_REGNUM): Likewise.
10427 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
10428 * config/h8300/h8300.md (define_constants): Define more
10431 2002-02-17 Philipp Thomas <pthomas@suse.de>
10433 * config/i386/i386.h: Don't mark empty strings for translation.
10435 2002-02-16 H.J. Lu <hjl@gnu.org>
10437 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
10439 2002-02-16 Zack Weinberg <zack@codesourcery.com>
10441 * cppinit.c (merge_include_chains): Check for brack being
10442 NULL before attempting to merge it with qtail.
10444 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10446 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
10449 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
10451 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
10453 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
10455 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
10456 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
10457 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
10459 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10461 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
10462 now only if !TARGET_FIX.
10463 (*movsi_nt_vms_fix): New pattern.
10465 2002-02-16 Douglas B Rupp <rupp@gnat.com>
10467 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
10468 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
10469 (alpha_sa_mask, alpha_sa_size): Reflect above change.
10470 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
10471 (alpha_start_function, alpha_expand_epilogue): Likewise.
10472 (unicosmk_gen_dsib): Likewise.
10474 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10476 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
10478 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
10480 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
10481 check_and_change_labels, s390_final_chunkify): Delete.
10482 (s390_split_branches, s390_chunkify_pool): New functions.
10483 (s390_function_prologue): Call them.
10485 * config/s390/s390.h (S390_REL_MAX): Delete.
10486 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
10488 * config/s390/s390.md (cjump, icjump, jump): Fix length
10489 attribute calculation.
10492 2002-02-15 David Edelsohn <edelsohn@gnu.org>
10494 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
10495 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
10497 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10499 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
10500 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
10501 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
10503 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
10505 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
10507 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
10509 * reload.c (find_dummy_reload): Check that an output register
10510 is valid for its mode.
10512 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
10514 * combine.c (known_cond): After replacing the REG of a SUBREG, try
10517 * function.c (assign_parms): Demote promoted argument passed by
10518 transparent reference.
10520 2001-02-14 Joel Sherrill <joel@OARcorp.com>
10522 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
10523 -Acpu() and -Amachine() to eliminate warnings.
10525 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
10527 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
10529 2002-02-14 Kazu Hirata <kazu@hxi.com>
10531 * config/h8300/h8300-protos.h: Update the prototype for
10533 * config/h8300/h8300.c (const_costs): Treat SET as a little
10534 more expensive operation.
10535 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
10536 reference to const_costs.
10538 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
10540 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
10542 2002-02-14 Jakub Jelinek <jakub@redhat.com>
10545 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
10546 use arguments from newtype.
10548 2002-02-13 Eric Christopher <echristo@redhat.com>
10550 * config/mips/mips.c (override_options): Add check for march/mipsX
10551 on the same command line. Fix error message in cpu processing.
10552 Remove architecture and ISA checks.
10554 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
10556 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
10558 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
10560 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
10562 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
10564 ("*movv8hi_internal1"): Same.
10565 ("*movv16qi_internal1"): Same.
10566 ("*movv4sf_internal1"): Same.
10568 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
10569 not push_reload for altivec modes.
10571 2002-02-13 Joel Sherrill <joel@OARcorp.com>
10573 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
10574 all RTEMS targets including removal of #includes from config/*/rtems*.h
10575 file and adding them to tm_file setting. Added xm_defines=POSIX to
10577 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
10578 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
10579 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
10580 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
10581 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
10582 config/m68k/rtemself.h: Ditto.
10583 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
10584 config/mips/rtems64.h: Ditto.
10585 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
10586 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
10588 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
10589 config/sparc/rtemself.h: Ditto.
10590 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
10591 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
10592 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
10594 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
10595 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
10596 target made more similar to i386-elf.
10597 * config/i386/t-rtems-i386: Added soft float support and multilibs.
10598 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
10599 be similar to config/m68k/t-m68kelf.
10600 * gthr-rtems.h: Encapsulate with extern "C" for C++.
10602 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
10604 * regmove.c (kill_value): Handle subregs.
10606 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
10608 * i386.md (mul patterns): Allow memory operand to be first;
10609 add expanders where needed; fix constraints.
10610 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
10611 Allow memory operand to be the first.
10613 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
10616 2002-02-13 Jakub Jelinek <jakub@redhat.com>
10619 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
10622 2002-02-13 Jakub Jelinek <jakub@redhat.com>
10624 PR optimization/5547:
10625 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
10626 all valid IA-32 address modes involving non-scaled %ebx and
10627 GOT/GOTOFF as displacement.
10629 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
10631 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
10632 after emitting ltorg insns.
10634 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
10635 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
10636 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
10637 *abssf2): Fix "op_type" attribute.
10639 2002-02-13 Douglas B Rupp <rupp@gnat.com>
10641 * mkconfig.sh: Avoid using a subshell redirect.
10642 ($output.T): Change to $(output)T.
10643 (ENABLE_NLS): Remove unneeded undef.
10645 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
10646 * config/alpha/x-vms (libsubdir): Define.
10648 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
10649 register frame procedures. Optimize retrieving context.
10651 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
10652 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
10653 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
10655 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10657 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
10658 Make same change as for find_base_value.
10660 2002-02-13 Kazu Hirata <kazu@hxi.com>
10662 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
10663 of QImode and SImode.
10665 2002-02-13 Kazu Hirata <kazu@hxi.com>
10667 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
10668 length computation of movsi.
10669 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
10671 2002-02-13 Kazu Hirata <kazu@hxi.com>
10673 * config/h8300/h8300.md (subqi3): Tighten the predicate for
10674 operands[2] to register_operand.
10676 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
10678 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
10680 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
10682 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
10683 for altivec_lvx* and altivec_stvx*.
10684 ("*movv4si_internal"): Add constraint for loading from GPRs.
10685 ("*movv8hi_internal1"): Same.
10686 ("*movv16qi_internal1"): Same.
10687 ("*movv4sf_internal1"): Same.
10689 * config/rs6000/rs6000.c (altivec_register_operand): New.
10691 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10692 altivec_register_operand.
10694 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
10696 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10699 2002-02-13 Stan Shebs <shebs@apple.com>
10701 * c-typeck.c (digest_init): Handle vectors.
10702 (really_start_incremental_init): Same.
10703 (pop_init_level): Same.
10704 (process_init_element): Same.
10706 * varasm.c (output_constant): Same.
10708 * expr.c (clear_storage): Same.
10709 (store_constructor): Same.
10711 2002-02-12 Eric Christopher <echristo@redhat.com>
10713 * explow.c (hard_function_value): Add comment explaining
10714 signed/unsigned comparison.
10716 2002-02-12 Jakub Jelinek <jakub@redhat.com>
10718 * jump.c (never_reached_warning): Add finish argument.
10719 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10720 real insn after end.
10721 * rtl.h (never_reached_warning): Adjust prototype.
10722 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10723 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10724 never_reached_warning.
10726 2002-02-12 Graham Stott <grahams@redhat.com>
10728 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10730 2002-02-12 Kazu Hirata <kazu@hxi.com>
10732 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10733 logical shifts on H8/300.
10734 (shift_alg_si): Improve several shifts on H8/300.
10735 (get_shift_alg): Likewise.
10737 2002-02-12 Graham Stott <grahams@redhat.com>
10739 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10741 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10743 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10744 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10746 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
10748 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10749 non-CONST_INT through default_assemble_integer.
10750 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10751 <case 8>: Abort for CONST_DOUBLE.
10753 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10755 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10757 * config/pa/pa-linux.h (LIB_SPEC): Delete.
10758 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10760 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
10762 * config/stormy16/stormy16.md (zero_extendqihi2): New.
10764 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
10766 * regrename.c (regrename_optimize): Don't accept a
10767 part-clobbered register if the replaced register is not part
10770 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10771 take padding into account when computing the argument value.
10773 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10775 * combine.c (try_combine): Apply substitutions in
10776 CALL_INSN_FUNCTION_USAGE too.
10778 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
10780 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10781 __builtin_altivec_abs*.
10784 * config/rs6000/rs6000.h (rs6000_builtins): Add
10785 ALTIVEC_BUILTIN_ABS*.
10787 * config/rs6000/altivec.h: Use const char for builtins expecting
10789 (vec_abs): New versions for C and C++.
10792 2002-02-10 Kazu Hirata <kazu@hxi.com>
10794 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10797 2002-02-10 Kazu Hirata <kazu@hxi.com>
10799 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10800 constant definition from h8300.md.
10801 (FRAME_POINTER_REGNUM): Likewise.
10802 * config/h8300/h8300.md (define_constants): Add FP_REG.
10804 2002-02-10 Kazu Hirata <kazu@hxi.com>
10806 * config/h8300/h8300.c (print_operand): Remove redundant code.
10808 2002-02-10 Kazu Hirata <kazu@hxi.com>
10810 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10811 * config/h8300/h8300.c (byte_reg): Make it static.
10813 2002-02-10 Richard Henderson <rth@redhat.com>
10816 * c-typeck.c (incomplete_type_error): Handle flexible array members.
10818 2002-02-10 Richard Henderson <rth@redhat.com>
10821 * tree.c (append_random_chars): Don't abort if main_input_filename
10824 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
10826 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10828 2002-02-10 Kazu Hirata <kazu@hxi.com>
10830 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10831 (pushhi1): Likewise.
10833 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
10835 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10836 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10838 2002-02-09 David O'Brien <obrien@FreeBSD.org>
10840 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10842 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
10844 2002-02-09 Kazu Hirata <kazu@hxi.com>
10846 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10847 a half of an SImode register on H8/300.
10849 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
10851 * i386.md (movdi_2): Add missing '!'.
10853 2002-02-09 Kazu Hirata <kazu@hxi.com>
10855 * config/h8300/h8300.h: Fix formatting. Remove commented-out
10858 2002-02-09 Kazu Hirata <kazu@hxi.com>
10860 * config/h8300/h8300.md (length): Correct the distance valid
10861 for the short branch.
10863 2002-02-09 Kazu Hirata <kazu@hxi.com>
10865 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10867 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10869 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10870 registers in SImode.
10871 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10874 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10877 Contribute sh64-elf.
10878 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10879 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10880 (sh_cannot_modify_jumps_p): New function.
10881 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10882 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10883 (sh_ms_bitfield_layout_p): New function.
10884 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
10885 Zack Weinberg <zack@codesourcery.com>
10886 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10887 expand_simple_binop instead of expand_binop.
10888 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
10889 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10890 use of .quad and .uaquad.
10891 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10892 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10893 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10894 * config/sh/sh.md (movdi_const, movdi_const_32bit,
10895 movdi_const_16bit): Make sure all CONSTs have modes.
10896 (sym2PIC): Ditto, but by adjusting all callers.
10897 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10898 if the prologue calls the SHmedia argument decoder or register
10900 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10901 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10902 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10903 (sh_expand_epilogue): Don't emit USE of return target register.
10904 (prepare_move_operands): Legitimize DImode PIC addresses.
10905 (sh_media_register_for_return): Skip tr0, used to initialize the
10907 (sh_expand_prologue): Remove explicit USE of return register.
10908 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
10909 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
10910 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10911 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10912 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10913 EXTRA_CONSTRAINT_T.
10914 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10915 (MOVI_SHORI_BASE_OPERAND_P): New.
10916 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10917 (EXTRA_CONSTRAINT_T): Define in terms of them.
10918 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10919 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10920 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10921 alternatives supporting TARGET_REGS.
10922 (UNSPEC_GOTPLT): New constant.
10923 (movdi split): Move incrementing of LABEL_NUSES...
10924 (movdi_const, movdi_const_32bit): Here. Use
10925 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10926 (movdi_const_16bit): New.
10927 (call, call_value) [flag_pic]: Use GOTPLT.
10928 (call_pop, call_value_pop): New expands.
10929 (call_pop_compact, call_pop_rettramp): New insns.
10930 (call_value_pop_compact, call_value_pop_rettramp): New insns.
10931 (sibcall) [flag_pic]: Use GOT.
10932 (builtint_setjmp_receiver): Remove bogus, unused expand.
10933 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10934 (*pt, *ptb, ptrel): New insns.
10935 (sym2GOT): Handle DImode GOT.
10936 (sym2GOTPLT, symGOTPLT2reg): New expands.
10937 (sym2PIC): New expand.
10938 (shcompact_return_tramp): Use GOTPLT to return trampoline.
10939 (shcompact_return_tramp_i): Use return register explicitly.
10940 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10941 disable flag_reorder_blocks.
10942 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10943 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10944 clobbers, for clarity.
10945 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10946 restoring of r0 in macl as MAYBE_DEAD.
10947 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
10948 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10949 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10950 alter_subreg all over.
10951 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10952 reload, instead of emitting instructions that would require
10954 (casesi_load_media): Add missing modes.
10955 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
10956 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10957 as used if the argument decoder is called.
10958 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10959 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10960 Pmode, then extend it to DImode if necessary.
10961 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10962 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10963 constants in FPU-enabled SHmedia, let them be loaded from memory.
10964 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10965 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10966 Adjust whitespace in assembly output templates.
10967 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10968 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10969 mode of if_then_else.
10970 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
10971 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10973 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
10974 Joern Rennecke <amylaar@redhat.com>
10975 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10976 (SUBTARGET_CPP_PTR_SPEC): New.
10977 (SUBTARGET_CPP_SPEC): Remove.
10978 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10979 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10980 Fix typo in previous checkin.
10981 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
10982 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10983 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
10984 Alexandre Oliva <aoliva@redhat.com>
10985 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10986 what single FP register can hold for SHmedia target.
10987 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10988 Alexandre Oliva <aoliva@redhat.com>
10989 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10990 Do not split into SUBREG.
10991 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
10992 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10993 and added new functions as specified in SH5 ABI r9.
10994 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
10995 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10997 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
10998 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10999 gen_consttable_4 and gen_consttable_8. Emit multiple labels
11000 and consttable_window_ends.
11001 2001-06-03 Graham Stott <grahams@redhat,com>
11002 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
11003 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
11004 * config/sh/sh.c (print_operand): Handle floating-point pair,
11005 vector and matrix registers.
11006 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
11007 vector modes into account.
11008 * config/sh/sh.md (movv2sf): Split move between registers into
11010 (movv4sf, movv16sf): Introduce insns that get split only after
11012 * config/sh/shmedia.h: Fix Copyright dates.
11013 * config/sh/ushmedia.h: Likewise. Move loop counter
11014 declarations into conditionals that uses them.
11015 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
11017 * config/sh/sshmedia.h: Fix Copyright dates.
11018 (sh_media_PUTCFG): Fix constraints.
11019 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
11020 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
11021 ptrmemfunc_vbit_in_delta for SH5.
11022 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
11023 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
11024 * invoke.texi: Likewise.
11025 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
11026 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
11027 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
11028 GCC_pop_shmedia_regs_nofpu): New global symbols.
11029 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
11030 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
11031 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
11032 compact function with nonlocal labels.
11033 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
11034 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
11035 (initial_elimination_offset): Account for their stack space.
11036 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
11037 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
11038 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
11039 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
11040 least one of the operands to be a register.
11041 (movv2sf): Likewise. Renamed to movv2sf_i.
11042 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
11043 prepare_move_operands() before emitting SHmedia insns.
11044 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
11045 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
11046 Don't save nor initialize r12. Don't mis-align the stack.
11047 Pad the code with a nop.
11048 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
11050 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
11051 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
11052 [__SHMEDIA__]: Implement.
11053 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
11054 * config/sh/sh.md: Set latency of `pt' closer to reality.
11055 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
11056 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
11057 Set move, load and store type attributes.
11058 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
11059 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
11061 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
11062 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
11063 * config/sh/sh.c (sh_media_register_for_return): New function.
11064 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
11065 branch-target register.
11066 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
11067 * config/sh/sh.md (return_media_i): Use any call-clobbered
11068 branch-target register.
11069 (return_media): If r18 wasn't copied in the prologue, copy it
11071 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
11072 Clear class FP0_REGS.
11073 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
11075 2001-03-08 DJ Delorie <dj@redhat.com>
11076 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
11077 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
11078 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
11079 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
11080 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
11081 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
11082 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
11083 return value correctly for call_cookie.
11084 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
11085 * config/sh/crt1.asm (start): Modified so as to call
11086 ___setup_argv_and_call_main.
11087 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
11088 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
11090 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
11091 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
11092 (STRIP_NAME_ENCODING): Use it.
11093 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
11094 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
11095 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
11096 prepare_scc_operands().
11097 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
11098 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
11099 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
11100 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
11101 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
11102 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
11103 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
11104 used in shcompact_incoming_args.
11105 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
11107 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
11109 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
11110 Adjust accordingly.
11111 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
11112 Simplify. Adjust. Add sanity check.
11113 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
11115 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
11117 (udivsi3, divsi3): Use them.
11118 (force_mode_for_call): New insn.
11119 (call, call_value, sibcall_value): Emit it before SHcompact
11121 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
11122 * config/sh/sh.md (call, call_value, sibcall): Make sure the
11123 call cookie is non-NULL before taking its value.
11124 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
11125 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
11126 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
11127 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
11129 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
11130 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
11131 temporary for stack adjusts. Use MACL and MACH to pass
11132 arguments to shcompact_incoming_args.
11133 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
11135 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
11136 (nested_trampoline): Load static chain address into r1.
11137 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
11138 2001-01-07 Alexandre Oliva <aoliva@redhat.com
11139 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
11140 fp_arith_reg_operand().
11141 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
11142 * config/sh/sh.md (casesi): Sign-extend the first two operands,
11143 and use signed compares for them.
11144 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
11145 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
11146 ones properly aligned.
11147 (find_barrier): Account for extra alignment needed for 8-byte wide
11149 (machine_dependent_reorg): Require a label for the second 4-byte
11150 constant after an 8-byte one.
11151 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
11153 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11154 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
11155 last_float when switching float modes.
11156 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
11157 auto-increment for general-purpose registers.
11158 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
11160 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
11162 * config/sh/sh.c (sh_builtin_saveregs): Support using all
11163 registers for varargs.
11164 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
11165 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
11166 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
11167 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
11168 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
11169 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
11170 call_cookie accordingly.
11171 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
11172 (SHCOMPACT_BYREF): Likewise.
11173 (SHCOMPACT_FORCE_ON_STACK): New macro.
11174 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
11175 (sh_builtin_saveregs): Likewise.
11176 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11177 shcompact_incoming_args): Use new shift values. Support
11178 sequences of consecutive and non-consecutive pushes/pops.
11179 * config/sh/sh.md (return): Don't explicitly use PR_REG.
11180 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
11181 * config/sh/sh.h (TEXT_SECTION): Define.
11182 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
11183 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11184 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
11185 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
11186 return values on FPU-enabled SHmedia.
11187 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
11188 FPU-enabled SHmedia.
11189 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
11190 value is returned in a non-FP reg and is not returned by
11192 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
11194 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
11195 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
11196 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
11197 quad-aligned to be passed by callee-copy reference.
11198 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
11199 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
11200 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
11201 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
11202 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
11203 copying low-numbered FP regs to r7 and r8.
11204 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
11205 FP regs to general-purpose regs only if the copy was passed on the
11207 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
11208 copying FP reg to r9.
11209 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
11210 copy FP regs to general-purpose regs only in outgoing calls.
11211 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
11212 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
11214 * config/sh/sh.h (struct sh_args): Document all fields.
11215 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
11216 passed partially on the stack should not consider making
11218 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
11219 stack_regs only for incoming calls. When passing FP args,
11220 make sure there are FP regs available before modifying
11222 (SHCOMPACT_BYREF): Pass double args in general-purpose
11223 registers by reference.
11224 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
11225 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
11226 attempt to generate sibcalls if the caller got any arguments
11228 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
11229 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
11230 to 8-byte boundaries.
11231 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
11232 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
11233 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
11234 stored in the stack.
11235 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
11236 for the offsets to have the ISA bit set.
11237 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
11238 invocation. Use beq instead of bgt to mark end of sequence of
11240 (shcompact_incoming_args): Fix store of r2. Use beq instead of
11241 bgt to mark end of sequence of stores.
11242 * config/sh/sh.c (arith_operand): Don't check whether
11243 CONST_OK_FOR_J for now.
11244 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
11245 instead of long for conversion.
11246 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
11247 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
11248 before passing it to fprintf.
11249 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
11250 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
11251 Call set_fpscr before reading/writing SR.
11252 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
11254 * config/sh/lib1funcs.asm: Add `.align 2' directives before
11256 (FMOVD_WORKS): Define on SH5 with FPU.
11257 (set_fpscr): Define on SH5. Remove separate _fpscr_values
11259 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
11261 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
11262 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
11264 (ia_main_table): Ditto.
11265 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
11266 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11267 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
11268 the definitions from sh.h.
11269 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
11271 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
11272 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
11273 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11274 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
11275 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
11276 Increment LABEL_NUSES.
11278 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
11280 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
11282 * config/sh/elf.h (SIZE_TYPE): Likewise.
11283 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11284 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11285 shcompact_incoming_args): Load switch table addresses using
11287 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11288 (NO_BUILTIN_SIZE_TYPE): Define.
11289 (SIZE_TYPE): Don't define.
11290 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11291 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
11292 definition of __SH5__=32 for -m5-compact-nofpu.
11293 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
11295 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
11296 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
11297 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
11298 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
11299 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
11300 (INSN_LENGTH_ALIGNMENT): Likewise.
11301 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11302 * config/sh/sh.md (call, call_value, sibcall): Simplify
11303 copying of non-branch-target register.
11304 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11305 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
11306 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
11307 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11308 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
11309 floating-point values as structs.
11310 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
11311 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
11312 general-purpose register.
11313 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
11314 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
11315 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
11316 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
11317 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
11318 (ENCODE_SECTION_INFO): Enclose variables and constants in
11320 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
11321 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
11322 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
11323 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
11324 only for LABEL_REFs. For SYMBOL_REFs, prepend
11325 SH_DATALABEL_ENCODING to the symbol name.
11326 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
11328 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
11329 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
11331 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
11332 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
11333 (DATALABEL_REF_P): Don't require CONST.
11334 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
11336 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
11337 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
11339 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
11340 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
11341 Use shallow_copy_rtx and PUT_MODE to change the mode of
11342 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
11343 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
11344 on SHmedia using GENERAL_REGs.
11345 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11346 bltu_media_i): Fix reversion of conditions.
11347 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
11348 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
11349 * config/sh/sh.c (output_far_jump): Save r13 in macl.
11350 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
11351 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
11352 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
11353 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
11354 (GCC_nested_trampoline): Likewise.
11355 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
11356 * config/sh/sh.c (gen_datalabel_ref): Define.
11357 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
11358 (INITIALIZE_TRAMPOLINE): Likewise.
11359 (TRAMPOLINE_ADJUST_ADDRESS): Define.
11360 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
11361 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
11362 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
11363 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
11364 (ic_invalidate): Adjust for SH5.
11365 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
11366 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
11367 _nested_trampoline.
11368 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
11369 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
11370 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
11371 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
11372 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
11373 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
11374 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
11375 * config/sh/sh.c (target_reg_operand): Match only target-branch
11376 registers and pseudos that aren't virtual registers.
11377 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11378 Copy operands that don't match target_reg_operand to pseudos.
11379 (call_media, call_value_media, sibcall_media): Use
11380 target_reg_operand instead of target_operand.
11381 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
11382 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
11383 * config/sh/sh.c (target_reg_operand): Match hardware registers
11384 other than branch-target registers.
11385 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
11386 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
11387 (fpscr_values) [SH5 == 32]: Define.
11388 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
11389 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11390 Handle function addresses coming in SUBREGs.
11391 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
11392 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11393 shcompact_return_trampoline): Use datalabel where appropriate.
11394 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
11395 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
11396 general-purpose register to copy one branch-target register to
11398 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
11399 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
11400 SYMBOL_REFs with VOIDmode.
11401 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11402 bltu_media_i): New insns.
11403 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
11404 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
11405 (INIT_CUMULATIVE_ARGS): Likewise.
11406 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
11407 * machmode.def (V16SFmode): New mode.
11408 * c-common.c (type_for_mode): Support V2SF and V16SF.
11409 * tree.c (build_common_tree_nodes_2): Likewise.
11410 * tree.h (tree_index): Likewise.
11411 * calls.c (emit_call_1): Take args_so_far. Adjust all
11412 callers. Introduce CALL_POPS_ARGS.
11413 * tm.texi (CALL_POPS_ARGS): Document.
11414 * config/sh/crt1.asm: Implement in SHmedia mode.
11415 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
11416 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
11417 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
11418 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
11419 Implement divsi and udivsi in SHmedia mode. Introduce
11420 SHcompact trampolines.
11421 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
11423 (regno_reg_class): Rewrite.
11424 (fp_reg_names): Remove.
11425 (sh_register_names, sh_additional_register_names): New.
11426 (print_operand): Added `u'. Support SUBREGs in addresses.
11427 Add parentheses around shifted CONSTs.
11428 (output_file_start): Output .mode and .abi directives.
11429 (shiftcosts, addsubcosts, multcosts): Adjust.
11430 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
11431 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
11432 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
11433 bytes, not registers. Take into account the need for the
11434 SHcompact incoming args trampoline. Adjust all callers.
11435 (sh_expand_prologue): Take stack_regs into account. Call
11436 incoming args trampoline. Keep stack aligned as per SH5 ABI.
11437 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
11438 stack aligned as per SH5 ABI.
11439 (sh_builtin_saveregs): Support SH5 ABI.
11440 (sh_build_va_list, sh_va_start): Likewise.
11441 (initial_elimination_offset): Take alignment into account.
11442 Compute location of PR according to the SH5 stack frame.
11443 (arith_reg_operand): Reject branch-target registers.
11444 (shmedia_6bit_operand): New.
11445 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
11446 (target_reg_operand): Match DImode only. Accept SUBREGs.
11447 (target_operand): New.
11448 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
11449 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
11450 SIBCALL_REGS for SHmedia.
11451 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
11452 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
11453 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
11454 (TARGET_SWITCHES): New SH5 flags.
11455 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
11456 VALID_REGISTER_P to disable unsupported registers.
11457 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
11458 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
11459 (FUNCTION_ARG_PADDING): Define.
11460 (FASTEST_ALIGNMENT): Adjust.
11461 (SH_REGISTER_NAMES_INITIALIZER): New.
11462 (sh_register_names): Declare.
11463 (DEBUG_REGISTER_NAMES): Define.
11464 (REGISTER_NAMES): Define based on sh_register_names.
11465 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
11466 (sh_additional_register_names): Declare.
11467 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
11468 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
11469 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
11470 (REGISTER_NATURAL_MODE): Define.
11471 (FIRST_PSEUDO_REGISTER): Adjust.
11472 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
11473 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
11474 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
11475 (VECTOR_MODE_SUPPORTED_P): Define.
11476 (REG_CLASS_CONTENTS): Adjust.
11477 (SMALL_REGISTER_CLASSES): Adjust.
11478 (REG_ALLOC_ORDER): Adjust.
11479 (INDEX_REG_CLASS): Adjust.
11480 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
11481 (CONST_OK_FOR_LETTER_P): Adjust.
11482 (PREFERRED_RELOAD_CLASS): Adjust.
11483 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
11484 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
11485 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
11486 (FIRST_FP_PARM_REG): Adjust.
11487 (CALL_POPS_ARGS): Define.
11488 (FUNCTION_ARG_REGNO_P): Adjust.
11489 (struct sh_args): New fields.
11490 (GET_SH_ARG_CLASS): Adjust.
11491 (INIT_CUMULATIVE_ARGS): Adjust.
11492 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
11493 (FUNCTION_ARG_ADVANCE): Adjust.
11494 (FUNCTION_ARG): Adjust.
11495 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
11496 (FUNCTION_ARG_CALLEE_COPIES): Define.
11497 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
11498 (STRICT_ARGUMENT_NAMING): Define.
11499 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
11500 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
11501 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
11502 (SETUP_INCOMING_VARARGS): Adjust.
11503 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
11504 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
11505 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
11506 (SUBREG_OK_FOR_INDEX_P): Adjust.
11507 (EXTRA_CONSTRAINT_S): Update.
11508 (EXTRA_CONSTRAINT_T): New.
11509 (EXTRA_CONSTRAINT): Adjust.
11510 (GO_IF_LEGITIMATE_INDEX): Adjust.
11511 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
11512 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
11513 (MOVE_MAX): Adjust.
11514 (MAX_MOVE_MAX): Define.
11516 (CONST_COSTS): Adjust.
11517 (REGISTER_MOVE_COST): Adjust.
11518 (BRANCH_COST): Adjust.
11519 (TEXT_SECTION_ASM_OP): Adjust.
11520 (DBX_REGISTER_NUMBER): Adjust.
11521 (ASM_OUTPUT_DOUBLE_INT): New.
11522 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
11523 (PREDICATE_CODES): Adjust.
11524 (PROMOTE_MODE): Adjust.
11525 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
11526 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
11527 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
11528 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
11529 (DR0_REG, DR2_REG, DR4_REG): Renumber.
11530 (TR0_REG, TR1_REG, TR2_REG): New.
11531 (XD0_REG): Renumber.
11532 (UNSPEC_COMPACT_ARGS): New.
11533 (type): Added pt and ptabs.
11534 (length): Default to 4 on SHmedia. Default pt length to 12
11535 and 20 on SHmedia32 and SHmedia64, respectively.
11536 (pt): New function unit.
11537 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
11538 Add whitespace between operands of SHmedia instructions.
11540 (adddi3_media, addsi3_media): Adjust constraints.
11541 (subsi3) [SHmedia]: Force operand 1 into a register.
11542 (udivsi3_i1_media, udivsi3_i4_media): New.
11543 (udivsi3): Support SHmedia.
11544 (divsi3_i1_media, divsi3_i4_media): New.
11545 (divsi3): Support SHmedia.
11546 (anddi3, iordi3, xordi3): Adjust constraints.
11547 (zero_extendhidi2, zero_extendqidi2): New.
11548 (extendsidi2, extendhidi2, extendqidi2): New.
11549 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
11550 (pop_e, pop_fpul, pop_4): Likewise.
11551 (movsi_media): Support FP and BT registers.
11552 (movsi_media_nofpu): New. Adjust splits to DImode.
11553 (lduw, ldub): Renamed to zero_extend* above.
11554 (movqi_media): Fix typo.
11555 (movdi_media): Support FP and BT registers.
11556 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
11557 (movdi_const_32bit): New.
11558 (shori_media): Require immediate operand. Use `u' for output.
11559 (movdf_media, movsf_media): Simplified.
11560 (movdf_media_nofpu, movsf_media_nofpu): New.
11561 (movdf, movsf): Adjust
11562 (movv2sf, movv2sf, movv16sf): New.
11563 (beq_media, beq_media_i): Adjust constraints. Don't use
11564 scratch BT register.
11565 (bne_media, bne_media_i): Likewise.
11566 (bgt_media, bgt_media_i): Likewise.
11567 (bge_media, bge_media_i): Likewise.
11568 (bgtu_media, bgtu_media_i): Likewise.
11569 (bgeu_media, bgeu_media_i): Likewise.
11570 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
11571 bunordered): Emit jump insn. Force operands to registers when
11573 (jump_media, jump): Simplify.
11574 (call_compact, call_compact_rettramp): New.
11575 (call_value_compact, call_value_compact_rettramp): New.
11576 (call_media, call_value_media): Simplify.
11577 (sibcall_compact, sibcall_media): New.
11578 (call, call_value): Adjust for SHmedia and SHcompact.
11579 (sibcall, sibcall_value, untyped_call): Likewise.
11580 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
11581 (indirect_jump): Adjust for SHmedia.
11582 (casesi_jump_media): New.
11583 (nop): Re-enable for SHmedia.
11584 (call_site): Restrict to SH1.
11585 (casesi): Adjust for SHmedia.
11586 (casesi_shift_media, casesi_load_media): New.
11587 (return): Explicitly use PR register. Call return trampoline
11589 (return_i): Explicitly use PR register.
11590 (shcompact_return_tramp, shcompact_return_tramp_i): New.
11591 (return_media): Adjust.
11592 (shcompact_incoming_args): New.
11593 (epilogue): Adjust.
11594 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11595 (movstrsi): Disable on SH5.
11596 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
11597 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
11598 (subsf3, subsf3_media): Likewise.
11599 (mulsf3, mulsf3_media, mac_media): Likewise.
11600 (divsf3, divsf3_media): Likewise.
11601 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
11602 (floatsisf2, fux_truncsfsi2): Likewise.
11603 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
11605 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
11606 (cmpunsf_media, cmpsf): Likewise.
11607 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
11608 (abssf2, abssf2_media): Likewise.
11609 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
11610 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
11611 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
11612 (floatsidf2, fix_truncdfsi2): Likewise.
11613 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
11615 (cmpeqdf_media, cmpgtdf_media): Likewise.
11616 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
11617 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
11618 (absdf2, absdf2_media): Likewise.
11619 (extendsfdf2, extendsfdf2_media): Likewise.
11620 (truncsfdf2, truncsfdf2_media): Likewise.
11621 * config/sh/sh64.h: New file.
11622 * config/sh/t-sh64: New file.
11623 * config/sh/shmedia.h: New file.
11624 * config/sh/ushmedia.h: New file.
11625 * config/sh/sshmedia.h: New file.
11626 * configure.in: Added sh64-*-elf.
11627 * configure: Rebuilt.
11628 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
11629 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
11630 (reg_class_from_letter): Use `b' for TARGET_REGS.
11631 (print_operand): Support `%M', `%m', `AND' and
11632 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
11633 (andcosts): Adjust for SHmedia.
11634 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
11636 (target_reg_operand): New function.
11637 * config/sh/sh-protos.h (target_reg_operand): Declare.
11638 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
11639 FP registers on SH5.
11640 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
11642 (TARGET_REGISTER_P): New macro.
11643 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
11644 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
11645 (EXTRA_CONSTRAINT_S): New macro.
11646 (EXTRA_CONSTRAINT): Adjust.
11647 (FLOAT_TYPE_SIZE): Define to 32.
11648 (Pmode): DImode on SHmedia.
11649 (CONST_COSTS): Adjust for SHmedia literals.
11650 (PREDICATE_CODES): Added target_reg_operand.
11651 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
11652 * config/sh/sh.md: Remove all attrs from SHmedia insns.
11653 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
11654 (cmpdi): Accept SHmedia.
11655 (movdicc_false, movdicc_true): New insns.
11656 (movdicc): New expand.
11657 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
11659 (addsi3_media): Match `S' constraint.
11660 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
11661 (negdi2): Expand for SHmedia.
11662 (one_cmpldi2): New expand.
11663 (zero_extendsidi2): Change from expand to insn.
11664 (extendsidi2): Add constraints.
11665 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
11666 LD/ST address. Fix SI immediate loading split.
11667 (movhi_media, movqi_media, lduw, ldub): New insns.
11668 (movhi, movqi): Accept SHmedia.
11669 (shori_media, movdi_media): Relax input constraints. Split
11670 symbolic constants.
11671 (movdf_media, movsf_media): New insn. New split to movdi.
11672 (movdf, movsf): Match on SHmedia.
11673 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
11674 bgeu_media): New insns and splits. New insns with `_i' suffix.
11675 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
11676 (bunordered): New expand.
11677 (jump_compact): Renamed from `jump'.
11678 (jump_media): New insn.
11679 (jump): New expand.
11680 (call_media, call_value_media): New insns.
11681 (call, call_value): Adjust.
11682 (indirect_jump_compact): Renamed from `indirect_jump'.
11683 (indirect_jump_media): New insn.
11684 (indirect_jump): New expand.
11685 (untyped_call, return): Accept SHmedia.
11686 (return_media): New insn.
11687 (prologue, epilogue, blockage): Accept SHmedia.
11688 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11689 (sunordered): New expand.
11690 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
11691 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
11692 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
11693 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
11694 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
11695 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
11696 abssf2_media): New insns.
11697 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11698 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11699 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11700 floatdidf2, floatsidf2_media, fix_truncdfdi2,
11701 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11702 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11703 absdf2_media): New insns.
11704 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11705 (extendsfdf2_media, truncdfsf2_media): New insns.
11706 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
11707 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11708 * config/sh/sh.h (CONST_OK_FOR_J): Document.
11709 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11710 * config/sh/sh.md (adddi3): New expand.
11711 (adddi3_media, adddi3z_media): New insns.
11712 (adddi3_compact): Renamed from adddi3.
11713 (addsi3_media): Use add.l r63 to add constant zero.
11714 (subdi3): New expand.
11715 (subdi3_media): New insn.
11716 (subdi3_compact): Renamed from subdi3.
11717 (mulsidi3): New expand.
11718 (mulsidi3_media): New insn.
11719 (mulsidi3_compact): Renamed from mulsidi3.
11720 (umulsidi3): New expand.
11721 (umulsidi3_media): New insn.
11722 (umulsidi3_compact): Renamed from umulsidi3.
11723 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11724 (ashlsi3, ashrsi3, lshrsi3): Use them.
11725 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11726 (ashldi3, ashrdi3, lshrdi3): Use them.
11727 (zero_extendsidi2): New expand.
11728 (extendsidi2): New insn.
11729 (movsi_media): New insn. Split to movdi to load constants.
11730 (movsi): Enable for shmedia.
11731 (movdi_media): New insn. Use shori_media to load wide constants.
11732 (short_media): New insn.
11733 (movdi): Enable for shmedia.
11734 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
11735 * config/sh/sh.h (CPP_SPEC): Added `m5'.
11736 (SUBTARGET_CPP_SPEC): Added `!m5'.
11737 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11738 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
11739 to all other SH variants.
11740 (TARGET_DEFAULT): Set to SH1_BIT.
11741 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11742 (BITS_PER_WORD): Raise to 64 on shmedia.
11743 (MAX_BITS_PER_WORD): Change to 64.
11744 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11745 (INT_TYPE_SIZE): Keep as 32.
11746 (UNITS_PER_WORD): Raise to 8 on shmedia.
11747 (MIN_UNITS_PER_WORD): Keep as 4.
11748 (POINTER_SIZE): Raise to 64 on shmedia.
11749 (CONST_OK_FOR_J): New macro.
11750 (CONST_OK_FOR_LETTER_P): Use it.
11751 (processor_type): Add PROCESSOR_SH5.
11752 * config/sh/sh.md: Conditionalize all expands, insns and
11753 splits to TARGET_SH1.
11755 (addsi3_compact): Renamed from...
11756 (addsi3): Now an expand.
11757 (addsi3_media, subsi3_media): New insns.
11758 (subsi3): Don't negate constants with SHmedia.
11760 * hooks.c: New file.
11761 * hooks.h: New file.
11762 * Makefile.in (HOOKS_H): New.
11763 (TARGET_DEF_H): Added $(HOOKS_H).
11764 (OBJS): Added hooks.o.
11765 (cfgcleanup.o, bb-reorder.o): Added target.h.
11766 (hooks.o): Added dependencies.
11767 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11768 (TARGET_INITIALIZER): this.
11769 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11770 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11771 * bb-reorder.c: Include target.h.
11772 (reorder_basic_blocks): Skip if cannot modify jumps.
11773 * cfgcleanup.c: Include target.h.
11774 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11776 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11778 * config/mips/mips.md (casesi_internal, casesi_internal_di):
11779 Protect jump delay slot instructions with .set noreorder and
11782 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11784 * config/mips/mips.md (casesi_internal_di): Calculate
11785 the index into the target offset table correctly.
11787 2002-02-08 Richard Henderson <rth@redhat.com>
11789 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11790 * final.c (output_addr_const): Accept and discard SUBREG.
11791 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11792 mark them unknown instead.
11793 (simplify_subtraction): Handle RTX_UNKNOWN.
11794 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11796 2002-02-08 David Edelsohn <edelsohn@gnu.org>
11798 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11800 2002-02-08 Richard Henderson <rth@redhat.com>
11802 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11804 2002-02-08 Andreas Jaeger <aj@suse.de>
11806 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11807 * config/i386/t-linux64: New file.
11809 2002-02-08 Jakub Jelinek <jakub@redhat.com>
11811 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11812 * c-parse.in (compstmt): Clear last_expr_type.
11814 2002-02-07 Richard Henderson <rth@redhat.com>
11816 * loop.c (strength_reduce): Sink final_value when not
11819 2002-02-07 David O'Brien <obrien@FreeBSD.org>
11821 * config/sparc/freebsd.h: Fix mismatched spec {.
11823 2002-02-07 Richard Henderson <rth@redhat.com>
11825 * cfgrtl.c: Include recog.h and insn-config.h.
11826 (keep_with_call_p): Fix general_operand invocation.
11827 * Makefile.in (cfgrtl.o): Update dependencies.
11829 2002-02-07 Kazu Hirata <kazu@hxi.com>
11831 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11832 comment. Accept HImode only if TARGET_H8300.
11834 2002-02-07 Eric Christopher <echristo@redhat.com>
11836 * config/mips/crtn.asm: Cleanup #ifdefs.
11838 2002-02-07 Eric Christopher <echristo@redhat.com>
11840 * config/mips/crti.asm: Add changes for mips16. mips16 uses
11841 register 7 as RA instead of $31.
11842 * config/mips/crtn.asm: Ditto.
11843 * config/mips/mips.c (mips_move_2words): Add case for
11844 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11845 (compute_frame_size): Fix typo.
11846 (save_restore_insns): Ditto. Make documentation about using
11847 register $7 as return register more precise.
11848 (mips_expand_epilogue): Fix comment. Add code to work around not
11849 being able to add to the stack pointer directly.
11850 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11851 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11854 2002-02-07 Tom Rix <trix@redhat.com>
11856 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11857 immediates in ldu and stdu DS opcode field.
11858 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11859 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11860 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11862 2002-02-07 Jeff Sturm <jsturm@one-point.com>
11864 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11865 offset for stack bias.
11867 2002-02-07 H.J. Lu <hjl@gnu.org>
11869 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11871 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
11873 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11875 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
11877 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11878 * i386.c (x86_order_regs_for_local_alloc): New global function.
11879 * i386.h (REG_ALLOC_ORDER): CLeanup.
11880 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11882 2002-02-07 Richard Henderson <rth@redhat.com>
11884 PR optimization/2463
11885 * alias.c (find_base_value): Recall base values for fixed hard regs.
11886 * loop.c (loop_regs_update): Don't use single_set on non-insns.
11888 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
11890 * config/mips/mips.md (define_delay) [mips16]: Adjust required
11893 2002-02-06 Richard Henderson <rth@redhat.com>
11896 * stmt.c (resolve_operand_name_1): Take more care with mixed
11897 named and unnamed operands.
11899 2002-02-06 Janis Johnson <janis187@us.ibm.com>
11900 Jan Hubicka <jh@suse.cz>
11902 * loop.c (remove_constant_addition): Avoid clobbering a shared
11905 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11907 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11908 * config/s390/t-linux64: New file.
11909 * config/s390/libgcc-glibc.ver: New file.
11911 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11913 * config/s390/linux64.h: Delete file.
11914 * config/s390/s390x.h: New file.
11915 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11916 as target header file.
11917 * config/s390/linux.h (TARGET_VERSION): Define depending on
11918 DEFAULT_TARGET_64BIT.
11919 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11920 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11921 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11922 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11923 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11924 (EXTRA_SPEC): New define.
11925 * config/s390/s390.h (TARGET_VERSION): Define depending on
11926 DEFAULT_TARGET_64BIT.
11927 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11929 2002-02-06 Jason Merrill <jason@redhat.com>
11931 * c-decl.c (finish_function): Warn about a non-void function with
11932 no return statement and no abnormal exit.
11933 (current_function_returns_abnormally): New variable.
11934 (start_function): Clear it.
11935 (struct c_language_function): Add returns_abnormally.
11936 (push_c_function_context): Save it.
11937 (pop_c_function_context): Restore it.
11938 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11939 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11940 an explicit return type.
11941 * c-tree.h: Declare current_function_returns_abnormally.
11942 (C_FUNCTION_IMPLICIT_INT): New macro.
11943 * c-typeck.c (build_function_call): Set it.
11944 (c_expand_return): Set current_function_returns_value even if the
11945 value is erroneous.
11947 2002-02-06 Jakub Jelinek <jakub@redhat.com>
11950 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11951 unsafe for reevaluation.
11953 2002-02-06 Jakub Jelinek <jakub@redhat.com>
11956 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11957 EXPR_STMT, but COMPOUND_STMT, recurse into it.
11959 2002-02-06 Richard Henderson <rth@redhat.com>
11961 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11962 be a general_operand. Dest for function value must be a pseudo.
11964 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11966 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11967 as SYMBOL_REFs from the constant pool.
11969 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
11971 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11972 passed by invisible reference.
11974 2002-02-05 Richard Henderson <rth@redhat.com>
11976 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11978 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
11980 Implement using "base addresses" in insn operands as default.
11981 * config/mmix/mmix.c (mmix_conditional_register_usage): if
11982 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11983 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11984 used to read the rtx value.
11985 (mmix_target_asm_function_epilogue): Fix spacing.
11986 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11987 (mmix_legitimate_address): Ditto.
11988 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11989 should be loaded with a GETA insn. Don't allocate needless extra
11990 char for nul termination and fix misleading comment.
11991 (mmix_print_operand_address): Handle constants if
11992 TARGET_BASE_ADDRESSES.
11993 (mmix_output_register_setting): Use base addressing if
11994 TARGET_BASE_ADDRESSES and the number of insns is 3.
11995 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11996 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11997 to use R as constraint, add LDA to match s.
11998 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11999 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
12000 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
12001 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
12002 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
12003 order with other fixed registers.
12004 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
12005 other parameter/call-clobbered registers.
12006 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
12007 -mbase-addresses, -mno-base-addresses.
12008 (MMIX Options): Ditto.
12010 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12012 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
12014 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
12016 * config/rs6000/altivec.h: Change elem to _S_elem.
12018 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
12020 * config/netbsd.h (WCHAR_TYPE): Define.
12021 (WCHAR_TYPE_SIZE): Ditto.
12022 (WINT_TYPE): Ditto.
12023 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
12024 (WCHAR_UNSIGNED): Ditto.
12025 (WCHAR_TYPE_SIZE): Ditto.
12026 (WINT_TYPE): Ditto.
12027 * config/arm/netbsd.h: Likewise.
12028 * config/i386/netbsd-elf.h: Likewise.
12029 * config/i386/netbsd.h: Likewise.
12030 * config/m68k/netbsd-elf.h: Likewise.
12031 * config/m68k/netbsd.h: Likewise.
12032 * config/ns32k/netbsd.h: Likewise.
12033 * config/sparc/netbsd.h: Likewise.
12034 * config/vax/netbsd.: Likewise.
12036 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12038 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
12039 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
12040 (TARGET_INITIALIZER): this.
12041 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
12042 (BITFIELD_NBYTES_LIMITED): Markup fix.
12043 * tree.h (default_ms_bitfield_layout_p): Declare.
12044 (record_layout_info): Added prev_field.
12045 * tree.c (default_ms_bitfield_layout_p): New fn.
12046 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
12047 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
12048 * stor-layout.c: Include target.h.
12049 (start_record_layout): Initialize prev_field.
12050 (place_field): Handle MS bit-field layout, and disregard
12051 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
12052 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
12053 * Makefile.in (stor-layout.o): Adjust dependencies.
12055 2002-02-05 Jason Merrill <jason@redhat.com>
12057 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
12059 2002-02-05 Andreas Jaeger <aj@suse.de>
12061 * crtstuff.c: Fix comments.
12063 2002-02-05 Richard Henderson <rth@redhat.com>
12066 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
12067 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
12070 * config/mips/mips.c (function_arg): Handle TImode.
12071 (function_arg_advance): Likewise.
12073 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12075 * config/rs6000/altivec.h (vec_step_help): Rename to
12078 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12080 * config/rs6000/altivec.h: Fix typos.
12082 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
12084 * config/arm/netbsd.h: Correct a comment.
12086 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12088 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
12089 building void typed builtins.
12091 * config/rs6000/altivec.h (vec_ld*): Fix typos.
12092 (vec_step): Implement for C++.
12094 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12096 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
12098 2002-02-04 Richard Henderson <rth@redhat.com>
12100 * combine.c (nonzero_bits): Re-introduce special case for
12101 sp/fp/ap wrt REGNO_POINTER_ALIGN.
12103 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12105 * doc/extend.texi: Warn about unsupported usage of altivec
12108 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
12109 (altivec_predicate_*): New.
12111 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
12112 Add C++ version of vec_*() functions.
12114 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
12115 (bdesc_2arg): Remove altivec predicates.
12116 (altivec_expand_builtin): Handle predicates.
12117 (altivec_init_builtins): Handle predicates.
12118 (altivec_expand_predicate_builtin): New.
12120 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12122 * pa.c (DO_FRAME_NOTES): Move forward.
12123 (store_reg): Revise handling of frame notes.
12124 (load_reg): Likewise.
12125 (set_reg_plus_d): Likewise.
12126 (hppa_expand_prologue): Likewise.
12127 (hppa_expand_epilogue): Likewise.
12129 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12131 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
12133 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12135 PR c/4475, c++/3780:
12136 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
12137 * c-common.h (SWITCH_TYPE): Define.
12138 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
12139 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
12140 Rename spareness variable to sparseness.
12141 (expand_end_case_type): Renamed from expand_end_case, use orig_type
12142 if non-NULL instead of TREE_TYPE (orig_index).
12143 * tree.h (expand_end_case_type): Renamed from expand_end_case.
12144 (expand_end_case): Define using expand_end_case_type.
12145 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
12146 to expand_end_case_type.
12147 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
12149 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12151 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
12152 (BIGGEST_ALIGNMENT): Change to 128.
12154 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12156 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
12158 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12160 * pa.md (call_internal_reg_64bit): Remove unused variable.
12162 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
12164 * config/arm/arm.h (machine_function): Add uses_anonymous_args
12166 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
12167 * config/arm/arm.c (current_function_anonymous_args): Delete,
12168 replace uses with cfun->machine->uses_anonymous_args.
12169 (arm_reorg): Do not reset uses_anonymous_args.
12171 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
12172 any geenral register.
12174 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
12176 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
12179 2002-02-04 Richard Henderson <rth@redhat.com>
12181 * combine.c (force_to_mode): Remove STACK_BIAS code.
12182 (nonzero_bits): Likewise. Replace sp/fp special case with
12183 REGNO_POINTER_ALIGN.
12185 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
12186 (HARD_FRAME_POINTER_REGNUM): New.
12187 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
12188 (FIXED_REGS, CALL_USED_REGS): Update.
12189 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
12190 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
12191 (HARD_REGNO_NREGS): Update for SFP.
12192 (STACK_POINTER_OFFSET): Include bias here ...
12193 (FIRST_PARM_OFFSET): ... not here.
12194 (STACK_BIAS): Remove.
12195 (INIT_EXPANDERS): New.
12196 (STARTING_FRAME_OFFSET): Do not include bias.
12197 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
12198 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
12199 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
12200 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
12201 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
12202 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
12203 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
12204 (MUST_SAVE_REGISTER): Likewise.
12205 (sparc_flat_function_prologue): Likewise.
12206 (sparc_flat_function_epilogue): Likewise.
12207 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
12208 (sparc_init_modes): SFP is GENERAL_REGS.
12209 (sparc_builtin_saveregs): SFP does not have bias applied.
12211 2002-02-04 Richard Henderson <rth@redhat.com>
12213 * config/alpha/alpha.c (current_function_is_thunk): Don't check
12214 current_function_is_thunk.
12215 (alpha_sa_mask): Distinguish between current_function_is_thunk
12216 called from ASM_OUTPUT_MI_THUNK and not.
12217 (alpha_does_function_need_gp): Thunks always need gp.
12218 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12219 (alpha_output_mi_thunk_osf): New.
12220 * config/alpha/alpha-protos.h: Update.
12221 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
12223 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
12225 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
12226 function types, not when they're taken away.
12228 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
12230 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
12231 CODE_LABEL and jump table when replacing a table jump with a
12234 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12236 * config/s390/s390-protos.h (legitimize_la_operand,
12237 s390_secondary_input_reload_class, s390_plus_operand,
12238 s390_expand_plus_operand): Add prototypes.
12240 config/s390/s390.c (s390_secondary_input_reload_class,
12241 s390_plus_operand, s390_expand_plus_operand): New functions.
12243 (struct s390_address): New member 'pointer'.
12244 (s390_decompose_address): Compute it.
12245 (legitimate_la_operand_p): Use it.
12246 (legitimize_la_operand): New function.
12247 (movti, movdi, movdf splitters): Call it.
12249 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
12250 (PREDICATE_CODES): Add s390_plus_operand.
12252 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
12253 (la_ccclobber): Allow GENERAL_REGS as output operand.
12255 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
12256 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
12257 (*la_64, *la_31, reload_indi, reload_insi): ... these.
12259 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12261 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
12262 register names for regular asm () construct.
12264 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12266 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
12269 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12271 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
12274 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
12276 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
12277 constant pool to be identical by string address and index.
12279 2002-02-04 Anthony Green <green@redhat.com>
12281 * output.h (SECTION_OVERRIDE): Define.
12282 * varasm.c (named_section): Obey SECTION_OVERRIDE.
12284 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
12286 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
12287 by existing arm*-*-netbsd* (a.out) target.
12288 (ns32k-*-netbsdelf*): Likewise.
12289 (sparc-*-netbsdelf*): Likewise.
12290 (vax-*-netbsdelf*): Likewise.
12292 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
12294 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
12295 headers and libobjc headers.
12297 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
12299 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
12300 (_mingw.h): Remove duplicate include.
12302 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
12304 * config.gcc: Set cpu_type to m68k for 68010, as well.
12305 (m68010-*-netbsdelf*): New...
12306 (m68k*-*-netbsdelf*): ...targets.
12307 * config/m68k/netbsd-elf.h: New file.
12309 2002-02-02 Kazu Hirata <kazu@hxi.com>
12311 * config/h8300/h8300.c (hand_list): Move inside function_arg.
12313 2002-02-02 Kazu Hirata <kazu@hxi.com>
12315 * config/h8300/h8300.c (h8_push_ops): Move inside
12317 (h8_pop_ops): Likewise.
12318 (h8_move_ops): Likewise.
12320 2002-02-02 Kazu Hirata <kazu@hxi.com>
12322 * config/h8300/h8300.c (os_task): Make it static.
12323 (monitor): Likewise.
12324 (pragma_saveall): Likewise.
12326 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
12328 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
12329 constant is a valid sign-extension for Pmode.
12331 2002-02-02 Kazu Hirata <kazu@hxi.com>
12333 * config/h8300/h8300.c: Fix formatting.
12335 2002-02-02 Kazu Hirata <kazu@hxi.com>
12337 * config/h8300/h8300.md: Fix formatting.
12339 2002-02-02 Kazu Hirata <kazu@hxi.com>
12341 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
12342 predicates of operands[1]. Split the patterns for each
12345 2002-02-02 Kazu Hirata <kazu@hxi.com>
12347 * config/h8300/h8300.md (xor patterns): Tighten the predicates
12348 of operands[1] to register_operand.
12350 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
12352 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
12353 * cpphash.c (_cpp_init_hashtable): Similarly.
12354 * cppinit.c (cpp_create_reader): Default the signed_char flag.
12355 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
12356 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
12357 (cpp_handle_option): Handle the new options.
12358 * cpplex.c (cpp_interpret_charconst): Use new flag.
12359 * cpplib.h (struct cpp_options): New member signed_char.
12360 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
12361 (cpp_options): Handle -fsigned-char and -funsigned-char.
12362 (static_specs): Remove signed_char_spec.
12363 (do_spec1): Don't handle %c.
12364 * system.h: Poison SIGNED_CHAR_SPEC.
12365 * tradcif.y (yylex): Use flag_signed_char.
12366 * tradcpp.h (flag_signed_char): New.
12367 * tradcpp.c (flag_signed_char): New.
12368 (main): Handle new command-line options.
12369 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
12371 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
12372 * avr/avr.h: Remove old comments.
12373 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
12374 (CC1_SPEC): Pass -fsigned-char if -mic*.
12375 (SIGNED_CHAR_SPEC): Remove.
12377 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
12379 2002-02-01 Eric Christopher <echristo@redhat.com>
12381 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
12382 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
12383 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
12384 (ASM_OUTPUT_REG_POP): Ditto.
12386 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
12388 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
12391 2002-02-02 Jakub Jelinek <jakub@redhat.com>
12393 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
12395 2002-02-02 Jakub Jelinek <jakub@redhat.com>
12398 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
12401 2002-02-01 Janis Johnson <janis187@us.ibm.com>
12403 * cfganal.c: Include tm_p.h.
12404 (keep_with_call_p): Fix the test that determines if a register holds
12405 the return value of a call.
12407 2002-02-01 DJ Delorie <dj@redhat.com>
12409 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
12410 we are given conflicting registers, switch to the other one we
12411 had allocated for us.
12412 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
12413 as TImode so we know when the "other" register is available.
12415 2002-02-01 David O'Brien <obrien@FreeBSD.org>
12417 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
12420 2002-02-01 Janis Johnson <janis187@us.ibm.com>
12422 * cfganal.c (keep_with_call_p): New function.
12423 (flow_call_edges_add): Prevent splitting a block between a call and
12424 a single-set instruction that should be kept in the same block.
12426 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
12428 * doc/install.texi (avr): Update outdated URL.
12430 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
12432 * config/stormy16/stormy16.md (pushqi): New.
12436 (movhi): Remove stack operands.
12438 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
12439 nonimmediate_nonstack_operand.
12440 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
12442 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
12445 2002-01-31 Jason Merrill <jason@redhat.com>
12447 * Makefile.in (c-parse.c): Handle .output file.
12448 * objc/Make-lang.in (objc-parse.c): Likewise.
12450 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
12452 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
12453 the -me[lb] option is given. Don't output the default flag
12456 2002-01-31 Zack Weinberg <zack@codesourcery.com>
12458 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
12459 the primary source file; this has not been done yet.
12460 * c-decl.c (c_expand_body): Reset input_filename from
12461 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
12463 2002-01-31 Kazu Hirata <kazu@hxi.com>
12465 * rtlanal.c (subreg_regno_offset): Do not use
12466 SUBREG_REGNO_OFFSET.
12467 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
12468 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
12470 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
12472 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
12473 version rather than GNATS version in --version output.
12475 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
12477 * ifcvt.c (noce_process_if_block): Make a copy of the destination
12478 when copying back from a temporary.
12480 2002-01-30 Richard Henderson <rth@redhat.com>
12482 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
12483 and new_dest are the same.
12485 2002-01-30 Richard Henderson <rth@redhat.com>
12488 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
12489 * rtl.c (note_insn_name): Update.
12490 * emit-rtl.c (remove_unnecessary_notes): Kill it.
12491 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
12492 to perform loop rotation.
12493 (expand_exit_loop_top_cond): New.
12494 * tree.h (expand_exit_loop_top_cond): Declare it.
12495 * c-semantics.c (genrtl_while_stmt): Use it.
12496 (genrtl_for_stmt): Likewise.
12498 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
12500 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
12501 arguments to 64-bit boundaries on 64-bit ABIs.
12503 2002-01-30 Steve Ellcey <sje@cup.hp.com>
12505 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
12507 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
12509 * c-decl.c (grokdeclarator): Handle type being a typedef for an
12512 2002-01-30 David O'Brien <obrien@FreeBSD.org>
12514 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
12515 * config/sparc/sparc_bi.h: Remove file.
12516 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
12518 2002-01-30 Richard Henderson <rth@redhat.com>
12520 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
12522 2002-01-30 Zack Weinberg <zack@codesourcery.com>
12524 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
12526 2002-01-30 Jason Merrill <jason@redhat.com>
12528 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
12529 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
12530 (reg_save): Use DW_CFA_offset_extended_sf instead.
12532 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
12534 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12536 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
12539 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
12541 * rs6000.md ("*call_value_local32"): Remove constraints.
12542 ("*call_value_local64"): Same.
12543 ("*call_value_indirect_nonlocal_aix32"): Same.
12544 ("*call_value_nonlocal_aix32"): Same.
12545 ("*call_value_indirect_nonlocal_aix64"): Same.
12546 ("*call_value_nonlocal_aix64"): Same.
12547 ("*call_value_nonlocal_sysv"): Same.
12549 2002-01-29 Richard Henderson <rth@redhat.com>
12551 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
12553 2002-01-29 Richard Henderson <rth@redhat.com>
12555 * expr.c (force_operand): Ignore flag_pic for detecting pic
12557 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
12558 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
12559 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
12560 instead of open-coded loop.
12561 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
12562 be fixed when in use.
12564 2002-01-29 Richard Henderson <rth@redhat.com>
12566 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
12567 * sched-rgn.c (propagate_deps): Update them.
12568 * sched-deps.c (sched_analyze_insn): Update them. Flush the
12569 clobbers list when either gets too long.
12571 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12573 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
12574 and INDEX_REGS the same as GENERAL_REGS.
12575 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
12577 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12579 * tree.c (build_nonstandard_integer_type): Correct prototype.
12581 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
12583 * config/s390/s390.md (movstrsico, movstrdix_64,
12584 movstrsix_31): Remove, replace by ...
12585 (movstrdi_short, movstrsi_short, movstrdi_long,
12586 movstrsi_long): ... these. New.
12587 (movstrdi, movstrsi): Adapt.
12589 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
12590 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
12591 Remove unnecessary CC clobber.
12592 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
12593 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
12595 (divmoddi4): Don't partially initialize TImode register.
12597 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
12599 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
12601 2002-01-29 Richard Henderson <rth@redhat.com>
12603 * flow.c (print_rtl_and_abort): Remove.
12604 (print_rtl_and_abort_fcn): Remove.
12605 (verify_local_live_at_start): Use dump_bb instead.
12606 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
12607 (verify_wide_reg_1): Return 2 on mode test failure.
12609 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12611 PR c/3325, c/3326, c/2511, c/3347
12612 * c-decl.c (enum_decl_context): Remove BITFIELD.
12613 (grokdeclarator): Take bitfield width as an input.
12614 Ensure bitfields are given the correct type. Perform
12615 bitfield width validation with build_bitfield_integer_type
12616 rather than waiting for finish_struct.
12617 (grok_typename, grok_typename_in_parm_context, start_decl,
12618 push_parmdecl, grokfield, start_function): Update calls to
12620 (build_bitfield_integer_type): New function.
12621 (finish_struct): Move bitfield validation to grokdeclarator
12622 and build_bitfield_integer_type.
12623 * tree.c (build_nonstandard_integer_type): New function.
12624 * tree.h (build_nonstandard_integer_type): New prototype.
12626 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
12628 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12631 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
12632 don't ignore unrecognized -W* options.
12633 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
12634 * cpplib.h (cpp_handle_option): Adjust prototype.
12635 * c-decl.c (c_decode_options): Pass 0 as last argument to
12639 * gcc.c (cpp_unique_options): Split from cpp_options.
12640 (cpp_options): Source cpp_unique_options.
12641 (default_compilers): Use cpp_unique_options instead of cpp_options
12642 when used together with cc1_options.
12643 (static_specs): Add cpp_unique_options.
12644 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
12645 when used together with cc1_options.
12647 2002-01-29 Kazu Hirata <kazu@hxi.com>
12649 * config/h8300/h8300-protos.h: Update the prototype of
12651 * config/h8300/h8300.c (output_a_shift): Remove an unused
12652 argument 'insn'. Remove redundant code.
12653 * config/h8300/h8300.md: Adust to the new prototype of
12656 2002-01-29 Kazu Hirata <kazu@hxi.com>
12658 * config/h8300/h8300-protos.h: Update the prototypes of
12659 emit_a_rotate and expand_a_rotate.
12660 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
12661 first argument to 'enum rtx_code'.
12662 (expand_a_rotate): Likewise.
12664 2002-01-28 Kazu Hirata <kazu@hxi.com>
12666 * config/h8300/h8300-protos.h: Update the prototype of
12668 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
12670 * config/h8300/h8300.md: Adjust to the new prototype.
12672 2002-01-28 Kazu Hirata <kazu@hxi.com>
12674 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
12677 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12679 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
12680 is a fixed register before returning pic_offset_table_rtx.
12681 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
12682 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
12684 2002-01-28 Jason Merrill <jason@redhat.com>
12686 * dwarf2.h: Sync with src version.
12688 2002-01-28 Paul Koning <pkoning@equallogic.com>
12690 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
12691 BT_FN_VOID_PTR_VAR.
12692 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
12693 * doc/extend.texi (__builtin_prefetch): Update documentation:
12694 first argument is now const void ptr.
12696 2002-01-28 Kazu Hirata <kazu@hxi.com>
12698 * config/h8300/h8300-protos.h: Remove an unused prototype.
12700 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
12702 * toplev.c (lang_independent_init): Round up identifier size.
12704 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
12706 * config.gcc: Revert previous change.
12708 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
12710 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12712 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
12714 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12715 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
12716 other non-elf netbsd config frags.
12717 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12718 collect2 will does that.
12719 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12720 shared-lib frobbing will work.
12722 2002-01-28 Kazu Hirata <kazu@hxi.com>
12724 * config/h8300/h8300.h: Fix formatting.
12725 * config/h8300/h8300.md: Likewise.
12727 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
12729 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12730 the old, removed AAA_standards fix.
12731 * fixinc/fixincl.x: Rebuilt.
12733 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
12735 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12736 atexit call in crtbegin, hooked in after call to frame_dummy;
12737 register EH before registering __fini__start.
12739 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
12741 * config/rs6000/altivec.h: Remove spurious semicolons.
12743 2002-01-27 Kazu Hirata <kazu@hxi.com>
12745 * config/h8300/h8300.md: Replace dead bit extraction patterns
12746 with ones that work.
12748 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12750 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12751 if not STRICT_ALIGNMENT.
12752 * rtl.h (MEM_ALIGN): Likewise.
12754 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
12756 * doc/invoke.texi (-fdump-translation-unit): Revert this
12757 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
12759 2002-01-27 Kazu Hirata <kazu@hxi.com>
12761 * config/h8300/h8300.md (define_constants): New.
12762 (anonymous patterns) Use defined constants appropriately.
12764 2002-01-27 Kazu Hirata <kazu@hxi.com>
12766 * config/h8300/h8300.c (function_arg): Remove redundant code.
12768 2002-01-26 Richard Henderson <rth@redhat.com>
12770 * sched-deps.c (reg_pending_uses_head): New.
12771 (reg_pending_barrier): Rename from reg_pending_sets_all.
12772 (find_insn_list): Don't mark inline.
12773 (find_insn_mem_list): Remove.
12774 (add_dependence_list, add_dependence_list_and_free): New.
12775 (flush_pending_lists): Replace only_write param with separate
12776 for_read and for_write parameters. Update all callers. Use
12777 add_dependence_list_and_free.
12778 (sched_analyze_1): Do not add reg dependencies here; just set
12779 the pending bits. Use add_dependence_list.
12780 (sched_analyze_2): Likewise.
12781 (sched_analyze_insn): Replace schedule_barrier_found with
12782 reg_pending_barrier. Add all dependencies for pending reg
12783 uses, sets, and clobbers.
12784 (sched_analyze): Don't add reg dependencies for calls, just
12785 set pending bits. Use regs_invalidated_by_call. Treat
12786 sched_before_next_call as a normal list, not a fake insn.
12787 (init_deps): No funny init for sched_before_next_call.
12788 (free_deps): Free pending mems lists. Don't zero reg_last.
12789 (init_deps_global): Init reg_pending_uses.
12790 (finish_deps_global): Free it.
12791 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
12792 (find_insn_mem_list): Remove.
12793 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12794 (propagate_deps): Use them. Zero temp mem lists.
12796 2002-01-26 Richard Henderson <rth@redhat.com>
12798 * Makefile.in (CRTSTUFF_CFLAGS): New.
12799 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12800 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12801 crtstuff.c instead of alpha assembly version.
12802 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12803 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
12804 not FORCE_{INIT,FINI}_SECTION_ALIGN.
12805 (__do_global_dtors_aux): Mark used.
12806 (frame_dummy, __do_global_ctors_aux): Mark used.
12807 (fini_dummy, init_dummy): Remove.
12809 * config/alpha/crtbegin.asm: Remove file.
12810 * config/alpha/crtend.asm: Remove file.
12811 * config/alpha/t-crtbe: Remove file.
12812 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12813 (LINK_EH_SPEC): New.
12815 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12816 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
12817 calling constructors.
12818 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12820 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12821 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12822 CRT_END_INIT_DUMMY hack.
12823 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12824 FORCE_{INIT,FINI}_SECTION_ALIGN.
12826 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12827 FORCE_{INIT,FINI}_SECTION_ALIGN.
12829 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12830 invocation sequence.
12831 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12833 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12834 (FORCE_CODE_SECTION_ALIGN): New.
12836 2002-01-26 Richard Henderson <rth@redhat.com>
12838 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12840 2002-01-26 Richard Henderson <rth@redhat.com>
12842 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12843 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12845 2002-01-26 Kazu Hirata <kazu@hxi.com>
12847 * config/h8300/h8300.md: Remove bit extraction patterns that
12848 cannot be triggered.
12849 Restrict each bit extraction pattern to a variant on which the
12852 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
12854 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12856 2002-01-26 Kazu Hirata <kazu@hxi.com>
12858 * config/h8300/h8300.md: Remove bit test patterns that cannot
12860 Restrict each bit test pattern to a variant on which the
12863 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12865 * builtins.c (expand_builtin_strncat): Remove redundant check for
12868 2002-01-25 David O'Brien <obrien@FreeBSD.org>
12870 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12872 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12875 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
12877 * dbxout.c (dbxout_init): Use assemble_name rather than just
12878 stripping off the first character.
12879 (dbxout_source_file): Likewise.
12881 2002-01-25 DJ Delorie <dj@redhat.com>
12883 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12884 using rtx_equal_p, not by comparing pointers.
12886 2002-01-25 Steve Ellcey <sje@cup.hp.com>
12888 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12889 for PIC_OFFSET_TABLE_REGNUM.
12890 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12892 2002-01-25 David O'Brien <obrien@FreeBSD.org>
12894 * config.gcc (x86_64-*-freebsd*): New target.
12895 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12897 (i[34567]86-*-freebsd*): Don't include svr4.h.
12898 * config/i386/freebsd64.h: New file.
12900 2002-01-25 Douglas B Rupp <rupp@gnat.com>
12902 * config/alpha/x-vms (version): Make static.
12904 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12905 in previous checkin.
12907 * Makefile.in (install-headers-cp): New target.
12908 * config.gcc (alpha-dec-*vms*): Install headers with
12911 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
12913 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12916 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12918 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12919 of compare_tree_int.
12920 (expand_builtin_strncat): Likewise.
12921 * c-decl.c (finish_struct): Use tree_low_cst.
12922 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12923 * tree.c (compare_tree_int): Likewise.
12925 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
12927 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12928 adjustments even if they are implemented by more than two insns.
12930 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
12932 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12933 * df.h (struct ref): Kill B.
12934 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12936 * basic-block.h (PROP_EQUAL_NOTES): New flag.
12937 * flow.c (propagate_one_insn): Use it.
12938 (mark_used_regs): Handle NIL.
12940 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
12942 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12945 2002-01-25 David Edelsohn <edelsohn@gnu.org>
12947 * rs6000.md (prefetch): Make address V4SI mode so that the address
12948 is restricted to legitimate form for instruction.
12950 2002-01-25 Bob Wilson <bob.wilson@acm.org>
12952 * doc/install.texi (xtensa-*-elf): New target.
12953 (xtensa-*-linux*): New target.
12954 * doc/contrib.texi: Add myself.
12956 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
12958 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12959 purpose register to hold an SImode (or smaller) value.
12961 2002-01-25 Jakub Jelinek <jakub@redhat.com>
12963 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12965 * crtstuff.c: Likewise.
12967 2002-01-25 Kazu Hirata <kazu@hxi.com>
12969 * config/h8300/h8300.md (negation patterns): Tighten
12970 predicates to register_operand.
12972 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
12974 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12977 * builtins.c (expand_builtin_prefetch): Same.
12979 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12981 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12984 2002-01-24 Kazu Hirata <kazu@hxi.com>
12986 * config/h8300/h8300.c (print_operand): Remove support for
12987 operand character 'A'.
12988 * config/h8300/h8300.md (three anonymous patterns): Replace
12989 operand character 'A' with either 'T' or 'S'.
12991 2002-01-24 Kazu Hirata <kazu@hxi.com>
12993 * config/h8300/h8300.c (print_operand): Remove support for
12994 operand character 'U'.
12996 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
12998 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
13000 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
13002 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
13003 values to be assigned to the stack pointer.
13005 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
13007 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
13008 to const_double needs to be done right for big-endian systems.
13010 2002-01-24 Jason Merrill <jason@redhat.com>
13013 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
13014 to can_throw_internal.
13016 2002-01-23 Richard Henderson <rth@redhat.com>
13018 * fold-const.c (fold): Change UINT_MAX test to check vs precision
13019 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
13021 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13023 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
13024 (symGOT2reg): Use them, then set as GOT value as unchanging.
13025 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
13026 as a temporary, if possible.
13027 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
13028 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
13030 2002-01-23 Kazu Hirata <kazu@hxi.com>
13032 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
13033 accept to accept 0x80 as operands[2].
13035 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13037 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
13039 2002-01-23 Richard Henderson <rth@redhat.com>
13041 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
13043 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
13045 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
13046 (parmlist_or_identifiers_1): Verify that only a parmlist follows
13049 2002-01-23 Richard Henderson <rth@redhat.com>
13051 * expr.c (move_by_pieces_1): Extend size before negation.
13053 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
13054 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
13055 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
13056 * config/m68k/t-m68kelf: Likewise.
13058 2002-01-23 Bob Wilson <bob.wilson@acm.org>
13060 * config/xtensa/elf.h: New file.
13061 * config/xtensa/lib1funcs.asm: New file.
13062 * config/xtensa/lib2funcs.S: New file.
13063 * config/xtensa/linux.h: New file.
13064 * config/xtensa/t-xtensa: New file.
13065 * config/xtensa/xtensa-config.h: New file.
13066 * config/xtensa/xtensa-protos.h: New file.
13067 * config/xtensa/xtensa.c: New file.
13068 * config/xtensa/xtensa.h: New file.
13069 * config/xtensa/xtensa.md: New file.
13070 * config.gcc (xtensa-*-elf*): New target.
13071 (xtensa-*-linux*): New target.
13072 * cse.c (canon_hash): Compare rtx pointers instead of register
13073 numbers. This is required for the Xtensa port.
13074 * integrate.c (copy_insn_list): Handle case where the static
13075 chain is in memory and the memory address has to be copied to
13077 * doc/invoke.texi (Option Summary): Add Xtensa options.
13078 (Xtensa Options): New node.
13079 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
13081 2002-01-23 Zack Weinberg <zack@codesourcery.com>
13083 * diagnostic.c (internal_error): Do ICE suppression only
13084 when ENABLE_CHECKING is not defined.
13086 * c-typeck.c (require_complete_type): Return error_mark_node
13087 if type is error_mark_node.
13089 2002-01-23 Janis Johnson <janis187@us.ibm.com>
13091 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
13092 -Os and issue a warning.
13094 2002-01-23 Zack Weinberg <zack@codesourcery.com>
13096 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
13097 current (lack of) need for host configuration by hand.
13099 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
13100 references. Documentation of some target macros moved from
13101 hostconfig.texi to tm.texi.
13103 2002-01-23 Will Cohen <wcohen@redhat.com>
13105 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
13108 2002-01-23 Kazu Hirata <kazu@hxi.com>
13110 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
13113 2002-01-23 Jason Merrill <jason@redhat.com>
13115 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
13117 * function.c (assign_parms): Don't put args of inline functions
13118 into registers when not optimizing.
13120 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
13122 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
13123 (prologue_use): New pattern.
13124 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
13125 preference to gen_rtx_USE.
13126 (thumb_expand_prologue): Use gen_prologue_use in preference to
13128 (thumb_expand_epilogue): Use gen_prologue_use in preference to
13131 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
13133 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
13135 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
13138 * doc/extend.texi: Correct documentation of __alignof__.
13140 2002-01-22 Zack Weinberg <zack@codesourcery.com>
13142 * params.h: Rename arguments of DEFPARAM so that it will be
13143 recognized as a translation keyword.
13145 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13147 * extend.texi: Document altivec functions.
13148 Fix N-bit adjectives in X86 builtin documentation.
13150 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
13152 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
13153 auto_inc_dec values.
13155 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
13157 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
13159 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
13161 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
13163 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
13165 2002-01-22 Richard Henderson <rth@redhat.com>
13167 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
13168 copy_insn not copy_rtx.
13170 2002-01-23 Alan Modra <amodra@bigpond.net.au>
13172 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
13173 "nonzero" as that might add "1" bits. Ensure "constop" is
13174 properly sign extened.
13175 (force_to_mode): Tweak for sign extended constop.
13177 2002-01-22 Richard Henderson <rth@redhat.com>
13179 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
13180 for_each_rtx instead of assuming we're already looking at the MEM.
13181 (split_small_symbolic_mem_operand): Likewise.
13182 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13183 * config/alpha/alpha.md (small symbolic memory splitters): Update.
13185 2002-01-22 Richard Henderson <rth@redhat.com>
13187 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
13188 sequence number for the literal.
13189 (divmoddi_internal_er): Likewise.
13191 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13194 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
13195 in LIBICONV variable.
13196 * configure: Regenerated.
13198 2002-01-22 Krister Walfridsson <cato@df.lth.se>
13200 * dependence.c (build_def_use): Remove array_idx.
13202 * dwarfout.c (last_filename): Remove.
13203 (output_compile_unit_die): Remove last_filename.
13205 2002-01-22 Roger Sayle <roger@eyesopen.com>
13206 Richard Henderson <rth@redhat.com>
13209 * fold-const.c (fold): Optimize unsigned comparisons against
13210 UINT_MAX (and similar unsigned constants).
13212 2002-01-22 Janis Johnson <janis187@us.ibm.com>
13214 * Makefile.in (loop.o): Depend on OPTABS_H.
13215 * loop.c (emit_prefetch_instructions): Check the prefetch operand
13216 against the predicate.
13219 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
13220 for the address operand.
13222 2002-01-22 Richard Henderson <rth@redhat.com>
13224 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
13226 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13229 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
13230 preprocessor flags.
13232 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
13234 * config.gcc (x86_64-*-netbsd*): New target.
13235 * config/i386/netbsd64.h: New file.
13237 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13239 * regrename.c (kill_value): Fix typo.
13241 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13243 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
13245 * config/rs6000/rs6000.h: Same.
13247 * function.c (instantiate_virtual_regs): Remove
13248 STARTING_FRAME_PHASE.
13249 (assign_stack_local_1): Same.
13250 Calculate frame phase.
13252 2002-01-22 Nick Clifton <nickc@redhat.com>
13254 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
13255 variable declaration to outer scope in order to simplify
13257 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
13258 arm_hard_regno_mode_ok.
13259 * config/arm/arm-protos.h: Add a prototype for
13260 arm_hard_regno_mode_ok.
13261 * config/arm/arm.c (soft_df_operand): Remove now redundant
13262 check for DImode values using IP_REGNUM.
13263 (nonimmediate_soft_df_operand): Remove now redundant check for
13264 DImode values using IP_REGNUM.
13265 (arm_hard_regno_mode_ok): New function. New check: make sure
13266 that DImode values are not stored in IP_REGNUM.
13268 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
13270 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
13272 2002-01-22 Jason Merrill <jason@redhat.com>
13274 * c-semantics.c (genrtl_compound_stmt): Only check nesting
13275 consistency if this COMPOUND_STMT is scoped.
13277 2002-01-22 Kazu Hirata <kazu@hxi.com>
13279 * predict.c: Fix formatting.
13280 * print-tree.c: Likewise.
13281 * protoize.c: Likewise.
13282 * real.h: Likewise.
13284 * sbitmap.h: Likewise.
13285 * scan.c: Likewise.
13286 * sched-deps.c: Likewise.
13287 * sched-vis.c: Likewise.
13288 * sdbout.c: Likewise.
13289 * sibcall.c: Likewise.
13291 * ssa-ccp.c: Likewise.
13292 * ssa-dce.c: Likewise.
13293 * stmt.c: Likewise.
13294 * stor-layout.c: Likewise.
13295 * system.h: Likewise.
13297 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13299 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
13300 if fits in bounds of base type.
13302 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
13303 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
13304 (add_bound_info, default): If can't find a context, make a
13306 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
13308 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
13310 * c-typeck.c (parser_build_binary_op): If result from
13311 build_binary_op is ERROR_MARK just return error_mark_node without
13312 further processing.
13314 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
13316 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
13317 Split a.out-specific bits into...
13318 * config/netbsd-aout.h: ...this.
13319 * config/netbsd-elf.h: New file.
13320 * config/alpha/netbsd-elf.h: Remove.
13321 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
13322 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
13323 (STARTFILE_SPEC): Remove redundant definition.
13324 (ENDFILE_SPEC): Likewise.
13325 (LINK_SPEC): Likewise.
13326 (CPP_SPEC): Likewise.
13327 (ASM_SPEC): Likewise.
13328 (LIB_SPEC): Likewise.
13329 (SWITCH_TAKES_ARG): Likewise.
13330 (TARGET_MEM_FUNCTIONS): Likewise.
13331 (CPP_PREDEFINES): Redefine.
13332 (ASM_FINAL_SPEC): Remove redefinition.
13333 (ASM_COMMENT_START): Redefine.
13334 (FUNCTION_PROFILER): Define.
13335 (TARGET_VERSION): Redefine.
13336 Comment and formatting cleanup.
13337 * config/i386/netbsd.h: Include <netbsd-aout.h>.
13338 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
13339 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
13340 big- or little-endian.
13341 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
13342 * config.gcc (*-*-netbsd*): Add definitions common to all
13344 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
13345 gnu_ld definitions. Add netbsd-elf.h to and remove
13346 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
13347 tmake_file, and don't lose previous tmake_file contents.
13348 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
13349 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
13350 gnu_ld definitions. Add netbsd-elf.h to tm_file.
13351 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
13352 (mipsel-*-netbsd*): Rename this to...
13353 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
13354 mips/little.h to tm_file for mips*el-*.
13355 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
13356 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
13357 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
13359 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
13361 * pa-protos.h (reg_before_reload_operand): New function prototype.
13362 * pa.c (reg_before_reload_operand): New function implementation.
13363 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
13364 contraints to "*m".
13366 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13368 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
13370 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
13372 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
13373 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
13374 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
13375 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
13376 (ENDFILE_SPEC): Undefine.
13377 (STARTFILE_SPEC): Redefine for PA.
13379 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13381 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
13383 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
13385 * config.gcc: Add entries to supported PowerPC --with-cpu
13388 2002-01-21 Jakub Jelinek <jakub@redhat.com>
13390 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
13391 true for 64-bit mode only SSE registers in 32-bit mode.
13393 2002-01-21 Kazu Hirata <kazu@hxi.com>
13395 * unwind-dw2.c: Fix formatting.
13396 * unwind-dw2-fde.c: Likewise.
13397 * unwind-dw2-fde.h: Likewise.
13398 * unwind-pe.h: Likewise.
13399 * varasm.c: Likewise.
13400 * varray.h: Likewise.
13402 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
13404 Remove workaround for register stack overwrite bug in mmix.
13405 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
13406 support for TARGET_REG_STACK_FILL_BUG.
13407 * config/mmix/mmix.h: Remove member has_call_without_parameters.
13408 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
13410 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
13411 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
13412 -mno-reg-stack-fill-bug-workaround.
13413 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
13414 machine member has_call_without_parameters.
13415 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
13416 -mreg-stack-fill-bug-workaround and
13417 -mno-reg-stack-fill-bug-workaround.
13418 (MMIX Options): Ditto.
13420 2002-01-21 Kazu Hirata <kazu@hxi.com>
13422 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
13424 Remove redundant code.
13426 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
13428 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
13429 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13430 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13431 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
13432 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
13433 out target macro definitions and non-target-specific comments
13434 mostly taken from old versions of the manual.
13436 2002-01-20 Kazu Hirata <kazu@hxi.com>
13438 * config/h8300/h8300.h: Fix comment formatting.
13439 * config/ia64/aix.h: Likewise.
13440 * config/ia64/ia64-protos.h: Likewise.
13441 * config/ia64/ia64.c: Likewise.
13442 * config/ia64/ia64.h: Likewise.
13443 * config/ia64/ia64intrin.h: Likewise.
13444 * config/ia64/linux.h: Likewise.
13445 * config/ia64/unwind-aix.c: Likewise.
13446 * config/ia64/unwind-ia64.c: Likewise.
13448 2002-01-20 Kazu Hirata <kazu@hxi.com>
13450 * config/h8300/h8300.c: Revise comments about shift code.
13452 2002-01-20 Kazu Hirata <kazu@hxi.com>
13454 * config/h8300/h8300.c (function_arg): Update a comment.
13456 2002-01-20 Kazu Hirata <kazu@hxi.com>
13458 * config/h8300/h8300.md: Update the comments at the beginning
13461 2002-01-20 Kazu Hirata <kazu@hxi.com>
13463 * config/i370/i370.c: Fix comment formatting.
13464 * config/i370/i370.h: Likewise.
13465 * config/i370/i370.md: Likewise.
13466 * config/i370/linux.h: Likewise.
13468 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13470 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
13472 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
13473 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
13474 in incomplete case.
13476 2002-01-20 Graham Stott <grahams@redhat.com>
13478 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
13480 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
13482 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
13484 2002-01-19 Tom Rix <trix@redhat.com>
13486 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
13488 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
13490 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
13492 * function.c (assign_stack_local_1): Adjust x_frame_offset with
13493 STARTING_FRAME_PHASE.
13494 (STARTING_FRAME_PHASE): New.
13495 (instantiate_virtual_regs): Check saneness of
13496 STARTING_FRAME_PHASE.
13498 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
13500 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
13502 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
13504 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
13506 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
13507 be used for bootstrapping GCC 3.0.
13509 2002-01-18 Kazu Hirata <kazu@hxi.com>
13511 * config/h8300/h8300.md: Fix an insn length.
13513 2002-01-18 Kazu Hirata <kazu@hxi.com>
13515 * bitmap.h: Fix comment formatting.
13516 * combine.c: Likewise.
13517 * cppfiles.c: Likewise.
13518 * c-pragma.h: Likewise.
13519 * c-typeck.c: Likewise.
13521 * dwarf2out.c: Likewise.
13522 * function.c: Likewise.
13524 * genattrtab.c: Likewise.
13525 * gthr-win32.h: Likewise.
13526 * haifa-sched.c: Likewise.
13527 * predict.c: Likewise.
13528 * rtlanal.c: Likewise.
13530 * unwind-dw2-fde.h: Likewise.
13531 * unwind-pe.h: Likewise.
13532 * vmsdbgout.c: Likewise.
13534 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13536 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
13537 if type_required and passed decl.
13539 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
13541 * config.gcc (cpu_type): Include altivec.h in powerpc
13545 * config/rs6000/altivec.h: New.
13547 2002-01-17 David Edelsohn <edelsohn@gnu.org>
13549 * doc/install.texi (*-ibm-aix*): Update assembler and exception
13550 handling information.
13551 * doc/trouble.texi (Interoperation): Add libstdc++ information
13553 (Misunderstandings): Add template instantiation and static template
13554 member information for AIX.
13556 2002-01-17 Jason Merrill <jason@redhat.com>
13558 * dbxout.c (dbxout_type): Support const and volatile.
13560 * except.c (add_partial_entry): Remove backwards compatibility code.
13561 (end_protect_partials): Likewise.
13563 2002-01-17 Jakub Jelinek <jakub@redhat.com>
13565 * config/ia64/ia64.md (prologue_use): New.
13566 * config/ia64/ia64.c (ia64_expand_prologue): Use
13567 gen_prologue_use instead of gen_rtx_USE.
13568 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
13569 as CODE_FOR_pred_rel_mutex.
13570 (ia64_sched_reorder2): Likewise.
13572 2002-01-16 Eric Christopher <echristo@redhat.com>
13574 * config/mips/r3900.h: Reformat.
13575 (SUBTARGET_CPP_SIZE_SPEC): Remove.
13576 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
13577 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
13578 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
13579 * config/mips/t-elf: Remove mips3 multilib.
13581 2002-01-16 H.J. Lu <hjl@gnu.org>
13583 * config/mips/linux.h: Include "mips/abi64.h".
13585 2002-01-16 H.J. Lu <hjl@gnu.org>
13587 * config/mips/t-linux: New.
13589 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
13591 * config/mips/linux.h: Don't include "gofast.h".
13592 (INIT_SUBTARGET_OPTABS): Removed.
13594 2002-01-16 Kazu Hirata <kazu@hxi.com>
13596 * config/h8300/h8300-protos.h: Replace emit_a_shift with
13598 * config/h8300/h8300.c: Likewise.
13599 * config/h8300/h8300.md: Likewise.
13601 2002-01-16 Kazu Hirata <kazu@hxi.com>
13603 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
13604 spaces after an opcode name.
13605 (pushqi1_h8300hs): Likewise.
13606 (pushhi1_h8300hs): Likewise.
13608 2002-01-16 Kazu Hirata <kazu@hxi.com>
13610 * doc/extend.texi: Replace "option" with "attribute"
13613 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13615 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
13616 (and:DI () (const_int -8)).
13617 (split_small_symbolic_mem_operand): Split
13618 (mem (and:DI () (const_int -8)).
13620 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13623 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
13624 same way as TYPE_IMUL.
13625 (ultrasparc_sched_reorder): Likewise.
13626 * config/sparc/sparc.md (type): Add comment to update
13627 ultrasparc_sched_reorder when making changes.
13629 2002-01-16 Kazu Hirata <kazu@hxi.com>
13631 * doc/invoke.texi: Change the dump file name of block
13632 reordering pass from 28.bbro to 29.bbro.
13633 Mention -dk option.
13635 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
13637 * i386.md (minsf splitter): Fix pasto.
13639 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13641 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
13642 to frame pointer initialisation instruction.
13643 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
13644 initialisation instruction.
13645 (soft_df_operand): Do not accept the IP register.
13646 (nonimmediate_soft_df_operand): Do not accept the IP register.
13648 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13651 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
13652 MASK_V8 being both set.
13654 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
13656 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
13657 insn for GOT register; add REG_MAYBE_DEAD notes instead.
13658 config/s390/s390.md (call, call_value): Add GOT register to
13659 CALL_INSN_FUNCTION_USAGE where needed.
13660 (call_exp, call_value_exp): New.
13662 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13664 * config/arm/arm.c: General formatting tidy up.
13666 2002-01-16 Graham Stott <grahams@redhat.com>
13668 * calls.c (try_to_integrate): Use "(size_t)" intermediate
13669 cast and when casting an integer literal to "rtx" pointer.
13670 (expand_call): Likewise.
13671 * flow.c (try_pre_increment): Likewise.
13672 (find_use_as_address): Likewise.
13673 * integrate.c (expand_iline_function): Likewise.
13674 * regmove.c (try_auto_increment): Likewise.
13676 2002-01-16 Graham Stott <grahams@redhat.com>
13678 * sched-rgn.c (passed): Use sbitmap_free.
13679 (header): Likewise.
13681 (in_queue): Likewise.
13682 (in_stack): Likewise.
13684 2002-01-15 Eric Christopher <echristo@redhat.com>
13686 * flow.c (propagate_one_insn): Change to use fatal_insn.
13688 2002-01-15 Kazu Hirata <kazu@hxi.com>
13690 * expmed.c (extract_fixed_bit_field): Remove unused code.
13691 * system.h: Poison SLOW_ZERO_EXTEND.
13692 * doc/tm.texi: Remove.
13693 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
13694 * config/arm/arm.h: Likewise.
13695 * config/avr/avr.h: Likewise.
13696 * config/clipper/clipper.h: Likewise.
13697 * config/convex/convex.h: Likewise.
13698 * config/d30v/d30v.h: Likewise.
13699 * config/dsp16xx/dsp16xx.h: Likewise.
13700 * config/elxsi/elxsi.h: Likewise.
13701 * config/fr30/fr30.h: Likewise.
13702 * config/h8300/h8300.h: Likewise.
13703 * config/i370/i370.h: Likewise.
13704 * config/i386/i386.h: Likewise.
13705 * config/m68k/m68k.h: Likewise.
13706 * config/mips/mips.h: Likewise.
13707 * config/ns32k/ns32k.h: Likewise.
13708 * config/pdp11/pdp11.h: Likewise.
13709 * config/pj/pj.h: Likewise.
13710 * config/s390/s390.h: Likewise.
13711 * config/sh/sh.h: Likewise.
13712 * config/stormy16/stormy16.h: Likewise.
13713 * config/v850/v850.h: Likewise.
13714 * config/vax/vax.h: Likewise.
13715 * config/we32k/we32k.h: Likewise.
13717 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
13719 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13720 (altivec_lvsl): Change constraint to b.
13721 (altivec_lvsr): Same.
13722 (altivec_lvebx): Same.
13723 (altivec_lvehx): Same.
13724 (altivec_lvewx): Same.
13725 (altivec_lvxl): Same.
13726 (altivec_lvx): Same.
13727 (altivec_stvx): Add parallel.
13728 (altivec_stvxl): Same.
13729 (altivec_stvehx): Same.
13730 (altivec_stvebx): Same.
13731 (altivec_stvebx): Same.
13733 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
13735 * config.gcc: Change altivec.h to altivec-defs.h.
13737 * config/rs6000/altivec.h: Delete.
13739 * config/rs6000/altivec-defs.h: Add.
13741 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
13743 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13746 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13747 less than or equal to eight bytes.
13749 * vax.md (andsi3): Remove constraints and change SET destination
13750 operand type to nonimmediate_operand.
13751 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
13752 when it is a CONST_INT.
13754 2002-01-15 Jason Merrill <jason@redhat.com>
13756 * c-common.def (FILE_STMT): New code.
13757 * c-common.c (statement_code_p): It's a statement.
13758 * c-common.h (stmt_tree_s): Add x_last_filename.
13759 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13760 (last_expr_filename): New macro.
13761 * c-semantics.c (begin_stmt_tree): Initialize it.
13762 (add_stmt): If the filename changed, also insert a
13764 (expand_stmt): Handle seeing one.
13766 2002-01-15 Eric Christopher <echristo@redhat.com>
13768 * flow.c (propagate_one_insn): Add error message and print out
13769 insn for debugging.
13771 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13773 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13774 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13775 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13776 TRAMPOLINE_ALIGNMENT.
13777 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
13779 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13780 PCC_BITFIELD_TYPE_MATTERS.
13781 * config/interix.h (STDC_VALUE): Remove. Use
13782 STDC_0_IN_SYSTEM_HEADERS.
13783 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13784 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13785 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13787 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
13789 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13790 not work on this platform currently.
13792 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13794 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13795 readonly_warning in _().
13797 2002-01-15 Douglas B Rupp <rupp@gnat.com>
13799 * gcc.c (delete_if_ordinary): Backout previous change.
13801 2002-01-15 Kazu Hirata <kazu@hxi.com>
13803 * config/h8300/h8300.c (print_operand): Remove support for
13804 unused operand characters.
13806 * read-rtl.c: Fix formatting.
13807 * real.c: Likewise.
13808 * recog.c: Likewise.
13809 * regclass.c: Likewise.
13810 * regmove.c: Likewise.
13811 * reg-stack.c: Likewise.
13812 * reload1.c: Likewise.
13813 * rtlanal.c: Likewise.
13815 2002-01-15 Kazu Hirata <kazu@hxi.com>
13817 * config/i386/i386.c: Fix formatting.
13819 2002-01-15 Jakub Jelinek <jakub@redhat.com>
13821 * c-typeck.c (process_init_element): Don't save_expr
13822 COMPOUND_LITERAL_EXPR if just its initializer will be used.
13824 2002-01-15 David Edelsohn <edelsohn@gnu.org>
13826 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13827 emit optional traceback table if optimize_size or TARGET_ELF.
13828 * config/rs6000/rs6000.md (prefetch): New.
13830 2002-01-15 Andreas Jaeger <aj@suse.de>
13832 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13834 2002-01-15 Kazu Hirata <kazu@hxi.com>
13836 * mips-tfile.c: Fix formatting.
13838 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
13840 * unroll.c (final_reg_note_copy): Fix previous commit.
13842 2002-01-14 Kazu Hirata <kazu@hxi.com>
13844 * config/h8300/h8300-protos.h: Remove the prototype for
13846 * config/h8300/h8300.c (eq_operator): Remove.
13848 2002-01-14 Richard Henderson <rth@redhat.com>
13850 * config/i386/i386.md (prefetch): Tidy.
13851 (prefetch_3dnow): Fix locality operand.
13853 2002-01-14 Richard Henderson <rth@redhat.com>
13855 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13856 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13858 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
13860 * reload1.c (reload_combine): Pass reg_sum replacement through
13861 copy_rtx in loop performing multiple changes.
13863 2002-01-14 Jakub Jelinek <jakub@redhat.com>
13865 * except.c (remove_unreachable_regions): New.
13866 (free_eh_status): Clear exception_handler_labels.
13867 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13868 (find_exception_handler_labels): Don't add the same label more than
13870 (remove_exception_handler_label): Don't die if
13871 find_exception_handler_labels hasn't been called for the current
13874 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
13876 * toplev.c (rest_of_compilation): Rebuild jump labels after
13879 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
13881 * doc/extend.texi: Move documentation of X86 built-in functions
13883 * doc/invoke.texi: From here.
13884 * doc/sourcebuild.texi: Document location of documentation for
13885 machine built-in functions.
13887 2002-01-13 Christopher Faylor <cgf@redhat.com>
13889 * cppfiles.c (TEST_THRESHOLD): New macro.
13890 (SHOULD_MMAP): Ditto.
13891 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13894 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
13896 * unroll.c (final_reg_note_copy): Properly handle
13898 (unroll_loops): Fix LOOP_CONDITION heuristics.
13900 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
13902 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13903 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13905 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
13907 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13910 2002-01-14 Tom Rix <trix@redhat.com>
13912 * config/rs6000/rs6000.md: Fix typo with sradi.
13914 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
13916 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13917 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13918 (clrstrdi, clrstrsi): Adapt callers.
13920 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13922 (movti splitter): Never use register 0 as base register.
13924 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
13926 * combine.c (simplify_shift_const): Always generate new rtx
13927 for shift expression instead of reusing given expression.
13929 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13931 * config/alpha/alpha.c (alpha_expand_mov): Don't call
13932 alpha_legitimize_address unless mode is Pmode.
13934 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
13936 * doc/md.texi (Modifiers): Document the '*' constraint for the
13939 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13940 * doc/extend.texi (Function Attributes): 'interrupt' is valid
13943 2002-01-13 Richard Henderson <rth@redhat.com>
13945 * reload.c (find_reloads): Use a hard reg destination as reload reg
13946 for an input reload of the source.
13948 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13950 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13953 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
13955 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13956 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13958 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13960 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13962 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13964 2002-01-12 Tom Rix <trix@redhat.com>
13966 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13969 2002-01-12 Richard Henderson <rth@redhat.com>
13971 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13973 * doc/invoke.texi: Update Alpha options.
13975 * doc/invoke.texi: Update i386 built-in function lists.
13977 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
13979 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13980 referencing outside.
13982 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13984 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13985 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13986 offsets, and change line folding.
13987 * optabs.c (expand_binop): Remove warnings.
13988 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13990 2002-01-12 Graham Stott <grahams@redhat.com>
13992 * attribs.c (handle_deprecated_attribute): constify WHAT.
13993 * diagnostic.c (warn_deprecated_use): Add braces, fixes
13994 dangling else warning and constify WHAT.
13995 * except.h (struct function, struct inline_remap): Move
13996 struct tag forward defs before all prototypes.
13997 (duplicate_eh_regions): Whitespace.
13999 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
14001 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14002 MODE_BASE_REG_CLASS.
14003 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
14005 2002-01-12 Richard Henderson <rth@redhat.com>
14007 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
14008 (ix86_expand_vector_move): New.
14009 (bdesc_2arg): Remove andps, andnps, orps, xorps.
14010 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
14011 Remove old prefetch builtins. Special case the logicals removed above.
14012 (ix86_expand_builtin): Likewise.
14013 (safe_vector_operand): Use V4SFmode, not TImode.
14014 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
14015 (ix86_expand_timode_binop_builtin): New.
14016 * config/i386/i386-protos.h: Update.
14017 * config/i386/i386.h (enum ix86_builtins): Update.
14018 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
14019 Use ix86_expand_vector_move in vector move expanders.
14020 (movti_internal, movti_rex64): Add xorps alternative.
14021 (sse_clrv4sf): Rename and adjust from sse_clrti.
14022 (prefetch): Don't work so hard.
14023 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
14024 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
14025 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
14027 2002-01-11 Richard Henderson <rth@redhat.com>
14029 * config/i386/mmintrin.h: New file.
14030 * config/i386/xmmintrin.h: New file.
14031 * config.gcc (i?86-*-*): Add extra_headers.
14032 * simplify-rtx.c (simplify_unary_operation): Handle saturating
14034 (simplify_binary_operation): Handle saturating arithmetic codes.
14035 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
14036 not the lowpart subreg.
14037 (ix86_expand_builtin): Return a TImode dummy register instead of 0
14039 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
14041 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14043 * conflict.c (conflict_graph_compute): Free regsets when finished.
14044 * ssa.c (compute_coalesced_reg_partition): Likewise.
14046 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14048 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
14049 every where we allocate a register.
14051 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14053 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
14054 * lcm.c (compute_earliest, compute_farthest): Likewise.
14056 2002-01-11 Janis Johnson <janis187@us.ibm.com>
14058 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
14060 2002-01-11 Janis Johnson <janis187@us.ibm.com>
14062 * doc/rtl.texi (Insns): Fix 2 typos.
14064 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
14066 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
14067 options. Use @table @gcctabopt for MMIX options. Add index
14068 entries for MMIX options. Start new paragraph with first
14069 heading of the machine-dependent options.
14071 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
14074 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
14075 * combine.c (force_to_mode): Same.
14076 * reload1.c (clear_reload_reg_in_use): Same.
14078 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
14080 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
14083 2002-01-11 Andreas Jaeger <aj@suse.de>,
14084 Brad Lucier <lucier@math.purdue.edu>
14086 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
14089 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
14091 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
14092 Protect with IN_LIBGCC.
14093 (LINK_EH_SPEC): Add required trailing space.
14095 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
14097 * c-tree.h: Move function declarations so that they are listed
14098 under the filename which contains them.
14099 (check_identifier, finish_decl_top_level,
14100 lookup_name_current_level_global, shadow_record_fields): Remove.
14102 2002-01-11 Andreas Jaeger <aj@suse.de>
14104 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
14107 2002-01-10 Richard Henderson <rth@redhat.com>
14109 * config/alpha/alpha.c (print_operand): Add 'J'.
14110 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
14111 new operand with the sequence number for the lituse. When splitting
14112 the insns, use gen_movdi_er_high_g and generate a sequence number.
14113 (gen_movdi_er_high_g): Print the sequence number if non-zero.
14115 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
14117 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
14118 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
14120 (altivec_expand_builtin): Same.
14121 (altivec_expand_stv_builtin): New.
14123 * config/rs6000/rs6000.h (rs6000_builtins): Same.
14125 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
14126 ("altivec_lvehx"): New.
14127 ("altivec_lvewx"): New.
14128 ("altivec_lvxl"): New.
14129 ("altivec_lvx"): New.
14130 ("altivec_stvx"): New.
14131 ("altivec_stvebx"): New.
14132 ("altivec_stvehx"): New.
14133 ("altivec_stvewx"): New.
14134 ("altivec_stvxl"): New.
14136 2002-01-10 Richard Henderson <rth@redhat.com>
14138 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
14139 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
14140 care not to delete instructions twice.
14142 2002-01-10 Zack Weinberg <zack@codesourcery.com>
14144 * toplev.c: Don't declare environ (it's not used anywhere).
14145 * configure.in: Don't check for declaration of environ.
14146 * config/i386/xm-mingw32.h: Don't #define environ.
14147 * config.in, configure: Regenerate.
14149 2002-01-10 Zack Weinberg <zack@codesourcery.com>
14151 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
14152 * configure: Regenerate.
14154 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
14155 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
14156 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
14158 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
14159 LIMITS_H_TEST here, not in m68k/x-next.
14160 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
14161 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
14163 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
14164 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
14165 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
14167 * config/i386/x-djgpp: Renamed i386/t-djgpp.
14168 * config/m88k/x-dolph: Renamed m88k/t-dolph.
14169 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
14170 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
14171 replacement of quadlib.asm with quadlib.c.
14173 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
14174 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
14175 config/rs6000/xm-beos.h: Delete file.
14177 * config.gcc: Update to match above changes.
14179 2002-01-10 Kazu Hirata <kazu@hxi.com>
14181 * config/h8300/h8300.h: Fix comment typos.
14182 * config/h8300/h8300.md: Likewise.
14183 * config/h8300/lib1funcs.asm: Likewise.
14185 2002-01-10 Dale Johannesen <dalej@apple.com>
14187 PR optimization/5269
14188 * unroll.c (precondition_loop_p): Make *increment be the correct
14189 sign when n_iterations known, to avoid confusing caller.
14191 2002-01-10 Kazu Hirata <kazu@hxi.com>
14193 * doc/extend.texi (deprecated): Fix a typo.
14195 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
14197 * basic-block.h (update_br_prob_note): Declare.
14198 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
14199 (try_forward_edges): Care negative frequencies and update note.
14200 (outgoing_edges_match): Tweek conditional merging heuristics.
14201 (try_crossjump_to_edge): use update_br_prob_note.
14202 * cfglayout.c (fixup_reorder_chain): Likewise.
14203 * cfrtl.c (update_br_prob_note): New.
14204 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
14206 * i386.c (ix86_decompose_address): Return -1 if address contains
14208 (legitimate_address_p): Require ix86_decompose_address to return 1.
14210 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
14211 (cprop_insn): Likewise.
14213 2002-01-10 Kazu Hirata <kazu@hxi.com>
14215 * toplev.c: Fix formatting.
14216 * tree.c: Likewise.
14217 * tree-dump.c: Likewise.
14218 * unroll.c: Likewise.
14219 * unwind-dw2.c: Likewise.
14220 * unwind-dw2-fde.c: Likewise.
14221 * unwind-dw2-fde-glibc.c: Likewise.
14222 * unwind-sjlj.c: Likewise.
14224 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14226 * doc/invoke.texi: Document PDP-11 options.
14228 2002-01-10 Kazu Hirata <kazu@hxi.com>
14230 * config/h8300/h8300.h: Fix formatting.
14232 2002-01-10 Ira Ruben <ira@apple.com>
14234 Add __attribute__ ((deprecated)).
14235 * extend.texi: Document __attribute__ ((deprecated)).
14236 * invoke.texi: Document -Wno-deprecated-declarations.
14237 * testsuite/g++.dg/other/deprecated.C: New C++ test.
14238 * testsuite/gcc.dg/deprecated.c: New C test.
14239 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
14240 (c_common_attribute_table): Add "deprecated" entry.
14241 (handle_deprecated_attribute): New function.
14242 * c-decl.c (deprecated_states): New enum.
14243 deprecated_state: State of "deprecated" handling.
14244 (start_decl): Set deprecated_state based on attributes.
14245 (grokdeclarator): Test for deprecated uses, propagate attribute.
14246 * c-typeck.c (build_component_ref): Test for deprecated fields.
14247 (build_external_ref): Test for deprecated primaries.
14248 * diagnostic.c (warn_deprecated_use) New function to issue
14249 warnings about __attribute__ ((depricated)) references.
14250 * flags.h (warn_deprecated_decl): Extern declared for
14251 -W[no-]deprecated-declarations option.
14252 * print-tree.c (print_node): Show deprecated flag status.
14253 * toplev.c (warn_deprecated_decl): Defined.
14254 (W_options): Added "deprecated-declaration".
14255 * toplev.h (warn_deprecated_use): Extern declared.
14256 * tree.h (struct tree_common): Define deprecated_flag.
14257 (TREE_DEPRECATED): New macro to access flag.
14258 * cp/call.c (build_call): Test for deprecated calls.
14259 * cp/class.c (add_implicitly_declared_members): Set global
14260 flag to tell grokdeclarator to not issue deprecated warnings.
14261 * cp/cp-tree.h: Add extern for adding_implicit_members.
14262 * cp/decl.c (deprecated_states): New enum.
14263 (start_decl): Set deprecated_state based on attributes.
14264 (grokdeclarator): Test for deprecated uses, propagate attribute.
14265 * cp/lex.c (do_identifier): Test for deprecated primaries.
14266 * cp/typeck.c (build_component_ref): Test for deprecated fields.
14268 2002-01-10 Ira Ruben <ira@apple.com>
14270 Fix to assign attributes to inline member functions.
14271 * cp/decl.c (start_method): Handle attrlist.
14273 2002-01-10 Kazu Hirata <kazu@hxi.com>
14275 * combine.c (expand_field_assignment): Use subreg_lsb().
14277 2002-01-10 David Edelsohn <edelsohn@gnu.org>
14279 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
14280 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
14281 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
14282 Recurse for any operand of AND as long as constant is non-zero.
14284 2002-01-10 Kazu Hirata <kazu@hxi.com>
14286 * config/h8300/h8300.md: Remove constraints from expanders.
14288 2002-01-10 Kazu Hirata <kazu@hxi.com>
14290 * varasm.c: Fix formatting.
14291 * varray.c: Likewise.
14292 * vmsdbgout.c: Likewise.
14293 * xcoffout.c: Likewise.
14295 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
14297 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
14298 update edge probabilities to match.
14300 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14302 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
14304 * doc/languages.texi, doc/sourcebuild.texi: New files.
14305 * doc/configfiles.texi: Make a subsubsection. Update.
14306 * doc/configterms.texi: Add @node. Remove warning that this isn't
14307 instructions for building GCC.
14308 * doc/makefile.texi: Make a subsection.
14309 * doc/gccint.texi: Update.
14311 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
14313 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
14315 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
14317 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
14319 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
14321 * optabs.c (expand_fix): Look for wider integer modes first.
14323 * i386.md (mov?f): Avoid the fake const double trick for medium
14325 (min?f*/max?f*): Prohibit memory operands for i387 variant.
14326 (fop_df_4): Disable for SSE compilation.
14328 2002-01-10 Graham Stott <grahams@redhat.com>
14330 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
14331 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
14333 2002-01-10 Richard Henderson <rth@redhat.com>
14335 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
14337 2002-01-10 Richard Henderson <rth@redhat.com>
14339 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
14340 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
14342 2002-01-10 Kazu Hirata <kazu@hxi.com>
14344 * combine.c (can_combine_p): Fix a comment typo.
14346 2002-01-09 Zack Weinberg <zack@codesourcery.com>
14348 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
14349 empty list correctly. Change loop index $t to $f for
14350 consistency with rest of Makefile.
14352 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
14354 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
14355 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14357 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
14358 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
14359 (altivec_init_builtins): Same.
14360 (altivec_expand_unop_builtin): Return NULL_RTX on error.
14361 (altivec_expand_binop_builtin): Same.
14362 (altivec_expand_ternop_builtin): Same.
14365 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
14366 ("altivec_vctuxs"): Fix typo.
14367 ("altivec_vnmsubfp"): Same.
14368 ("altivec_dssall"): New.
14369 ("altivec_mfvscr"): New.
14370 ("altivec_dss"): New.
14371 ("altivec_lvsl"): New.
14372 ("altivec_lvsr"): New.
14373 ("altivec_dstt"): New.
14374 ("altivec_dstst"): New.
14375 ("altivec_dststt"): New.
14376 ("altivec_dst"): New.
14378 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
14379 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14381 2002-01-09 Richard Henderson <rth@redhat.com>
14383 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
14385 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
14387 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
14389 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
14391 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
14393 2002-01-09 Kazu Hirata <kazu@hxi.com>
14395 * read-rtl.c: Fix formatting.
14396 * real.c: Likewise.
14397 * regclass.c: Likewise.
14398 * regrename.c: Likewise.
14399 * reg-stack.c: Likewise.
14400 * reload1.c: Likewise.
14401 * reload.c: Likewise.
14404 2002-01-09 Kazu Hirata <kazu@hxi.com>
14406 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
14407 to extract items in the expr_list chain.
14409 2002-01-09 Richard Henderson <rth@redhat.com>
14411 * config/vax/vax.c (vax_rtx_cost): Never abort.
14413 * config/vax/vax.h (REAL_ARITHMETIC): Define.
14415 2002-01-09 Jan Hubicka <jh@suse.cz>
14417 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
14419 2002-01-09 Richard Henderson <rth@redhat.com>
14421 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
14422 Unify code from various alternatives.
14424 2002-01-09 Richard Henderson <rth@redhat.com>
14426 * regrename.c (copy_value): Ignore the copy if the source register
14427 is present in the value chain with a narrower mode.
14429 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14431 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
14432 for the c4x target. Also improve layout.
14434 2002-01-09 Richard Henderson <rth@redhat.com>
14436 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
14437 * config/m32r/m32r.md (and ior xor splitters): Swap operands
14438 to match insn patterns.
14440 2002-01-09 Richard Henderson <rth@redhat.com>
14442 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
14443 (copyprop_hardreg_forward_1): Likewise.
14445 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
14447 * pa.md (decrement_and_branch_until_zero): Change predicate for
14448 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
14450 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14452 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
14453 gets undefined. For Darwin.
14455 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14457 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
14459 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14461 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
14463 2002-01-08 Richard Henderson <rth@redhat.com>
14465 * regrename.c (copy_value): Ignore overlapping copies.
14467 2002-01-08 Richard Henderson <rth@redhat.com>
14469 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
14470 as needed to avoid shared structure.
14472 2002-01-08 Kazu Hirata <kazu@hxi.com>
14474 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
14477 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14479 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
14480 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
14481 documentation of obsolete macros.
14482 * system.h: Poison these macros.
14483 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
14484 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
14485 config/c4x/c4x.h, config/clipper/clipper.h,
14486 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
14487 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
14488 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
14489 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
14490 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14491 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
14492 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14493 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
14494 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
14495 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14496 config/sparc/sparc.h, config/stormy16/stormy16.h,
14497 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
14498 definitions and commented out definitions of obsolete macros.
14499 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
14500 of MAX_INT_TYPE_SIZE.
14502 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
14504 * config/s390/s390.c (s390_preferred_reload_class): Never
14505 return ADDR_REGS if it isn't a subset of the given class.
14506 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
14507 FP_REGS, but all superclasses as well.
14509 * config/s390/s390.c (s390_function_profiler): Fix thinko.
14511 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
14512 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
14513 must not be a const_int.
14515 2002-01-08 Richard Henderson <rth@redhat.com>
14517 * Makefile.in (toplev.o): Depend on options.h.
14518 (gcc.o): Depend on specs.h.
14520 2002-01-08 Jakub Jelinek <jakub@redhat.com>
14522 * expr.c (store_expr): Convert VOIDmode constants back to target's
14525 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14527 * doc/invoke.texi: Markup gcc as @command. Refer to
14528 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
14529 of http://gcc.gnu.org/thanks.html.
14531 2002-01-08 Dale Johannesen <dalej@apple.com>
14533 * config/rs6000/rs6000.md: Add missing int register
14534 target case to movdf_low.
14536 2002-01-08 Zack Weinberg <zack@codesourcery.com>
14538 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
14539 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
14540 (cppinit.o): Depend on except.h.
14541 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
14542 s-specs): New rules.
14544 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
14545 Don't create specs.h/options.h/gencheck.h here. Remove
14546 unnecessary variable settings from last argument of AC_OUTPUT.
14547 * config.in, configure: Regenerate.
14548 * intl.c: Hardcode package name as "gcc".
14550 * cppinit.c: Include except.h.
14551 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
14553 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
14554 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
14555 (!)USING_SJLJ_EXCEPTIONS.
14556 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
14558 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14560 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
14561 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
14562 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
14563 documentation of obsolete macros.
14564 * system.h: Poison these macros.
14565 * config/d30v/d30v.h, config/ns32k/encore.h,
14566 config/stormy16/stormy16.h: Remove definitions and commented out
14567 definitions of obsolete macros.
14569 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
14571 * objc/objc-act.c (handle_class_ref): Mark the declaration of
14572 %sobjc_class_ref_%s as used - to prevent unwanted compiler
14575 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
14577 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
14578 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
14579 to insn adjusting stack/frame pointer.
14580 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
14581 accept operands that cause the insn to be non-splittable.
14583 2002-01-08 Graham Stott <grahams@redhat.com>
14585 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
14586 (C_TYPE_FIELDS_VOLATILE): Likewise.
14587 (C_TYPE_BEING_DEFINED): Likewise.
14588 (C_IS_RESERVED_WORD): Likewise.
14589 (C_TYPE_VARIABLE_SIZE): Likewise.
14590 (C_DECL_VARIABLE_SIZE): Likewise.
14591 (C_MISSING_PROTOTYPE_WARNED): Likewise.
14592 (C_SET_EXP_ORIGINAL_CODE): Likewise.
14593 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
14595 (C_DECL_ANTICIPATED): Likewise.
14596 (c_build_type_variant): Add parenthesis.
14598 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14600 * gcc.c (option_map): Remove --version.
14601 (process_command): Handle -fversion following the GNU Coding
14602 Standards. Partially addresses PR other/704.
14604 2002-01-08 Graham Stott <grahams@redhat.com>
14606 * combine.c (combine_instructions): Fix typo.
14608 2002-01-08 Graham Stott <grahams@redhat.com>
14610 * debug.h: Use "tree" and "rtx" throughout.
14612 * debug.c: Likewise.
14614 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
14616 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
14617 constant pool, use the pool's version of the symbol instead.
14619 2002-01-07 Richard Henderson <rth@redhat.com>
14621 * regrename.c (find_oldest_value_reg): Ignore the value chain if
14622 the original register was copied in a mode with a fewer number of
14623 hard registers than the desired mode.
14624 (copyprop_hardreg_forward_1): Likewise.
14625 (debug_value_data): Fix loop test.
14626 * toplev.c (parse_options_and_default_flags): Reenable
14627 -fcprop-registers at -O1.
14629 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14631 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
14632 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
14634 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
14637 * config/rs6000/rs6000.md: Add altivec predicate patterns.
14639 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
14641 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
14642 (pa_output_function_prologue): Output local label at the beginning of
14643 the prologue when profiling.
14644 (hppa_profile_hook): Use the local label rather than the function label.
14645 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
14647 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14649 * config/rs6000/rs6000.c (print_operand): Remove extra space.
14650 (altivec_expand_unop_builtin): Fix thinko.
14651 (altivec_expand_binop_builtin): Same.
14652 (altivec_expand_ternop_builtin): Same.
14653 (altivec_expand_builtin): Same.
14655 2002-01-07 Richard Henderson <rth@redhat.com>
14657 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
14659 2002-01-07 Jason Merrill <jason@redhat.com>
14661 * unwind-dw2.c (execute_cfa_program): Use < again.
14663 2002-01-07 Jakub Jelinek <jakub@redhat.com>
14665 * predict.c (combine_predictions_for_insn): Avoid division by zero.
14667 2002-01-07 Jakub Jelinek <jakub@redhat.com>
14669 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
14670 Don't allow -1 - x -> ~x simplifications in the first pass.
14672 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14674 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
14676 (altivec_expand_binop_builtin): Same.
14677 (altivec_expand_unop_builtin): Same.
14678 (print_operand): Fix typo.
14679 (bdesc_1arg): Add vupk* variants.
14681 * rs6000.h (rs6000_builtins): Add vupk* enums.
14683 * rs6000.md: Add altivec_vupk* variants.
14685 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
14687 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
14688 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
14689 and last update dates.
14691 2002-01-07 Janis Johnson <janis187@us.ibm.com>
14693 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
14695 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
14697 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14698 * config/avr/avr.h (CPP_SPEC): Likewise.
14699 (LINK_SPEC): Likewise.
14700 (CRT_BINUTILS_SPECS): Likewise.
14701 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14702 * doc/invoke.texi (AVR Options): Document them.
14704 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
14706 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14709 2002-01-07 Graham Stott <grahams@redhat.com>
14711 * config/i386/i386.h: Update copyright date.
14712 (HALF_PIC_PTR): Add parenthesis.
14713 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14714 (CONSTANT_ALIGNMENT): Add parenthesis.
14715 (DATA_ALIGNMENT): Likewise.
14716 (LOCAL_ALIGNMENT): Likewise.
14717 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14718 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14719 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14720 (HARD_REGNO_NREGS): Add paranethesis.
14721 (VALID_SSE_REG_MODE): Whitespace.
14722 (VALID_MMX_REG_MODE): Whitespace.
14723 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14724 (ix86_hard_regno_mode_ok): Add parenthesis.
14725 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14726 (RETURN_IN_MEMORY): Whitespace.
14727 (N_REG_CLASSES): Add parenthesis.
14728 (INTEGER_CLASS_P): Add parenthesis and wrap.
14729 (FLOAT_CLASS_P): Likewise.
14730 (SSE_CLASS_P): Likewise.
14731 (MMX_CLASS_P): Likewise.
14732 (MAYBE_INTEGER_CLASS_P): Likewise.
14733 (MAYBE_FLOAT_CLASS_P): Likewise.
14734 (MAYBE_SSE_CLASS_P): Likewise.
14735 (MAYBE_MMX_CLASS_P): Likewise.
14736 (Q_CLASS_P): Likewise.
14737 (GENERAL_REGNO_P): Uppercase macro parameter.
14738 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14739 (FP_REGNO_P): Likewise.
14740 (ANY_FP_REGNO_P): Uppercase macro parameter.
14741 (SSE_REGNO_P): Likewise.
14742 (SSE_REGNO): Likewise.
14743 (SSE_REG_P): Likewise.
14744 (SSE_FLOAT_MODE_P): Likewise.
14745 (MMX_REGNO_P): Likewise.
14746 (MMX_REG_P):Likewise.
14747 (STACK_REG_P): Likewise.
14748 (NON_STACK_REG_P): Likewise.
14749 (STACK_TOP_P): Likewise.
14750 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14751 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14752 (SECONDARY_MEMORY_NEEDED): Likewise.
14753 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14754 (MD_ASM_CLOBBERS): Whitespace and wrap.
14755 (MUST_PASS_IN_STACK): Whitespace and wrap.
14756 (RETURN_POPS_ARGS): Add parenthesis.
14757 (INIT_CUMULATIVE_ARGS): Likewise.
14758 (FUNCTION_ARG): Likewise.
14759 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14760 (SETUP_INCOMING_VARARGS): Likewise.
14761 (BUILD_VA_LIST_TYPE): Add parenthesis.
14762 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14764 (EXPAND_BUILTIN_VA_ARG): Likewise.
14765 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14766 (INITIALIZE_TRAMPOLINE): Add parenthesis.
14767 (INITIAL_ELIMINATION_OFFSET): Likewise.
14768 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14769 (REGNO_OK_FOR_BASE_P): Likewise.
14770 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14771 (REGNO_OK_FOR_DIREG_P): Likewise.
14772 (REG_OK_FOR_INDEX_P): Whitespace.
14773 (REG_OK_FOR_BASE_P): Whitespace.
14774 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14776 (FIND_BASE_TERM): Fix typo.
14777 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
14778 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14779 (SYMBOLIC_CONST; Whitespace.
14780 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
14781 (ENCODE_SECTION_INFO): Whitespace.
14782 (FINALIZE_PIC): Remove do { ... } while (0).
14783 (PROMOTE_MODE): Wrap in do { ... } while (0).
14784 (CONST_COSTS): Whitespace.
14785 (RTX_COSTS): Add paramethesis, whitespace and wrap.
14786 (REGISTER_MOVE_COST): Add parenthesis.
14787 (MEMORY_MOVE_COST): Likewise.
14788 (EXTRA_CC_MODES): Whitespace.
14789 (SELECT_CC_MODE): Add parenthesis and whitespace.
14790 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14791 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14792 (ASM_OUTPUT_LABEL): Add paramethesis.
14793 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14794 (ASM_OUTPUT_REG_POP): Likewise.
14795 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14796 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14798 * config/i386/i386.c: Update copyright.
14799 (CHECK_STACK_LIMIT): Add parenthesis.
14800 (AT_BP): Uppercase macro parameter.
14801 (x86_64_int_parameter_registers): Constify.
14802 (x86_64_int_return_registers): Likewise.
14803 (ix86_compare_op0): Use rtx.
14804 (construct_container): Constify INTREG parameter.
14805 (function_arg): Use rtx.
14807 * diagnostic.h: Update copyright date.
14808 (output_buffer_state): Add parenthesis.
14809 (output_buffer_format_args): Likewise.
14811 * combine.c (combine_instructions): Replace XEXP (links, 0)
14814 2002-01-06 H.J. Lu <hjl@gnu.org>
14816 * cfgcleanup.c (thread_jump): Fix 2 typos.
14818 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
14820 * config.gcc: Add support for --enable-altivec.
14822 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14824 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14826 2002-01-06 Jakub Jelinek <jakub@redhat.com>
14828 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14829 __objc_class_name_*.
14831 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14833 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14835 2002-01-06 Richard Henderson <rth@redhat.com>
14837 * reorg.c (emit_delay_sequence): Remove death notes, not merely
14838 nop them out. Increment label reference count for REG_LABEL.
14839 (fill_slots_from_thread): Frob label reference count around
14840 delete_related_insns.
14842 2002-01-05 Richard Henderson <rth@redhat.com>
14844 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14847 2002-01-05 Richard Henderson <rth@redhat.com>
14849 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14850 * integrate.c (output_inline_function): Likewise.
14851 * toplev.c (rest_of_compilation): Do it here instead. Move call
14852 to remove_unnecessary_notes after emitting abstract instance.
14853 Force an emitted nested function to have its parent emited as well.
14854 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14856 (rtl_for_decl_location): Do not look at reload data structures
14857 before reload has run.
14859 2002-01-05 Kazu Hirata <kazu@hxi.com>
14861 * cse.c: Fix formatting.
14862 * dwarf2asm.c: Likewise.
14863 * dwarf2out.c: Likewise.
14864 * explow.c: Likewise.
14865 * expmed.c: Likewise.
14866 * function.c: Likewise.
14867 * gcov.c: Likewise.
14868 * gencheck.c: Likewise.
14869 * genrecog.c: Likewise.
14870 * ggc-common.c: Likewise.
14871 * ggc-page.c: Likewise.
14872 * global.c: Likewise.
14874 2002-01-05 Kazu Hirata <kazu@hxi.com>
14876 * combine.c: Fix formatting.
14878 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
14881 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14883 2002-01-05 David Edelsohn <edelsohn@gnu.org>
14885 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14886 as 1 for __powerpc64__ as well.
14888 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14890 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14893 2002-01-05 Daniel Berlin <dan@dberlin.org>
14895 * lcm.c: Revert change, due to performance regression it causes on
14896 SPEC because it's slightly more conservative (sigh, I hate
14899 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
14901 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14903 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
14905 * doc/cppinternals.texi: Update.
14907 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
14909 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14910 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14912 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
14913 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14914 kludge for pre-october-14th mmix versions to handle new-found bug
14915 with PUSHJ/PUSHGO and the register stack.
14916 * config/mmix/mmix.h (struct machine_function): Rename member
14917 has_call_value_without_parameters to has_call_without_parameters.
14918 All referers changed.
14919 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14920 TARGET_MASK_BRANCH_PREDICT): New macros.
14921 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14922 -mno-reg-stack-fill-bug-workaround.
14923 * config/mmix/mmix.md ("call"): Set struct machine member
14924 has_call_without_parameters.
14926 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
14928 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14930 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
14932 * cfgcleanup.c: Include tm_p.h
14933 (mark_effect): Fix handling of hard register; fix handling of SET
14935 2002-01-04 Kazu Hirata <kazu@hxi.com>
14937 * config/h8300/h8300.md (anonymous patterns): Check that
14938 operands are registers before using REGNO on them.
14940 2002-01-03 Roland McGrath <roland@frob.com>
14942 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14944 2002-01-04 Jakub Jelinek <jakub@redhat.com>
14946 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14947 * c-common.h (genrtl_expr_stmt_value): Likewise.
14948 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14949 (expand_expr_stmt_value): Add maybe_last argument.
14950 Don't warn about statement with no effect if it is the last statement
14951 in expression statement.
14952 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14953 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14954 expand_expr_stmt_value.
14955 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14956 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14957 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14958 as maybe_last to expand_expr_stmt_value.
14960 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
14962 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14963 be passed in, do not build it.
14964 (c_begin_if_stmt): New function.
14965 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14966 * c-common.h (c_expand_start_cond): Update prototype.
14967 (c_begin_if_stmt): Prototype new function.
14968 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14969 * c-parse.in (if_prefix): Use c_begin_if_stmt,
14970 c_begin_while_stmt and c_finish_while_stmt_cond.
14972 2002-01-04 William Cohen <wcohen@redhat.com>
14974 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14975 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14976 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14977 * config/pa/som.h (ASM_FILE_START): Likewise.
14979 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
14981 * lcm.c: Include df.h.
14982 Add available_transfer_function prototype.
14983 (compute_available): Rework to use iterative dataflow framework.
14984 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14985 with bb_info in df.h
14986 (available_transfer_function): New function.
14988 * Makefile.in (lcm.o): add df.h to dependencies.
14990 2002-01-04 Richard Henderson <rth@redhat.com>
14992 * config/alpha/alpha.c (some_operand): Accept HIGH.
14993 (input_operand): Likewise; accept simple references to globals.
14994 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14995 (alpha_const_double_ok_for_letter_p): Likewise.
14996 (alpha_extra_constraint): Likewise.
14997 (alpha_preferred_reload_class): Likewise. Do not force
14998 symbolic constants to memory.
14999 (alpha_legitimate_address_p): Accept simple references
15000 to small_symbolic_operand.
15001 (alpha_legitimize_address): New arg scratch. Be prepared to be
15002 called when no_new_pseudos. Emit simple symbolic references.
15003 Split integers into low, high, and rest.
15004 (alpha_expand_mov): Use alpha_legitimize_address.
15005 (some_small_symbolic_mem_operand): New.
15006 (split_small_symbolic_mem_operand): New.
15007 * config/alpha/alpha-protos.h: Update.
15008 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
15009 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
15010 (EXTRA_CONSTRAINT): Likewise.
15011 (PREFERRED_RELOAD_CLASS): Likewise.
15012 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
15013 (PREDICATE_CODES): Update.
15014 * config/alpha/alpha.md: New post-reload splitters to convert
15015 simplfied symbolic operands to the form that references $29.
15016 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
15017 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
15019 2002-01-03 Richard Henderson <rth@redhat.com>
15021 * local-alloc.c (function_invariant_p): Update commentary.
15023 2002-01-04 H.J. Lu <hjl@gnu.org>
15025 * toplev.c (rest_of_compilation): Fix a typo when calling
15028 2002-01-03 Kazu Hirata <kazu@hxi.com>
15030 * c-common.c: Fix formatting.
15031 * diagnostic.c: Likewise.
15032 * doloop.c: Likewise.
15033 * dwarf2out.c: Likewise.
15035 2002-01-03 Kazu Hirata <kazu@hxi.com>
15037 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
15038 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
15040 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
15042 * cpperror.c: Update comments and copyright.
15043 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
15044 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
15046 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
15048 * collect2.c (main): Use strcmp when testing for "-shared".
15050 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
15052 * cppmacro.c: Don't include intl.h. Update comments.
15053 (new_number_token): Allocate enough buffer for 64-bit unsigned
15054 integers; update prototype.
15055 * cppmain.c: Update comments.
15057 2002-01-03 William Cohen <wcohen@redhat.com>
15059 * function.h (struct function): Add profile.
15060 (current_function_profile): New.
15061 doc/extend.texi: Update documentation.
15062 * final.c (final_start_function): Use current_function_profile
15063 instead of profile_flag.
15064 (profile_after_prologue): Likewise.
15065 * function.c (expand_function_start): Likewise.
15066 (expand_function_start): Likewise.
15067 * config/alpha/alpha.c (direct_call_operand):
15068 (alpha_does_function_need_gp): Likewise.
15069 (alpha_expand_prologue): Likewise.
15070 * config/arm/arm.c (arm_expand_prologue): Likewise.
15071 thumb_expand_prologue: Likewise.
15072 * config/d30v/d30v.c (d30v_stack_info): Likewise.
15073 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
15074 (fr30_expand_prologue): Likewise.
15075 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
15076 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
15077 * config/i386/i386.h (FINALIZE_PIC): Likewise.
15078 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
15079 * config/i960/i960.c (i960_output_function_prologue): Likewise.
15080 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
15081 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
15082 (m32r_expand_prologue): Likewise.
15083 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
15084 (m88k_expand_prologue): Likewise.
15085 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
15086 * config/mips/mips.c (compute_frame_size): Likewise.
15087 (mips_expand_prologue): Likewise.
15088 (mips_can_use_return_insn): Likewise.
15089 * config/pa/elf.h (ASM_FILE_START): Likewise.
15090 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
15091 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
15092 * config/pa/som.h (ASM_FILE_START): Likewise.
15093 * config/romp/romp.c (romp_using_r14): Likewise.
15094 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
15095 (rs6000_stack_info): Likewise.
15096 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15097 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
15098 * config/v850/v850.c (compute_register_save_size): Likewise.
15100 2002-01-03 Jakub Jelinek <jakub@redhat.com>
15102 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
15103 gen_lowpart_common fails, use gen_lowpart_SUBREG.
15105 2002-01-03 Turly O'Connor <turly@apple.com>
15107 * darwin.c (machopic_output_possible_stub_label): Don't generate
15108 stub routines for pseudo-stubs which we've just defined.
15110 2002-01-03 Kazu Hirata <kazu@hxi.com>
15112 * builtins.c: Fix formatting.
15113 * c-typeck.c: Likewise.
15114 * combine.c: Likewise.
15115 * expr.c: Likewise.
15116 * loop.c: Likewise.
15118 2002-01-03 Andreas Schwab <schwab@suse.de>
15120 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
15121 and return true if _cpp_push_next_buffer pushed a new include
15123 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
15124 _cpp_pop_file_buffer did not push a new file.
15125 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
15127 2002-01-02 Eric Christopher <echristo@redhat.com>
15129 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
15130 FIND_REG_INC_NOTE call. Update copyright.
15131 * loop.c (canonicalize_condition): Ditto.
15132 * reorg.c (delete_scheduled_jump): Ditto.
15134 2002-01-03 Kazu Hirata <kazu@hxi.com>
15136 * gcse.c: Fix formatting.
15138 2002-01-03 Graham Stott <grahams@redhat.com>
15140 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
15141 forward defs for struct tags rtx_def, union_tree, rtvec_def
15142 also output corresponding typedefs for rtx, tree, and rtvec.
15144 * system.h: Move forward defs for struct tags rtx_def, union_tree,
15145 rtvec_def along with corresponding typedefs for rtx, tree, and
15146 rtvec to config.h, hconfig.h, tconfig.h.
15148 2002-01-03 Graham Stott <grahams@redhat.com>
15150 * tree.h: Update copyright date.
15151 (IS_EXPR_CODE_CLASS): Add parenthesis.
15152 (TREE_SET_CODE): Add whitespace.
15153 (TREE_CHECK): Add parenthesis.
15154 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
15155 (CST_OR_CONSTRUCTOR_CHECK):
15156 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
15157 (TREE_SYMBOL_REFERENCED): Whitespace.
15158 (INT_CST_LT): Likewise.
15159 (INT_CST_LT_UNSIGNED): Likewise.
15160 (tree_real_cst): Unwrap comment.
15161 (tree_string): Likewise.
15162 (tree_complex): Likewise.
15163 (IDENTIFIER_POINTER): correct cast.
15164 (SAVE_EXPR_CONTEXT): Whitespace.
15165 (EXPR_WFL_FILENAME_NODE): Likewise.
15166 (EXPR_WFL_FILENAME): Remove parenthesis.
15167 (DECL_ORIGIN): Add parenthesis.
15168 (DECL_FROM_INLINE): Use NULL_TREE.
15169 (build_int_2): Whitespace.
15170 (build_type_variant): Add parenthesis.
15172 * gcc/jcf-parse.c: Update copyright date.
15173 (yyparse): Constify resource_filename.
15175 2002-01-03 Graham Stott <grahams@redhat.com>
15177 * rtl.h: Update copyright date.
15178 (RTL_CHECK1): Wrap long line.
15179 (RTL_CHECK2): Likewise.
15180 (RTL_CHECKC1): Wrap long line and whitespace.
15181 (RTL_CHECKC2): Likewise.
15182 (XWINT): Whitespace.
15188 (XBITMAP): Likewise.
15190 (XBBDEF): Likewise.
15192 (X0WINT): Likewise.
15194 (X0UINT): Likewise.
15198 (X0MODE): Likewise.
15199 (X0BITMAP): Likewise.
15200 (X0TREE): Likewise.
15201 (X0BBDEF): Likewise.
15202 (X0ADVFLAGS): Likewise.
15203 (X0CSELIB): Likewise.
15204 (X0MEMATTR): Likewise.
15205 (XCWINT): Likewise.
15207 (XCUINT): Likewise.
15211 (XCMODE): Likewise.
15212 (XCBITMAP): Likewise.
15213 (XCTREE): Likewise.
15214 (XCBBDEF): Likewise.
15215 (XCADVFLAGS): Likewise.
15216 (XCCSELIB): Likewise.
15217 (XC2EXP): Likewise.
15218 (INSN_UID): Likewise.
15219 (PREV_INSN): Likewise.
15220 (PATTERN): Likewise.
15221 (INSN_CODE): Likewise.
15222 (PUT_REG_NOTE_KIND): Likewise.
15223 (CODE_LABEL_NUMBER): Likewise.
15224 (NOTE_SOURCE_FILE): Likewise.
15225 (NOTE_BLOCK): Likewise.
15226 (NOTE_EH_HANDLER): Likewise.
15227 (NOTE_RANGE_INFO): Likewise.
15228 (NOTE_LIVE_INFO): Likewise.
15229 (NOTE_BASIC_BLOCK): Likewise.
15230 (NOTE_EXPECTED_VALUE): Likewise.
15231 (NOTE_LINE_NUMBER): Likewise.
15232 (LABEL_NAME): Likewise.
15233 (LABEL_NUSES): Likewise.
15234 (LABEL_ALTERNATE_NAME): Likewise.
15235 (ADDRESSOF_DECL): Likewise.
15236 (JUMP_LABEL): Likewise.
15237 (LABEL_NEXTREF): Likewise.
15239 (ORIGINAL_REGNO: Likewise.
15240 (HARD_REGISTER_NUM_P): Add parenthesis.
15241 (SUBREG_REG): Whitespace.
15242 (SUBREG_BYTE): Likewise.
15243 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
15244 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
15245 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
15246 (ASM_OPERANDS_INPUT_VEC): Likewise.
15247 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
15248 (ASM_OPERANDS_INPUT): Likewise.
15249 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
15250 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
15251 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
15252 (ASM_OPERANDS_INPUT_MODE): Likewise.
15253 (ASM_OPERANDS_SOURCE_FILE): Likewise.
15254 (ASM_OPERANDS_SOURCE_LINE): Likewise.
15255 (MEM_SET_IN_STRUCT_P): Minor reformat.
15256 (TRAP_CONDITION): Whitespace.
15257 (TRAP_CODE): Likewise.
15258 (COND_EXEC_TEST): Likewise.
15259 (COND_EXEC_CODE): Likewise.
15260 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
15261 (PHI_NODE_P): Add parenthesis.
15262 (plus_constant): Whitespace and add parenthesis.
15264 2002-01-03 Kazu Hirata <kazu@hxi.com>
15266 * config/avr/avr.c: Fix comment typos.
15267 * config/c4x/c4x.md: Likewise.
15268 * config/dsp16xx/dsp16xx.h: Likewise.
15269 * config/dsp16xx/dsp16xx.md: Likewise.
15270 * config/i386/i386.md: Likewise.
15271 * config/ia64/ia64.c: Likewise.
15272 * config/m32r/m32r.h: Likewise.
15273 * config/m68hc11/m68hc11.md: Likewise.
15274 * config/mmix/mmix.c: Likewise.
15275 * config/mn10200/mn10200.c: Likewise.
15276 * config/romp/romp.c: Likewise.
15277 * config/sh/sh.c: Likewise.
15278 * config/stormy16/stormy16.c: Likewise.
15279 * config/stormy16/stormy16.h: Likewise.
15280 * config/stormy16/stormy16.md: Likewise.
15282 2002-01-03 Graham Stott <grahams@redhat.com>
15284 * loop.h: Update copyright date.
15285 (LOOP_MOVABLES): Fix typo.
15286 (LOOP_REGS): Likewise.
15287 (LOOP_IVS): Likewise.
15289 2002-01-03 Graham Stott <grahams@redhat.com>
15291 * cppinit.c: Update copyright date.
15292 Don't include output.h
15293 * Makefile.in: Update copyright date.
15296 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
15299 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
15300 (-pthread) Add to RS/6000 options.
15302 2002-01-02 Kazu Hirata <kazu@hxi.com>
15304 * except.c: Fix comment typos.
15305 * loop.c: Likewise.
15306 * varasm.c: Likewise.
15307 * doc/tm.texi: Fix a typo.
15309 2002-01-02 Jakub Jelinek <jakub@redhat.com>
15311 * c-typeck.c (output_init_element): Allow initializing static storage
15312 duration objects with compound literals.
15314 2002-01-02 Richard Henderson <rth@redhat.com>
15316 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
15319 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15321 * gcc.c (default_compilers): Const-ify.
15322 * mips-tdump.c (stab_names): Likewise.
15323 * mips-tfile.c (map_coff_types, map_coff_storage,
15324 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
15325 pseudo_ops_t, pseudo_ops): Likewise.
15326 * protoize.c (default_include): Likewise
15328 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
15329 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
15330 Add array size in declaration.
15331 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
15332 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
15333 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
15334 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
15335 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
15336 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
15337 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
15338 emtens, make_nan): Const-ify.
15339 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
15340 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
15342 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
15344 * config.gcc (ia64-*-*): Set extra_headers.
15345 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
15346 * config/alpha/t-osf: Remove.
15347 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
15349 2002-01-02 David Edelsohn <edelsohn@gnu.org>
15351 * config/rs6000/t-aix43: Revert previous change.
15353 2002-01-02 Jason Merrill <jason@redhat.com>
15355 * c-decl.c (c_expand_body): Call outlining_inline_function when
15356 emitting an inline function out of line.
15358 2002-01-02 Richard Henderson <rth@redhat.com>
15360 * dwarf2out.c (limbo_die_node): Add created_for member.
15361 (new_die): New argument created_for. Update all callers.
15362 (mark_limbo_die_list): New.
15363 (dwarf2out_init): Register limbo_die_list as a root.
15364 (dwarf2out_finish): Force insert limbo dies into their function
15367 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
15370 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
15372 2002-01-02 Kazu Hirata <kazu@hxi.com>
15374 * config/h8300/fixunssfsi.c: Update copyright.
15377 * config/h8300/h8300.c: Update copyright.
15378 Eliminate warnings.
15380 2002-01-02 Kazu Hirata <kazu@hxi.com>
15382 * config/romp/romp.c: Fix comment formatting.
15383 * config/romp/romp.h: Likewise.
15384 * config/romp/romp.md: Likewise.
15385 * config/s390/s390.c: Likewise.
15386 * config/stormy16/stormy16.c: Likewise.
15387 * config/stormy16/stormy16.h: Likewise.
15389 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
15391 * c-common.h (genrtl_expr_stmt_value): Declare.
15392 * c-semantics.c (genrtl_goto_stmt): Redirect to...
15393 (genrtl_goto_stmt_value): ... this new function. Pass new
15394 argument down to expand_expr_stmt_value, taking
15395 TREE_ADDRESSABLE into account.
15396 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
15397 STMT_EXPR as addressable, i.e., one whose result we want.
15398 * expr.c (expand_expr): Don't save expression statement value
15399 of labeled_blocks or loop_exprs.
15400 * stmt.c (expand_expr_stmt): Redirect to...
15401 (expand_expr_stmt_value): ... this new function. Use new
15402 argument to tell whether to save expression value.
15403 (expand_end_stmt_expr): Reset last_expr_type and
15404 last_expr_value if we don't have either.
15405 * tree-inline.c (declare_return_variable): Mark its use
15406 statement as addressable.
15407 * tree.h: Document new use of TREE_ADDRESSABLE.
15408 (expand_expr_stmt_value): Declare.
15410 2002-01-01 Tom Rix <trix@redhat.com>
15412 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
15413 rs6000_emit_allocate_stack.
15415 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
15417 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
15418 ${srcdir}/ginclude/ to every entry in extra_headers.
15419 * configure: Regenerate.
15420 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
15421 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
15422 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
15423 * ginclude/proto.h: Rename to config/convex/proto.h.
15425 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15427 * attribs.c (handle_vector_size_attribute): Use host_integerp
15428 and tree_int_cst; remove warnings.
15429 * caller-save.c (insert_restore): Add cast to get rid of warning.
15430 (insert_save): Likewise.
15431 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
15432 * regmove.c (find_matches): Add temporary var to kill a warning.
15434 2002-01-01 Douglas B Rupp <rupp@gnat.com>
15436 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
15437 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
15438 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
15439 (vms-dwarf2eh.o): Add Makefile rule.
15440 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
15441 * config/alpha/vms-dwarf2eh.asm: New file.
15443 * gcc.c (delete_if_ordinary): Delete all versions.
15445 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
15447 * config/mmix/mmix.md: Update FIXME to not mention
15449 (MMIX_rJ_REGNUM): New define_constants constant.
15450 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
15451 "*movdicc_real"): Adjust contraints formatting.
15452 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
15453 for branch prediction.
15454 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
15456 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
15457 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
15458 number. Delete related FIXMEs.
15459 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
15460 from number to MMIX_rJ_REGNUM.
15461 (TARGET_MASK_BRANCH_PREDICT): New.
15462 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
15463 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
15464 value. Add -mbranch-predict and -mno-branch-predict.
15465 (TARGET_VERSION): Drop date.
15466 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
15467 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
15468 for finding out global symbols.
15469 (mmix_asm_output_labelref): Revert condition for global symbol.
15470 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
15471 (mmix_print_operand_punct_valid_p): A '+' is valid.
15473 See ChangeLog.6 for earlier changes.