1 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3 * genautomata.c (reserv_sets_hash_value): Fix a typo.
5 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7 * genautomata.c (reserv_sets_hash_value): Define hash_value as
8 set_el_t. Transform the hash value into unsigned.
9 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
10 (transform_3): Add code to process `(A,B)+(D,E)'.
12 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
14 * reload1.c (do_output_reload): Run delete_output_reload
17 2002-05-21 Roger Sayle <roger@eyesopen.com>
20 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
21 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
22 (can_store_by_pieces): ... and here to limit the largest mode used.
23 Add a comment to document this function.
25 2002-05-21 Richard Henderson <rth@redhat.com>
27 * flow.c (life_analysis): Fix test for deleted label.
29 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
31 * doc/tm.texi: Fix typo.
33 2002-05-21 Zack Weinberg <zack@codesourcery.com>
35 * c-common.c (c_common_init): Set options->unsigned_char from
37 (cb_register_builtins): Define __STRICT_ANSI__ and
38 __CHAR_UNSIGNED__ here...
39 * cppinit.c (init_builtins): Not here.
40 (cpp_create_reader): unsigned_char option defaults to 0, not
42 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
45 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
46 * cpphash.c (_cpp_init_hashtable): Don't set it.
47 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
48 directly. Clarify comment.
50 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
52 * bb-reorder.c (make_reorder_chain_1): Modified.
53 * cfganal.c (can_fallthru, flow_call_edges_add,
54 flow_preorder_transversal_compute): Modified.
55 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
56 find_sub_basic_blocks): Modified.
57 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Modified.
58 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
59 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Modified.
60 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Modified.
61 * combine.c (this_basic_block): Type changed to basic_block.
62 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
63 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
64 get_last_value, distribute_notes, distribute_links): Modified.
65 * final.c (compute_alignments): Modified.
66 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Modified.
67 * function.c (thread_prologue_and_epilogue_insns): Modified.
68 * gcse.c (compute_code_hoist_vbeinout): Modified.
69 * global.c (build_insn_chain): Modified.
70 * ifcvt.c (find_if_block, find_cond_trap): Modified.
71 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Modified.
72 * regmove.c (regmove_optimize): Modified.
73 * resource.c (find_basic_block): Modified.
74 * sched-ebb.c (schedule_ebbs): Modified.
75 * ssa-dce.c (find_control_dependence, find_pdom): Modified.
77 2002-05-21 Andreas Jaeger <aj@suse.de>
79 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
81 2002-05-21 Richard Henderson <rth@redhat.com>
83 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
84 unspec names, not numbers.
86 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
88 * doc/sourcebuild.texi: Mention snapshot-README and
89 snapshot-index.html as needing updating for new front ends.
91 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
93 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
94 disabling checking, and avoid multiple evaluation of RTX.
96 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
98 * bitmap.c (bitmap_find_bit): Return early if we have the correct
101 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
103 * profile.c (gen_edge_profiler): Set alias set before the memory is
106 2002-05-20 David S. Miller <davem@redhat.com>
108 * cselib.c (max_value_regs): New.
109 (cselib_lookup, cselib_invalidate_regno): Initialize it when
110 adding new entries to the REG_VALUES table and we are dealing with
112 (clear_table): Initialize it.
113 (cselib_invalidate_regno): Use it to determine which hard
114 registers to scan when mode is not VOIDmode.
116 2002-05-20 Duraid Madina <duraid@fl.net.au>
118 * tradcpp.c (fixup_newlines): Use old-style function header.
120 2002-05-20 Krister Walfridsson <cato@df.lth.se>
122 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
124 2002-05-20 H.J. Lu (hjl@gnu.org)
126 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
128 * config/mips/mips.h (DFMODE_NAN): Defined.
129 (SFMODE_NAN): Likewise.
131 2002-05-20 Dale Johannesen <dalej@apple.com>
133 * combine.c (cant_combine_insn_p): Back out my
136 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
138 * params.c: Fix formatting.
139 * params.h: Likewise.
140 * predict.c: Likewise.
141 * prefix.c: Likewise.
142 * print-rtl.c: Likewise.
143 * print-tree.c: Likewise.
144 * profile.c: Likewise.
146 2002-05-20 H.J. Lu (hjl@gnu.org)
148 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
150 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
152 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
153 switches straight on to the assembler, do not abbreviate them.
154 * config/arm/elf.h (ASM_SPEC): As above.
155 * config/arm/semi.h (ASM_SPEC): As above.
156 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
157 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
158 -mcpu=xscale on to the assembler by default.
159 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
161 2002-05-20 Richard Henderson <rth@redhat.com>
163 * cse.c (canon_hash): Reorder do_not_record test. Always
164 allow pic_offset_table_rtx.
166 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
168 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
169 (expand_binop): Ditto (3 times).
171 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
173 * Makefile.in (distclean): Remove QMTest stuff.
174 (QMTEST_PATH): New variable.
175 (QMTESTFLAGS): Likewise.
176 (QMTESTRUNFLAGS): Likewise.
178 (QMTEST_GPP_TESTS): Likewise.
179 (QMTEST_DIR): Likewise.
180 (QMTEST_DIR/context): New target.
181 (qmtest-g++): Likeise.
182 (qmtest-gui): Likewise.
183 (QMTEST_DIR/gpp-expected.qmr): Likewise.
185 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
187 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
188 an altivec register if TARGET_ALTIVEC.
190 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
191 to ALTIVEC_VECTOR_MODE.
192 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
193 (rs6000_va_arg): Vectors may go in registers if they are not
196 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
198 * protoize.c: Fix formatting.
200 2002-05-19 Richard Henderson <rth@redhat.com>
202 * gensupport.c (init_include_reader): Merge into ...
203 (process_include): ... here. Simplify composite path creation.
204 Plug memory leaks. Fix file/line number tracking. Do not
205 process_define_cond_exec. Return void.
206 (process_rtx): Don't check process_include return value.
208 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
210 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
212 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
213 traversing basic block chain.
214 (create_basic_block_structure, create_basic_block): Declaration changed.
215 (link_block, unlink_block): Declare.
216 * cfg.c (entry_exit_blocks): Initialize new fields.
217 (link_block, unlink_block): New.
218 (expunge_block_nocompact): Unlink basic block.
219 (dump_flow_info): Print prev_bb/next_bb fields.
220 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
221 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
222 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
223 * cfgrtl.c (create_basic_block_structure, create_basic_block,
224 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
225 (verify_flow_info): Check that list agrees with numbering.
227 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
229 * c-common.c (preprocessing_asm): New macro.
230 * c-lex.h (builtin_define, builtin_assert): Use pfile.
234 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
235 (CPP_SPEC): Simplify.
236 (TARGET_CPU_CPP_BUILTINS): Update.
237 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
238 (CPP_SPEC): Simplify.
239 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
240 (TARGET_OS_CPP_BUILTINS): Update.
241 * osf.h (CPP_XFLOAT_SPEC): Kill.
242 (TARGET_OS_CPP_BUILTINS): Update.
243 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
244 * osf5.h (CPP_XFLOAT_SPEC): Kill.
245 * vms.h (CPP_SUBTARGET_SPEC): Kill.
246 (TARGET_OS_CPP_BUILTINS): Update.
248 2002-05-19 Richard Henderson <rth@redhat.com>
250 * varasm.c (default_binds_local_p): Fix typo.
252 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
254 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
255 CONST_INT operand to the correct mode after adding 1 to it.
257 2002-05-19 Mark Mitchell <mark@codesourcery.com>
259 * config.gcc (powerpc-wrs-windiss*): New target.
261 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
263 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
266 2002-05-18 Mark Mitchell <mark@codesourcery.com>
268 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
270 * config.in: Regenerated.
271 * configure: Regenerated.
273 2002-05-19 Richard Henderson <rth@redhat.com>
275 * target-def.h (TARGET_BINDS_LOCAL_P): New.
276 * target.h (struct gcc_target): Move boolean fields to the end.
278 * varasm.c (default_binds_local_p): New.
279 * output.h: Declare it.
281 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
282 * config/cris/cris.c (cris_encode_section_info): Likewise.
283 * config/i386/i386.c (i386_encode_section_info): Likewise.
284 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
285 * config/sh/sh.c (sh_encode_section_info): Likewise.
287 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
288 (TARGET_BINDS_LOCAL_P): New.
290 2002-05-19 Richard Henderson <rth@redhat.com>
292 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
293 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
294 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
296 * toplev.c (display_help): Kill -a -ax help.
298 * config/1750a/1750a.h, config/alpha/alpha.h,
299 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
300 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
301 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
302 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
304 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
305 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
307 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
308 (ix86_output_function_block_profiler): Kill.
309 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
310 (m68hc11_function_block_profiler): Kill.
311 * config/m68hc11/m68hc11-protos.h: Update.
312 * config/m88k/m88k.c (output_block_profiler): Kill.
313 (output_function_block_profiler): Kill.
314 * config/m88k/m88k-protos.h: Update.
316 2002-05-19 Richard Henderson <rth@redhat.com>
318 * system.h (STRIP_NAME_ENCODING): Poison it.
319 * output.h (STRIP_NAME_ENCODING): Remove.
320 (default_strip_name_encoding): Declare.
321 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
322 * target.h (strip_name_encoding): New.
323 * varasm.c (default_strip_name_encoding): New.
325 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
326 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
327 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
328 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
329 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
330 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
331 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
332 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
333 config/v850/v850.h: Use the hook, not the macro.
335 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
336 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
337 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
338 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
339 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
340 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
341 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
342 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
343 config/v850/v850.c, config/v850/v850.h:
344 Move STRIP_NAME_ENCODING to out-of-line function and add
345 TARGET_STRIP_NAME_ENCODING.
347 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
348 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
349 with TARGET_STRIP_NAME_ENCODING referencing existing function;
350 make function static.
352 * xcoffout.c: Include target.h
353 * Makefile.in (xcoffout.o): Update.
355 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
356 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
357 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
358 reloc argument unused.
359 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
361 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
362 STRIP_NAME_ENCODING docs.
364 2002-05-19 Andreas Jaeger <aj@suse.de>
366 * gengenrtl.c: Add prototype for excluded_rtx.
368 * real.h: Add prototype for exact_real_truncate.
370 2002-05-18 Richard Henderson <rth@redhat.com>
372 * system.h (ENCODE_SECTION_INFO): Poison it.
373 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
374 * target.h (encode_section_info): New.
375 * varasm.c (make_decl_rtl, output_constant_def): Use it.
376 * hooks.c (hook_tree_int_void): New.
377 * hooks.h: Declare it.
379 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
380 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
381 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
382 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
383 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
384 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
385 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
386 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
387 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
388 config/mcore/mcore-protos.h, config/mcore/mcore.c,
389 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
390 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
391 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
392 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
393 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
394 referencing existing function. Make function static.
396 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
397 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
398 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
399 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
400 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
401 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
402 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
403 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
404 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
405 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
406 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
407 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
408 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
409 Move ENCODE_SECTION_INFO to out-of-line function and add
410 TARGET_ENCODE_SECTION_INFO.
412 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
413 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
415 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
417 (switch_to_section): Replace in_rdata case with in_readonly_data.
419 * config/h8300/h8300.c (h8300_encode_label): Make static.
420 * config/h8300/h8300-protos.h: Update.
422 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
423 from rs6000_encode_section_info; make static.
424 (rs6000_xcoff_encode_section_info): New.
426 * config/v850/v850.c (v850_encode_data_area): Make static.
427 * config/v850/v850-protos.h: Update.
429 * config/vax/vax.c: Include flags.h.
430 (vms_select_section): Fix typo.
432 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
433 ENCODE_SECTION_INFO docs.
435 2002-05-18 Richard Henderson <rth@redhat.com>
437 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
438 REGISTER_TARGET_PRAGMAS.
439 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
441 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
443 2002-05-18 Richard Henderson <rth@redhat.com>
445 * system.h (SELECT_RTX_SECTION): Poison.
446 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
447 * target.h (select_rtx_section): New.
448 * varasm.c (output_constant_pool): Use it.
449 (default_select_rtx_section, default_elf_select_rtx_section): New.
450 * output.h: Declare them.
452 * config/darwin.h (SELECT_RTX_SECTION): Move ...
453 * config/darwin.c (machopic_select_rtx_section): ... here.
454 * config/darwin-protos.h: Update.
456 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
457 * config/nextstep.c (machopic_select_rtx_section): ... here.
458 (nextstep_select_section): Rename variable to avoid macro clash.
459 * config/nextstep-protos.h: Update.
461 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
462 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
463 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
464 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
465 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
466 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
467 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
468 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
469 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
470 (SELECT_RTX_SECTION): Remove.
472 * config/darwin.h, config/elfos.h, config/nextstep.h,
473 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
474 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
475 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
476 config/sparc/lynx.h, config/xtensa/xtensa.c
477 (TARGET_ASM_SELECT_RTX_SECTION): New.
479 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
480 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
481 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
482 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
483 (ia64_aix_select_rtx_section): New.
484 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
486 * config/mips/mips.c (mips_select_rtx_section): Make static.
487 Support ELF SHF_MERGE features.
488 * config/mips/mips-protos.h: Update.
489 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
490 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
491 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
492 make static, fall back to default_elf_select_rtx_section.
493 * config/rs6000/rs6000-protos.h: Update.
494 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
495 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
496 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
497 * config/romp/romp.c (romp_select_rtx_section): New.
498 * config/s390/s390.c (s390_select_rtx_section): New.
499 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
500 declarations before target macro definition.
501 (xtensa_emit_call): Use static buffer.
502 (xtensa_select_rtx_section): New.
503 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
504 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
505 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
507 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
508 SELECT_RTX_SECTION docs.
510 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
512 * i386.md (movsi/movdi): Fix template.
513 (sse2 patterns): Set attributes consistently.
515 * i386.md (pushqi2, ashrqi_*): Fix constraint.
517 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
519 * optabs.c (complex_part_zero_p): New.
520 * (expand_cmplxdiv_straight): Use it.
521 * (expand_cmplxdiv_wide): Ditto.
522 * (expand_binop): Ditto.
524 2002-05-18 Richard Henderson <rth@redhat.com>
526 * final.c (HAVE_READONLY_DATA_SECTION): New.
527 (shorten_branches): Use it instead of ifdefs.
528 * varasm.c (enum in_section): Add in_readonly_data.
529 (text_section, data_section): Tidy.
530 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
532 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
533 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
534 (READONLY_DATA_SECTION): Don't undef.
536 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
537 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
538 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
540 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
541 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
542 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
543 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
545 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
546 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
547 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
548 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
549 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
550 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
551 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
552 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
553 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
555 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
556 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
557 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
558 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
559 config/pa/pa64-hpux.h, config/sparc/litecoff.h
560 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
562 * config/elfos.h, config/netware.h, config/svr3.h,
563 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
564 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
565 config/h8300/h8300.h, config/i386/i386-interix.h,
566 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
567 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
569 * config/elfos.h, config/netware.h, config/svr3.h,
570 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
571 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
572 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
573 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
575 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
576 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
577 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
578 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
579 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
580 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
581 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
582 config/rs6000/sysv4.h, config/v850/v850.h
583 (EXTRA_SECTIONS): Remove in_const/in_rdata.
584 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
586 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
587 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
588 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
589 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
590 * config/alpha/alpha.c (alpha_start_function): Likewise.
591 (alpha_write_linkage): Likewise.
592 * config/m32r/m32r.c (m32r_select_section): Likewise.
593 * config/m88k/m88k.c (m88k_select_section): Likewise.
594 * config/mips/mips.c (mips_select_rtx_section): Likewise.
595 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
596 (rs6000_elf_select_section): Likewise.
597 * config/v850/v850.c (v850_select_section): Likewise.
599 * config/1750a/1750a.h, config/i860/sysv3.h
600 (READONLY_DATA_SECTION_ASM_OP): New.
601 READONLY_DATA_SECTION_ASM_OP.
602 * config/i386/interix.c, config/i386/winnt.c
603 (i386_pe_unique_section): Always use .rdata prefix.
604 * config/pa/som.h (readonly_data): Always switch to read-only section.
605 (READONLY_DATA_SECTION): Predicate on flag_pic.
606 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
607 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
608 (READONLY_DATA_SECTION): Update.
610 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
612 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
613 is used without -Wformat.
614 * c-common.h (warn_format_zero_length): Declare extern.
615 * c-decl.c (warn_options): Add "format-zero-length".
616 * c-format.c (warn_format_zero_length): Declare.
617 (set_Wformat): Set warn_format_zero_length for -Wformat.
618 (check_format_info): Only warn about zero-length formats if
619 warn_format_zero_length is true. Include the format type
620 name in the warning message.
621 * doc/invoke.texi: Document -Wformat-zero-length.
622 * testsuite/gcc.dg/format/zero-length-1.c: New test.
624 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
626 * timevar.c: Fix formatting.
628 * toplev.c: Likewise.
629 * tree-dump.c: Likewise.
630 * tree-inline.c: Likewise.
632 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
634 * cppinit.c (cpp_post_options): If preprocessed, turn off
635 traditional. If traditional, turn off column numbers.
636 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
637 * cpptrad.c (handle_newline): Update line_base.
638 (skip_comment): Handle -Wcomment.
640 2002-05-17 Zack Weinberg <zack@codesourcery.com>
642 * cppinit.c (struct builtin): Remove unused fields.
643 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
644 (operator_array): New - was second half of builtin_array.
645 (init_builtins): Simplify loop over builtin_array/operator_array.
647 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
649 * defaults.h (UNIQUE_SECTION): Remove.
650 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
652 2002-05-17 Richard Henderson <rth@redhat.com>
654 * expr.c (init_expr_once): Don't use start/end_sequence.
655 Use rtx_alloc instead of emit_insn.
656 * toplev.c (lang_dependent_init): Run init_expr_once here ...
657 (lang_independent_init): ... not here.
659 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
661 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
663 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
665 * config/avr/avr.c (avr_regs_to_save): New function. Also check
666 for fixed registers, possibly used for global register variables.
667 (initial_elimination_offset, avr_output_function_prologue,
668 avr_output_function_epilogue): Move common code to avr_regs_to_save.
670 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
672 * Makefile.in: Update for cpptrad.c.
673 * cpphash.h (struct cpp_buffer): New members for buffer
675 (struct cpp_reader): New members for traditional output.
676 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
677 * cppinit.c (cpp_create_reader): Set trad_line.
678 (cpp_destroy): Free trad_out_base if used.
679 (cpp_read_main_file): Overlay an empty buffer if traditional.
680 (cpp_finish_options): Don't do builtins.
681 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
682 (cpp_handle_option): Handle it.
683 * cpplex.c (continue_after_nul): New.
684 (_cpp_lex_direct): Use handle_nul.
685 * cpplib.h (struct cpp_options): New traditional option.
686 * cpptrad.c: New file.
688 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
690 * c-common.c (c_common_init_options): Use C89 for Objective-C,
691 and set the options flag.
692 * cppinit.c (lang_flags): Remove objc.
693 (lang_defaults): Remove OBJC and OBJCXX.
695 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
696 (cpp_handle_option): Remove -+ and -lang-objc++.
697 For ObjC, just set a flag.
698 (print_help): Update.
699 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
701 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
703 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
704 bootstrap with -mips3.
706 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
708 * final.c: Fix formatting.
709 * fix-header.c: Likewise.
711 * fold-const.c: Likewise.
712 * function.c: Likewise.
714 2002-05-17 David S. Miller <davem@redhat.com>
716 PR c/6689, PR optimization/6615
717 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
718 and make it a pointer to rtx. Update comments.
719 (update_equiv_regs): When scanning for equivalences, record
720 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
721 it while making the equiv replacements.
723 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
725 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
727 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
729 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
730 when encoding visibility into SYMBOL_REF_FLAG.
732 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
734 * expr.c (force_operand): Fix reversed move.
736 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
738 * doc/install.texi (Testing): Mention two common DejaGnu warnings
741 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
743 * doc/install.texi (Final install): Recommend to install into a
744 "clean" target directory.
746 2002-05-17 Richard Henderson <rth@redhat.com>
748 * config/ia64/ia64.md: Use braced strings instead of quoted strings
749 for code blocks. Tidy whitespace.
751 2002-05-17 Richard Henderson <rth@redhat.com>
753 * hooks.c (hook_tree_bool_false): New.
754 * hooks.h: Declare it.
755 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
756 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
757 * target.h (select_section, unique_section): New.
758 (in_small_data_p): New.
759 * varasm.c (resolve_unique_section): Use hooks instead of macros.
760 (variable_section, output_constant_def_contents): Likewise.
761 (default_select_section, default_unique_section): New.
762 (categorize_decl_for_section, default_elf_select_section): New.
763 * output.h: Declare them.
765 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
766 (TARGET_ASM_SELECT_SECTION): New.
767 (SELECT_SECTION): Move ...
768 * config/darwin.c (machopic_select_section): ... here.
769 * config/darwin-protos.h: Update.
771 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
772 (SELECT_SECTION): Move ...
773 * config/nextstep.c (nextstep_select_section): ... here.
774 * config/nextstep-protos.h: Update.
776 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
777 (TARGET_ASM_SELECT_SECTION): New.
778 * config/svr3.h (SELECT_SECTION): Remove.
780 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
781 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
782 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
783 (alpha_encode_section_info): Use it.
784 * config/alpha/alpha-protos.h: Update.
785 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
786 (SELECT_SECTION, UNIQUE_SECTION): Remove.
787 (TARGET_ASM_SELECT_SECTION): New.
788 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
790 * config/arm/pe.h (UNIQUE_SECTION): Remove.
791 (TARGET_ASM_UNIQUE_SECTION): New.
793 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
794 (avr_unique_section): Rename from unique_section; make static.
795 * config/avr/avr-protos.h: Update.
796 * config/avr/avr.h (UNIQUE_SECTION): Remove.
798 * config/c4x/c4x.h (SELECT_SECTION): Remove.
800 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
801 (TARGET_ASM_UNIQUE_SECTION): New.
802 * config/i386/i386-interix.h: Likewise.
803 * config/i386/win32.h: Likewise.
804 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
805 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
806 * config/i386/sco5.h (SELECT_SECTION): Remove.
807 (TARGET_ASM_SELECT_SECTION): New.
808 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
810 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
811 instead of SELECT_SECTION.
812 * config/m68k/dpx2.h: Likewise.
813 * config/rs6000/lynx.h: Likewise.
815 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
816 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
817 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
818 (ia64_in_small_data_p): New.
819 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
820 (ia64_aix_select_section, ia64_aix_unique_section): New.
821 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
822 (SELECT_SECTION, UNIQUE_SECTION): Remove.
824 * config/m32r/m32r.h (SELECT_SECTION): Remove.
825 (TARGET_ASM_SELECT_SECTION): New.
826 * config/m32r/m32r.c (m32r_select_section): Take align argument.
827 * config/m32r/m32r-protos.h: Update.
829 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
830 (SELECT_SECTION): Move ...
831 * config/m88k/m88k.c (m88k_select_section): ... here.
833 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
834 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
835 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
836 (mcore_unique_section): Make static.
837 * config/mcore/mcore-protos.h: Update.
839 * config/mips/elf.h (UNIQUE_SECTION): Remove.
840 (TARGET_ASM_UNIQUE_SECTION): New.
841 * config/mips/elf64.h: Likewise.
842 * config/mips/iris6gld.h: Likewise.
843 * config/mips/linux.h: Likewise.
844 * config/mips/mips-protos.h: Update.
845 * config/mips/mips.c (mips_select_section): Add align argument.
846 * config/mips/mips.h (SELECT_SECTION): Remove.
847 (TARGET_ASM_SELECT_SECTION): New.
849 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
850 * config/mmix/mmix.c (mmix_select_section): Remove.
851 (mmix_unique_section): Remove.
852 * config/mmix/mmix-protos.h: Update.
854 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
855 (SELECT_SECTION): Move ...
856 * config/pa/pa.c (pa_select_section): ... here.
857 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
859 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
860 from rs6000_select_section and make static.
861 (rs6000_elf_unique_section): Similarly.
862 (rs6000_xcoff_select_section): From xcoff.h.
863 (rs6000_xcoff_unique_section): Likewise.
864 * config/rs6000/rs6000-protos.h: Update.
865 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
866 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
867 * config/rs6000/xcoff.h: Likewise.
869 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
870 (SELECT_SECTION): Move ...
871 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
873 * config/v850/v850.h (SELECT_SECTION): Move ...
874 * config/v850/v850.c (v850_select_section): ... here.
875 (TARGET_ASM_SELECT_SECTION): New.
877 * config/vax/vms.h (SELECT_SECTION): Move ...
878 * config/vax/vax.c (vms_select_section): ... here.
879 (TARGET_ASM_SELECT_SECTION): New.
881 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
882 for the target hooks.
884 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
886 * config/arm/arm.c (emit_multi_reg_push): Do not set
887 RTX_FRAME_RELATED_P on the SEQUENCE.
889 2002-05-16 Richard Henderson <rth@redhat.com>
891 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
892 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
894 2002-05-16 Richard Henderson <rth@redhat.com>
896 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
898 * config/ia64/ia64.c (saveable_obstack): Do not declare.
900 2002-05-16 Richard Henderson <rth@redhat.com>
902 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
903 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
904 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
905 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
906 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
907 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
908 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
909 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
910 Revert "Basic block renumbering removal", and two followup patches.
912 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
914 * lcm.c (optimize_mode_switching): Revert previous change.
916 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
918 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
919 with only extant block numbers.
921 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
923 * lcm.c (optimize_mode_switching): Fix typo.
925 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
927 * flow.c (calculate_global_regs_live): Queue blocks in program order.
929 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
931 * doc/install.texi (Configuration): Document PWDCMD.
933 2002-05-16 Dale Johannesen <dalej@apple.com>
935 * combine.c (cant_combine_insn_p): Reenable combinations
936 involving hard regs unless CLASS_LIKELY_SPILLED_P.
938 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
940 * c-common.c (cb_register_builtins): Handle more built-ins
941 here rather than in gcc.c specs.
942 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
943 (cpp_options): Pass -O flags even when only preprocessing.
944 * toplev.c (set_fast_math_flags): New prototype.
945 (fast_math_flags_set_p): New.
946 (set_no_fast_math_flags): Remove.
947 (decode_f_option): Update.
948 * toplev.h (set_fast_math_flags): Update.
949 (fast_math_flags_set_p): New.
950 (set_no_fast_math_flags): Remove.
952 * c4x/c4x.c (c4x_override_options): Update.
954 2002-05-16 Zack Weinberg <zack@codesourcery.com>
956 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
958 (builtin_define_with_value): Can now wrap the expansion in
959 quotation marks if such is wanted.
960 (cb_register_builtins): Update calls to builtin_define_with_value.
961 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
963 (c_common_init): Set options->stdc_0_in_system_headers.
964 * c-lex.h: Update prototype of builtin_define_with_value.
965 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
968 * cppinit.c (VERS, ULP, C, X): Kill.
969 (builtin_array): Remove entries for __VERSION__,
970 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
971 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
973 (init_builtins): Kill off a bunch of now-dead code.
974 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
975 -fno-leading-underscore.
976 (cpp_handle_option): Remove code to set user_label_prefix.
977 (cpp_post_options): Likewise.
979 * cpplib.h (struct cpp_options): Remove user_label_prefix.
980 (stdc_0_in_system_headers): New.
981 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
982 stdc_0_in_system_headers) too to decide the value of __STDC__.
984 * tradcpp.c (user_label_prefix): Kill.
985 (main): Remove code handling -f(no-)leading-underscore.
986 (initialize_builtins): Don't define __REGISTER_PREFIX__
987 or __USER_LABEL_PREFIX__.
988 (install_value): Wrap compound statement in dummy loop so the
989 macro works properly in an if statement.
992 2002-05-16 Janis Johnson <janis187@us.ibm.com>
994 * loop.h (struct loop_info): Add member has_prefetch.
995 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
996 (prescan_loop): Initialize has_prefetch.
997 (struct prefetch_info): Change prefetch_in_loop and
998 prefetch_before_loop from bit fields to ints.
999 (emit_prefetch_instructions): Several small fixes.
1000 (check_dbra_loop): Don't reverse loop that uses prefetch.
1002 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1004 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
1005 * configure.in: Likewise.
1006 * fixinc/check.tpl: Likewise.
1007 * fixinc/fixinc.dgux: Likewise.
1008 * fixinc/fixinc.svr4: Likewise.
1009 * fixinc/fixinc.winnt: Likewise.
1010 * fixinc/fixincl.sh: Likewise.
1011 * fixproto: Likewise.
1012 * configure: Regenerate.
1014 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1016 Basic block renumbering removal:
1017 * basic_block.h (struct basic_block_def): Renamed index to sindex,
1018 added prev_bb and next_bb fields.
1019 (n_basic_blocks): Renamed to num_basic_blocks.
1020 (last_basic_block): New, index of last basic block.
1021 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1022 traversing basic block chain.
1023 (BLOCK_NUM): index -> sindex.
1024 (create_basic_block_structure, create_basic_block): Declaration changed.
1025 (debug_num2bb): Declare.
1026 (expunge_block_nocompact): Declaration removed.
1027 (link_block, unlink_block, compact_blocks): Declare.
1028 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
1029 * cfg.c (entry_exit_blocks): Initialize new fields.
1030 (clear_edges, alloc_block, expunge_block, cached_make_edge,
1031 redirect_edge_pred, dump_flow_info, dump_edge_info,
1032 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
1033 free_aux_for_edges): Modified.
1034 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
1035 (expunge_block_nocompact): Removed.
1036 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
1037 find_unreachable_blocks, create_edge_list, print_edge_list,
1038 verify_edge_list, flow_edge_list_print, remove_fake_successors,
1039 remove_fake_edges, flow_reverse_top_sort_order_compute,
1040 flow_depth_first_order_compute, flow_preorder_transversal_compute,
1041 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
1042 flow_dfs_compute_reverse_execute): Modified.
1043 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
1044 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
1046 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1047 merge_blocks_move_predecessor_nojumps,
1048 merge_blocks_move_successor_nojumps, merge_blocks,
1049 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
1050 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
1051 * cfglayout.c (skip_insns_after_block, label_for_bb,
1052 record_effective_endpoints, scope_to_insns_finalize,
1053 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
1054 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
1055 cfg_layout_duplicate_bb): Modified.
1056 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
1057 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1058 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
1059 flow_loops_find, flow_loop_outside_edge_p): Modified.
1060 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1061 flow_delete_block, compute_bb_for_insn, split_block,
1062 try_redirect_by_replacing_jump, redirect_edge_and_branch,
1063 force_nonfallthru_and_redirect, tidy_fallthru_edge,
1064 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
1065 commit_edge_insertions, commit_edge_insertions_watch_calls,
1066 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
1067 purge_all_dead_edges): Modified.
1068 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
1069 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1070 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
1072 * conflict.c (conflict_graph_compute): Modified.
1073 * df.c (FOR_ALL_BBS): Removed.
1074 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1075 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
1076 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
1077 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
1078 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1079 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
1080 * final.c (compute_alignments, final_scan_insn): Modified.
1081 * flow.c (verify_local_live_at_start, update_life_info,
1082 update_life_info_in_dirty_blocks, free_basic_block_vars,
1083 delete_noop_moves, calculate_global_regs_live,
1084 initialize_uninitialized_subregs, allocate_bb_life_data,
1085 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
1086 mark_used_reg, count_or_remove_death_notes): Modified.
1087 * function.c (thread_prologue_and_epilogue_insns): Modified.
1088 * gcse.c (struct null_pointer_info): Change typo of current_block
1090 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
1091 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
1092 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
1093 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
1094 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
1095 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
1096 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
1097 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
1098 pre_delete, one_pre_gcse_pass, compute_transpout,
1099 invalidate_nonnull_info, delete_null_pointer_checks_1,
1100 free_code_hoist_mem, compute_code_hoist_vbeinout,
1101 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1102 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
1103 compute_store_table, build_store_vectors, insert_insn_start_bb,
1104 insert_store, replace_store_insn, free_store_memory, store_motion):
1106 * global.c (global_alloc, global_conflicts, mark_elimination,
1107 build_insn_chain): Modified.
1108 * graph.c (print_rtl_graph_with_bb): Modified.
1109 * haifa-sched.c (sched_init): Modified.
1110 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1111 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
1112 if_convert): Modified.
1113 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
1114 compute_insert_delete, pre_edge_lcm, compute_available,
1115 compute_farthest, compute_nearerout, compute_rev_insert_delete,
1116 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
1118 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
1119 * loop.c (loop_dump_aux): Modified.
1120 * predict.c (combine_predictions_for_insn, estimate_probability,
1121 last_basic_block_p, process_note_prediction, process_note_predictions,
1122 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
1123 expensive_function_p, estimate_bb_frequencies,
1124 compute_function_frequency): Modified.
1125 * print-rtl.c (print_rtx): Modified.
1126 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
1127 get_exec_counts, compute_branch_probabilities, compute_checksum,
1128 branch_prob, find_spanning_tree): Modified.
1129 * recog.c (split_all_insns, peephole2_optimize): Modified.
1130 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
1131 convert_regs_1, convert_regs_2, convert_regs): Modified.
1132 * regclass.c (scan_one_insn, regclass): Modified.
1133 * regmove.c (mark_flags_life_zones, regmove_optimize,
1134 combine_stack_adjustments): Modified.
1135 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
1136 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
1137 * reorg.c (dbr_schedule): Modified.
1138 * resource.c (find_basic_block, init_resource_info): Modified.
1139 * sbitmap.c (sbitmap_intersection_of_succs,
1140 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
1141 sbitmap_union_of_preds): Modified.
1142 * sched-deps.c (init_dependency_caches): Modified.
1143 * sched-ebb.c (schedule_ebbs): Modified.
1144 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
1145 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
1146 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
1147 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
1148 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
1149 ssa_const_prop): Modified.
1150 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
1151 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
1152 * ssa.c (remove_phi_alternative, find_evaluations,
1153 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
1154 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
1155 make_regs_equivalent_over_bad_edges,
1156 make_equivalent_phi_alternatives_equival,
1157 compute_conservative_reg_partition,
1158 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
1159 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
1162 2002-05-16 Mark Mitchell <mark@codesourcery.com>
1164 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
1166 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1168 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
1169 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1170 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
1171 calling CONSTANT_POOL_ADDRESS_P.
1172 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
1173 to decide whether to define __arm__ or __thumb.
1174 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
1175 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
1177 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1179 * config/arc/arc.h (CPP_PREDEFINES): Remove.
1181 (TARGET_CPU_CPP_BUILTINS): New.
1183 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
1185 * cpphash.h (cpp_macro): Move here, and make expansion a union.
1186 * cppmacro.c (cpp_macro): Remove.
1187 (enter_macro_context, replace_args, warn_of_redefinition,
1188 _cpp_create_definition, cpp_macro_definition): Update.
1190 2002-05-16 Jason Merrill <jason@redhat.com>
1192 * config/mips/mips.c (mips_output_external): Don't do sdata
1193 optimization for a variable with DECL_COMDAT set.
1195 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1197 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
1198 Cleanups for accepting modifiers on pointers.
1199 Fix predicate typos.
1200 Allow long pointers as well as int pointers.
1202 2002-05-15 Richard Henderson <rth@redhat.com>
1204 * varasm.c (merge_weak): Remove special case for extern and common.
1206 2002-05-15 Matt Hiller <hiller@redhat.com>
1208 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
1210 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
1211 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
1212 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
1213 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
1214 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
1215 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
1217 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1219 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
1221 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
1223 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
1224 ("altivec_mfvscr"): Read from VSCR.
1226 Add vscr sets for the following insns: altivec_vctuxs,
1227 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
1228 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
1229 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
1230 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
1231 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
1232 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
1233 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
1234 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
1235 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
1236 altivec_vsum2sws, altivec_vsumsws.
1238 * config/rs6000/rs6000.h: Add VSCR fixed register.
1239 (CALL_REALLY_USED_REGISTERS): Add vscr.
1240 (CALL_USED_REGISTERS): Same.
1241 (FIXED_REGISTERS): Same.
1242 (REG_ALLOC_ORDER): Same.
1243 (reg_class): Add VSCR_REGS.
1244 (REG_CLASS_NAMES): Same.
1245 (REG_CLASS_CONTENTS): Same.
1247 (REGISTER_NAMES): Add vscr.
1248 (DEBUG_REGISTER_NAMES): Same.
1249 (ADDITIONAL_REGISTER_NAMES): Same.
1250 (FIRST_PSEUDO_REGISTER): Increment.
1251 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
1253 2002-05-15 Jakub Jelinek <jakub@redhat.com>
1255 * fold-const.c (fold): Fix a typo.
1257 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
1259 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
1260 comparison against the highest or lowest integer value before
1261 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
1262 transformation and that of an unsigned comparison against 0
1265 2002-05-15 Richard Henderson <rth@redhat.com>
1267 * varasm.c (merge_weak): Error for any weakening after definition.
1268 Adjust weakening after use warning to catch more cases.
1269 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
1270 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
1272 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1274 * invoke.texi (-malign-double): Re-add lost warning.
1276 * i386-protos.h (x86_output_mi_thunk): Declare.
1277 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
1278 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
1280 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
1281 when flag_asynchronous_unwind_tables is set.
1283 * flags.h (flag_reorder_functions): Declare.
1284 * function.c (prepare_function_start): Initialize frequnecy.
1285 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
1286 * Makefile.in (predict.o): Add dependency on target.h and params.h
1287 * defaults.h (HOT_TEXT_SECTION_NAME,
1288 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
1289 * predict.c (choose_function_section): New function.
1290 (estimate_bb_frequencies): Use it.
1291 * toplev.c (flag_reorder_functions): New global variable.
1292 (lang_independent_options): New.
1293 (parse_options_and_default_flags): Set.
1294 * varasm.c (assemble_start_function): Bypass functdion alignment
1295 for never executed functions.
1296 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
1297 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
1298 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1301 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
1303 * predict.c: Inlude profile.h
1304 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
1305 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
1306 Use the information about maximal counter in the program.
1308 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
1310 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
1311 probably_never_executed_bb_p): New functions.
1312 * cfgcleanup.c (outgoing_edges_match): Use them.
1313 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
1314 (maybe_hot_bb_p, probably_cold_bb_p,
1315 probably_never_executed_bb_p): New functions.
1317 * function.h (function): Add new field function_frequency.
1318 * predict.c (compute_function_frequency): New function.
1319 (estimate_probability): Call it.
1321 2002-03-09 Jakub Jelinek <jakub@redhat.com>
1323 PR optimization/5172, optimization/5200
1324 * gcse.c (gcse_main): Disable store_motion.
1326 2002-05-14 Zack Weinberg <zack@codesourcery.com>
1328 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
1329 (c_common_nodes_and_builtins): Use it.
1330 (builtin_define_with_value): New function.
1331 (cb_register_builtins): Define __SIZE_TYPE__,
1332 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
1333 using builtin_define_with_value. Use consistent notation when
1334 defining __GXX_WEAK__.
1335 (WCHAR_TYPE_SIZE): Don't redefine.
1336 (combine_strings): Don't use WCHAR_TYPE_SIZE.
1338 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
1339 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
1340 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
1341 * tradcpp.c (initialize_builtins): Likewise.
1342 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
1344 * c-lex.h (builtin_define_with_value): Prototype.
1345 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
1346 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
1347 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
1349 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
1350 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
1351 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
1352 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
1353 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
1354 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
1355 config/sparc/sol2-bi.h, config/sparc/sparc.h:
1356 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
1357 to __SIZE_TYPE__ etc from all spec strings. When this makes
1358 extra specs empty, delete them.
1360 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
1362 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
1363 for PA8000 or generating dwarf2 call frame information.
1364 (output_call): Remove DO_FRAME_NOTES check from return pointer
1366 (following_call): Return 0 when scheduling for PA8000 or generating
1367 dwarf2 call frame information. Revise comment.
1369 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1372 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
1373 and __IEEE_FP_INEXACT as appropriate.
1374 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
1375 (CPP_SPEC): Remove ieee defines.
1376 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
1378 2002-05-14 Richard Henderson <rth@redhat.com>
1380 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
1381 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
1383 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1385 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
1387 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
1388 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
1389 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
1390 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
1391 (EXTRA_SPECS): Update.
1392 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
1393 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
1394 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
1395 define TARGET_OS_CPP_BUILTINS if necessary.
1397 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
1399 * gcc.c (cpp_options): Must pass -m* and -f* options
1400 to the front end even when only preprocessing.
1401 (cc1_options): Remove redundant -lang-c.
1402 * tradcpp.c (main): Ignore -m options.
1404 * lang-specs.h: Similarly.
1406 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
1408 * genautomata.c (transform_3): Add code for transformation
1409 `(A,B,...)+C -> A+C,B,...'.
1411 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
1413 * final.c (end_final): Do not output profile_arcs constructor, when
1414 no functions are instrumented.
1416 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
1418 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
1420 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1422 * doc/install.texi: Remove special markup originally required for
1423 HTML generation with texi2html.
1425 2002-05-14 Andreas Schwab <schwab@suse.de>
1427 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
1429 (UNIQUE_SECTION): Define to get small data correctly.
1431 * varasm.c (resolve_unique_section): Add third parameter
1432 flag_function_or_data_sections and use it instead of
1433 flag_function_sections.
1434 (assemble_start_function): Pass flag_function_sections.
1435 (asm_emit_uninitialised): Pass flag_data_sections.
1436 (assemble_variable): Likewise.
1438 2002-05-14 Richard Henderson <rth@redhat.com>
1440 * config/i386/i386.md: Use define_constants for unspec numbers.
1441 * config/i386/i386.c: Likewise.
1443 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1445 * doc/contrib.texi: Update my entry.
1447 2002-05-13 Mark Mitchell <mark@codesourcery.com>
1449 * fixinc/inclhack.def (winidss_valist): Limit applicability.
1450 * fixinc/fixincl.x: Regenerated.
1451 * fixinc/tests/base/math.h: Update.
1452 * fixinc/tests/base/testing.h: Likewise.
1454 2002-05-13 Zack Weinberg <zack@codesourcery.com>
1456 * genattr.c (gen_attr): Don't emit a comma after the last
1459 2002-05-13 Richard Henderson <rth@redhat.com>
1461 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
1463 * recog.c (peephole2_optimize): Likewise.
1465 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
1467 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
1470 2002-05-13 Jeffrey A Law (law@redhat.com)
1472 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
1473 Update prototype and callers.
1474 (propagate_one_insn): Stack pointer adjustments kill MEMs on
1475 the mem_set_list which reference the stack pointer, as do
1476 calls to constant functions as they may clobber outgoing
1479 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
1481 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1482 (ia32_multipass_dfa_lookahead): New function.
1484 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1486 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
1487 (translate_options): Remove 'V'.
1488 (process_command): Similarly.
1490 * invoke.texi: Remove documentation of 'V'.
1492 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1494 * config/s390/linux.h: Revert 2002-04-22 changes.
1496 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
1498 * config/fr30/fr30.md: Only allow splits of immediate loads
1499 if the destination is a register.
1501 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
1503 * Makefile.in (c-common.o, cppinit.o): Update.
1504 * c-common.c: Include except.h.
1505 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
1506 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
1507 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
1508 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
1509 CPP_PREDEFINES): Handle here.
1511 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
1512 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
1513 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
1514 TARGET_OS_CPP_BUILTINS.
1515 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
1516 (CPP_SPEC, EXTRA_SPECS): Update.
1517 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
1518 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
1519 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
1520 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
1521 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
1523 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
1524 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
1526 2002-05-12 Zack Weinberg <zack@codesourcery.com>
1528 * emit-rtl.c (global_rtl): Update comment.
1529 (const_double_htab, const_double_htab_hash,
1530 const_double_htab_hash, lookup_const_double): New.
1531 (const_int_htab_hash, const_int_htab_eq): Remove const
1532 qualifiers, which cause tons of warnings with RTL checking on.
1533 (gen_rtx_CONST_DOUBLE): Deleted.
1534 (const_double_from_real_value): New function - bears some
1535 resemblance to the former immed_real_const_1.
1536 (immed_double_const): Moved here from varasm.c and
1538 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
1539 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
1540 (gen_rtx): Use immed_double_const.
1541 (init_emit_once): Initialize the const_double_htab. Use
1542 REAL_VALUE_FROM_INT where possible. Can now use
1543 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
1544 * varasm.c (struct varasm_status): Remove x_const_double_chain.
1545 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
1546 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
1547 (init_varasm_status, mark_varasm_status): Don't touch
1548 x_const_double_chain.
1550 * output.h: Delete prototype for clear_const_double_mem.
1551 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
1552 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
1553 const_double_from_real_value, not immed_real_const_1, and use
1554 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
1556 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
1557 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
1558 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
1559 (gen_rtx_REG): Second arg is unsigned.
1561 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
1562 (excluded_rtx): New, return true for CONST_DOUBLE.
1563 (genmacro): Write nothing for excluded codes.
1564 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
1565 * expr.c (expand_expr): Likewise.
1566 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
1568 * toplev.c (rest_of_compilation): Don't call
1569 clear_const_double_mem.
1571 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
1572 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
1573 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
1574 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
1575 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
1576 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
1577 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
1578 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
1580 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1582 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1584 2002-05-12 Tom Tromey <tromey@redhat.com>
1586 * tree.h (copy_node): Don't mention TREE_PERMANENT.
1588 2002-05-12 Zack Weinberg <zack@codesourcery.com>
1590 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
1591 (scan_comma_elt): New function. Accepts whitespace in comma lists.
1592 * gensupport.h: Prototype new routines.
1593 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
1595 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
1596 (next_comma_elt): Use scan_comma_elt.
1598 * config/i386/i386.md: Use new attribute notation to break up
1599 long lines in define_attr forms.
1601 2002-05-12 Richard Henderson <rth@redhat.com>
1603 * expr.c (compress_float_constant): New.
1604 (emit_move_insn): Use it.
1605 (float_extend_from_mem): New.
1606 (init_expr_once): Initialize it.
1607 * real.c (exact_real_truncate): New.
1609 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1610 dropped into memory; penalize for size.
1611 (RTX_COSTS): FLOAT_EXTEND is free.
1612 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1613 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1615 2002-05-12 Richard Henderson <rth@redhat.com>
1617 * profile.h (profile_info): Add missing extern to declaration.
1618 * profile.c (profile_info): Define it.
1620 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1622 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1623 used for DImode and TImode.
1625 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
1627 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1630 2002-05-11 Zack Weinberg <zack@codesourcery.com>
1632 * config/rs6000/rs6000.c (rs6000_default_long_calls,
1633 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1634 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1635 (rs6000_override_options): Handle -m(no-)longcall.
1636 (init_cumulative_args, output_mi_thunk): Check for both
1637 longcall and shortcall attributes on the function.
1638 (rs6000_attribute_table): Add "shortcall".
1639 (rs6000_handle_longcall_attribute): Update comment.
1640 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1641 altivec_expand_ternop_builtin): Add default clauses to switches
1642 to silence warnings.
1644 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1645 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
1646 (TARGET_OPTIONS): Add longcall and no-longcall.
1648 * config/rs6000/rs6000.md (call_nonlocal_sysv,
1649 call_value_nonlocal_sysv): Split by alternatives. One pair
1650 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1651 the call cookie. The other pair accepts only LR/CTR and has
1654 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1655 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1657 * config/rs6000/rs6000-c.c: New file.
1658 * config/rs6000/t-rs6000-c-rule: New file.
1659 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1660 Prototype rs6000_pragma_longcall.
1662 * doc/extend.texi: Document shortcall attribute.
1663 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1665 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1667 * reorg.c (dbr_schedule): Remove unnecessary test.
1669 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1671 * i386.md (testsi to testqi spliters): New.
1673 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
1675 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1677 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
1679 * basic-block.h: New flag EDGE_CAN_FALLTHRU
1680 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1681 that can be made fallthru.
1683 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
1685 * cfglayout.c (cleanup_unconditional_jumps): New static function.
1686 (cfg_layout_initialize): Use it.
1688 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
1690 * config/avr/avr.c (avr_mcu_types): Update supported devices.
1691 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1692 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1694 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
1696 * dbxout.c: Fix formatting.
1697 * dependence.c: Likewise.
1699 * diagnostic.c: Likewise.
1700 * doloop.c: Likewise.
1701 * dominance.c: Likewise.
1702 * doschk.c: Likewise.
1703 * dwarf2asm.c: Likewise.
1704 * dwarf2out.c: Likewise.
1705 * dwarfout.c: Likewise.
1707 2002-05-10 Richard Henderson <rth@redhat.com>
1709 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
1710 Convert integers constants as needed. Replace "nwords" field with
1712 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1713 * function.h: Fix typo in comment.
1714 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1716 2002-05-10 Roger Sayle <roger@eyesopen.com>
1718 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1719 into the equivalent (signed char)c > 0.
1721 2002-05-10 Janis Johnson <janis187@us.ibm.com>
1723 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1724 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1725 (struct prefetch_info): Fix spelling of member bytes_accessed.
1726 (emit_prefetch_instructions): Make dump messages more regular;
1727 restructure code to add more dump messages; use new macros for
1728 heuristics. (There are no code generation changes in any of this).
1730 2002-05-10 David S. Miller <davem@redhat.com>
1732 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1733 (struct rtx_def): Update unchanging flag comment.
1734 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1735 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1736 to be handled to INSN too.
1737 (dbr_schedule): Likewise.
1738 * resource.c (next_insn_no_annul): Likewise.
1740 * cse.c (rtx_cost): Remove multiplication by power of 2 special
1743 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1745 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1746 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1747 (possibly) work around broken /bin/sh.
1749 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1751 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1752 . as N64/N32 libgcc_s.so subdirs.
1754 2002-05-10 David S. Miller <davem@redhat.com>
1756 * config/sparc/sparc.md: Use define_constants for unspec numbers.
1758 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1760 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1762 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1763 * doc/rtl.texi: Document these macros more accurately.
1764 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1765 JUMP_INSNs and CALL_INSNs.
1766 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1767 or INSN_FROM_TARGET_P if the code is appropriate.
1769 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
1771 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1772 before using SYMBOL_REF_FLAG (addr).
1774 * config/avr/avr-protos.h (avr_io_address_p): Declare.
1775 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1776 Make non-static. Update all callers.
1777 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1778 New insns to clear/set/test a single bit in I/O address space.
1780 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1782 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1784 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1786 * Makefile.in: Update.
1787 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1788 builtin_define_std): New.
1789 (c_common_init): Register CPP builtins callback.
1790 * c-common.h (flag_iso, flag_undef): New.
1791 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1792 * c-lex.c: Don't include target.h.
1793 (cb_register_builtins): Move to c-common.c.
1794 (init_c_lex): Don't register hook here.
1795 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1796 (cpp_define, cpp_assert): Remove.
1797 * gcc.c (cc1_options): Pass -undef to front end.
1798 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1799 (TARGET_INITIALIZER): Update.
1800 * target.h (struct cpp_reader): Don't predeclare.
1801 (struct gcc_target): Remove cpp builtin hook.
1802 * tree.c (default_register_cpp_builtins): Remove.
1806 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1808 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1810 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1812 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1813 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1815 2002-05-09 Jakub Jelinek <jakub@redhat.com>
1817 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1818 * config/sparc/libgcc-sparc-glibc.ver: New file.
1819 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1820 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1822 2002-05-09 Jakub Jelinek <jakub@redhat.com>
1825 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1826 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1827 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1829 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1830 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1831 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1832 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1834 2002-05-09 Richard Henderson <rth@redhat.com>
1836 * config/ia64/ia64.md: Use define_constants for unspec numbers.
1837 * config/ia64/ia64.c: Likewise.
1839 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
1841 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1842 (save_restore_insns): Likewise.
1843 (mips_expand_prologue, mips_expand_epilogue): Update callers.
1844 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1846 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
1848 * athlon.md, k6.md, pentium.md, ppro.md): New files.
1849 * i386.md: Move scheduling information into new files.
1851 * i386.md (type attribute): Add "rotate" for rotate insns.
1852 (rotate insns): Set type to "rotate".
1853 (various attributes and function units): Treat rotate like shift.
1854 (pent_pair attribute): Only rotates by one bit position are
1856 (sbb insns): Explicitly set pent_pair attribute on a couple
1857 that were missing it.
1859 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1861 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1862 make sure that buffer starts on odd word address.
1863 (sh_va_arg): Skip odd fp registers when reading a double precision
1866 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1868 * tree.h (preserve_data, object_permanent_p, type_precision):
1871 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
1873 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1874 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1876 * cpp.texi: Update for removal of obsolete features.
1878 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
1879 Jeffrey A Law (law@redhat.com)
1881 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
1882 the DFA interface for Pentium processors.
1883 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1884 (attr_pent_pair, ix86_pent_find_pair): Remove.
1885 (ix86_sched_reorder_pentium): Remove.
1886 (ix86_sched_reorder): Remove reordering for Pentium.
1887 * i386.md (Pentium scheduling): Rewrite using DFA description.
1889 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1891 * cfganal.c (can_fallthru): Fix fast path.
1892 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1893 with edges to the next block.
1895 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
1896 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1898 * final.c (end_final): Use C trees to output data structures for profiling.
1900 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1901 (profile.o): New dependency profile.h
1902 (final.o): New dependency profile.h
1903 * profile.h: New file. New global structure profile_info.
1904 * final.h (count_edges_instrumented_now): Declare.
1905 (current_function_cfg_checksum): Declare.
1906 (function_list): New structure.
1907 (functions_head, functions_tail): New static variables.
1908 (end_final): Emits more data, removed some -ax stuff.
1909 (final): Stores function names and chcksums.
1910 * gcov-io.h (__write_gcov_string): New function.
1911 (__read_gcov_string): New function.
1912 * gcov.c (read_profile): New function.
1913 (create_program_flow_graph): Uses read_profile instead of reading
1915 (read_files): Removed da_file checking, it's done by read_profile now.
1916 * libgcc2.c (bb_function_info): New structure.
1917 (bb): New field in structure, removed some -ax stuff.
1918 (__bb_exit_func): Changed structure of da_file.
1919 * profile.c (count_edges_instrumented_now): New global variable.
1920 (current_function_cfg_checksum): New global variable.
1921 (max_counter_in_program): New global variable.
1922 (get_exec_counts): New function.
1923 (compute_checksum): New function.
1924 (instrument_edges): Sets count_edges_instrumented_now.
1925 (compute_branch_probabilities): Uses get_exec_counts instead of
1927 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1928 (init_branch_prob): Removed da_file checking, done in get_exec_counts
1930 (end_branch_prob): Removed da_file checking, done in get_exec_counts
1932 * gcov.texi: Updated information about gcov file format.
1934 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
1936 * sbitmap.c: Fix formatting.
1938 * scan-decls.c: Likewise.
1939 * sched-deps.c: Likewise.
1940 * sched-ebb.c: Likewise.
1941 * sched-rgn.c: Likewise.
1942 * sched-vis.c: Likewise.
1943 * sdbout.c: Likewise.
1944 * sibcall.c: Likewise.
1945 * simplify-rtx.c: Likewise.
1947 * ssa-ccp.c: Likewise.
1948 * ssa-dce.c: Likewise.
1950 * stor-layout.c: Likewise.
1951 * stringpool.c: Likewise.
1953 2002-05-09 David S. Miller <davem@redhat.com>
1955 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1957 2002-05-07 David S. Miller <davem@redhat.com>
1959 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1960 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1961 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1962 library implementation clobbers the output before the inputs
1963 are fully consumed, use stack temporary for the output.
1965 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
1967 * config/netbsd.h (CPP_SPEC): Remove.
1968 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1969 * config/i386/netbsd.h (CPP_SPEC): Define.
1970 * config/ns32k/netbsd.h (CPP_SPEC): Define.
1971 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1972 * config/sparc/netbsd.h (CPP_SPEC): Define.
1973 * config/vax/netbsd.h (CPP_SPEC): Define.
1975 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
1977 * read-rtl.c: Fix formatting.
1979 * recog.c: Likewise.
1980 * regclass.c: Likewise.
1981 * regmove.c: Likewise.
1982 * reg-stack.c: Likewise.
1983 * reload1.c: Likewise.
1984 * reload.c: Likewise.
1985 * resource.c: Likewise.
1986 * rtlanal.c: Likewise.
1988 * rtl-error.c: Likewise.
1990 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1992 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1993 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1995 2002-05-08 Bernd Schmidt <bernds@redhat.com>
1997 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1998 use __SSE2__ macro instead.
1999 * config/i386/xmmintrin.h: Likewise.
2001 2002-05-08 Janis Johnson <janis187@us.ibm.com>
2003 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
2004 and use it in all invocations of these macros. Clean up comments.
2005 * rtl.c (rtl_check_failed_flag): Add an argument for the name
2006 of the flag access macro whose check failed.
2007 * doc/rtl.texi (Flags): Document additional flag uses.
2009 2002-05-08 Robert Spier <rspier@pobox.com>
2010 Neil Booth <neil@daikokuya.demon.co.uk>
2012 PR preprocessor/6521
2013 * cppfiles.c (handle_missing_header): Don't do anything
2014 different for <> includes.
2016 * cppopts.texi: Update documentation for -MG.
2018 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
2020 * cpplex.c (cpp_interpret_charconst): Truncate as well as
2023 * cpp.texi: Clarify multichar charconst valuation.
2025 2002-05-08 Mark Mitchell <mark@codesourcery.com>
2027 * doc/invoke.texi: Document -mwindiss option.
2029 2002-05-08 Jason Merrill <jason@redhat.com>
2031 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
2033 * dwarf2out.c (gen_type_die): Abort on broken recursion.
2036 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
2039 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
2041 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
2042 little-endian multilibs to override arm/thumb multilibs.
2043 Do not build hardware floating point multilibs, nor apcs-26
2044 multilibs for the Thumb.
2046 2002-05-08 Mark Mitchell <mark@codesourcery.com>
2049 * varasm.c (mark_weak): New function.
2050 (merge_weak): Use it. Do not call declare_weak.
2051 (declare_weak): Use merge_weak.
2053 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2055 * cse.c (dead_libcall_p): Update counts.
2056 (delete_trivially_dead_insns): Update call of dead_libcall_p.
2058 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2060 * cfglayout.c (function_tail_eff_head): Rename to ...
2061 (function_footer): ... this one.
2062 (unlink_insn_chain): New functions.
2063 (label_for_bb): Only call block_label and emit debug message.
2064 (record_effective_endpoints): Actually unlink the headers and footers.
2065 (fixup_reorder_cahin): Re-insert the unlinked sequences.
2066 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
2067 * cfglayout.h (struct reorder_block_def): New fields footer/header;
2068 remove eff_head/eff_end.
2069 * rtl.h (set_first_insn): Declare.
2070 * emit-rtl.c (set_first_insn): New function.
2072 * cfglayout.c (fixup_reorder_chain): Dump duplicated
2073 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2074 cfg_layout_duplicate_bb): New global function.
2075 (duplicate_insn_chain): New static function.
2076 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
2077 cfg_layout_duplicate_bb): Declare.
2078 (struct reorder_block_def): Add "original" field.
2079 * emit-rtl.c (emit_copy_of_insn_after): New function.
2080 * rtl.h (emit_copy_of_insn_after): Declare.
2082 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
2083 (fixup_reorder_chain): properly handle edges to exit block.
2085 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2086 Jan Hubicka <jh@suse.cz>
2088 * basic-block.h (note_prediction_to_br_prob): declare.
2089 * c-semantics.c: Inlucde predit.h
2090 (expand_stmt): predict GOTO_STMT as not taken.
2091 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
2092 (cleanup_cfg): Do not free tail_recursion_list.
2093 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
2094 (flow_delete_block): Kill predictions past end of basic block.
2095 * output.h (delete_unreachable_blocks): Declare.
2096 * predict.c (predicted_by_p, process_note_predictions,
2097 process_note_prediction, last_block_p): New function.
2098 (estimate_probability): Bypass loop on PRED_CONTINUE;
2099 do not handle noreturn heuristics; kill PRED_RETURN; add
2101 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
2102 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
2103 * predict.h (IS_TAKEN): New constant.
2104 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
2105 * rtl.c (NOTE_INSN_PREDICTION): New.
2106 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
2108 (insn_note): add NOTE_INSN_PREDICTION.
2109 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
2110 CFG; free tail_recursion_label_list.
2111 * stmt.c: Include predict.h;
2112 (return_prediction): New.
2113 (expand_value_return): Use it.
2114 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
2116 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
2118 * config/mips/mips.md: Name the unspecs with define_constant.
2119 (*HILO_delay): Rename to 'hilo_delay' (no star).
2120 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
2121 (reload_outdi, reload_outsi): Likewise.
2123 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
2125 * toplev.c: Fix formatting.
2127 2002-05-07 Janis Johnson <janis187@us.ibm.com>
2129 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
2130 * configure.in (ac_rtlflag_checking): New.
2131 * doc/install.texi (--enable-checking): Document RTL flag checking.
2133 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2135 * c-common.c (c_common_init): Set options->unsigned_wchar.
2136 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
2137 group target dependencies.
2138 (init_builtins, cpp_handle_option): Update.
2139 * cpplex.c (cpp_interpret_charconst): Update.
2140 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
2141 signed_char to unsigned_char, group target dependencies.
2142 * defaults.h (WCHAR_UNSIGNED): Remove.
2143 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
2145 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
2146 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
2147 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
2148 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
2149 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
2151 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
2153 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2155 * fixinc/inclhack.def (windiss_math1): New fix.
2156 (windiss_math2): Likewise.
2157 (windiss_valist): Likewise.
2158 * fixinc/fixincl.x: Regenerated.
2160 2002-05-07 Andreas Jaeger <aj@suse.de>
2162 * genautomata.c (output_internal_min_issue_delay_func): Add
2163 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
2164 (output_internal_trans_func): Likewise.
2166 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
2168 * pa.c (hppa_profile_hook): Use force_reg to get the address
2169 of the profile hook into an appropriate pseudo register.
2171 2002-05-07 Mark Mitchell <mark@codesourcery.com>
2173 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
2174 (LINK_START_SPEC): Handle it.
2175 (LINK_OS_SPEC): Likewise.
2176 (CPP_SPEC): Likewise.
2177 (STARTFILE_SPEC): Likewise.
2178 (LIB_SPEC): Likewise.
2179 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
2181 (CRTSAVRES_DEFAULT_SPEC): New macro.
2182 (LIB_WINDISS_SPEC): New macro.
2183 (CPP_OS_WINDISS_SPEC): Likewise.
2184 (STARTFILE_WINDISS_SPEC): Likewise.
2185 (ENDFILE_WINDISS_SPEC): Likewise.
2186 (LINK_START_WINDISS_SPEC): Likewise.
2187 (LINK_OS_WINDISS_SPEC): Likewise.
2188 * config/rs6000/windiss.h: New file.
2190 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
2192 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
2194 2002-05-06 David S. Miller <davem@redhat.com>
2196 * config/sparc/sparc.md (shift insns): Do not mask off
2197 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
2200 2002-05-06 Richard Henderson <rth@redhat.com>
2203 * expr.c (highest_pow2_factor_for_type): New.
2204 (expand_assignment): Use it.
2206 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
2208 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
2210 ("altivec_mfvscr"): Same.
2212 2002-05-06 Janis Johnson <janis187@us.ibm.com>
2214 * rtl.h (struct rtx_def): Update comments.
2215 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
2216 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
2217 RTL_FLAG_CHECK macros with list of expected RTL codes.
2218 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
2219 (rtl_check_failed_flag): New.
2220 * reload1.c (reload): Use REG macro before changing rtx to MEM.
2221 (reload_cse_noop_set_p): Check rtx code before using access macro.
2222 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
2223 before using access macro.
2225 2002-05-06 Janis Johnson <janis187@us.ibm.com>
2227 * doc/rtl.texi (Flags): Update to reflect current usage.
2229 2002-05-06 Roger Sayle <roger@eyesopen.com>
2232 * fold-const.c (sign_bit_p): New function.
2233 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
2234 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
2235 Reapply fold when converting (A & C) == C into (A & C) != 0.
2236 (fold_binary_op_with_conditional_arg): Fix typo in comment.
2238 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
2240 * c-common.c (warn_multichar): New.
2241 (c_common_init): Set CPP's warn_multichar.
2242 * c-common.h (warn_multichar): New.
2243 * c-decl.c (warn_multichar): Remove.
2244 * c-lex.c (lex_charconst): Update.
2245 * c-tree.h (warn_multichar): Remove.
2246 * cppexp.c (eval_token): Sign-extend charconst value.
2247 * cppinit.c (cpp_create_reader): Set warn_multichar.
2248 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
2249 each character. Update prototype. Sign-extend the result.
2250 * cpplib.h: Fix conditions.
2251 (struct cpp_options): Add new warning flag.
2252 (cpp_interpret_charconst): Update prototype.
2254 * cpp.texi: Update documentation.
2256 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
2258 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2259 Fix typo in usage of allof instead of unit.
2261 2002-05-06 Richard Henderson <rth@redhat.com>
2263 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
2264 and any jump or call for IN.
2266 2002-05-06 Bernd Schmidt <bernds@redhat.com>
2268 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
2270 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
2272 2002-05-06 Roger Sayle <roger@eyesopen.com>
2274 * fold-const.c (lshift-double): Cast the high word to an unsigned
2275 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
2276 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
2277 avoid compiler warning. (fold): Remove redundant code from
2278 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
2280 2002-05-06 Jeff Law <law@redhat.com>
2282 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
2283 * pa.c (pa_adjust_cost): Remove all true dependency cost
2284 adjustments. Also remove support for non-DFA scheduling.
2285 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
2286 to adjust true dependency costs. Update various comments.
2287 (7100lc, 7200, 7300 scheduling): Simplify by combining the
2288 FP ALU & MPY units into a single unit.
2290 2002-05-06 Catherine Moore <clm@redhat.com>
2292 * config/v850/v850.c (compute_register_save_size): Make sure
2293 to count all of the registers that will be saved.
2295 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2297 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
2299 2002-05-06 David S. Miller <davem@redhat.com>
2301 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
2302 allow result to overlap input operands in memory.
2304 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
2307 * cpp.texi: Update multichar charconst docs.
2309 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
2311 * cpplex.c (cpp_interpret_charconst): Sign-extend each
2312 character. Don't ignore excess characters. Treat
2313 multicharacter character constants as signed.
2314 (cpp_parse_escape): Clarify diagnostic.
2316 2002-05-05 Jakub Jelinek <jakub@redhat.com>
2318 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
2319 use add instead of shift.
2320 (ashldi3_sp64): Likewise.
2321 (ashlsi3_const1, ashldi3_const1): Remove.
2322 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
2323 * config/sparc/sparc.c (const1_operand): New.
2325 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
2327 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
2329 2002-05-05 Jakub Jelinek <jakub@redhat.com>
2332 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
2334 2002-05-05 Richard Henderson <rth@redhat.com>
2336 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
2337 memory latency adjustments.
2338 (alpha_variable_issue): Remove.
2339 (alpha_use_dfa_pipeline_interface): New.
2340 (alpha_multipass_dfa_lookahead): New.
2341 * config/alpha/alpha.md: Remove define_function_unit scheduling;
2342 include new dfa scheduling.
2343 (attr type): Add none.
2345 * config/alpha/ev4.md: New.
2346 * config/alpha/ev5.md: New.
2347 * config/alpha/ev6.md: New.
2349 2002-05-05 David S. Miller <davem@redhat.com>
2351 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
2353 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
2355 * cse.c: Fix formatting.
2356 * emit-rtl.c: Likewise.
2358 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2360 * genautomata.c (initiate_states): Add additional guard to
2361 initialize `units_array'.
2363 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
2365 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
2366 process_unit_to_form_the_same_automaton_unit_lists,
2367 form_the_same_automaton_unit_lists
2368 check_unit_distributions_to_automata): New prototypes and
2370 (check_automata): Rename it into `check_automata_insn_issues'.
2371 (unit_decl): New fields `the_same_automaton_unit' and
2372 `the_same_automaton_message_reported_p'.
2373 (unit_decl_t): New typedef.
2374 (the_same_automaton_lists): New gloval variable.
2375 (unit_regexp, unit_set_el, units_array, units_cmp,
2376 output_get_cpu_unit_code_func): Use the typedef.
2377 (evaluate_max_reserv_cycles): Increment
2378 `description->max_insn_reserv_cycles'.
2379 (initiate_states): Don't increment `max_cycles_num'.
2380 (transform_insn_regexps): Move code around transformation of
2381 regexps from `generate'.
2382 (generate): Remove call of `transform_insn_regexps'.
2383 (expand_automata): Call `transform_insn_regexps' and
2384 `check_unit_distributions_to_automata'. Check errors before
2387 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
2388 automaton `ultrasparc3_1'.
2390 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
2392 * c-common.c (c_common_init): Set up CPP arithmetic.
2393 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
2394 something reasonable for the host.
2395 (sanity_checks): Add checks.
2396 (cpp_read_main_file): Call sanity_checks() from here...
2397 (cpp_post_options): ... not here.
2398 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
2399 * cpplib.h (struct cpp_options): New member int_precision.
2401 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2403 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
2405 2002-05-04 David S. Miller <davem@redhat.com>
2407 * config/sparc/linux.h, config/sparc/linux64.h
2408 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
2410 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
2412 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
2414 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
2417 2002-05-05 Tim Josling <tej@melbpc.org.au>
2419 * treelang; New directory for new sample language treelang.
2421 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2423 * Makefile.in (c-lex.o): Update.
2424 * c-lex.c: Include target.h.
2425 (cb_register_builtins): New.
2426 (init_c_lex): Set builtins callback.
2427 * c-lex.h (cpp_define, cpp_assert): New prototypes.
2428 * cppinit.c (init_builtins): Use callback, including for
2430 * cpplib.h (struct cpp_callbacks): New member.
2431 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
2432 (TARGET_INITIALIZER): Update.
2433 * target.h (struct gcc_target): New hook.
2434 * tree.c (default_register_cpp_builtins): New.
2435 * tree.h (default_register_cpp_builtins): New.
2437 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
2439 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2441 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
2442 (cpp_post_options): Move sanity checks to...
2443 (sanity_checks): New.
2444 * cpplex.c (maybe_read_ucs): Fix prototype.
2445 (parse_string, cpp_parse_escape): Cast for %c format specifier.
2446 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
2449 2002-05-04 Bernd Schmidt <bernds@redhat.com>
2451 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
2452 builtins. Use V2DI patterns instead of TI for logical operations.
2453 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
2454 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
2455 (ix86_expand_builtins): Change the pattern used for movntdq.
2456 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
2457 sse2_nandv2di3): New patterns.
2458 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
2460 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
2461 (cvtdq2pd): Correct mode on operand 1.
2462 (sse2_umulsidi3): Describe without unspec.
2463 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
2465 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
2466 (ashlv2di3): Likewise, from sse2_ashlv2di3.
2467 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
2468 ashlv4si3, ashlv2di3): Use SImode for shift count.
2469 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
2470 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
2472 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
2474 (__m128i, __m128d): New macros.
2475 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
2476 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
2477 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
2478 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
2479 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
2480 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
2481 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
2482 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
2483 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
2484 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
2485 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
2486 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
2487 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
2488 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
2489 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
2490 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
2491 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
2492 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
2493 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
2494 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
2495 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
2496 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
2497 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
2498 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
2499 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
2500 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
2501 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
2502 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
2503 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
2504 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
2505 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
2506 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
2507 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
2508 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
2509 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
2510 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
2511 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
2513 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
2514 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
2516 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
2518 * dwarf2out.c: Fix formatting.
2519 * varasm.c: Likewise.
2521 2002-05-04 David Edelsohn <edelsohn@gnu.org>
2524 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
2525 clobber and use result as temporary value.
2527 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2529 * expr.c (force_operand): Use expand_simple_* to handle more
2532 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
2534 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
2536 (lex_charconst): Update for change in prototype of
2537 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
2539 * cpphash.h (BITS_PER_CPPCHAR_T): New.
2540 * cppinit.c (cpp_create_reader): Initialize them for no
2541 change in semantics.
2542 (cpp_post_options): Add sanity checks.
2543 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
2544 and truncation issues. Calculate in type cppchar_t.
2545 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
2546 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
2547 run-time dependent precision correctly. Return whether the
2548 result is signed or not.
2549 * cpplib.c (dequote_string): Use cppchar_t; update.
2550 * cpplib.h (cppchar_signed_t): New.
2551 struct cpp_options): New precision members.
2552 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
2553 * cppexp.c (eval_token): Update.
2555 2002-05-03 David S. Miller <davem@redhat.com>
2557 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
2558 * config/sparc/sparc.c (sparc_rtx_costs): New function
2559 implementing RTX_COSTS and CONST_COSTS.
2560 * config/sparc/sparc.h (CONST_COSTS): Delete.
2561 (RTX_COSTS_CASES): Define.
2562 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
2565 * config/sparc/sparc.md (DFA schedulers): Split out...
2566 * config/sparc/cypress.md, config/sparc/hypersparc.md,
2567 config/sparc/sparclet.md, config/sparc/supersparc.md,
2568 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
2570 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
2571 checks on it, always defined for Sparc.
2573 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
2574 Tweak, and add more detailed comments.
2576 2002-05-03 Zack Weinberg <zack@codesourcery.com>
2578 * Re-apply patch accidentally reverted with
2579 DFA scheduler merge: remove all rules and variables to slurp
2580 source files out of libiberty and rebuild them with HOST_CC.
2581 ($(HOST_PREFIX_1)varray.o): New rule.
2582 (genattrtab rule): Word wrap.
2584 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2586 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
2587 (CPP_SUBTARGET_SPEC): Define.
2588 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
2589 cpp_subtarget specs.
2590 (CPP_SPEC): Redefine to include %(cpp_subtarget).
2592 2002-05-03 David S. Miller <davem@redhat.com>
2594 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2595 * target.h (struct gcc_target): Delete cycle_display member.
2597 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
2598 (rtx_needs_barrier): Delete reference to cycle_display unspec.
2599 (ia64_sched_reorder2): Mention need for cycle display handling
2600 once such notes exist.
2602 2002-05-03 Richard Henderson <rth@redhat.com>
2604 * real.c (etoasc): Strip most trailing zeros for clarity.
2605 * sched-vis.c: Include real.h.
2606 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
2607 * Makefile.in (sched-vis.o): Add real.h.
2609 2002-05-03 David S. Miller <davem@redhat.com>
2611 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2614 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
2616 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2617 when we get an out of range literal.
2618 (altivec_expand_ternop_builtin): Same.
2619 (altivec_expand_unop_builtin): Same.
2620 (altivec_expand_builtin): Same, for dss.
2621 (altivec_expand_builtin): Use trees instead of rtl when
2622 determining literal argument validity.
2624 2002-05-03 David S. Miller <davem@redhat.com>
2626 Delete cycle display scheduling hook.
2627 * config/ia64/ia64.c (ia64_cycle_display,
2628 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2629 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2630 and use emit_insn_before instead of ia64_emit_insn_before.
2631 * config/ia64/ia64.md (unspec usage): Delete cycle display.
2632 (cycle_display): Delete insn pattern.
2633 * config/sparc/sparc.md (unspec usage): Delete cycle display.
2634 (cycle_display): Delete insn pattern.
2635 * config/sparc/sparc.c (sparc_cycle_display,
2636 TARGET_SCHED_CYCLE_DISPLAY): Delete.
2637 * doc/md.texi (cycle_display): Don't mention.
2638 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
2640 2002-05-03 Richard Henderson <rth@redhat.com>
2642 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2643 * recog.h: Declare them.
2645 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2646 * config/sparc/sparc.md: Use store_data_bypass_p instead.
2647 * config/sparc/sparc-protos.h: Update.
2649 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2651 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2652 -D__arch64__. Add -D_LP64.
2653 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2655 (CPP_ARCH64_SPEC): Likewise.
2656 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2657 (NO_BUILTIN_SIZE_TYPE): Undef.
2659 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
2661 * genautomata.c (min_issue_delay_pass_states): Change return type
2663 (min_issue_delay_pass_states): Change the algorithm.
2664 (min_issue_delay): Set up min_insn_issue_delay for the state.
2665 (output_min_issue_delay_table): Interchange the nested loops and
2666 and initiate min_insn_issue_delay for states.
2668 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
2670 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
2673 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
2675 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
2678 2002-05-03 Richard Henderson <rth@redhat.com>
2681 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2682 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2683 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2684 code before JUMP, not EARLIEST.
2686 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
2688 * c-format.c (check_format_info_main): Don't check for presence of
2689 parameter for * width until after operand number has been read,
2690 and only check for it if format parameters are available.
2693 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
2695 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2696 (LINK_SPEC): Undef before defining.
2698 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2700 PR preprocessor/6489
2701 * tradcpp.c (fixup_newlines): New.
2702 (main, finclude): Use it.
2704 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
2706 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2707 * config/mips/mips.c (mips_unique_section): Strip encoding from
2710 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2712 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2715 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2717 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2718 (Specific): Removed buildstats references.
2719 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2720 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2721 Accomodate Solaris versions beyond 8.
2722 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2723 (Specific, *-*-solaris2.8): Removed, obsolete.
2725 2002-05-03 Jakub Jelinek <jakub@redhat.com>
2728 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2729 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2730 fill leaf_reg_remap with identity.
2731 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2733 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2735 * config/h8300/crti.asm: Remove trailing spaces.
2736 * config/h8300/h8300.c: Likewise.
2737 * config/h8300/lib1funcs.asm: Likewise.
2739 2002-05-02 Jason Merrill <jason@redhat.com>
2741 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2742 * c-decl.c (c_init_decl_processing): Use it.
2743 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2744 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2745 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2747 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2749 * regrename.c: Fix formatting.
2752 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
2754 * i386.md (attribute memory): Handle compares properly.
2756 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
2758 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2761 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
2763 * function.c: Fix formatting.
2765 2002-05-02 Jan Hubicka <jh@suse.cz>
2767 * haifa-sched.c (schedule_insn): Print table of instructions and
2769 (sched_block): Do not print ready list at verbosity level 1.
2770 * sched-vis.c (print_insn): Make global.
2771 * sched-ebb.c (ebb_print_insn): Rename from...
2772 (print_insn): ... this one.
2773 * sched-int.h (print_insn): Declare
2775 2002-05-02 Richard Henderson <rth@redhat.com>
2777 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2778 emitted by cycle_display.
2780 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
2782 * doc/install.texi (*-*-freebsd*): Update to latest status.
2784 2002-05-02 Jakub Jelinek <jakub@redhat.com>
2787 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2788 * config/float-sparc.h: Assume 128-bit long double if
2789 __LONG_DOUBLE_128__ is defined.
2791 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
2793 * genattrtab.c (write_function_unit_info): Add a dummy element
2794 when num_units == 0.
2796 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2798 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2799 TYPE_MODE (double_type_node) instead of DFmode.
2801 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
2803 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2805 * toplev.c (rest_of_compilation): Revert Richard's patch.
2807 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2809 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2811 2002-05-02 Catherine Moore <clm@redhat.com>
2813 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2815 2002-05-02 Kazu Hirata <kazu@hxi.com>
2817 * combine.c: Fix comment typos.
2819 * genautomata.c: Likewise.
2823 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
2825 * doc/install.texi: State GNAT version requirements.
2827 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
2829 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2830 of the frame pointer or arg pointer register which strict register
2831 checking is not enabled.
2833 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
2835 * gcc.dg/altivec-8.c: New.
2837 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2838 PRE_INC and PRE_DEC for altivec modes.
2840 2002-05-01 Bruce Korb <bkorb@gnu.org>
2842 * fixinc/check.tpl(set-writable): make sure the function exists first
2843 * fixinc/inclhack.def(alpha_assert): fix test_text
2844 * fixinc/tests/base/assert.h: add in missing result
2846 2002-05-01 Jeff Law <law@redhat.com>
2848 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2851 2002-05-01 Joel Brobecker <brobecker@gnat.com>
2853 * dbxout.c (dbxout_type): Emit size information for range types,
2854 as well, but only when using GDB extensions.
2856 2002-05-01 Richard Henderson <rth@redhat.com>
2858 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2859 target-independent gnu binutils date test.
2861 2002-05-01 Richard Henderson <rth@redhat.com>
2863 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2864 info before expunging the block.
2866 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2868 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2869 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
2870 -M -or -MM is in effect.
2872 2002-05-01 Zack Weinberg <zack@codesourcery.com>
2874 * config.gcc: Correct test of --enable-obsolete. Obsolete all
2875 A29k configurations.
2876 * doc/install.texi: Update to match.
2878 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2881 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2882 for duplicates. Always loop over whole list.
2884 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2886 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2888 2002-05-01 Joel Sherrill <joel@OARcorp.com>
2890 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2893 2002-05-01 Joel Sherrill <joel@OARcorp.com>
2895 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2897 2002-05-01 David Edelsohn <edelsohn@gnu.org>
2899 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2900 (nabs_nopower): Same.
2901 (floatdisf2): New pattern.
2902 (absdi2): Convert to define_insn_and_split.
2907 (fix_trunctfdi2): Same.
2908 (fix_trunctfsi2): Same.
2910 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
2912 * doc/install.texi: Update Texinfo version requirement
2915 2002-05-01 Jakub Jelinek <jakub@redhat.com>
2917 PR target/6512, PR target/5628
2918 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2919 when memory is not aligned.
2920 (movdf_insn_v9only_vis): Likewise.
2921 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2922 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2923 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2925 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
2927 * gcc.dg/altivec-7.c: New.
2929 * config/rs6000/altivec.h: Cleanup.
2931 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
2933 * doc/invoke.texi (Option Summary): Add -mvrsave=.
2934 (RS/6000 and PowerPC Options): Document -mvrsave=.
2936 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2937 (rs6000_altivec_vrsave_string): Same.
2938 (rs6000_override_options): Call rs6000_parse_vrsave_option.
2939 (rs6000_parse_vrsave_option): New.
2940 (rs6000_stack_info): Only generate vrsave instructions when
2941 TARGET_ALTIVEC_VRSAVE.
2943 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2944 (rs6000_altivec_vrsave_string): Define extern.
2945 (rs6000_altivec_vrsave): Same.
2946 (TARGET_ALTIVEC_VRSAVE): New.
2948 2002-04-30 Richard Henderson <rth@redhat.com>
2951 * toplev.c (rest_of_compilation): Don't run cross-jump before
2954 2002-04-30 Tom Rix <trix@redhat.com>
2956 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2957 check which_alternative.
2959 2002-04-30 Kazu Hirata <kazu@hxi.com>
2961 * cpplex.c: Fix comment formatting.
2962 * function.c: Likewise.
2963 * integrate.c: Likewise.
2964 * regrename.c: Likewise.
2965 * sibcall.c: Likewise.
2966 * simplify-rtx.c: Likewise.
2967 * tree-inline.c: Likewise.
2969 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2971 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2972 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2973 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2974 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2975 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2976 * pa/x-ada: New file. Define ADA_CFLAGS.
2978 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
2980 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2981 from MMIX_LAST_REGISTER_FILE_REGNUM.
2982 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2983 (struct machine_function): New member highest_saved_stack_register
2984 previously static variable in mmix.c.
2985 (MACHINE_DEPENDENT_REORG): Define.
2986 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2987 (MMIX_OUTPUT_REGNO): New.
2988 (mmix_target_asm_function_prologue): Move calculation of last used
2989 saved-stack-register into...
2990 (mmix_machine_dependent_reorg): New function. Update to also handle
2992 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2993 register names, simplify somewhat by new variable regno.
2994 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
2996 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2997 emitting register names.
2998 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2999 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
3001 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
3004 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
3006 2002-04-30 Richard Henderson <rth@redhat.com>
3008 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
3009 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
3010 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
3011 emit_tfmode_cvt): New.
3012 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
3013 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
3014 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
3015 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
3016 * config/sparc/sparc-protos.h: Update.
3018 2002-04-30 Janis Johnson <janis187@us.ibm.com>
3020 * install.texi (Final install): Add to the list of info to include
3021 in a report of a successful bootstrap, and add link to 3.1 list.
3023 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
3025 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
3026 (mode): Add vector modes
3027 (i387): Kill attribute.
3028 (unit): New attribute.
3029 (length_immediate): Grok new types.
3030 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
3031 (modrm): Use "unit".
3032 (memory): Handle MMX/SSE properly.
3033 (scheduling descriptions): Kill uses of fop1.
3034 (sse, mmx, fp patterns): Set type and mode properly.
3036 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
3038 * pa.c (override_options): Default to PA8000 scheduling.
3039 * doc/invoke.texi (HP-PA options): Mention newly added 7300
3040 scheduling parameter.
3042 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
3043 handling of double precision multiplies.
3045 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
3046 fpdiv and fpsqrt instructions.
3047 (7200 & 7300 scheduling): Fix typo in handling of
3048 store-load and store-store penalties.
3050 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3052 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
3053 mips. Add two missing commas.
3055 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
3057 * doc/contrib.texi (Contributors): Update Paolo Carlini's
3058 and Benjamin Kosnik's entries.
3060 2002-04-29 David S. Miller <davem@redhat.com>
3062 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
3063 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
3064 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
3065 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
3067 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3069 * combine.c (find_split_point): Use gen_int_mode.
3071 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
3073 Merging code from dfa-branch:
3075 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
3077 * genautomata.c (output_reserv_sets): Fix typo.
3079 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
3081 * genautomata.c (output_reserv_sets): Remove
3082 next_cycle_output_flag.
3084 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
3086 * sched-rgn.c (init_ready_list): Make the DFA code handle
3087 USE/CLOBBER insns in the same way as the traditional
3089 (new_ready): Similarly..
3091 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
3093 * haifa-sched.c (schedule_block): Change the DFA state only after
3096 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
3098 * pa.c (hppa_use_dfa_pipeline_interface): New function.
3099 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3100 (override_options): Add PA7300 scheduling support.
3101 (pa_adjust_cost): Update various comments. Properly
3102 handle anti and output dependencies when using the
3104 (pa_issue_rate): Add PA7300 scheduling support.
3105 (pa_can_combine_p): Call extract_insn before calling
3106 constrain_operands (taken from mainline tree).
3107 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
3108 * pa.md (cpu attr): Add 7300. Rewrite pipeline
3109 descriptions using DFA descriptions. Add PA7300
3112 2002-03-30 David S. Miller <davem@redhat.com>
3114 Add UltraSPARC-III DFA scheduling support.
3115 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
3116 Update FP conditional move on register insn patterns to use it, as
3118 (define_attr cpu): Add ultrasparc3.
3119 (define_attr us3load_type): New, update integer load patterns to
3120 set it, as appropriate.
3121 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
3122 (rest): Add UltraSPARC3 scheduling description.
3123 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
3124 (PROCESSOR_ULTRASPARC3): New.
3125 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
3126 ({ASM,CPP}_CPU_SPEC): Likewise.
3127 (REGISTER_MOVE_COST): Likewise.
3128 (RTX_COSTS): Likewise.
3129 * config/sparc/sparc.c (sparc_override_options,
3130 sparc_initialize_trampoline, sparc64_initialize_trampoline,
3131 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3132 sparc_issue_rate): Likewise.
3133 * config/sparc/sol2.h: Likewise.
3134 * config/sparc/sol2-sld-64.h: Likewise.
3135 * config/sparc/linux64.h: Likewise.
3137 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
3139 * doc/md.texi: Add comments about usage the latency time for the
3140 different dependencies and about case when two or more conditions
3141 in different define_insn_reservations returns TRUE for an insn.
3143 * doc/md.texi: Add reference for automaton based pipeline
3146 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
3148 * doc/passes.texi: Add missed information about genattrtab.
3150 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
3152 * genautomata.c (output_automata_list_transition_code): Check
3153 automata_list on NULL.
3155 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
3157 * genautomata.c (output_insn_code_cases,
3158 output_automata_list_min_issue_delay_code,
3159 output_automata_list_transition_code,
3160 output_automata_list_state_alts_code): Comment the functions.
3162 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
3164 * genautomata.c (automata_list_el_t): New typedef.
3165 (get_free_automata_list_el,free_automata_list_el,
3166 free_automata_list, automata_list_hash, automata_list_eq_p,
3167 initiate_automata_lists, automata_list_start, automata_list_add,
3168 automata_list_finish, finish_automata_lists,
3169 output_insn_code_cases, output_automata_list_min_issue_delay_code,
3170 output_automata_list_transition_code,
3171 output_automata_list_state_alts_code, add_automaton_state,
3172 form_important_insn_automata_lists): New functions and prototypes.
3173 (insn_reserv_decl): Add members important_automata_list and
3175 (ainsn): Add members important_p.
3176 (automata_list_el): New structure.
3177 (first_free_automata_list_el, current_automata_list,
3178 automata_list_table): New global variables.
3179 (create_ainsns): Initiate member important_p.
3180 (output_internal_min_issue_delay_func): Generate the switch and
3181 call output_insn_code_cases.
3182 (output_internal_trans_func, output_internal_state_alts_func):
3184 (generate): Call initiate_automata_lists.
3185 (automaton_states): New global variable.
3186 (expand_automata): Call form_important_insn_automata_lists.
3187 (write_automata): Call finish_automata_lists.
3189 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
3191 * genautomata.c (add_excls, add_presence_absence): Check that
3192 cpu units in the sets belong the same automaton.
3194 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
3195 about that cpu units in the sets belong the same automaton.
3197 * doc/md.texi: Ditto.
3199 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
3200 Nitin Gupta <niting@noida.hcltech.com>
3202 * config/sh/sh.c (sh_use_dfa_interface): New function.
3204 (sh_issue_rate): New Function.
3205 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
3206 TARGET_SCHED_ISSUE_RATE: define.
3208 * config/sh/sh.md: Add DFA based pipeline description for SH4.
3210 (define_attr insn_class): New attribute used for DFA
3212 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
3213 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
3214 cmpeqdi_t): Likewise.
3216 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
3217 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
3219 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
3221 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
3223 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
3226 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
3228 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
3229 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
3231 (output_dfa_start_func): Initiate new variable insn_codes_length,
3232 (write_automata): Output definition of the new variable.
3234 2001-10-02 David S. Miller <davem@redhat.com>
3236 * haifa-sched.c (advance_one_cycle): New function.
3237 (schedule_block): Use it.
3238 (queue_to_ready): Use it, and also make sure to advance the DFA
3239 state on all stall cycles, not just those where insn_queue links
3242 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
3244 * haifa-sched.c (max_issue): Remove last_p argument. Only return
3245 non-zero if the highest-priority instruction could be scheduled.
3246 (choose_ready): Remove last argument from max_issue call.
3248 2001-09-28 David S. Miller <davem@redhat.com>
3250 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
3251 ultrasparc and 3 for other multi-issue sparcs.
3253 2001-09-27 David S. Miller <davem@redhat.com>
3255 * config/sparc/sparc.md (cycle_display): New pattern.
3256 * config/sparc/sparc.c (sparc_cycle_display): New.
3257 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
3259 2001-09-25 David S. Miller <davem@redhat.com>
3261 Convert all of Sparc scheduling to DFA
3262 * config/sparc/sparc.md: Kill all define_function_unit
3263 directives and replace with DFA equivalent.
3264 * config/sparc/sparc.c (ultrasparc_adjust_cost,
3265 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
3266 ultra_fpmode_conflict_exists, ultra_find_type,
3267 ultra_build_types_avail, ultra_flush_pipeline,
3268 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
3269 ultrasparc_variable_issue, ultrasparc_sched_init,
3270 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
3271 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
3272 ultra_cur_hist, ultra_cycles_elapsed): Kill.
3273 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
3274 ultrasparc_store_bypass_p): New.
3275 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
3278 2001-09-24 David S. Miller <davem@redhat.com>
3280 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
3281 ready->vec[foo] not ready[foo].
3283 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
3285 * doc/md.texi: Correct examples for define_insn_reservations
3288 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
3290 * genautomata.c (create_automata): Print message about creation of
3292 (generate): Remove printing meease about creation of
3295 2001-09-05 David S. Miller <davem@redhat.com>
3297 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
3298 * config/sparc/linux64.h: Likewise.
3300 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
3302 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
3303 schedule_block, sched_init, sched_finish): Add missed calls of
3304 use_dfa_pipeline_interface.
3306 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
3309 * sched-vis.c (get_visual_tbl_length): Ditto.
3311 2001-08-27 Richard Henderson <rth@redhat.com>
3313 * genattr.c (main): Emit state_t even when not doing scheduling.
3315 2001-08-27 Richard Henderson <rth@redhat.com>
3317 * genautomata.c (expand_automata): Always create a description.
3319 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
3321 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
3322 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
3323 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
3326 * genattr.c (main): New variable num_insn_reservations. Increase
3327 it if there is DEFINE_INSN_RESERVATION. Output automaton based
3328 pipeline hazard recognizer interface.
3330 * genattrtab.h: New file.
3332 * genattrtab.c: Include genattrtab.h.
3333 (attr_printf, check_attr_test, make_internal_attr,
3334 make_numeric_value): Move protypes into genattrtab.h. Define them
3336 (num_dfa_decls): New global variable.
3337 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
3338 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
3339 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
3340 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
3342 * genautomata.c: New file.
3344 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
3346 * sched-int.h: (curr_state): Add the external definition for
3347 automaton pipeline interface.
3348 (haifa_insn_data): Add comments for members blockage and units.
3350 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3351 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3352 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3353 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3354 TARGET_SCHED_DFA_POST_CYCLE_INSN,
3355 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3356 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
3358 (TARGET_SCHED): Use the new macros.
3360 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
3361 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
3362 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
3363 dfa_bubble): New members in gcc_target.sched.
3365 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
3366 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
3367 (insn_queue): Redefine it as pointer to array.
3368 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
3370 (max_insn_queue_index_macro_value): New variable.
3371 (curr_state, dfa_state_size, ready_try): New varaibles for
3372 automaton interface.
3373 (ready_element, ready_remove, max_issue): New function prototypes
3374 for automaton interface.
3375 (choose_ready): New function prototype.
3376 (insn_unit, blockage_range): Add comments.
3377 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
3378 FUNCTION_UNITS_SIZE == 0.
3379 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
3380 actual_hazard, potential_hazard): Add comments.
3381 (insn_cost): Use cost -1 as undefined value. Remove
3382 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
3384 (ready_element, ready_remove): New functions for automaton
3386 (schedule_insn): Add new code for automaton pipeline interface.
3387 (queue_to_ready): Add new code for automaton pipeline interface.
3388 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
3389 (debug_ready_list): Print newline when the queue is empty.
3390 (max_issue): New function for automaton pipeline interface.
3391 (choose_ready): New function.
3392 (schedule_block): Add new code for automaton pipeline interface.
3393 Print ready list before scheduling each insn.
3394 (sched_init): Add new code for automaton pipeline interface.
3395 Initiate insn cost by -1.
3396 (sched_finish): Free the current automaton state and finalize
3397 automaton pipeline interface.
3399 * sched-rgn.c: Include target.h.
3400 (init_ready_list, new_ready, debug_dependencies): Add new code for
3401 automaton pipeline interface.
3403 * sched-vis.c: Include target.h.
3404 (get_visual_tbl_length): Add code for automaton interface.
3405 (target_units, print_block_visualization): Add comments.
3407 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
3408 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
3409 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
3410 (getruntime.o, genautomata.o): New entries.
3411 (genattrtab.o): Add new dependency file genattrtab.h.
3412 (genattrtab): Add new dependencies. Link it with `libm.a'.
3413 (getruntime.o, hashtab.o): New entries for canadian cross.
3415 * doc/md.texi: Description of automaton based model.
3417 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
3419 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3420 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3421 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3422 TARGET_SCHED_DFA_POST_CYCLE_INSN,
3423 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3424 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3425 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
3427 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
3428 MAX_DFA_ISSUE_RATE): New macro descriptions.
3430 * doc/contrib.texi: Add dfa based scheduler contribution.
3432 * doc/gcc.texi: Add more information about genattrtab.
3434 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3436 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
3437 adjust_address_nv call.
3439 2002-04-29 Janis Johnson <janis187@us.ibm.com>
3441 * doc/install.texi (Testing): Provide additional information, and
3442 a stronger encouragement, for running the testsuites.
3444 2002-04-29 DJ Delorie <dj@redhat.com>
3446 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
3447 given in upper case.
3449 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3451 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
3452 Solaris 2 <widec.h> if missing.
3453 * fixinc/fixincl.x: Regenerate.
3454 * fixinc/tests/base/widec.h: New file.
3456 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
3458 * toplev.c (f_options): Add "profile" switch so that
3459 -fno-profile can be used to disable -p.
3461 2002-04-29 Bernd Schmidt <bernds@redhat.com>
3463 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
3465 * tree.c (build_common_tree_nodes_2): Likewise.
3466 * tree.h (enum tree_index): Likewise.
3467 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
3469 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
3471 (init_mmx_sse_builtins): Initialize SSE2 builtins.
3472 (ix86_expand_builtin): Add support for SSE2 builtins.
3473 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
3474 (VALID_SSE_REG_MODE): Use it.
3475 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
3476 (enum ix86_builtins): Add SSE2 builtins.
3477 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
3478 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
3479 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
3480 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
3481 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
3482 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
3483 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
3484 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
3485 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
3486 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
3487 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
3488 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
3489 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
3490 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
3491 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
3492 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
3493 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
3494 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
3495 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
3496 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
3497 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
3498 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
3499 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
3500 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
3501 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
3502 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
3503 lfence_insn): New patterns.
3504 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
3505 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
3507 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
3509 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
3511 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3513 * doc/contrib.texi (Contributors): Add Paolo Carlini and
3515 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
3516 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
3517 and CPU instead of cpu.
3519 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3521 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
3523 (lang_independent_options): Add -fif-conversion, -fif-conversion2
3524 (rest_of_compilation): Do if conversion only when asked for.
3525 (parse_options_and_default_flags): Set new variables to 1 for -O1
3526 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
3528 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3530 * i386.c (dbx64_register_map): Fix typo.
3532 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3534 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
3535 real_one_half, real_bb_freq_max): New static variables.
3536 (debug_profile_bbauxs): Kill.
3537 (process_note_predictions): Kill unused variable.
3538 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
3540 (propagate_freq): Use REAL_ARITHMETICS.
3541 (estimate_bb_frequencies): Likevise; init new static variables.
3542 * Makefile.in (predict.o): Add dependency on real.h
3544 2002-04-28 David S. Miller <davem@redhat.com>
3547 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
3548 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
3549 several {reads,writes} instead.
3550 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
3553 2002-04-27 David S. Miller <davem@redhat.com>
3556 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
3559 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
3560 including signal.h and sys/ucontext.h, not needed.
3562 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
3564 * varasm.c (output_constant_def): Correct test for not calling
3565 ENCODE_SECTION_INFO for INTEGER_CST.
3567 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
3569 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
3570 keep most cases as function eval_token.
3571 (eval_token): New function.
3572 (_cpp_parse_expr): Read token here for improved diagnostics.
3573 Don't use op_as_text. Detect bad ':' here.
3574 (reduce): Don't detect bad ':' here.
3575 (op_as_text): Remove.
3576 * cpphash.h (_cpp_test_assertion): Change prototype.
3577 * cpplib.c (_cpp_test_assertion): Change prototype.
3579 2002-04-28 Richard Henderson <rth@redhat.com>
3582 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
3583 (ggc_mark_rtx_children): New.
3585 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3588 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
3589 after call peepholes for UltraSPARC.
3590 (call + jump 64-bit peepholes): Remove.
3592 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3595 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
3596 result as temporary value.
3598 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3601 * toplev.c (rest_of_compilation): Only run regrename and copy
3602 propagation if optimizing.
3604 2002-04-28 Jakub Jelinek <jakub@redhat.com>
3606 PR optimization/6475
3607 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
3608 register of REGNO_DECL (i).
3609 * Makefile.in (reload1.o): Add $(TREE_H).
3611 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
3613 * cppexp.c (lex): Update to use state.skip_eval.
3614 (struct op): Remove prio and flags members.
3615 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3616 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3617 (LEFT_ASSOC): New macro.
3618 (optab): New table of operator priorities and flags.
3620 (_cpp_parse_expr): Clean up logic. Return bool. Use a
3621 malloc-ed parser stack.
3622 (reduce): New; reduce the operator stack.
3623 (_cpp_expand_op_stack): Expand the operator stack as necessary.
3624 * cpphash.h (struct op): Predeclare.
3625 (struct cpp_reader): New members op_stack, op_limit.
3626 (struct lexer_state): New member skip_eval.
3627 (_cpp_parse_expr): Update.
3628 (_cpp_expand_op_stack): New.
3629 * cpplib.c (do_if): Update.
3630 * cppinit.c (cpp_create_reader): Create op stack.
3631 (cpp_destroy): And destroy it.
3632 * cpplib.h (CPP_LAST_CPP_OP): Correct.
3633 (TTYPE_TABLE): Correct.
3635 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3638 * c-decl.c (duplicate_decls): Call merge_weak.
3639 * c-pragma.c (apply_pragma_weak): Warn about misuse.
3640 * output.h (merge_weak): Prototype merge_weak.
3641 * varasm.c (merge_weak): New function.
3642 (declare_weak): Make sure we don't give an error on VAR_DECLs.
3643 Mark RTL with SYMBOL_REF_WEAK.
3645 2002-04-27 Kurt Garloff <garloff@suse.de>
3647 * tree-inline.c (inlinable_function_p): Improve heuristics
3648 by using a smoother function to cut down allowable inlinable size.
3649 * param.def: Add parameters max-inline-insns-single,
3650 max-inline-slope, min-inline-insns that determine the exact
3651 shape of the above function.
3652 * param.h: Likewise.
3654 2002-04-26 Richard Henderson <rth@redhat.com>
3656 * c-parse.in (malloced_yyss, malloced_yyvs): New.
3657 (yyoverflow): Re-add. Set them.
3658 (free_parser_stacks): New.
3659 * c-common.h: Declare it.
3660 * c-lex.c (c_common_parse_file): Call it.
3662 2002-04-26 Richard Henderson <rth@redhat.com>
3664 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3665 for fallthru search.
3667 2002-04-26 Eric Christopher <echristo@redhat.com>
3669 PR optimization/3700
3670 * config/mips/mips.c (mips_issue_rate): Define. New function.
3671 (TARGET_SCHED_ISSUE_RATE): Use.
3673 2002-04-25 David S. Miller <davem@redhat.com>
3676 * reorg.c (optimize_skip): Do not allow exception causing
3677 instructions to be considered for delay slots.
3678 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3679 (relax_delay_slots): Do not try to consider exception causing
3680 instructions as redundant.
3682 2002-04-26 Richard Henderson <rth@redhat.com>
3685 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3687 2002-04-26 Mark Mitchell <mark@codesourcery.com>
3690 * config/i386/i386.md (untyped_call): Return the value in a float
3691 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3694 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
3696 * tree.c (tree_int_cst_lt): Compare constants whose types differ
3697 in unsigned-ness correctly.
3699 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3701 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3702 portable runtime model.
3704 2002-04-26 Richard Henderson <rth@redhat.com>
3706 * c-parse.in (yyoverflow): Revert.
3708 2002-04-26 David Edelsohn <edelsohn@gnu.org>
3709 Richard Henderson <rth@redhat.com>
3711 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3712 result as temporary value.
3714 2002-04-26 Richard Henderson <rth@redhat.com>
3717 * c-common.c (fix_string_type): Split out of ...
3718 (combine_strings): ... here. Take a varray, not a tree list.
3719 (c_expand_builtin_printf): Use fix_string_type.
3720 * c-common.h: Update decls.
3721 * c-parse.in (string): Remove. Update all uses to use STRING
3722 instead, and not call combine_strings.
3725 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3726 (build_asm_stmt): Likewise.
3727 * objc/objc-act.c (my_build_string): Use fix_string_type.
3728 (build_objc_string_object): Build varray for combine_strings.
3730 2002-04-26 Bo Thorsen <bo@suse.co.uk>
3732 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3735 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
3737 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3738 (HAVE_NO_R_OPERAND): Remove.
3739 (HAVE_VALUE): Remove.
3740 (op_to_prio): Update.
3741 (UNARY): Don't alter flags.
3742 (_cpp_parse_expr): want_value used to indicate whether
3743 a number or unary operator is expected next. Distinguish
3744 unary and binary +/-.
3745 (op_as_text): Update for unary operators.
3747 2002-04-25 Richard Henderson <rth@redhat.com>
3750 * c-parse.in (yyoverflow): New.
3752 2002-04-25 Richard Henderson <rth@redhat.com>
3755 * c-common.c (shorten_compare): Simplfy conditions leading to
3756 the generation of a warning.
3758 2002-04-25 Richard Henderson <rth@redhat.com>
3761 * expmed.c (extract_bit_field): Fall through to generic code rather
3762 than aborting on subreg special case.
3764 2002-04-25 David S. Miller <davem@redhat.com>
3766 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3767 for DECL being NULL.
3769 2002-04-25 Steve Christiansen <smc@us.ibm.com>
3771 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3773 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
3775 * c-decl.c (grokdeclarator): Remove outdated ??? note
3776 on invalid declaration of flexible array members.
3778 2002-04-25 Richard Henderson <rth@redhat.com>
3780 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3782 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3784 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3785 needed by the compiler, even if they are used as global regs.
3787 2002-04-25 Matt Hiller <hiller@redhat.com>
3789 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3791 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3792 of the corresponding functions.
3793 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3796 2002-04-25 Matt Hiller <hiller@redhat.com>
3798 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3800 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3801 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3802 registers, adjust comment accordingly.
3803 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3804 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3805 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3806 for coprocessor registers.
3807 (ADDITIONAL_REGISTER_NAMES): Include
3808 ALL_COP_ADDITIONAL_REGISTER_NAMES.
3810 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3811 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3812 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3813 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3814 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3816 (mips_char_to_class): Adjust comment to include coprocessor
3819 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3821 (mips_reg_names, mips_regno_to_class): Include coprocessor
3823 (mips_sw_reg_names): Ditto, make non-static.
3824 (mips_move_1word): Handle moves to and from coprocessor registers.
3825 (mips_move_2words): Handle moves to and from coprocessor
3827 (mips_class_max_nregs, mips_register_move_cost): Handle
3828 coprocessor register classes.
3829 (override_options): Initialize mips_char_to_class and
3830 mips_hard_regno_mode_ok properly for coprocessor registers.
3832 * config/mips/mips.md (movdi_internal, movdi_internal2,
3833 movsi_internal1, movsi_internal2): Add constraint-sets for
3834 coprocessor registers.
3835 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3836 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3838 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3839 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3841 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3842 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3844 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3845 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3848 * doc/tm.texi: Document feature.
3850 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3852 * integrate.c (function_attribute_inlinable_p): Simplify.
3853 Check the table pointer is not NULL.
3855 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
3857 * doc/c-tree.texi: Fix typo in introduction.
3859 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
3861 * c-common.h (c_common_parse_file): Update.
3862 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3863 * c-lex.c (YYDEBUG): Get from c-lex.h.
3864 (c_common_parse_file): Update.
3865 * c-lex.h (YYDEBUG, yydebug): New.
3866 * c-parse.in (YYDEBUG): Get from c-lex.h.
3867 (c_set_yydebug): Remove.
3868 * c-tree.h (c_set_yydebug): Remove.
3869 * langhooks-def.h (lhd_do_nothing_i): New.
3870 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3871 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3872 * langhooks.c (lhd_do_nothing_i): New.
3873 (lhd_set_yydebug): Remove.
3874 * langhooks.h (struct lang_hooks): Update.
3875 * toplev.c (set_yydebug): New.
3876 (compile_file): Update call to parse_file hook.
3877 (decode_d_option): Update.
3879 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3881 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
3883 * loop.c (load_mems): Don't change the interface of called functions.
3885 * calls.c (expand_call): Take current_function_pretend_args_size
3886 into account when setting argblock for sibcalls.
3888 2002-04-24 Matt Hiller <hiller@redhat.com>
3890 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3893 * cpplex.c (skip_line_comment): Process comment one multibyte
3894 character at a time rather than one char at a time, if
3896 (parse_string): Process string one multibyte character at a time
3897 rather than one char at a time, if appropriate.
3898 * c-lex.c (lex_string): Lex and copy multibyte strings
3900 * cpplib.h (cppchar_t): Change to unsigned.
3902 2002-04-24 Richard Henderson <rth@redhat.com>
3905 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3908 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
3910 * sh.c (sh_va_arg): If argument was passed by reference,
3911 dereference the pointer.
3913 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3915 * sh.md (divsi3_i4_media): Use match_operand for input values
3916 rather than hard registers.
3917 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3918 unnecessarily through hard registers. Keep copies of pseudo
3919 registers outside of the libcall sequence.
3921 * sh.md (casesi_shift_media): Add modes.
3923 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3926 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
3928 * attribs.c (c_common_attribute_table): Move table and handlers
3930 (format_attribute_table, lang_attribute_table,
3931 lang_attribute_common): Remove.
3932 (init_attributes): Replace NULL pointers with pointers to the
3934 (handle_packed_attribute, handle_nocommon_attribute,
3935 handle_common_attribute, handle_noreturn_attribute,
3936 handle_noinline_attribute, handle_always_inline_attribute,
3937 handle_used_attribute, handle_unused_attribute,
3938 handle_const_attribute, handle_transparent_union_attribute,
3939 handle_constructor_attribute, handle_destructor_attribute,
3940 handle_mode_attribute, handle_section_attribute,
3941 handle_aligned_attribute, handle_weak_attribute,
3942 handle_alias_attribute, handle_visibility_attribute,
3943 handle_no_instrument_function_attribute, handle_malloc_attribute,
3944 handle_no_limit_stack_attribute, handle_pure_attribute,
3945 handle_deprecated_attribute, handle_vector_size_attribute,
3946 vector_size_helper): Move to c-common.c.
3947 * c-common.c (c_common_attribute_table,
3948 handle_packed_attribute, handle_nocommon_attribute,
3949 handle_common_attribute, handle_noreturn_attribute,
3950 handle_noinline_attribute, handle_always_inline_attribute,
3951 handle_used_attribute, handle_unused_attribute,
3952 handle_const_attribute, handle_transparent_union_attribute,
3953 handle_constructor_attribute, handle_destructor_attribute,
3954 handle_mode_attribute, handle_section_attribute,
3955 handle_aligned_attribute, handle_weak_attribute,
3956 handle_alias_attribute, handle_visibility_attribute,
3957 handle_no_instrument_function_attribute, handle_malloc_attribute,
3958 handle_no_limit_stack_attribute, handle_pure_attribute,
3959 handle_deprecated_attribute, handle_vector_size_attribute,
3960 vector_size_helper): Move from attribs.c.
3961 * c-common.h (c_common_attribute_table,
3962 c_common_format_attribute_table): New.
3963 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3964 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3965 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3966 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3967 (LANG_HOOKS_INITIALIZER): Update.
3968 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3969 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3970 * target.h: Update comment.
3971 * tree.c (default_target_attribute_table): Remove.
3972 * tree.h (default_target_attribute_table, format_attribute_table,
3973 lang_attribute_table, lang_attribute_common): Remove.
3975 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3976 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3978 2002-04-24 Jason Merrill <jason@redhat.com>
3980 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3981 * dwarf2out.c (dwarf_attr_name): Support it.
3982 (gen_array_type_die): Emit it.
3983 (lookup_type_die): No special handling for VECTOR_TYPE.
3984 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3986 2002-04-24 Richard Henderson <rth@redhat.com>
3988 * config/mips/mips.md (movdi_usd): Renumber.
3990 2002-04-24 David S. Miller <davem@redhat.com>
3993 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3994 32-bit Sparc and current_function_returns_struct is true.
3996 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
3998 * loop.c (canonicalize_condition): Use gen_int_mode.
4000 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
4002 * config/rs6000/altivec.h: Cleanup file. Add non individual
4024 (vec_vcmpequb): New.
4025 (vec_vcmpequh): New.
4026 (vec_vcmpequw): New.
4027 (vec_vcmpeqfp): New.
4028 (vec_vcmpgefp): New.
4029 (vec_vcmpgtub): New.
4030 (vec_vcmpgtsb): New.
4031 (vec_vcmpgtuh): New.
4032 (vec_vcmpgtsh): New.
4033 (vec_vcmpgtuw): New.
4034 (vec_vcmpgtsw): New.
4035 (vec_vcmpgtfp): New.
4036 (vec_vcmpgefp): New.
4041 (vec_vexptefp): New.
4046 (vec_lde): Add vector float variant.
4051 (vec_vmhaddshs): New.
4073 (vec_vmladduhm): New.
4074 (vec_vmhraddshs): New.
4076 (vec_vmsummbm): New.
4077 (vec_vmsumuhm): New.
4078 (vec_vmsumshm): New.
4079 (vec_vmsumuhs): New.
4080 (vec_vmsumshs): New.
4089 (vec_vnmsubfp): New.
4107 (vec_vrsqrtefp): New.
4118 (vec_vspltisb): New.
4119 (vec_vspltish): New.
4120 (vec_vspltisw): New.
4145 (vec_vsum4ubs): New.
4146 (vec_vsum4sbs): New.
4147 (vec_vsum4shs): New.
4148 (vec_vsum2sws): New.
4159 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
4162 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
4163 added literals from substracted literals.
4164 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
4165 (fold) [associate]: Preserve MINUS_EXPR if needed.
4167 2002-04-23 Zack Weinberg <zack@codesourcery.com>
4169 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
4172 2002-04-23 Tom Tromey <tromey@redhat.com>
4174 * gcc.c: Added --resource. For PR java/6314.
4176 2002-04-23 David O'Brien <obrien@FreeBSD.org>
4178 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
4179 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
4182 2002-04-23 David O'Brien <obrien@FreeBSD.org>
4184 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
4186 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
4188 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
4190 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
4191 (ix86_expand_clrstr): Fix typo.
4192 * loop.c (gen_load_of_final_value): New.
4193 (loop_givs_rescan, strength_reduce, check_dbra_loop):
4196 2002-04-23 Roger Sayle <roger@eyesopen.com>
4198 * builtins.c (builtin_memset_gen_str): New function.
4199 (expand_builtin_memset): Optimize the case of constant length, but
4202 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
4204 * config/rs6000/altivec.h (vec_step): Remove extraneous
4206 (vec_ctu): Cast return.
4208 2002-04-23 Alan Modra <amodra@bigpond.net.au>
4211 * function.h: (struct function): Add profile_label_no field.
4212 (current_function_profile_label_no): Define.
4213 * function.c: (profile_label_no): New static var.
4214 (expand_function_start): Increment it, and copy to
4215 current_function_profile_label_no.
4216 * output.h (profile_label_no): Delete.
4217 * final.c (profile_label_no): Delete.
4218 (profile_function): Use current_function_profile_label_no.
4219 (final_end_function): Don't increment profile_label_no here.
4220 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
4221 profile_label_no with current_function_profile_label_no.
4222 * config/pa/pa.c (current_function_number): Delete.
4223 (pa_output_function_prologue): Don't output profile label here.
4224 (hppa_profile_hook): Use label_no param rather than
4225 current_function_number.
4226 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
4227 * config/pa/pa.h: .. here.
4228 (FUNCTION_PROFILER): Output profile label here.
4230 2002-04-22 Eric Christopher <echristo@redhat.com>
4232 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
4233 patch of 2002-04-09 due to binutils issues.
4234 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
4236 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
4238 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
4239 constraint to 'o' for m=r and r=m alternatives.
4240 ("*movv8hi_internal1"): Same.
4241 ("*movv16qi_internal1"): Same.
4242 ("*movv4sf_internal1"): Same.
4244 2002-04-22 Janis Johnson <janis187@us.ibm.com>
4246 * rtl.h (RTX_FLAG): New macro.
4247 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
4248 * final.c (alter_subreg): Use macro to access rtx flag.
4249 * integrate.c (copy_rtx_and_substitute): Use new access macro.
4250 * print-rtl.c (print_rtx): Use new access macro.
4252 * cse.c (insert): Check rtx code before accessing flag.
4254 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
4255 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
4256 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
4257 convert_const_symbol_ref, make_canonical, make_alternative_compare,
4258 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
4259 simplify_test_exp, optimize_attrs, simplify_by_exploding,
4260 find_and_mark_used_attributes, unmark_used_attributes,
4261 add_values_to_cover, simplify_with_current_value,
4262 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
4263 copy_rtx_unchanging, main): Use new access macros.
4265 2002-04-22 Tom Rix <trix@redhat.com>
4267 * expmed.c (init_expmed): Generate shifted constant once.
4269 2002-04-22 Zack Weinberg <zack@codesourcery.com>
4271 * c-lex.c (lex_charconst): Call convert to get constant in
4272 proper type; don't just smash the type field.
4275 * config.gcc: Add list of obsolete configurations. Disallow
4276 building these without --enable-obsolete.
4277 * doc/install.texi: Document --enable-obsolete and obsoletion
4278 policy. Mention obsoletion of individual targets in
4281 2002-04-22 Richard Henderson <rth@redhat.com>
4283 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
4285 2002-04-22 Mark Mitchell <mark@codesourcery.com>
4288 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
4289 (walk_fixup_memory_subreg): Likewise.
4290 (fixup_var_refs_insn): Adjust accordingly.
4291 (fixup_var_refs_1): Likewise.
4293 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
4295 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
4296 LIBPATH_ARCH64_SPEC): Define.
4297 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
4298 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
4299 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
4300 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
4302 2002-04-22 Joel Sherrill <joel@OARcorp.com>
4304 * gthr-rtems.h: Correct prototypes to remove warnings.
4306 2002-04-22 Richard Henderson <rth@redhat.com>
4309 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
4311 * gcse.c (free_insn_expr_list_list): New.
4312 (clear_modify_mem_tables): Use it. Fix bit set usage.
4313 (canon_list_insert): Use EXPR_LISTs for expressions.
4314 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
4316 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
4318 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
4319 file change and include code to _cpp_pop_buffer.
4320 * cpphash.h (struct pending_option): Predeclare.
4321 (struct cpp_reader): New member next_include_file.
4322 (_cpp_pop_file_buffer): Update.
4323 (_cpp_push_next_buffer): Update, rename.
4324 * cppinit.c (cpp_destroy): Free include chain and pending here.
4325 (cpp_finish_options): Simplify.
4326 (_cpp_push_next_buffer): Rename and clean up.
4327 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
4329 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
4331 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
4333 * config/rs6000/altivec.h (vec_xor): Add variant for both args
4334 being vector signed int.
4336 (vec_xor): Add variant for both args being vector signed char.
4337 Remove redundant variant.
4340 2002-04-21 David S. Miller <davem@redhat.com>
4342 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
4343 compare mode in output RTL.
4345 2002-04-22 David Edelsohn <edelsohn@gnu.org>
4347 * config/rs6000/rs6000.c (rs6000_override_options): Correct
4348 style and formatting of previous patch.
4350 2002-04-22 Alan Modra <amodra@bigpond.net.au>
4352 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
4353 flag_pic for ABI_AIX.
4355 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
4357 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
4358 * cppfiles.c (read_include_file): Similarly.
4359 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
4360 uxstrdup ustrchr, ufputs): Similarly.
4361 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
4362 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
4363 cpp_ideq, parse_identifier, parse_number): Similarly.
4364 * cpplib.c (struct directive, dequote_string, D, run_directive,
4365 cpp_push_buffer): Similarly.
4366 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
4367 _cpp_create_definition, check_trad_stringification,
4368 cpp_macro_definition): Similarly.
4370 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
4372 * cppmacro.c (funlike_invocation_p): Don't step back
4375 2002-04-21 David Edelsohn <edelsohn@gnu.org>
4377 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
4380 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
4382 * doc/invoke.texi: Remove Chill references.
4383 * doc/gcc.texi: Update last modified date.
4385 2002-04-20 Kazu Hirata <kazu@hxi.com>
4387 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
4388 push and pop. Replace add.l with add.w.
4390 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4392 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
4393 multiply instructions for H8/300H case.
4395 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4397 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
4398 Bum three instructions from each routine.
4400 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
4402 * Makefile.in: Update.
4403 * decl.c (push_c_function_context, pop_c_function_context,
4404 mark_c_function_context): Rename for consistency.
4405 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
4406 * c-tree.h (push_c_function_context, pop_c_function_context,
4407 mark_c_function_context): Rename for consistency.
4408 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4409 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4410 * function.c (init_lang_status, save_lang_status,
4411 restore_lang_status, mark_lang_status, free_lang_status):
4412 Move to langhooks.h.
4413 (push_function_context_to, pop_function_context_from,
4414 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
4416 * function.h (init_lang_status, save_lang_status,
4417 restore_lang_status, mark_lang_status, free_lang_status):
4418 Move to langhooks.h.
4419 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
4420 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
4421 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
4422 LANG_HOOKS_FUNCTION_INITIALIZER): New.
4423 (LANG_HOOKS_INITIALIZER): Update.
4424 (lhd_do_nothing_f): New.
4425 * langhooks.h (struct lang_hooks_for_functions): New.
4426 (struct lang_hooks): New hooks.
4427 * langhooks.c (lhd_do_nothing_f): New.
4429 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4430 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
4432 2002-04-19 David S. Miller <davem@redhat.com>
4434 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
4435 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
4437 2002-04-19 Jakub Jelinek <jakub@redhat.com>
4439 PR optimization/3756
4440 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
4441 x = ((int) y < 0) ? cst1 : cst2.
4443 2002-04-19 Jakub Jelinek <jakub@redhat.com>
4446 * function.c: Reapply patch for c/6358.
4447 (expand_function_end): Copy decl_rtl's mode, not
4448 current_function_return_rtx mode.
4450 2002-04-19 Joel Sherrill <joel@OARcorp.com>
4452 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
4455 2002-04-19 Tom Tromey <tromey@redhat.com>
4457 * doc/install.texi (Specific): Update status of Solaris 2.8.
4460 2002-04-19 Andreas Schwab <schwab@suse.de>
4462 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
4463 (PUT_REAL): Restore old definition.
4465 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
4466 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4468 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
4469 binutils 2.11.2 and higher generate smaller binaries than Sun's
4472 2002-04-19 Mark Mitchell <mark@codesourcery.com>
4475 * toplev.c (rest_of_compilation): Do not defer functions for which
4476 TREE_SYMBOL_REFERENCED has already been set.
4478 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
4480 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
4483 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
4485 * builtins.c: Include langhooks.h.
4486 (lang_type_promotes_to): Remove.
4487 (expand_builtin_va_arg): Use new hook.
4488 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
4489 (simple_type_promotes_to): Move to c-typeck.c.
4490 * c-common.h (simple_type_promotes_to): Remove.
4491 * c-decl.c (duplicate_decls, grokdeclarator): Update.
4492 * c-format.c: Include langhooks.h.
4493 (check_format_types): Update.
4494 * c-tree.h (c_type_promotes_to): New.
4495 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
4496 (type_lists_compatible_p): Update.
4497 * langhooks-def.h (lhd_type_promotes_to): New.
4498 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
4499 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4500 * langhooks.c (lhd_type_promotes_to): New.
4501 * langhooks.h (struct lang_hooks_for_types): New hook.
4502 * tree.h (lang_type_promotes_to): Remove.
4504 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
4506 2002-04-18 Richard Henderson <rth@redhat.com>
4508 * function.c: Revert patch for c/6358.
4510 2002-04-18 Richard Henderson <rth@redhat.com>
4512 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
4513 blocks. Handle multiple references to the TRAP block. Handle
4514 non-adjacent THEN and OTHER blocks.
4516 2002-04-18 Richard Henderson <rth@redhat.com>
4518 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
4519 crash with no type for by-mode libcalls.
4521 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
4523 2002-04-18 Bob Wilson <bob.wilson@acm.org>
4525 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
4526 __xtensa_nonlocal_goto): Use a syscall instructions to flush
4527 the register windows.
4529 2002-04-18 Zack Weinberg <zack@codesourcery.com>
4531 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
4532 appropriate. Document need for extended precision even when
4533 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
4534 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
4535 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
4536 instead of relying on later syntax error when REAL_WIDTH > 5.
4537 * real.c: Define NE based only on whether or not we have a
4538 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
4539 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
4540 define GET_REAL and PUT_REAL as simple memcpy operations; no
4541 need to byteswap or round.
4542 Use #error instead of #ifdef-ing out the entire file, for
4543 prompt error detection.
4545 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
4547 2002-04-18 David S. Miller <davem@redhat.com>
4549 * config/sparc/sparc.h (BRANCH_COST): Define.
4551 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
4554 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
4556 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
4557 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
4558 propagate_block calls after relaxation loop using new variable
4559 stabilized_prop_flags.
4561 2002-04-18 Richard Henderson <rth@redhat.com>
4563 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
4564 (ia64_va_arg): Expect variable sized types by reference.
4565 * config/ia64/ia64-protos.h: Update.
4566 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
4567 ia64_function_arg_pass_by_reference.
4569 2002-04-18 Richard Henderson <rth@redhat.com>
4571 * ifcvt.c: Include except.h.
4572 (block_has_only_trap): Break out from find_cond_trap.
4573 (find_cond_trap): Use it. Always delete the trap block.
4574 (merge_if_block): Allow then block null. Be less simplistic about
4575 what insns can end a block.
4576 * Makefile.in (ifcvt.o): Depend on except.h.
4578 * config/ia64/ia64.md (trap, conditional_trap): New.
4580 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4583 * function.c (assign_parms): Assign hard current_function_return_rtx
4585 (expand_function_end): ...not here.
4587 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
4589 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4590 * c-tree.h (c_incomplete_type_error): New.
4591 * c-typeck.c (require_complete_type, build_component_ref): Update.
4592 (incomplete_type_error): Rename.
4593 * langhooks-def.h (lhd_incomplete_type_error): New.
4594 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
4595 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4596 * langhooks.c (lhd_incomplete_type_error): New.
4597 * langhooks.h (struct lang_hooks_for_types): New hook.
4598 * tree.c (size_in_bytes): Use new hook.
4599 * tree.h (incomplete_type_error): Remove.
4601 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4603 2002-04-18 Zack Weinberg <zack@codesourcery.com>
4605 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
4606 TARGET_FLOAT_FORMAT blocks.
4608 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4610 * doc/install.texi (Downloading the source): Do not mention Chill
4611 any longer, but mention Ada.
4612 (Configuration): Do not mention Chill any longer.
4614 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
4616 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4618 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
4620 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4623 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4625 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4626 instead of unsigned_type.
4628 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4630 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4631 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4634 2002-04-18 Bernd Schmidt <bernds@redhat.com>
4636 * attribs.c (vector_type_node_list): New static variable.
4637 (handle_vector_size_attribute): Use it to avoid generating a
4638 new type node each time we are called.
4640 * combine.c (subst): Avoid trying to make a vector mode subreg of
4641 an integer constant.
4642 (gen_lowpart_for_combine): Likewise.
4644 2002-04-18 Roger Sayle <roger@eyesopen.com>
4645 Jakub Jelinek <jakub@redhat.com>
4647 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4648 for integer constant c (if x has unsigned type or sign bit is not
4649 set in c). This folds the zero/sign extension into the bit-wise and
4652 2002-04-18 Jakub Jelinek <jakub@redhat.com>
4655 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4658 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
4660 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4662 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
4664 * gcc.c (read_specs): Detect and fail if an attempt is made to
4665 rename a spec string to an already existing string.
4667 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4669 * config/s390/s390.c (legitimize_pic_address): Do not generate
4670 illegal address constant without CONST.
4672 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4674 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4675 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4677 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4679 PR optimization/6305
4680 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4681 to make sure previous reloads are taken into account. Generate
4682 better code if one operand is an in-range immediate constant.
4684 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
4686 * doc/install.texi (Building): libgcj requires GNU make.
4688 2002-04-17 Jakub Jelinek <jakub@redhat.com>
4691 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4692 even if hard quad and register is not floating.
4693 (movtf reg<-mem split): Disallow splitting if hard quad and
4694 register is floating.
4695 (movtf mem<-reg split): Likewise.
4696 * config/sparc/sparc.c (fp_register_operand): New predicate.
4697 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4699 2002-04-17 Zack Weinberg <zack@codesourcery.com>
4701 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4702 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4703 (unprotoize.o): Ditto. Build from protoize.c. Define
4704 UNPROTOIZE on command line.
4705 * protoize.c: Include cppdefault.h. Delete include_defaults.
4706 (in_system_include_dir): Use cpp_include_defaults (defined in
4708 * unprotoize.c: Delete file.
4710 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
4712 * config/rs6000/altivec.h (vec_ld): Add array variants.
4716 2002-04-17 Alan Matsuoka <alanm@redhat.com>
4717 Aldy Hernandez <aldyh@redhat.com>
4719 * config/rs6000/altivec.h: Define __ALTIVEC__.
4726 Add parentheses to all macro arguments.
4728 2002-04-16 Richard Henderson <rth@redhat.com>
4731 * except.c (remove_eh_handler): Insert inner regions at beginning
4732 of sibling chain. Refactor expressions.
4734 2002-04-16 Richard Henderson <rth@redhat.com>
4736 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4737 * config/sparc/sol2-gas-bi.h: New file.
4738 * config.gcc (sparc*-solaris): Add it as needed.
4739 * configure.in (AS_SPARC64_FLAG): Remove check.
4740 * config.in, configure: Regenerate.
4742 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4744 2002-04-16 Richard Henderson <rth@redhat.com>
4746 * config/mips/mips.c (override_options): Don't override N32 for
4750 * config/mips/mips.md (can_delay): Split out of existing define_delays.
4751 (HILO_delay): Set can_delay false.
4753 2002-04-16 Dale Johannesen <dalej@apple.com>
4755 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4756 instruction addresses.
4757 (rs6000_output_function_epilogue): Likewise.
4759 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
4761 * c-parse.in (poplevel, compstmt_start,
4762 compstmt_primary_start): Add ending ';', in accordance
4765 2002-04-16 Richard Henderson <rth@redhat.com>
4767 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4768 Adjust tm_file order to get TARGET_DEFAULT set properly.
4769 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4770 * doc/install.texi (sparc-solaris): Update.
4772 2002-04-16 Dale Johannesen <dalej@apple.com>
4774 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4775 comparison operands do not match each other or if modes of
4776 conditions do not match result.
4778 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
4781 * config/s390/s390.md (mulsidi3): Set both subregs of the
4784 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
4786 * config/rs6000/altivec.h (vec_addc): Type check.
4788 2002-04-16 Jakub Jelinek <jakub@redhat.com>
4791 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4793 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4795 2002-04-15 Richard Henderson <rth@redhat.com>
4797 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4798 call_really_used_regs too.
4800 2002-04-15 Richard Henderson <rth@redhat.com>
4802 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4804 2002-04-15 David S. Miller <davem@redhat.com>
4806 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4809 2002-04-16 Jakub Jelinek <jakub@redhat.com>
4812 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4813 CONST_VECTOR is { 0, ... 0 }.
4815 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
4817 * doc/install.texi (Installing GCC: Configuration): Clarify
4818 the only supported ways to configure gcc.
4820 2002-04-15 Roland McGrath <roland@frob.com>
4822 * config.gcc (alpha*-*-gnu*): New target configuration.
4823 * config/alpha/gnu.h: New file for it.
4824 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4826 2002-04-16 Mark Mitchell <mark@codesourcery.com>
4828 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4829 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4830 * tree.h (expand_start_stmt_expr): Update prototype.
4831 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4832 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4833 on the STMT_EXPR created for the inline function.
4835 2002-04-15 Richard Henderson <rth@redhat.com>
4837 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4838 config/i386/linux-aout.h, config/i386/linux-oldld.h,
4839 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4840 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4841 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4842 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4843 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4844 Define __gnu_linux__, not gnu_linux.
4845 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4847 2002-04-15 Mark Mitchell <mark@codesourcery.com>
4849 Remove Chill front end.
4850 * gcc.c (default_compilers): Remove Chill entries.
4851 * ch: Remove directory.
4852 * doc/frontends.texi: Remove information about Chill.
4853 * doc/sourcebuild.texi: Likewise.
4854 * doc/standards.texi: Likewise.
4856 2002-04-15 Douglas B Rupp <rupp@gnat.com>
4858 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4859 (LONGLONG_STANDALONE): Define.
4861 2002-04-15 David S. Miller <davem@redhat.com>
4863 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4864 Call emit_library_call with LCT_NORMAL.
4865 (sparc_initialize_trampoline): Use LCT_foo instead of
4866 magic constant in emit_library_call invocations.
4867 (sparc64_initialize_trampoline): Likewise.
4868 (sparc_profile_hook): Likewise.
4869 * config/sparc/sparc.md: Likewise.
4871 * config/sparc/sparc.c (sparc_extra_constraint_check):
4872 Fix type of argument 'c'.
4873 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4876 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
4878 * diagnostic.h (output_buffer_state): Redefine.
4879 (output_format_decoder): New macro.
4880 (output_prefixing_rule): Likewise.
4881 (output_line_cutoff): Likewise.
4882 (diagnostic_format_decoder): Adjust.
4883 (diagnostic_prefixing_rule): Likewise.
4884 (diagnostic_line_cutoff): Likewise.
4885 (diagnostic_state): Likewise.
4886 (diagnostic_kind_count): Likewise.
4887 (diagnostic_buffer): Now a macro.
4889 * diagnostic.c (diagnostic_buffer): Remove definition.
4890 (output_is_line_wrapping): Adjust.
4891 (set_real_maximum_length): Likewise.
4892 (output_set_maximum_length): Likewise.
4893 (init_output_buffer): Likewise.
4894 (lhd_print_error_function): Likewise.
4895 (output_do_verbatim): Likewise.
4897 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
4899 * cpperror.c (print_location): Don't print include chain
4901 (cpp_begin_message): Update to use DL_ macros.
4902 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4903 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4904 cpp_notice, cpp_notice_from_errno): Remove.
4905 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4908 * cppexp.c (CPP_ICE): Remove.
4909 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4910 lex, integer_overflow, _cpp_parse_expr): Update.
4911 * cppfiles.c (read_include_file, find_include_file,
4912 handle_missing_header, _cpp_read_file, remap_filename): Update.
4913 * cpphash.h (enum error_type): Remove.
4914 (_cpp_begin_message): Update.
4915 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4916 cpp_handle_option, cpp_post_options): Update.
4917 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4918 skip_whitespace, parse_identifier, parse_slow, parse_string,
4919 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4920 cpp_interpret_charconst): Update.
4921 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4922 lex_macro_node, do_undef, glue_header_name, parse_include,
4923 do_include_common, read_flag, do_line, do_linemarker, do_ident,
4924 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4925 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4926 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4927 _cpp_pop_buffer, do_diagnostic): Update.
4928 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4929 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4930 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4931 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4932 cpp_notice, cpp_notice_from_errno): Remove.
4933 (cpp_error, cpp_error_with_line): Update to take a diagnostic
4936 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4937 collect_args, enter_macro_context, save_parameter, parse_params,
4938 _cpp_create_definition, check_trad_stringification,
4939 cpp_macro_definition): Update.
4940 * cppmain.c (cpp_preprocess_file): Update.
4941 * fix-header.c (read_scan_file): Update.
4943 2002-04-14 Andreas Schwab <schwab@suse.de>
4945 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4947 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4949 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4951 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4953 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4956 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
4958 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4960 2002-04-13 Joel Sherrill <joel@OARcorp.com>
4962 * config/sparc/t-elf: Enable v8 multilibs. Impacts
4963 sparc-elf and sparc-rtems targets.
4965 2002-04-13 Mark Mitchell <mark@codesourcery.com>
4967 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4968 defined, and __gnu_hurd__ wherever __GNU__ is defined.
4969 * arm/linux-elf.h: Likewise.
4970 * cris/aout.h: Likewise.
4971 * cris/linux.h: Likewise.
4972 * i370/linux.h: Likewise.
4973 * i386/gnu.h: Likewise.
4974 * i386/linux-aout.h: Likewise.
4975 * i386/linux-oldld.h: Likewise.
4976 * i386/linux.h: Likewise.
4977 * i386/linux64.h: Likewise.
4978 * ia64/linux.h: Likewise.
4979 * m68k/linux-aout.h: Likewise.
4980 * m68k/linux.h: Likewise.
4981 * mips/linux.h: Likewise.
4982 * pa/pa-linux.h: Likewise.
4983 * pj/linux.h: Likewise.
4984 * rs6000/sysv4.h: Likewise.
4985 * s390/linux.h: Likewise.
4986 * sh/linux.h: Likewise.
4987 * sparc/linux-aout.h: Likewise.
4988 * sparc/linux.h: Likewise.
4989 * sparc/linux64.h: Likewise.
4990 * xtensa/linux.h: Likewise.
4992 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
4994 * stmt.c (check_unique_operand_names): Expect operand names to
4995 be strings rather than identifiers. Use simple_cst_equal to
4997 (resolve_operand_name_1): Make same identifier to string change here.
4998 * c-parse.in (asm_operand): Convert a named operand into a string.
4999 * cp/parse.y (asm_operand): Likewise.
5001 2002-04-13 Andreas Schwab <schwab@suse.de>
5003 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
5005 2002-04-12 Mark Mitchell <mark@codesourcery.com>
5007 Revert these changes:
5009 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5012 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5014 2002-04-12 Richard Henderson <rth@redhat.com>
5016 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
5017 (sparc*-*-solaris): Clean up header files.
5018 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
5019 and plan on generating 64-bit code.
5020 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
5021 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
5022 * config/sparc/sol2-sld-64.h: Rename ...
5023 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
5024 for AS_SPARC64_FLAG not defined.
5025 * config/sparc/sol2-gld-bi.h: New.
5026 * config/sparc/sol2-sld.h: Remove.
5027 * config/sparc/sol26-sld.h: New.
5028 * config/sparc/sol2.h: Tidy comments.
5029 * doc/install.texi: Document sparc-solaris configury changes.
5031 2002-04-12 Richard Henderson <rth@redhat.com>
5033 * recog.c (offsettable_address_p): Match the logic in adjust_address.
5035 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
5036 in 64-bit mode only. Use only for 32-bit or MEDLOW.
5038 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5040 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
5042 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
5044 * pa.c (pa_can_combine_p): Call extract_insn before calling
5047 2002-04-12 Douglas B Rupp <rupp@gnat.com>
5049 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
5050 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
5051 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
5052 (CPP_PREDEFINES): Handle __declspec.
5053 * config/i386/t-interix (USER_H): Remove.
5055 2002-04-12 DJ Delorie <dj@redhat.com>
5057 * integrate.c (compare_blocks): Make comparisons safe for when
5058 sizeof(int) < sizeof(char *).
5059 (find_block): Likewise.
5061 2002-04-12 Jan Hubicka <jh@suse.cz>
5062 David Edelsohn <edelsohn@gnu.org>
5064 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
5066 (symbol_ref_operand): New.
5067 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
5068 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
5070 2002-04-12 Andreas Schwab <schwab@suse.de>
5072 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
5073 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
5074 overrides the definition in config/svr4.h.
5076 2002-04-12 Eric Norum <eric.norum@usask.ca>
5078 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
5079 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
5080 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
5081 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
5082 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
5083 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
5084 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
5085 definitions to config/rtems.h and make the targets more similar.
5087 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5089 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
5090 POINTERS_EXTEND_UNSIGNED.
5091 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
5092 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
5094 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
5097 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
5099 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
5100 depends on TARGET_SHMEDIA, not TARGET_SH5.
5102 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
5104 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
5105 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
5107 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
5109 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
5112 2002-04-12 Andreas Schwab <schwab@suse.de>
5114 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
5116 2002-04-12 Richard Henderson <rth@redhat.com>
5119 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
5121 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
5122 modes spanning multiple hard regs.
5124 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
5126 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5128 * pa.c (pa_output_function_prologue): Don't accumulate the total
5129 number of code bytes when using TARGET_64BIT, or gas, SOM and not
5130 the portable runtime.
5131 (output_deferred_plabels): Handle 64bit plabels.
5132 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
5133 generating pic code using the GAS assembler for object formats that
5134 are not SOM (ie., ELF32 and ELF64).
5135 (output_millicode_call): Check attribute type if attribute length is 28.
5136 Likewise use $PIC_pcrel$0. Only call get_attr_length and
5137 dbr_sequence_length once.
5138 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
5139 dbr_sequence_length once.
5140 * pa.h (TARGET_SOM): Define if not defined.
5141 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
5142 with GAS and not SOM.
5143 (jump, call_internal_reg, call_value_internal_reg): Likewise.
5144 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
5146 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5148 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
5149 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
5150 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
5151 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
5152 elfos.h and dbxelf.h values are fine now.
5153 * config/i386/freebsd.h, config/alpha/freebsd.h
5154 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
5156 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5158 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
5159 or set Acpu or Amachine. Reformat.
5160 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5162 (LINK_SPEC): Do not need to undef.
5163 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
5164 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
5165 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5167 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
5168 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
5169 (LINK_SPEC): Do not need to undef.
5170 (DONT_USE_BUILTIN_SETJMP): Do not define.
5171 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
5172 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
5173 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
5174 Remove trailing spaces.
5175 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
5176 __ELF__, or set Acpu or Amachine. Reformat.
5177 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
5180 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5182 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
5183 all other *-*-freebsd* targets.
5185 2002-04-11 Richard Henderson <rth@redhat.com>
5187 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
5189 2002-04-11 David O'Brien <obrien@FreeBSD.org>
5191 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
5192 Include {cpu}/{cpu}.h thru tm_file.
5193 (alpha*-*-linux*ecoff): Remove target.
5194 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
5195 (LINK_SPEC): Remove, is not OS independent.
5196 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
5197 (LINK_SPEC): Do not need to #undef any longer.
5198 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
5200 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
5202 (LINK_SPEC): Moved here from alpha/elf.h.
5203 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
5205 * config/alpha/linux-ecoff.h: Remove.
5206 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
5207 (CPP_SPEC): Define _POSIX_SOURCE as needed.
5208 (CPP_SUBTARGET_SPEC): Do not define.
5209 (LINK_SPEC): Do not need to #undef any longer.
5210 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
5211 * config/alpha/vms.h: Likewise.
5213 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5215 * doc/extend.texi: Remove old claim that typedefs cannot have
5216 an alignment attribute.
5218 2002-04-11 Jakub Jelinek <jakub@redhat.com>
5220 PR optimization/6177
5221 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
5222 bitpos is 0 and bitsize CONCAT size.
5224 2002-04-11 Jakub Jelinek <jakub@redhat.com>
5227 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
5229 2002-04-10 David O'Brien <obrien@FreeBSD.org>
5231 * config/alpha/freebsd.h: Minor reformatting.
5232 (CPP_SPEC): Define ELF and add cpp_subtarget.
5233 (ASM_SPEC): No longer needed.
5235 2002-04-11 Richard Henderson <rth@redhat.com>
5237 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
5238 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
5239 (dimode mem/zero splitter): New.
5241 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
5243 * config/cris/cris.c (cris_override_options): Tweak error message
5244 for PIC not implemented.
5246 * config/cris/cris.h: Tweak comments related to parameter-passing.
5248 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
5250 2002-04-10 Richard Henderson <rth@redhat.com>
5252 * except.c (add_ehl_entry): Allow duplicates after landing pad
5255 2002-04-10 David Edelsohn <edelsohn@gnu.org>
5257 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
5259 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
5261 * c-decl.c (c_init_decl_processing): Move generation of
5262 decls for g77_integer_type_node and friends from here ...
5263 * c-common.c (c_common_nodes_and_builtins): ... to here.
5265 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
5267 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
5268 is only used as frame pointer when frame_pointer_needed is true.
5270 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
5273 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
5274 for the fact that the pool entry uses two words.
5275 (movdf_hard_insn): Similarly. Also, ADR instruction can span
5277 (movdf_soft_insn): Similarly.
5278 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
5279 for the fact that the pool entry uses three words.
5281 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
5283 * config/mips/mips.c (mips_va_arg): When using the struct version
5284 of the EABI va_list, allow arguments in the register save area to
5285 take up less room than a stack argument.
5287 2002-04-10 Richard Henderson <rth@redhat.com>
5289 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
5290 if EXPAND_INITIALIZER.
5292 2002-04-09 Richard Henderson <rth@redhat.com>
5294 * config/alpha/alpha.md (movdi_er_maybe_g): New.
5295 * config/alpha/alpha.c (alpha_expand_mov): Use it.
5297 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5299 PR optimization/6233
5300 * rtlanal.c (pure_call_p): New function.
5301 * rtl.h (pure_call_p): Declare.
5302 * loop.c (prescan_loop): Use it to set has_nonconst_call.
5303 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
5305 2002-04-09 Eric Christopher <echristo@redhat.com>
5307 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
5308 information to .comm directive.
5310 2002-04-09 Richard Henderson <rth@redhat.com>
5313 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
5315 2002-04-09 Richard Henderson <rth@redhat.com>
5317 * basic-block.h (flow_delete_block_noexpunge): Declare.
5318 (expunge_block_nocompact): Declare.
5319 * cfg.c (expunge_block_nocompact): Split out from ...
5320 (expunge_block): ... here.
5321 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
5322 (flow_delete_block_noexpunge): Split out from ...
5323 (flow_delete_block): ... here.
5324 * cfgcleanup.c (delete_unreachable_blocks): Compact while
5325 removing dead blocks.
5326 * except.c (exception_handler_labels): Remove.
5327 (exception_handler_label_map): New.
5328 (struct eh_region): Add aka member.
5329 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
5330 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
5331 (for_each_eh_label, for_each_eh_label_1): New.
5332 (init_eh): Register exception_handler_label_map.
5333 (free_eh_status): Use free_region.
5334 (find_exception_handler_labels): Use the map, not the list.
5335 (remove_exception_handler_label): Likewise.
5336 (maybe_remove_eh_handler): Likewise.
5337 (remove_eh_handler): Use the region aka bitmap.
5338 * except.h (exception_handler_labels): Remove.
5339 (for_each_eh_label): Declare.
5340 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
5341 * loop.c (invalidate_loops_containing_label): New.
5342 (find_and_verify_loops): Use it. Use for_each_eh_label.
5343 * sched-rgn.c (is_cfg_nonregular): Use
5344 current_function_has_exception_handlers.
5346 2002-04-09 Richard Henderson <rth@redhat.com>
5348 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
5349 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
5350 Do not return changed status.
5351 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
5352 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
5353 New functions that do return changed status.
5354 * sbitmap.h: Update decls.
5355 * gcse.c, lcm.c: Use _cg functions as needed.
5357 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5359 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
5360 (sh64-*-elf*, sh-*-rtemself*): Likewise.
5361 * config/sh/embed_bb.c: New file.
5362 * config/sh/embed-elf.h: New file.
5363 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
5364 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
5365 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5367 (SUBTARGET_CPP_PTR_SPEC): Don't define.
5368 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
5369 Add subtarget_asm_endian_spec.
5370 (ASM_SPEC): Use subtarget_asm_endian_spec.
5371 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
5372 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
5373 (WCHAR_UNSIGNED): Define.
5374 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
5375 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5376 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
5378 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
5379 (sh_adjust_cost): Likewise.
5380 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
5382 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
5383 (WCHAR_TYPE_SIZE): Likewise.
5384 (ASM_SPEC): Use subtarget_asm_endian_spec.
5385 (SH_ELF_WCHAR_TYPE): #undef/ #define.
5386 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
5387 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
5388 (MAX_WCHAR_TYPE_SIZE): Don't #define .
5389 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
5390 (USER_LABEL_PREFIX): Don't #undef /#define .
5391 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
5392 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
5393 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
5394 (ASM_SPEC): Likewise.
5395 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
5396 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
5397 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
5398 (LIB2FUNCS_EXTRA): Define.
5399 * t-sh64 (LIB2FUNCS_EXTRA): Define.
5400 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
5401 (LIB1ASMFUNCS_CACHE): Define.
5402 (LIB2FUNCS_EXTRA): Redefine empty.
5404 2002-04-08 Richard Henderson <rth@redhat.com>
5406 * reorg.c (get_branch_condition): Use reversed_comparison_code.
5408 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5410 * config/m68hc11/larith.asm (__map_data_section): Fix condition
5411 and optimize for size.
5412 (__do_global_ctors): Fix pointer comparison.
5413 (__do_global_dtors): Likewise.
5415 2002-04-09 David S. Miller <davem@redhat.com>
5417 * config/sparc/sparc.c (sparc_extra_constraint_check): New
5418 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
5419 allow reloading pseudos.
5420 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
5421 * config/sparc/sparc-protos.h: Declare it.
5423 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
5424 unsigned comparison warning.
5425 (output_restore_regs): Mark leaf_function as unused.
5427 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5429 * expr.c (is_aligning_offset): New function.
5430 (expand_expr, case COMPONENT_EXPR): Call it.
5432 2002-04-08 David S. Miller <davem@redhat.com>
5435 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
5437 Make init_priority work on Sparc when using GNU ld.
5438 * config/sparc/linux.h, config/sparc/linux64.h,
5439 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
5440 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
5441 * config/sparc/sol2-gld.h: New file to do the same.
5442 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
5443 sparc/sol2-gld.h to tm_file.
5445 PR optimization/4328
5446 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
5447 * doc/md.texi: Document it.
5448 * config/sparc/sparc.md (movdi_insn_sp64_novis,
5449 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
5450 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
5451 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
5452 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
5454 2002-04-08 Andreas Jaeger <aj@suse.de>
5456 * stmt.c (expand_asm_operands): Revert last patch from Richard
5459 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5461 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
5462 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
5464 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5466 * doc/contrib.texi (Contributors): Add David O'Brien.
5468 2002-04-08 Alan Modra <amodra@bigpond.net.au>
5470 * configure.in (auto-build.h): Use target_alias and build_alias
5471 when running configure.
5472 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
5473 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
5474 * configure: Regenerate.
5476 2002-04-07 David S. Miller <davem@redhat.com>
5478 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
5480 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5483 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
5484 generating 32-bit pic code.
5486 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
5488 * cppinit.c (cpp_create_reader): Initialize
5489 discard_comments_in_macro_exp.
5490 (COMMAND_LINE_OPTIONS): Add "-CC" option.
5491 (cpp_handle_option): Handle "-CC" option.
5492 * cpplex.c (save_comment): If saving a C++ comment in
5493 a directive, convert it to a C comment.
5494 (_cpp_lex_direct): Pass second comment start character to
5495 save_comment to indicate comment type.
5496 * cpplib.c (_cpp_handle_directive): If processing
5497 a "#define" directive and discard_comments_in_macro_exp
5498 is false, re-enable saving of comments.
5499 (lex_macro_node): If discard_comments_in_macro_exp is false,
5500 discard any comments before the macro identifier.
5501 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
5503 * cppmacro.c (cpp_get_token): If expanding a macro while
5504 processing a directive, discard any comments we might encounter.
5505 (parse_params): If discard_comments_in_macro_exp is false,
5506 ignore comments in the macro parameter list.
5507 * gcc.c (cpp_unique_options): Add "-CC" option.
5508 (option_map): Map "--comments-in-macros" to "-CC".
5509 * doc/cppopts.texi: Document "-CC" option.
5510 * f/lang-specs.h: Add "-CC" option.
5511 * testsuite/gcc.dg/cpp/maccom1.c: New test.
5512 * testsuite/gcc.dg/cpp/maccom2.c: New test.
5513 * testsuite/gcc.dg/cpp/maccom3.c: New test.
5514 * testsuite/gcc.dg/cpp/maccom4.c: New test.
5515 * testsuite/gcc.dg/cpp/maccom5.c: New test.
5516 * testsuite/gcc.dg/cpp/maccom6.c: New test.
5518 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5521 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
5523 2002-04-06 Mark Mitchell <mark@codesourcery.com>
5526 * stor-layout.c (layout_decl): Reset the RTL for the decl.
5529 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
5530 RTX_UNCHANGING_P for the functions arguments when a tail call
5533 2002-04-06 Jason Merrill <jason@redhat.com>
5535 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
5536 (parse_options_and_default_flags): Set them appropriately.
5537 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
5539 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
5541 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
5544 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
5547 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
5548 types come in by-reference. Fix typo in comment.
5550 2002-04-05 David S. Miller <davem@redhat.com>
5552 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
5553 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
5554 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
5555 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
5557 2002-04-05 David S. Miller <davem@redhat.com>
5559 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
5560 are not going to emit return instructions, emit at least a nop
5561 for the sake of sane backtraces.
5563 2002-04-05 Richard Henderson <rth@redhat.com>
5565 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
5567 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
5569 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
5571 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
5573 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
5574 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
5575 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
5577 2002-04-05 Andreas Schwab <schwab@suse.de>
5579 * c-convert.c: Include c-common.h.
5580 * Makefile.in (c-convert.o): Updated.
5582 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5584 * mklibgcc.in: Use separate libgcc.map for each multilib.
5585 * Makefile.in (distclean): Don't remove libgcc.map here.
5587 2002-04-05 Jakub Jelinek <jakub@redhat.com>
5589 * Makefile.in (s-mlib): Handle --disable-multilib by separate
5590 genmultilib invocation.
5592 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
5594 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
5595 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
5596 to num_gprs for symmetry.
5597 * config/mips/mips.c: Adjust accordingly.
5599 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
5601 * c-common.c (truthvalue_conversion): Rename, update.
5602 * c-common.h (c_common_truthvalue_conversion): New.
5603 * c-convert.c (convert): Update.
5604 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5605 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
5606 * c-typeck.c (build_binary_op, build_unary_op,
5607 build_conditional_expr): Update.
5608 * fold-const.c (constant_boolean_node, fold): Use langhook.
5609 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5610 * langhooks.h (struct lang_hooks): New hook.
5611 * stmt.c (expand_decl_cleanup): Use langhook.
5612 * tree.h (truthvalue_conversion): Remove.
5614 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5616 2002-04-05 Alan Modra <amodra@bigpond.net.au>
5618 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5619 Add rules to make null object file.
5621 2002-04-04 Jim Blandy <jimb@redhat.com>
5623 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5624 macro formal parameter names.
5626 2002-04-04 David S. Miller <davem@redhat.com>
5628 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5630 2002-04-04 Richard Henderson <rth@redhat.com>
5633 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5634 Support copies into and out of memory. Don't accept allows_reg
5635 and allows_mem as gospel.
5637 2002-04-04 Richard Henderson <rth@redhat.com>
5640 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5641 (write_dependence_p): Likewise.
5643 2002-04-04 Richard Henderson <rth@redhat.com>
5645 * predict.c (estimate_bb_frequencies): Do frequency calculation
5646 with a volatile temporary.
5648 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
5650 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5652 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5655 * final.c (final_start_function): Don't bump profile_label_no here...
5656 (final_end_function): ...but here.
5658 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5660 * config/sparc/sparc.md (pic): New attribute.
5661 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5663 (split after do_builtin_setjmp_setup): New.
5665 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5668 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5671 2002-04-04 Jakub Jelinek <jakub@redhat.com>
5673 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5674 UNITS_PER_WORD for zero sized aggregates.
5676 2002-04-03 David S. Miller <davem@redhat.com>
5678 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5679 one-character spec for this, just use %(link_gcc_c_sequence).
5681 2002-04-03 David S. Miller <davem@redhat.com>
5683 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5686 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5688 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5689 (DWARF_FRAME_RETURN_COLUMN): Move.
5690 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5691 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5692 * pa.c (except.h, predict.h): Include.
5694 (store_reg_modify, set_reg_plus_d): Revise prototypes.
5695 (output_ascii): Add cast.
5696 (store_reg_modify): Revise to add frame notes.
5697 (set_reg_plus_d): Likewise.
5698 (compute_frame_size): Include space for eh data registers in frame if
5699 the current function calls eh_return.
5700 (hppa_expand_prologue): Ensure register %r2 is saved if the current
5701 function calls eh_return. Save eh data registers if the current
5702 function calls eh_return. Fix code to add frame notes. Emit
5703 blockage to prevent insns with frame notes being scheduled in the
5704 delay slot of calls.
5705 (hppa_expand_epilogue): Restore eh data registers and do final stack
5706 adjustment if the current function calls eh_return. Don't add frame
5708 (output_call): Revise for change in length of call insn. Don't do
5709 return pointer adjustment for an unconditional jump in the delay slot
5710 of a call when using frame notes.
5711 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5712 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5713 (ARG_POINTER_CFA_OFFSET): Define.
5714 * pa.md (return_external_pic): New pattern.
5715 (prologue): Correct formatting. Use return_external_pic if current
5716 function calls eh_return.
5717 (call_internal_symref, call_value_internal_symref,
5718 sibcall_internal_symref, sibcall_value_internal_symref): Change default
5719 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5721 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5723 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5724 list of targets to check using "nop" insn.
5725 * configure: Rebuilt.
5727 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5729 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5731 2002-04-03 David S. Miller <davem@redhat.com>
5733 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5734 library sequence passed to the linker.
5735 (LINK_COMMAND_SPEC): Use it.
5736 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5737 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5738 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5740 2002-04-03 Jason Merrill <jason@redhat.com>
5742 * except.c (struct eh_status): Remove protect_list.
5743 (begin_protect_partials, end_protect_partials): Remove.
5744 (add_partial_entry): Remove.
5745 * except.h: Remove prototypes.
5747 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5748 expand_decl_cleanup_eh.
5751 * tree.h (CLEANUP_EH_ONLY): New macro.
5752 * stmt.c (expand_decl_cleanup_eh): New fn.
5753 (expand_cleanups): Check CLEANUP_EH_ONLY.
5754 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5755 Use expand_decl_cleanup_eh.
5756 (expand_stmt): Adjust.
5757 * c-common.h: Adjust prototype.
5759 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
5761 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5762 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5763 (cris_target_asm_function_epilogue): Ditto.
5764 (cris_initial_frame_pointer_offset): Ditto.
5765 (cris_simple_epilogue): Ditto.
5766 (cris_expand_builtin_va_arg): Variable-size types come in
5769 2002-04-03 David S. Miller <davem@redhat.com>
5771 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5773 (set_fast_math): Correct 'fsr' type.
5775 2002-04-03 Richard Henderson <rth@redhat.com>
5778 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5779 * toplev.c (check_global_declarations): Use it.
5780 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5781 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5782 (LANG_HOOKS_DECLS): Add it.
5783 * langhooks.c (lhd_warn_unused_global_decl): New.
5784 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5785 * c-objc-common.c (c_warn_unused_global_decl): New.
5786 * c-tree.h (c_warn_unused_global_decl): Declare.
5787 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5789 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
5791 * langhooks-def.h (lhd_set_decl_assembler_name,
5792 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5793 (LANG_HOOKS_INITIALIZER): Update.
5794 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5795 * langhooks.h (struct lang_hooks): New hook.
5796 * tree.c (set_decl_assembler_name): Move to langhooks.c.
5797 (lang_set_decl_assembler_name): Remove.
5798 (init_obstacks): Don't set hook.
5799 (decl_assembler_name): New function.
5800 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5801 (decl_assembler_name): New.
5802 (lang_set_decl_assembler_name): Remove.
5804 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5806 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5807 works properly with .hidden symbols.
5808 * configure: Rebuilt.
5809 * config.in: Rebuilt.
5810 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5811 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5812 properly with .hidden symbols.
5814 2002-04-03 Jakub Jelinek <jakub@redhat.com>
5817 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5820 2002-04-03 Richard Henderson <rth@redhat.com>
5823 * sched-rgn.c (sets_likely_spilled): New.
5824 (sets_likely_spilled_1): New.
5825 (add_branch_dependences): Use it.
5827 2002-04-02 Richard Henderson <rth@redhat.com>
5830 * loop.h (LOOP_FIRST_PASS): New.
5831 * loop.c (strength_reduce): Mind it when deciding to unroll.
5832 * toplev.c (rest_of_compilation): Set it.
5834 2002-04-02 David S. Miller <davem@redhat.com>
5836 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5837 mems_ok_for_ldd_peep when the order of the loads being examined
5839 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5840 existing comment to increase comprehension of this situation.
5842 2002-04-02 Zack Weinberg <zack@codesourcery.com>
5844 * config/sh/sh.md: Don't use union real_extract.
5846 2002-04-02 Richard Henderson <rth@redhat.com>
5848 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5850 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5852 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5853 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5854 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5855 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5856 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5857 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5858 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5859 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5860 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5861 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5862 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5863 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5864 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5865 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5866 Include as many configury headers via tm_file as possible. This
5867 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5868 * config/openbsd-oldgas.h: New file.
5869 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5870 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5871 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5872 config/i386/i386-coff.h, config/i386/i386-interix.h,
5873 config/i386/iscdbx.h, config/i386/linux-aout.h,
5874 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5875 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5876 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5877 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5878 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5879 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5880 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5881 config/i386/vxi386.h: Do not directly include configury headers.
5882 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5883 Directly include configury headers that are no longer automatically
5884 included by the above headers.
5885 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5886 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5887 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5888 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5889 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5890 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5891 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5892 (TARGET_VERSION): Define.
5893 * config/i386/beos-elf.h, config/i386/freebsd.h,
5894 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5895 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5896 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5897 config/i386/sco5.h, config/i386/sysv4.h
5898 (TARGET_VERSION): Do not need to protect.
5899 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5900 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5901 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5902 config/i386/i386-interix.h, config/i386/linux-aout.h,
5903 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5904 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5905 (YES_UNDERSCORES): Do not define - not needed.
5906 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5907 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5908 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5909 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5910 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5911 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5912 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5913 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5915 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
5916 Richard Henderson <rth@redhat.com>
5919 * function.c (assign_temp): Accept either type or decl argument.
5920 Detect variables whose size is too large to fit into an integer.
5921 * stmt.c (expand_decl): Pass the decl, not the type.
5923 2002-04-02 David O'Brien <obrien@FreeBSD.org>
5925 * protoize.c: Match include directory usage with cppdefault.c.
5927 2002-04-03 Jeffrey A Law (law@redhat.com)
5928 Hans-Peter Nilsson <hp@bitrange.com>
5930 * combine.c (simplify_comparison): Avoid narrowing a comparison
5931 with a paradoxical subreg when doing so would drop signficant bits.
5933 2002-04-02 Steve Ellcey <sje@cup.hp.com>
5935 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5936 if POINTERS_EXTEND_UNSIGNED is defined.
5938 2002-04-02 Richard Henderson <rth@redhat.com>
5941 * local-alloc.c (contains_replace_regs): LO_SUM may contain
5944 2002-04-02 Richard Henderson <rth@redhat.com>
5946 * doc/standards.texi: Document required freestanding libc entry points.
5948 2002-04-02 Alan Modra <amodra@bigpond.net.au>
5950 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5951 associated splitter. Remove MQ constraint.
5952 (ctrdi_internal4): Correct CCmode clobber.
5954 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
5956 * milli64.S ($$dyncall): New function.
5957 * t-linux (LIB1ASMFUNCS): Revise module list.
5958 (LIB1ASMSRC): Use pa/milli64.S.
5960 2002-04-02 Richard Henderson <rth@redhat.com>
5962 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5963 rename solaris_sys_varargs_h.
5965 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5967 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5968 the same mode as its component.
5970 2002-04-02 Richard Henderson <rth@redhat.com>
5973 * final.c (this_is_asm_operands): Export.
5974 * output.h (this_is_asm_operands): Declare.
5975 * config/i386/i386.c (print_operand): Error odd asm operands.
5977 2002-04-02 Richard Henderson <rth@redhat.com>
5980 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5982 2002-04-01 Richard Henderson <rth@redhat.com>
5985 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5986 * fixinc/fixincl.x: Rebuild.
5988 2002-04-01 Richard Henderson <rth@redhat.com>
5990 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5991 (atomic_alloc, atomic_free): New.
5992 (SIZE, MASK_FOR, PTR_IN): New.
5993 (emergency_reg_state, emergency_reg_state_free): New.
5994 (emergency_labeled_state, emergency_labeled_state_free): New.
5995 (reg_state_alloced, labeled_state_alloced): New.
5996 (alloc_reg_state, free_reg_state): New.
5997 (alloc_label_state, free_label_state, free_label_states): New.
5998 (push, pop, dup_state_stack, free_state_stack): Use them.
5999 (desc_label_state): Likewise.
6000 (uw_frame_state_for): Free label states and state stack.
6001 (uw_update_reg_address): Eliminate warnings.
6003 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
6005 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
6006 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
6008 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6010 * c-decl.c (grokdeclarator): Update.
6011 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6012 * c-tree.h (c_mark_addressable): New.
6013 * c-typeck.c (default_function_array_conversion, build_unary_op,
6014 build_array_ref, convert_for_assignment): Update.
6015 (mark_addressable): Rename.
6016 * calls.c (try_to_integrate, expand_call): Use langhook.
6017 * expr.c (expand_expr): Use langhook.
6018 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
6019 * langhooks.h (struct lang_hooks): New hook.
6020 * stmt.c (expand_asm_operands): Use langhook.
6021 * tree.h (mark_addressable): Remove.
6023 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
6025 2002-04-01 Bob Wilson <bob.wilson@acm.org>
6027 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
6030 2002-04-01 Bob Wilson <bob.wilson@acm.org>
6032 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
6033 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
6035 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6037 * c-common.c (unsigned_conversion_warning, convert_and_check,
6038 unsigned_type, signed_type, shorten_compare,
6039 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
6040 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
6041 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
6043 * c-decl.c (grokdeclarator): Update.
6044 * c-format.c (check_format_types): Update.
6045 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6046 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6047 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
6048 * convert.c (convert_to_integer): Use new hooks.
6049 * expmed.c (make_tree): Use new hooks.
6050 * expr.c (store_expr): Use new hooks.
6051 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
6052 all_ones_mask_p, unextend, fold): Use new hooks.
6053 * langhooks.h (struct lang_hooks_for_types): New hooks.
6054 * tree.h (signed_or_unsigned_type, signed_type,
6055 unsigned_type): Remove.
6057 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
6058 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
6060 2002-03-31 Richard Henderson <rth@redhat.com>
6062 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
6063 (desc_frgr_mem): Fix reference to f16-f31.
6065 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6067 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
6068 RTVEC_ELT): Const-ify.
6069 * varray.h (VARRAY_CHECK): Const-ify.
6070 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
6071 ggc_mark_rtvec, ggc_mark): Const-ify.
6073 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
6075 * diagnostic.c: Include langhooks-def.h.
6076 * Makefile.in (diagnostic.o): Update.
6078 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6080 * c-common.c (c_unsafe_for_reeval): Rename.
6081 * c-common.h (c_unsafe_for_reeval): Rename.
6082 * c-decl.c (finish_incomplete_decl): Rename.
6083 (c_init_decl_processing): Don't set langhook.
6084 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6085 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6086 * c-objc-common.c (c_objc_common_init): Don't set langhook.
6087 * c-tree.h (finish_incomplete_decl): Rename.
6088 * langhooks-def.h (lhd_unsafe_for_reeval): New.
6089 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
6090 (LANG_HOOKS_INITIALIZER): Update.
6091 * langhooks.c (lhd_unsafe_For_reeval): New.
6092 * langhooks.h (struct langhooks): New hooks.
6093 * toplev.c (incomplete_decl_finalize_hook): Remove.
6094 (wrapup_global_declarations): Update.
6095 * tree.c (lang_unsafe_for_reeval): Remove.
6096 (unsafe_for_reeval): Update.
6097 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
6100 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
6101 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
6103 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
6105 * diagnostic.c (print_error_function): Remove.
6106 (default_print_error_function): Rename.
6107 (report_error_function): Update.
6108 * diagnostic.h (print_error_function): Remove.
6109 (default_print_error_function): Remove.
6110 * langhooks-def.h (struct diagnostic_context): Predeclare.
6111 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
6112 (LANG_HOOKS_INITIALIZER): Update.
6113 * langhooks.h (struct diagnostic context): Predeclare.
6114 (struct lang_hooks): New hook.
6116 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6118 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
6119 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
6121 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
6122 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
6123 of PIC_OFFSET_TABLE_REGNUM thruout.
6124 * config/rs6000/rs6000.md: Likewise.
6125 * config/rs6000/darwin.h: Likewise.
6127 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6129 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
6130 unsigned HOST_WIDE_INT, not unsigned int.
6132 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6134 PR middle-end/6096, middle-end/6098, middle-end/6099
6135 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
6137 (fill_slots_from_thread): Likewise.
6139 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6141 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
6142 floating fields in float regs.
6143 (function_arg_record_value_2): Likewise.
6145 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6147 * config/mmix/mmix.md (define_constants): Remove misleading
6148 FIXME. Add MMIX_fp_rO_OFFSET.
6149 ("nonlocal_goto_receiver"): Don't have stack-frame address of
6150 saved rO as part of the pattern. Remove FIXME.
6151 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
6152 here, at output-time.
6154 2002-03-31 Jakub Jelinek <jakub@redhat.com>
6157 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
6159 (output_v9branch): Likewise.
6161 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
6163 * gcc.c: Revert previous patch for now.
6164 * config/i386/djgpp.h: Likewise.
6166 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
6168 * config/mmix/crti.asm (_init): Register _fini with atexit.
6169 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
6171 2002-03-31 Richard Henderson <rth@redhat.com>
6174 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
6175 (ASM_OUTPUT_DEF_FROM_DECLS): New.
6177 2002-03-31 Richard Henderson <rth@redhat.com>
6179 * libgcc2.c (__bb_exit_func): Make static.
6181 * config/alpha/alpha.md (trap): New.
6183 2002-03-31 Richard Henderson <rth@redhat.com>
6185 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
6186 promoted argument types; build trap.
6187 (expand_builtin_trap): New.
6188 (expand_builtin): Use it.
6189 * stmt.c (expand_nl_goto_receivers): Likewise.
6190 * expr.h (expand_builtin_trap): Declare.
6191 * libfuncs.h (LTI_abort, abort_libfunc): New.
6192 * optabs.c (init_optabs): Init abort_libfunc.
6194 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
6196 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
6197 (LINK_COMMAND_SPEC): ... from here.
6198 (init_gcc_specs): Duplicate it here too, omitting
6199 shared_name in the second copy.
6200 (init_spec): Test for duplicate
6201 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
6203 2002-03-30 David S. Miller <davem@redhat.com>
6205 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6206 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
6208 2002-03-30 Roger Sayle <roger@eyesopen.com>
6209 Richard Henderson <rth@redhat.com>
6211 * regmove.c (combine_stack_adjustments_for_block): Avoid
6212 emitting a stack adjustment of zero bytes. Let delete_insn
6215 2002-03-30 Richard Henderson <rth@redhat.com>
6217 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
6218 (sparc_emitting_epilogue): New.
6219 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
6220 * config/sparc/sparc-protos.h: Update.
6221 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
6222 (TARGET_SWITCHES): Update.
6223 * config/sparc/sparc.md (return): Remove.
6224 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
6225 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
6226 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
6227 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6228 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
6229 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
6230 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
6231 Remove MASK_EPILOGUE.
6232 * doc/invoke.texi: Update.
6234 2002-03-30 Daniel Berlin <dan@dberlin.org>
6236 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
6237 CPP will start the file for us.
6239 2002-03-30 Richard Henderson <rth@redhat.com>
6242 * config/ia64/ia64.c (group_barrier_needed_p): Special case
6243 prologue_allocate_stack.
6244 (ia64_single_set): Use insn codes for recognition of special
6245 cases, not rtl matching.
6246 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
6248 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
6250 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
6252 2002-03-30 Richard Henderson <rth@redhat.com>
6255 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
6256 or -fomit-frame-pointer with profiling.
6257 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6258 (FUNCTION_PROFILER): Do nothing.
6259 (PROFILE_HOOK): New.
6260 * config/sparc/sparc.c (sparc_override_options): Don't check
6261 code models for profiling.
6262 (sparc_function_profiler): Remove.
6263 (sparc_profile_hook): New.
6264 * config/sparc/sparc-protos.h: Update.
6266 2002-03-30 Jakub Jelinek <jakub@redhat.com>
6268 PR optimization/6086
6269 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
6270 of SUBREG of volatile MEM or because the MEM was mode dependent,
6271 return CLOBBER instead of unmodified SUBREG.
6273 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
6275 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
6276 when not optimizing.
6278 * toplev.c (rest_of_compilation): Cann mark_constant_function
6279 only when optimizing.
6281 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
6284 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
6285 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
6286 (try_optimize_cfg): clear all AUX fields.
6288 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
6289 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
6290 (ix86_address_cost): Be prepared for SUBREGed registers.
6291 (legitimate_address_p): Accept SUBREGed registers.
6293 2002-03-29 Richard Henderson <rth@redhat.com>
6296 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
6298 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6300 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
6301 for aggregate and TFmode types.
6303 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
6305 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
6307 2002-03-29 Richard Henderson <rth@redhat.com>
6310 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
6311 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
6313 2002-03-29 Richard Henderson <rth@redhat.com>
6316 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
6317 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
6318 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
6319 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
6321 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
6323 2002-03-29 Dale Johannesen <dalej@apple.com>
6325 * loop.c (combine_movables): Do allow combination of pseudos.
6327 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
6329 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
6330 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
6331 No functional change except ...
6332 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
6333 * doc/install.texi (*-*-freebsd*): Document port configuration.
6335 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
6337 * Makefile.in (convert.o, calls.o, expmed.o): Update.
6338 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
6340 * builtin-types.def (BT_PTRMODE): Update.
6341 * c-common.c (type_for_size): Rename c_common_type_for_size.
6342 (type_for_mode): Similarly.
6343 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
6345 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
6346 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
6347 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
6349 * c-typeck.c (common_type, comptypes, default_conversion):
6351 * calls.c: Include langhooks.h.
6352 (emit_library_call_value_1): Use new hooks. Avoid redundant
6354 * convert.c: Include langhooks.h
6355 (convert_to_pointer, convert_to_integer): Use new hooks.
6356 * except.c (init_eh): Similarly.
6357 * expmed.c: Include langhooks.h.
6358 (expand_mult_add): Use new hooks.
6359 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
6360 try_casesi): Similarly.
6361 * fold-const.c (optimize_bit_field_compare, make_range,
6362 decode_field_reference, fold_truthop, fold): Similarly.
6363 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
6364 put_var_into_stack): Similarly.
6365 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
6366 LANG_HOOKS_TYPE_FOR_SIZE): New.
6367 (LANG_HOOKS_TYPES_INITIALIZER): Update.
6368 * langhooks.h (lang_hooks_for_types): New hooks.
6369 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
6370 * tree.c (get_unwidened, get_narrower): Similarly.
6371 * tree.h (type_for_mode, type_for_size): Remove.
6372 * varasm.c (force_const_mem): Use new hooks.
6373 * utils2.c (nonbinary_modular_operation): Update.
6375 * objc-act.c (handle_impent): Update.
6376 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
6379 2002-03-29 Steve Ellcey <sje@cup.hp.com>
6381 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
6382 * config/ia64/ia64.c (basereg_operand): New.
6383 * config/ia64/ia64-protos.h (basereg_operand): Declare.
6384 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
6386 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
6388 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
6389 unwind information when frame_pointer_needed.
6390 (mmix_assemble_integer): Tweak wording in comment.
6392 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
6394 * Makefile.in (except.o): Update.
6395 * except.c: Include langhooks.h.
6396 (init_eh): Use langhook.
6397 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
6398 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
6399 (LANG_HOOKS_INITIALIZER): Update.
6400 * langhooks.h (lang_hooks_for_types): New.
6401 (struct lang_hooks): Add it.
6402 * tree.c (make_lang_type_fn, make_lang_type): Remove.
6403 * tree.h (make_lang_type_fn, make_lang_type): Remove.
6405 * alpha/alpha.c: Include langhooks.h.
6406 (alpha_build_va_list): Use langhook.
6407 * d30v/d30v.c: Include langhooks.h.
6408 (d30v_build_va_list): Use langhook.
6409 * i386/i386.c: Include langhooks.h.
6410 (ix86_build_va_list): Use langhook.
6411 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
6412 * s390/s390.c: Include langhooks.h.
6413 (s390_build_va_list): Use langhook.
6414 * stormy16/stormy16.c: Include langhooks.h.
6415 (stormy16_build_va_list): Use langhook.
6417 2002-03-29 Jakub Jelinek <jakub@redhat.com>
6420 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
6422 (length): Compute variable length for branches/calls/jumps here.
6423 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
6424 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
6425 define branch_type attribute.
6426 (divsi3_sp32): Maximum length is 6 not 7.
6427 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
6428 call_address_untyped_struct_value_sp32,
6429 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
6430 * config/sparc/sparc.c (empty_delay_slot): New function.
6431 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
6432 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
6434 2002-03-29 Jakub Jelinek <jakub@redhat.com>
6436 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
6437 nonzero_bits if not needed.
6438 (nonzero_bits) [XOR]: Likewise.
6439 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
6440 reg_last_set_mode and mode are both MODE_INT, but not equal.
6441 (record_value_for_reg): Compute reg_last_set_nonzero_bits
6442 in nonzero_bits_mode for MODE_INT modes.
6444 2002-03-28 Richard Henderson <rth@redhat.com>
6447 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
6448 to GAS. Correct drift between alternatives.
6450 2002-03-28 Richard Henderson <rth@redhat.com>
6453 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
6455 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
6457 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
6458 emulation to the linker.
6460 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
6462 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
6463 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
6465 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
6467 * combine.c (simplify_and_const_int): Make sure to apply mask
6468 when force_to_mode returns a constant integer. PR3311.
6470 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
6472 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
6474 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6476 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
6477 and Objective-C Dialect Options.
6479 2002-03-28 Richard Henderson <rth@redhat.com>
6481 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
6482 comparison should be done vs !=0 not >0 return code. Tidy cases.
6484 2002-03-28 Richard Henderson <rth@redhat.com>
6486 * c-decl.c (finish_function): New arg can_defer_p. Pass it
6487 on to c_expand_body.
6488 * c-tree.h (finish_function): Update decl.
6489 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
6491 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
6493 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
6495 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
6497 * rtlanal.c: Include flags.h
6498 (may_trap_p): Do not mark FP operations if trapping
6499 if !flag_trapping_math
6500 * Makefile.in (rtlanal.o): Add dependency on flag.h
6501 * ifcvt.c (noce_operand_ok): Avoid the lameness.
6503 2002-03-27 Zack Weinberg <zack@codesourcery.com>
6505 * mips.md: Use dconst1, not 1.0, as first argument of
6506 REAL_VALUE_LDEXP. Don't use union real_extract.
6508 2002-03-28 Alan Modra <amodra@bigpond.net.au>
6510 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
6511 rather than $target. Heed program_prefix and
6512 program_transform_name. Search for gas in cross-compiler case too.
6513 "test -x" rather than "test -f".
6514 (gcc_cv_ld): Likewise.
6515 (gcc_cv_nm): Heed program_prefix and program_transform_name.
6516 (gcc_cv_objdump): Likewise.
6517 * configure: Regenerate.
6519 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6521 * Makefile.in (attribs.o): Update.
6522 * attribs.c: Include langhooks.h.
6523 (decl_attributes): Use langhook.
6524 * c-decl.c (insert_default_attributes): Rename.
6525 * c-tree.h (c_insert_default_attributes): New.
6526 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
6527 (LANG_HOOKS_INITIALIZER): Update.
6528 * langhooks.h (struct lang_hooks): New hook.
6529 * tree.h (insert_default_attributes): Remove.
6531 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
6533 2002-03-27 Andreas Schwab <schwab@suse.de>
6535 * config/i386/i386.c (classify_argument): Also check for
6538 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6540 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
6543 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
6545 * i960.md (ret): Set PC.
6546 (nonlocal_goto): Fix expander.
6547 * builtins.c (epxand_builin_longjmp): Check that we've emitted
6550 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
6552 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
6555 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6557 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
6558 assigning to BLOCK_FOR_INSN directly.
6560 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
6562 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
6564 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6566 * c-common.c (c_expand_expr): Fix prototype.
6567 * c-common.h (c_expand_expr): Always declare, update.
6568 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6569 * c-objc-common.c (c_objc_common_init): No global hook.
6570 * expr.c (expand_expr): Use langhook.
6571 * expr.h (enum expand_modifier): Conditionally declare.
6572 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
6573 (LANG_HOOKS_INITIALIZER): Update.
6574 * langhooks.c (lhd_expand_expr): New.
6575 * langhooks.h (struct lang_hooks): New hook.
6576 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
6577 (lang_independent_init): Don't default hook.
6579 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
6581 2002-03-27 Richard Henderson <rth@redhat.com>
6584 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
6585 TARGET_CONST_GP. Simplify conditions.
6587 2002-03-27 Richard Henderson <rth@redhat.com>
6589 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6590 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
6591 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6593 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
6595 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
6596 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
6597 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
6598 Remove unnecessary masks.
6599 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
6600 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
6601 -mwindows, -mdll switches and their negations.
6603 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
6605 * gcc-common.c (lang_mark_false_label_stack): Remove.
6606 * ggc.h (lang_mark_false_label_stack): Similarly.
6608 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
6610 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6612 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6613 or __rtems_ is defined.
6615 2002-03-26 Richard Henderson <rth@redhat.com>
6617 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6618 if a non-trivial load was emitted.
6619 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
6620 in high+extra+low case.
6622 2002-03-26 Richard Henderson <rth@redhat.com>
6624 * config.gcc (sparc*-solaris): Use float_format=sparc.
6626 2002-03-26 Richard Henderson <rth@redhat.com>
6628 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6629 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6630 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6631 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6632 (WINT_TYPE_SIZE): Fix at 32.
6634 2002-03-26 Richard Henderson <rth@redhat.com>
6636 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6637 until after eh landing pad generation.
6638 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6639 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6641 2002-03-26 Richard Henderson <rth@redhat.com>
6643 * expr.h (ADD_PARM_SIZE): One more convert for INC.
6645 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
6647 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
6648 and warning switches.
6649 (cc1_options): Likewise.
6651 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
6653 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6654 Restore more of the signal context. Set no_reg_stack_frame.
6655 * config/ia64/unwind-ia64.c (unw_state_record):
6656 Add no_reg_stack_frame, comments.
6657 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6658 (uw_update_context): Adjust bsp when unwinding from leaf,
6659 but not signal frame.
6661 2002-03-26 David Edelsohn <edelsohn@gnu.org>
6663 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6665 2002-03-26 Bob Wilson <bob.wilson@acm.org>
6667 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6669 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
6672 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6673 "Add a pool_range attribute", which was lost during the ARM/Thumb
6676 2002-03-26 Bob Wilson <bob.wilson@acm.org>
6678 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6679 a register into the MAC16 accumulator.
6681 2002-03-26 Andrew Cagney <ac131313@redhat.com>
6683 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6684 (Warning Options): Document -Wswitch-enum.
6685 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
6687 (warn_switch_enum): Define variables.
6688 * flags.h (warn_switch_enum): Declare variables.
6689 * stmt.c (expand_end_case_type): When warn_switch_enum /
6690 -Wswitch-enum, perform switch checks.
6693 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
6695 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6696 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6697 (reload_muladdsi_compare0_scratch): Delete.
6699 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
6701 * doc/install.texi (*-*-freebsd*): Update.
6703 2002-03-26 Richard Henderson <rth@redhat.com>
6705 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6706 (SUB_PARM_SIZE): Cast DEC to ssizetype.
6708 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6709 types from the normal argument frame.
6711 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6712 variable sized objects by reference.
6713 (sparc_va_arg): Receive them by reference too.
6715 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
6717 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6718 code to not restoring global registers.
6720 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
6722 * Makefile.in (ggc-common.o): Update.
6723 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6724 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6725 * c-tree.h (c_mark_tree): New.
6726 * ggc-common.c: Include langhooks.h.
6727 (gcc_mark_trees): Use new langhook.
6728 * ggc-callbacks.c: Delete file.
6729 * ggc.h (lang_mark_tree): Remove.
6730 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6731 (LANG_HOOKS_INITIALIZER): Update.
6732 * langhooks.h (struct lang_hooks): New hook.
6734 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6736 2002-03-25 Zack Weinberg <zack@codesourcery.com>
6738 * doc/cpp.texi: Exclude entire Top node from printed manual.
6739 Move option index after directive index. Insert page breaks
6740 before GFDL and concept index. Index environment variables
6741 with command line options.
6742 * doc/cppenv.texi: Use @vtable for environment variable list.
6743 Add paragraph explaining semantics of empty elements in path
6744 variables. Exclude a cross-reference to Fishkill from the
6745 manpage. Remove an unnecessary cross-reference of the entry
6746 right above the referer. Don't use @anchor in text that goes
6748 * doc/cppopts.texi: Cross-reference the environment variables
6749 section, not the specific environment variable, for consistency.
6751 2002-03-25 Richard Henderson <rth@redhat.com>
6753 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6754 anywhere in the block. Don't refer to insns that have been
6755 removed from the chain. Iterate backward through the new insns.
6756 Don't refer to edges that have been removed.
6758 2002-03-26 Alan Modra <amodra@bigpond.net.au>
6760 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6761 test for overflow of constant.
6763 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
6766 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6767 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6768 these patterns on arm_archv4.
6770 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
6772 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6775 2002-03-25 Zack Weinberg <zack@codesourcery.com>
6777 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
6778 float_handled, float_handler, float_signal, set_float_handler,
6779 and do_float_handler. Set handler for SIGFPE to crash_signal.
6780 * toplev.h: Don't prototype do_float_handler.
6782 * c-lex.c: Fold parse_float into lex_number. Make warning
6783 about portability of hex float constants more informative, and
6784 don't issue it on top of a syntax error.
6785 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6787 * real.h: Define REAL_VALUE_ABS here...
6788 * simplify-rtx.c: ... not here. Fold check_fold_consts,
6789 simplify_unary_real, simplify_binary_real, and
6790 simplify_binary_is2orm1 into their callers.
6791 * tree.c: Fold build_real_from_int_cst_1 into caller.
6793 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6795 * tsystem.h: Include float.h here...
6796 * libgcc2.c: ... not here.
6798 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
6800 Fixes for: PR bootstrap/3591, target/5676
6801 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6802 defined. Do not disable exceptions or rtti.
6803 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6804 mcore.h. Disable exceptions and rtti, since they are not
6807 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
6809 * c-decl.c (maybe_build_cleanup): Remove.
6810 * expr.c (expand_expr): Use langhook.
6811 * langhooks-def.h (lhd_return_null_tree,
6812 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6813 (LANGHOOKS_INITIALIZER): Update.
6814 * langhooks.c (lhd_return_null_tree): New.
6815 * langhooks.h (struct lang_hooks): New hook.
6816 * tree-inline.c (initialize_inlined_parameters): Use langhook.
6817 * tree.h (maybe_build_cleanup): Remove.
6819 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6821 * regrename.c (build_def_use): Move recog_memoized
6822 before extract_insn.
6824 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6827 * expr.c (emit_group_store): Handle storing into CONCAT.
6829 2002-03-25 Jakub Jelinek <jakub@redhat.com>
6831 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6832 corresponding MATCH_DUP.
6834 2002-03-24 Richard Henderson <rth@redhat.com>
6836 * unroll.c (unroll_loop): Zero label_map.
6838 * gcse.c: Include except.h.
6839 * Makefile.in (gcse.o): Update.
6841 2002-03-24 Richard Henderson <rth@redhat.com>
6843 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6844 Do resolve_unique_section before shared data clause.
6846 2002-03-24 Richard Henderson <rth@redhat.com>
6848 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6850 2002-03-24 Richard Henderson <rth@redhat.com>
6852 * recog.c (peephole2_optimize): Split blocks when EH insns are
6853 generated in the middle of a block. Do global life update if
6856 2002-03-24 Richard Henderson <rth@redhat.com>
6858 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6860 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6863 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6864 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6865 (init_dependency_output): Don't make no_output decision here.
6867 2002-03-24 Andrew Cagney <ac131313@redhat.com>
6869 * stmt.c (check_for_full_enumeration_handling): Remove tests of
6870 warn_switch. Update description.
6871 (expand_end_case_type): Call check_for_full_enumeration_handling
6874 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6876 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6877 (m68hc11_split_move): Call it to see if the source and destination
6878 operands use the same direction auto inc/dec mode, otherwise make the
6879 source an offsetable memory operand and generate an add.
6881 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6883 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6884 register for operand 2.
6885 ("*subsi3_zero_extendqi"): Likewise.
6886 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6887 bits so that it is compatible with a pop.
6888 ("*andhi3_gen"): Likewise.
6889 ("xorhi3"): Likewise.
6891 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6893 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6895 (cpp_post_options): ... not here.
6897 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
6898 Aldy Hernandez <aldyh@redhat.com>
6900 Removal of separate preprocessor cpp0.
6902 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6903 cpp0, install-common): Update.
6904 * c-common.c (flag_preprocess_only): New.
6905 (c_common_init): Preprocess for -E.
6906 * c-common.h (flag_preprocess_only): New.
6907 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6908 * c-objc-common.c (c_init_decl_processing): Exit quickly
6909 for NULL return from c_common_init.
6910 * cpplib.h (cpp_preprocess_file): New.
6911 * cppmain.c (main, general_init, pfile, progname): Remove.
6912 (do_preprocessing): Rename cpp_preprocess_file, don't call
6913 cpp_finish. Don't close stdout here.
6914 (setup_callbacks): Update prototype.
6915 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6917 * tradcpp.c (main): Ignore -quiet.
6919 * lang-specs.h (default_compilers): Preprocess with cc1obj.
6921 2002-03-24 Richard Henderson <rth@redhat.com>
6923 PR optimization/5742
6924 * machmode.def: Add inner mode field to complex modes.
6925 * config/mips/mips.c (mips_function_value): Always define. Add
6926 new argument to handle libcalls.
6927 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6928 (FUNCTION_VALUE): Likewise.
6929 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6930 * config/mips/mips-protos.h: Update.
6932 2002-03-23 Richard Henderson <rth@redhat.com>
6934 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6935 * config/sparc/sparc-protos.h: Update.
6936 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6938 2002-03-23 Richard Henderson <rth@redhat.com>
6940 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6941 _start or _init begins the text segment.
6943 2002-03-23 David Edelsohn <edelsohn@gnu.org>
6945 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
6946 not HOST_WIDEST_INT.
6947 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6949 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
6952 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6953 operand argument to output_return_instruction.
6954 * arm.c (arm_print_operand, case 'd'): If the operand is
6955 const_true_rtx then just return.
6956 (arm_print_operand, case 'D'): If the operand is const_true_rtx
6959 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6961 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6962 (Warning Options): Document -Wswitch-default.
6963 * toplev.c (W_options): Add -Wswitch-default. Update comment on
6965 (warn_switch_default): Define variable.
6966 (warn_switch): Update comment.
6967 * flags.h (warn_switch_default): Declare variable.
6968 (warn_switch): Update comment.
6969 * stmt.c (expand_end_case): Check for and, when
6970 warn_switch_no_default, warn of a missing default case.
6972 2002-03-23 Alan Modra <amodra@bigpond.net.au>
6974 * real.h (N): Special case 128 bit doubles.
6976 * combine.c (simplify_comparison): When widening modes, ignore
6977 sign extension on CONST_INTs.
6979 2002-03-22 Bob Wilson <bob.wilson@acm.org>
6981 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6982 passed to adjust_address. Fix comment formatting.
6985 2002-03-22 Zack Weinberg <zack@codesourcery.com>
6987 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6988 Always make REAL_VALUE_TYPE a struct containing an array of
6989 HOST_WIDE_INT, not a double. Tidy up the code deciding how
6990 big it is. Don't declare or use union real_extract.
6992 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6993 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6994 (print_operand), config/arm/arm.c (output_move_double),
6995 config/arm/arm.md (consttable_4, consttable_8),
6996 config/romp/romp.c (output_fpops), config/s390/s390.h
6997 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6998 (xtensa_output_literal): Don't use union real_extract.
7000 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
7001 (sfmode_constant_to_ulong), config/ns32k/merlin.h
7002 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
7003 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
7004 (PRINT_OPERAND): Don't use local version of union
7007 * config/convex/convex.c (check_float_value), config/vax/vax.c
7008 (vax_float_literal), config/m88k/m88k.md (divdf3),
7009 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
7010 config/pdp11/pdp11.c (output_move_quad): Don't do host
7011 arithmetic on target floating point quantities.
7013 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
7014 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
7016 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
7017 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
7019 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
7020 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
7022 * print-rtl.c (print_rtx): Disable code which needs
7023 floating-point emulator.
7024 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
7025 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
7026 depending on HOST_FLOAT_FORMAT to be defined properly.
7028 * config/1750a/1750a.c (get_double, float_label): Delete.
7029 (print_operand): Delete huge commented-out chunk. Use
7030 REAL_VALUE_TO_DECIMAL.
7031 * config/1750a/1750a-protos.h: Delete prototypes of deleted
7033 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
7035 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
7036 Use REAL_VALUE_TO_DECIMAL as ELF version does.
7037 * config/m88k/m88k.c (real_power_of_2_operand,
7038 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
7039 real_extract out of the union; run the input through
7040 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
7041 from that into the union.
7042 * config/pdp11/pdp11.c (output_move_double): Rearrange
7043 parentheses to make automatic indenter happy.
7045 * doc/tm.texi (Cross-compilation): Rename node to "Floating
7046 Point" and rewrite to describe current situation. Also adjust
7047 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
7049 * doc/rtl.texi: Adjust cross reference.
7051 2002-03-22 Bob Wilson <bob.wilson@acm.org>
7053 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
7054 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
7055 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
7056 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
7057 prevent use of sp as a reload register.
7058 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
7059 non_acc_reg_operand.
7060 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
7061 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
7062 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
7063 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
7065 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7067 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
7068 * cpplex.c (unterminated): Delete.
7069 (parse_string): No string literal may extend over multiple
7070 lines. Suppress the error when preprocessing assembly.
7071 * cppmain.c (scan_translation_unit): Strings are single-line.
7073 * doc/cpp.texi: Update to match.
7075 2002-03-22 Jakub Jelinek <jakub@redhat.com>
7077 PR optimization/5854
7078 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
7080 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
7081 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
7082 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
7083 const0 if scratch register was not allocated.
7084 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
7085 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
7087 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
7088 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
7089 with GEN_INT (...) everywhere. Remove constraints in define_split
7091 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
7092 require scratch register for setting 0 into regs/non-pushable memory.
7094 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
7096 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
7097 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
7099 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
7101 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
7102 * cppinit.c (cpp_create_reader): On by default.
7103 (cpp_handle_option): Handle -W[no-]endif-labels.
7104 (cpp_post_options): Also enable if -pedantic.
7105 * cpplib.c (do_else): Use it.
7106 (do_endif): Likewise.
7107 * doc/cppopts.texi: Document new option.
7108 * doc/invoke.texi: Document new option.
7110 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
7112 * config/i386/i386.c, config/i386/i386.md: Change all occurences
7113 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
7115 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
7117 * flow.c (calculate_global_regs_live): Clear aux fields of
7120 2002-03-22 Jakub Jelinek <jakub@redhat.com>
7122 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
7123 REG or MEM subregs, pass rtx * instead of rtx to it.
7124 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
7125 rtx * instead of rtx to alter_subreg.
7126 * config/m32r/m32r.c (gen_split_move_double): Likewise.
7127 * config/pj/pj.c (pj_output_rval): Likewise.
7129 2002-03-22 Richard Henderson <rth@redhat.com>
7132 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
7133 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
7134 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
7135 (ia64_expand_prologue): Look at int_regs, not words, for number
7136 of incomming int regs.
7138 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
7140 * expr.c (expand_expr): A RESULT_DECL is part of a call.
7142 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
7144 * toplev.c (flag_loop_optimize, flag_crossjumping):
7145 New static variables.
7146 (rest_of_compilation): Conditionalize crossjumping and
7148 (parse_options_and_default_flags): Default loop_optimize and
7150 (lang_independent_options): Add -fcrossjumping and -floop-optimize
7151 * invoke.texi (crossjumping, loop-optimize): Document.
7153 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7155 * real.c (eiisneg): Move outside #ifdef NANS.
7157 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
7159 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
7160 frequencies match; avoid match on different loop depths.
7161 (try_crossjump_to_bb): Kill tests that no longer brings time
7163 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
7165 (split_edge): Likewise.
7167 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
7170 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
7171 * cfgrtl.c: Include insn-config.h
7172 (split_block) Dirtify block in presence of conditional execution
7174 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7176 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
7177 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
7178 (function_arg): Constify CUMULATIVE_ARGS.
7179 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
7180 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
7181 (UNITS_PER_DOUBLE): New macro.
7182 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
7183 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
7184 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
7185 fp_regs and stack_words.
7186 (EABI_FLOAT_VARARGS_P): New macro.
7187 * config/mips/mips.c (struct mips_arg_info): New.
7188 (mips_arg_info): New function.
7189 (function_arg_advance): Use it. Add adjustment instructions here
7190 rather than in function_arg.
7191 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
7192 for VOIDmode at the beginning of the function.
7193 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
7194 (function_arg_pass_by_reference): Likewise.
7195 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
7196 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
7197 (mips_va_start): Likewise. Use the new stack_words field of
7198 CUMULATIVE_ARGS to set up overflow area. Reformat.
7199 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
7200 doubles and other types, aligning the overflow pointer for non-doubles
7201 too. Remove some code duplication. Replace hard-coded constants.
7203 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
7205 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
7206 (CLASS_UNITS): Undefine.
7207 (CLASS_MAX_NREGS): Use FP_INC.
7208 * config/mips/mips.c (compute_frame_size): Likewise.
7209 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
7211 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
7213 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
7214 prototype, and handle lexing numbers and identifiers.
7215 (parse_identifier): Update to new form of parse_slow.
7216 (parse_number): Fast path only, use parse_slow otherwise.
7217 (_cpp_lex_direct): Update calls to parse_number.
7219 2002-03-21 DJ Delorie <dj@redhat.com>
7221 * bb-reorder.c (make_reorder_chain_1): Protect against
7222 when redundant edges are omitted.
7223 * predict.c (dump_prediction): Likewise.
7225 2002-03-21 Richard Henderson <rth@redhat.com>
7228 * fixinc/inclhack.def (solaris_stdio_tag): New.
7229 * fixinc/fixincl.x: Regenerate.
7231 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
7234 * c-typeck.c (process_init_element): Flag non-static
7235 initialization of a flexible array member as illegal.
7237 2002-03-22 Alan Modra <amodra@bigpond.net.au>
7239 * config/rs6000/t-linux64: New.
7240 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
7241 t-ppccomm. Use t-rs6000 and t-linux64.
7242 (powerpc64-*-gnu* <tmake_file>): Likewise.
7243 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
7244 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
7245 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
7247 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
7249 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
7250 flag_really_no_inline instead of optimize == 0.
7252 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
7254 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
7256 * flags.h (flag_really_no_inline): New.
7258 * c-common.c (c_common_post_options): Initialize
7259 flag_really_no_inline.
7261 * toplev.c (flag_really_no_inline): New.
7263 2002-03-21 Jakub Jelinek <jakub@redhat.com>
7265 * config/avr/avr.md (length): Fix length computation for
7266 conditional branches.
7268 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
7270 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
7271 sdbout.o, profile.o): Update.
7272 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
7274 * c-common.h (gettags): Move here from tree.h.
7275 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
7276 insert_block, getdecls, kept_level_p, global_bindings_p): New.
7277 * dbxout.c (dbxout_init): Use getdecls langhook.
7278 * expr.c (expand_expr): Use insert_block langhook.
7279 * fold-const.c: Include langhooks.h.
7280 (fold_range_test, fold_binary_op_with_conditional_arg,
7281 fold): Use global_bindings_p langhook.
7282 * integrate.c (expand_inline_function): Use insert_block langhook.
7283 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
7284 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
7285 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
7286 LANG_HOOKS_GETDECLS): New.
7287 (LANG_HOOKS_INITIALIZER): Update.
7288 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
7290 * langhooks.h (struct lang_hooks_for_decls): New.
7291 (struct lang_hooks): Update.
7292 * profile.c: Include langhooks.h.
7293 (output_func_start_profiler): Use new langhooks.
7294 * sdbout.c: Include langhooks.h.
7295 (sdbout_init, sdbout_finish): Use getdecls langhook.
7296 * stmt.c: Include langhooks.h.
7297 (expand_fixup, fixup_gotos): Use new langhooks.
7298 * stor-layout.c: Include langhooks.h.
7299 (variable_size): Use global_bindings_p langhook.
7300 * toplev.c (compile_file): Use getdecls langhook.
7301 * tree-inline.c (remap_block): Use insert_block langhook.
7302 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
7303 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
7305 2002-03-21 Richard Henderson <rth@redhat.com>
7307 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
7308 constants in .data when -fpic.
7310 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7312 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
7315 2002-03-21 Tom Tromey <tromey@redhat.com>
7317 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
7319 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7321 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
7323 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
7325 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
7326 Richard Henderson <rth@redhat.com>
7329 * c-common.c (c_expand_expr): Preserve result of a statement
7330 expression if needed.
7332 2002-03-21 Jakub Jelinek <jakub@redhat.com>
7335 * genrecog.c (maybe_both_true_mode): Remove.
7336 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
7337 * machmode.def (Pmode): Likewise.
7339 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
7341 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
7342 (nonlocal_mentioned_p_1): New function.
7343 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
7344 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
7345 (mark_constant_function): Recognize pure functions.
7346 * rtl.h (global_reg_mentioned_p): New prototype.
7347 * rtlanal.c (global_reg_mentioned_p,
7348 global_reg_mentioned_p_1): New function.
7350 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7352 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
7354 * fixinc/fixincl.x: Regenerate.
7356 2002-03-20 Jason Merrill <jason@redhat.com>
7358 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
7360 2002-03-20 Michael Meissner <meissner@redhat.com>
7362 * doc/invoke.texi (Optimize Options): Document that -O2 sets
7365 2002-03-20 Bob Wilson <bob.wilson@acm.org>
7367 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
7368 ".literal_position" directive before the constant pool.
7370 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7372 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
7373 Add Craig Rodrigues.
7374 Add Brad Lucier to testers.
7376 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7379 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
7381 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
7382 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
7383 instead of insn_extract.
7385 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7388 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
7390 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
7391 stmt if some case has been output.
7393 2002-03-20 Jakub Jelinek <jakub@redhat.com>
7396 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
7397 movsfcc_1, movdfcc_1): Add %O2.
7398 * config/i386/i386.c (print_operand): Handle %ON.
7399 Print . before float condition codes in Sun as cmov syntax.
7400 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
7401 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
7404 2002-03-20 Philip Blundell <pb@nexus.co.uk>
7406 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
7407 return instruction if PC was popped.
7409 2002-03-20 Bob Wilson <bob.wilson@acm.org>
7411 * config/xtensa/xtensa.md: Remove unused type attributes.
7412 (adddi_carry, subddi_carry): Change type attribute to "multi".
7414 2002-03-19 Dale Johannesen <dalej@apple.com>
7416 PR optimization/5999, middle-end/5731
7417 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
7418 multiplications by reciprocals.
7420 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
7422 * Makefile.in: Update.
7423 * c-common.c: Include langhooks.h.
7424 (inline_forbidden_p): Use new hook.
7425 * diagnostic.c: Include langhooks.h.
7426 (format_with_decl, announce_function,
7427 default_print_error_function): Use new hook.
7428 * dwarf2out.c (dwarf2_name): Use new hook.
7429 * function.c: Include langhooks.h.
7430 (init_function_start): Use new hook.
7431 * langhooks-def.h (lhd_decl_printable_name): New.
7432 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
7433 (LANGHOOKS_INITIALIZER): Update.
7434 * langhooks.c (lhd_decl_printable_name): New.
7435 * langhooks.h (struct lang_hooks): New hook.
7436 * toplev.c (decl_name, decl_printable_name): Remove.
7437 (open_dump_file): Use new hook.
7438 (process_options): Remove old hook.
7439 * tree.h (decl_printable_name): Remove.
7441 * objc-act.c (objc_init): Remove old hook.
7442 (objc_printable_name): Export.
7443 * objc-act.h (objc_printable_name): New.
7444 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
7446 2002-03-19 Jim Blandy <jimb@redhat.com>
7448 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
7449 the start_source_file debug hook, not the current line number.
7451 2002-03-19 Richard Henderson <rth@redhat.com>
7453 * flow.c (EH_USES): Provide default.
7454 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
7455 * doc/tm.texi (EH_USES): New.
7457 * config/ia64/ia64.c (ia64_eh_uses): New.
7458 * config/ia64/ia64-protos.h: Update.
7459 * config/ia64/ia64.h (EH_USES): New.
7461 2002-03-19 Richard Henderson <rth@redhat.com>
7463 * varasm.c (output_constant_def): Fix stupid typo.
7465 2002-03-19 Richard Henderson <rth@redhat.com>
7468 * except.c (current_function_has_exception_handlers): New.
7469 * except.h: Declare it.
7470 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
7471 Combine tests that disable all sibcalls for the function.
7473 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
7475 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
7478 2002-03-19 Richard Henderson <rth@redhat.com>
7481 * config/ia64/ia64.c: Revert 2002-03-01 patch.
7482 * config/ia64/ia64.h (INIT_EXPANDERS): New.
7484 2002-03-19 Jim Blandy <jimb@redhat.com>
7486 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
7487 name, even if the replacement list contains no tokens, as required
7490 2002-03-19 Jason Merrill <jason@redhat.com>
7492 * varasm.c (globalize_decl): Get the name from the RTL, not
7493 DECL_ASSEMBLER_NAME.
7495 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
7497 2002-03-19 Bob Wilson <bob.wilson@acm.org>
7499 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
7500 subdi_carry): Define.
7502 2002-03-19 David Edelsohn <edelsohn@gnu.org>
7504 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
7505 about -fpic/-fPIC if extra_warnings set.
7507 2002-03-19 David Edelsohn <edelsohn@gnu.org>
7509 * expr.c (expand_expr): Sign-extend CONST_INT generated from
7510 TREE_STRING_POINTER.
7511 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
7513 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7515 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
7516 in favor of SP if FRAME_POINTER_REQUIRED is false.
7518 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
7520 * emit-rtl.c (gen_int_mode): New function.
7521 * rtl.h: Prototype for it.
7522 * combine.c (make_extraction, simplify_comparison), expmed.c
7523 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
7524 (convert_modes, store_field), optabs.c (expand_fix),
7525 simplify-rtx.c (neg_const_int, simplify_unary_real),
7527 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
7528 Use it instead of GEN_INT (trunc_int_for_mode (...)).
7530 2002-03-19 Jakub Jelinek <jakub@redhat.com>
7533 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
7534 convert_parm_for_inlining.
7535 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7537 * langhooks-def.h: Likewise.
7538 * objc/objc-lang.c: Likewise.
7539 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
7541 * tree-inline.c (initialize_inlined_parameters):
7542 Call convert_parm_for_inlining lang hook if needed.
7543 * c-typeck.c (c_convert_parm_for_inlining): New function.
7544 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
7546 2002-03-18 Mark Mitchell <mark@codesourcery.com>
7548 * calls.c (precompute_arguments): Do not assume that temporaries
7549 can be destroyed after expanding the argument.
7550 (expand_call): Likewise.
7552 2002-03-15 Eric Christopher <echristo@redhat.com>
7554 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
7555 Fix register preference on last change.
7556 * config/mips/mips.c (mips_return_in_memory): New function.
7557 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
7558 * config/mips/mips-protos.h: Declare.
7559 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
7560 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
7562 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
7564 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
7566 (anddi3, iorsi3): Likewise.
7568 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
7569 use %gprel for symbols that are going to be placed in linkonce
7572 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
7573 RETURN_ADDRESS_POINTER_REGNUM to $ra.
7574 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
7575 not needed. Disregard leaf_function_p().
7576 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
7577 mips16 frame pointer.
7578 * config/mips/mips.md (store ra): Only to small SP offsets.
7579 2001-08-22 Graham Stott <grahams@redhat.com>
7580 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
7581 return a REG rtx for the return address register.
7583 2002-03-18 Bob Wilson <bob.wilson@acm.org>
7585 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
7586 constant-pool addresses as "mode-dependent".
7587 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
7589 2002-03-18 Jakub Jelinek <jakub@redhat.com>
7592 * expr.c (emit_group_load): Use extract_bit_field if
7593 needed for CONCAT arguments.
7595 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
7598 * arm.md (tablejump): Make this a define_expand. For PIC add the
7599 offset to the base of the table.
7600 (thumb_tablejump): Matcher for Thumb tablejump insn.
7601 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
7602 as the difference of two labels.
7603 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7604 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
7606 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7607 * arm.c (get_jump_table_size): If the table is not in the text
7608 section, return zero.
7610 2002-03-18 Bernd Schmidt <bernds@redhat.com>
7612 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7614 (arm_reload_out_hi): Use gen_lowpart instead of
7615 gen_rtx_SUBREG to access QImode components.
7616 * config/arm/arm.md: Disable zero_extend split for QImode
7617 subregs in BIG_ENDIAN mode.
7618 (storehi_bigend): Match use of least significant byte.
7619 (storeinthi): Remove extraneous SUBREG.
7620 Add missing construction of operands[2].
7621 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7622 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7623 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7625 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
7627 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7630 2002-03-17 Richard Henderson <rth@redhat.com>
7632 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7635 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7637 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7638 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7640 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7642 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7644 * predict.c (estimate_bb_frequencies): Delete unused variables.
7646 2002-03-17 Richard Henderson <rth@redhat.com>
7648 * config/ia64/ia64.c (ia64_attribute_table): Move before
7649 targetm definition. Make static.
7651 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
7653 * c-common.h (yyparse, c_common_parse_file): New.
7654 * c-lang.c: Include c-common.h.
7655 (LANG_HOOKS_PARSE_FILE): Redefine.
7656 * c-lex.c: Include c-common.h.
7657 (yyparse): Rename c_common_parse_file. Call yyparse.
7658 * c-parse.in (yyparse): Remove macro.
7659 * c-tree.h (yyparse_1): Remove.
7660 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7661 (LANG_HOOKS_INITIALIZER): Update.
7662 * langhooks.h (struct lang_hoooks): New hook parse_file.
7663 * toplev.c (compile_file): Use parse_file hook.
7664 * tree.h (yyparse): Remove.
7665 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
7667 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
7669 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7670 float_truncate, not fix.
7671 ("*truncdfsf2_real"): Ditto.
7672 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7674 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7676 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
7678 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7679 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
7680 where appropriate. Make the second reference to
7681 leaf_function_p a function call, as intended. Reindented.
7683 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7684 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7686 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7687 add register to non-constant into sp.
7689 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7690 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7691 (mips16_gp_pseudo_rtx): Lose.
7692 (INIT_EXPANDERS): Deleted.
7693 * config/mips/mips.c (mips_init_machine_status): New.
7694 (mips_free_machine_status): New.
7695 (mips_mark_machine_status): New.
7696 (override_options): Set them.
7697 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7698 (struct machine_function): ... new. Replaced all references.
7699 (mips_add_gc_roots): Don't mark them.
7700 (embedded_pic_fnaddr_reg): New, extracted from...
7701 (embedded_pic_offset): ... here.
7702 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7705 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7707 * cppinit.c: Revert -MD removal.
7709 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7711 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7712 soft registers by default for 68HC12.
7713 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7714 when compiling with -fomit-frame-pointer.
7715 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7716 (expand_epilogue): Likewise.
7717 (m68hc11_gen_rotate): Use exg when rotating by 8.
7719 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7721 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7722 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7723 (splits): Remove unused add splits.
7724 ("*addhi3_68hc12"): Tune constraints.
7725 ("addhi_sp"): Try to use X instead of Y in all cases and if the
7726 constant fits in 8-bits and D is dead use abx/aby instructions.
7727 ("*addhi3"): Remove extern declaration of ix_reg.
7728 ("*subsi3"): Optimize and provide new split.
7729 ("subhi3"): Cleanup.
7730 ("*subhi3_sp"): Avoid saving X if we know it is dead.
7731 (arith splits): For 68hc12 save the address register on the stack
7732 and do the arithmetic operation with a pop.
7734 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7736 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7737 allocating QImode in address registers.
7738 ("*movqi_m68hc11"): Likewise.
7740 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
7742 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7744 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
7746 * cppinit.c (print_help): Display -MD and -MMD.
7747 Don't display usage string. Update assertion syntax and
7749 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7750 (cpp_handle_option): Update.
7752 2002-03-15 Chris Demetriou <cgd@broadcom.com>
7754 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7755 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7756 and define it so that regardless of target CPU size,
7757 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7758 of "int" rather than "long."
7760 2002-03-15 Richard Henderson <rth@redhat.com>
7762 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7765 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7767 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7768 ("tstqi" split): Avoid using memory for tstqi on address register.
7769 (splits): Remove constraints.
7770 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7771 ("cmpdf", "cmpsf"): Remove since not used.
7772 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7773 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7775 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7777 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7778 ("neghi2"): Tighten constraints.
7779 ("one_cmplsi2"): Optimize and simplify split.
7780 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7782 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7784 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7785 and split of AND operation to clear the upper bits.
7786 ("*logicalsi3_zextqi"): Likewise.
7787 ("*logicallhi3_zexthi_ashift8"): Likewise.
7788 ("*logicalsi3_silshr16"): Likewise.
7789 ("logicalsi3_silshl16"): Likewise.
7790 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7792 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7794 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7795 (m68hc11_indirect_p): New function.
7796 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7797 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7799 (asm_print_register): Likewise.
7800 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7801 (m68hc11_indirect_p): Declare.
7802 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7803 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7804 (TARGET_SWITCHES): New option -mrelax.
7805 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7807 ("iorsi3", "xorsi3"): Likewise.
7808 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7809 ("*andhi3_mem"): New to handle destination in memory with bclr
7810 and a scratch register.
7811 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7812 ("*andhi3_const"): New when operand2 is constant.
7813 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7814 ("*andhi3_gen"): Cleanup of the old "andhi3".
7815 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7816 ("xorqi3"): Update constraints.
7818 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7820 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7821 for reg_equiv_memory_loc when the operand is a register that does
7822 not get a hard register (stack location).
7823 (tst_operand): After reload, accept all memory operand.
7824 (symbolic_memory_operand): Fix detection of symbolic references.
7825 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7826 accept symbols and any constant.
7828 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7830 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7831 note on the insn that sets the soft frame register.
7832 (must_parenthesize): ix and iy are also reserved names.
7833 (print_operand_address): One more place where parenthesis are required
7834 to avoid confusion with register names.
7835 (m68hc11_gen_movhi): Allow push of stack pointer.
7836 (m68hc11_check_z_replacement): Fix handling of parallel with a
7838 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7839 the replacement register is.
7840 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7841 and D8_REGS classes.
7842 (MODES_TIEABLE_P): All modes are tieable except QImode.
7844 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7846 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7847 (___subdi3): Likewise.
7848 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7849 (__map_data_section): Optimize 68hc11 case.
7851 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7853 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7854 than a shift to avoid adding a register with itself.
7855 (m68hc11_memory_move_cost): Take into account NO_REGS.
7856 (m68hc11_register_move_cost): Update and use memory move cost
7858 (m68hc11_address_cost): Make cost of valid offset not 0 so that
7859 it gives more opportunities to cse to optimize.
7860 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7861 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7863 2002-03-15 Mark Mitchell <mark@codesourcery.com>
7865 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7866 * c-common.def (CLEANUP_STMT): New tree node.
7867 * c-common.h (CLEANUP_DECL): New macro.
7868 (CLEANUP_EXPR): Likewise.
7869 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7870 * expr.c (expand_expr): Tidy.
7871 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7872 * tree-inline.c (initialize_inlined_parameters): Clean up
7873 new local variables.
7875 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7878 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7879 before movrXX only, use reg_overlap_mentioned_p.
7880 Only special case NE if just one insn can be generated.
7882 2002-03-15 Jason Merrill <jason@redhat.com>
7884 * varasm.c (assemble_variable): Call resolve_unique_section before
7885 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
7888 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
7891 * arm.md (split pattern for thumb shiftable immediates): Add comment
7892 explaining non-obvious test.
7894 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
7897 * arm.md (movaddr, movaddr_insn): Delete.
7899 2002-03-15 Jason Merrill <jason@redhat.com>
7901 * toplev.c (wrapup_global_declarations): Clarify variable handling.
7902 -fkeep-static-consts doesn't apply to comdats.
7904 2002-03-14 Richard Henderson <rth@redhat.com>
7906 * c-decl.c: Include c-pragma.h.
7907 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7908 (finish_function): Tidy.
7909 * c-pragma.c: Include c-common.h.
7910 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7911 (handle_pragma_weak): Use them.
7912 (init_pragma): Register pending_weaks.
7913 * c-pragma.h (maybe_apply_pragma_weak): Declare.
7914 * print-tree.c (print_node): Print DECL_WEAK.
7915 * varasm.c (mark_weak_decls): Remove.
7916 (remove_from_pending_weak_list): Remove.
7918 (asm_emit_uninitialised): Call globalize_decl for weak commons.
7919 (weak_decls): Make a tree_list.
7920 (declare_weak): Cons weak_decls directly.
7921 (globalize_decl): Remove weak_decls elements directly.
7922 (weak_finish): Simplify weak_decls walk. Don't weaken unused
7923 symbols. Don't pretend to handle aliases.
7924 (init_varasm_once): Update weak_decls registry.
7925 * Makefile.in: Update dependencies.
7927 2002-03-14 Richard Henderson <rth@redhat.com>
7930 * config/ia64/ia64.c: Include tm_p.h last.
7931 (gen_nop_type): Remove duplicate definition.
7932 (cycle_end_fill_slots): Set sched_data for second L slot.
7933 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7934 (nop_cycles_until): Fix typos.
7936 2002-03-15 Jakub Jelinek <jakub@redhat.com>
7938 PR optimization/5891
7939 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7941 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7943 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7944 descriptors correctly.
7946 2002-03-14 Michael Meissner <meissner@redhat.com>
7948 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7949 100, allowing MAX_UNROLLED_INSNS to be overridden.
7951 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7954 * unroll.c (params.h): Include.
7955 (MAX_UNROLLED_INSNS): Delete, now in params.h.
7957 * doc/invoke.texi (--param max-unroll-insns): Document.
7959 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7961 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7963 * arm.md: Fix warnings about constraints in peepholes and splits.
7965 2002-03-14 Zack Weinberg <zack@codesourcery.com>
7967 * cpphash.h (struct lexer_state): Remove line_extension member.
7968 * cpplib.c (dequote_string, do_linemarker): New functions.
7969 (linemarker_dir): New data object.
7970 (DIRECTIVE_TABLE): No longer need to interpret #line in
7971 preprocessed source. Delete obsolete comment about return
7973 (end_directive, directive_diagnostics, _cpp_handle_directive):
7974 Don't muck with line_extension.
7975 (directive_diagnostics): No need to issue warnings for
7977 (_cpp_handle_directive): Issue warnings for linemarkers here,
7978 when appropriate. Dispatch linemarkers to do_linemarker, not
7980 (do_line): Code to handle linemarkers split out to do_linemarker.
7981 Convert escape sequences in filename argument, both places.
7983 * cppmacro.c (quote_string): Rename cpp_quote_string and
7984 export. All callers changed.
7985 * cpplib.h (cpp_quote_string): Prototype.
7986 * cppmain.c (print_line): Call cpp_quote_string on to_file
7989 * doc/cpp.texi: Document that escapes are now interpreted in
7990 #line and in linemarkers, and that non-printing characters are
7991 converted to octal escapes when linemarkers are generated.
7993 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
7995 * emit-rtl.c (try_split): Use delete_insns.
7996 * recog.c (split_all_insns): Fix terminating condition.
7998 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
7999 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8002 * arm.c (arm_output_epilogue): Fix floating-point register save
8003 adjustment when using a frame pointer.
8005 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
8007 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
8008 * config/mips/mips.c (compute_frame_size): Retrofit them here.
8009 (save_restore_insns, mips_expand_epilogue): And here.
8010 (build_mips16_call_stub): And here.
8011 (mips_function_value): Use the new macros to decide whether a single
8012 or complex float can be returned in floating-point registers. Return
8013 a parallel rtx in the complex case.
8015 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
8017 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
8018 call after liveness analysis.
8020 * recog.c (split_insn): Use delete_insn_and_edges.
8022 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
8023 instructions to have branch prediction notes.
8024 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
8026 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
8028 * configure.in: Don't pass -Wno-long-long to a ADA compiler
8029 that doesn't support it.
8030 * configure: Regenerate.
8032 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8035 * config/sparc/sparc.md (normal_branch, inverted_branch,
8036 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
8037 inverted_fp_branch): Adjust calls to output_cbranch.
8038 Set length attribute.
8039 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
8040 output_v9branch. Set length attribute.
8041 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
8043 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
8044 (output_cbranch): Likewise. Handle far branches.
8045 (output_v9branch): Handle far branches.
8046 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
8048 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
8049 noov_compare64_op predicates.
8051 2002-03-13 Jason Merrill <jason@redhat.com>
8053 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
8054 into the function and constify it.
8055 * gthr-dce.h, gthr-solaris.h: Likewise.
8057 2002-03-13 David Edelsohn <edelsohn@gnu.org>
8059 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
8060 * config/rs6000/rs6000.c (rs6000_va_arg): Use
8061 std_expand_builtin_va_arg if not ABI_V4.
8063 2002-03-13 Jason Merrill <jason@redhat.com>
8065 * varasm.c (globalize_decl): New fn.
8066 (assemble_start_function): Use it.
8067 (asm_emit_uninitialized): Use it.
8068 (assemble_alias): Use it.
8069 (assemble_variable): Use it.
8071 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
8073 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
8074 2002-03-12 internal visibility change.
8075 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
8076 visibility into SYMBOL_REF_FLAG.
8078 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
8080 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
8081 VOIDmode operand. Add compile-time optimization for constant results.
8083 2002-03-12 Jason Merrill <jason@redhat.com>
8085 * c-typeck.c (convert_for_assignment): Don't allow conversions
8086 between pointers and references. Only allow lvalues to convert to
8089 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
8091 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
8092 before prologue, to avoid scheduling problems.
8094 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8096 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
8097 (ELIMINABLE_REGS): Add sfp->sp.
8098 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
8100 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8102 PR optimization/5892
8103 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
8105 2002-03-13 Jakub Jelinek <jakub@redhat.com>
8107 * loop.c (basic_induction_var): Don't call convert_modes if mode
8108 classes are different.
8110 2002-03-12 Richard Henderson <rth@redhat.com>
8112 PR optimization/5901
8113 * function.c (reposition_prologue_and_epilogue_notes): Position
8114 the markers after/before the last/first insn not deleted.
8116 2002-03-12 Richard Henderson <rth@redhat.com>
8118 PR optimization/5878
8119 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
8120 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
8121 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8123 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
8124 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
8125 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
8127 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
8128 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
8129 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
8130 also. Don't set it if not flag_pic.
8131 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
8132 to be INVALID_REGNUM when not used.
8134 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
8136 * expmed.c (store_bit_field): Reset alias set for memory.
8137 (extract_bit_field): Same.
8139 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8141 * c-common.c (c_tree_code_type, c_tree_code_length,
8142 c_tree_code_name, add_c_tree_codes): Delete.
8143 * c-common.h (add_c_tree_codes): Delete.
8144 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
8146 * c-objc-common.c (c_objc_common_init): Don't call
8147 add_c_tree_codes, instead set lang_unsafe_for_reeval.
8148 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
8149 objc_tree_code_name, add_objc_tree_codes): Delete.
8150 (objc_init): Don't call add_objc_tree_codes.
8151 * objc/objc-lang.c (tree_code_type, tree_code_length,
8152 tree_code_name): Define.
8153 * toplev.c (lang_independent_init): Don't set
8154 tree_code_length[IDENTIFIER_NODE].
8155 * tree.c (tree_code_type, tree_code_length, tree_code_name):
8156 Delete definitions, moved to language front-ends.
8157 * tree.def (IDENTIFIER_NODE): Hardwire the length.
8158 * tree.h (tree_code_type, tree_code_length, tree_code_name):
8160 (tree_code_length): Change type to unsigned char.
8162 2002-03-12 Richard Henderson <rth@redhat.com>
8164 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
8165 internal visibility change.
8167 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8169 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
8170 validize_mem() instead of change_address to avoid clobbering
8173 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
8175 * c-lex.h (position_after_whitespace): Remove.
8177 2002-03-12 Jakub Jelinek <jakub@redhat.com>
8179 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
8180 (lex_string): Use unsigned char pointers.
8182 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
8184 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
8185 is not a valid memory_operand.
8187 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8189 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
8190 * config/xtensa/lib1funcs.asm: Fix copyright to include
8191 special case for libgcc files.
8192 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
8193 (__divsi3): Likewise.
8194 (__umodsi3): Likewise.
8195 (__modsi3): Likewise.
8196 * config/xtensa/lib2funcs.S: Fix copyright to include
8197 special case for libgcc files.
8199 2002-03-12 Tom Rix <trix@redhat.com>
8201 * collect2.c (resolve_lib_name): Move outside of
8202 OBJECT_FORMAT_COFF ifdef.
8203 (ignore_library): Same.
8205 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8207 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
8209 2002-03-12 Bob Wilson <bob.wilson@acm.org>
8211 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
8212 to function_section before writing out the constant pool.
8214 2002-03-12 David Edelsohn <edelsohn@gnu.org>
8216 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
8218 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
8220 2002-03-12 Alan Modra <amodra@bigpond.net.au>
8222 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
8226 (cmpsi splitter): Likewise.
8227 (modsi3): Fail if <= 0.
8228 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
8229 redundant test when HOST_BITS_PER_WIDE_INT != 32.
8230 (reg_or_sub_cint64_operand): Likewise.
8231 (num_insns_constant_wide): Optimize sign extension.
8232 (rs6000_legitimize_address): Likewise.
8234 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
8236 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8237 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8239 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
8241 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
8242 address calculation.
8244 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
8246 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
8247 scratch register to DImode / TImode.
8248 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
8249 register used does not overlap the target.
8251 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8253 * Makefile.in (debug.o): Depend on debug.h.
8254 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
8255 * debug.c (do_nothing_debug_hooks): Likewise.
8256 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
8257 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
8258 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
8259 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
8260 * dwarfout.c (dwarf_debug_hooks): Likewise.
8261 * integrate.c (output_inline_function): Likewise.
8262 * objc/objc-act.c (synth_module_prologue): Likewise.
8263 * sdbout.c (sdb_debug_hooks): Likewise.
8264 * toplev.c (debug_hooks): Likewise.
8265 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8267 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8269 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
8270 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
8271 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
8272 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
8273 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
8274 * defaults.h (POINTER_SIZE): Define.
8275 * doc/tm.texi (POINTER_SIZE): Document default.
8277 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8279 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
8281 2002-03-11 Richard Henderson <rth@redhat.com>
8283 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
8284 if rebuild_label_notes_after_reload.
8286 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
8288 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
8289 emit pic register load if "internal" visibility.
8290 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
8291 (cris_expand_builtin_va_arg): Do all computations on trees.
8293 2002-03-11 Richard Henderson <rth@redhat.com>
8295 * rtlanal.c: Include recog.h.
8296 (keep_with_call_p): Fix thinko.
8297 * Makefile.in (rtlanal.o): Update dependencies.
8299 2002-03-11 Chris Meyer <cmeyer@gatan.com>
8301 * genflags.c (gen_insn): Use IS_VSPACE.
8302 * genoutput.c (output_insn_data): Likewise.
8303 (process_template): Likewise.
8305 2002-03-11 Richard Henderson <rth@redhat.com>
8307 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
8309 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
8311 * Makefile.in: Update.
8312 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
8313 Update documentation.
8314 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
8315 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
8317 2002-03-11 Zack Weinberg <zack@codesourcery.com>
8319 * Makefile.in: Give texi2pod its input file as a command line
8320 argument, not on stdin.
8322 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
8323 Daniel Berlin <dan@dberlin.org>
8325 C++ alias analysis improvement.
8326 * alias.c (record_component_aliases): Record aliases for base
8329 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
8331 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
8333 2002-03-11 Douglas B Rupp <rupp@gnat.com>
8335 * toplev.c (vms_fopen): Remove, not needed.
8337 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
8339 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
8341 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
8342 for FP, already done later.
8344 * toplev.c (debug_args): Add entry for VMS_DEBUG.
8345 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
8347 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
8349 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
8350 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
8351 LARGEST_EXPONENT_IS_NORMAL for the given mode.
8352 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
8353 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
8354 (ediv, emul, eldexp, esqrt): Likewise.
8355 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
8356 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
8357 (saturate): New function.
8358 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
8359 (make_nan): Use a saturation value instead of a NaN if
8360 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
8361 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
8362 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
8363 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
8364 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
8365 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
8366 !ROUND_TOWARDS_ZERO.
8367 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
8368 (ROUND_TOWARDS_ZERO): Document.
8370 2002-03-11 Andreas Jaeger <aj@suse.de>
8372 * cfg.c (dump_flow_info): Remove unused variable.
8374 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
8376 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
8377 computations on trees.
8379 2002-03-10 Richard Henderson <rth@redhat.com>
8382 * reload.c (copy_replacements_1): New.
8383 (copy_replacements): Use it to recurse through the rtx.
8385 2002-03-10 Richard Henderson <rth@redhat.com>
8387 * loop.c (strength_reduce): Compute number of iterations as
8388 unsigned HOST_WIDE_INT.
8390 2002-03-10 Richard Henderson <rth@redhat.com>
8392 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
8393 to move away from the end of the block.
8395 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
8397 PR preprocessor/5899
8398 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
8400 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8402 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
8404 * attribs.c (decl_attributes): Fix signed/unsigned warning.
8406 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
8408 * config/mmix/mmix.c: Improve comments.
8409 (mmix_target_asm_function_prologue): Drop variable
8410 empty_stack_frame. Don't allocate unused slot above fp.
8411 (mmix_target_asm_function_epilogue): Mirror prologue changes.
8412 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
8413 brace in first column.
8414 (enum reg_class): Ditto.
8415 (FIRST_PARM_OFFSET): Now 0.
8416 (USER_LABEL_PREFIX): Remove #if 0:d definition.
8418 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8420 * combine.c (make_extraction): Fix error in last change.
8422 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8424 * c4x.c (c4x_fp_reglist): Const-ify.
8425 * cris.c (cris_print_operand): Likewise.
8426 * i386.c (ix86_va_arg): Likewise.
8427 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
8428 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
8429 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
8430 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
8431 * mcore.h (regno_reg_class): Likewise.
8432 * mips.c (gen_int_relational): Likewise.
8433 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
8434 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
8435 * pdp11.c (move_costs): Likewise.
8436 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
8437 * s390.c (s390_branch_condition_mnemonic, regclass_map):
8439 * s390.h (regclass_map): Likewise.
8440 * sh.c (shift_amounts): Likewise.
8441 * sh.md (rotlsi3): Likewise.
8443 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
8445 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
8446 (ne0+5): Use new clobber to generate proper shift pattern.
8447 Patch by Michael Matz <matz@kde.org>.
8449 2002-03-09 Andreas Schwab <schwab@suse.de>
8451 * gcc.c (validate_all_switches): Also handle `%W{...}'.
8453 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
8455 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
8457 2002-03-09 Jakub Jelinek <jakub@redhat.com>
8460 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
8461 even for non-representable constants.
8463 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8465 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
8466 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
8467 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
8468 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
8469 (pop_function_context): Compute MAY_SHARE parameter for
8471 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
8472 (gen_mem_addressof): Call fixup_var_refs with new parm.
8474 * combine.c (make_extraction): Don't make extension of CONST_INT.
8476 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
8478 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
8479 in o32 and o64 ABIs.
8480 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
8481 but getting fixed-size structs passed in registers regardless of
8482 padding in o32 and o64 ABIs.
8484 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
8485 offset before loading address of argument passed by transparent
8488 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
8490 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
8492 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
8494 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
8495 marker such that registers after it are saved.
8497 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8499 * sparc.c (arith_4096_operand): Fix error in last change.
8501 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
8503 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
8506 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
8508 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
8511 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
8513 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
8515 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
8517 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
8518 removed; fix return value.
8519 * combine.c (combine_instructions): Dirtify blocks where we failed to
8520 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
8521 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
8523 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8525 * gcse.c (insert_insn_end_bb): Fix typo in last change.
8527 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
8529 * recog.c (peephole2_optimize): Re-distribute EH edges.
8531 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
8533 * expr.c (expand_expr): Use unsave lang hook.
8534 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
8535 (LANG_HOOKS_INITIALIZER): Update.
8536 * langhooks.h (struct lang_hooks): New hook unsave.
8537 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
8538 (unsave_expr_1): Remove unused lang_unsave_expr_now.
8539 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
8540 (unsave_expr_now): Remove.
8541 * tree.h (unsave_expr_now, lang_unsave,
8542 lang_unsave_expr_now): Remove.
8545 2002-03-08 Andreas Jaeger <aj@suse.de>
8547 * flow.c (propagate_block_delete_insn): Remove unused variable.
8549 2002-03-08 Kazu Hirata <kazu@hxi.com>
8551 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
8552 insn length for memory load/store.
8554 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
8556 * doc/install.texi (--with-libiconv-prefix): Document.
8558 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
8560 * doc/sourcebuild.texi: Fix typo.
8562 2002-03-08 Jakub Jelinek <jakub@redhat.com>
8565 * builtins.c (std_expand_builtin_va_arg): Do all computations on
8568 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8570 * rtl.c (copy_most_rtx): Move from here ...
8571 * emit-rtl.c (copy_most_rtx): ... to here.
8573 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
8575 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
8576 SUBTARGET_CPP_SIZE_SPEC.
8577 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
8579 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
8581 2002-03-07 Matt Hiller <hiller@redhat.com>
8583 * gensupport.c (first_dir_md_include): Renamed from include;
8584 change all references.
8585 (last_dir_md_include): Renamed from last_include; change all
8587 (init_md_reader): Unconditionally initialize base_dir whether or
8588 not filename is a relative path.
8590 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
8592 * config/fp-bit.c (_unord_f2): Compile it in even if
8593 US_SOFTWARE_GOFAST is enabled.
8595 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
8596 NULL_RTX. Set all HFmode operations as NULL_RTX.
8597 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
8598 NULL_RTX, try reversing the comparison and the operands.
8600 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8602 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
8603 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
8606 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
8608 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8610 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8612 * basic-block.h (fixup_abnormal_edges): Declare.
8613 * reload1.c (fixup_abnormal_edges): New function.
8614 * reg-stack.c (convert_regs): Use it.
8616 * gcse.c (insert_insn_end_bb): Handle trapping insns.
8618 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8620 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
8622 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8623 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8624 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8625 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8626 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8627 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8628 unless x and y could be infinite.
8629 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8630 Check that the common type of both arguments is a real, even for
8631 targets without unordered comparisons. Allow an integer argument
8632 to be compared against a real.
8633 (expand_tree_builtin): Use expand_unordered_cmp.
8634 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8635 * cse.c (fold_rtx): Likewise. Fix indentation.
8636 * fold-const.c (fold_real_zero_addition_p): New.
8637 (fold): Use it, and the new HONOR_... macros.
8638 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8639 * jump.c (reversed_comparison_code_parts): After searching for
8640 the true comparison mode, use HONOR_NANS to decide whether it
8641 can be safely reversed.
8642 (reverse_condition_maybe_unordered): Remove IEEE check.
8643 * simplify-rtx.c (simplify_binary_operation): Use the new macros
8644 to decide which simplifications are valid. Allow the following
8645 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8646 and (a - -b) to (a + b).
8647 (simplify_relational_operation): Use HONOR_NANS.
8648 * doc/tm.texi: Document the MODE_HAS_... macros.
8650 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8652 * combine.c (simplify_comparison): If simplifying a logical shift
8653 right and compare with constant, force the comparison to unsigned.
8655 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
8657 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
8659 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8661 (alt_reg_names): Remove % for vrsave.
8663 2002-03-06 Richard Henderson <rth@redhat.com>
8665 PR optimization/5844
8666 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
8667 if used indicates we've already emitted one copy of an operand.
8668 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8669 (gen_split): Supply a non-null used.
8671 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8673 * reload1.c (reload): Unshare all rtl after reload is done.
8675 * simplify-rtx.c (simplify_plus_minus): Do not abort,
8676 but simply fail if the expression is too complex to simplify.
8677 (simplify_gen_binary): Handle simplify_plus_minus failures.
8679 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
8681 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8682 consistently call delete_trivially_dead_insns after CSE and GCSE;
8683 fix DFI_life dumping; do jump threading after liveness; do crossjumping
8684 after liveness2; update comment in last crossjumping.
8685 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8687 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
8689 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8690 after completing fast dead code elimination.
8692 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8695 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
8697 * version.c: Fix misplaced leading blanks on first line.
8699 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
8701 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8703 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
8705 * cfgcleanup.c (mentions_nonequal_regs): New function.
8706 (thread_jump): Use it.
8707 * toplev.c (rest_of_compilation): Run jump threading after
8710 2002-03-06 Jakub Jelinek <jakub@redhat.com>
8712 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8715 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
8717 * predict.c (estimate_bb_frequencies): Do not reload the
8718 frequencies from notes.
8720 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
8722 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8723 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8725 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8726 delete_noop_moves): Return indeger.
8727 * flow.c (ndead): New variable.
8728 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8729 BB argument; update callers.
8730 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8731 (life_analysis): Do not call purge_all_dead_edges.
8732 (update_life_info): Return number of deleted insns; print statistics.
8733 (update_life_info_in_dirty_blocks): likewise.
8734 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8735 return number of insns deleted.
8737 * cse.c: Include timevar.h
8738 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8739 iterate until stabilizes; print statistics; return number of killed
8741 * Makefile.in: (cse.o): Add timevar.h dependency
8742 * rtl.h (delete_trivially_dead_insns): New.
8743 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8744 * toplev.c (rest_of_compilation): Update callers.
8746 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8747 (try_optimize_cfg): Do not update liveness.
8748 (cleanup-cfg): Loop until try_optimize_cfg and dead code
8749 removal stabilizes; use delete_trivially_dead_insns.
8751 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8753 2002-03-05 Zack Weinberg <zack@codesourcery.com>
8755 * cppmain.c (setup_callbacks): Disable #pragma and #ident
8756 callbacks when processing assembly language.
8758 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8760 * pa.h (ASM_FILE_END): Define.
8761 * som.h (ASM_FILE_END): Delete.
8763 * pa.c (function_arg): Don't pass floats in general registers in
8764 indirect calls if TARGET_ELF32.
8766 2002-03-05 Richard Henderson <rth@redhat.com>
8768 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8770 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
8772 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8774 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8776 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8777 -r command line. Don't hide any symbols if not building
8780 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
8782 * cfg.c (dump_flow_info): Warn about profile mismatches.
8783 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8784 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8786 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8788 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8789 wide volatile memory by parts.
8791 2002-03-05 Jakub Jelinek <jakub@redhat.com>
8793 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8796 2002-03-05 Richard Henderson <rth@redhat.com>
8798 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8800 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
8802 * toplev.c (documented_lang_options): Document more
8803 language-specific options.
8804 * doc/invoke.texi (Warning Options): Correct documentation for
8805 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8806 * c-decl.c (c_decode_option): Use a table to handle warning options.
8808 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
8810 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8811 parameter to mmix_encode_section_info.
8812 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8813 relocatably. Always produce ELF, not mmo if linking relocatably.
8814 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8815 first is non-zero, don't add symbol prefix.
8816 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8817 prototype accordingly.
8819 2002-03-04 Krister Walfridsson <cato@df.lth.se>
8821 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8823 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
8825 * configure.in: Increase required makeinfo version to 4.1.
8826 * configure: Regenerate.
8828 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
8830 * .cvsignore: Remove *.info* and genrtl*; these files are generated
8833 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
8835 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8836 * doc/invoke.texi: Fix @math uses.
8838 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
8840 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8843 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
8845 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8846 (powerpc-*-eabisimaltivec*): Same.
8848 * config/rs6000/t-ppcendian: New.
8850 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8852 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8853 nonimmediate_src_operand and nonimmediate_lsrc_operand to
8854 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8856 2002-03-03 Richard Henderson <rth@redhat.com>
8858 * toplev.c (rest_of_decl_compilation): Revert last two changes.
8860 2002-03-03 Zack Weinberg <zack@codesourcery.com>
8862 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8863 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8864 tree.c, config/m68k/m68k.c:
8865 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8866 REAL_ARITHMETIC blocks unconditional. Delete some further
8867 #ifdef blocks predicated on REAL_ARITHMETIC.
8868 * flags.h, toplev.c: Delete remaining references to
8871 * doc/invoke.texi: Remove documentation of -fpretend-float.
8872 * doc/tm.texi: Describe the various REAL_* macros as provided by
8873 real.h, not by the target configuration files.
8875 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8876 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8877 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8878 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8879 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8880 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8881 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8882 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8883 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8884 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8885 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8886 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8887 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8888 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8889 config/xtensa/xtensa.h:
8890 Do not define, undefine, or mention in comments any of
8891 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8892 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8893 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8894 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8895 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8896 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8897 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8898 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8899 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8901 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8903 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8904 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8905 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8906 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8907 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8908 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8910 * defaults.h (BITS_PER_WORD): Define.
8911 * doc/tm.texi (BITS_PER_WORD): Document default value.
8913 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8914 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8915 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8917 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8919 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8920 lieu of explicit sizeof/sizeof.
8921 * i386.c (override_options, ix86_init_mmx_sse_builtins,
8922 ix86_expand_builtin): Likewise.
8923 * mips.c (mips_add_gc_roots): Likewise.
8924 * mmix.c (mmix_output_condition): Likewise.
8925 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8926 altivec_init_builtins): Likewise.
8927 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8928 * cppexp.c (Nsuff, parse_number): Likewise.
8929 * cppinit.c (builtin_array_end): Likewise.
8930 * gcc.c (n_default_compilers, process_command): Likewise.
8931 * genpreds.c (output_predicate_decls): Likewise.
8932 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8933 * lcm.c (N_ENTITIES): Likewise.
8934 * stor-layout.c (set_sizetype): Likewise.
8936 2002-03-03 Richard Henderson <rth@redhat.com>
8938 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8939 for types or labels.
8941 2002-03-03 Richard Henderson <rth@redhat.com>
8943 * c-decl.c (start_decl): Initialized variables are not common.
8945 2002-03-02 Per Bothner <per@bothner.com>
8947 * gcc.c (option_map): Suport new --bootclasspath option.
8948 --CLASSPATH is now just an alias for --classpath.
8950 2002-03-02 Richard Henderson <rth@redhat.com>
8952 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8953 load if "internal" visibility.
8954 * doc/extend.texi: Document visibility meanings.
8956 2002-03-02 Richard Henderson <rth@redhat.com>
8958 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8959 to functions as well.
8961 2002-03-02 Richard Henderson <rth@redhat.com>
8963 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8964 (handle_visibility_attribute): Don't call assemble_visibility.
8965 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8966 without asmspec. Invoke assemble_alias when needed.
8967 * varasm.c (maybe_assemble_visibility): New.
8968 (assemble_start_function, assemble_variable, assemble_alias): Use it.
8970 2002-03-02 Richard Henderson <rth@redhat.com>
8972 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8973 invoke ENCODE_SECTION_INFO with first call flag.
8975 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8976 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8977 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8978 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8979 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8980 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8981 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8982 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8983 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8984 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8985 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8986 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8987 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8988 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8989 config/mcore/mcore-protos.h, config/mcore/mcore.c,
8990 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8991 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8992 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8993 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8994 config/sh/sh.h, config/sparc/sparc.h,
8995 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8996 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8997 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8998 FIRST argument. As needed, examine it and do nothing.
9000 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
9001 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9002 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
9004 * config/arm/t-pe (pe.o): Add dependencies.
9006 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9008 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
9009 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
9010 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
9011 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
9012 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
9013 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
9014 * defaults.h (BITS_PER_UNIT): Define.
9015 * doc/tm.texi (BITS_PER_UNIT): Document default value.
9017 2002-03-02 Kazu Hirata <kazu@hxi.com>
9019 * config/h8300/h8300-protos.h: Add a prototype for
9020 compute_a_shift_length.
9021 * config/h8300/h8300.c (h8300_asm_insn_count): New.
9022 (compute_a_shift_length): Likewise.
9023 (h8300_adjust_insn_length): Do not adjust insn length of shift
9025 * config/h8300/h8300.md (anonymous shift patterns): Use
9026 compute_a_shift_length.
9028 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9030 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
9033 * emit-rtl.c (offset_address): Call update_temp_slot_address.
9035 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9037 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
9038 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
9039 * flags.h (flag_zero_initialized_in_bss): Declare.
9040 * toplev.c (flag_zero_initialized_in_bss): New flag.
9041 (lang_independent_options): Add flag_zero_initialized_in_bss.
9042 * tree.c (initializer_zerop): New function.
9043 * tree.h (initializer_zerop): Declare.
9044 * varasm.c (assemble_variable): If we can emit bss, put zero
9045 initializers in the bss section.
9047 2002-03-02 Alan Modra <amodra@bigpond.net.au>
9049 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
9050 like more than one symbol per .weak directive.
9052 2002-03-01 Richard Henderson <rth@redhat.com>
9054 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
9055 adjust argument_pointer by pretend_args_size.
9056 (ia64_va_start): Adjust va_start address by -pretend_args_size.
9058 2002-03-01 Kazu Hirata <kazu@hxi.com>
9060 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
9062 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
9064 * toplev.c (rest_of_compilation): Delete dead jumptables before
9066 * flow.c (delete_dead_jumptables): Make global.
9067 * rtl.h (delete_dead_jumptables): Declare.
9069 2002-03-01 David Edelsohn <edelsohn@gnu.org>
9071 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
9072 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
9073 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9075 2002-03-01 Kazu Hirata <kazu@hxi.com>
9077 * config/h8300/h8300-protos.h: Fix formatting.
9078 * config/h8300/h8300.c: Likewise.
9079 * config/h8300/h8300.h: Likewise.
9081 2002-03-01 Kazu Hirata <kazu@hxi.com>
9083 * config/h8300/h8300.c (print_operand): Support 16-bit
9085 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
9087 2002-02-28 Richard Henderson <rth@redhat.com>
9089 * expmed.c (store_bit_field): Prevent generation of CONCATs;
9090 pun complex values as integers; use gen_lowpart instead of
9092 (extract_bit_field): Likewise.
9094 2002-03-01 Alan Modra <amodra@bigpond.net.au>
9095 David Edelsohn <edelsohn@gnu.org>
9097 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
9098 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
9099 (SUPPORTS_WEAK): Likewise.
9100 * output.h (add_weak): Add tree param.
9101 * varasm.c (add_weak): Likewise. Save decl.
9102 (struct weak_syms): Add decl field.
9103 (mark_weak_decls): New function.
9104 (init_varasm_once): ggc_add_root mark_weak_decls.
9105 (assemble_start_function): Use ASM_WEAKEN_DECL.
9106 (assemble_variable): Likewise.
9107 (assemble_alias): Likewise.
9108 (declare_weak): Pass decl to add_weak.
9109 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
9110 (remove_from_pending_weak_list): Declare and define for
9112 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
9113 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
9114 * defaults.h (SUPPORTS_WEAK): Likewise.
9115 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9116 .weak for code sym. Do emit .size for descriptor sym.
9117 (ASM_DECLARE_FUNCTION_SIZE): Define.
9118 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
9119 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
9120 .lglobl unless TARGET_XCOFF. Formatting fixes.
9121 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
9123 (HANDLE_PRAGMA_WEAK): Remove.
9124 (ASM_WEAKEN_LABEL): Remove.
9125 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
9127 2002-03-01 Jason Merrill <jason@redhat.com>
9129 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
9130 (TARGET_EXPR_CLEANUP): New macro.
9132 2002-02-28 Steve Ellcey <sje@cup.hp.com>
9134 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
9135 to take ptr_extend into account as third type of extension.
9136 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
9137 fields used by SUBREG_PROMOTED_UNSIGNED_P.
9138 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
9139 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
9140 * calls.c (precompute_arguments): Use new macro.
9141 (expand_call): Ditto.
9142 * combine.c (nonzero_bits): Ditto.
9143 (record_promoted_value): Ditto.
9144 * expr.c (store_expr): Ditto.
9145 (expand_expr): Ditto.
9146 * function.c (assign_parms): Ditto.
9148 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
9150 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
9151 override -shared and -shared-libgcc.
9153 2002-02-28 David O'Brien <obrien@FreeBSD.org>
9155 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
9157 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
9160 2002-02-28 Richard Henderson <rth@redhat.com>
9162 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
9163 4 cycle latency from MM producers.
9164 (ia64_internal_sched_reorder): Likewise with pipeline flush.
9166 2002-02-28 Jakub Jelinek <jakub@redhat.com>
9168 * mklibgcc.in: Don't use GNU make extension.
9170 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9172 * c-parse.in (STATIC): New terminal.
9173 (scspec): New non-terminal. Update productions accordingly.
9174 (program): Remove bogus ifc / end ifc.
9175 (array_declarator): Simplify production using STATIC.
9177 2002-02-28 Jim Meyering <meyering@lucent.com>
9179 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
9180 \a still means TARGET_BELL.
9182 2002-02-28 Richard Henderson <rth@redhat.com>
9184 * haifa-sched.c (sched_emit_insn): New.
9185 (schedule_block): Use last_scheduled_insn to track last insn.
9186 * sched-int.h (sched_emit_insn): Prototype.
9187 * config/ia64/ia64.c (last_issued): Remove.
9188 (ia64_variable_issue): Don't set it.
9189 (nop_cycles_until): Use sched_emit_insn.
9191 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
9193 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
9196 2002-02-28 Kazu Hirata <kazu@hxi.com>
9198 * config/h8300/h8300.c: Fix formatting.
9199 * config/h8300/h8300.h: Likewise.
9201 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
9203 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
9204 which may overwrite the high byte of the frame pointer.
9206 2002-02-28 Bo Thorsen <bo@suse.de>
9208 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
9209 (STARTFILE_SPEC): Add 64 bit files.
9210 (ENDFILE_SPEC): Likewise.
9212 2002-02-28 Jason Merrill <jason@redhat.com>
9214 * c-decl.c (finish_function): Only warn about missing return
9215 statement with -Wreturn-type.
9217 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
9219 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
9221 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
9222 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
9224 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
9226 * basic-block.h (BB_REACHABLE): Renumber.
9227 (BB_DIRTY, BB_NEW): New flags.
9228 (clear_bb_flags): Declare.
9229 (update_life_info_in_dirty_blocks): Declare.
9230 * cfg.c (clear_bb_flags): New function.
9231 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
9232 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
9233 reorder_insns, emit_insn_after): Mark block as dirty.
9234 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
9235 (update_life_info_in_dirty_blocks): New function.
9236 * recog.c (apply_change_group): Dirtify block.
9238 * cse.c (cse_insn): Reorder emitting of jump insn to keep
9240 * gcse.c (delete_null_pointer_checks): Likewise.
9242 * toplev.c (dump_file_index): Move cse2 after bp,
9244 (dump_file_info): Similary.
9245 (rest_of_compilation): Avoid most of CFG rebuilds;
9246 do first if converision after null pointer checks, do cse2
9247 after branch prediction; avoid full liveness rebuild after
9248 initializing subregs.
9249 * invoke.texi (-d options): Document -du, renumber.
9251 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
9252 (notice_new_block): Do not set BB_UPDATE_LIFE.
9253 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
9254 merge_blocks_move_successor_nojumps, merge_blocks,
9255 try_crossjump_to_edge): Likewise.
9256 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
9257 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
9258 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
9259 (merge_of_block): Do not use life_data_ok.
9260 (find_if_case_1): Do not use SET_UPDATE_LIFE.
9261 (if_convert): Use BB_DIRTY mechanizm to update life.
9262 * lcm.c (optimize_mode_switching): Update
9263 update_life_info_in_dirty_blocks
9265 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9267 * Makefile.in (integrate.o): Update.
9268 * c-decl.c (copy_lang_decl): Rename.
9269 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9270 * integrate.c: Include langhooks.h.
9271 (copy_decl_for_inlining): Update to use langhook.
9272 * langhooks-def.h (lhd_do_nothing_t,
9273 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
9274 (LANG_HOOKS_INITIALIZER): Update.
9275 * langhooks.c (lhd_do_nothing_t): New.
9276 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
9277 * tree.h (copy_lang_decl): Remove.
9279 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
9281 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
9283 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
9284 POST_DEC, and POST_MODIFY.
9286 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9288 * c-typeck.c (digest_init): Remove unused parameter; all
9291 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
9293 * expmed.c (expand_shift): Correctly test for low part of a
9296 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9298 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
9299 insn UIDs with insn addresses.
9301 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9303 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
9304 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
9305 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
9306 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
9307 gcc.c, toplev.c: Delete code implementing -traditional mode.
9309 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
9310 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
9311 Document removal of -traditional mode for compilation, and
9312 remove documentation only relevant to that mode.
9314 * config/nextstep.h, config/ptx4.h, config/svr4.h,
9315 config/convex/convex.h, config/d30v/d30v.h,
9316 config/i386/dgux.h, config/i386/osf1elf.h,
9317 config/i386/osfelf.h, config/i386/osfrose.h,
9318 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
9319 config/m68k/hp310.h, config/m88k/dgux.h,
9320 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
9321 config/m88k/m88k.h, config/m88k/openbsd.h,
9322 config/mips/abi64.h, config/mips/osfrose.h,
9323 config/mips/svr4-5.h, config/mips/svr4-t.h,
9324 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9325 config/stormy16/stormy16.h: Remove all references to
9326 -traditional from target specs. Delete all mention of the
9327 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
9328 delete a couple of commented-out definitions of
9329 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
9332 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
9333 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
9335 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9337 * mklibgcc.in: Don't use \n in a line subject to
9338 interpretation by echo.
9340 2002-02-27 Graham Stott <grahams@redhat.com>
9342 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
9345 * loop.c (prescan_loop): Handle PARALLEL.
9347 * unroll.c (loop_iterations): Return 0 if the add_val for
9350 * final.c (output_operand_lossage): Constify PFX_STR.
9352 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
9354 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
9356 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
9357 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
9359 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
9361 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9363 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
9365 * cpplex.c (_cpp_lex_token): Handle directives in macro
9367 * cpplib.c (_cpp_handle_directive): Save and restore state
9368 if parsing macro args when entering a directive.
9369 * cppmacro.c (collect_args): No need to handle directives
9371 (enter_macro_context, replace_args): Use the original macro
9372 definition in case it was redefined whilst collecting arguments.
9376 2002-02-26 David Edelsohn <edelsohn@gnu.org>
9378 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
9379 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
9380 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
9382 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
9383 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
9384 (load_toc_v4_PIC_2): Same.
9386 2002-02-26 Alan Modra <amodra@bigpond.net.au>
9388 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
9390 2002-02-26 Richard Henderson <rth@redhat.com>
9392 * config/alpha/alpha.md (ashldi_se): Re-enable.
9394 2002-02-26 Richard Henderson <rth@redhat.com>
9396 * config/alpha/alpha.c (alpha_encode_section_info): Examine
9397 MODULE_LOCAL_P; improve commentary.
9399 2002-02-26 Zack Weinberg <zack@codesourcery.com>
9401 * doc/cpp.texi: Clarify documentation of relationship between
9404 2002-02-26 Kazu Hirata <kazu@hxi.com>
9406 * config/h8300/h8300-protos.h: Update the prototype for
9407 compute_logical_op_length. Add the prototype for
9408 compute_logical_op_cc.
9409 * config/h8300/h8300.c (compute_logical_op_length): Figure out
9411 (compute_logical_op_cc): New.
9412 * config/h8300/h8300.md: Combine all the logical op patterns
9413 in HImode and SImode. Use compute_logical_op_cc.
9415 2002-02-26 Kelley Cook <kelleycook@comcast.net>
9417 * config/i386/i386.c (print_operand): Don't append ATT-style
9418 length suffixs to x87 opcodes when in Intel mode.
9420 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
9422 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
9423 (init_emit_once): Update calls.
9424 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
9425 (init_syntax_once): Prototype.
9427 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9429 * pa-linux.h (LIB_SPEC): Update definition.
9430 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9432 2002-02-26 Richard Henderson <rth@redhat.com>
9434 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
9435 if we emitted a stop bit.
9437 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9439 * configure.in (libgcc_visibility): Substitute.
9440 * configure: Rebuilt.
9441 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
9442 defined symbols .hidden.
9444 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9446 * attribs.c (c_common_attribute_table): Add visibility.
9447 (handle_visibility_attribute): New function.
9448 * varasm.c (assemble_visibility): New function.
9449 * output.h (assemble_visibility): Add prototype.
9450 * tree.h (MODULE_LOCAL_P): Define.
9451 * crtstuff.c (__dso_handle): Use visibility attribute.
9452 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
9453 for MODULE_LOCAL_P symbols too.
9454 * config/ia64/ia64.c (ia64_encode_section_info): Handle
9455 MODULE_LOCAL_P symbols the same way as local symbols.
9456 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
9457 into .sdata/.sbss by the user.
9458 * doc/extend.texi (Function Attributes): Document visibility
9461 2002-02-26 Jakub Jelinek <jakub@redhat.com>
9464 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
9465 STRING_CST initializer spanning the whole variable without
9467 If expand_expr returned MEM, don't use it.
9469 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
9471 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
9472 generate a die for the lexical block.
9474 2002-02-26 Kazu Hirata <kazu@hxi.com>
9476 * config/h8300/h8300-protos.h: Add a prototype for
9477 compute_logical_op_length.
9478 * config/h8300/h8300.c (compute_logical_op_length): New.
9479 * config/h8300/h8300.md (anonymous logical patterns): Use
9480 compute_logical_op_length for length.
9482 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9484 * dwarf2out.c (modified_type_die): Do not call type_main_variant
9486 (gen_type_die): Same.
9488 * attribs.c (handle_vector_size_attribute): Set debug information.
9490 2002-02-26 Daniel Egger <degger@fhm.edu>
9492 * config/rs6000/rs6000.md: Swap define_insn attributes to
9493 fix incorrect generation of merge high instructions instead
9496 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9498 * c-typeck.c (really_start_incremental_init): Use
9499 bitsize_zero_node for vectors.
9501 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
9503 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
9504 ("*set_vrsave_internal"): Same.
9506 2002-02-25 Richard Henderson <rth@redhat.com>
9508 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
9509 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
9511 2002-02-25 Jakub Jelinek <jakub@redhat.com>
9514 * config/i386/i386.c (ix86_return_pops_args): Only pop
9515 fake structure return argument if it was passed on the stack.
9517 2002-02-25 Jason Merrill <jason@redhat.com>
9519 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
9522 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
9524 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
9525 link with shared_name only.
9526 * doc/invoke.texi (Link Options): Document new behavior.
9528 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
9530 * c-typeck.c (push_init_level): Handle vectors.
9532 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
9534 * config/sparc/sparc.c (const64_high_operand): Zero-extend
9535 operands of SPARC_SETHI_P.
9536 (input_operand): Likewise.
9537 (sparc_emit_set_const32): Likewise.
9538 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
9539 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9540 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
9541 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
9542 (movdi_insn_sp64_vis): Likewise.
9543 (movdi split, movdf split): Use SETHI32.
9544 * doc/md.texi: Document SPARC constraints L, M and N.
9546 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
9548 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
9549 ("*set_vrsave_internal"): use mfspr for Darwin.
9551 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
9552 gen_get_vrsave_internal.
9554 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9556 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
9558 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
9560 * cpplex.c (cpp_interpret_charconst): Get signedness or
9561 otherwise of wide character constants correct.
9562 * cppexp.c (lex): Get signedness of wide charconsts correct.
9564 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9566 * optabs.c (widen_operand): Only call convert_modes for
9567 promoted SUBREG if signedness matches.
9568 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
9570 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9572 * cpplib.c (glue_header_name): Use local buffer to build up
9575 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9577 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
9579 2002-02-23 Kazu Hirata <kazu@hxi.com>
9581 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
9582 H8/300[HS] separately.
9583 * config/h8300/h8300.md: Remove the early clobber constraint
9584 from bit field patterns.
9586 2002-02-23 Kazu Hirata <kazu@hxi.com>
9588 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
9590 (mulhisi3): Likewise.
9591 (umulqisi3): Likewise.
9592 (umulhisi3): Likewise.
9594 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
9596 * cppinit.c (output_deps): Correct test for stdout output.
9597 (init_dependency_output): Cure warning.
9599 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9601 * expr.c (store_expr): When converting expression to promoted
9602 equivalent type, allow using SUBREG_REG of TARGET as the target
9603 of the expansion of EXP.
9604 * loop.c (basic_induction_var, case SUBREG): Always look inside.
9605 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
9606 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
9607 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
9608 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9610 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
9612 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9613 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9614 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9616 2002-02-23 Jakub Jelinek <jakub@redhat.com>
9618 PR optimization/5747
9619 * loop.c (scan_loop): Update reg info if move_movables created new
9622 2002-02-23 David Edelsohn <edelsohn@gnu.org>
9624 * gcc.c (init_gcc_spec): Revert last change.
9626 2002-02-23 David Edelsohn <edelsohn@gnu.org>
9628 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9629 gpc_reg_operand constraint.
9631 2002-02-23 Alan Modra <amodra@bigpond.net.au>
9633 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9634 Simplify comparison of `low'.
9635 (add_operand): Fix formatting.
9636 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
9637 (mask_operand): Disallow mask to wrap in 64-bit mode.
9638 (rs6000_stack_info): Remove redundant test setting push_p.
9639 (output_toc): Fix formatting.
9640 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9641 cc_reg_not_cr0_operand constraint.
9642 (booldi3, boolcdi3 splitters): Same.
9644 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
9646 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
9648 2002-02-22 David Edelsohn <edelsohn@gnu.org>
9650 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9651 gcc invoked with -shared-libgcc.
9653 2002-02-22 Jakub Jelinek <jakub@redhat.com>
9656 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9657 decl if any of elements was TREE_USED.
9659 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
9661 * config/sparc/sol2.h: Don't include sys/mman.h.
9662 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9663 (arith_4096_operand): Don't throw high bits away.
9664 (const64_operand): Take sign extension of CONST_INTs into account.
9665 (const64_high_operand, sparc_emit_set_const32): Likewise.
9666 (GEN_HIGHINT64): Likewise.
9667 (sparc_emit_set_const64_quick1): Likewise.
9668 (const64_is_2insns): Likewise.
9669 (print_operand): Use trunc_int_for_mode for sign extension.
9670 * config/sparc/sparc.h (SMALL_INT32): Likewise.
9671 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9672 chars. Assume CONST_INT is already properly sign-extended.
9673 (movdi split): Sign-extend each SImode part.
9674 (andsi3 split): Don't mask high bits off, so that result
9675 remains properly sign-extend.
9676 (iorsi3 split): Likewise.
9677 (xorsi3 split): Likewise.
9679 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
9681 * fold-const.c (fold): Fix typo in comments.
9683 2002-02-21 Diego Novillo <dnovillo@redhat.com>
9685 * Makefile.in (langhooks.o): Update dependencies.
9687 2002-02-21 Diego Novillo <dnovillo@redhat.com>
9689 * langhooks.c: Include flags.h.
9691 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
9693 * testsuite/gcc.dg/attr-alwaysinline.c: New.
9695 * c-common.c (c_common_post_options): Set inline trees by
9698 * doc/extend.texi (Function Attributes): Document always_inline
9700 Update documentation about inlining when not optimizing.
9702 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9704 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9705 unless DECL_ALWAYS_INLINE.
9707 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9708 unless DECL_ALWAYS_INLINE.
9709 (c_disregard_inline_limits): Disregard if always_inline set.
9711 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9712 Disregard if always_inline set.
9713 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9714 unless DECL_ALWAYS_INLINE.
9716 * attribs.c (handle_always_inline_attribute): New.
9717 (c_common_attribute_table): Add always_inline.
9719 * config/rs6000/altivec.h: Add prototypes for builtins
9720 requiring the always_inline attribute.
9722 2002-02-21 Eric Christopher <echristo@redhat.com>
9724 * expmed.c (store_bit_field): Try to simplify the subreg
9725 before generating a new one when when the mode size of
9726 value is less than maxmode.
9728 2002-02-21 Richard Henderson <rth@redhat.com>
9730 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9731 than gen_rtx_PLUS to form the sum.
9732 * explow.c (force_reg): Rearrange to not allocate new pseudo
9733 when force_operand returns a register.
9734 * expr.c (expand_assignment): Allow offset_rtx expansion to
9735 return a sum. Do not force addresses into registers.
9736 (expand_expr): Likewise.
9737 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9738 to canonicalize arithmetic that didn't simpify.
9739 (simplify_plus_minus): New argument force; update
9740 all callers. Don't split CONST unless we can do something with it,
9741 and wouldn't lose the constness of the operands.
9743 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9744 that we generated earlier.
9746 2002-02-21 Tom Tromey <tromey@redhat.com>
9748 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9749 (output_line_info): Use constant `1', with a long explanatory
9751 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9753 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
9755 * jump.c (redirect_jump): If old label has no UID, don't try to
9758 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
9760 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9761 If input is constant, do shifts at compile time.
9763 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
9765 * doc/extend.texi: Fix some more overfull hboxes.
9767 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9769 PR optimization/4994
9770 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9773 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9776 * expr.h (expand_and): Add mode argument.
9777 * expmed.c (expand_and): Add mode argument.
9778 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9779 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9780 * except.c (expand_builtin_extract_return_addr): Likewise.
9781 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9782 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9783 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9784 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9785 * config/c4x/c4x.md: Use GEN_INT (x) instead of
9786 gen_rtx (CONST_INT, VOIDmode, x).
9788 2002-02-21 Jakub Jelinek <jakub@redhat.com>
9791 * stmt.c (warn_if_unused_value): Move side effects test once more.
9793 2002-02-20 Torbjorn Granlund <tege@swox.com>
9795 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9796 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9798 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
9800 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9801 SUBREG or ZERO_EXTEND.
9803 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
9805 * sh.h (current_function_anonymous_args): Remove.
9806 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9807 of current_function_varargs and current_function_stdarg is set.
9808 * sh.c (sh_expand_prologue): Check current_function_varargs /
9809 current_function_stdarg / TARGET_SH5 instead of
9810 current_function_anonymous_args.
9812 * sh64.h (TARGET_VERSION): Define.
9814 2002-02-20 David Edelsohn <edelsohn@gnu.org>
9816 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9817 VRSAVE_REGNO on TARGET_ALTIVEC.
9819 2002-02-20 Alan Modra <amodra@bigpond.net.au>
9821 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9822 bits of SImode const_int.
9823 (includes_rshift_p): Likewise.
9824 (print_operand): Call mask_operand and mask64_operand with correct
9826 (rs6000_output_function_epilogue): Pad traceback table to word.
9827 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9828 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9829 mask64_operand with correct mode.
9830 (FUNCTION_ARG_REGNO_P): Correct parentheses.
9832 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9835 * varasm.c (get_pool_constant_mark): New.
9836 * rtl.h (get_pool_constant_mark): Add prototype.
9837 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9838 be represented if it has not been output.
9840 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
9842 * combine.c (do_SUBST): Sanity check substitutions of
9843 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9844 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9845 CONST_INT into its operand.
9846 (known_cond): Likewise, for ZERO_EXTEND.
9847 * simplify-rtx.c (simplify_unary_operation): Fix condition to
9848 allow for simplification of wide modes. Reject CONST_INTs in
9849 ZERO_EXTEND when their actual mode is not given.
9851 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
9853 * c-decl.c (pushdecl): If no global declaration is found for an
9854 extern declaration in block scope, try a limbo one.
9856 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9859 * c-common.c (pointer_int_sum): Moved from...
9860 * c-typeck.c (pointer_int_sum): ...here.
9861 * c-common.h (pointer_int_sum): Add prototype.
9863 2002-02-20 Jakub Jelinek <jakub@redhat.com>
9866 * c-decl.c (duplicate_decls): Return 0 if issued error about
9869 2002-02-20 Roger Sayle <roger@eyesopen.com>
9870 Jakub Jelinek <jakub@redhat.com>
9873 * tree.c (host_integerp): Ensure that the constant integer is
9874 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9875 when pos is zero or non-zero respectively. Clarify comment.
9876 * c-format.c (check_format_info_recurse): Fix host_integerp
9877 usage; the pos argument should be zero when assigning to a
9878 signed HOST_WIDE_INT.
9880 2002-02-20 Richard Henderson <rth@redhat.com>
9882 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9883 of the operand, rather than assuming TImode.
9884 (ix86_expand_binop_builtin): Cope with commutative patterns
9885 using nonimmediate_operand for both operands.
9886 (ix86_expand_timode_binop_builtin): Likewise.
9887 (ix86_expand_store_builtin): Validate operand 1.
9888 (ix86_expand_unop1_builtin): Likewise.
9890 2002-02-20 Philip Blundell <philb@gnu.org>
9893 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9895 2002-02-20 Richard Henderson <rth@redhat.com>
9898 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9900 2002-02-20 Tom Tromey <tromey@redhat.com>
9902 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9903 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9904 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9905 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9906 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9909 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9911 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9912 for (const_int 0) in X not just INTVAL.
9914 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
9916 * doc/extend.texi: Avoid or reduce overfull hboxes.
9918 2002-02-20 Diego Novillo <dnovillo@redhat.com>
9920 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9921 operations if the field does not start at a mode boundary.
9923 2001-02-20 Joel Sherrill <joel@OARcorp.com>
9925 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9926 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9927 Also done for -Acpu and -Amachine.
9929 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
9931 * cppinit.c (init_dependency_output): Take deps output file
9932 from -o if none given with -MF. Suppress normal output.
9933 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9934 * doc/cpp.texi, doc/invoke.texi: Update.
9936 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9938 * toplev.c (output_quoted_string): Write unprintable
9939 characters with octal escapes.
9941 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9943 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9944 really_call_used[VRSAVE_REGNO] if not Altivec.
9946 2002-02-19 Alan Modra <amodra@bigpond.net.au>
9948 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9950 (constant_pool_expr_1): Fix formatting.
9951 (rs6000_legitimize_reload_address): Likewise.
9953 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9955 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9956 now that we have one.
9958 2002-02-19 Zack Weinberg <zack@codesourcery.com>
9960 * tree.h (struct tree_common): Remove aux. Add unused_0 at
9961 end of first block of bitfields (which was only seven bits);
9962 rename dummy to unused_1; remove comment which is no longer true.
9964 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
9966 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9968 2002-02-19 Philip Blundell <pb@nexus.co.uk>
9971 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9975 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9976 arm_is_longcall_p rather than inspecting call-type cookie
9978 (call_value_insn) [TARGET_THUMB]: Likewise.
9980 2002-02-19 Graham Stott <grahams@redhat.com>
9982 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9984 2002-02-19 David Edelsohn <edelsohn@gnu.org>
9986 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9987 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9988 (FP_SAVE_INLINE): Delete.
9990 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9991 * config/rs6000/eabi.asm: Remove ABI save restore routines.
9992 * config/rs6000/t-ppccomm: Build crtsavres.o.
9993 * config/rs6000/crtsavres.asm: New file.
9995 2002-02-19 Philip Blundell <philb@gnu.org>
9997 * config/arm/arm.c (use_return_insn): Don't reject interrupt
9999 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
10000 (output_return_instruction): Allow interrupt functions to return with
10001 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
10002 (arm_expand_prologue): Subtract 4 before stacking LR in an
10003 interrupt function.
10005 2002-02-19 Philip Blundell <pb@nexus.co.uk>
10007 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
10008 decl, not just FUNCTION_DECL.
10009 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
10010 (arm_assemble_integer): Likewise.
10011 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
10014 2002-02-19 matthew green <mrg@eterna.com.au>
10016 * config.gcc (sparc-*-netbsdelf*): Enable target.
10017 (sparc64-*-netbsd*): New target.
10018 * config/sparc/netbsd-elf.h: New file.
10019 * config/sparc/t-netbsd64: New file.
10021 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
10023 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
10025 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
10027 * doc/invoke.texi: explicitly list the style guidelines that
10028 -Weffc++ checks for.
10030 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
10032 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
10034 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
10037 * gcc.c (cpp_unique_options): Treat -o as indicating object file
10038 only if not -E. If -E, pass -o through to the preprocessor.
10040 2002-02-19 Kazu Hirata <kazu@hxi.com>
10042 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
10043 register number with an appropriate macro.
10045 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10047 * doc/rtl.texi (Constants): Close @code tag.
10049 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
10051 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
10052 ("mmx_uavgv4hi3"): Same.
10053 ("pmulhrwv4hi3"): Same.
10055 * tree-inline.c (walk_tree): Handle vectors.
10057 * c-common.c (constant_expression_warning): Handle vectors.
10058 (overflow_warning): Same.
10060 * sched-deps.c (sched_analyze_2): Handle vectors.
10062 * rtlanal.c (rtx_unstable_p): Handle vectors.
10063 (rtx_varies_p): Same.
10064 (count_occurrences): Same.
10065 (regs_set_between_p): Same.
10066 (modified_between_p): Same.
10067 (modified_in_p): Same.
10068 (volatile_insn_p): Same.
10069 (volatile_refs_p): Same.
10070 (side_effects_p): Same.
10071 (may_trap_p): Same.
10072 (inequality_comparisons_p): Same.
10073 (replace_regs): Same.
10074 (computed_jump_p_1): Same.
10076 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
10078 (inner_mode_array): New.
10079 (copy_rtx): Handle vectors.
10080 (copy_most_rtx): Same.
10081 (rtx_equal_p): Same.
10082 (get_mode_alignment): Adjust for vectors.
10084 * resource.c (mark_referenced_resources): Handle vectors.
10085 (mark_set_resources): Same.
10087 * reload1.c (eliminate_regs): Handle vectors.
10088 (elimination_effects): Same.
10089 (scan_paradoxical_subregs): Same.
10091 * reload.c (subst_reg_equivs): Handle vectors.
10093 * regrename.c (scan_rtx): Handle vectors.
10095 * regclass.c (reg_scan_mark_refs): Handle vectors.
10097 * recog.c (find_single_use_1): Handle vectors.
10099 * local-alloc.c (equiv_init_varies_p): Handle vectors.
10100 (contains_replace_regs): Same.
10101 (memref_referenced_p): Same.
10103 * integrate.c (copy_rtx_and_substitute): Handle vectors.
10104 (subst_constants): Same.
10106 * genattrtab.c (attr_copy_rtx): Handle vectors.
10107 (encode_units_mask): Same.
10108 (clear_struct_flag): Same.
10109 (count_sub_rtxs): Same.
10111 * gcse.c (want_to_gcse_p): Handle vectors.
10112 (oprs_unchanged_p): Same.
10113 (hash_expr_1): Same.
10114 (oprs_not_set_p): Same.
10115 (expr_killed_p): Same.
10116 (compute_transp): Same.
10117 (store_ops_ok): Same.
10119 * function.c (purge_addressof_1): Do not allow paradoxical subregs
10121 (fixup_var_refs_1): Same.
10122 (instantiate_virtual_regs_1): Same.
10124 * fold-const.c (operand_equal_p): Handle vectors.
10126 (rtl_expr_nonnegative_p): Same.
10128 * flow.c (mark_used_regs): Handle vectors.
10130 * df.c (df_uses_record): Handle vectors.
10132 * cselib.c (cselib_subst_to_values): Handle vectors.
10133 (cselib_mem_conflict_p): Same.
10136 * cse.c (canon_reg): Handle vectors.
10138 (cse_process_notes): Same.
10139 (count_reg_usage): Same.
10140 (canon_hash): Same.
10142 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
10144 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
10146 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
10147 (gen_rtx): Handle CONST_VECTOR.
10148 (gen_const_vector_0): New.
10149 (copy_rtx_if_shared): CONST_VECTORs can be shared.
10150 (reset_used_flags): Same.
10151 (copy_insn_1): Same.
10152 (initializer_constant_valid_p): Handle VECTOR_CST.
10154 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
10156 * doc/rtl.texi (Constants): Document const_vector.
10157 (CONST0_RTX): Update for vectors.
10158 (RTL sharing): Same.
10160 * print-tree.c (print_node): Add case for VECTOR_CST.
10162 * tree.h (TREE_VECTOR_CST_ELTS): New.
10163 (struct tree_vector): New.
10164 (union tree_node): Add vector node.
10165 (build_vector): Add prototype.
10167 * tree.def (VECTOR_CST): New.
10169 * tree.c (build_vector): New.
10171 * expmed.c (make_tree): Handle CONST_VECTOR.
10173 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
10174 (CONST_VECTOR_ELT): New.
10175 (CONST_VECTOR_NUNITS): New.
10177 * machmode.h (GET_MODE_INNER): New.
10178 (DEF_MACHMODE): Accept 8th arg.
10180 * machmode.def: Add 8th argument for vector inner mode.
10181 Add inner vector modes for vectors.
10183 * rtl.def (VEC_CONST): Remove.
10184 (CONST_VECTOR): New.
10186 * expr.c (clear_storage): Allow vectors.
10187 (is_zeros_p): Handle VECTOR_CST.
10189 * varasm.c (output_constant_pool): Handle vectors.
10190 (rtx_const): Add veclo and vechi fields.
10191 (kind): Add RTX_VECTOR.
10192 (decode_rtx_const): Add case for vector.
10194 * config/rs6000/rs6000-protos.h: Add zero_constant.
10196 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
10197 constants. Force easy vector constants into memory.
10198 (easy_vector_constant): New.
10199 (emit_easy_vector_constant): New.
10200 (rs6000_legitimize_reload_address): Do not generate bad reloads on
10203 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
10205 ("altivec_lvxl"): Same.
10206 (altivec_lvebx): Same.
10207 (altivec_lvehx): Same.
10208 (altivec_lvewx): Same.
10209 ("*movv4si_const0"): New.
10210 ("*movv4sf_const0"): New.
10211 ("*movv8hi_const0"): New.
10212 ("*movv16qi_const0"): New.
10214 2002-02-18 Kazu Hirata <kazu@hxi.com>
10216 * config/h8300/h8300.c (notice_update_cc): Use
10219 2002-02-18 Kazu Hirata <kazu@hxi.com>
10221 * config/h8300/h8300.md (divmod patterns): Change the
10222 constraints for operands[1] to register_operand.
10224 2002-02-18 Kazu Hirata <kazu@hxi.com>
10226 * config/h8300/h8300-protos.h: Remove the prototype for
10228 * config/h8300/h8300.c (p_operand): Remove.
10229 * config/h8300/h8300.md: Replace p_operand with
10232 2002-02-18 Philip Blundell <pb@nexus.co.uk>
10234 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
10236 (output_return_instruction): Allow use of LDR to unstack
10237 return addresss even for interrupt handlers or when
10238 interworking. If compiling for ARMv5, use interworking-safe
10239 return instructions by default. Remove duplicated code and
10240 lengthy "strcat" sequences.
10242 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10244 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
10245 (LINK_EH_SPEC): Define.
10246 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
10248 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
10250 * config/s390/s390.c (s390_emit_prologue): Do not set the
10251 frame_related flag for call-clobbered registers.
10253 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
10255 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
10256 (construct_container): Fix handling of SSE operands.
10257 (ix86_expand_builtin): Fix handling of 64bit pointers.
10258 (mmx_maskmovq_rex): New pattern.
10260 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
10262 * regrename.c (kill_set_value): Handle subregs properly.
10264 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
10266 * objc/objc-act.c (handle_impent): Remove leading '*'
10267 from objc_class_name.
10269 2002-02-17 Richard Henderson <rth@redhat.com>
10271 * config/alpha/alpha.c (some_small_symbolic_operand,
10272 some_small_symbolic_operand_1, split_small_symbolic_operand,
10273 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
10274 Handle small SYMBOL_REFs anywhere, not just inside memories.
10275 * config/alpha/alpha-protos.h: Update.
10276 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10277 * config/alpha/alpha.md (small symbolic operand splitter): Update.
10279 2002-02-17 Roland McGrath <roland@frob.com>
10281 * config.gcc (powerpc-*-gnu-gnualtivec*,
10282 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
10283 * config/rs6000/gnu.h: New file.
10284 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
10285 Grok "gnu" in rs6000_abi_name.
10286 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
10287 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
10288 Grok -mcall-gnu analogous to -mcall-linux et al.
10289 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10290 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
10291 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
10293 2002-02-17 Jakub Jelinek <jakub@redhat.com>
10296 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
10299 2002-02-17 Philipp Thomas <pthomas@suse.de>
10301 * config/cris/cris.h: Undefine STARTFILE_SPEC and
10302 ENDFILE_SPEC before (re)defining them.
10304 2002-02-17 Kazu Hirata <kazu@hxi.com>
10306 * config/h8300/h8300.c: Fix formatting.
10307 * config/h8300/h8300.h: Likewise.
10309 2002-02-17 Philipp Thomas <pthomas@suse.de>
10311 * doc/tm.texi: Explain why empty strings should not be
10312 marked for translation.
10314 2002-02-17 Philipp Thomas <pthomas@suse.de>
10316 * final.c (output_operand_lossage): Changed to accept
10317 printf style arguments. Change calls where necessary.
10318 * output.h (output_operand_lossage): Change declaration
10319 accordingly. Update copyright.
10320 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
10321 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
10322 Update copyright date where necessary.
10324 * config/i386/i386.c (print_operand): Likewise. Remove use of
10327 * config/cris/cris.c (cris_operand_lossage): Likewise.
10328 Rename parameter so that exgettext recognizes it as
10329 translatable message.
10330 (LOSE_AND_RETURN): Rename parameter to msgid.
10332 2002-02-17 Kazu Hirata <kazu@hxi.com>
10334 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
10335 hard coded register number with an appropriate macro.
10336 (HARD_REGNO_MODE_OK): Likewise.
10337 (ARG_POINTER_REGNUM): Likewise.
10338 (STATIC_CHAIN_REGNUM): Likewise.
10339 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
10340 * config/h8300/h8300.md (define_constants): Define more
10343 2002-02-17 Philipp Thomas <pthomas@suse.de>
10345 * config/i386/i386.h: Don't mark empty strings for translation.
10347 2002-02-16 H.J. Lu <hjl@gnu.org>
10349 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
10351 2002-02-16 Zack Weinberg <zack@codesourcery.com>
10353 * cppinit.c (merge_include_chains): Check for brack being
10354 NULL before attempting to merge it with qtail.
10356 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10358 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
10361 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
10363 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
10365 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
10367 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
10368 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
10369 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
10371 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10373 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
10374 now only if !TARGET_FIX.
10375 (*movsi_nt_vms_fix): New pattern.
10377 2002-02-16 Douglas B Rupp <rupp@gnat.com>
10379 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
10380 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
10381 (alpha_sa_mask, alpha_sa_size): Reflect above change.
10382 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
10383 (alpha_start_function, alpha_expand_epilogue): Likewise.
10384 (unicosmk_gen_dsib): Likewise.
10386 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10388 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
10390 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
10392 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
10393 check_and_change_labels, s390_final_chunkify): Delete.
10394 (s390_split_branches, s390_chunkify_pool): New functions.
10395 (s390_function_prologue): Call them.
10397 * config/s390/s390.h (S390_REL_MAX): Delete.
10398 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
10400 * config/s390/s390.md (cjump, icjump, jump): Fix length
10401 attribute calculation.
10404 2002-02-15 David Edelsohn <edelsohn@gnu.org>
10406 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
10407 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
10409 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10411 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
10412 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
10413 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
10415 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
10417 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
10419 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
10421 * reload.c (find_dummy_reload): Check that an output register
10422 is valid for its mode.
10424 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
10426 * combine.c (known_cond): After replacing the REG of a SUBREG, try
10429 * function.c (assign_parms): Demote promoted argument passed by
10430 transparent reference.
10432 2001-02-14 Joel Sherrill <joel@OARcorp.com>
10434 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
10435 -Acpu() and -Amachine() to eliminate warnings.
10437 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
10439 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
10441 2002-02-14 Kazu Hirata <kazu@hxi.com>
10443 * config/h8300/h8300-protos.h: Update the prototype for
10445 * config/h8300/h8300.c (const_costs): Treat SET as a little
10446 more expensive operation.
10447 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
10448 reference to const_costs.
10450 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
10452 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
10454 2002-02-14 Jakub Jelinek <jakub@redhat.com>
10457 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
10458 use arguments from newtype.
10460 2002-02-13 Eric Christopher <echristo@redhat.com>
10462 * config/mips/mips.c (override_options): Add check for march/mipsX
10463 on the same command line. Fix error message in cpu processing.
10464 Remove architecture and ISA checks.
10466 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
10468 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
10470 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
10472 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
10474 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
10476 ("*movv8hi_internal1"): Same.
10477 ("*movv16qi_internal1"): Same.
10478 ("*movv4sf_internal1"): Same.
10480 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
10481 not push_reload for altivec modes.
10483 2002-02-13 Joel Sherrill <joel@OARcorp.com>
10485 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
10486 all RTEMS targets including removal of #includes from config/*/rtems*.h
10487 file and adding them to tm_file setting. Added xm_defines=POSIX to
10489 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
10490 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
10491 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
10492 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
10493 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
10494 config/m68k/rtemself.h: Ditto.
10495 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
10496 config/mips/rtems64.h: Ditto.
10497 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
10498 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
10500 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
10501 config/sparc/rtemself.h: Ditto.
10502 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
10503 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
10504 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
10506 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
10507 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
10508 target made more similar to i386-elf.
10509 * config/i386/t-rtems-i386: Added soft float support and multilibs.
10510 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
10511 be similar to config/m68k/t-m68kelf.
10512 * gthr-rtems.h: Encapsulate with extern "C" for C++.
10514 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
10516 * regmove.c (kill_value): Handle subregs.
10518 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
10520 * i386.md (mul patterns): Allow memory operand to be first;
10521 add expanders where needed; fix constraints.
10522 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
10523 Allow memory operand to be the first.
10525 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
10528 2002-02-13 Jakub Jelinek <jakub@redhat.com>
10531 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
10534 2002-02-13 Jakub Jelinek <jakub@redhat.com>
10536 PR optimization/5547:
10537 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
10538 all valid IA-32 address modes involving non-scaled %ebx and
10539 GOT/GOTOFF as displacement.
10541 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
10543 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
10544 after emitting ltorg insns.
10546 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
10547 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
10548 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
10549 *abssf2): Fix "op_type" attribute.
10551 2002-02-13 Douglas B Rupp <rupp@gnat.com>
10553 * mkconfig.sh: Avoid using a subshell redirect.
10554 ($output.T): Change to $(output)T.
10555 (ENABLE_NLS): Remove unneeded undef.
10557 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
10558 * config/alpha/x-vms (libsubdir): Define.
10560 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
10561 register frame procedures. Optimize retrieving context.
10563 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
10564 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
10565 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
10567 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10569 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
10570 Make same change as for find_base_value.
10572 2002-02-13 Kazu Hirata <kazu@hxi.com>
10574 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
10575 of QImode and SImode.
10577 2002-02-13 Kazu Hirata <kazu@hxi.com>
10579 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
10580 length computation of movsi.
10581 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
10583 2002-02-13 Kazu Hirata <kazu@hxi.com>
10585 * config/h8300/h8300.md (subqi3): Tighten the predicate for
10586 operands[2] to register_operand.
10588 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
10590 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
10592 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
10594 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
10595 for altivec_lvx* and altivec_stvx*.
10596 ("*movv4si_internal"): Add constraint for loading from GPRs.
10597 ("*movv8hi_internal1"): Same.
10598 ("*movv16qi_internal1"): Same.
10599 ("*movv4sf_internal1"): Same.
10601 * config/rs6000/rs6000.c (altivec_register_operand): New.
10603 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10604 altivec_register_operand.
10606 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
10608 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10611 2002-02-13 Stan Shebs <shebs@apple.com>
10613 * c-typeck.c (digest_init): Handle vectors.
10614 (really_start_incremental_init): Same.
10615 (pop_init_level): Same.
10616 (process_init_element): Same.
10618 * varasm.c (output_constant): Same.
10620 * expr.c (clear_storage): Same.
10621 (store_constructor): Same.
10623 2002-02-12 Eric Christopher <echristo@redhat.com>
10625 * explow.c (hard_function_value): Add comment explaining
10626 signed/unsigned comparison.
10628 2002-02-12 Jakub Jelinek <jakub@redhat.com>
10630 * jump.c (never_reached_warning): Add finish argument.
10631 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10632 real insn after end.
10633 * rtl.h (never_reached_warning): Adjust prototype.
10634 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10635 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10636 never_reached_warning.
10638 2002-02-12 Graham Stott <grahams@redhat.com>
10640 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10642 2002-02-12 Kazu Hirata <kazu@hxi.com>
10644 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10645 logical shifts on H8/300.
10646 (shift_alg_si): Improve several shifts on H8/300.
10647 (get_shift_alg): Likewise.
10649 2002-02-12 Graham Stott <grahams@redhat.com>
10651 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10653 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10655 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10656 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10658 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
10660 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10661 non-CONST_INT through default_assemble_integer.
10662 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10663 <case 8>: Abort for CONST_DOUBLE.
10665 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10667 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10669 * config/pa/pa-linux.h (LIB_SPEC): Delete.
10670 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10672 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
10674 * config/stormy16/stormy16.md (zero_extendqihi2): New.
10676 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
10678 * regrename.c (regrename_optimize): Don't accept a
10679 part-clobbered register if the replaced register is not part
10682 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10683 take padding into account when computing the argument value.
10685 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10687 * combine.c (try_combine): Apply substitutions in
10688 CALL_INSN_FUNCTION_USAGE too.
10690 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
10692 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10693 __builtin_altivec_abs*.
10696 * config/rs6000/rs6000.h (rs6000_builtins): Add
10697 ALTIVEC_BUILTIN_ABS*.
10699 * config/rs6000/altivec.h: Use const char for builtins expecting
10701 (vec_abs): New versions for C and C++.
10704 2002-02-10 Kazu Hirata <kazu@hxi.com>
10706 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10709 2002-02-10 Kazu Hirata <kazu@hxi.com>
10711 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10712 constant definition from h8300.md.
10713 (FRAME_POINTER_REGNUM): Likewise.
10714 * config/h8300/h8300.md (define_constants): Add FP_REG.
10716 2002-02-10 Kazu Hirata <kazu@hxi.com>
10718 * config/h8300/h8300.c (print_operand): Remove redundant code.
10720 2002-02-10 Kazu Hirata <kazu@hxi.com>
10722 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10723 * config/h8300/h8300.c (byte_reg): Make it static.
10725 2002-02-10 Richard Henderson <rth@redhat.com>
10728 * c-typeck.c (incomplete_type_error): Handle flexible array members.
10730 2002-02-10 Richard Henderson <rth@redhat.com>
10733 * tree.c (append_random_chars): Don't abort if main_input_filename
10736 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
10738 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10740 2002-02-10 Kazu Hirata <kazu@hxi.com>
10742 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10743 (pushhi1): Likewise.
10745 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
10747 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10748 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10750 2002-02-09 David O'Brien <obrien@FreeBSD.org>
10752 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10754 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
10756 2002-02-09 Kazu Hirata <kazu@hxi.com>
10758 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10759 a half of an SImode register on H8/300.
10761 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
10763 * i386.md (movdi_2): Add missing '!'.
10765 2002-02-09 Kazu Hirata <kazu@hxi.com>
10767 * config/h8300/h8300.h: Fix formatting. Remove commented-out
10770 2002-02-09 Kazu Hirata <kazu@hxi.com>
10772 * config/h8300/h8300.md (length): Correct the distance valid
10773 for the short branch.
10775 2002-02-09 Kazu Hirata <kazu@hxi.com>
10777 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10779 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10781 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10782 registers in SImode.
10783 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10786 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10789 Contribute sh64-elf.
10790 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
10791 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10792 (sh_cannot_modify_jumps_p): New function.
10793 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10794 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10795 (sh_ms_bitfield_layout_p): New function.
10796 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
10797 Zack Weinberg <zack@codesourcery.com>
10798 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10799 expand_simple_binop instead of expand_binop.
10800 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
10801 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10802 use of .quad and .uaquad.
10803 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10804 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10805 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10806 * config/sh/sh.md (movdi_const, movdi_const_32bit,
10807 movdi_const_16bit): Make sure all CONSTs have modes.
10808 (sym2PIC): Ditto, but by adjusting all callers.
10809 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10810 if the prologue calls the SHmedia argument decoder or register
10812 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10813 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10814 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10815 (sh_expand_epilogue): Don't emit USE of return target register.
10816 (prepare_move_operands): Legitimize DImode PIC addresses.
10817 (sh_media_register_for_return): Skip tr0, used to initialize the
10819 (sh_expand_prologue): Remove explicit USE of return register.
10820 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
10821 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
10822 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10823 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10824 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10825 EXTRA_CONSTRAINT_T.
10826 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10827 (MOVI_SHORI_BASE_OPERAND_P): New.
10828 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10829 (EXTRA_CONSTRAINT_T): Define in terms of them.
10830 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10831 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10832 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10833 alternatives supporting TARGET_REGS.
10834 (UNSPEC_GOTPLT): New constant.
10835 (movdi split): Move incrementing of LABEL_NUSES...
10836 (movdi_const, movdi_const_32bit): Here. Use
10837 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10838 (movdi_const_16bit): New.
10839 (call, call_value) [flag_pic]: Use GOTPLT.
10840 (call_pop, call_value_pop): New expands.
10841 (call_pop_compact, call_pop_rettramp): New insns.
10842 (call_value_pop_compact, call_value_pop_rettramp): New insns.
10843 (sibcall) [flag_pic]: Use GOT.
10844 (builtint_setjmp_receiver): Remove bogus, unused expand.
10845 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10846 (*pt, *ptb, ptrel): New insns.
10847 (sym2GOT): Handle DImode GOT.
10848 (sym2GOTPLT, symGOTPLT2reg): New expands.
10849 (sym2PIC): New expand.
10850 (shcompact_return_tramp): Use GOTPLT to return trampoline.
10851 (shcompact_return_tramp_i): Use return register explicitly.
10852 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10853 disable flag_reorder_blocks.
10854 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10855 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10856 clobbers, for clarity.
10857 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10858 restoring of r0 in macl as MAYBE_DEAD.
10859 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
10860 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10861 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10862 alter_subreg all over.
10863 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10864 reload, instead of emitting instructions that would require
10866 (casesi_load_media): Add missing modes.
10867 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
10868 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10869 as used if the argument decoder is called.
10870 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10871 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10872 Pmode, then extend it to DImode if necessary.
10873 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10874 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10875 constants in FPU-enabled SHmedia, let them be loaded from memory.
10876 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10877 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10878 Adjust whitespace in assembly output templates.
10879 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
10880 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10881 mode of if_then_else.
10882 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
10883 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10885 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
10886 Joern Rennecke <amylaar@redhat.com>
10887 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10888 (SUBTARGET_CPP_PTR_SPEC): New.
10889 (SUBTARGET_CPP_SPEC): Remove.
10890 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10891 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10892 Fix typo in previous checkin.
10893 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
10894 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10895 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
10896 Alexandre Oliva <aoliva@redhat.com>
10897 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10898 what single FP register can hold for SHmedia target.
10899 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
10900 Alexandre Oliva <aoliva@redhat.com>
10901 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10902 Do not split into SUBREG.
10903 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
10904 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10905 and added new functions as specified in SH5 ABI r9.
10906 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
10907 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10909 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
10910 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10911 gen_consttable_4 and gen_consttable_8. Emit multiple labels
10912 and consttable_window_ends.
10913 2001-06-03 Graham Stott <grahams@redhat,com>
10914 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10915 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
10916 * config/sh/sh.c (print_operand): Handle floating-point pair,
10917 vector and matrix registers.
10918 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10919 vector modes into account.
10920 * config/sh/sh.md (movv2sf): Split move between registers into
10922 (movv4sf, movv16sf): Introduce insns that get split only after
10924 * config/sh/shmedia.h: Fix Copyright dates.
10925 * config/sh/ushmedia.h: Likewise. Move loop counter
10926 declarations into conditionals that uses them.
10927 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10929 * config/sh/sshmedia.h: Fix Copyright dates.
10930 (sh_media_PUTCFG): Fix constraints.
10931 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
10932 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10933 ptrmemfunc_vbit_in_delta for SH5.
10934 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
10935 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10936 * invoke.texi: Likewise.
10937 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10938 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10939 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10940 GCC_pop_shmedia_regs_nofpu): New global symbols.
10941 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10942 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10943 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10944 compact function with nonlocal labels.
10945 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10946 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10947 (initial_elimination_offset): Account for their stack space.
10948 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10949 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10950 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10951 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10952 least one of the operands to be a register.
10953 (movv2sf): Likewise. Renamed to movv2sf_i.
10954 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10955 prepare_move_operands() before emitting SHmedia insns.
10956 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
10957 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10958 Don't save nor initialize r12. Don't mis-align the stack.
10959 Pad the code with a nop.
10960 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
10962 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
10963 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10964 [__SHMEDIA__]: Implement.
10965 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
10966 * config/sh/sh.md: Set latency of `pt' closer to reality.
10967 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10968 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10969 Set move, load and store type attributes.
10970 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10971 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10973 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10974 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10975 * config/sh/sh.c (sh_media_register_for_return): New function.
10976 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10977 branch-target register.
10978 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10979 * config/sh/sh.md (return_media_i): Use any call-clobbered
10980 branch-target register.
10981 (return_media): If r18 wasn't copied in the prologue, copy it
10983 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10984 Clear class FP0_REGS.
10985 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10987 2001-03-08 DJ Delorie <dj@redhat.com>
10988 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10989 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
10990 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10991 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
10992 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10993 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
10994 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10995 return value correctly for call_cookie.
10996 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
10997 * config/sh/crt1.asm (start): Modified so as to call
10998 ___setup_argv_and_call_main.
10999 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
11000 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
11002 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
11003 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
11004 (STRIP_NAME_ENCODING): Use it.
11005 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
11006 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
11007 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
11008 prepare_scc_operands().
11009 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
11010 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
11011 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
11012 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
11013 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
11014 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
11015 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
11016 used in shcompact_incoming_args.
11017 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
11019 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
11021 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
11022 Adjust accordingly.
11023 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
11024 Simplify. Adjust. Add sanity check.
11025 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
11027 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
11029 (udivsi3, divsi3): Use them.
11030 (force_mode_for_call): New insn.
11031 (call, call_value, sibcall_value): Emit it before SHcompact
11033 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
11034 * config/sh/sh.md (call, call_value, sibcall): Make sure the
11035 call cookie is non-NULL before taking its value.
11036 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
11037 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
11038 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
11039 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
11041 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
11042 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
11043 temporary for stack adjusts. Use MACL and MACH to pass
11044 arguments to shcompact_incoming_args.
11045 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
11047 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
11048 (nested_trampoline): Load static chain address into r1.
11049 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
11050 2001-01-07 Alexandre Oliva <aoliva@redhat.com
11051 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
11052 fp_arith_reg_operand().
11053 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
11054 * config/sh/sh.md (casesi): Sign-extend the first two operands,
11055 and use signed compares for them.
11056 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
11057 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
11058 ones properly aligned.
11059 (find_barrier): Account for extra alignment needed for 8-byte wide
11061 (machine_dependent_reorg): Require a label for the second 4-byte
11062 constant after an 8-byte one.
11063 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
11065 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11066 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
11067 last_float when switching float modes.
11068 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
11069 auto-increment for general-purpose registers.
11070 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
11072 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
11074 * config/sh/sh.c (sh_builtin_saveregs): Support using all
11075 registers for varargs.
11076 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
11077 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
11078 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
11079 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
11080 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
11081 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
11082 call_cookie accordingly.
11083 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
11084 (SHCOMPACT_BYREF): Likewise.
11085 (SHCOMPACT_FORCE_ON_STACK): New macro.
11086 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
11087 (sh_builtin_saveregs): Likewise.
11088 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11089 shcompact_incoming_args): Use new shift values. Support
11090 sequences of consecutive and non-consecutive pushes/pops.
11091 * config/sh/sh.md (return): Don't explicitly use PR_REG.
11092 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
11093 * config/sh/sh.h (TEXT_SECTION): Define.
11094 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
11095 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
11096 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
11097 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
11098 return values on FPU-enabled SHmedia.
11099 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
11100 FPU-enabled SHmedia.
11101 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
11102 value is returned in a non-FP reg and is not returned by
11104 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
11106 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
11107 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
11108 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
11109 quad-aligned to be passed by callee-copy reference.
11110 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
11111 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
11112 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
11113 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
11114 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
11115 copying low-numbered FP regs to r7 and r8.
11116 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
11117 FP regs to general-purpose regs only if the copy was passed on the
11119 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
11120 copying FP reg to r9.
11121 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
11122 copy FP regs to general-purpose regs only in outgoing calls.
11123 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
11124 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
11126 * config/sh/sh.h (struct sh_args): Document all fields.
11127 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
11128 passed partially on the stack should not consider making
11130 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
11131 stack_regs only for incoming calls. When passing FP args,
11132 make sure there are FP regs available before modifying
11134 (SHCOMPACT_BYREF): Pass double args in general-purpose
11135 registers by reference.
11136 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
11137 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
11138 attempt to generate sibcalls if the caller got any arguments
11140 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
11141 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
11142 to 8-byte boundaries.
11143 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
11144 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
11145 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
11146 stored in the stack.
11147 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
11148 for the offsets to have the ISA bit set.
11149 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
11150 invocation. Use beq instead of bgt to mark end of sequence of
11152 (shcompact_incoming_args): Fix store of r2. Use beq instead of
11153 bgt to mark end of sequence of stores.
11154 * config/sh/sh.c (arith_operand): Don't check whether
11155 CONST_OK_FOR_J for now.
11156 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
11157 instead of long for conversion.
11158 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
11159 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
11160 before passing it to fprintf.
11161 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
11162 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
11163 Call set_fpscr before reading/writing SR.
11164 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
11166 * config/sh/lib1funcs.asm: Add `.align 2' directives before
11168 (FMOVD_WORKS): Define on SH5 with FPU.
11169 (set_fpscr): Define on SH5. Remove separate _fpscr_values
11171 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
11173 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
11174 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
11176 (ia_main_table): Ditto.
11177 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
11178 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11179 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
11180 the definitions from sh.h.
11181 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
11183 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
11184 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
11185 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11186 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
11187 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
11188 Increment LABEL_NUSES.
11190 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
11192 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
11194 * config/sh/elf.h (SIZE_TYPE): Likewise.
11195 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
11196 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11197 shcompact_incoming_args): Load switch table addresses using
11199 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11200 (NO_BUILTIN_SIZE_TYPE): Define.
11201 (SIZE_TYPE): Don't define.
11202 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
11203 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
11204 definition of __SH5__=32 for -m5-compact-nofpu.
11205 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
11207 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
11208 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
11209 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
11210 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
11211 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
11212 (INSN_LENGTH_ALIGNMENT): Likewise.
11213 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11214 * config/sh/sh.md (call, call_value, sibcall): Simplify
11215 copying of non-branch-target register.
11216 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11217 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
11218 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
11219 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
11220 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
11221 floating-point values as structs.
11222 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
11223 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
11224 general-purpose register.
11225 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
11226 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
11227 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
11228 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
11229 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
11230 (ENCODE_SECTION_INFO): Enclose variables and constants in
11232 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
11233 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
11234 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
11235 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
11236 only for LABEL_REFs. For SYMBOL_REFs, prepend
11237 SH_DATALABEL_ENCODING to the symbol name.
11238 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
11240 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
11241 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
11243 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
11244 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
11245 (DATALABEL_REF_P): Don't require CONST.
11246 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
11248 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
11249 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
11251 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
11252 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
11253 Use shallow_copy_rtx and PUT_MODE to change the mode of
11254 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
11255 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
11256 on SHmedia using GENERAL_REGs.
11257 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11258 bltu_media_i): Fix reversion of conditions.
11259 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
11260 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
11261 * config/sh/sh.c (output_far_jump): Save r13 in macl.
11262 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
11263 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
11264 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
11265 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
11266 (GCC_nested_trampoline): Likewise.
11267 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
11268 * config/sh/sh.c (gen_datalabel_ref): Define.
11269 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
11270 (INITIALIZE_TRAMPOLINE): Likewise.
11271 (TRAMPOLINE_ADJUST_ADDRESS): Define.
11272 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
11273 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
11274 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
11275 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
11276 (ic_invalidate): Adjust for SH5.
11277 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
11278 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
11279 _nested_trampoline.
11280 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
11281 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
11282 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
11283 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
11284 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
11285 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
11286 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
11287 * config/sh/sh.c (target_reg_operand): Match only target-branch
11288 registers and pseudos that aren't virtual registers.
11289 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11290 Copy operands that don't match target_reg_operand to pseudos.
11291 (call_media, call_value_media, sibcall_media): Use
11292 target_reg_operand instead of target_operand.
11293 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
11294 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
11295 * config/sh/sh.c (target_reg_operand): Match hardware registers
11296 other than branch-target registers.
11297 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
11298 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
11299 (fpscr_values) [SH5 == 32]: Define.
11300 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
11301 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
11302 Handle function addresses coming in SUBREGs.
11303 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
11304 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
11305 shcompact_return_trampoline): Use datalabel where appropriate.
11306 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
11307 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
11308 general-purpose register to copy one branch-target register to
11310 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
11311 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
11312 SYMBOL_REFs with VOIDmode.
11313 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
11314 bltu_media_i): New insns.
11315 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
11316 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
11317 (INIT_CUMULATIVE_ARGS): Likewise.
11318 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
11319 * machmode.def (V16SFmode): New mode.
11320 * c-common.c (type_for_mode): Support V2SF and V16SF.
11321 * tree.c (build_common_tree_nodes_2): Likewise.
11322 * tree.h (tree_index): Likewise.
11323 * calls.c (emit_call_1): Take args_so_far. Adjust all
11324 callers. Introduce CALL_POPS_ARGS.
11325 * tm.texi (CALL_POPS_ARGS): Document.
11326 * config/sh/crt1.asm: Implement in SHmedia mode.
11327 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
11328 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
11329 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
11330 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
11331 Implement divsi and udivsi in SHmedia mode. Introduce
11332 SHcompact trampolines.
11333 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
11335 (regno_reg_class): Rewrite.
11336 (fp_reg_names): Remove.
11337 (sh_register_names, sh_additional_register_names): New.
11338 (print_operand): Added `u'. Support SUBREGs in addresses.
11339 Add parentheses around shifted CONSTs.
11340 (output_file_start): Output .mode and .abi directives.
11341 (shiftcosts, addsubcosts, multcosts): Adjust.
11342 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
11343 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
11344 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
11345 bytes, not registers. Take into account the need for the
11346 SHcompact incoming args trampoline. Adjust all callers.
11347 (sh_expand_prologue): Take stack_regs into account. Call
11348 incoming args trampoline. Keep stack aligned as per SH5 ABI.
11349 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
11350 stack aligned as per SH5 ABI.
11351 (sh_builtin_saveregs): Support SH5 ABI.
11352 (sh_build_va_list, sh_va_start): Likewise.
11353 (initial_elimination_offset): Take alignment into account.
11354 Compute location of PR according to the SH5 stack frame.
11355 (arith_reg_operand): Reject branch-target registers.
11356 (shmedia_6bit_operand): New.
11357 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
11358 (target_reg_operand): Match DImode only. Accept SUBREGs.
11359 (target_operand): New.
11360 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
11361 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
11362 SIBCALL_REGS for SHmedia.
11363 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
11364 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
11365 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
11366 (TARGET_SWITCHES): New SH5 flags.
11367 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
11368 VALID_REGISTER_P to disable unsupported registers.
11369 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
11370 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
11371 (FUNCTION_ARG_PADDING): Define.
11372 (FASTEST_ALIGNMENT): Adjust.
11373 (SH_REGISTER_NAMES_INITIALIZER): New.
11374 (sh_register_names): Declare.
11375 (DEBUG_REGISTER_NAMES): Define.
11376 (REGISTER_NAMES): Define based on sh_register_names.
11377 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
11378 (sh_additional_register_names): Declare.
11379 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
11380 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
11381 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
11382 (REGISTER_NATURAL_MODE): Define.
11383 (FIRST_PSEUDO_REGISTER): Adjust.
11384 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
11385 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
11386 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
11387 (VECTOR_MODE_SUPPORTED_P): Define.
11388 (REG_CLASS_CONTENTS): Adjust.
11389 (SMALL_REGISTER_CLASSES): Adjust.
11390 (REG_ALLOC_ORDER): Adjust.
11391 (INDEX_REG_CLASS): Adjust.
11392 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
11393 (CONST_OK_FOR_LETTER_P): Adjust.
11394 (PREFERRED_RELOAD_CLASS): Adjust.
11395 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
11396 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
11397 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
11398 (FIRST_FP_PARM_REG): Adjust.
11399 (CALL_POPS_ARGS): Define.
11400 (FUNCTION_ARG_REGNO_P): Adjust.
11401 (struct sh_args): New fields.
11402 (GET_SH_ARG_CLASS): Adjust.
11403 (INIT_CUMULATIVE_ARGS): Adjust.
11404 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
11405 (FUNCTION_ARG_ADVANCE): Adjust.
11406 (FUNCTION_ARG): Adjust.
11407 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
11408 (FUNCTION_ARG_CALLEE_COPIES): Define.
11409 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
11410 (STRICT_ARGUMENT_NAMING): Define.
11411 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
11412 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
11413 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
11414 (SETUP_INCOMING_VARARGS): Adjust.
11415 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
11416 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
11417 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
11418 (SUBREG_OK_FOR_INDEX_P): Adjust.
11419 (EXTRA_CONSTRAINT_S): Update.
11420 (EXTRA_CONSTRAINT_T): New.
11421 (EXTRA_CONSTRAINT): Adjust.
11422 (GO_IF_LEGITIMATE_INDEX): Adjust.
11423 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
11424 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
11425 (MOVE_MAX): Adjust.
11426 (MAX_MOVE_MAX): Define.
11428 (CONST_COSTS): Adjust.
11429 (REGISTER_MOVE_COST): Adjust.
11430 (BRANCH_COST): Adjust.
11431 (TEXT_SECTION_ASM_OP): Adjust.
11432 (DBX_REGISTER_NUMBER): Adjust.
11433 (ASM_OUTPUT_DOUBLE_INT): New.
11434 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
11435 (PREDICATE_CODES): Adjust.
11436 (PROMOTE_MODE): Adjust.
11437 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
11438 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
11439 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
11440 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
11441 (DR0_REG, DR2_REG, DR4_REG): Renumber.
11442 (TR0_REG, TR1_REG, TR2_REG): New.
11443 (XD0_REG): Renumber.
11444 (UNSPEC_COMPACT_ARGS): New.
11445 (type): Added pt and ptabs.
11446 (length): Default to 4 on SHmedia. Default pt length to 12
11447 and 20 on SHmedia32 and SHmedia64, respectively.
11448 (pt): New function unit.
11449 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
11450 Add whitespace between operands of SHmedia instructions.
11452 (adddi3_media, addsi3_media): Adjust constraints.
11453 (subsi3) [SHmedia]: Force operand 1 into a register.
11454 (udivsi3_i1_media, udivsi3_i4_media): New.
11455 (udivsi3): Support SHmedia.
11456 (divsi3_i1_media, divsi3_i4_media): New.
11457 (divsi3): Support SHmedia.
11458 (anddi3, iordi3, xordi3): Adjust constraints.
11459 (zero_extendhidi2, zero_extendqidi2): New.
11460 (extendsidi2, extendhidi2, extendqidi2): New.
11461 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
11462 (pop_e, pop_fpul, pop_4): Likewise.
11463 (movsi_media): Support FP and BT registers.
11464 (movsi_media_nofpu): New. Adjust splits to DImode.
11465 (lduw, ldub): Renamed to zero_extend* above.
11466 (movqi_media): Fix typo.
11467 (movdi_media): Support FP and BT registers.
11468 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
11469 (movdi_const_32bit): New.
11470 (shori_media): Require immediate operand. Use `u' for output.
11471 (movdf_media, movsf_media): Simplified.
11472 (movdf_media_nofpu, movsf_media_nofpu): New.
11473 (movdf, movsf): Adjust
11474 (movv2sf, movv2sf, movv16sf): New.
11475 (beq_media, beq_media_i): Adjust constraints. Don't use
11476 scratch BT register.
11477 (bne_media, bne_media_i): Likewise.
11478 (bgt_media, bgt_media_i): Likewise.
11479 (bge_media, bge_media_i): Likewise.
11480 (bgtu_media, bgtu_media_i): Likewise.
11481 (bgeu_media, bgeu_media_i): Likewise.
11482 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
11483 bunordered): Emit jump insn. Force operands to registers when
11485 (jump_media, jump): Simplify.
11486 (call_compact, call_compact_rettramp): New.
11487 (call_value_compact, call_value_compact_rettramp): New.
11488 (call_media, call_value_media): Simplify.
11489 (sibcall_compact, sibcall_media): New.
11490 (call, call_value): Adjust for SHmedia and SHcompact.
11491 (sibcall, sibcall_value, untyped_call): Likewise.
11492 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
11493 (indirect_jump): Adjust for SHmedia.
11494 (casesi_jump_media): New.
11495 (nop): Re-enable for SHmedia.
11496 (call_site): Restrict to SH1.
11497 (casesi): Adjust for SHmedia.
11498 (casesi_shift_media, casesi_load_media): New.
11499 (return): Explicitly use PR register. Call return trampoline
11501 (return_i): Explicitly use PR register.
11502 (shcompact_return_tramp, shcompact_return_tramp_i): New.
11503 (return_media): Adjust.
11504 (shcompact_incoming_args): New.
11505 (epilogue): Adjust.
11506 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11507 (movstrsi): Disable on SH5.
11508 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
11509 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
11510 (subsf3, subsf3_media): Likewise.
11511 (mulsf3, mulsf3_media, mac_media): Likewise.
11512 (divsf3, divsf3_media): Likewise.
11513 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
11514 (floatsisf2, fux_truncsfsi2): Likewise.
11515 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
11517 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
11518 (cmpunsf_media, cmpsf): Likewise.
11519 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
11520 (abssf2, abssf2_media): Likewise.
11521 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
11522 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
11523 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
11524 (floatsidf2, fix_truncdfsi2): Likewise.
11525 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
11527 (cmpeqdf_media, cmpgtdf_media): Likewise.
11528 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
11529 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
11530 (absdf2, absdf2_media): Likewise.
11531 (extendsfdf2, extendsfdf2_media): Likewise.
11532 (truncsfdf2, truncsfdf2_media): Likewise.
11533 * config/sh/sh64.h: New file.
11534 * config/sh/t-sh64: New file.
11535 * config/sh/shmedia.h: New file.
11536 * config/sh/ushmedia.h: New file.
11537 * config/sh/sshmedia.h: New file.
11538 * configure.in: Added sh64-*-elf.
11539 * configure: Rebuilt.
11540 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
11541 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
11542 (reg_class_from_letter): Use `b' for TARGET_REGS.
11543 (print_operand): Support `%M', `%m', `AND' and
11544 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
11545 (andcosts): Adjust for SHmedia.
11546 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
11548 (target_reg_operand): New function.
11549 * config/sh/sh-protos.h (target_reg_operand): Declare.
11550 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
11551 FP registers on SH5.
11552 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
11554 (TARGET_REGISTER_P): New macro.
11555 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
11556 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
11557 (EXTRA_CONSTRAINT_S): New macro.
11558 (EXTRA_CONSTRAINT): Adjust.
11559 (FLOAT_TYPE_SIZE): Define to 32.
11560 (Pmode): DImode on SHmedia.
11561 (CONST_COSTS): Adjust for SHmedia literals.
11562 (PREDICATE_CODES): Added target_reg_operand.
11563 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
11564 * config/sh/sh.md: Remove all attrs from SHmedia insns.
11565 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
11566 (cmpdi): Accept SHmedia.
11567 (movdicc_false, movdicc_true): New insns.
11568 (movdicc): New expand.
11569 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
11571 (addsi3_media): Match `S' constraint.
11572 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
11573 (negdi2): Expand for SHmedia.
11574 (one_cmpldi2): New expand.
11575 (zero_extendsidi2): Change from expand to insn.
11576 (extendsidi2): Add constraints.
11577 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
11578 LD/ST address. Fix SI immediate loading split.
11579 (movhi_media, movqi_media, lduw, ldub): New insns.
11580 (movhi, movqi): Accept SHmedia.
11581 (shori_media, movdi_media): Relax input constraints. Split
11582 symbolic constants.
11583 (movdf_media, movsf_media): New insn. New split to movdi.
11584 (movdf, movsf): Match on SHmedia.
11585 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
11586 bgeu_media): New insns and splits. New insns with `_i' suffix.
11587 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
11588 (bunordered): New expand.
11589 (jump_compact): Renamed from `jump'.
11590 (jump_media): New insn.
11591 (jump): New expand.
11592 (call_media, call_value_media): New insns.
11593 (call, call_value): Adjust.
11594 (indirect_jump_compact): Renamed from `indirect_jump'.
11595 (indirect_jump_media): New insn.
11596 (indirect_jump): New expand.
11597 (untyped_call, return): Accept SHmedia.
11598 (return_media): New insn.
11599 (prologue, epilogue, blockage): Accept SHmedia.
11600 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
11601 (sunordered): New expand.
11602 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
11603 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
11604 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
11605 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
11606 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
11607 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
11608 abssf2_media): New insns.
11609 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11610 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11611 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11612 floatdidf2, floatsidf2_media, fix_truncdfdi2,
11613 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11614 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11615 absdf2_media): New insns.
11616 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11617 (extendsfdf2_media, truncdfsf2_media): New insns.
11618 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
11619 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11620 * config/sh/sh.h (CONST_OK_FOR_J): Document.
11621 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11622 * config/sh/sh.md (adddi3): New expand.
11623 (adddi3_media, adddi3z_media): New insns.
11624 (adddi3_compact): Renamed from adddi3.
11625 (addsi3_media): Use add.l r63 to add constant zero.
11626 (subdi3): New expand.
11627 (subdi3_media): New insn.
11628 (subdi3_compact): Renamed from subdi3.
11629 (mulsidi3): New expand.
11630 (mulsidi3_media): New insn.
11631 (mulsidi3_compact): Renamed from mulsidi3.
11632 (umulsidi3): New expand.
11633 (umulsidi3_media): New insn.
11634 (umulsidi3_compact): Renamed from umulsidi3.
11635 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11636 (ashlsi3, ashrsi3, lshrsi3): Use them.
11637 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11638 (ashldi3, ashrdi3, lshrdi3): Use them.
11639 (zero_extendsidi2): New expand.
11640 (extendsidi2): New insn.
11641 (movsi_media): New insn. Split to movdi to load constants.
11642 (movsi): Enable for shmedia.
11643 (movdi_media): New insn. Use shori_media to load wide constants.
11644 (short_media): New insn.
11645 (movdi): Enable for shmedia.
11646 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
11647 * config/sh/sh.h (CPP_SPEC): Added `m5'.
11648 (SUBTARGET_CPP_SPEC): Added `!m5'.
11649 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11650 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
11651 to all other SH variants.
11652 (TARGET_DEFAULT): Set to SH1_BIT.
11653 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11654 (BITS_PER_WORD): Raise to 64 on shmedia.
11655 (MAX_BITS_PER_WORD): Change to 64.
11656 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11657 (INT_TYPE_SIZE): Keep as 32.
11658 (UNITS_PER_WORD): Raise to 8 on shmedia.
11659 (MIN_UNITS_PER_WORD): Keep as 4.
11660 (POINTER_SIZE): Raise to 64 on shmedia.
11661 (CONST_OK_FOR_J): New macro.
11662 (CONST_OK_FOR_LETTER_P): Use it.
11663 (processor_type): Add PROCESSOR_SH5.
11664 * config/sh/sh.md: Conditionalize all expands, insns and
11665 splits to TARGET_SH1.
11667 (addsi3_compact): Renamed from...
11668 (addsi3): Now an expand.
11669 (addsi3_media, subsi3_media): New insns.
11670 (subsi3): Don't negate constants with SHmedia.
11672 * hooks.c: New file.
11673 * hooks.h: New file.
11674 * Makefile.in (HOOKS_H): New.
11675 (TARGET_DEF_H): Added $(HOOKS_H).
11676 (OBJS): Added hooks.o.
11677 (cfgcleanup.o, bb-reorder.o): Added target.h.
11678 (hooks.o): Added dependencies.
11679 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11680 (TARGET_INITIALIZER): this.
11681 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11682 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11683 * bb-reorder.c: Include target.h.
11684 (reorder_basic_blocks): Skip if cannot modify jumps.
11685 * cfgcleanup.c: Include target.h.
11686 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11688 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11690 * config/mips/mips.md (casesi_internal, casesi_internal_di):
11691 Protect jump delay slot instructions with .set noreorder and
11694 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11696 * config/mips/mips.md (casesi_internal_di): Calculate
11697 the index into the target offset table correctly.
11699 2002-02-08 Richard Henderson <rth@redhat.com>
11701 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11702 * final.c (output_addr_const): Accept and discard SUBREG.
11703 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11704 mark them unknown instead.
11705 (simplify_subtraction): Handle RTX_UNKNOWN.
11706 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11708 2002-02-08 David Edelsohn <edelsohn@gnu.org>
11710 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11712 2002-02-08 Richard Henderson <rth@redhat.com>
11714 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11716 2002-02-08 Andreas Jaeger <aj@suse.de>
11718 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11719 * config/i386/t-linux64: New file.
11721 2002-02-08 Jakub Jelinek <jakub@redhat.com>
11723 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11724 * c-parse.in (compstmt): Clear last_expr_type.
11726 2002-02-07 Richard Henderson <rth@redhat.com>
11728 * loop.c (strength_reduce): Sink final_value when not
11731 2002-02-07 David O'Brien <obrien@FreeBSD.org>
11733 * config/sparc/freebsd.h: Fix mismatched spec {.
11735 2002-02-07 Richard Henderson <rth@redhat.com>
11737 * cfgrtl.c: Include recog.h and insn-config.h.
11738 (keep_with_call_p): Fix general_operand invocation.
11739 * Makefile.in (cfgrtl.o): Update dependencies.
11741 2002-02-07 Kazu Hirata <kazu@hxi.com>
11743 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11744 comment. Accept HImode only if TARGET_H8300.
11746 2002-02-07 Eric Christopher <echristo@redhat.com>
11748 * config/mips/crtn.asm: Cleanup #ifdefs.
11750 2002-02-07 Eric Christopher <echristo@redhat.com>
11752 * config/mips/crti.asm: Add changes for mips16. mips16 uses
11753 register 7 as RA instead of $31.
11754 * config/mips/crtn.asm: Ditto.
11755 * config/mips/mips.c (mips_move_2words): Add case for
11756 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11757 (compute_frame_size): Fix typo.
11758 (save_restore_insns): Ditto. Make documentation about using
11759 register $7 as return register more precise.
11760 (mips_expand_epilogue): Fix comment. Add code to work around not
11761 being able to add to the stack pointer directly.
11762 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11763 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11766 2002-02-07 Tom Rix <trix@redhat.com>
11768 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11769 immediates in ldu and stdu DS opcode field.
11770 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11771 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11772 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11774 2002-02-07 Jeff Sturm <jsturm@one-point.com>
11776 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11777 offset for stack bias.
11779 2002-02-07 H.J. Lu <hjl@gnu.org>
11781 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11783 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
11785 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11787 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
11789 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11790 * i386.c (x86_order_regs_for_local_alloc): New global function.
11791 * i386.h (REG_ALLOC_ORDER): CLeanup.
11792 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11794 2002-02-07 Richard Henderson <rth@redhat.com>
11796 PR optimization/2463
11797 * alias.c (find_base_value): Recall base values for fixed hard regs.
11798 * loop.c (loop_regs_update): Don't use single_set on non-insns.
11800 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
11802 * config/mips/mips.md (define_delay) [mips16]: Adjust required
11805 2002-02-06 Richard Henderson <rth@redhat.com>
11808 * stmt.c (resolve_operand_name_1): Take more care with mixed
11809 named and unnamed operands.
11811 2002-02-06 Janis Johnson <janis187@us.ibm.com>
11812 Jan Hubicka <jh@suse.cz>
11814 * loop.c (remove_constant_addition): Avoid clobbering a shared
11817 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11819 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11820 * config/s390/t-linux64: New file.
11821 * config/s390/libgcc-glibc.ver: New file.
11823 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
11825 * config/s390/linux64.h: Delete file.
11826 * config/s390/s390x.h: New file.
11827 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11828 as target header file.
11829 * config/s390/linux.h (TARGET_VERSION): Define depending on
11830 DEFAULT_TARGET_64BIT.
11831 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11832 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11833 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11834 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11835 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11836 (EXTRA_SPEC): New define.
11837 * config/s390/s390.h (TARGET_VERSION): Define depending on
11838 DEFAULT_TARGET_64BIT.
11839 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11841 2002-02-06 Jason Merrill <jason@redhat.com>
11843 * c-decl.c (finish_function): Warn about a non-void function with
11844 no return statement and no abnormal exit.
11845 (current_function_returns_abnormally): New variable.
11846 (start_function): Clear it.
11847 (struct c_language_function): Add returns_abnormally.
11848 (push_c_function_context): Save it.
11849 (pop_c_function_context): Restore it.
11850 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11851 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11852 an explicit return type.
11853 * c-tree.h: Declare current_function_returns_abnormally.
11854 (C_FUNCTION_IMPLICIT_INT): New macro.
11855 * c-typeck.c (build_function_call): Set it.
11856 (c_expand_return): Set current_function_returns_value even if the
11857 value is erroneous.
11859 2002-02-06 Jakub Jelinek <jakub@redhat.com>
11862 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11863 unsafe for reevaluation.
11865 2002-02-06 Jakub Jelinek <jakub@redhat.com>
11868 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11869 EXPR_STMT, but COMPOUND_STMT, recurse into it.
11871 2002-02-06 Richard Henderson <rth@redhat.com>
11873 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11874 be a general_operand. Dest for function value must be a pseudo.
11876 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11878 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11879 as SYMBOL_REFs from the constant pool.
11881 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
11883 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11884 passed by invisible reference.
11886 2002-02-05 Richard Henderson <rth@redhat.com>
11888 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11890 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
11892 Implement using "base addresses" in insn operands as default.
11893 * config/mmix/mmix.c (mmix_conditional_register_usage): if
11894 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11895 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11896 used to read the rtx value.
11897 (mmix_target_asm_function_epilogue): Fix spacing.
11898 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11899 (mmix_legitimate_address): Ditto.
11900 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11901 should be loaded with a GETA insn. Don't allocate needless extra
11902 char for nul termination and fix misleading comment.
11903 (mmix_print_operand_address): Handle constants if
11904 TARGET_BASE_ADDRESSES.
11905 (mmix_output_register_setting): Use base addressing if
11906 TARGET_BASE_ADDRESSES and the number of insns is 3.
11907 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11908 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11909 to use R as constraint, add LDA to match s.
11910 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11911 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11912 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11913 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11914 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11915 order with other fixed registers.
11916 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11917 other parameter/call-clobbered registers.
11918 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11919 -mbase-addresses, -mno-base-addresses.
11920 (MMIX Options): Ditto.
11922 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
11924 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11926 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
11928 * config/rs6000/altivec.h: Change elem to _S_elem.
11930 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11932 * config/netbsd.h (WCHAR_TYPE): Define.
11933 (WCHAR_TYPE_SIZE): Ditto.
11934 (WINT_TYPE): Ditto.
11935 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11936 (WCHAR_UNSIGNED): Ditto.
11937 (WCHAR_TYPE_SIZE): Ditto.
11938 (WINT_TYPE): Ditto.
11939 * config/arm/netbsd.h: Likewise.
11940 * config/i386/netbsd-elf.h: Likewise.
11941 * config/i386/netbsd.h: Likewise.
11942 * config/m68k/netbsd-elf.h: Likewise.
11943 * config/m68k/netbsd.h: Likewise.
11944 * config/ns32k/netbsd.h: Likewise.
11945 * config/sparc/netbsd.h: Likewise.
11946 * config/vax/netbsd.: Likewise.
11948 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
11950 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11951 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
11952 (TARGET_INITIALIZER): this.
11953 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11954 (BITFIELD_NBYTES_LIMITED): Markup fix.
11955 * tree.h (default_ms_bitfield_layout_p): Declare.
11956 (record_layout_info): Added prev_field.
11957 * tree.c (default_ms_bitfield_layout_p): New fn.
11958 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11959 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11960 * stor-layout.c: Include target.h.
11961 (start_record_layout): Initialize prev_field.
11962 (place_field): Handle MS bit-field layout, and disregard
11963 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11964 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
11965 * Makefile.in (stor-layout.o): Adjust dependencies.
11967 2002-02-05 Jason Merrill <jason@redhat.com>
11969 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11971 2002-02-05 Andreas Jaeger <aj@suse.de>
11973 * crtstuff.c: Fix comments.
11975 2002-02-05 Richard Henderson <rth@redhat.com>
11978 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11979 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11982 * config/mips/mips.c (function_arg): Handle TImode.
11983 (function_arg_advance): Likewise.
11985 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11987 * config/rs6000/altivec.h (vec_step_help): Rename to
11990 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
11992 * config/rs6000/altivec.h: Fix typos.
11994 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
11996 * config/arm/netbsd.h: Correct a comment.
11998 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12000 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
12001 building void typed builtins.
12003 * config/rs6000/altivec.h (vec_ld*): Fix typos.
12004 (vec_step): Implement for C++.
12006 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12008 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
12010 2002-02-04 Richard Henderson <rth@redhat.com>
12012 * combine.c (nonzero_bits): Re-introduce special case for
12013 sp/fp/ap wrt REGNO_POINTER_ALIGN.
12015 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
12017 * doc/extend.texi: Warn about unsupported usage of altivec
12020 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
12021 (altivec_predicate_*): New.
12023 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
12024 Add C++ version of vec_*() functions.
12026 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
12027 (bdesc_2arg): Remove altivec predicates.
12028 (altivec_expand_builtin): Handle predicates.
12029 (altivec_init_builtins): Handle predicates.
12030 (altivec_expand_predicate_builtin): New.
12032 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12034 * pa.c (DO_FRAME_NOTES): Move forward.
12035 (store_reg): Revise handling of frame notes.
12036 (load_reg): Likewise.
12037 (set_reg_plus_d): Likewise.
12038 (hppa_expand_prologue): Likewise.
12039 (hppa_expand_epilogue): Likewise.
12041 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12043 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
12045 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12047 PR c/4475, c++/3780:
12048 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
12049 * c-common.h (SWITCH_TYPE): Define.
12050 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
12051 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
12052 Rename spareness variable to sparseness.
12053 (expand_end_case_type): Renamed from expand_end_case, use orig_type
12054 if non-NULL instead of TREE_TYPE (orig_index).
12055 * tree.h (expand_end_case_type): Renamed from expand_end_case.
12056 (expand_end_case): Define using expand_end_case_type.
12057 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
12058 to expand_end_case_type.
12059 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
12061 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12063 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
12064 (BIGGEST_ALIGNMENT): Change to 128.
12066 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12068 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
12070 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
12072 * pa.md (call_internal_reg_64bit): Remove unused variable.
12074 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
12076 * config/arm/arm.h (machine_function): Add uses_anonymous_args
12078 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
12079 * config/arm/arm.c (current_function_anonymous_args): Delete,
12080 replace uses with cfun->machine->uses_anonymous_args.
12081 (arm_reorg): Do not reset uses_anonymous_args.
12083 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
12084 any geenral register.
12086 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
12088 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
12091 2002-02-04 Richard Henderson <rth@redhat.com>
12093 * combine.c (force_to_mode): Remove STACK_BIAS code.
12094 (nonzero_bits): Likewise. Replace sp/fp special case with
12095 REGNO_POINTER_ALIGN.
12097 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
12098 (HARD_FRAME_POINTER_REGNUM): New.
12099 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
12100 (FIXED_REGS, CALL_USED_REGS): Update.
12101 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
12102 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
12103 (HARD_REGNO_NREGS): Update for SFP.
12104 (STACK_POINTER_OFFSET): Include bias here ...
12105 (FIRST_PARM_OFFSET): ... not here.
12106 (STACK_BIAS): Remove.
12107 (INIT_EXPANDERS): New.
12108 (STARTING_FRAME_OFFSET): Do not include bias.
12109 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
12110 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
12111 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
12112 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
12113 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
12114 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
12115 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
12116 (MUST_SAVE_REGISTER): Likewise.
12117 (sparc_flat_function_prologue): Likewise.
12118 (sparc_flat_function_epilogue): Likewise.
12119 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
12120 (sparc_init_modes): SFP is GENERAL_REGS.
12121 (sparc_builtin_saveregs): SFP does not have bias applied.
12123 2002-02-04 Richard Henderson <rth@redhat.com>
12125 * config/alpha/alpha.c (current_function_is_thunk): Don't check
12126 current_function_is_thunk.
12127 (alpha_sa_mask): Distinguish between current_function_is_thunk
12128 called from ASM_OUTPUT_MI_THUNK and not.
12129 (alpha_does_function_need_gp): Thunks always need gp.
12130 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12131 (alpha_output_mi_thunk_osf): New.
12132 * config/alpha/alpha-protos.h: Update.
12133 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
12135 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
12137 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
12138 function types, not when they're taken away.
12140 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
12142 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
12143 CODE_LABEL and jump table when replacing a table jump with a
12146 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12148 * config/s390/s390-protos.h (legitimize_la_operand,
12149 s390_secondary_input_reload_class, s390_plus_operand,
12150 s390_expand_plus_operand): Add prototypes.
12152 config/s390/s390.c (s390_secondary_input_reload_class,
12153 s390_plus_operand, s390_expand_plus_operand): New functions.
12155 (struct s390_address): New member 'pointer'.
12156 (s390_decompose_address): Compute it.
12157 (legitimate_la_operand_p): Use it.
12158 (legitimize_la_operand): New function.
12159 (movti, movdi, movdf splitters): Call it.
12161 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
12162 (PREDICATE_CODES): Add s390_plus_operand.
12164 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
12165 (la_ccclobber): Allow GENERAL_REGS as output operand.
12167 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
12168 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
12169 (*la_64, *la_31, reload_indi, reload_insi): ... these.
12171 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12173 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
12174 register names for regular asm () construct.
12176 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12178 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
12181 2002-02-04 Jakub Jelinek <jakub@redhat.com>
12183 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
12186 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
12188 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
12189 constant pool to be identical by string address and index.
12191 2002-02-04 Anthony Green <green@redhat.com>
12193 * output.h (SECTION_OVERRIDE): Define.
12194 * varasm.c (named_section): Obey SECTION_OVERRIDE.
12196 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
12198 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
12199 by existing arm*-*-netbsd* (a.out) target.
12200 (ns32k-*-netbsdelf*): Likewise.
12201 (sparc-*-netbsdelf*): Likewise.
12202 (vax-*-netbsdelf*): Likewise.
12204 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
12206 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
12207 headers and libobjc headers.
12209 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
12211 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
12212 (_mingw.h): Remove duplicate include.
12214 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
12216 * config.gcc: Set cpu_type to m68k for 68010, as well.
12217 (m68010-*-netbsdelf*): New...
12218 (m68k*-*-netbsdelf*): ...targets.
12219 * config/m68k/netbsd-elf.h: New file.
12221 2002-02-02 Kazu Hirata <kazu@hxi.com>
12223 * config/h8300/h8300.c (hand_list): Move inside function_arg.
12225 2002-02-02 Kazu Hirata <kazu@hxi.com>
12227 * config/h8300/h8300.c (h8_push_ops): Move inside
12229 (h8_pop_ops): Likewise.
12230 (h8_move_ops): Likewise.
12232 2002-02-02 Kazu Hirata <kazu@hxi.com>
12234 * config/h8300/h8300.c (os_task): Make it static.
12235 (monitor): Likewise.
12236 (pragma_saveall): Likewise.
12238 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
12240 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
12241 constant is a valid sign-extension for Pmode.
12243 2002-02-02 Kazu Hirata <kazu@hxi.com>
12245 * config/h8300/h8300.c: Fix formatting.
12247 2002-02-02 Kazu Hirata <kazu@hxi.com>
12249 * config/h8300/h8300.md: Fix formatting.
12251 2002-02-02 Kazu Hirata <kazu@hxi.com>
12253 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
12254 predicates of operands[1]. Split the patterns for each
12257 2002-02-02 Kazu Hirata <kazu@hxi.com>
12259 * config/h8300/h8300.md (xor patterns): Tighten the predicates
12260 of operands[1] to register_operand.
12262 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
12264 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
12265 * cpphash.c (_cpp_init_hashtable): Similarly.
12266 * cppinit.c (cpp_create_reader): Default the signed_char flag.
12267 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
12268 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
12269 (cpp_handle_option): Handle the new options.
12270 * cpplex.c (cpp_interpret_charconst): Use new flag.
12271 * cpplib.h (struct cpp_options): New member signed_char.
12272 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
12273 (cpp_options): Handle -fsigned-char and -funsigned-char.
12274 (static_specs): Remove signed_char_spec.
12275 (do_spec1): Don't handle %c.
12276 * system.h: Poison SIGNED_CHAR_SPEC.
12277 * tradcif.y (yylex): Use flag_signed_char.
12278 * tradcpp.h (flag_signed_char): New.
12279 * tradcpp.c (flag_signed_char): New.
12280 (main): Handle new command-line options.
12281 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
12283 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
12284 * avr/avr.h: Remove old comments.
12285 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
12286 (CC1_SPEC): Pass -fsigned-char if -mic*.
12287 (SIGNED_CHAR_SPEC): Remove.
12289 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
12291 2002-02-01 Eric Christopher <echristo@redhat.com>
12293 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
12294 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
12295 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
12296 (ASM_OUTPUT_REG_POP): Ditto.
12298 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
12300 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
12303 2002-02-02 Jakub Jelinek <jakub@redhat.com>
12305 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
12307 2002-02-02 Jakub Jelinek <jakub@redhat.com>
12310 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
12313 2002-02-01 Janis Johnson <janis187@us.ibm.com>
12315 * cfganal.c: Include tm_p.h.
12316 (keep_with_call_p): Fix the test that determines if a register holds
12317 the return value of a call.
12319 2002-02-01 DJ Delorie <dj@redhat.com>
12321 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
12322 we are given conflicting registers, switch to the other one we
12323 had allocated for us.
12324 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
12325 as TImode so we know when the "other" register is available.
12327 2002-02-01 David O'Brien <obrien@FreeBSD.org>
12329 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
12332 2002-02-01 Janis Johnson <janis187@us.ibm.com>
12334 * cfganal.c (keep_with_call_p): New function.
12335 (flow_call_edges_add): Prevent splitting a block between a call and
12336 a single-set instruction that should be kept in the same block.
12338 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
12340 * doc/install.texi (avr): Update outdated URL.
12342 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
12344 * config/stormy16/stormy16.md (pushqi): New.
12348 (movhi): Remove stack operands.
12350 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
12351 nonimmediate_nonstack_operand.
12352 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
12354 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
12357 2002-01-31 Jason Merrill <jason@redhat.com>
12359 * Makefile.in (c-parse.c): Handle .output file.
12360 * objc/Make-lang.in (objc-parse.c): Likewise.
12362 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
12364 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
12365 the -me[lb] option is given. Don't output the default flag
12368 2002-01-31 Zack Weinberg <zack@codesourcery.com>
12370 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
12371 the primary source file; this has not been done yet.
12372 * c-decl.c (c_expand_body): Reset input_filename from
12373 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
12375 2002-01-31 Kazu Hirata <kazu@hxi.com>
12377 * rtlanal.c (subreg_regno_offset): Do not use
12378 SUBREG_REGNO_OFFSET.
12379 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
12380 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
12382 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
12384 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
12385 version rather than GNATS version in --version output.
12387 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
12389 * ifcvt.c (noce_process_if_block): Make a copy of the destination
12390 when copying back from a temporary.
12392 2002-01-30 Richard Henderson <rth@redhat.com>
12394 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
12395 and new_dest are the same.
12397 2002-01-30 Richard Henderson <rth@redhat.com>
12400 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
12401 * rtl.c (note_insn_name): Update.
12402 * emit-rtl.c (remove_unnecessary_notes): Kill it.
12403 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
12404 to perform loop rotation.
12405 (expand_exit_loop_top_cond): New.
12406 * tree.h (expand_exit_loop_top_cond): Declare it.
12407 * c-semantics.c (genrtl_while_stmt): Use it.
12408 (genrtl_for_stmt): Likewise.
12410 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
12412 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
12413 arguments to 64-bit boundaries on 64-bit ABIs.
12415 2002-01-30 Steve Ellcey <sje@cup.hp.com>
12417 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
12419 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
12421 * c-decl.c (grokdeclarator): Handle type being a typedef for an
12424 2002-01-30 David O'Brien <obrien@FreeBSD.org>
12426 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
12427 * config/sparc/sparc_bi.h: Remove file.
12428 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
12430 2002-01-30 Richard Henderson <rth@redhat.com>
12432 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
12434 2002-01-30 Zack Weinberg <zack@codesourcery.com>
12436 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
12438 2002-01-30 Jason Merrill <jason@redhat.com>
12440 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
12441 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
12442 (reg_save): Use DW_CFA_offset_extended_sf instead.
12444 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
12446 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12448 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
12451 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
12453 * rs6000.md ("*call_value_local32"): Remove constraints.
12454 ("*call_value_local64"): Same.
12455 ("*call_value_indirect_nonlocal_aix32"): Same.
12456 ("*call_value_nonlocal_aix32"): Same.
12457 ("*call_value_indirect_nonlocal_aix64"): Same.
12458 ("*call_value_nonlocal_aix64"): Same.
12459 ("*call_value_nonlocal_sysv"): Same.
12461 2002-01-29 Richard Henderson <rth@redhat.com>
12463 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
12465 2002-01-29 Richard Henderson <rth@redhat.com>
12467 * expr.c (force_operand): Ignore flag_pic for detecting pic
12469 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
12470 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
12471 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
12472 instead of open-coded loop.
12473 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
12474 be fixed when in use.
12476 2002-01-29 Richard Henderson <rth@redhat.com>
12478 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
12479 * sched-rgn.c (propagate_deps): Update them.
12480 * sched-deps.c (sched_analyze_insn): Update them. Flush the
12481 clobbers list when either gets too long.
12483 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12485 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
12486 and INDEX_REGS the same as GENERAL_REGS.
12487 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
12489 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12491 * tree.c (build_nonstandard_integer_type): Correct prototype.
12493 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
12495 * config/s390/s390.md (movstrsico, movstrdix_64,
12496 movstrsix_31): Remove, replace by ...
12497 (movstrdi_short, movstrsi_short, movstrdi_long,
12498 movstrsi_long): ... these. New.
12499 (movstrdi, movstrsi): Adapt.
12501 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
12502 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
12503 Remove unnecessary CC clobber.
12504 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
12505 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
12507 (divmoddi4): Don't partially initialize TImode register.
12509 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
12511 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
12513 2002-01-29 Richard Henderson <rth@redhat.com>
12515 * flow.c (print_rtl_and_abort): Remove.
12516 (print_rtl_and_abort_fcn): Remove.
12517 (verify_local_live_at_start): Use dump_bb instead.
12518 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
12519 (verify_wide_reg_1): Return 2 on mode test failure.
12521 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
12523 PR c/3325, c/3326, c/2511, c/3347
12524 * c-decl.c (enum_decl_context): Remove BITFIELD.
12525 (grokdeclarator): Take bitfield width as an input.
12526 Ensure bitfields are given the correct type. Perform
12527 bitfield width validation with build_bitfield_integer_type
12528 rather than waiting for finish_struct.
12529 (grok_typename, grok_typename_in_parm_context, start_decl,
12530 push_parmdecl, grokfield, start_function): Update calls to
12532 (build_bitfield_integer_type): New function.
12533 (finish_struct): Move bitfield validation to grokdeclarator
12534 and build_bitfield_integer_type.
12535 * tree.c (build_nonstandard_integer_type): New function.
12536 * tree.h (build_nonstandard_integer_type): New prototype.
12538 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
12540 2002-01-29 Jakub Jelinek <jakub@redhat.com>
12543 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
12544 don't ignore unrecognized -W* options.
12545 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
12546 * cpplib.h (cpp_handle_option): Adjust prototype.
12547 * c-decl.c (c_decode_options): Pass 0 as last argument to
12551 * gcc.c (cpp_unique_options): Split from cpp_options.
12552 (cpp_options): Source cpp_unique_options.
12553 (default_compilers): Use cpp_unique_options instead of cpp_options
12554 when used together with cc1_options.
12555 (static_specs): Add cpp_unique_options.
12556 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
12557 when used together with cc1_options.
12559 2002-01-29 Kazu Hirata <kazu@hxi.com>
12561 * config/h8300/h8300-protos.h: Update the prototype of
12563 * config/h8300/h8300.c (output_a_shift): Remove an unused
12564 argument 'insn'. Remove redundant code.
12565 * config/h8300/h8300.md: Adust to the new prototype of
12568 2002-01-29 Kazu Hirata <kazu@hxi.com>
12570 * config/h8300/h8300-protos.h: Update the prototypes of
12571 emit_a_rotate and expand_a_rotate.
12572 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
12573 first argument to 'enum rtx_code'.
12574 (expand_a_rotate): Likewise.
12576 2002-01-28 Kazu Hirata <kazu@hxi.com>
12578 * config/h8300/h8300-protos.h: Update the prototype of
12580 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
12582 * config/h8300/h8300.md: Adjust to the new prototype.
12584 2002-01-28 Kazu Hirata <kazu@hxi.com>
12586 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
12589 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12591 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
12592 is a fixed register before returning pic_offset_table_rtx.
12593 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
12594 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
12596 2002-01-28 Jason Merrill <jason@redhat.com>
12598 * dwarf2.h: Sync with src version.
12600 2002-01-28 Paul Koning <pkoning@equallogic.com>
12602 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
12603 BT_FN_VOID_PTR_VAR.
12604 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
12605 * doc/extend.texi (__builtin_prefetch): Update documentation:
12606 first argument is now const void ptr.
12608 2002-01-28 Kazu Hirata <kazu@hxi.com>
12610 * config/h8300/h8300-protos.h: Remove an unused prototype.
12612 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
12614 * toplev.c (lang_independent_init): Round up identifier size.
12616 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
12618 * config.gcc: Revert previous change.
12620 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
12622 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12624 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
12626 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12627 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
12628 other non-elf netbsd config frags.
12629 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12630 collect2 will does that.
12631 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12632 shared-lib frobbing will work.
12634 2002-01-28 Kazu Hirata <kazu@hxi.com>
12636 * config/h8300/h8300.h: Fix formatting.
12637 * config/h8300/h8300.md: Likewise.
12639 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
12641 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12642 the old, removed AAA_standards fix.
12643 * fixinc/fixincl.x: Rebuilt.
12645 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
12647 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12648 atexit call in crtbegin, hooked in after call to frame_dummy;
12649 register EH before registering __fini__start.
12651 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
12653 * config/rs6000/altivec.h: Remove spurious semicolons.
12655 2002-01-27 Kazu Hirata <kazu@hxi.com>
12657 * config/h8300/h8300.md: Replace dead bit extraction patterns
12658 with ones that work.
12660 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12662 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12663 if not STRICT_ALIGNMENT.
12664 * rtl.h (MEM_ALIGN): Likewise.
12666 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
12668 * doc/invoke.texi (-fdump-translation-unit): Revert this
12669 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
12671 2002-01-27 Kazu Hirata <kazu@hxi.com>
12673 * config/h8300/h8300.md (define_constants): New.
12674 (anonymous patterns) Use defined constants appropriately.
12676 2002-01-27 Kazu Hirata <kazu@hxi.com>
12678 * config/h8300/h8300.c (function_arg): Remove redundant code.
12680 2002-01-26 Richard Henderson <rth@redhat.com>
12682 * sched-deps.c (reg_pending_uses_head): New.
12683 (reg_pending_barrier): Rename from reg_pending_sets_all.
12684 (find_insn_list): Don't mark inline.
12685 (find_insn_mem_list): Remove.
12686 (add_dependence_list, add_dependence_list_and_free): New.
12687 (flush_pending_lists): Replace only_write param with separate
12688 for_read and for_write parameters. Update all callers. Use
12689 add_dependence_list_and_free.
12690 (sched_analyze_1): Do not add reg dependencies here; just set
12691 the pending bits. Use add_dependence_list.
12692 (sched_analyze_2): Likewise.
12693 (sched_analyze_insn): Replace schedule_barrier_found with
12694 reg_pending_barrier. Add all dependencies for pending reg
12695 uses, sets, and clobbers.
12696 (sched_analyze): Don't add reg dependencies for calls, just
12697 set pending bits. Use regs_invalidated_by_call. Treat
12698 sched_before_next_call as a normal list, not a fake insn.
12699 (init_deps): No funny init for sched_before_next_call.
12700 (free_deps): Free pending mems lists. Don't zero reg_last.
12701 (init_deps_global): Init reg_pending_uses.
12702 (finish_deps_global): Free it.
12703 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
12704 (find_insn_mem_list): Remove.
12705 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12706 (propagate_deps): Use them. Zero temp mem lists.
12708 2002-01-26 Richard Henderson <rth@redhat.com>
12710 * Makefile.in (CRTSTUFF_CFLAGS): New.
12711 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12712 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12713 crtstuff.c instead of alpha assembly version.
12714 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12715 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
12716 not FORCE_{INIT,FINI}_SECTION_ALIGN.
12717 (__do_global_dtors_aux): Mark used.
12718 (frame_dummy, __do_global_ctors_aux): Mark used.
12719 (fini_dummy, init_dummy): Remove.
12721 * config/alpha/crtbegin.asm: Remove file.
12722 * config/alpha/crtend.asm: Remove file.
12723 * config/alpha/t-crtbe: Remove file.
12724 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12725 (LINK_EH_SPEC): New.
12727 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12728 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
12729 calling constructors.
12730 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12732 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12733 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12734 CRT_END_INIT_DUMMY hack.
12735 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12736 FORCE_{INIT,FINI}_SECTION_ALIGN.
12738 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12739 FORCE_{INIT,FINI}_SECTION_ALIGN.
12741 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12742 invocation sequence.
12743 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12745 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12746 (FORCE_CODE_SECTION_ALIGN): New.
12748 2002-01-26 Richard Henderson <rth@redhat.com>
12750 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12752 2002-01-26 Richard Henderson <rth@redhat.com>
12754 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12755 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12757 2002-01-26 Kazu Hirata <kazu@hxi.com>
12759 * config/h8300/h8300.md: Remove bit extraction patterns that
12760 cannot be triggered.
12761 Restrict each bit extraction pattern to a variant on which the
12764 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
12766 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12768 2002-01-26 Kazu Hirata <kazu@hxi.com>
12770 * config/h8300/h8300.md: Remove bit test patterns that cannot
12772 Restrict each bit test pattern to a variant on which the
12775 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12777 * builtins.c (expand_builtin_strncat): Remove redundant check for
12780 2002-01-25 David O'Brien <obrien@FreeBSD.org>
12782 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12784 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12787 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
12789 * dbxout.c (dbxout_init): Use assemble_name rather than just
12790 stripping off the first character.
12791 (dbxout_source_file): Likewise.
12793 2002-01-25 DJ Delorie <dj@redhat.com>
12795 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12796 using rtx_equal_p, not by comparing pointers.
12798 2002-01-25 Steve Ellcey <sje@cup.hp.com>
12800 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12801 for PIC_OFFSET_TABLE_REGNUM.
12802 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12804 2002-01-25 David O'Brien <obrien@FreeBSD.org>
12806 * config.gcc (x86_64-*-freebsd*): New target.
12807 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12809 (i[34567]86-*-freebsd*): Don't include svr4.h.
12810 * config/i386/freebsd64.h: New file.
12812 2002-01-25 Douglas B Rupp <rupp@gnat.com>
12814 * config/alpha/x-vms (version): Make static.
12816 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12817 in previous checkin.
12819 * Makefile.in (install-headers-cp): New target.
12820 * config.gcc (alpha-dec-*vms*): Install headers with
12823 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
12825 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12828 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12830 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12831 of compare_tree_int.
12832 (expand_builtin_strncat): Likewise.
12833 * c-decl.c (finish_struct): Use tree_low_cst.
12834 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12835 * tree.c (compare_tree_int): Likewise.
12837 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
12839 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12840 adjustments even if they are implemented by more than two insns.
12842 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
12844 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12845 * df.h (struct ref): Kill B.
12846 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12848 * basic-block.h (PROP_EQUAL_NOTES): New flag.
12849 * flow.c (propagate_one_insn): Use it.
12850 (mark_used_regs): Handle NIL.
12852 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
12854 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12857 2002-01-25 David Edelsohn <edelsohn@gnu.org>
12859 * rs6000.md (prefetch): Make address V4SI mode so that the address
12860 is restricted to legitimate form for instruction.
12862 2002-01-25 Bob Wilson <bob.wilson@acm.org>
12864 * doc/install.texi (xtensa-*-elf): New target.
12865 (xtensa-*-linux*): New target.
12866 * doc/contrib.texi: Add myself.
12868 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
12870 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12871 purpose register to hold an SImode (or smaller) value.
12873 2002-01-25 Jakub Jelinek <jakub@redhat.com>
12875 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12877 * crtstuff.c: Likewise.
12879 2002-01-25 Kazu Hirata <kazu@hxi.com>
12881 * config/h8300/h8300.md (negation patterns): Tighten
12882 predicates to register_operand.
12884 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
12886 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12889 * builtins.c (expand_builtin_prefetch): Same.
12891 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12893 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12896 2002-01-24 Kazu Hirata <kazu@hxi.com>
12898 * config/h8300/h8300.c (print_operand): Remove support for
12899 operand character 'A'.
12900 * config/h8300/h8300.md (three anonymous patterns): Replace
12901 operand character 'A' with either 'T' or 'S'.
12903 2002-01-24 Kazu Hirata <kazu@hxi.com>
12905 * config/h8300/h8300.c (print_operand): Remove support for
12906 operand character 'U'.
12908 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
12910 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12912 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
12914 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12915 values to be assigned to the stack pointer.
12917 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12919 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12920 to const_double needs to be done right for big-endian systems.
12922 2002-01-24 Jason Merrill <jason@redhat.com>
12925 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12926 to can_throw_internal.
12928 2002-01-23 Richard Henderson <rth@redhat.com>
12930 * fold-const.c (fold): Change UINT_MAX test to check vs precision
12931 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
12933 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12935 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12936 (symGOT2reg): Use them, then set as GOT value as unchanging.
12937 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
12938 as a temporary, if possible.
12939 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
12940 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12942 2002-01-23 Kazu Hirata <kazu@hxi.com>
12944 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12945 accept to accept 0x80 as operands[2].
12947 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12949 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12951 2002-01-23 Richard Henderson <rth@redhat.com>
12953 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12955 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
12957 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12958 (parmlist_or_identifiers_1): Verify that only a parmlist follows
12961 2002-01-23 Richard Henderson <rth@redhat.com>
12963 * expr.c (move_by_pieces_1): Extend size before negation.
12965 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12966 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12967 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12968 * config/m68k/t-m68kelf: Likewise.
12970 2002-01-23 Bob Wilson <bob.wilson@acm.org>
12972 * config/xtensa/elf.h: New file.
12973 * config/xtensa/lib1funcs.asm: New file.
12974 * config/xtensa/lib2funcs.S: New file.
12975 * config/xtensa/linux.h: New file.
12976 * config/xtensa/t-xtensa: New file.
12977 * config/xtensa/xtensa-config.h: New file.
12978 * config/xtensa/xtensa-protos.h: New file.
12979 * config/xtensa/xtensa.c: New file.
12980 * config/xtensa/xtensa.h: New file.
12981 * config/xtensa/xtensa.md: New file.
12982 * config.gcc (xtensa-*-elf*): New target.
12983 (xtensa-*-linux*): New target.
12984 * cse.c (canon_hash): Compare rtx pointers instead of register
12985 numbers. This is required for the Xtensa port.
12986 * integrate.c (copy_insn_list): Handle case where the static
12987 chain is in memory and the memory address has to be copied to
12989 * doc/invoke.texi (Option Summary): Add Xtensa options.
12990 (Xtensa Options): New node.
12991 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12993 2002-01-23 Zack Weinberg <zack@codesourcery.com>
12995 * diagnostic.c (internal_error): Do ICE suppression only
12996 when ENABLE_CHECKING is not defined.
12998 * c-typeck.c (require_complete_type): Return error_mark_node
12999 if type is error_mark_node.
13001 2002-01-23 Janis Johnson <janis187@us.ibm.com>
13003 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
13004 -Os and issue a warning.
13006 2002-01-23 Zack Weinberg <zack@codesourcery.com>
13008 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
13009 current (lack of) need for host configuration by hand.
13011 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
13012 references. Documentation of some target macros moved from
13013 hostconfig.texi to tm.texi.
13015 2002-01-23 Will Cohen <wcohen@redhat.com>
13017 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
13020 2002-01-23 Kazu Hirata <kazu@hxi.com>
13022 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
13025 2002-01-23 Jason Merrill <jason@redhat.com>
13027 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
13029 * function.c (assign_parms): Don't put args of inline functions
13030 into registers when not optimizing.
13032 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
13034 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
13035 (prologue_use): New pattern.
13036 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
13037 preference to gen_rtx_USE.
13038 (thumb_expand_prologue): Use gen_prologue_use in preference to
13040 (thumb_expand_epilogue): Use gen_prologue_use in preference to
13043 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
13045 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
13047 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
13050 * doc/extend.texi: Correct documentation of __alignof__.
13052 2002-01-22 Zack Weinberg <zack@codesourcery.com>
13054 * params.h: Rename arguments of DEFPARAM so that it will be
13055 recognized as a translation keyword.
13057 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13059 * extend.texi: Document altivec functions.
13060 Fix N-bit adjectives in X86 builtin documentation.
13062 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
13064 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
13065 auto_inc_dec values.
13067 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
13069 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
13071 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
13073 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
13075 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
13077 2002-01-22 Richard Henderson <rth@redhat.com>
13079 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
13080 copy_insn not copy_rtx.
13082 2002-01-23 Alan Modra <amodra@bigpond.net.au>
13084 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
13085 "nonzero" as that might add "1" bits. Ensure "constop" is
13086 properly sign extened.
13087 (force_to_mode): Tweak for sign extended constop.
13089 2002-01-22 Richard Henderson <rth@redhat.com>
13091 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
13092 for_each_rtx instead of assuming we're already looking at the MEM.
13093 (split_small_symbolic_mem_operand): Likewise.
13094 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13095 * config/alpha/alpha.md (small symbolic memory splitters): Update.
13097 2002-01-22 Richard Henderson <rth@redhat.com>
13099 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
13100 sequence number for the literal.
13101 (divmoddi_internal_er): Likewise.
13103 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13106 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
13107 in LIBICONV variable.
13108 * configure: Regenerated.
13110 2002-01-22 Krister Walfridsson <cato@df.lth.se>
13112 * dependence.c (build_def_use): Remove array_idx.
13114 * dwarfout.c (last_filename): Remove.
13115 (output_compile_unit_die): Remove last_filename.
13117 2002-01-22 Roger Sayle <roger@eyesopen.com>
13118 Richard Henderson <rth@redhat.com>
13121 * fold-const.c (fold): Optimize unsigned comparisons against
13122 UINT_MAX (and similar unsigned constants).
13124 2002-01-22 Janis Johnson <janis187@us.ibm.com>
13126 * Makefile.in (loop.o): Depend on OPTABS_H.
13127 * loop.c (emit_prefetch_instructions): Check the prefetch operand
13128 against the predicate.
13131 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
13132 for the address operand.
13134 2002-01-22 Richard Henderson <rth@redhat.com>
13136 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
13138 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
13141 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
13142 preprocessor flags.
13144 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
13146 * config.gcc (x86_64-*-netbsd*): New target.
13147 * config/i386/netbsd64.h: New file.
13149 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13151 * regrename.c (kill_value): Fix typo.
13153 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
13155 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
13157 * config/rs6000/rs6000.h: Same.
13159 * function.c (instantiate_virtual_regs): Remove
13160 STARTING_FRAME_PHASE.
13161 (assign_stack_local_1): Same.
13162 Calculate frame phase.
13164 2002-01-22 Nick Clifton <nickc@redhat.com>
13166 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
13167 variable declaration to outer scope in order to simplify
13169 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
13170 arm_hard_regno_mode_ok.
13171 * config/arm/arm-protos.h: Add a prototype for
13172 arm_hard_regno_mode_ok.
13173 * config/arm/arm.c (soft_df_operand): Remove now redundant
13174 check for DImode values using IP_REGNUM.
13175 (nonimmediate_soft_df_operand): Remove now redundant check for
13176 DImode values using IP_REGNUM.
13177 (arm_hard_regno_mode_ok): New function. New check: make sure
13178 that DImode values are not stored in IP_REGNUM.
13180 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
13182 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
13184 2002-01-22 Jason Merrill <jason@redhat.com>
13186 * c-semantics.c (genrtl_compound_stmt): Only check nesting
13187 consistency if this COMPOUND_STMT is scoped.
13189 2002-01-22 Kazu Hirata <kazu@hxi.com>
13191 * predict.c: Fix formatting.
13192 * print-tree.c: Likewise.
13193 * protoize.c: Likewise.
13194 * real.h: Likewise.
13196 * sbitmap.h: Likewise.
13197 * scan.c: Likewise.
13198 * sched-deps.c: Likewise.
13199 * sched-vis.c: Likewise.
13200 * sdbout.c: Likewise.
13201 * sibcall.c: Likewise.
13203 * ssa-ccp.c: Likewise.
13204 * ssa-dce.c: Likewise.
13205 * stmt.c: Likewise.
13206 * stor-layout.c: Likewise.
13207 * system.h: Likewise.
13209 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13211 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
13212 if fits in bounds of base type.
13214 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
13215 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
13216 (add_bound_info, default): If can't find a context, make a
13218 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
13220 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
13222 * c-typeck.c (parser_build_binary_op): If result from
13223 build_binary_op is ERROR_MARK just return error_mark_node without
13224 further processing.
13226 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
13228 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
13229 Split a.out-specific bits into...
13230 * config/netbsd-aout.h: ...this.
13231 * config/netbsd-elf.h: New file.
13232 * config/alpha/netbsd-elf.h: Remove.
13233 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
13234 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
13235 (STARTFILE_SPEC): Remove redundant definition.
13236 (ENDFILE_SPEC): Likewise.
13237 (LINK_SPEC): Likewise.
13238 (CPP_SPEC): Likewise.
13239 (ASM_SPEC): Likewise.
13240 (LIB_SPEC): Likewise.
13241 (SWITCH_TAKES_ARG): Likewise.
13242 (TARGET_MEM_FUNCTIONS): Likewise.
13243 (CPP_PREDEFINES): Redefine.
13244 (ASM_FINAL_SPEC): Remove redefinition.
13245 (ASM_COMMENT_START): Redefine.
13246 (FUNCTION_PROFILER): Define.
13247 (TARGET_VERSION): Redefine.
13248 Comment and formatting cleanup.
13249 * config/i386/netbsd.h: Include <netbsd-aout.h>.
13250 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
13251 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
13252 big- or little-endian.
13253 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
13254 * config.gcc (*-*-netbsd*): Add definitions common to all
13256 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
13257 gnu_ld definitions. Add netbsd-elf.h to and remove
13258 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
13259 tmake_file, and don't lose previous tmake_file contents.
13260 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
13261 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
13262 gnu_ld definitions. Add netbsd-elf.h to tm_file.
13263 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
13264 (mipsel-*-netbsd*): Rename this to...
13265 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
13266 mips/little.h to tm_file for mips*el-*.
13267 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
13268 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
13269 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
13271 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
13273 * pa-protos.h (reg_before_reload_operand): New function prototype.
13274 * pa.c (reg_before_reload_operand): New function implementation.
13275 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
13276 contraints to "*m".
13278 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13280 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
13282 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
13284 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
13285 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
13286 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
13287 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
13288 (ENDFILE_SPEC): Undefine.
13289 (STARTFILE_SPEC): Redefine for PA.
13291 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13293 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
13295 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
13297 * config.gcc: Add entries to supported PowerPC --with-cpu
13300 2002-01-21 Jakub Jelinek <jakub@redhat.com>
13302 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
13303 true for 64-bit mode only SSE registers in 32-bit mode.
13305 2002-01-21 Kazu Hirata <kazu@hxi.com>
13307 * unwind-dw2.c: Fix formatting.
13308 * unwind-dw2-fde.c: Likewise.
13309 * unwind-dw2-fde.h: Likewise.
13310 * unwind-pe.h: Likewise.
13311 * varasm.c: Likewise.
13312 * varray.h: Likewise.
13314 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
13316 Remove workaround for register stack overwrite bug in mmix.
13317 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
13318 support for TARGET_REG_STACK_FILL_BUG.
13319 * config/mmix/mmix.h: Remove member has_call_without_parameters.
13320 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
13322 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
13323 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
13324 -mno-reg-stack-fill-bug-workaround.
13325 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
13326 machine member has_call_without_parameters.
13327 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
13328 -mreg-stack-fill-bug-workaround and
13329 -mno-reg-stack-fill-bug-workaround.
13330 (MMIX Options): Ditto.
13332 2002-01-21 Kazu Hirata <kazu@hxi.com>
13334 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
13336 Remove redundant code.
13338 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
13340 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
13341 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13342 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13343 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
13344 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
13345 out target macro definitions and non-target-specific comments
13346 mostly taken from old versions of the manual.
13348 2002-01-20 Kazu Hirata <kazu@hxi.com>
13350 * config/h8300/h8300.h: Fix comment formatting.
13351 * config/ia64/aix.h: Likewise.
13352 * config/ia64/ia64-protos.h: Likewise.
13353 * config/ia64/ia64.c: Likewise.
13354 * config/ia64/ia64.h: Likewise.
13355 * config/ia64/ia64intrin.h: Likewise.
13356 * config/ia64/linux.h: Likewise.
13357 * config/ia64/unwind-aix.c: Likewise.
13358 * config/ia64/unwind-ia64.c: Likewise.
13360 2002-01-20 Kazu Hirata <kazu@hxi.com>
13362 * config/h8300/h8300.c: Revise comments about shift code.
13364 2002-01-20 Kazu Hirata <kazu@hxi.com>
13366 * config/h8300/h8300.c (function_arg): Update a comment.
13368 2002-01-20 Kazu Hirata <kazu@hxi.com>
13370 * config/h8300/h8300.md: Update the comments at the beginning
13373 2002-01-20 Kazu Hirata <kazu@hxi.com>
13375 * config/i370/i370.c: Fix comment formatting.
13376 * config/i370/i370.h: Likewise.
13377 * config/i370/i370.md: Likewise.
13378 * config/i370/linux.h: Likewise.
13380 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13382 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
13384 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
13385 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
13386 in incomplete case.
13388 2002-01-20 Graham Stott <grahams@redhat.com>
13390 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
13392 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
13394 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
13396 2002-01-19 Tom Rix <trix@redhat.com>
13398 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
13400 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
13402 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
13404 * function.c (assign_stack_local_1): Adjust x_frame_offset with
13405 STARTING_FRAME_PHASE.
13406 (STARTING_FRAME_PHASE): New.
13407 (instantiate_virtual_regs): Check saneness of
13408 STARTING_FRAME_PHASE.
13410 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
13412 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
13414 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
13416 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
13418 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
13419 be used for bootstrapping GCC 3.0.
13421 2002-01-18 Kazu Hirata <kazu@hxi.com>
13423 * config/h8300/h8300.md: Fix an insn length.
13425 2002-01-18 Kazu Hirata <kazu@hxi.com>
13427 * bitmap.h: Fix comment formatting.
13428 * combine.c: Likewise.
13429 * cppfiles.c: Likewise.
13430 * c-pragma.h: Likewise.
13431 * c-typeck.c: Likewise.
13433 * dwarf2out.c: Likewise.
13434 * function.c: Likewise.
13436 * genattrtab.c: Likewise.
13437 * gthr-win32.h: Likewise.
13438 * haifa-sched.c: Likewise.
13439 * predict.c: Likewise.
13440 * rtlanal.c: Likewise.
13442 * unwind-dw2-fde.h: Likewise.
13443 * unwind-pe.h: Likewise.
13444 * vmsdbgout.c: Likewise.
13446 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13448 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
13449 if type_required and passed decl.
13451 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
13453 * config.gcc (cpu_type): Include altivec.h in powerpc
13457 * config/rs6000/altivec.h: New.
13459 2002-01-17 David Edelsohn <edelsohn@gnu.org>
13461 * doc/install.texi (*-ibm-aix*): Update assembler and exception
13462 handling information.
13463 * doc/trouble.texi (Interoperation): Add libstdc++ information
13465 (Misunderstandings): Add template instantiation and static template
13466 member information for AIX.
13468 2002-01-17 Jason Merrill <jason@redhat.com>
13470 * dbxout.c (dbxout_type): Support const and volatile.
13472 * except.c (add_partial_entry): Remove backwards compatibility code.
13473 (end_protect_partials): Likewise.
13475 2002-01-17 Jakub Jelinek <jakub@redhat.com>
13477 * config/ia64/ia64.md (prologue_use): New.
13478 * config/ia64/ia64.c (ia64_expand_prologue): Use
13479 gen_prologue_use instead of gen_rtx_USE.
13480 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
13481 as CODE_FOR_pred_rel_mutex.
13482 (ia64_sched_reorder2): Likewise.
13484 2002-01-16 Eric Christopher <echristo@redhat.com>
13486 * config/mips/r3900.h: Reformat.
13487 (SUBTARGET_CPP_SIZE_SPEC): Remove.
13488 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
13489 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
13490 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
13491 * config/mips/t-elf: Remove mips3 multilib.
13493 2002-01-16 H.J. Lu <hjl@gnu.org>
13495 * config/mips/linux.h: Include "mips/abi64.h".
13497 2002-01-16 H.J. Lu <hjl@gnu.org>
13499 * config/mips/t-linux: New.
13501 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
13503 * config/mips/linux.h: Don't include "gofast.h".
13504 (INIT_SUBTARGET_OPTABS): Removed.
13506 2002-01-16 Kazu Hirata <kazu@hxi.com>
13508 * config/h8300/h8300-protos.h: Replace emit_a_shift with
13510 * config/h8300/h8300.c: Likewise.
13511 * config/h8300/h8300.md: Likewise.
13513 2002-01-16 Kazu Hirata <kazu@hxi.com>
13515 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
13516 spaces after an opcode name.
13517 (pushqi1_h8300hs): Likewise.
13518 (pushhi1_h8300hs): Likewise.
13520 2002-01-16 Kazu Hirata <kazu@hxi.com>
13522 * doc/extend.texi: Replace "option" with "attribute"
13525 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13527 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
13528 (and:DI () (const_int -8)).
13529 (split_small_symbolic_mem_operand): Split
13530 (mem (and:DI () (const_int -8)).
13532 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13535 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
13536 same way as TYPE_IMUL.
13537 (ultrasparc_sched_reorder): Likewise.
13538 * config/sparc/sparc.md (type): Add comment to update
13539 ultrasparc_sched_reorder when making changes.
13541 2002-01-16 Kazu Hirata <kazu@hxi.com>
13543 * doc/invoke.texi: Change the dump file name of block
13544 reordering pass from 28.bbro to 29.bbro.
13545 Mention -dk option.
13547 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
13549 * i386.md (minsf splitter): Fix pasto.
13551 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13553 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
13554 to frame pointer initialisation instruction.
13555 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
13556 initialisation instruction.
13557 (soft_df_operand): Do not accept the IP register.
13558 (nonimmediate_soft_df_operand): Do not accept the IP register.
13560 2002-01-16 Jakub Jelinek <jakub@redhat.com>
13563 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
13564 MASK_V8 being both set.
13566 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
13568 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
13569 insn for GOT register; add REG_MAYBE_DEAD notes instead.
13570 config/s390/s390.md (call, call_value): Add GOT register to
13571 CALL_INSN_FUNCTION_USAGE where needed.
13572 (call_exp, call_value_exp): New.
13574 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
13576 * config/arm/arm.c: General formatting tidy up.
13578 2002-01-16 Graham Stott <grahams@redhat.com>
13580 * calls.c (try_to_integrate): Use "(size_t)" intermediate
13581 cast and when casting an integer literal to "rtx" pointer.
13582 (expand_call): Likewise.
13583 * flow.c (try_pre_increment): Likewise.
13584 (find_use_as_address): Likewise.
13585 * integrate.c (expand_iline_function): Likewise.
13586 * regmove.c (try_auto_increment): Likewise.
13588 2002-01-16 Graham Stott <grahams@redhat.com>
13590 * sched-rgn.c (passed): Use sbitmap_free.
13591 (header): Likewise.
13593 (in_queue): Likewise.
13594 (in_stack): Likewise.
13596 2002-01-15 Eric Christopher <echristo@redhat.com>
13598 * flow.c (propagate_one_insn): Change to use fatal_insn.
13600 2002-01-15 Kazu Hirata <kazu@hxi.com>
13602 * expmed.c (extract_fixed_bit_field): Remove unused code.
13603 * system.h: Poison SLOW_ZERO_EXTEND.
13604 * doc/tm.texi: Remove.
13605 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
13606 * config/arm/arm.h: Likewise.
13607 * config/avr/avr.h: Likewise.
13608 * config/clipper/clipper.h: Likewise.
13609 * config/convex/convex.h: Likewise.
13610 * config/d30v/d30v.h: Likewise.
13611 * config/dsp16xx/dsp16xx.h: Likewise.
13612 * config/elxsi/elxsi.h: Likewise.
13613 * config/fr30/fr30.h: Likewise.
13614 * config/h8300/h8300.h: Likewise.
13615 * config/i370/i370.h: Likewise.
13616 * config/i386/i386.h: Likewise.
13617 * config/m68k/m68k.h: Likewise.
13618 * config/mips/mips.h: Likewise.
13619 * config/ns32k/ns32k.h: Likewise.
13620 * config/pdp11/pdp11.h: Likewise.
13621 * config/pj/pj.h: Likewise.
13622 * config/s390/s390.h: Likewise.
13623 * config/sh/sh.h: Likewise.
13624 * config/stormy16/stormy16.h: Likewise.
13625 * config/v850/v850.h: Likewise.
13626 * config/vax/vax.h: Likewise.
13627 * config/we32k/we32k.h: Likewise.
13629 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
13631 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13632 (altivec_lvsl): Change constraint to b.
13633 (altivec_lvsr): Same.
13634 (altivec_lvebx): Same.
13635 (altivec_lvehx): Same.
13636 (altivec_lvewx): Same.
13637 (altivec_lvxl): Same.
13638 (altivec_lvx): Same.
13639 (altivec_stvx): Add parallel.
13640 (altivec_stvxl): Same.
13641 (altivec_stvehx): Same.
13642 (altivec_stvebx): Same.
13643 (altivec_stvebx): Same.
13645 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
13647 * config.gcc: Change altivec.h to altivec-defs.h.
13649 * config/rs6000/altivec.h: Delete.
13651 * config/rs6000/altivec-defs.h: Add.
13653 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
13655 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13658 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13659 less than or equal to eight bytes.
13661 * vax.md (andsi3): Remove constraints and change SET destination
13662 operand type to nonimmediate_operand.
13663 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
13664 when it is a CONST_INT.
13666 2002-01-15 Jason Merrill <jason@redhat.com>
13668 * c-common.def (FILE_STMT): New code.
13669 * c-common.c (statement_code_p): It's a statement.
13670 * c-common.h (stmt_tree_s): Add x_last_filename.
13671 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13672 (last_expr_filename): New macro.
13673 * c-semantics.c (begin_stmt_tree): Initialize it.
13674 (add_stmt): If the filename changed, also insert a
13676 (expand_stmt): Handle seeing one.
13678 2002-01-15 Eric Christopher <echristo@redhat.com>
13680 * flow.c (propagate_one_insn): Add error message and print out
13681 insn for debugging.
13683 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13685 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13686 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13687 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13688 TRAMPOLINE_ALIGNMENT.
13689 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
13691 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13692 PCC_BITFIELD_TYPE_MATTERS.
13693 * config/interix.h (STDC_VALUE): Remove. Use
13694 STDC_0_IN_SYSTEM_HEADERS.
13695 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13696 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13697 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13699 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
13701 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13702 not work on this platform currently.
13704 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
13706 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13707 readonly_warning in _().
13709 2002-01-15 Douglas B Rupp <rupp@gnat.com>
13711 * gcc.c (delete_if_ordinary): Backout previous change.
13713 2002-01-15 Kazu Hirata <kazu@hxi.com>
13715 * config/h8300/h8300.c (print_operand): Remove support for
13716 unused operand characters.
13718 * read-rtl.c: Fix formatting.
13719 * real.c: Likewise.
13720 * recog.c: Likewise.
13721 * regclass.c: Likewise.
13722 * regmove.c: Likewise.
13723 * reg-stack.c: Likewise.
13724 * reload1.c: Likewise.
13725 * rtlanal.c: Likewise.
13727 2002-01-15 Kazu Hirata <kazu@hxi.com>
13729 * config/i386/i386.c: Fix formatting.
13731 2002-01-15 Jakub Jelinek <jakub@redhat.com>
13733 * c-typeck.c (process_init_element): Don't save_expr
13734 COMPOUND_LITERAL_EXPR if just its initializer will be used.
13736 2002-01-15 David Edelsohn <edelsohn@gnu.org>
13738 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13739 emit optional traceback table if optimize_size or TARGET_ELF.
13740 * config/rs6000/rs6000.md (prefetch): New.
13742 2002-01-15 Andreas Jaeger <aj@suse.de>
13744 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13746 2002-01-15 Kazu Hirata <kazu@hxi.com>
13748 * mips-tfile.c: Fix formatting.
13750 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
13752 * unroll.c (final_reg_note_copy): Fix previous commit.
13754 2002-01-14 Kazu Hirata <kazu@hxi.com>
13756 * config/h8300/h8300-protos.h: Remove the prototype for
13758 * config/h8300/h8300.c (eq_operator): Remove.
13760 2002-01-14 Richard Henderson <rth@redhat.com>
13762 * config/i386/i386.md (prefetch): Tidy.
13763 (prefetch_3dnow): Fix locality operand.
13765 2002-01-14 Richard Henderson <rth@redhat.com>
13767 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13768 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13770 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
13772 * reload1.c (reload_combine): Pass reg_sum replacement through
13773 copy_rtx in loop performing multiple changes.
13775 2002-01-14 Jakub Jelinek <jakub@redhat.com>
13777 * except.c (remove_unreachable_regions): New.
13778 (free_eh_status): Clear exception_handler_labels.
13779 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13780 (find_exception_handler_labels): Don't add the same label more than
13782 (remove_exception_handler_label): Don't die if
13783 find_exception_handler_labels hasn't been called for the current
13786 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
13788 * toplev.c (rest_of_compilation): Rebuild jump labels after
13791 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
13793 * doc/extend.texi: Move documentation of X86 built-in functions
13795 * doc/invoke.texi: From here.
13796 * doc/sourcebuild.texi: Document location of documentation for
13797 machine built-in functions.
13799 2002-01-13 Christopher Faylor <cgf@redhat.com>
13801 * cppfiles.c (TEST_THRESHOLD): New macro.
13802 (SHOULD_MMAP): Ditto.
13803 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13806 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
13808 * unroll.c (final_reg_note_copy): Properly handle
13810 (unroll_loops): Fix LOOP_CONDITION heuristics.
13812 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
13814 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13815 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13817 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
13819 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13822 2002-01-14 Tom Rix <trix@redhat.com>
13824 * config/rs6000/rs6000.md: Fix typo with sradi.
13826 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
13828 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13829 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13830 (clrstrdi, clrstrsi): Adapt callers.
13832 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13834 (movti splitter): Never use register 0 as base register.
13836 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
13838 * combine.c (simplify_shift_const): Always generate new rtx
13839 for shift expression instead of reusing given expression.
13841 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13843 * config/alpha/alpha.c (alpha_expand_mov): Don't call
13844 alpha_legitimize_address unless mode is Pmode.
13846 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
13848 * doc/md.texi (Modifiers): Document the '*' constraint for the
13851 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13852 * doc/extend.texi (Function Attributes): 'interrupt' is valid
13855 2002-01-13 Richard Henderson <rth@redhat.com>
13857 * reload.c (find_reloads): Use a hard reg destination as reload reg
13858 for an input reload of the source.
13860 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13862 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13865 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
13867 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13868 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13870 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13872 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13874 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13876 2002-01-12 Tom Rix <trix@redhat.com>
13878 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13881 2002-01-12 Richard Henderson <rth@redhat.com>
13883 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13885 * doc/invoke.texi: Update Alpha options.
13887 * doc/invoke.texi: Update i386 built-in function lists.
13889 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
13891 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13892 referencing outside.
13894 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13896 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13897 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13898 offsets, and change line folding.
13899 * optabs.c (expand_binop): Remove warnings.
13900 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13902 2002-01-12 Graham Stott <grahams@redhat.com>
13904 * attribs.c (handle_deprecated_attribute): constify WHAT.
13905 * diagnostic.c (warn_deprecated_use): Add braces, fixes
13906 dangling else warning and constify WHAT.
13907 * except.h (struct function, struct inline_remap): Move
13908 struct tag forward defs before all prototypes.
13909 (duplicate_eh_regions): Whitespace.
13911 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
13913 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13914 MODE_BASE_REG_CLASS.
13915 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13917 2002-01-12 Richard Henderson <rth@redhat.com>
13919 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13920 (ix86_expand_vector_move): New.
13921 (bdesc_2arg): Remove andps, andnps, orps, xorps.
13922 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
13923 Remove old prefetch builtins. Special case the logicals removed above.
13924 (ix86_expand_builtin): Likewise.
13925 (safe_vector_operand): Use V4SFmode, not TImode.
13926 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
13927 (ix86_expand_timode_binop_builtin): New.
13928 * config/i386/i386-protos.h: Update.
13929 * config/i386/i386.h (enum ix86_builtins): Update.
13930 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13931 Use ix86_expand_vector_move in vector move expanders.
13932 (movti_internal, movti_rex64): Add xorps alternative.
13933 (sse_clrv4sf): Rename and adjust from sse_clrti.
13934 (prefetch): Don't work so hard.
13935 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13936 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13937 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13939 2002-01-11 Richard Henderson <rth@redhat.com>
13941 * config/i386/mmintrin.h: New file.
13942 * config/i386/xmmintrin.h: New file.
13943 * config.gcc (i?86-*-*): Add extra_headers.
13944 * simplify-rtx.c (simplify_unary_operation): Handle saturating
13946 (simplify_binary_operation): Handle saturating arithmetic codes.
13947 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13948 not the lowpart subreg.
13949 (ix86_expand_builtin): Return a TImode dummy register instead of 0
13951 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13953 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13955 * conflict.c (conflict_graph_compute): Free regsets when finished.
13956 * ssa.c (compute_coalesced_reg_partition): Likewise.
13958 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13960 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13961 every where we allocate a register.
13963 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13965 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13966 * lcm.c (compute_earliest, compute_farthest): Likewise.
13968 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13970 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13972 2002-01-11 Janis Johnson <janis187@us.ibm.com>
13974 * doc/rtl.texi (Insns): Fix 2 typos.
13976 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
13978 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
13979 options. Use @table @gcctabopt for MMIX options. Add index
13980 entries for MMIX options. Start new paragraph with first
13981 heading of the machine-dependent options.
13983 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
13986 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13987 * combine.c (force_to_mode): Same.
13988 * reload1.c (clear_reload_reg_in_use): Same.
13990 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
13992 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13995 2002-01-11 Andreas Jaeger <aj@suse.de>,
13996 Brad Lucier <lucier@math.purdue.edu>
13998 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
14001 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
14003 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
14004 Protect with IN_LIBGCC.
14005 (LINK_EH_SPEC): Add required trailing space.
14007 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
14009 * c-tree.h: Move function declarations so that they are listed
14010 under the filename which contains them.
14011 (check_identifier, finish_decl_top_level,
14012 lookup_name_current_level_global, shadow_record_fields): Remove.
14014 2002-01-11 Andreas Jaeger <aj@suse.de>
14016 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
14019 2002-01-10 Richard Henderson <rth@redhat.com>
14021 * config/alpha/alpha.c (print_operand): Add 'J'.
14022 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
14023 new operand with the sequence number for the lituse. When splitting
14024 the insns, use gen_movdi_er_high_g and generate a sequence number.
14025 (gen_movdi_er_high_g): Print the sequence number if non-zero.
14027 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
14029 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
14030 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
14032 (altivec_expand_builtin): Same.
14033 (altivec_expand_stv_builtin): New.
14035 * config/rs6000/rs6000.h (rs6000_builtins): Same.
14037 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
14038 ("altivec_lvehx"): New.
14039 ("altivec_lvewx"): New.
14040 ("altivec_lvxl"): New.
14041 ("altivec_lvx"): New.
14042 ("altivec_stvx"): New.
14043 ("altivec_stvebx"): New.
14044 ("altivec_stvehx"): New.
14045 ("altivec_stvewx"): New.
14046 ("altivec_stvxl"): New.
14048 2002-01-10 Richard Henderson <rth@redhat.com>
14050 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
14051 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
14052 care not to delete instructions twice.
14054 2002-01-10 Zack Weinberg <zack@codesourcery.com>
14056 * toplev.c: Don't declare environ (it's not used anywhere).
14057 * configure.in: Don't check for declaration of environ.
14058 * config/i386/xm-mingw32.h: Don't #define environ.
14059 * config.in, configure: Regenerate.
14061 2002-01-10 Zack Weinberg <zack@codesourcery.com>
14063 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
14064 * configure: Regenerate.
14066 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
14067 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
14068 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
14070 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
14071 LIMITS_H_TEST here, not in m68k/x-next.
14072 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
14073 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
14075 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
14076 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
14077 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
14079 * config/i386/x-djgpp: Renamed i386/t-djgpp.
14080 * config/m88k/x-dolph: Renamed m88k/t-dolph.
14081 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
14082 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
14083 replacement of quadlib.asm with quadlib.c.
14085 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
14086 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
14087 config/rs6000/xm-beos.h: Delete file.
14089 * config.gcc: Update to match above changes.
14091 2002-01-10 Kazu Hirata <kazu@hxi.com>
14093 * config/h8300/h8300.h: Fix comment typos.
14094 * config/h8300/h8300.md: Likewise.
14095 * config/h8300/lib1funcs.asm: Likewise.
14097 2002-01-10 Dale Johannesen <dalej@apple.com>
14099 PR optimization/5269
14100 * unroll.c (precondition_loop_p): Make *increment be the correct
14101 sign when n_iterations known, to avoid confusing caller.
14103 2002-01-10 Kazu Hirata <kazu@hxi.com>
14105 * doc/extend.texi (deprecated): Fix a typo.
14107 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
14109 * basic-block.h (update_br_prob_note): Declare.
14110 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
14111 (try_forward_edges): Care negative frequencies and update note.
14112 (outgoing_edges_match): Tweek conditional merging heuristics.
14113 (try_crossjump_to_edge): use update_br_prob_note.
14114 * cfglayout.c (fixup_reorder_chain): Likewise.
14115 * cfrtl.c (update_br_prob_note): New.
14116 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
14118 * i386.c (ix86_decompose_address): Return -1 if address contains
14120 (legitimate_address_p): Require ix86_decompose_address to return 1.
14122 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
14123 (cprop_insn): Likewise.
14125 2002-01-10 Kazu Hirata <kazu@hxi.com>
14127 * toplev.c: Fix formatting.
14128 * tree.c: Likewise.
14129 * tree-dump.c: Likewise.
14130 * unroll.c: Likewise.
14131 * unwind-dw2.c: Likewise.
14132 * unwind-dw2-fde.c: Likewise.
14133 * unwind-dw2-fde-glibc.c: Likewise.
14134 * unwind-sjlj.c: Likewise.
14136 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14138 * doc/invoke.texi: Document PDP-11 options.
14140 2002-01-10 Kazu Hirata <kazu@hxi.com>
14142 * config/h8300/h8300.h: Fix formatting.
14144 2002-01-10 Ira Ruben <ira@apple.com>
14146 Add __attribute__ ((deprecated)).
14147 * extend.texi: Document __attribute__ ((deprecated)).
14148 * invoke.texi: Document -Wno-deprecated-declarations.
14149 * testsuite/g++.dg/other/deprecated.C: New C++ test.
14150 * testsuite/gcc.dg/deprecated.c: New C test.
14151 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
14152 (c_common_attribute_table): Add "deprecated" entry.
14153 (handle_deprecated_attribute): New function.
14154 * c-decl.c (deprecated_states): New enum.
14155 deprecated_state: State of "deprecated" handling.
14156 (start_decl): Set deprecated_state based on attributes.
14157 (grokdeclarator): Test for deprecated uses, propagate attribute.
14158 * c-typeck.c (build_component_ref): Test for deprecated fields.
14159 (build_external_ref): Test for deprecated primaries.
14160 * diagnostic.c (warn_deprecated_use) New function to issue
14161 warnings about __attribute__ ((depricated)) references.
14162 * flags.h (warn_deprecated_decl): Extern declared for
14163 -W[no-]deprecated-declarations option.
14164 * print-tree.c (print_node): Show deprecated flag status.
14165 * toplev.c (warn_deprecated_decl): Defined.
14166 (W_options): Added "deprecated-declaration".
14167 * toplev.h (warn_deprecated_use): Extern declared.
14168 * tree.h (struct tree_common): Define deprecated_flag.
14169 (TREE_DEPRECATED): New macro to access flag.
14170 * cp/call.c (build_call): Test for deprecated calls.
14171 * cp/class.c (add_implicitly_declared_members): Set global
14172 flag to tell grokdeclarator to not issue deprecated warnings.
14173 * cp/cp-tree.h: Add extern for adding_implicit_members.
14174 * cp/decl.c (deprecated_states): New enum.
14175 (start_decl): Set deprecated_state based on attributes.
14176 (grokdeclarator): Test for deprecated uses, propagate attribute.
14177 * cp/lex.c (do_identifier): Test for deprecated primaries.
14178 * cp/typeck.c (build_component_ref): Test for deprecated fields.
14180 2002-01-10 Ira Ruben <ira@apple.com>
14182 Fix to assign attributes to inline member functions.
14183 * cp/decl.c (start_method): Handle attrlist.
14185 2002-01-10 Kazu Hirata <kazu@hxi.com>
14187 * combine.c (expand_field_assignment): Use subreg_lsb().
14189 2002-01-10 David Edelsohn <edelsohn@gnu.org>
14191 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
14192 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
14193 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
14194 Recurse for any operand of AND as long as constant is non-zero.
14196 2002-01-10 Kazu Hirata <kazu@hxi.com>
14198 * config/h8300/h8300.md: Remove constraints from expanders.
14200 2002-01-10 Kazu Hirata <kazu@hxi.com>
14202 * varasm.c: Fix formatting.
14203 * varray.c: Likewise.
14204 * vmsdbgout.c: Likewise.
14205 * xcoffout.c: Likewise.
14207 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
14209 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
14210 update edge probabilities to match.
14212 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
14214 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
14216 * doc/languages.texi, doc/sourcebuild.texi: New files.
14217 * doc/configfiles.texi: Make a subsubsection. Update.
14218 * doc/configterms.texi: Add @node. Remove warning that this isn't
14219 instructions for building GCC.
14220 * doc/makefile.texi: Make a subsection.
14221 * doc/gccint.texi: Update.
14223 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
14225 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
14227 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
14229 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
14231 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
14233 * optabs.c (expand_fix): Look for wider integer modes first.
14235 * i386.md (mov?f): Avoid the fake const double trick for medium
14237 (min?f*/max?f*): Prohibit memory operands for i387 variant.
14238 (fop_df_4): Disable for SSE compilation.
14240 2002-01-10 Graham Stott <grahams@redhat.com>
14242 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
14243 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
14245 2002-01-10 Richard Henderson <rth@redhat.com>
14247 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
14249 2002-01-10 Richard Henderson <rth@redhat.com>
14251 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
14252 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
14254 2002-01-10 Kazu Hirata <kazu@hxi.com>
14256 * combine.c (can_combine_p): Fix a comment typo.
14258 2002-01-09 Zack Weinberg <zack@codesourcery.com>
14260 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
14261 empty list correctly. Change loop index $t to $f for
14262 consistency with rest of Makefile.
14264 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
14266 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
14267 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14269 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
14270 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
14271 (altivec_init_builtins): Same.
14272 (altivec_expand_unop_builtin): Return NULL_RTX on error.
14273 (altivec_expand_binop_builtin): Same.
14274 (altivec_expand_ternop_builtin): Same.
14277 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
14278 ("altivec_vctuxs"): Fix typo.
14279 ("altivec_vnmsubfp"): Same.
14280 ("altivec_dssall"): New.
14281 ("altivec_mfvscr"): New.
14282 ("altivec_dss"): New.
14283 ("altivec_lvsl"): New.
14284 ("altivec_lvsr"): New.
14285 ("altivec_dstt"): New.
14286 ("altivec_dstst"): New.
14287 ("altivec_dststt"): New.
14288 ("altivec_dst"): New.
14290 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
14291 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
14293 2002-01-09 Richard Henderson <rth@redhat.com>
14295 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
14297 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
14299 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
14301 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
14303 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
14305 2002-01-09 Kazu Hirata <kazu@hxi.com>
14307 * read-rtl.c: Fix formatting.
14308 * real.c: Likewise.
14309 * regclass.c: Likewise.
14310 * regrename.c: Likewise.
14311 * reg-stack.c: Likewise.
14312 * reload1.c: Likewise.
14313 * reload.c: Likewise.
14316 2002-01-09 Kazu Hirata <kazu@hxi.com>
14318 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
14319 to extract items in the expr_list chain.
14321 2002-01-09 Richard Henderson <rth@redhat.com>
14323 * config/vax/vax.c (vax_rtx_cost): Never abort.
14325 * config/vax/vax.h (REAL_ARITHMETIC): Define.
14327 2002-01-09 Jan Hubicka <jh@suse.cz>
14329 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
14331 2002-01-09 Richard Henderson <rth@redhat.com>
14333 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
14334 Unify code from various alternatives.
14336 2002-01-09 Richard Henderson <rth@redhat.com>
14338 * regrename.c (copy_value): Ignore the copy if the source register
14339 is present in the value chain with a narrower mode.
14341 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14343 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
14344 for the c4x target. Also improve layout.
14346 2002-01-09 Richard Henderson <rth@redhat.com>
14348 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
14349 * config/m32r/m32r.md (and ior xor splitters): Swap operands
14350 to match insn patterns.
14352 2002-01-09 Richard Henderson <rth@redhat.com>
14354 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
14355 (copyprop_hardreg_forward_1): Likewise.
14357 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
14359 * pa.md (decrement_and_branch_until_zero): Change predicate for
14360 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
14362 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14364 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
14365 gets undefined. For Darwin.
14367 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14369 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
14371 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14373 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
14375 2002-01-08 Richard Henderson <rth@redhat.com>
14377 * regrename.c (copy_value): Ignore overlapping copies.
14379 2002-01-08 Richard Henderson <rth@redhat.com>
14381 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
14382 as needed to avoid shared structure.
14384 2002-01-08 Kazu Hirata <kazu@hxi.com>
14386 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
14389 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14391 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
14392 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
14393 documentation of obsolete macros.
14394 * system.h: Poison these macros.
14395 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
14396 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
14397 config/c4x/c4x.h, config/clipper/clipper.h,
14398 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
14399 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
14400 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
14401 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
14402 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14403 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
14404 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14405 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
14406 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
14407 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14408 config/sparc/sparc.h, config/stormy16/stormy16.h,
14409 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
14410 definitions and commented out definitions of obsolete macros.
14411 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
14412 of MAX_INT_TYPE_SIZE.
14414 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
14416 * config/s390/s390.c (s390_preferred_reload_class): Never
14417 return ADDR_REGS if it isn't a subset of the given class.
14418 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
14419 FP_REGS, but all superclasses as well.
14421 * config/s390/s390.c (s390_function_profiler): Fix thinko.
14423 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
14424 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
14425 must not be a const_int.
14427 2002-01-08 Richard Henderson <rth@redhat.com>
14429 * Makefile.in (toplev.o): Depend on options.h.
14430 (gcc.o): Depend on specs.h.
14432 2002-01-08 Jakub Jelinek <jakub@redhat.com>
14434 * expr.c (store_expr): Convert VOIDmode constants back to target's
14437 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14439 * doc/invoke.texi: Markup gcc as @command. Refer to
14440 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
14441 of http://gcc.gnu.org/thanks.html.
14443 2002-01-08 Dale Johannesen <dalej@apple.com>
14445 * config/rs6000/rs6000.md: Add missing int register
14446 target case to movdf_low.
14448 2002-01-08 Zack Weinberg <zack@codesourcery.com>
14450 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
14451 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
14452 (cppinit.o): Depend on except.h.
14453 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
14454 s-specs): New rules.
14456 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
14457 Don't create specs.h/options.h/gencheck.h here. Remove
14458 unnecessary variable settings from last argument of AC_OUTPUT.
14459 * config.in, configure: Regenerate.
14460 * intl.c: Hardcode package name as "gcc".
14462 * cppinit.c: Include except.h.
14463 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
14465 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
14466 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
14467 (!)USING_SJLJ_EXCEPTIONS.
14468 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
14470 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14472 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
14473 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
14474 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
14475 documentation of obsolete macros.
14476 * system.h: Poison these macros.
14477 * config/d30v/d30v.h, config/ns32k/encore.h,
14478 config/stormy16/stormy16.h: Remove definitions and commented out
14479 definitions of obsolete macros.
14481 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
14483 * objc/objc-act.c (handle_class_ref): Mark the declaration of
14484 %sobjc_class_ref_%s as used - to prevent unwanted compiler
14487 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
14489 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
14490 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
14491 to insn adjusting stack/frame pointer.
14492 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
14493 accept operands that cause the insn to be non-splittable.
14495 2002-01-08 Graham Stott <grahams@redhat.com>
14497 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
14498 (C_TYPE_FIELDS_VOLATILE): Likewise.
14499 (C_TYPE_BEING_DEFINED): Likewise.
14500 (C_IS_RESERVED_WORD): Likewise.
14501 (C_TYPE_VARIABLE_SIZE): Likewise.
14502 (C_DECL_VARIABLE_SIZE): Likewise.
14503 (C_MISSING_PROTOTYPE_WARNED): Likewise.
14504 (C_SET_EXP_ORIGINAL_CODE): Likewise.
14505 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
14507 (C_DECL_ANTICIPATED): Likewise.
14508 (c_build_type_variant): Add parenthesis.
14510 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
14512 * gcc.c (option_map): Remove --version.
14513 (process_command): Handle -fversion following the GNU Coding
14514 Standards. Partially addresses PR other/704.
14516 2002-01-08 Graham Stott <grahams@redhat.com>
14518 * combine.c (combine_instructions): Fix typo.
14520 2002-01-08 Graham Stott <grahams@redhat.com>
14522 * debug.h: Use "tree" and "rtx" throughout.
14524 * debug.c: Likewise.
14526 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
14528 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
14529 constant pool, use the pool's version of the symbol instead.
14531 2002-01-07 Richard Henderson <rth@redhat.com>
14533 * regrename.c (find_oldest_value_reg): Ignore the value chain if
14534 the original register was copied in a mode with a fewer number of
14535 hard registers than the desired mode.
14536 (copyprop_hardreg_forward_1): Likewise.
14537 (debug_value_data): Fix loop test.
14538 * toplev.c (parse_options_and_default_flags): Reenable
14539 -fcprop-registers at -O1.
14541 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14543 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
14544 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
14546 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
14549 * config/rs6000/rs6000.md: Add altivec predicate patterns.
14551 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
14553 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
14554 (pa_output_function_prologue): Output local label at the beginning of
14555 the prologue when profiling.
14556 (hppa_profile_hook): Use the local label rather than the function label.
14557 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
14559 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14561 * config/rs6000/rs6000.c (print_operand): Remove extra space.
14562 (altivec_expand_unop_builtin): Fix thinko.
14563 (altivec_expand_binop_builtin): Same.
14564 (altivec_expand_ternop_builtin): Same.
14565 (altivec_expand_builtin): Same.
14567 2002-01-07 Richard Henderson <rth@redhat.com>
14569 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
14571 2002-01-07 Jason Merrill <jason@redhat.com>
14573 * unwind-dw2.c (execute_cfa_program): Use < again.
14575 2002-01-07 Jakub Jelinek <jakub@redhat.com>
14577 * predict.c (combine_predictions_for_insn): Avoid division by zero.
14579 2002-01-07 Jakub Jelinek <jakub@redhat.com>
14581 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
14582 Don't allow -1 - x -> ~x simplifications in the first pass.
14584 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
14586 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
14588 (altivec_expand_binop_builtin): Same.
14589 (altivec_expand_unop_builtin): Same.
14590 (print_operand): Fix typo.
14591 (bdesc_1arg): Add vupk* variants.
14593 * rs6000.h (rs6000_builtins): Add vupk* enums.
14595 * rs6000.md: Add altivec_vupk* variants.
14597 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
14599 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
14600 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
14601 and last update dates.
14603 2002-01-07 Janis Johnson <janis187@us.ibm.com>
14605 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
14607 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
14609 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14610 * config/avr/avr.h (CPP_SPEC): Likewise.
14611 (LINK_SPEC): Likewise.
14612 (CRT_BINUTILS_SPECS): Likewise.
14613 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14614 * doc/invoke.texi (AVR Options): Document them.
14616 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
14618 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14621 2002-01-07 Graham Stott <grahams@redhat.com>
14623 * config/i386/i386.h: Update copyright date.
14624 (HALF_PIC_PTR): Add parenthesis.
14625 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14626 (CONSTANT_ALIGNMENT): Add parenthesis.
14627 (DATA_ALIGNMENT): Likewise.
14628 (LOCAL_ALIGNMENT): Likewise.
14629 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14630 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14631 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14632 (HARD_REGNO_NREGS): Add paranethesis.
14633 (VALID_SSE_REG_MODE): Whitespace.
14634 (VALID_MMX_REG_MODE): Whitespace.
14635 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14636 (ix86_hard_regno_mode_ok): Add parenthesis.
14637 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14638 (RETURN_IN_MEMORY): Whitespace.
14639 (N_REG_CLASSES): Add parenthesis.
14640 (INTEGER_CLASS_P): Add parenthesis and wrap.
14641 (FLOAT_CLASS_P): Likewise.
14642 (SSE_CLASS_P): Likewise.
14643 (MMX_CLASS_P): Likewise.
14644 (MAYBE_INTEGER_CLASS_P): Likewise.
14645 (MAYBE_FLOAT_CLASS_P): Likewise.
14646 (MAYBE_SSE_CLASS_P): Likewise.
14647 (MAYBE_MMX_CLASS_P): Likewise.
14648 (Q_CLASS_P): Likewise.
14649 (GENERAL_REGNO_P): Uppercase macro parameter.
14650 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14651 (FP_REGNO_P): Likewise.
14652 (ANY_FP_REGNO_P): Uppercase macro parameter.
14653 (SSE_REGNO_P): Likewise.
14654 (SSE_REGNO): Likewise.
14655 (SSE_REG_P): Likewise.
14656 (SSE_FLOAT_MODE_P): Likewise.
14657 (MMX_REGNO_P): Likewise.
14658 (MMX_REG_P):Likewise.
14659 (STACK_REG_P): Likewise.
14660 (NON_STACK_REG_P): Likewise.
14661 (STACK_TOP_P): Likewise.
14662 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14663 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14664 (SECONDARY_MEMORY_NEEDED): Likewise.
14665 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14666 (MD_ASM_CLOBBERS): Whitespace and wrap.
14667 (MUST_PASS_IN_STACK): Whitespace and wrap.
14668 (RETURN_POPS_ARGS): Add parenthesis.
14669 (INIT_CUMULATIVE_ARGS): Likewise.
14670 (FUNCTION_ARG): Likewise.
14671 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14672 (SETUP_INCOMING_VARARGS): Likewise.
14673 (BUILD_VA_LIST_TYPE): Add parenthesis.
14674 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14676 (EXPAND_BUILTIN_VA_ARG): Likewise.
14677 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14678 (INITIALIZE_TRAMPOLINE): Add parenthesis.
14679 (INITIAL_ELIMINATION_OFFSET): Likewise.
14680 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14681 (REGNO_OK_FOR_BASE_P): Likewise.
14682 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14683 (REGNO_OK_FOR_DIREG_P): Likewise.
14684 (REG_OK_FOR_INDEX_P): Whitespace.
14685 (REG_OK_FOR_BASE_P): Whitespace.
14686 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14688 (FIND_BASE_TERM): Fix typo.
14689 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
14690 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14691 (SYMBOLIC_CONST; Whitespace.
14692 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
14693 (ENCODE_SECTION_INFO): Whitespace.
14694 (FINALIZE_PIC): Remove do { ... } while (0).
14695 (PROMOTE_MODE): Wrap in do { ... } while (0).
14696 (CONST_COSTS): Whitespace.
14697 (RTX_COSTS): Add paramethesis, whitespace and wrap.
14698 (REGISTER_MOVE_COST): Add parenthesis.
14699 (MEMORY_MOVE_COST): Likewise.
14700 (EXTRA_CC_MODES): Whitespace.
14701 (SELECT_CC_MODE): Add parenthesis and whitespace.
14702 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14703 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14704 (ASM_OUTPUT_LABEL): Add paramethesis.
14705 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14706 (ASM_OUTPUT_REG_POP): Likewise.
14707 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14708 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14710 * config/i386/i386.c: Update copyright.
14711 (CHECK_STACK_LIMIT): Add parenthesis.
14712 (AT_BP): Uppercase macro parameter.
14713 (x86_64_int_parameter_registers): Constify.
14714 (x86_64_int_return_registers): Likewise.
14715 (ix86_compare_op0): Use rtx.
14716 (construct_container): Constify INTREG parameter.
14717 (function_arg): Use rtx.
14719 * diagnostic.h: Update copyright date.
14720 (output_buffer_state): Add parenthesis.
14721 (output_buffer_format_args): Likewise.
14723 * combine.c (combine_instructions): Replace XEXP (links, 0)
14726 2002-01-06 H.J. Lu <hjl@gnu.org>
14728 * cfgcleanup.c (thread_jump): Fix 2 typos.
14730 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
14732 * config.gcc: Add support for --enable-altivec.
14734 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14736 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14738 2002-01-06 Jakub Jelinek <jakub@redhat.com>
14740 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14741 __objc_class_name_*.
14743 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
14745 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14747 2002-01-06 Richard Henderson <rth@redhat.com>
14749 * reorg.c (emit_delay_sequence): Remove death notes, not merely
14750 nop them out. Increment label reference count for REG_LABEL.
14751 (fill_slots_from_thread): Frob label reference count around
14752 delete_related_insns.
14754 2002-01-05 Richard Henderson <rth@redhat.com>
14756 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14759 2002-01-05 Richard Henderson <rth@redhat.com>
14761 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14762 * integrate.c (output_inline_function): Likewise.
14763 * toplev.c (rest_of_compilation): Do it here instead. Move call
14764 to remove_unnecessary_notes after emitting abstract instance.
14765 Force an emitted nested function to have its parent emited as well.
14766 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14768 (rtl_for_decl_location): Do not look at reload data structures
14769 before reload has run.
14771 2002-01-05 Kazu Hirata <kazu@hxi.com>
14773 * cse.c: Fix formatting.
14774 * dwarf2asm.c: Likewise.
14775 * dwarf2out.c: Likewise.
14776 * explow.c: Likewise.
14777 * expmed.c: Likewise.
14778 * function.c: Likewise.
14779 * gcov.c: Likewise.
14780 * gencheck.c: Likewise.
14781 * genrecog.c: Likewise.
14782 * ggc-common.c: Likewise.
14783 * ggc-page.c: Likewise.
14784 * global.c: Likewise.
14786 2002-01-05 Kazu Hirata <kazu@hxi.com>
14788 * combine.c: Fix formatting.
14790 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
14793 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14795 2002-01-05 David Edelsohn <edelsohn@gnu.org>
14797 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14798 as 1 for __powerpc64__ as well.
14800 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14802 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14805 2002-01-05 Daniel Berlin <dan@dberlin.org>
14807 * lcm.c: Revert change, due to performance regression it causes on
14808 SPEC because it's slightly more conservative (sigh, I hate
14811 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
14813 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14815 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
14817 * doc/cppinternals.texi: Update.
14819 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
14821 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14822 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14824 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
14825 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14826 kludge for pre-october-14th mmix versions to handle new-found bug
14827 with PUSHJ/PUSHGO and the register stack.
14828 * config/mmix/mmix.h (struct machine_function): Rename member
14829 has_call_value_without_parameters to has_call_without_parameters.
14830 All referers changed.
14831 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14832 TARGET_MASK_BRANCH_PREDICT): New macros.
14833 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14834 -mno-reg-stack-fill-bug-workaround.
14835 * config/mmix/mmix.md ("call"): Set struct machine member
14836 has_call_without_parameters.
14838 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
14840 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14842 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
14844 * cfgcleanup.c: Include tm_p.h
14845 (mark_effect): Fix handling of hard register; fix handling of SET
14847 2002-01-04 Kazu Hirata <kazu@hxi.com>
14849 * config/h8300/h8300.md (anonymous patterns): Check that
14850 operands are registers before using REGNO on them.
14852 2002-01-03 Roland McGrath <roland@frob.com>
14854 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14856 2002-01-04 Jakub Jelinek <jakub@redhat.com>
14858 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14859 * c-common.h (genrtl_expr_stmt_value): Likewise.
14860 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14861 (expand_expr_stmt_value): Add maybe_last argument.
14862 Don't warn about statement with no effect if it is the last statement
14863 in expression statement.
14864 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14865 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14866 expand_expr_stmt_value.
14867 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14868 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14869 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14870 as maybe_last to expand_expr_stmt_value.
14872 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
14874 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14875 be passed in, do not build it.
14876 (c_begin_if_stmt): New function.
14877 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14878 * c-common.h (c_expand_start_cond): Update prototype.
14879 (c_begin_if_stmt): Prototype new function.
14880 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14881 * c-parse.in (if_prefix): Use c_begin_if_stmt,
14882 c_begin_while_stmt and c_finish_while_stmt_cond.
14884 2002-01-04 William Cohen <wcohen@redhat.com>
14886 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14887 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14888 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14889 * config/pa/som.h (ASM_FILE_START): Likewise.
14891 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
14893 * lcm.c: Include df.h.
14894 Add available_transfer_function prototype.
14895 (compute_available): Rework to use iterative dataflow framework.
14896 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14897 with bb_info in df.h
14898 (available_transfer_function): New function.
14900 * Makefile.in (lcm.o): add df.h to dependencies.
14902 2002-01-04 Richard Henderson <rth@redhat.com>
14904 * config/alpha/alpha.c (some_operand): Accept HIGH.
14905 (input_operand): Likewise; accept simple references to globals.
14906 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14907 (alpha_const_double_ok_for_letter_p): Likewise.
14908 (alpha_extra_constraint): Likewise.
14909 (alpha_preferred_reload_class): Likewise. Do not force
14910 symbolic constants to memory.
14911 (alpha_legitimate_address_p): Accept simple references
14912 to small_symbolic_operand.
14913 (alpha_legitimize_address): New arg scratch. Be prepared to be
14914 called when no_new_pseudos. Emit simple symbolic references.
14915 Split integers into low, high, and rest.
14916 (alpha_expand_mov): Use alpha_legitimize_address.
14917 (some_small_symbolic_mem_operand): New.
14918 (split_small_symbolic_mem_operand): New.
14919 * config/alpha/alpha-protos.h: Update.
14920 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14921 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14922 (EXTRA_CONSTRAINT): Likewise.
14923 (PREFERRED_RELOAD_CLASS): Likewise.
14924 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14925 (PREDICATE_CODES): Update.
14926 * config/alpha/alpha.md: New post-reload splitters to convert
14927 simplfied symbolic operands to the form that references $29.
14928 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14929 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14931 2002-01-03 Richard Henderson <rth@redhat.com>
14933 * local-alloc.c (function_invariant_p): Update commentary.
14935 2002-01-04 H.J. Lu <hjl@gnu.org>
14937 * toplev.c (rest_of_compilation): Fix a typo when calling
14940 2002-01-03 Kazu Hirata <kazu@hxi.com>
14942 * c-common.c: Fix formatting.
14943 * diagnostic.c: Likewise.
14944 * doloop.c: Likewise.
14945 * dwarf2out.c: Likewise.
14947 2002-01-03 Kazu Hirata <kazu@hxi.com>
14949 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14950 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14952 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14954 * cpperror.c: Update comments and copyright.
14955 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14956 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14958 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14960 * collect2.c (main): Use strcmp when testing for "-shared".
14962 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
14964 * cppmacro.c: Don't include intl.h. Update comments.
14965 (new_number_token): Allocate enough buffer for 64-bit unsigned
14966 integers; update prototype.
14967 * cppmain.c: Update comments.
14969 2002-01-03 William Cohen <wcohen@redhat.com>
14971 * function.h (struct function): Add profile.
14972 (current_function_profile): New.
14973 doc/extend.texi: Update documentation.
14974 * final.c (final_start_function): Use current_function_profile
14975 instead of profile_flag.
14976 (profile_after_prologue): Likewise.
14977 * function.c (expand_function_start): Likewise.
14978 (expand_function_start): Likewise.
14979 * config/alpha/alpha.c (direct_call_operand):
14980 (alpha_does_function_need_gp): Likewise.
14981 (alpha_expand_prologue): Likewise.
14982 * config/arm/arm.c (arm_expand_prologue): Likewise.
14983 thumb_expand_prologue: Likewise.
14984 * config/d30v/d30v.c (d30v_stack_info): Likewise.
14985 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14986 (fr30_expand_prologue): Likewise.
14987 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14988 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14989 * config/i386/i386.h (FINALIZE_PIC): Likewise.
14990 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14991 * config/i960/i960.c (i960_output_function_prologue): Likewise.
14992 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14993 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14994 (m32r_expand_prologue): Likewise.
14995 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14996 (m88k_expand_prologue): Likewise.
14997 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14998 * config/mips/mips.c (compute_frame_size): Likewise.
14999 (mips_expand_prologue): Likewise.
15000 (mips_can_use_return_insn): Likewise.
15001 * config/pa/elf.h (ASM_FILE_START): Likewise.
15002 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
15003 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
15004 * config/pa/som.h (ASM_FILE_START): Likewise.
15005 * config/romp/romp.c (romp_using_r14): Likewise.
15006 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
15007 (rs6000_stack_info): Likewise.
15008 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15009 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
15010 * config/v850/v850.c (compute_register_save_size): Likewise.
15012 2002-01-03 Jakub Jelinek <jakub@redhat.com>
15014 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
15015 gen_lowpart_common fails, use gen_lowpart_SUBREG.
15017 2002-01-03 Turly O'Connor <turly@apple.com>
15019 * darwin.c (machopic_output_possible_stub_label): Don't generate
15020 stub routines for pseudo-stubs which we've just defined.
15022 2002-01-03 Kazu Hirata <kazu@hxi.com>
15024 * builtins.c: Fix formatting.
15025 * c-typeck.c: Likewise.
15026 * combine.c: Likewise.
15027 * expr.c: Likewise.
15028 * loop.c: Likewise.
15030 2002-01-03 Andreas Schwab <schwab@suse.de>
15032 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
15033 and return true if _cpp_push_next_buffer pushed a new include
15035 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
15036 _cpp_pop_file_buffer did not push a new file.
15037 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
15039 2002-01-02 Eric Christopher <echristo@redhat.com>
15041 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
15042 FIND_REG_INC_NOTE call. Update copyright.
15043 * loop.c (canonicalize_condition): Ditto.
15044 * reorg.c (delete_scheduled_jump): Ditto.
15046 2002-01-03 Kazu Hirata <kazu@hxi.com>
15048 * gcse.c: Fix formatting.
15050 2002-01-03 Graham Stott <grahams@redhat.com>
15052 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
15053 forward defs for struct tags rtx_def, union_tree, rtvec_def
15054 also output corresponding typedefs for rtx, tree, and rtvec.
15056 * system.h: Move forward defs for struct tags rtx_def, union_tree,
15057 rtvec_def along with corresponding typedefs for rtx, tree, and
15058 rtvec to config.h, hconfig.h, tconfig.h.
15060 2002-01-03 Graham Stott <grahams@redhat.com>
15062 * tree.h: Update copyright date.
15063 (IS_EXPR_CODE_CLASS): Add parenthesis.
15064 (TREE_SET_CODE): Add whitespace.
15065 (TREE_CHECK): Add parenthesis.
15066 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
15067 (CST_OR_CONSTRUCTOR_CHECK):
15068 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
15069 (TREE_SYMBOL_REFERENCED): Whitespace.
15070 (INT_CST_LT): Likewise.
15071 (INT_CST_LT_UNSIGNED): Likewise.
15072 (tree_real_cst): Unwrap comment.
15073 (tree_string): Likewise.
15074 (tree_complex): Likewise.
15075 (IDENTIFIER_POINTER): correct cast.
15076 (SAVE_EXPR_CONTEXT): Whitespace.
15077 (EXPR_WFL_FILENAME_NODE): Likewise.
15078 (EXPR_WFL_FILENAME): Remove parenthesis.
15079 (DECL_ORIGIN): Add parenthesis.
15080 (DECL_FROM_INLINE): Use NULL_TREE.
15081 (build_int_2): Whitespace.
15082 (build_type_variant): Add parenthesis.
15084 * gcc/jcf-parse.c: Update copyright date.
15085 (yyparse): Constify resource_filename.
15087 2002-01-03 Graham Stott <grahams@redhat.com>
15089 * rtl.h: Update copyright date.
15090 (RTL_CHECK1): Wrap long line.
15091 (RTL_CHECK2): Likewise.
15092 (RTL_CHECKC1): Wrap long line and whitespace.
15093 (RTL_CHECKC2): Likewise.
15094 (XWINT): Whitespace.
15100 (XBITMAP): Likewise.
15102 (XBBDEF): Likewise.
15104 (X0WINT): Likewise.
15106 (X0UINT): Likewise.
15110 (X0MODE): Likewise.
15111 (X0BITMAP): Likewise.
15112 (X0TREE): Likewise.
15113 (X0BBDEF): Likewise.
15114 (X0ADVFLAGS): Likewise.
15115 (X0CSELIB): Likewise.
15116 (X0MEMATTR): Likewise.
15117 (XCWINT): Likewise.
15119 (XCUINT): Likewise.
15123 (XCMODE): Likewise.
15124 (XCBITMAP): Likewise.
15125 (XCTREE): Likewise.
15126 (XCBBDEF): Likewise.
15127 (XCADVFLAGS): Likewise.
15128 (XCCSELIB): Likewise.
15129 (XC2EXP): Likewise.
15130 (INSN_UID): Likewise.
15131 (PREV_INSN): Likewise.
15132 (PATTERN): Likewise.
15133 (INSN_CODE): Likewise.
15134 (PUT_REG_NOTE_KIND): Likewise.
15135 (CODE_LABEL_NUMBER): Likewise.
15136 (NOTE_SOURCE_FILE): Likewise.
15137 (NOTE_BLOCK): Likewise.
15138 (NOTE_EH_HANDLER): Likewise.
15139 (NOTE_RANGE_INFO): Likewise.
15140 (NOTE_LIVE_INFO): Likewise.
15141 (NOTE_BASIC_BLOCK): Likewise.
15142 (NOTE_EXPECTED_VALUE): Likewise.
15143 (NOTE_LINE_NUMBER): Likewise.
15144 (LABEL_NAME): Likewise.
15145 (LABEL_NUSES): Likewise.
15146 (LABEL_ALTERNATE_NAME): Likewise.
15147 (ADDRESSOF_DECL): Likewise.
15148 (JUMP_LABEL): Likewise.
15149 (LABEL_NEXTREF): Likewise.
15151 (ORIGINAL_REGNO: Likewise.
15152 (HARD_REGISTER_NUM_P): Add parenthesis.
15153 (SUBREG_REG): Whitespace.
15154 (SUBREG_BYTE): Likewise.
15155 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
15156 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
15157 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
15158 (ASM_OPERANDS_INPUT_VEC): Likewise.
15159 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
15160 (ASM_OPERANDS_INPUT): Likewise.
15161 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
15162 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
15163 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
15164 (ASM_OPERANDS_INPUT_MODE): Likewise.
15165 (ASM_OPERANDS_SOURCE_FILE): Likewise.
15166 (ASM_OPERANDS_SOURCE_LINE): Likewise.
15167 (MEM_SET_IN_STRUCT_P): Minor reformat.
15168 (TRAP_CONDITION): Whitespace.
15169 (TRAP_CODE): Likewise.
15170 (COND_EXEC_TEST): Likewise.
15171 (COND_EXEC_CODE): Likewise.
15172 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
15173 (PHI_NODE_P): Add parenthesis.
15174 (plus_constant): Whitespace and add parenthesis.
15176 2002-01-03 Kazu Hirata <kazu@hxi.com>
15178 * config/avr/avr.c: Fix comment typos.
15179 * config/c4x/c4x.md: Likewise.
15180 * config/dsp16xx/dsp16xx.h: Likewise.
15181 * config/dsp16xx/dsp16xx.md: Likewise.
15182 * config/i386/i386.md: Likewise.
15183 * config/ia64/ia64.c: Likewise.
15184 * config/m32r/m32r.h: Likewise.
15185 * config/m68hc11/m68hc11.md: Likewise.
15186 * config/mmix/mmix.c: Likewise.
15187 * config/mn10200/mn10200.c: Likewise.
15188 * config/romp/romp.c: Likewise.
15189 * config/sh/sh.c: Likewise.
15190 * config/stormy16/stormy16.c: Likewise.
15191 * config/stormy16/stormy16.h: Likewise.
15192 * config/stormy16/stormy16.md: Likewise.
15194 2002-01-03 Graham Stott <grahams@redhat.com>
15196 * loop.h: Update copyright date.
15197 (LOOP_MOVABLES): Fix typo.
15198 (LOOP_REGS): Likewise.
15199 (LOOP_IVS): Likewise.
15201 2002-01-03 Graham Stott <grahams@redhat.com>
15203 * cppinit.c: Update copyright date.
15204 Don't include output.h
15205 * Makefile.in: Update copyright date.
15208 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
15211 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
15212 (-pthread) Add to RS/6000 options.
15214 2002-01-02 Kazu Hirata <kazu@hxi.com>
15216 * except.c: Fix comment typos.
15217 * loop.c: Likewise.
15218 * varasm.c: Likewise.
15219 * doc/tm.texi: Fix a typo.
15221 2002-01-02 Jakub Jelinek <jakub@redhat.com>
15223 * c-typeck.c (output_init_element): Allow initializing static storage
15224 duration objects with compound literals.
15226 2002-01-02 Richard Henderson <rth@redhat.com>
15228 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
15231 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15233 * gcc.c (default_compilers): Const-ify.
15234 * mips-tdump.c (stab_names): Likewise.
15235 * mips-tfile.c (map_coff_types, map_coff_storage,
15236 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
15237 pseudo_ops_t, pseudo_ops): Likewise.
15238 * protoize.c (default_include): Likewise
15240 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
15241 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
15242 Add array size in declaration.
15243 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
15244 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
15245 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
15246 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
15247 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
15248 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
15249 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
15250 emtens, make_nan): Const-ify.
15251 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
15252 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
15254 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
15256 * config.gcc (ia64-*-*): Set extra_headers.
15257 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
15258 * config/alpha/t-osf: Remove.
15259 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
15261 2002-01-02 David Edelsohn <edelsohn@gnu.org>
15263 * config/rs6000/t-aix43: Revert previous change.
15265 2002-01-02 Jason Merrill <jason@redhat.com>
15267 * c-decl.c (c_expand_body): Call outlining_inline_function when
15268 emitting an inline function out of line.
15270 2002-01-02 Richard Henderson <rth@redhat.com>
15272 * dwarf2out.c (limbo_die_node): Add created_for member.
15273 (new_die): New argument created_for. Update all callers.
15274 (mark_limbo_die_list): New.
15275 (dwarf2out_init): Register limbo_die_list as a root.
15276 (dwarf2out_finish): Force insert limbo dies into their function
15279 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
15282 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
15284 2002-01-02 Kazu Hirata <kazu@hxi.com>
15286 * config/h8300/fixunssfsi.c: Update copyright.
15289 * config/h8300/h8300.c: Update copyright.
15290 Eliminate warnings.
15292 2002-01-02 Kazu Hirata <kazu@hxi.com>
15294 * config/romp/romp.c: Fix comment formatting.
15295 * config/romp/romp.h: Likewise.
15296 * config/romp/romp.md: Likewise.
15297 * config/s390/s390.c: Likewise.
15298 * config/stormy16/stormy16.c: Likewise.
15299 * config/stormy16/stormy16.h: Likewise.
15301 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
15303 * c-common.h (genrtl_expr_stmt_value): Declare.
15304 * c-semantics.c (genrtl_goto_stmt): Redirect to...
15305 (genrtl_goto_stmt_value): ... this new function. Pass new
15306 argument down to expand_expr_stmt_value, taking
15307 TREE_ADDRESSABLE into account.
15308 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
15309 STMT_EXPR as addressable, i.e., one whose result we want.
15310 * expr.c (expand_expr): Don't save expression statement value
15311 of labeled_blocks or loop_exprs.
15312 * stmt.c (expand_expr_stmt): Redirect to...
15313 (expand_expr_stmt_value): ... this new function. Use new
15314 argument to tell whether to save expression value.
15315 (expand_end_stmt_expr): Reset last_expr_type and
15316 last_expr_value if we don't have either.
15317 * tree-inline.c (declare_return_variable): Mark its use
15318 statement as addressable.
15319 * tree.h: Document new use of TREE_ADDRESSABLE.
15320 (expand_expr_stmt_value): Declare.
15322 2002-01-01 Tom Rix <trix@redhat.com>
15324 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
15325 rs6000_emit_allocate_stack.
15327 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
15329 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
15330 ${srcdir}/ginclude/ to every entry in extra_headers.
15331 * configure: Regenerate.
15332 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
15333 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
15334 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
15335 * ginclude/proto.h: Rename to config/convex/proto.h.
15337 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15339 * attribs.c (handle_vector_size_attribute): Use host_integerp
15340 and tree_int_cst; remove warnings.
15341 * caller-save.c (insert_restore): Add cast to get rid of warning.
15342 (insert_save): Likewise.
15343 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
15344 * regmove.c (find_matches): Add temporary var to kill a warning.
15346 2002-01-01 Douglas B Rupp <rupp@gnat.com>
15348 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
15349 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
15350 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
15351 (vms-dwarf2eh.o): Add Makefile rule.
15352 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
15353 * config/alpha/vms-dwarf2eh.asm: New file.
15355 * gcc.c (delete_if_ordinary): Delete all versions.
15357 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
15359 * config/mmix/mmix.md: Update FIXME to not mention
15361 (MMIX_rJ_REGNUM): New define_constants constant.
15362 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
15363 "*movdicc_real"): Adjust contraints formatting.
15364 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
15365 for branch prediction.
15366 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
15368 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
15369 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
15370 number. Delete related FIXMEs.
15371 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
15372 from number to MMIX_rJ_REGNUM.
15373 (TARGET_MASK_BRANCH_PREDICT): New.
15374 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
15375 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
15376 value. Add -mbranch-predict and -mno-branch-predict.
15377 (TARGET_VERSION): Drop date.
15378 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
15379 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
15380 for finding out global symbols.
15381 (mmix_asm_output_labelref): Revert condition for global symbol.
15382 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
15383 (mmix_print_operand_punct_valid_p): A '+' is valid.
15385 See ChangeLog.6 for earlier changes.